From c66248529c5bc13e795725c82ba50dbad79451ae Mon Sep 17 00:00:00 2001 From: Suvij Surya Date: Mon, 11 Mar 2024 16:55:48 +0530 Subject: [PATCH] feat: add configurable schema linting (#596) --- cli/src/commands/subgraph/commands/check.ts | 53 +- composition-go/index.global.js | 180 +- composition/src/index.ts | 1 + composition/src/utils/constants.ts | 24 + .../platform-PlatformService_connectquery.ts | 56 +- .../wg/cosmo/platform/v1/platform_connect.ts | 35 +- .../src/wg/cosmo/platform/v1/platform_pb.ts | 443 ++ .../migrations/0081_ambitious_exiles.sql | 42 + .../migrations/0082_gorgeous_sleeper.sql | 1 + .../migrations/meta/0081_snapshot.json | 3705 ++++++++++++++++ .../migrations/meta/0082_snapshot.json | 3711 +++++++++++++++++ controlplane/migrations/meta/_journal.json | 14 + controlplane/package.json | 2 + .../src/core/bufservices/PlatformService.ts | 189 +- .../src/core/composition/schemaLint.ts | 217 + .../core/repositories/NamespaceRepository.ts | 9 + .../repositories/SchemaCheckRepository.ts | 2 + .../core/repositories/SchemaLintRepository.ts | 95 + .../core/repositories/SubgraphRepository.ts | 3 + controlplane/src/db/models.ts | 2 + controlplane/src/db/schema.ts | 63 + controlplane/src/types/index.ts | 60 + controlplane/test/lint.test.ts | 331 ++ pnpm-lock.yaml | 1014 +++-- proto/wg/cosmo/platform/v1/platform.proto | 63 + studio/src/__tests__/lint-page.test.ts | 80 + studio/src/components/check-badge-icon.tsx | 3 +- .../components/checks/lint-issues-table.tsx | 117 + studio/src/components/code-viewer.tsx | 14 +- .../components/layout/dashboard-layout.tsx | 6 + .../components/schema/sdl-viewer-monaco.tsx | 60 +- studio/src/components/schema/sdl-viewer.tsx | 5 +- studio/src/components/subgraphs-table.tsx | 9 +- studio/src/lib/constants.ts | 104 + studio/src/lib/utils.ts | 28 + .../graph/[slug]/checks/[checkId]/index.tsx | 91 +- .../[namespace]/graph/[slug]/checks/index.tsx | 32 +- .../pages/[organizationSlug]/lint-policy.tsx | 367 ++ 38 files changed, 10833 insertions(+), 398 deletions(-) create mode 100644 controlplane/migrations/0081_ambitious_exiles.sql create mode 100644 controlplane/migrations/0082_gorgeous_sleeper.sql create mode 100644 controlplane/migrations/meta/0081_snapshot.json create mode 100644 controlplane/migrations/meta/0082_snapshot.json create mode 100644 controlplane/src/core/composition/schemaLint.ts create mode 100644 controlplane/src/core/repositories/SchemaLintRepository.ts create mode 100644 controlplane/test/lint.test.ts create mode 100644 studio/src/__tests__/lint-page.test.ts create mode 100644 studio/src/components/checks/lint-issues-table.tsx create mode 100644 studio/src/pages/[organizationSlug]/lint-policy.tsx diff --git a/cli/src/commands/subgraph/commands/check.ts b/cli/src/commands/subgraph/commands/check.ts index 0b83c5c96d..b9951d0d11 100644 --- a/cli/src/commands/subgraph/commands/check.ts +++ b/cli/src/commands/subgraph/commands/check.ts @@ -86,7 +86,6 @@ export default (opts: BaseCommandOptions) => { const changesTable = new Table({ head: [pc.bold(pc.white('CHANGE')), pc.bold(pc.white('TYPE')), pc.bold(pc.white('DESCRIPTION'))], - colWidths: [15, 30, 80], wordWrap: true, }); @@ -100,12 +99,22 @@ export default (opts: BaseCommandOptions) => { wordWrap: true, }); + const lintIssuesTable = new Table({ + head: [pc.bold(pc.white('LINT_RULE')), pc.bold(pc.white('ERROR_MESSAGE')), pc.bold(pc.white('LINE NUMBER'))], + colAligns: ['left', 'left', 'center'], + wordWrap: true, + }); + let success = false; let finalStatement = ''; let studioCheckDestination = ''; if (resp.checkId && resp.checkedFederatedGraphs.length > 0) { - studioCheckDestination = `Open in studio: ${config.webURL}/${resp.checkedFederatedGraphs[0].organizationSlug}/${resp.checkedFederatedGraphs[0].namespace}/graph/${resp.checkedFederatedGraphs[0].name}/checks/${resp.checkId}`; + studioCheckDestination = `${pc.bold('Open in studio')}: ${config.webURL}/${ + resp.checkedFederatedGraphs[0].organizationSlug + }/${resp.checkedFederatedGraphs[0].namespace}/graph/${resp.checkedFederatedGraphs[0].name}/checks/${ + resp.checkId + }`; } switch (resp.response?.code) { @@ -113,9 +122,11 @@ export default (opts: BaseCommandOptions) => { if ( resp.nonBreakingChanges.length === 0 && resp.breakingChanges.length === 0 && - resp.compositionErrors.length === 0 + resp.compositionErrors.length === 0 && + resp.lintErrors.length === 0 && + resp.lintWarnings.length === 0 ) { - console.log(`\nDetected no changes.\n${studioCheckDestination}\n`); + console.log(`\nDetected no changes.\nDetected no lint issues.\n\n${studioCheckDestination}\n`); success = true; @@ -167,13 +178,21 @@ export default (opts: BaseCommandOptions) => { if (resp.breakingChanges.length > 0) { for (const breakingChange of resp.breakingChanges) { - changesTable.push([pc.red('BREAKING'), breakingChange.changeType, breakingChange.message]); + changesTable.push([ + `${logSymbols.error} ${pc.red('BREAKING')}`, + breakingChange.changeType, + breakingChange.message, + ]); } } if (resp.nonBreakingChanges.length > 0) { for (const nonBreakingChange of resp.nonBreakingChanges) { - changesTable.push(['NON-BREAKING', nonBreakingChange.changeType, nonBreakingChange.message]); + changesTable.push([ + `${logSymbols.success} NON-BREAKING`, + nonBreakingChange.changeType, + nonBreakingChange.message, + ]); } } @@ -192,12 +211,32 @@ export default (opts: BaseCommandOptions) => { console.log(compositionErrorsTable.toString()); } + if (resp.lintErrors.length > 0 || resp.lintWarnings.length > 0) { + success = resp.lintErrors.length === 0; + console.log('\nDetected lint issues:'); + for (const error of resp.lintErrors) { + lintIssuesTable.push([ + `${logSymbols.error} ${pc.red(error.lintRuleType)}`, + error.message, + error.issueLocation?.line, + ]); + } + for (const warning of resp.lintWarnings) { + lintIssuesTable.push([ + `${logSymbols.warning} ${pc.yellow(warning.lintRuleType)}`, + warning.message, + warning.issueLocation?.line, + ]); + } + console.log(lintIssuesTable.toString()); + } + if (success) { console.log( '\n' + logSymbols.success + pc.green(` Schema check passed. ${finalStatement}`) + - '\n' + + '\n\n' + studioCheckDestination + '\n', ); diff --git a/composition-go/index.global.js b/composition-go/index.global.js index a25c2939cf..0c166a7df6 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -11,17 +11,17 @@ class URL { } } } -"use strict";var shim=(()=>{var zP=Object.create;var Oc=Object.defineProperty,WP=Object.defineProperties,XP=Object.getOwnPropertyDescriptor,HP=Object.getOwnPropertyDescriptors,ZP=Object.getOwnPropertyNames,Xv=Object.getOwnPropertySymbols,ex=Object.getPrototypeOf,Hv=Object.prototype.hasOwnProperty,tx=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,py=(e,t,n)=>t in e?Oc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))Hv.call(t,n)&&py(e,n,t[n]);if(Xv)for(var n of Xv(t))tx.call(t,n)&&py(e,n,t[n]);return e},U=(e,t)=>WP(e,HP(t));var j=(e,t)=>()=>(e&&(t=e(e=0)),t);var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ya=(e,t)=>{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},Zv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ZP(t))!Hv.call(e,i)&&i!==n&&Oc(e,i,{get:()=>t[i],enumerable:!(r=XP(t,i))||r.enumerable});return e};var Ap=(e,t,n)=>(n=e!=null?zP(ex(e)):{},Zv(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),ae=e=>Zv(Oc({},"__esModule",{value:!0}),e);var S=(e,t,n)=>(py(e,typeof t!="symbol"?t+"":t,n),n);var ar=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(c){i(c)}},s=u=>{try{a(n.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});var p=j(()=>{"use strict"});var g={};Ya(g,{_debugEnd:()=>$_,_debugProcess:()=>V_,_events:()=>rb,_eventsCount:()=>ib,_exiting:()=>I_,_fatalExceptions:()=>M_,_getActiveHandles:()=>S_,_getActiveRequests:()=>b_,_kill:()=>O_,_linkedBinding:()=>E_,_maxListeners:()=>nb,_preload_modules:()=>Z_,_rawDebug:()=>T_,_startProfilerIdleNotifier:()=>j_,_stopProfilerIdleNotifier:()=>G_,_tickCallback:()=>B_,abort:()=>Y_,addListener:()=>ob,allowedNodeEnvironmentFlags:()=>P_,arch:()=>i_,argv:()=>a_,argv0:()=>H_,assert:()=>x_,binding:()=>p_,chdir:()=>h_,config:()=>v_,cpuUsage:()=>Rp,cwd:()=>m_,debugPort:()=>X_,default:()=>mb,dlopen:()=>__,domain:()=>g_,emit:()=>lb,emitWarning:()=>d_,env:()=>s_,execArgv:()=>u_,execPath:()=>W_,exit:()=>R_,features:()=>k_,hasUncaughtExceptionCaptureCallback:()=>C_,hrtime:()=>Fp,kill:()=>F_,listeners:()=>fb,memoryUsage:()=>w_,moduleLoadList:()=>N_,nextTick:()=>t_,off:()=>ab,on:()=>Zi,once:()=>sb,openStdin:()=>L_,pid:()=>J_,platform:()=>o_,ppid:()=>z_,prependListener:()=>db,prependOnceListener:()=>pb,reallyExit:()=>D_,release:()=>y_,removeAllListeners:()=>cb,removeListener:()=>ub,resourceUsage:()=>A_,setSourceMapsEnabled:()=>eb,setUncaughtExceptionCaptureCallback:()=>U_,stderr:()=>K_,stdin:()=>Q_,stdout:()=>q_,title:()=>r_,umask:()=>f_,uptime:()=>tb,version:()=>c_,versions:()=>l_});function hy(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function nx(){!Ja||!zs||(Ja=!1,zs.length?Hi=zs.concat(Hi):wp=-1,Hi.length&&e_())}function e_(){if(!Ja){var e=setTimeout(nx,0);Ja=!0;for(var t=Hi.length;t;){for(zs=Hi,Hi=[];++wp1)for(var n=1;n{"use strict";p();m();f();Hi=[],Ja=!1,wp=-1;n_.prototype.run=function(){this.fun.apply(null,this.array)};r_="browser",i_="x64",o_="browser",s_={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},a_=["/usr/bin/node"],u_=[],c_="v16.8.0",l_={},d_=function(e,t){console.warn((t?t+": ":"")+e)},p_=function(e){hy("binding")},f_=function(e){return 0},m_=function(){return"/"},h_=function(e){},y_={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};T_=Yn,N_=[];g_={},I_=!1,v_={};D_=Yn,O_=Yn,Rp=function(){return{}},A_=Rp,w_=Rp,F_=Yn,R_=Yn,L_=Yn,P_={};k_={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},M_=Yn,U_=Yn;B_=Yn,V_=Yn,$_=Yn,j_=Yn,G_=Yn,q_=void 0,K_=void 0,Q_=void 0,Y_=Yn,J_=2,z_=1,W_="/bin/usr/node",X_=9229,H_="node",Z_=[],eb=Yn,ps={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};ps.now===void 0&&(fy=Date.now(),ps.timing&&ps.timing.navigationStart&&(fy=ps.timing.navigationStart),ps.now=()=>Date.now()-fy);my=1e9;Fp.bigint=function(e){var t=Fp(e);return typeof BigInt=="undefined"?t[0]*my+t[1]:BigInt(t[0]*my)+BigInt(t[1])};nb=10,rb={},ib=0;ob=Zi,sb=Zi,ab=Zi,ub=Zi,cb=Zi,lb=Yn,db=Zi,pb=Zi;mb={version:c_,versions:l_,arch:i_,platform:o_,release:y_,_rawDebug:T_,moduleLoadList:N_,binding:p_,_linkedBinding:E_,_events:rb,_eventsCount:ib,_maxListeners:nb,on:Zi,addListener:ob,once:sb,off:ab,removeListener:ub,removeAllListeners:cb,emit:lb,prependListener:db,prependOnceListener:pb,listeners:fb,domain:g_,_exiting:I_,config:v_,dlopen:__,uptime:tb,_getActiveRequests:b_,_getActiveHandles:S_,reallyExit:D_,_kill:O_,cpuUsage:Rp,resourceUsage:A_,memoryUsage:w_,kill:F_,exit:R_,openStdin:L_,allowedNodeEnvironmentFlags:P_,assert:x_,features:k_,_fatalExceptions:M_,setUncaughtExceptionCaptureCallback:U_,hasUncaughtExceptionCaptureCallback:C_,emitWarning:d_,nextTick:t_,_tickCallback:B_,_debugProcess:V_,_debugEnd:$_,_startProfilerIdleNotifier:j_,_stopProfilerIdleNotifier:G_,stdout:q_,stdin:Q_,stderr:K_,abort:Y_,umask:f_,chdir:h_,cwd:m_,env:s_,title:r_,argv:a_,execArgv:u_,pid:J_,ppid:z_,execPath:W_,debugPort:X_,hrtime:Fp,argv0:H_,_preload_modules:Z_,setSourceMapsEnabled:eb}});var f=j(()=>{"use strict";hb()});function rx(){if(yb)return Ac;yb=!0,Ac.byteLength=a,Ac.toByteArray=c,Ac.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var D=N.indexOf("=");D===-1&&(D=E);var A=D===E?0:4-D%4;return[D,A]}function a(N){var E=s(N),D=E[0],A=E[1];return(D+A)*3/4-A}function u(N,E,D){return(E+D)*3/4-D}function c(N){var E,D=s(N),A=D[0],F=D[1],Y=new n(u(N,A,F)),J=0,Z=F>0?A-4:A,X;for(X=0;X>16&255,Y[J++]=E>>8&255,Y[J++]=E&255;return F===2&&(E=t[N.charCodeAt(X)]<<2|t[N.charCodeAt(X+1)]>>4,Y[J++]=E&255),F===1&&(E=t[N.charCodeAt(X)]<<10|t[N.charCodeAt(X+1)]<<4|t[N.charCodeAt(X+2)]>>2,Y[J++]=E>>8&255,Y[J++]=E&255),Y}function l(N){return e[N>>18&63]+e[N>>12&63]+e[N>>6&63]+e[N&63]}function d(N,E,D){for(var A,F=[],Y=E;YZ?Z:J+Y));return A===1?(E=N[D-1],F.push(e[E>>2]+e[E<<4&63]+"==")):A===2&&(E=(N[D-2]<<8)+N[D-1],F.push(e[E>>10]+e[E>>4&63]+e[E<<2&63]+"=")),F.join("")}return Ac}function ix(){if(Tb)return Lp;Tb=!0;return Lp.read=function(e,t,n,r,i){var o,s,a=i*8-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,N=e[t+d];for(d+=h,o=N&(1<<-l)-1,N>>=-l,l+=a;l>0;o=o*256+e[t+d],d+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=s*256+e[t+d],d+=h,l-=8);if(o===0)o=1-c;else{if(o===u)return s?NaN:(N?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-c}return(N?-1:1)*s*Math.pow(2,o-r)},Lp.write=function(e,t,n,r,i,o){var s,a,u,c=o*8-i-1,l=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=r?0:o-1,E=r?1:-1,D=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+d>=1?t+=h/u:t+=h*Math.pow(2,1-d),t*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,i),s=s+d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+N]=a&255,N+=E,a/=256,i-=8);for(s=s<0;e[n+N]=s&255,N+=E,s/=256,c-=8);e[n+N-E]|=D*128},Lp}function ox(){if(Nb)return Ws;Nb=!0;let e=rx(),t=ix(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ws.Buffer=s,Ws.SlowBuffer=F,Ws.INSPECT_MAX_BYTES=50;let r=2147483647;Ws.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let b=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(b,y),b.foo()===42}catch(b){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(b){if(b>r)throw new RangeError('The value "'+b+'" is invalid for option "size"');let y=new Uint8Array(b);return Object.setPrototypeOf(y,s.prototype),y}function s(b,y,T){if(typeof b=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(b)}return a(b,y,T)}s.poolSize=8192;function a(b,y,T){if(typeof b=="string")return d(b,y);if(ArrayBuffer.isView(b))return N(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(bt(b,ArrayBuffer)||b&&bt(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(bt(b,SharedArrayBuffer)||b&&bt(b.buffer,SharedArrayBuffer)))return E(b,y,T);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let O=b.valueOf&&b.valueOf();if(O!=null&&O!==b)return s.from(O,y,T);let L=D(b);if(L)return L;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return s.from(b[Symbol.toPrimitive]("string"),y,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}s.from=function(b,y,T){return a(b,y,T)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function c(b,y,T){return u(b),b<=0?o(b):y!==void 0?typeof T=="string"?o(b).fill(y,T):o(b).fill(y):o(b)}s.alloc=function(b,y,T){return c(b,y,T)};function l(b){return u(b),o(b<0?0:A(b)|0)}s.allocUnsafe=function(b){return l(b)},s.allocUnsafeSlow=function(b){return l(b)};function d(b,y){if((typeof y!="string"||y==="")&&(y="utf8"),!s.isEncoding(y))throw new TypeError("Unknown encoding: "+y);let T=Y(b,y)|0,O=o(T),L=O.write(b,y);return L!==T&&(O=O.slice(0,L)),O}function h(b){let y=b.length<0?0:A(b.length)|0,T=o(y);for(let O=0;O=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return b|0}function F(b){return+b!=b&&(b=0),s.alloc(+b)}s.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==s.prototype},s.compare=function(y,T){if(bt(y,Uint8Array)&&(y=s.from(y,y.offset,y.byteLength)),bt(T,Uint8Array)&&(T=s.from(T,T.offset,T.byteLength)),!s.isBuffer(y)||!s.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===T)return 0;let O=y.length,L=T.length;for(let V=0,W=Math.min(O,L);VL.length?(s.isBuffer(W)||(W=s.from(W)),W.copy(L,V)):Uint8Array.prototype.set.call(L,W,V);else if(s.isBuffer(W))W.copy(L,V);else throw new TypeError('"list" argument must be an Array of Buffers');V+=W.length}return L};function Y(b,y){if(s.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||bt(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);let T=b.length,O=arguments.length>2&&arguments[2]===!0;if(!O&&T===0)return 0;let L=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Qa(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return Dc(b).length;default:if(L)return O?-1:Qa(b).length;y=(""+y).toLowerCase(),L=!0}}s.byteLength=Y;function J(b,y,T){let O=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,y>>>=0,T<=y))return"";for(b||(b="utf8");;)switch(b){case"hex":return ls(this,y,T);case"utf8":case"utf-8":return In(this,y,T);case"ascii":return ii(this,y,T);case"latin1":case"binary":return Qs(this,y,T);case"base64":return or(this,y,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bi(this,y,T);default:if(O)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),O=!0}}s.prototype._isBuffer=!0;function Z(b,y,T){let O=b[y];b[y]=b[T],b[T]=O}s.prototype.swap16=function(){let y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;TT&&(y+=" ... "),""},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(y,T,O,L,V){if(bt(y,Uint8Array)&&(y=s.from(y,y.offset,y.byteLength)),!s.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(T===void 0&&(T=0),O===void 0&&(O=y?y.length:0),L===void 0&&(L=0),V===void 0&&(V=this.length),T<0||O>y.length||L<0||V>this.length)throw new RangeError("out of range index");if(L>=V&&T>=O)return 0;if(L>=V)return-1;if(T>=O)return 1;if(T>>>=0,O>>>=0,L>>>=0,V>>>=0,this===y)return 0;let W=V-L,ze=O-T,en=Math.min(W,ze),Bt=this.slice(L,V),tn=y.slice(T,O);for(let St=0;St2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,sr(T)&&(T=L?0:b.length-1),T<0&&(T=b.length+T),T>=b.length){if(L)return-1;T=b.length-1}else if(T<0)if(L)T=0;else return-1;if(typeof y=="string"&&(y=s.from(y,O)),s.isBuffer(y))return y.length===0?-1:_e(b,y,T,O,L);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(b,y,T):Uint8Array.prototype.lastIndexOf.call(b,y,T):_e(b,[y],T,O,L);throw new TypeError("val must be string, number or Buffer")}function _e(b,y,T,O,L){let V=1,W=b.length,ze=y.length;if(O!==void 0&&(O=String(O).toLowerCase(),O==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le")){if(b.length<2||y.length<2)return-1;V=2,W/=2,ze/=2,T/=2}function en(tn,St){return V===1?tn[St]:tn.readUInt16BE(St*V)}let Bt;if(L){let tn=-1;for(Bt=T;BtW&&(T=W-ze),Bt=T;Bt>=0;Bt--){let tn=!0;for(let St=0;StL&&(O=L)):O=L;let V=y.length;O>V/2&&(O=V/2);let W;for(W=0;W>>0,isFinite(O)?(O=O>>>0,L===void 0&&(L="utf8")):(L=O,O=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let V=this.length-T;if((O===void 0||O>V)&&(O=V),y.length>0&&(O<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");let W=!1;for(;;)switch(L){case"hex":return ut(this,y,T,O);case"utf8":case"utf-8":return kt(this,y,T,O);case"ascii":case"latin1":case"binary":return Q(this,y,T,O);case"base64":return Ie(this,y,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qt(this,y,T,O);default:if(W)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),W=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function or(b,y,T){return y===0&&T===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(y,T))}function In(b,y,T){T=Math.min(b.length,T);let O=[],L=y;for(;L239?4:V>223?3:V>191?2:1;if(L+ze<=T){let en,Bt,tn,St;switch(ze){case 1:V<128&&(W=V);break;case 2:en=b[L+1],(en&192)===128&&(St=(V&31)<<6|en&63,St>127&&(W=St));break;case 3:en=b[L+1],Bt=b[L+2],(en&192)===128&&(Bt&192)===128&&(St=(V&15)<<12|(en&63)<<6|Bt&63,St>2047&&(St<55296||St>57343)&&(W=St));break;case 4:en=b[L+1],Bt=b[L+2],tn=b[L+3],(en&192)===128&&(Bt&192)===128&&(tn&192)===128&&(St=(V&15)<<18|(en&63)<<12|(Bt&63)<<6|tn&63,St>65535&&St<1114112&&(W=St))}}W===null?(W=65533,ze=1):W>65535&&(W-=65536,O.push(W>>>10&1023|55296),W=56320|W&1023),O.push(W),L+=ze}return cs(O)}let _r=4096;function cs(b){let y=b.length;if(y<=_r)return String.fromCharCode.apply(String,b);let T="",O=0;for(;OO)&&(T=O);let L="";for(let V=y;VO&&(y=O),T<0?(T+=O,T<0&&(T=0)):T>O&&(T=O),TT)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(y,T,O){y=y>>>0,T=T>>>0,O||vt(y,T,this.length);let L=this[y],V=1,W=0;for(;++W>>0,T=T>>>0,O||vt(y,T,this.length);let L=this[y+--T],V=1;for(;T>0&&(V*=256);)L+=this[y+--T]*V;return L},s.prototype.readUint8=s.prototype.readUInt8=function(y,T){return y=y>>>0,T||vt(y,1,this.length),this[y]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(y,T){return y=y>>>0,T||vt(y,2,this.length),this[y]|this[y+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(y,T){return y=y>>>0,T||vt(y,2,this.length),this[y]<<8|this[y+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},s.prototype.readBigUInt64LE=ds(function(y){y=y>>>0,We(y,"offset");let T=this[y],O=this[y+7];(T===void 0||O===void 0)&>(y,this.length-8);let L=T+this[++y]*Ft(2,8)+this[++y]*Ft(2,16)+this[++y]*Ft(2,24),V=this[++y]+this[++y]*Ft(2,8)+this[++y]*Ft(2,16)+O*Ft(2,24);return BigInt(L)+(BigInt(V)<>>0,We(y,"offset");let T=this[y],O=this[y+7];(T===void 0||O===void 0)&>(y,this.length-8);let L=T*Ft(2,24)+this[++y]*Ft(2,16)+this[++y]*Ft(2,8)+this[++y],V=this[++y]*Ft(2,24)+this[++y]*Ft(2,16)+this[++y]*Ft(2,8)+O;return(BigInt(L)<>>0,T=T>>>0,O||vt(y,T,this.length);let L=this[y],V=1,W=0;for(;++W=V&&(L-=Math.pow(2,8*T)),L},s.prototype.readIntBE=function(y,T,O){y=y>>>0,T=T>>>0,O||vt(y,T,this.length);let L=T,V=1,W=this[y+--L];for(;L>0&&(V*=256);)W+=this[y+--L]*V;return V*=128,W>=V&&(W-=Math.pow(2,8*T)),W},s.prototype.readInt8=function(y,T){return y=y>>>0,T||vt(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},s.prototype.readInt16LE=function(y,T){y=y>>>0,T||vt(y,2,this.length);let O=this[y]|this[y+1]<<8;return O&32768?O|4294901760:O},s.prototype.readInt16BE=function(y,T){y=y>>>0,T||vt(y,2,this.length);let O=this[y+1]|this[y]<<8;return O&32768?O|4294901760:O},s.prototype.readInt32LE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},s.prototype.readInt32BE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},s.prototype.readBigInt64LE=ds(function(y){y=y>>>0,We(y,"offset");let T=this[y],O=this[y+7];(T===void 0||O===void 0)&>(y,this.length-8);let L=this[y+4]+this[y+5]*Ft(2,8)+this[y+6]*Ft(2,16)+(O<<24);return(BigInt(L)<>>0,We(y,"offset");let T=this[y],O=this[y+7];(T===void 0||O===void 0)&>(y,this.length-8);let L=(T<<24)+this[++y]*Ft(2,16)+this[++y]*Ft(2,8)+this[++y];return(BigInt(L)<>>0,T||vt(y,4,this.length),t.read(this,y,!0,23,4)},s.prototype.readFloatBE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),t.read(this,y,!1,23,4)},s.prototype.readDoubleLE=function(y,T){return y=y>>>0,T||vt(y,8,this.length),t.read(this,y,!0,52,8)},s.prototype.readDoubleBE=function(y,T){return y=y>>>0,T||vt(y,8,this.length),t.read(this,y,!1,52,8)};function yn(b,y,T,O,L,V){if(!s.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>L||yb.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(y,T,O,L){if(y=+y,T=T>>>0,O=O>>>0,!L){let ze=Math.pow(2,8*O)-1;yn(this,y,T,O,ze,0)}let V=1,W=0;for(this[T]=y&255;++W>>0,O=O>>>0,!L){let ze=Math.pow(2,8*O)-1;yn(this,y,T,O,ze,0)}let V=O-1,W=1;for(this[T+V]=y&255;--V>=0&&(W*=256);)this[T+V]=y/W&255;return T+O},s.prototype.writeUint8=s.prototype.writeUInt8=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,1,255,0),this[T]=y&255,T+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,2,65535,0),this[T]=y&255,this[T+1]=y>>>8,T+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,2,65535,0),this[T]=y>>>8,this[T+1]=y&255,T+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,4,4294967295,0),this[T+3]=y>>>24,this[T+2]=y>>>16,this[T+1]=y>>>8,this[T]=y&255,T+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,4,4294967295,0),this[T]=y>>>24,this[T+1]=y>>>16,this[T+2]=y>>>8,this[T+3]=y&255,T+4};function K(b,y,T,O,L){ht(y,O,L,b,T,7);let V=Number(y&BigInt(4294967295));b[T++]=V,V=V>>8,b[T++]=V,V=V>>8,b[T++]=V,V=V>>8,b[T++]=V;let W=Number(y>>BigInt(32)&BigInt(4294967295));return b[T++]=W,W=W>>8,b[T++]=W,W=W>>8,b[T++]=W,W=W>>8,b[T++]=W,T}function ue(b,y,T,O,L){ht(y,O,L,b,T,7);let V=Number(y&BigInt(4294967295));b[T+7]=V,V=V>>8,b[T+6]=V,V=V>>8,b[T+5]=V,V=V>>8,b[T+4]=V;let W=Number(y>>BigInt(32)&BigInt(4294967295));return b[T+3]=W,W=W>>8,b[T+2]=W,W=W>>8,b[T+1]=W,W=W>>8,b[T]=W,T+8}s.prototype.writeBigUInt64LE=ds(function(y,T=0){return K(this,y,T,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ds(function(y,T=0){return ue(this,y,T,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(y,T,O,L){if(y=+y,T=T>>>0,!L){let en=Math.pow(2,8*O-1);yn(this,y,T,O,en-1,-en)}let V=0,W=1,ze=0;for(this[T]=y&255;++V>0)-ze&255;return T+O},s.prototype.writeIntBE=function(y,T,O,L){if(y=+y,T=T>>>0,!L){let en=Math.pow(2,8*O-1);yn(this,y,T,O,en-1,-en)}let V=O-1,W=1,ze=0;for(this[T+V]=y&255;--V>=0&&(W*=256);)y<0&&ze===0&&this[T+V+1]!==0&&(ze=1),this[T+V]=(y/W>>0)-ze&255;return T+O},s.prototype.writeInt8=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,1,127,-128),y<0&&(y=255+y+1),this[T]=y&255,T+1},s.prototype.writeInt16LE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,2,32767,-32768),this[T]=y&255,this[T+1]=y>>>8,T+2},s.prototype.writeInt16BE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,2,32767,-32768),this[T]=y>>>8,this[T+1]=y&255,T+2},s.prototype.writeInt32LE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,4,2147483647,-2147483648),this[T]=y&255,this[T+1]=y>>>8,this[T+2]=y>>>16,this[T+3]=y>>>24,T+4},s.prototype.writeInt32BE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[T]=y>>>24,this[T+1]=y>>>16,this[T+2]=y>>>8,this[T+3]=y&255,T+4},s.prototype.writeBigInt64LE=ds(function(y,T=0){return K(this,y,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ds(function(y,T=0){return ue(this,y,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ne(b,y,T,O,L,V){if(T+O>b.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function ce(b,y,T,O,L){return y=+y,T=T>>>0,L||ne(b,y,T,4),t.write(b,y,T,O,23,4),T+4}s.prototype.writeFloatLE=function(y,T,O){return ce(this,y,T,!0,O)},s.prototype.writeFloatBE=function(y,T,O){return ce(this,y,T,!1,O)};function ct(b,y,T,O,L){return y=+y,T=T>>>0,L||ne(b,y,T,8),t.write(b,y,T,O,52,8),T+8}s.prototype.writeDoubleLE=function(y,T,O){return ct(this,y,T,!0,O)},s.prototype.writeDoubleBE=function(y,T,O){return ct(this,y,T,!1,O)},s.prototype.copy=function(y,T,O,L){if(!s.isBuffer(y))throw new TypeError("argument should be a Buffer");if(O||(O=0),!L&&L!==0&&(L=this.length),T>=y.length&&(T=y.length),T||(T=0),L>0&&L=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),y.length-T>>0,O=O===void 0?this.length:O>>>0,y||(y=0);let V;if(typeof y=="number")for(V=T;VFt(2,32)?L=ve(String(T)):typeof T=="bigint"&&(L=String(T),(T>Ft(BigInt(2),BigInt(32))||T<-Ft(BigInt(2),BigInt(32)))&&(L=ve(L)),L+="n"),O+=` It must be ${y}. Received ${L}`,O},RangeError);function ve(b){let y="",T=b.length,O=b[0]==="-"?1:0;for(;T>=O+4;T-=3)y=`_${b.slice(T-3,T)}${y}`;return`${b.slice(0,T)}${y}`}function Fe(b,y,T){We(y,"offset"),(b[y]===void 0||b[y+T]===void 0)&>(y,b.length-(T+1))}function ht(b,y,T,O,L,V){if(b>T||b3?y===0||y===BigInt(0)?ze=`>= 0${W} and < 2${W} ** ${(V+1)*8}${W}`:ze=`>= -(2${W} ** ${(V+1)*8-1}${W}) and < 2 ** ${(V+1)*8-1}${W}`:ze=`>= ${y}${W} and <= ${T}${W}`,new M.ERR_OUT_OF_RANGE("value",ze,b)}Fe(O,L,V)}function We(b,y){if(typeof b!="number")throw new M.ERR_INVALID_ARG_TYPE(y,"number",b)}function gt(b,y,T){throw Math.floor(b)!==b?(We(b,T),new M.ERR_OUT_OF_RANGE(T||"offset","an integer",b)):y<0?new M.ERR_BUFFER_OUT_OF_BOUNDS:new M.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${y}`,b)}let Ys=/[^+/0-9A-Za-z-_]/g;function Sp(b){if(b=b.split("=")[0],b=b.trim().replace(Ys,""),b.length<2)return"";for(;b.length%4!==0;)b=b+"=";return b}function Qa(b,y){y=y||1/0;let T,O=b.length,L=null,V=[];for(let W=0;W55295&&T<57344){if(!L){if(T>56319){(y-=3)>-1&&V.push(239,191,189);continue}else if(W+1===O){(y-=3)>-1&&V.push(239,191,189);continue}L=T;continue}if(T<56320){(y-=3)>-1&&V.push(239,191,189),L=T;continue}T=(L-55296<<10|T-56320)+65536}else L&&(y-=3)>-1&&V.push(239,191,189);if(L=null,T<128){if((y-=1)<0)break;V.push(T)}else if(T<2048){if((y-=2)<0)break;V.push(T>>6|192,T&63|128)}else if(T<65536){if((y-=3)<0)break;V.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((y-=4)<0)break;V.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return V}function Dp(b){let y=[];for(let T=0;T>8,L=T%256,V.push(L),V.push(O);return V}function Dc(b){return e.toByteArray(Sp(b))}function Js(b,y,T,O){let L;for(L=0;L=y.length||L>=b.length);++L)y[L+T]=b[L];return L}function bt(b,y){return b instanceof y||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===y.name}function sr(b){return b!==b}let YP=function(){let b="0123456789abcdef",y=new Array(256);for(let T=0;T<16;++T){let O=T*16;for(let L=0;L<16;++L)y[O+L]=b[T]+b[L]}return y}();function ds(b){return typeof BigInt=="undefined"?JP:b}function JP(){throw new Error("BigInt not supported")}return Ws}var Ac,yb,Lp,Tb,Ws,Nb,Xs,I,zz,Wz,Eb=j(()=>{"use strict";p();m();f();Ac={},yb=!1;Lp={},Tb=!1;Ws={},Nb=!1;Xs=ox();Xs.Buffer;Xs.SlowBuffer;Xs.INSPECT_MAX_BYTES;Xs.kMaxLength;I=Xs.Buffer,zz=Xs.INSPECT_MAX_BYTES,Wz=Xs.kMaxLength});var m=j(()=>{"use strict";Eb()});var gb,Ib,vb=j(()=>{"use strict";p();m();f();gb="16.7.1",Ib=Object.freeze({major:16,minor:7,patch:1,preReleaseTag:null})});function Se(e,t){if(!!!e)throw new Error(t)}var ur=j(()=>{"use strict";p();m();f()});function Jn(e){return typeof(e==null?void 0:e.then)=="function"}var Pp=j(()=>{"use strict";p();m();f()});function nn(e){return typeof e=="object"&&e!==null}var Si=j(()=>{"use strict";p();m();f()});function Xe(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}var zn=j(()=>{"use strict";p();m();f()});function fs(e,t){let n=0,r=1;for(let i of e.body.matchAll(sx)){if(typeof i.index=="number"||Xe(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var sx,xp=j(()=>{"use strict";p();m();f();zn();sx=/\r\n|[\n\r]/g});function wc(e){return za(e.source,fs(e.source,e.start))}function za(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,u=t.column+a,c=`${e.name}:${s}:${u} +"use strict";var shim=(()=>{var zP=Object.create;var Oc=Object.defineProperty,WP=Object.defineProperties,HP=Object.getOwnPropertyDescriptor,XP=Object.getOwnPropertyDescriptors,ZP=Object.getOwnPropertyNames,Hv=Object.getOwnPropertySymbols,ex=Object.getPrototypeOf,Xv=Object.prototype.hasOwnProperty,tx=Object.prototype.propertyIsEnumerable;var Ft=Math.pow,py=(e,t,n)=>t in e?Oc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||(t={}))Xv.call(t,n)&&py(e,n,t[n]);if(Hv)for(var n of Hv(t))tx.call(t,n)&&py(e,n,t[n]);return e},U=(e,t)=>WP(e,XP(t));var j=(e,t)=>()=>(e&&(t=e(e=0)),t);var L=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ya=(e,t)=>{for(var n in t)Oc(e,n,{get:t[n],enumerable:!0})},Zv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ZP(t))!Xv.call(e,i)&&i!==n&&Oc(e,i,{get:()=>t[i],enumerable:!(r=HP(t,i))||r.enumerable});return e};var Ap=(e,t,n)=>(n=e!=null?zP(ex(e)):{},Zv(t||!e||!e.__esModule?Oc(n,"default",{value:e,enumerable:!0}):n,e)),ae=e=>Zv(Oc({},"__esModule",{value:!0}),e);var S=(e,t,n)=>(py(e,typeof t!="symbol"?t+"":t,n),n);var ar=(e,t,n)=>new Promise((r,i)=>{var o=u=>{try{a(n.next(u))}catch(c){i(c)}},s=u=>{try{a(n.throw(u))}catch(c){i(c)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(o,s);a((n=n.apply(e,t)).next())});var p=j(()=>{"use strict"});var g={};Ya(g,{_debugEnd:()=>$_,_debugProcess:()=>V_,_events:()=>rb,_eventsCount:()=>ib,_exiting:()=>I_,_fatalExceptions:()=>M_,_getActiveHandles:()=>S_,_getActiveRequests:()=>b_,_kill:()=>O_,_linkedBinding:()=>E_,_maxListeners:()=>nb,_preload_modules:()=>Z_,_rawDebug:()=>T_,_startProfilerIdleNotifier:()=>j_,_stopProfilerIdleNotifier:()=>G_,_tickCallback:()=>B_,abort:()=>Y_,addListener:()=>ob,allowedNodeEnvironmentFlags:()=>P_,arch:()=>i_,argv:()=>a_,argv0:()=>X_,assert:()=>x_,binding:()=>p_,chdir:()=>h_,config:()=>v_,cpuUsage:()=>Lp,cwd:()=>m_,debugPort:()=>H_,default:()=>mb,dlopen:()=>__,domain:()=>g_,emit:()=>lb,emitWarning:()=>d_,env:()=>s_,execArgv:()=>u_,execPath:()=>W_,exit:()=>L_,features:()=>k_,hasUncaughtExceptionCaptureCallback:()=>C_,hrtime:()=>Fp,kill:()=>F_,listeners:()=>fb,memoryUsage:()=>w_,moduleLoadList:()=>N_,nextTick:()=>t_,off:()=>ab,on:()=>Zi,once:()=>sb,openStdin:()=>R_,pid:()=>J_,platform:()=>o_,ppid:()=>z_,prependListener:()=>db,prependOnceListener:()=>pb,reallyExit:()=>D_,release:()=>y_,removeAllListeners:()=>cb,removeListener:()=>ub,resourceUsage:()=>A_,setSourceMapsEnabled:()=>eb,setUncaughtExceptionCaptureCallback:()=>U_,stderr:()=>K_,stdin:()=>Q_,stdout:()=>q_,title:()=>r_,umask:()=>f_,uptime:()=>tb,version:()=>c_,versions:()=>l_});function hy(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function nx(){!Ja||!zs||(Ja=!1,zs.length?Xi=zs.concat(Xi):wp=-1,Xi.length&&e_())}function e_(){if(!Ja){var e=setTimeout(nx,0);Ja=!0;for(var t=Xi.length;t;){for(zs=Xi,Xi=[];++wp1)for(var n=1;n{"use strict";p();m();f();Xi=[],Ja=!1,wp=-1;n_.prototype.run=function(){this.fun.apply(null,this.array)};r_="browser",i_="x64",o_="browser",s_={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},a_=["/usr/bin/node"],u_=[],c_="v16.8.0",l_={},d_=function(e,t){console.warn((t?t+": ":"")+e)},p_=function(e){hy("binding")},f_=function(e){return 0},m_=function(){return"/"},h_=function(e){},y_={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};T_=Yn,N_=[];g_={},I_=!1,v_={};D_=Yn,O_=Yn,Lp=function(){return{}},A_=Lp,w_=Lp,F_=Yn,L_=Yn,R_=Yn,P_={};k_={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},M_=Yn,U_=Yn;B_=Yn,V_=Yn,$_=Yn,j_=Yn,G_=Yn,q_=void 0,K_=void 0,Q_=void 0,Y_=Yn,J_=2,z_=1,W_="/bin/usr/node",H_=9229,X_="node",Z_=[],eb=Yn,fs={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};fs.now===void 0&&(fy=Date.now(),fs.timing&&fs.timing.navigationStart&&(fy=fs.timing.navigationStart),fs.now=()=>Date.now()-fy);my=1e9;Fp.bigint=function(e){var t=Fp(e);return typeof BigInt=="undefined"?t[0]*my+t[1]:BigInt(t[0]*my)+BigInt(t[1])};nb=10,rb={},ib=0;ob=Zi,sb=Zi,ab=Zi,ub=Zi,cb=Zi,lb=Yn,db=Zi,pb=Zi;mb={version:c_,versions:l_,arch:i_,platform:o_,release:y_,_rawDebug:T_,moduleLoadList:N_,binding:p_,_linkedBinding:E_,_events:rb,_eventsCount:ib,_maxListeners:nb,on:Zi,addListener:ob,once:sb,off:ab,removeListener:ub,removeAllListeners:cb,emit:lb,prependListener:db,prependOnceListener:pb,listeners:fb,domain:g_,_exiting:I_,config:v_,dlopen:__,uptime:tb,_getActiveRequests:b_,_getActiveHandles:S_,reallyExit:D_,_kill:O_,cpuUsage:Lp,resourceUsage:A_,memoryUsage:w_,kill:F_,exit:L_,openStdin:R_,allowedNodeEnvironmentFlags:P_,assert:x_,features:k_,_fatalExceptions:M_,setUncaughtExceptionCaptureCallback:U_,hasUncaughtExceptionCaptureCallback:C_,emitWarning:d_,nextTick:t_,_tickCallback:B_,_debugProcess:V_,_debugEnd:$_,_startProfilerIdleNotifier:j_,_stopProfilerIdleNotifier:G_,stdout:q_,stdin:Q_,stderr:K_,abort:Y_,umask:f_,chdir:h_,cwd:m_,env:s_,title:r_,argv:a_,execArgv:u_,pid:J_,ppid:z_,execPath:W_,debugPort:H_,hrtime:Fp,argv0:X_,_preload_modules:Z_,setSourceMapsEnabled:eb}});var f=j(()=>{"use strict";hb()});function rx(){if(yb)return Ac;yb=!0,Ac.byteLength=a,Ac.toByteArray=c,Ac.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var D=N.indexOf("=");D===-1&&(D=E);var A=D===E?0:4-D%4;return[D,A]}function a(N){var E=s(N),D=E[0],A=E[1];return(D+A)*3/4-A}function u(N,E,D){return(E+D)*3/4-D}function c(N){var E,D=s(N),A=D[0],F=D[1],Y=new n(u(N,A,F)),J=0,Z=F>0?A-4:A,H;for(H=0;H>16&255,Y[J++]=E>>8&255,Y[J++]=E&255;return F===2&&(E=t[N.charCodeAt(H)]<<2|t[N.charCodeAt(H+1)]>>4,Y[J++]=E&255),F===1&&(E=t[N.charCodeAt(H)]<<10|t[N.charCodeAt(H+1)]<<4|t[N.charCodeAt(H+2)]>>2,Y[J++]=E>>8&255,Y[J++]=E&255),Y}function l(N){return e[N>>18&63]+e[N>>12&63]+e[N>>6&63]+e[N&63]}function d(N,E,D){for(var A,F=[],Y=E;YZ?Z:J+Y));return A===1?(E=N[D-1],F.push(e[E>>2]+e[E<<4&63]+"==")):A===2&&(E=(N[D-2]<<8)+N[D-1],F.push(e[E>>10]+e[E>>4&63]+e[E<<2&63]+"=")),F.join("")}return Ac}function ix(){if(Tb)return Rp;Tb=!0;return Rp.read=function(e,t,n,r,i){var o,s,a=i*8-r-1,u=(1<>1,l=-7,d=n?i-1:0,h=n?-1:1,N=e[t+d];for(d+=h,o=N&(1<<-l)-1,N>>=-l,l+=a;l>0;o=o*256+e[t+d],d+=h,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=s*256+e[t+d],d+=h,l-=8);if(o===0)o=1-c;else{if(o===u)return s?NaN:(N?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-c}return(N?-1:1)*s*Math.pow(2,o-r)},Rp.write=function(e,t,n,r,i,o){var s,a,u,c=o*8-i-1,l=(1<>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=r?0:o-1,E=r?1:-1,D=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+d>=1?t+=h/u:t+=h*Math.pow(2,1-d),t*u>=2&&(s++,u/=2),s+d>=l?(a=0,s=l):s+d>=1?(a=(t*u-1)*Math.pow(2,i),s=s+d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[n+N]=a&255,N+=E,a/=256,i-=8);for(s=s<0;e[n+N]=s&255,N+=E,s/=256,c-=8);e[n+N-E]|=D*128},Rp}function ox(){if(Nb)return Ws;Nb=!0;let e=rx(),t=ix(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ws.Buffer=s,Ws.SlowBuffer=F,Ws.INSPECT_MAX_BYTES=50;let r=2147483647;Ws.kMaxLength=r,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{let b=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(b,y),b.foo()===42}catch(b){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(b){if(b>r)throw new RangeError('The value "'+b+'" is invalid for option "size"');let y=new Uint8Array(b);return Object.setPrototypeOf(y,s.prototype),y}function s(b,y,T){if(typeof b=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return l(b)}return a(b,y,T)}s.poolSize=8192;function a(b,y,T){if(typeof b=="string")return d(b,y);if(ArrayBuffer.isView(b))return N(b);if(b==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b);if(bt(b,ArrayBuffer)||b&&bt(b.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(bt(b,SharedArrayBuffer)||b&&bt(b.buffer,SharedArrayBuffer)))return E(b,y,T);if(typeof b=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let O=b.valueOf&&b.valueOf();if(O!=null&&O!==b)return s.from(O,y,T);let R=D(b);if(R)return R;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof b[Symbol.toPrimitive]=="function")return s.from(b[Symbol.toPrimitive]("string"),y,T);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof b)}s.from=function(b,y,T){return a(b,y,T)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(b){if(typeof b!="number")throw new TypeError('"size" argument must be of type number');if(b<0)throw new RangeError('The value "'+b+'" is invalid for option "size"')}function c(b,y,T){return u(b),b<=0?o(b):y!==void 0?typeof T=="string"?o(b).fill(y,T):o(b).fill(y):o(b)}s.alloc=function(b,y,T){return c(b,y,T)};function l(b){return u(b),o(b<0?0:A(b)|0)}s.allocUnsafe=function(b){return l(b)},s.allocUnsafeSlow=function(b){return l(b)};function d(b,y){if((typeof y!="string"||y==="")&&(y="utf8"),!s.isEncoding(y))throw new TypeError("Unknown encoding: "+y);let T=Y(b,y)|0,O=o(T),R=O.write(b,y);return R!==T&&(O=O.slice(0,R)),O}function h(b){let y=b.length<0?0:A(b.length)|0,T=o(y);for(let O=0;O=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return b|0}function F(b){return+b!=b&&(b=0),s.alloc(+b)}s.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==s.prototype},s.compare=function(y,T){if(bt(y,Uint8Array)&&(y=s.from(y,y.offset,y.byteLength)),bt(T,Uint8Array)&&(T=s.from(T,T.offset,T.byteLength)),!s.isBuffer(y)||!s.isBuffer(T))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===T)return 0;let O=y.length,R=T.length;for(let V=0,W=Math.min(O,R);VR.length?(s.isBuffer(W)||(W=s.from(W)),W.copy(R,V)):Uint8Array.prototype.set.call(R,W,V);else if(s.isBuffer(W))W.copy(R,V);else throw new TypeError('"list" argument must be an Array of Buffers');V+=W.length}return R};function Y(b,y){if(s.isBuffer(b))return b.length;if(ArrayBuffer.isView(b)||bt(b,ArrayBuffer))return b.byteLength;if(typeof b!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof b);let T=b.length,O=arguments.length>2&&arguments[2]===!0;if(!O&&T===0)return 0;let R=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return T;case"utf8":case"utf-8":return Qa(b).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T*2;case"hex":return T>>>1;case"base64":return Dc(b).length;default:if(R)return O?-1:Qa(b).length;y=(""+y).toLowerCase(),R=!0}}s.byteLength=Y;function J(b,y,T){let O=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((T===void 0||T>this.length)&&(T=this.length),T<=0)||(T>>>=0,y>>>=0,T<=y))return"";for(b||(b="utf8");;)switch(b){case"hex":return ds(this,y,T);case"utf8":case"utf-8":return In(this,y,T);case"ascii":return ii(this,y,T);case"latin1":case"binary":return Qs(this,y,T);case"base64":return or(this,y,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bi(this,y,T);default:if(O)throw new TypeError("Unknown encoding: "+b);b=(b+"").toLowerCase(),O=!0}}s.prototype._isBuffer=!0;function Z(b,y,T){let O=b[y];b[y]=b[T],b[T]=O}s.prototype.swap16=function(){let y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let T=0;TT&&(y+=" ... "),""},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(y,T,O,R,V){if(bt(y,Uint8Array)&&(y=s.from(y,y.offset,y.byteLength)),!s.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(T===void 0&&(T=0),O===void 0&&(O=y?y.length:0),R===void 0&&(R=0),V===void 0&&(V=this.length),T<0||O>y.length||R<0||V>this.length)throw new RangeError("out of range index");if(R>=V&&T>=O)return 0;if(R>=V)return-1;if(T>=O)return 1;if(T>>>=0,O>>>=0,R>>>=0,V>>>=0,this===y)return 0;let W=V-R,ze=O-T,en=Math.min(W,ze),Bt=this.slice(R,V),tn=y.slice(T,O);for(let St=0;St2147483647?T=2147483647:T<-2147483648&&(T=-2147483648),T=+T,sr(T)&&(T=R?0:b.length-1),T<0&&(T=b.length+T),T>=b.length){if(R)return-1;T=b.length-1}else if(T<0)if(R)T=0;else return-1;if(typeof y=="string"&&(y=s.from(y,O)),s.isBuffer(y))return y.length===0?-1:_e(b,y,T,O,R);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?R?Uint8Array.prototype.indexOf.call(b,y,T):Uint8Array.prototype.lastIndexOf.call(b,y,T):_e(b,[y],T,O,R);throw new TypeError("val must be string, number or Buffer")}function _e(b,y,T,O,R){let V=1,W=b.length,ze=y.length;if(O!==void 0&&(O=String(O).toLowerCase(),O==="ucs2"||O==="ucs-2"||O==="utf16le"||O==="utf-16le")){if(b.length<2||y.length<2)return-1;V=2,W/=2,ze/=2,T/=2}function en(tn,St){return V===1?tn[St]:tn.readUInt16BE(St*V)}let Bt;if(R){let tn=-1;for(Bt=T;BtW&&(T=W-ze),Bt=T;Bt>=0;Bt--){let tn=!0;for(let St=0;StR&&(O=R)):O=R;let V=y.length;O>V/2&&(O=V/2);let W;for(W=0;W>>0,isFinite(O)?(O=O>>>0,R===void 0&&(R="utf8")):(R=O,O=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let V=this.length-T;if((O===void 0||O>V)&&(O=V),y.length>0&&(O<0||T<0)||T>this.length)throw new RangeError("Attempt to write outside buffer bounds");R||(R="utf8");let W=!1;for(;;)switch(R){case"hex":return ut(this,y,T,O);case"utf8":case"utf-8":return kt(this,y,T,O);case"ascii":case"latin1":case"binary":return Q(this,y,T,O);case"base64":return Ie(this,y,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Yt(this,y,T,O);default:if(W)throw new TypeError("Unknown encoding: "+R);R=(""+R).toLowerCase(),W=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function or(b,y,T){return y===0&&T===b.length?e.fromByteArray(b):e.fromByteArray(b.slice(y,T))}function In(b,y,T){T=Math.min(b.length,T);let O=[],R=y;for(;R239?4:V>223?3:V>191?2:1;if(R+ze<=T){let en,Bt,tn,St;switch(ze){case 1:V<128&&(W=V);break;case 2:en=b[R+1],(en&192)===128&&(St=(V&31)<<6|en&63,St>127&&(W=St));break;case 3:en=b[R+1],Bt=b[R+2],(en&192)===128&&(Bt&192)===128&&(St=(V&15)<<12|(en&63)<<6|Bt&63,St>2047&&(St<55296||St>57343)&&(W=St));break;case 4:en=b[R+1],Bt=b[R+2],tn=b[R+3],(en&192)===128&&(Bt&192)===128&&(tn&192)===128&&(St=(V&15)<<18|(en&63)<<12|(Bt&63)<<6|tn&63,St>65535&&St<1114112&&(W=St))}}W===null?(W=65533,ze=1):W>65535&&(W-=65536,O.push(W>>>10&1023|55296),W=56320|W&1023),O.push(W),R+=ze}return ls(O)}let _r=4096;function ls(b){let y=b.length;if(y<=_r)return String.fromCharCode.apply(String,b);let T="",O=0;for(;OO)&&(T=O);let R="";for(let V=y;VO&&(y=O),T<0?(T+=O,T<0&&(T=0)):T>O&&(T=O),TT)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(y,T,O){y=y>>>0,T=T>>>0,O||vt(y,T,this.length);let R=this[y],V=1,W=0;for(;++W>>0,T=T>>>0,O||vt(y,T,this.length);let R=this[y+--T],V=1;for(;T>0&&(V*=256);)R+=this[y+--T]*V;return R},s.prototype.readUint8=s.prototype.readUInt8=function(y,T){return y=y>>>0,T||vt(y,1,this.length),this[y]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(y,T){return y=y>>>0,T||vt(y,2,this.length),this[y]|this[y+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(y,T){return y=y>>>0,T||vt(y,2,this.length),this[y]<<8|this[y+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},s.prototype.readBigUInt64LE=ps(function(y){y=y>>>0,We(y,"offset");let T=this[y],O=this[y+7];(T===void 0||O===void 0)&>(y,this.length-8);let R=T+this[++y]*Ft(2,8)+this[++y]*Ft(2,16)+this[++y]*Ft(2,24),V=this[++y]+this[++y]*Ft(2,8)+this[++y]*Ft(2,16)+O*Ft(2,24);return BigInt(R)+(BigInt(V)<>>0,We(y,"offset");let T=this[y],O=this[y+7];(T===void 0||O===void 0)&>(y,this.length-8);let R=T*Ft(2,24)+this[++y]*Ft(2,16)+this[++y]*Ft(2,8)+this[++y],V=this[++y]*Ft(2,24)+this[++y]*Ft(2,16)+this[++y]*Ft(2,8)+O;return(BigInt(R)<>>0,T=T>>>0,O||vt(y,T,this.length);let R=this[y],V=1,W=0;for(;++W=V&&(R-=Math.pow(2,8*T)),R},s.prototype.readIntBE=function(y,T,O){y=y>>>0,T=T>>>0,O||vt(y,T,this.length);let R=T,V=1,W=this[y+--R];for(;R>0&&(V*=256);)W+=this[y+--R]*V;return V*=128,W>=V&&(W-=Math.pow(2,8*T)),W},s.prototype.readInt8=function(y,T){return y=y>>>0,T||vt(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},s.prototype.readInt16LE=function(y,T){y=y>>>0,T||vt(y,2,this.length);let O=this[y]|this[y+1]<<8;return O&32768?O|4294901760:O},s.prototype.readInt16BE=function(y,T){y=y>>>0,T||vt(y,2,this.length);let O=this[y+1]|this[y]<<8;return O&32768?O|4294901760:O},s.prototype.readInt32LE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},s.prototype.readInt32BE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},s.prototype.readBigInt64LE=ps(function(y){y=y>>>0,We(y,"offset");let T=this[y],O=this[y+7];(T===void 0||O===void 0)&>(y,this.length-8);let R=this[y+4]+this[y+5]*Ft(2,8)+this[y+6]*Ft(2,16)+(O<<24);return(BigInt(R)<>>0,We(y,"offset");let T=this[y],O=this[y+7];(T===void 0||O===void 0)&>(y,this.length-8);let R=(T<<24)+this[++y]*Ft(2,16)+this[++y]*Ft(2,8)+this[++y];return(BigInt(R)<>>0,T||vt(y,4,this.length),t.read(this,y,!0,23,4)},s.prototype.readFloatBE=function(y,T){return y=y>>>0,T||vt(y,4,this.length),t.read(this,y,!1,23,4)},s.prototype.readDoubleLE=function(y,T){return y=y>>>0,T||vt(y,8,this.length),t.read(this,y,!0,52,8)},s.prototype.readDoubleBE=function(y,T){return y=y>>>0,T||vt(y,8,this.length),t.read(this,y,!1,52,8)};function yn(b,y,T,O,R,V){if(!s.isBuffer(b))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>R||yb.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(y,T,O,R){if(y=+y,T=T>>>0,O=O>>>0,!R){let ze=Math.pow(2,8*O)-1;yn(this,y,T,O,ze,0)}let V=1,W=0;for(this[T]=y&255;++W>>0,O=O>>>0,!R){let ze=Math.pow(2,8*O)-1;yn(this,y,T,O,ze,0)}let V=O-1,W=1;for(this[T+V]=y&255;--V>=0&&(W*=256);)this[T+V]=y/W&255;return T+O},s.prototype.writeUint8=s.prototype.writeUInt8=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,1,255,0),this[T]=y&255,T+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,2,65535,0),this[T]=y&255,this[T+1]=y>>>8,T+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,2,65535,0),this[T]=y>>>8,this[T+1]=y&255,T+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,4,4294967295,0),this[T+3]=y>>>24,this[T+2]=y>>>16,this[T+1]=y>>>8,this[T]=y&255,T+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,4,4294967295,0),this[T]=y>>>24,this[T+1]=y>>>16,this[T+2]=y>>>8,this[T+3]=y&255,T+4};function K(b,y,T,O,R){ht(y,O,R,b,T,7);let V=Number(y&BigInt(4294967295));b[T++]=V,V=V>>8,b[T++]=V,V=V>>8,b[T++]=V,V=V>>8,b[T++]=V;let W=Number(y>>BigInt(32)&BigInt(4294967295));return b[T++]=W,W=W>>8,b[T++]=W,W=W>>8,b[T++]=W,W=W>>8,b[T++]=W,T}function ue(b,y,T,O,R){ht(y,O,R,b,T,7);let V=Number(y&BigInt(4294967295));b[T+7]=V,V=V>>8,b[T+6]=V,V=V>>8,b[T+5]=V,V=V>>8,b[T+4]=V;let W=Number(y>>BigInt(32)&BigInt(4294967295));return b[T+3]=W,W=W>>8,b[T+2]=W,W=W>>8,b[T+1]=W,W=W>>8,b[T]=W,T+8}s.prototype.writeBigUInt64LE=ps(function(y,T=0){return K(this,y,T,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ps(function(y,T=0){return ue(this,y,T,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(y,T,O,R){if(y=+y,T=T>>>0,!R){let en=Math.pow(2,8*O-1);yn(this,y,T,O,en-1,-en)}let V=0,W=1,ze=0;for(this[T]=y&255;++V>0)-ze&255;return T+O},s.prototype.writeIntBE=function(y,T,O,R){if(y=+y,T=T>>>0,!R){let en=Math.pow(2,8*O-1);yn(this,y,T,O,en-1,-en)}let V=O-1,W=1,ze=0;for(this[T+V]=y&255;--V>=0&&(W*=256);)y<0&&ze===0&&this[T+V+1]!==0&&(ze=1),this[T+V]=(y/W>>0)-ze&255;return T+O},s.prototype.writeInt8=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,1,127,-128),y<0&&(y=255+y+1),this[T]=y&255,T+1},s.prototype.writeInt16LE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,2,32767,-32768),this[T]=y&255,this[T+1]=y>>>8,T+2},s.prototype.writeInt16BE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,2,32767,-32768),this[T]=y>>>8,this[T+1]=y&255,T+2},s.prototype.writeInt32LE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,4,2147483647,-2147483648),this[T]=y&255,this[T+1]=y>>>8,this[T+2]=y>>>16,this[T+3]=y>>>24,T+4},s.prototype.writeInt32BE=function(y,T,O){return y=+y,T=T>>>0,O||yn(this,y,T,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[T]=y>>>24,this[T+1]=y>>>16,this[T+2]=y>>>8,this[T+3]=y&255,T+4},s.prototype.writeBigInt64LE=ps(function(y,T=0){return K(this,y,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ps(function(y,T=0){return ue(this,y,T,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ne(b,y,T,O,R,V){if(T+O>b.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("Index out of range")}function ce(b,y,T,O,R){return y=+y,T=T>>>0,R||ne(b,y,T,4),t.write(b,y,T,O,23,4),T+4}s.prototype.writeFloatLE=function(y,T,O){return ce(this,y,T,!0,O)},s.prototype.writeFloatBE=function(y,T,O){return ce(this,y,T,!1,O)};function ct(b,y,T,O,R){return y=+y,T=T>>>0,R||ne(b,y,T,8),t.write(b,y,T,O,52,8),T+8}s.prototype.writeDoubleLE=function(y,T,O){return ct(this,y,T,!0,O)},s.prototype.writeDoubleBE=function(y,T,O){return ct(this,y,T,!1,O)},s.prototype.copy=function(y,T,O,R){if(!s.isBuffer(y))throw new TypeError("argument should be a Buffer");if(O||(O=0),!R&&R!==0&&(R=this.length),T>=y.length&&(T=y.length),T||(T=0),R>0&&R=this.length)throw new RangeError("Index out of range");if(R<0)throw new RangeError("sourceEnd out of bounds");R>this.length&&(R=this.length),y.length-T>>0,O=O===void 0?this.length:O>>>0,y||(y=0);let V;if(typeof y=="number")for(V=T;VFt(2,32)?R=ve(String(T)):typeof T=="bigint"&&(R=String(T),(T>Ft(BigInt(2),BigInt(32))||T<-Ft(BigInt(2),BigInt(32)))&&(R=ve(R)),R+="n"),O+=` It must be ${y}. Received ${R}`,O},RangeError);function ve(b){let y="",T=b.length,O=b[0]==="-"?1:0;for(;T>=O+4;T-=3)y=`_${b.slice(T-3,T)}${y}`;return`${b.slice(0,T)}${y}`}function Fe(b,y,T){We(y,"offset"),(b[y]===void 0||b[y+T]===void 0)&>(y,b.length-(T+1))}function ht(b,y,T,O,R,V){if(b>T||b3?y===0||y===BigInt(0)?ze=`>= 0${W} and < 2${W} ** ${(V+1)*8}${W}`:ze=`>= -(2${W} ** ${(V+1)*8-1}${W}) and < 2 ** ${(V+1)*8-1}${W}`:ze=`>= ${y}${W} and <= ${T}${W}`,new M.ERR_OUT_OF_RANGE("value",ze,b)}Fe(O,R,V)}function We(b,y){if(typeof b!="number")throw new M.ERR_INVALID_ARG_TYPE(y,"number",b)}function gt(b,y,T){throw Math.floor(b)!==b?(We(b,T),new M.ERR_OUT_OF_RANGE(T||"offset","an integer",b)):y<0?new M.ERR_BUFFER_OUT_OF_BOUNDS:new M.ERR_OUT_OF_RANGE(T||"offset",`>= ${T?1:0} and <= ${y}`,b)}let Ys=/[^+/0-9A-Za-z-_]/g;function Sp(b){if(b=b.split("=")[0],b=b.trim().replace(Ys,""),b.length<2)return"";for(;b.length%4!==0;)b=b+"=";return b}function Qa(b,y){y=y||1/0;let T,O=b.length,R=null,V=[];for(let W=0;W55295&&T<57344){if(!R){if(T>56319){(y-=3)>-1&&V.push(239,191,189);continue}else if(W+1===O){(y-=3)>-1&&V.push(239,191,189);continue}R=T;continue}if(T<56320){(y-=3)>-1&&V.push(239,191,189),R=T;continue}T=(R-55296<<10|T-56320)+65536}else R&&(y-=3)>-1&&V.push(239,191,189);if(R=null,T<128){if((y-=1)<0)break;V.push(T)}else if(T<2048){if((y-=2)<0)break;V.push(T>>6|192,T&63|128)}else if(T<65536){if((y-=3)<0)break;V.push(T>>12|224,T>>6&63|128,T&63|128)}else if(T<1114112){if((y-=4)<0)break;V.push(T>>18|240,T>>12&63|128,T>>6&63|128,T&63|128)}else throw new Error("Invalid code point")}return V}function Dp(b){let y=[];for(let T=0;T>8,R=T%256,V.push(R),V.push(O);return V}function Dc(b){return e.toByteArray(Sp(b))}function Js(b,y,T,O){let R;for(R=0;R=y.length||R>=b.length);++R)y[R+T]=b[R];return R}function bt(b,y){return b instanceof y||b!=null&&b.constructor!=null&&b.constructor.name!=null&&b.constructor.name===y.name}function sr(b){return b!==b}let YP=function(){let b="0123456789abcdef",y=new Array(256);for(let T=0;T<16;++T){let O=T*16;for(let R=0;R<16;++R)y[O+R]=b[T]+b[R]}return y}();function ps(b){return typeof BigInt=="undefined"?JP:b}function JP(){throw new Error("BigInt not supported")}return Ws}var Ac,yb,Rp,Tb,Ws,Nb,Hs,I,zz,Wz,Eb=j(()=>{"use strict";p();m();f();Ac={},yb=!1;Rp={},Tb=!1;Ws={},Nb=!1;Hs=ox();Hs.Buffer;Hs.SlowBuffer;Hs.INSPECT_MAX_BYTES;Hs.kMaxLength;I=Hs.Buffer,zz=Hs.INSPECT_MAX_BYTES,Wz=Hs.kMaxLength});var m=j(()=>{"use strict";Eb()});var gb,Ib,vb=j(()=>{"use strict";p();m();f();gb="16.7.1",Ib=Object.freeze({major:16,minor:7,patch:1,preReleaseTag:null})});function Se(e,t){if(!!!e)throw new Error(t)}var ur=j(()=>{"use strict";p();m();f()});function Jn(e){return typeof(e==null?void 0:e.then)=="function"}var Pp=j(()=>{"use strict";p();m();f()});function nn(e){return typeof e=="object"&&e!==null}var Si=j(()=>{"use strict";p();m();f()});function He(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}var zn=j(()=>{"use strict";p();m();f()});function ms(e,t){let n=0,r=1;for(let i of e.body.matchAll(sx)){if(typeof i.index=="number"||He(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var sx,xp=j(()=>{"use strict";p();m();f();zn();sx=/\r\n|[\n\r]/g});function wc(e){return za(e.source,ms(e.source,e.start))}function za(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,u=t.column+a,c=`${e.name}:${s}:${u} `,l=r.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){let h=Math.floor(u/80),N=u%80,E=[];for(let D=0;D["|",D]),["|","^".padStart(N)],["|",E[h+1]]])}return c+_b([[`${s-1} |`,l[i-1]],[`${s} |`,d],["|","^".padStart(u)],[`${s+1} |`,l[i+1]]])}function _b(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` -`)}var yy=j(()=>{"use strict";p();m();f();xp()});function ax(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function bb(e){return e===void 0||e.length===0?void 0:e}function Ty(e){return e.toString()}function Ny(e){return e.toJSON()}var x,we=j(()=>{"use strict";p();m();f();Si();xp();yy();x=class e extends Error{constructor(t,...n){var r,i,o;let{nodes:s,source:a,positions:u,path:c,originalError:l,extensions:d}=ax(n);super(t),this.name="GraphQLError",this.path=c!=null?c:void 0,this.originalError=l!=null?l:void 0,this.nodes=bb(Array.isArray(s)?s:s?[s]:void 0);let h=bb((r=this.nodes)===null||r===void 0?void 0:r.map(E=>E.loc).filter(E=>E!=null));this.source=a!=null?a:h==null||(i=h[0])===null||i===void 0?void 0:i.source,this.positions=u!=null?u:h==null?void 0:h.map(E=>E.start),this.locations=u&&a?u.map(E=>fs(a,E)):h==null?void 0:h.map(E=>fs(E.source,E.start));let N=nn(l==null?void 0:l.extensions)?l==null?void 0:l.extensions:void 0;this.extensions=(o=d!=null?d:N)!==null&&o!==void 0?o: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}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` +`)}var yy=j(()=>{"use strict";p();m();f();xp()});function ax(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function bb(e){return e===void 0||e.length===0?void 0:e}function Ty(e){return e.toString()}function Ny(e){return e.toJSON()}var x,we=j(()=>{"use strict";p();m();f();Si();xp();yy();x=class e extends Error{constructor(t,...n){var r,i,o;let{nodes:s,source:a,positions:u,path:c,originalError:l,extensions:d}=ax(n);super(t),this.name="GraphQLError",this.path=c!=null?c:void 0,this.originalError=l!=null?l:void 0,this.nodes=bb(Array.isArray(s)?s:s?[s]:void 0);let h=bb((r=this.nodes)===null||r===void 0?void 0:r.map(E=>E.loc).filter(E=>E!=null));this.source=a!=null?a:h==null||(i=h[0])===null||i===void 0?void 0:i.source,this.positions=u!=null?u:h==null?void 0:h.map(E=>E.start),this.locations=u&&a?u.map(E=>ms(a,E)):h==null?void 0:h.map(E=>ms(E.source,E.start));let N=nn(l==null?void 0:l.extensions)?l==null?void 0:l.extensions:void 0;this.extensions=(o=d!=null?d:N)!==null&&o!==void 0?o: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}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` `+wc(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+za(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}});function Yt(e,t,n){return new x(`Syntax Error: ${n}`,{source:e,positions:[t]})}var kp=j(()=>{"use strict";p();m();f();we()});function Fc(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&ux.has(t)}var Hs,ms,Ey,ux,Rt,Di=j(()=>{"use strict";p();m();f();Hs=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},ms=class{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Ey={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ux=new Set(Object.keys(Ey));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Rt||(Rt={}))});var Ee,Wa=j(()=>{"use strict";p();m();f();(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Ee||(Ee={}))});var _,st=j(()=>{"use strict";p();m();f();(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(_||(_={}))});function Mp(e){return e===9||e===32}function Xa(e){return e>=48&&e<=57}function Sb(e){return e>=97&&e<=122||e>=65&&e<=90}function Rc(e){return Sb(e)||e===95}function Up(e){return Sb(e)||Xa(e)||e===95}var Cp=j(()=>{"use strict";p();m();f()});function Db(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;sa===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function cx(e){let t=0;for(;t1&&r.slice(1).every(N=>N.length===0||Mp(N.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!(t!=null&&t.minimize)&&(!i||e.length>70||c||o||s),d="",h=i&&Mp(e.charCodeAt(0));return(l&&!h||o)&&(d+=` +`+za(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}});function Jt(e,t,n){return new x(`Syntax Error: ${n}`,{source:e,positions:[t]})}var kp=j(()=>{"use strict";p();m();f();we()});function Fc(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&ux.has(t)}var Xs,hs,Ey,ux,Lt,Di=j(()=>{"use strict";p();m();f();Xs=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},hs=class{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Ey={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ux=new Set(Object.keys(Ey));(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Lt||(Lt={}))});var Ee,Wa=j(()=>{"use strict";p();m();f();(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Ee||(Ee={}))});var _,st=j(()=>{"use strict";p();m();f();(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(_||(_={}))});function Mp(e){return e===9||e===32}function Ha(e){return e>=48&&e<=57}function Sb(e){return e>=97&&e<=122||e>=65&&e<=90}function Lc(e){return Sb(e)||e===95}function Up(e){return Sb(e)||Ha(e)||e===95}var Cp=j(()=>{"use strict";p();m();f()});function Db(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;sa===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function cx(e){let t=0;for(;t1&&r.slice(1).every(N=>N.length===0||Mp(N.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!(t!=null&&t.minimize)&&(!i||e.length>70||c||o||s),d="",h=i&&Mp(e.charCodeAt(0));return(l&&!h||o)&&(d+=` `),d+=n,(l||c)&&(d+=` -`),'"""'+d+'"""'}var Lc=j(()=>{"use strict";p();m();f();Cp()});var q,Pc=j(()=>{"use strict";p();m();f();(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(q||(q={}))});function Vp(e){return e===q.BANG||e===q.DOLLAR||e===q.AMP||e===q.PAREN_L||e===q.PAREN_R||e===q.SPREAD||e===q.COLON||e===q.EQUALS||e===q.AT||e===q.BRACKET_L||e===q.BRACKET_R||e===q.BRACE_L||e===q.PIPE||e===q.BRACE_R}function Ha(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function $p(e,t){return wb(e.charCodeAt(t))&&Fb(e.charCodeAt(t+1))}function wb(e){return e>=55296&&e<=56319}function Fb(e){return e>=56320&&e<=57343}function Zs(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return q.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Tn(e,t,n,r,i){let o=e.line,s=1+n-e.lineStart;return new ms(t,n,r,o,s,i)}function lx(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function yx(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){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:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Yt(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Tx(e,t){let n=e.source.body,r=n.length,i=e.lineStart,o=t+3,s=o,a="",u=[];for(;o{"use strict";p();m();f();kp();Di();Lc();Cp();Pc();eo=class{constructor(t){let n=new ms(q.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==q.EOF)do if(t.next)t=t.next;else{let n=lx(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===q.COMMENT);return t}}});function B(e){return Gp(e,[])}function Gp(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ex(e,t);default:return String(e)}}function Ex(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(gx(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Gp(r,n)}else if(Array.isArray(e))return vx(e,n);return Ix(e,n)}function gx(e){return typeof e.toJSON=="function"}function Ix(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+_x(e)+"]":"{ "+n.map(([i,o])=>i+": "+Gp(o,t)).join(", ")+" }"}function vx(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function _x(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var yt=j(()=>{"use strict";p();m();f()});var cr,kc=j(()=>{"use strict";p();m();f();yt();cr=globalThis.process&&globalThis.process.env.NODE_ENV==="production"?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){let s=B(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm. +`),'"""'+d+'"""'}var Rc=j(()=>{"use strict";p();m();f();Cp()});var q,Pc=j(()=>{"use strict";p();m();f();(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(q||(q={}))});function Vp(e){return e===q.BANG||e===q.DOLLAR||e===q.AMP||e===q.PAREN_L||e===q.PAREN_R||e===q.SPREAD||e===q.COLON||e===q.EQUALS||e===q.AT||e===q.BRACKET_L||e===q.BRACKET_R||e===q.BRACE_L||e===q.PIPE||e===q.BRACE_R}function Xa(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function $p(e,t){return wb(e.charCodeAt(t))&&Fb(e.charCodeAt(t+1))}function wb(e){return e>=55296&&e<=56319}function Fb(e){return e>=56320&&e<=57343}function Zs(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return q.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Tn(e,t,n,r,i){let o=e.line,s=1+n-e.lineStart;return new hs(t,n,r,o,s,i)}function lx(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function yx(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){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:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Jt(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Tx(e,t){let n=e.source.body,r=n.length,i=e.lineStart,o=t+3,s=o,a="",u=[];for(;o{"use strict";p();m();f();kp();Di();Rc();Cp();Pc();eo=class{constructor(t){let n=new hs(q.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==q.EOF)do if(t.next)t=t.next;else{let n=lx(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===q.COMMENT);return t}}});function B(e){return Gp(e,[])}function Gp(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ex(e,t);default:return String(e)}}function Ex(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(gx(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Gp(r,n)}else if(Array.isArray(e))return vx(e,n);return Ix(e,n)}function gx(e){return typeof e.toJSON=="function"}function Ix(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+_x(e)+"]":"{ "+n.map(([i,o])=>i+": "+Gp(o,t)).join(", ")+" }"}function vx(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function _x(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var yt=j(()=>{"use strict";p();m();f()});var cr,kc=j(()=>{"use strict";p();m();f();yt();cr=globalThis.process&&globalThis.process.env.NODE_ENV==="production"?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){let s=B(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other @@ -32,42 +32,42 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1}});function qp(e){return cr(e,Oi)}var Oi,Kp=j(()=>{"use strict";p();m();f();ur();yt();kc();Oi=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Se(!1,`Body must be a string. Received: ${B(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Se(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Se(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function oi(e,t){return new Za(e,t).parseDocument()}function Mc(e,t){let n=new Za(e,t);n.expectToken(q.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(q.EOF),r}function Iy(e,t){let n=new Za(e,t);n.expectToken(q.SOF);let r=n.parseConstValueLiteral();return n.expectToken(q.EOF),r}function vy(e,t){let n=new Za(e,t);n.expectToken(q.SOF);let r=n.parseTypeReference();return n.expectToken(q.EOF),r}function Qp(e){let t=e.value;return Rb(e.kind)+(t!=null?` "${t}"`:"")}function Rb(e){return Vp(e)?`"${e}"`:e}var Za,eu=j(()=>{"use strict";p();m();f();kp();Di();Wa();st();jp();Kp();Pc();Za=class{constructor(t,n={}){let r=qp(t)?t:new Oi(t);this._lexer=new eo(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(q.NAME);return this.node(t,{kind:_.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:_.DOCUMENT,definitions:this.many(q.SOF,this.parseDefinition,q.EOF)})}parseDefinition(){if(this.peek(q.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===q.NAME){switch(n.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(t)throw Yt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(q.BRACE_L))return this.node(t,{kind:_.OPERATION_DEFINITION,operation:Rt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(q.NAME)&&(r=this.parseName()),this.node(t,{kind:_.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(q.NAME);switch(t.value){case"query":return Rt.QUERY;case"mutation":return Rt.MUTATION;case"subscription":return Rt.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(q.PAREN_L,this.parseVariableDefinition,q.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:_.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(q.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(q.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(q.DOLLAR),this.node(t,{kind:_.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:_.SELECTION_SET,selections:this.many(q.BRACE_L,this.parseSelection,q.BRACE_R)})}parseSelection(){return this.peek(q.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(q.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:_.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(q.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(q.PAREN_L,n,q.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(q.COLON),this.node(n,{kind:_.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(q.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(q.NAME)?this.node(t,{kind:_.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:_.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:_.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:_.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case q.BRACKET_L:return this.parseList(t);case q.BRACE_L:return this.parseObject(t);case q.INT:return this.advanceLexer(),this.node(n,{kind:_.INT,value:n.value});case q.FLOAT:return this.advanceLexer(),this.node(n,{kind:_.FLOAT,value:n.value});case q.STRING:case q.BLOCK_STRING:return this.parseStringLiteral();case q.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:_.BOOLEAN,value:!0});case"false":return this.node(n,{kind:_.BOOLEAN,value:!1});case"null":return this.node(n,{kind:_.NULL});default:return this.node(n,{kind:_.ENUM,value:n.value})}case q.DOLLAR:if(t)if(this.expectToken(q.DOLLAR),this._lexer.token.kind===q.NAME){let r=this._lexer.token.value;throw Yt(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:_.STRING,value:t.value,block:t.kind===q.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:_.LIST,values:this.any(q.BRACKET_L,n,q.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:_.OBJECT,fields:this.any(q.BRACE_L,n,q.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(q.COLON),this.node(n,{kind:_.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(q.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(q.AT),this.node(n,{kind:_.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(q.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(q.BRACKET_R),n=this.node(t,{kind:_.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(q.BANG)?this.node(t,{kind:_.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:_.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(q.STRING)||this.peek(q.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(q.BRACE_L,this.parseOperationTypeDefinition,q.BRACE_R);return this.node(t,{kind:_.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(q.COLON);let r=this.parseNamedType();return this.node(t,{kind:_.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:_.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:_.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(q.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(q.BRACE_L,this.parseFieldDefinition,q.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(q.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:_.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(q.PAREN_L,this.parseInputValueDef,q.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(q.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(q.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:_.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:_.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:_.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(q.EQUALS)?this.delimitedMany(q.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:_.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(q.BRACE_L,this.parseEnumValueDefinition,q.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:_.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Yt(this._lexer.source,this._lexer.token.start,`${Qp(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:_.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(q.BRACE_L,this.parseInputValueDef,q.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===q.NAME)switch(t.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(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(q.BRACE_L,this.parseOperationTypeDefinition,q.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:_.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:_.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:_.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:_.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:_.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:_.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:_.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(q.AT);let r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(t,{kind:_.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(q.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Ee,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Hs(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Yt(this._lexer.source,n.start,`Expected ${Rb(t)}, found ${Qp(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===q.NAME&&n.value===t)this.advanceLexer();else throw Yt(this._lexer.source,n.start,`Expected "${t}", found ${Qp(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===q.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return Yt(this._lexer.source,n.start,`Unexpected ${Qp(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==q.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Yt(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}});function Wn(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}var hs=j(()=>{"use strict";p();m();f()});function _y(e){return e}var Lb=j(()=>{"use strict";p();m();f()});function Xn(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}var ys=j(()=>{"use strict";p();m();f()});function Mr(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}var Uc=j(()=>{"use strict";p();m();f()});function si(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}var by=j(()=>{"use strict";p();m();f()});function to(e,t){let n=0,r=0;for(;n0);let a=0;do++r,a=a*10+o-Sy,o=t.charCodeAt(r);while(Yp(o)&&a>0);if(sa)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}function Yp(e){return!isNaN(e)&&Sy<=e&&e<=bx}var Sy,bx,Cc=j(()=>{"use strict";p();m();f();Sy=48,bx=57});function lr(e,t){let n=Object.create(null),r=new Dy(e),i=Math.floor(e.length*.4)+1;for(let o of t){let s=r.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{let a=n[o]-n[s];return a!==0?a:to(o,s)})}function Pb(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";p();m();f();Cc();Dy=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Pb(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=Pb(r),o=this._inputArray;if(i.lengthn)return;let u=this._rows;for(let l=0;l<=a;l++)u[0][l]=l;for(let l=1;l<=s;l++){let d=u[(l-1)%3],h=u[l%3],N=h[0]=l;for(let E=1;E<=a;E++){let D=i[l-1]===o[E-1]?0:1,A=Math.min(d[E]+1,h[E-1]+1,d[E-1]+D);if(l>1&&E>1&&i[l-1]===o[E-2]&&i[l-2]===o[E-1]){let F=u[(l-2)%3][E-2];A=Math.min(A,F+1)}An)return}let c=u[s%3][a];return c<=n?c:void 0}}});function dr(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}var Jp=j(()=>{"use strict";p();m();f()});function xb(e){return`"${e.replace(Sx,Dx)}"`}function Dx(e){return Ox[e.charCodeAt(0)]}var Sx,Ox,kb=j(()=>{"use strict";p();m();f();Sx=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;Ox=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});function Ur(e,t,n=Ey){let r=new Map;for(let F of Object.values(_))r.set(F,no(t,F));let i,o=Array.isArray(e),s=[e],a=-1,u=[],c=e,l,d,h=[],N=[];do{a++;let F=a===s.length,Y=F&&u.length!==0;if(F){if(l=N.length===0?void 0:h[h.length-1],c=d,d=N.pop(),Y)if(o){c=c.slice();let Z=0;for(let[X,_e]of u){let ut=X-Z;_e===null?(c.splice(ut,1),Z++):c[ut]=_e}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(let[Z,X]of u)c[Z]=X}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(d){if(l=o?a:s[a],c=d[l],c==null)continue;h.push(l)}let J;if(!Array.isArray(c)){var E,D;Fc(c)||Se(!1,`Invalid AST Node: ${B(c)}.`);let Z=F?(E=r.get(c.kind))===null||E===void 0?void 0:E.leave:(D=r.get(c.kind))===null||D===void 0?void 0:D.enter;if(J=Z==null?void 0:Z.call(t,c,l,d,h,N),J===Ns)break;if(J===!1){if(!F){h.pop();continue}}else if(J!==void 0&&(u.push([l,J]),!F))if(Fc(J))c=J;else{h.pop();continue}}if(J===void 0&&Y&&u.push([l,c]),F)h.pop();else{var A;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(c),s=o?c:(A=n[c.kind])!==null&&A!==void 0?A:[],a=-1,u=[],d&&N.push(d),d=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function tu(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(_)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let u=0;u{"use strict";p();m();f();ur();yt();Di();st();Ns=Object.freeze({})});function $e(e){return Ur(e,wx)}function fe(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ai(e){return He(`{ +spurious results.`)}}return!1}});function qp(e){return cr(e,Oi)}var Oi,Kp=j(()=>{"use strict";p();m();f();ur();yt();kc();Oi=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Se(!1,`Body must be a string. Received: ${B(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Se(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Se(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function oi(e,t){return new Za(e,t).parseDocument()}function Mc(e,t){let n=new Za(e,t);n.expectToken(q.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(q.EOF),r}function Iy(e,t){let n=new Za(e,t);n.expectToken(q.SOF);let r=n.parseConstValueLiteral();return n.expectToken(q.EOF),r}function vy(e,t){let n=new Za(e,t);n.expectToken(q.SOF);let r=n.parseTypeReference();return n.expectToken(q.EOF),r}function Qp(e){let t=e.value;return Lb(e.kind)+(t!=null?` "${t}"`:"")}function Lb(e){return Vp(e)?`"${e}"`:e}var Za,eu=j(()=>{"use strict";p();m();f();kp();Di();Wa();st();jp();Kp();Pc();Za=class{constructor(t,n={}){let r=qp(t)?t:new Oi(t);this._lexer=new eo(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(q.NAME);return this.node(t,{kind:_.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:_.DOCUMENT,definitions:this.many(q.SOF,this.parseDefinition,q.EOF)})}parseDefinition(){if(this.peek(q.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===q.NAME){switch(n.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(t)throw Jt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(q.BRACE_L))return this.node(t,{kind:_.OPERATION_DEFINITION,operation:Lt.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(q.NAME)&&(r=this.parseName()),this.node(t,{kind:_.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(q.NAME);switch(t.value){case"query":return Lt.QUERY;case"mutation":return Lt.MUTATION;case"subscription":return Lt.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(q.PAREN_L,this.parseVariableDefinition,q.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:_.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(q.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(q.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(q.DOLLAR),this.node(t,{kind:_.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:_.SELECTION_SET,selections:this.many(q.BRACE_L,this.parseSelection,q.BRACE_R)})}parseSelection(){return this.peek(q.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(q.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:_.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(q.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(q.PAREN_L,n,q.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(q.COLON),this.node(n,{kind:_.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(q.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(q.NAME)?this.node(t,{kind:_.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:_.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:_.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:_.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){let n=this._lexer.token;switch(n.kind){case q.BRACKET_L:return this.parseList(t);case q.BRACE_L:return this.parseObject(t);case q.INT:return this.advanceLexer(),this.node(n,{kind:_.INT,value:n.value});case q.FLOAT:return this.advanceLexer(),this.node(n,{kind:_.FLOAT,value:n.value});case q.STRING:case q.BLOCK_STRING:return this.parseStringLiteral();case q.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:_.BOOLEAN,value:!0});case"false":return this.node(n,{kind:_.BOOLEAN,value:!1});case"null":return this.node(n,{kind:_.NULL});default:return this.node(n,{kind:_.ENUM,value:n.value})}case q.DOLLAR:if(t)if(this.expectToken(q.DOLLAR),this._lexer.token.kind===q.NAME){let r=this._lexer.token.value;throw Jt(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:_.STRING,value:t.value,block:t.kind===q.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:_.LIST,values:this.any(q.BRACKET_L,n,q.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:_.OBJECT,fields:this.any(q.BRACE_L,n,q.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(q.COLON),this.node(n,{kind:_.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(q.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(q.AT),this.node(n,{kind:_.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(q.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(q.BRACKET_R),n=this.node(t,{kind:_.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(q.BANG)?this.node(t,{kind:_.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:_.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(q.STRING)||this.peek(q.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),i=this.many(q.BRACE_L,this.parseOperationTypeDefinition,q.BRACE_R);return this.node(t,{kind:_.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(q.COLON);let r=this.parseNamedType();return this.node(t,{kind:_.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:_.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:_.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(q.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(q.BRACE_L,this.parseFieldDefinition,q.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(q.COLON);let o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:_.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(q.PAREN_L,this.parseInputValueDef,q.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(q.COLON);let i=this.parseTypeReference(),o;this.expectOptionalToken(q.EQUALS)&&(o=this.parseConstValueLiteral());let s=this.parseConstDirectives();return this.node(t,{kind:_.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:_.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:_.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(q.EQUALS)?this.delimitedMany(q.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:_.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(q.BRACE_L,this.parseEnumValueDefinition,q.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:_.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw Jt(this._lexer.source,this._lexer.token.start,`${Qp(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:_.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(q.BRACE_L,this.parseInputValueDef,q.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===q.NAME)switch(t.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(t)}parseSchemaExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.optionalMany(q.BRACE_L,this.parseOperationTypeDefinition,q.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:_.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:_.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:_.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:_.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:_.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:_.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:_.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(q.AT);let r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let s=this.parseDirectiveLocations();return this.node(t,{kind:_.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(q.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Ee,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Xs(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){let n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw Jt(this._lexer.source,n.start,`Expected ${Lb(t)}, found ${Qp(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===q.NAME&&n.value===t)this.advanceLexer();else throw Jt(this._lexer.source,n.start,`Expected "${t}", found ${Qp(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===q.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return Jt(this._lexer.source,n.start,`Unexpected ${Qp(n)}.`)}any(t,n,r){this.expectToken(t);let i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);let r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){let{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==q.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw Jt(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}});function Wn(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,5),a=s.pop();return i+s.join(", ")+", or "+a+"?"}var ys=j(()=>{"use strict";p();m();f()});function _y(e){return e}var Rb=j(()=>{"use strict";p();m();f()});function Hn(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}var Ts=j(()=>{"use strict";p();m();f()});function Mr(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}var Uc=j(()=>{"use strict";p();m();f()});function si(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}var by=j(()=>{"use strict";p();m();f()});function to(e,t){let n=0,r=0;for(;n0);let a=0;do++r,a=a*10+o-Sy,o=t.charCodeAt(r);while(Yp(o)&&a>0);if(sa)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}function Yp(e){return!isNaN(e)&&Sy<=e&&e<=bx}var Sy,bx,Cc=j(()=>{"use strict";p();m();f();Sy=48,bx=57});function lr(e,t){let n=Object.create(null),r=new Dy(e),i=Math.floor(e.length*.4)+1;for(let o of t){let s=r.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{let a=n[o]-n[s];return a!==0?a:to(o,s)})}function Pb(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";p();m();f();Cc();Dy=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Pb(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=Pb(r),o=this._inputArray;if(i.lengthn)return;let u=this._rows;for(let l=0;l<=a;l++)u[0][l]=l;for(let l=1;l<=s;l++){let d=u[(l-1)%3],h=u[l%3],N=h[0]=l;for(let E=1;E<=a;E++){let D=i[l-1]===o[E-1]?0:1,A=Math.min(d[E]+1,h[E-1]+1,d[E-1]+D);if(l>1&&E>1&&i[l-1]===o[E-2]&&i[l-2]===o[E-1]){let F=u[(l-2)%3][E-2];A=Math.min(A,F+1)}An)return}let c=u[s%3][a];return c<=n?c:void 0}}});function dr(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}var Jp=j(()=>{"use strict";p();m();f()});function xb(e){return`"${e.replace(Sx,Dx)}"`}function Dx(e){return Ox[e.charCodeAt(0)]}var Sx,Ox,kb=j(()=>{"use strict";p();m();f();Sx=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;Ox=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});function Ur(e,t,n=Ey){let r=new Map;for(let F of Object.values(_))r.set(F,no(t,F));let i,o=Array.isArray(e),s=[e],a=-1,u=[],c=e,l,d,h=[],N=[];do{a++;let F=a===s.length,Y=F&&u.length!==0;if(F){if(l=N.length===0?void 0:h[h.length-1],c=d,d=N.pop(),Y)if(o){c=c.slice();let Z=0;for(let[H,_e]of u){let ut=H-Z;_e===null?(c.splice(ut,1),Z++):c[ut]=_e}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(let[Z,H]of u)c[Z]=H}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(d){if(l=o?a:s[a],c=d[l],c==null)continue;h.push(l)}let J;if(!Array.isArray(c)){var E,D;Fc(c)||Se(!1,`Invalid AST Node: ${B(c)}.`);let Z=F?(E=r.get(c.kind))===null||E===void 0?void 0:E.leave:(D=r.get(c.kind))===null||D===void 0?void 0:D.enter;if(J=Z==null?void 0:Z.call(t,c,l,d,h,N),J===Es)break;if(J===!1){if(!F){h.pop();continue}}else if(J!==void 0&&(u.push([l,J]),!F))if(Fc(J))c=J;else{h.pop();continue}}if(J===void 0&&Y&&u.push([l,c]),F)h.pop();else{var A;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(c),s=o?c:(A=n[c.kind])!==null&&A!==void 0?A:[],a=-1,u=[],d&&N.push(d),d=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function tu(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(_)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let u=0;u{"use strict";p();m();f();ur();yt();Di();st();Es=Object.freeze({})});function $e(e){return Ur(e,wx)}function fe(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ai(e){return Xe(`{ `,zp(fe(e,` `)),` -}`)}function He(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function zp(e){return He(" ",e.replace(/\n/g,` +}`)}function Xe(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function zp(e){return Xe(" ",e.replace(/\n/g,` `))}function Mb(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}var Ax,wx,br=j(()=>{"use strict";p();m();f();Lc();kb();ea();Ax=80,wx={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>fe(e.definitions,` +`)))!==null&&t!==void 0?t:!1}var Ax,wx,br=j(()=>{"use strict";p();m();f();Rc();kb();ea();Ax=80,wx={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>fe(e.definitions,` -`)},OperationDefinition:{leave(e){let t=He("(",fe(e.variableDefinitions,", "),")"),n=fe([e.operation,fe([e.name,t]),fe(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+He(" = ",n)+He(" ",fe(r," "))},SelectionSet:{leave:({selections:e})=>ai(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=He("",e,": ")+t,s=o+He("(",fe(n,", "),")");return s.length>Ax&&(s=o+He(`( +`)},OperationDefinition:{leave(e){let t=Xe("(",fe(e.variableDefinitions,", "),")"),n=fe([e.operation,fe([e.name,t]),fe(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Xe(" = ",n)+Xe(" ",fe(r," "))},SelectionSet:{leave:({selections:e})=>ai(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=Xe("",e,": ")+t,s=o+Xe("(",fe(n,", "),")");return s.length>Ax&&(s=o+Xe(`( `,zp(fe(n,` `)),` -)`)),fe([s,fe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+He(" ",fe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>fe(["...",He("on ",e),fe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${He("(",fe(n,", "),")")} on ${t} ${He("",fe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Bp(e):xb(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+fe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+fe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+He("(",fe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>He("",e,` -`)+fe(["schema",fe(t," "),ai(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>He("",e,` -`)+fe(["scalar",t,fe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>He("",e,` -`)+fe(["type",t,He("implements ",fe(n," & ")),fe(r," "),ai(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>He("",e,` -`)+t+(Mb(n)?He(`( +)`)),fe([s,fe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Xe(" ",fe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>fe(["...",Xe("on ",e),fe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Xe("(",fe(n,", "),")")} on ${t} ${Xe("",fe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Bp(e):xb(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+fe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+fe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Xe("(",fe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Xe("",e,` +`)+fe(["schema",fe(t," "),ai(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Xe("",e,` +`)+fe(["scalar",t,fe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xe("",e,` +`)+fe(["type",t,Xe("implements ",fe(n," & ")),fe(r," "),ai(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Xe("",e,` +`)+t+(Mb(n)?Xe(`( `,zp(fe(n,` `)),` -)`):He("(",fe(n,", "),")"))+": "+r+He(" ",fe(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>He("",e,` -`)+fe([t+": "+n,He("= ",r),fe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>He("",e,` -`)+fe(["interface",t,He("implements ",fe(n," & ")),fe(r," "),ai(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>He("",e,` -`)+fe(["union",t,fe(n," "),He("= ",fe(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>He("",e,` -`)+fe(["enum",t,fe(n," "),ai(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>He("",e,` -`)+fe([t,fe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>He("",e,` -`)+fe(["input",t,fe(n," "),ai(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>He("",e,` -`)+"directive @"+t+(Mb(n)?He(`( +)`):Xe("(",fe(n,", "),")"))+": "+r+Xe(" ",fe(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Xe("",e,` +`)+fe([t+": "+n,Xe("= ",r),fe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Xe("",e,` +`)+fe(["interface",t,Xe("implements ",fe(n," & ")),fe(r," "),ai(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Xe("",e,` +`)+fe(["union",t,fe(n," "),Xe("= ",fe(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Xe("",e,` +`)+fe(["enum",t,fe(n," "),ai(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Xe("",e,` +`)+fe([t,fe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Xe("",e,` +`)+fe(["input",t,fe(n," "),ai(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Xe("",e,` +`)+"directive @"+t+(Mb(n)?Xe(`( `,zp(fe(n,` `)),` -)`):He("(",fe(n,", "),")"))+(r?" repeatable":"")+" on "+fe(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>fe(["extend schema",fe(e," "),ai(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>fe(["extend scalar",e,fe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>fe(["extend type",e,He("implements ",fe(t," & ")),fe(n," "),ai(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>fe(["extend interface",e,He("implements ",fe(t," & ")),fe(n," "),ai(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>fe(["extend union",e,fe(t," "),He("= ",fe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>fe(["extend enum",e,fe(t," "),ai(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>fe(["extend input",e,fe(t," "),ai(n)]," ")}}});function ta(e,t){switch(e.kind){case _.NULL:return null;case _.INT:return parseInt(e.value,10);case _.FLOAT:return parseFloat(e.value);case _.STRING:case _.ENUM:case _.BOOLEAN:return e.value;case _.LIST:return e.values.map(n=>ta(n,t));case _.OBJECT:return Mr(e.fields,n=>n.name.value,n=>ta(n.value,t));case _.VARIABLE:return t==null?void 0:t[e.name.value]}}var Ay=j(()=>{"use strict";p();m();f();Uc();st()});function Rn(e){if(e!=null||Se(!1,"Must provide name."),typeof e=="string"||Se(!1,"Expected name to be a string."),e.length===0)throw new x("Expected name to be a non-empty string.");for(let t=1;t{"use strict";p();m();f();ur();we();Cp()});function Es(e){return Jt(e)||De(e)||Me(e)||lt(e)||it(e)||Ue(e)||qe(e)||ye(e)}function wy(e){if(!Es(e))throw new Error(`Expected ${B(e)} to be a GraphQL type.`);return e}function Jt(e){return cr(e,Vn)}function Fy(e){if(!Jt(e))throw new Error(`Expected ${B(e)} to be a GraphQL Scalar type.`);return e}function De(e){return cr(e,Nn)}function $c(e){if(!De(e))throw new Error(`Expected ${B(e)} to be a GraphQL Object type.`);return e}function Me(e){return cr(e,Sr)}function jc(e){if(!Me(e))throw new Error(`Expected ${B(e)} to be a GraphQL Interface type.`);return e}function lt(e){return cr(e,Dr)}function Ry(e){if(!lt(e))throw new Error(`Expected ${B(e)} to be a GraphQL Union type.`);return e}function it(e){return cr(e,Hn)}function Ly(e){if(!it(e))throw new Error(`Expected ${B(e)} to be a GraphQL Enum type.`);return e}function Ue(e){return cr(e,Or)}function Py(e){if(!Ue(e))throw new Error(`Expected ${B(e)} to be a GraphQL Input Object type.`);return e}function qe(e){return cr(e,Lt)}function xy(e){if(!qe(e))throw new Error(`Expected ${B(e)} to be a GraphQL List type.`);return e}function ye(e){return cr(e,Re)}function ky(e){if(!ye(e))throw new Error(`Expected ${B(e)} to be a GraphQL Non-Null type.`);return e}function un(e){return Jt(e)||it(e)||Ue(e)||na(e)&&un(e.ofType)}function My(e){if(!un(e))throw new Error(`Expected ${B(e)} to be a GraphQL input type.`);return e}function Ar(e){return Jt(e)||De(e)||Me(e)||lt(e)||it(e)||na(e)&&Ar(e.ofType)}function Uy(e){if(!Ar(e))throw new Error(`Expected ${B(e)} to be a GraphQL output type.`);return e}function vn(e){return Jt(e)||it(e)}function Cy(e){if(!vn(e))throw new Error(`Expected ${B(e)} to be a GraphQL leaf type.`);return e}function pr(e){return De(e)||Me(e)||lt(e)}function By(e){if(!pr(e))throw new Error(`Expected ${B(e)} to be a GraphQL composite type.`);return e}function $n(e){return Me(e)||lt(e)}function Vy(e){if(!$n(e))throw new Error(`Expected ${B(e)} to be a GraphQL abstract type.`);return e}function na(e){return qe(e)||ye(e)}function $y(e){if(!na(e))throw new Error(`Expected ${B(e)} to be a GraphQL wrapping type.`);return e}function Gc(e){return Es(e)&&!ye(e)}function qc(e){if(!Gc(e))throw new Error(`Expected ${B(e)} to be a GraphQL nullable type.`);return e}function ra(e){if(e)return ye(e)?e.ofType:e}function ro(e){return Jt(e)||De(e)||Me(e)||lt(e)||it(e)||Ue(e)}function jy(e){if(!ro(e))throw new Error(`Expected ${B(e)} to be a GraphQL named type.`);return e}function Vt(e){if(e){let t=e;for(;na(t);)t=t.ofType;return t}}function Kc(e){return typeof e=="function"?e():e}function Qc(e){return typeof e=="function"?e():e}function Ub(e){var t;let n=Kc((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||Se(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Cb(e){let t=Qc(e.fields);return nu(t)||Se(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),si(t,(n,r)=>{var i;nu(n)||Se(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Se(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${B(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return nu(o)||Se(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Rn(r),description:n.description,type:n.type,args:Gy(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:dr(n.extensions),astNode:n.astNode}})}function Gy(e){return Object.entries(e).map(([t,n])=>({name:Rn(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:dr(n.extensions),astNode:n.astNode}))}function nu(e){return nn(e)&&!Array.isArray(e)}function Bb(e){return si(e,t=>({description:t.description,type:t.type,args:qy(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function qy(e){return Mr(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function wr(e){return ye(e.type)&&e.defaultValue===void 0}function Fx(e){let t=Kc(e.types);return Array.isArray(t)||Se(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function Wp(e,t){let n=e.getValues().map(i=>i.name),r=lr(t,n);return Wn("the enum value",r)}function Rx(e,t){return nu(t)||Se(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(nu(r)||Se(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${B(r)}.`),{name:Bc(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:dr(r.extensions),astNode:r.astNode}))}function Lx(e){let t=Qc(e.fields);return nu(t)||Se(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),si(t,(n,r)=>(!("resolve"in n)||Se(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Rn(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:dr(n.extensions),astNode:n.astNode}))}function io(e){return ye(e.type)&&e.defaultValue===void 0}var Lt,Re,Vn,Nn,Sr,Dr,Hn,Or,tt=j(()=>{"use strict";p();m();f();ur();hs();Lb();yt();kc();Si();ys();Uc();by();Ts();Jp();we();st();br();Ay();Vc();Lt=class{constructor(t){Es(t)||Se(!1,`Expected ${B(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},Re=class{constructor(t){Gc(t)||Se(!1,`Expected ${B(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Vn=class{constructor(t){var n,r,i,o;let s=(n=t.parseValue)!==null&&n!==void 0?n:_y;this.name=Rn(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:_y,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s(ta(a,u)),this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Se(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${B(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Se(!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.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||Se(!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()}},Nn=class{constructor(t){var n;this.name=Rn(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>Cb(t),this._interfaces=()=>Ub(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Se(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${B(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Bb(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Sr=class{constructor(t){var n;this.name=Rn(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Cb.bind(void 0,t),this._interfaces=Ub.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Se(!1,`${this.name} must provide "resolveType" as a function, but got: ${B(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Bb(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Dr=class{constructor(t){var n;this.name=Rn(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=Fx.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Se(!1,`${this.name} must provide "resolveType" as a function, but got: ${B(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(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()}};Hn=class{constructor(t){var n;this.name=Rn(t.name),this.description=t.description,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=Rx(this.name,t.values),this._valueLookup=new Map(this._values.map(r=>[r.value,r])),this._nameLookup=Xn(this._values,r=>r.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(t){return this._nameLookup[t]}serialize(t){let n=this._valueLookup.get(t);if(n===void 0)throw new x(`Enum "${this.name}" cannot represent value: ${B(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=B(t);throw new x(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Wp(this,r))}let n=this.getValue(t);if(n==null)throw new x(`Value "${t}" does not exist in "${this.name}" enum.`+Wp(this,t));return n.value}parseLiteral(t,n){if(t.kind!==_.ENUM){let i=$e(t);throw new x(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Wp(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=$e(t);throw new x(`Value "${i}" does not exist in "${this.name}" enum.`+Wp(this,i),{nodes:t})}return r.value}toConfig(){let t=Mr(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Or=class{constructor(t){var n;this.name=Rn(t.name),this.description=t.description,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Lx.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=si(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}});function ia(e,t){return e===t?!0:ye(e)&&ye(t)||qe(e)&&qe(t)?ia(e.ofType,t.ofType):!1}function ui(e,t,n){return t===n?!0:ye(n)?ye(t)?ui(e,t.ofType,n.ofType):!1:ye(t)?ui(e,t.ofType,n):qe(n)?qe(t)?ui(e,t.ofType,n.ofType):!1:qe(t)?!1:$n(n)&&(Me(t)||De(t))&&e.isSubType(n,t)}function ru(e,t,n){return t===n?!0:$n(t)?$n(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):$n(n)?e.isSubType(n,t):!1}var Yc=j(()=>{"use strict";p();m();f();tt()});function ci(e){return Ai.some(({name:t})=>e.name===t)}function Jc(e){if(nn(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!nn(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}var iu,ou,Xp,Hp,Pt,jn,su,Ai,wi=j(()=>{"use strict";p();m();f();yt();Si();we();st();br();tt();iu=2147483647,ou=-2147483648,Xp=new Vn({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=Jc(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new x(`Int cannot represent non-integer value: ${B(t)}`);if(n>iu||niu||eiu||tt===e.name)}var Gn,au,uu,cu,Fi,lu,Zn,yr=j(()=>{"use strict";p();m();f();ur();yt();kc();Si();Jp();Wa();Vc();tt();wi();Gn=class{constructor(t){var n,r;this.name=Rn(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=dr(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||Se(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};nn(i)&&!Array.isArray(i)||Se(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Gy(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:qy(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},au=new Gn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ee.FIELD,Ee.FRAGMENT_SPREAD,Ee.INLINE_FRAGMENT],args:{if:{type:new Re(jn),description:"Included when true."}}}),uu=new Gn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ee.FIELD,Ee.FRAGMENT_SPREAD,Ee.INLINE_FRAGMENT],args:{if:{type:new Re(jn),description:"Skipped when true."}}}),cu="No longer supported",Fi=new Gn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ee.FIELD_DEFINITION,Ee.ARGUMENT_DEFINITION,Ee.INPUT_FIELD_DEFINITION,Ee.ENUM_VALUE],args:{reason:{type:Pt,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:cu}}}),lu=new Gn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ee.SCALAR],args:{url:{type:new Re(Pt),description:"The URL that specifies the behavior of this scalar."}}}),Zn=Object.freeze([au,uu,Fi,lu])});function du(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}var Zp=j(()=>{"use strict";p();m();f()});function qn(e,t){if(ye(t)){let n=qn(e,t.ofType);return(n==null?void 0:n.kind)===_.NULL?null:n}if(e===null)return{kind:_.NULL};if(e===void 0)return null;if(qe(t)){let n=t.ofType;if(du(e)){let r=[];for(let i of e){let o=qn(i,n);o!=null&&r.push(o)}return{kind:_.LIST,values:r}}return qn(e,n)}if(Ue(t)){if(!nn(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=qn(e[r.name],r.type);i&&n.push({kind:_.OBJECT_FIELD,name:{kind:_.NAME,value:r.name},value:i})}return{kind:_.OBJECT,fields:n}}if(vn(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:_.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return Vb.test(r)?{kind:_.INT,value:r}:{kind:_.FLOAT,value:r}}if(typeof n=="string")return it(t)?{kind:_.ENUM,value:n}:t===su&&Vb.test(n)?{kind:_.INT,value:n}:{kind:_.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${B(n)}.`)}Xe(!1,"Unexpected input type: "+B(t))}var Vb,zc=j(()=>{"use strict";p();m();f();yt();zn();Zp();Si();st();tt();wi();Vb=/^-?(?:0|[1-9][0-9]*)$/});function er(e){return Ri.some(({name:t})=>e.name===t)}var oa,Wc,Xc,Tr,Hc,sa,Zc,dt,el,oo,so,ao,Ri,Cr=j(()=>{"use strict";p();m();f();yt();zn();Wa();br();zc();tt();wi();oa=new Nn({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:Pt,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Re(new Lt(new Re(Tr))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Re(Tr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Tr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Tr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Re(new Lt(new Re(Wc))),resolve:e=>e.getDirectives()}})}),Wc=new Nn({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +)`):Xe("(",fe(n,", "),")"))+(r?" repeatable":"")+" on "+fe(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>fe(["extend schema",fe(e," "),ai(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>fe(["extend scalar",e,fe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>fe(["extend type",e,Xe("implements ",fe(t," & ")),fe(n," "),ai(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>fe(["extend interface",e,Xe("implements ",fe(t," & ")),fe(n," "),ai(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>fe(["extend union",e,fe(t," "),Xe("= ",fe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>fe(["extend enum",e,fe(t," "),ai(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>fe(["extend input",e,fe(t," "),ai(n)]," ")}}});function ta(e,t){switch(e.kind){case _.NULL:return null;case _.INT:return parseInt(e.value,10);case _.FLOAT:return parseFloat(e.value);case _.STRING:case _.ENUM:case _.BOOLEAN:return e.value;case _.LIST:return e.values.map(n=>ta(n,t));case _.OBJECT:return Mr(e.fields,n=>n.name.value,n=>ta(n.value,t));case _.VARIABLE:return t==null?void 0:t[e.name.value]}}var Ay=j(()=>{"use strict";p();m();f();Uc();st()});function Ln(e){if(e!=null||Se(!1,"Must provide name."),typeof e=="string"||Se(!1,"Expected name to be a string."),e.length===0)throw new x("Expected name to be a non-empty string.");for(let t=1;t{"use strict";p();m();f();ur();we();Cp()});function gs(e){return zt(e)||De(e)||Me(e)||lt(e)||it(e)||Ue(e)||Ke(e)||ye(e)}function wy(e){if(!gs(e))throw new Error(`Expected ${B(e)} to be a GraphQL type.`);return e}function zt(e){return cr(e,$n)}function Fy(e){if(!zt(e))throw new Error(`Expected ${B(e)} to be a GraphQL Scalar type.`);return e}function De(e){return cr(e,Nn)}function $c(e){if(!De(e))throw new Error(`Expected ${B(e)} to be a GraphQL Object type.`);return e}function Me(e){return cr(e,Sr)}function jc(e){if(!Me(e))throw new Error(`Expected ${B(e)} to be a GraphQL Interface type.`);return e}function lt(e){return cr(e,Dr)}function Ly(e){if(!lt(e))throw new Error(`Expected ${B(e)} to be a GraphQL Union type.`);return e}function it(e){return cr(e,Xn)}function Ry(e){if(!it(e))throw new Error(`Expected ${B(e)} to be a GraphQL Enum type.`);return e}function Ue(e){return cr(e,Or)}function Py(e){if(!Ue(e))throw new Error(`Expected ${B(e)} to be a GraphQL Input Object type.`);return e}function Ke(e){return cr(e,Rt)}function xy(e){if(!Ke(e))throw new Error(`Expected ${B(e)} to be a GraphQL List type.`);return e}function ye(e){return cr(e,Le)}function ky(e){if(!ye(e))throw new Error(`Expected ${B(e)} to be a GraphQL Non-Null type.`);return e}function un(e){return zt(e)||it(e)||Ue(e)||na(e)&&un(e.ofType)}function My(e){if(!un(e))throw new Error(`Expected ${B(e)} to be a GraphQL input type.`);return e}function Ar(e){return zt(e)||De(e)||Me(e)||lt(e)||it(e)||na(e)&&Ar(e.ofType)}function Uy(e){if(!Ar(e))throw new Error(`Expected ${B(e)} to be a GraphQL output type.`);return e}function vn(e){return zt(e)||it(e)}function Cy(e){if(!vn(e))throw new Error(`Expected ${B(e)} to be a GraphQL leaf type.`);return e}function pr(e){return De(e)||Me(e)||lt(e)}function By(e){if(!pr(e))throw new Error(`Expected ${B(e)} to be a GraphQL composite type.`);return e}function jn(e){return Me(e)||lt(e)}function Vy(e){if(!jn(e))throw new Error(`Expected ${B(e)} to be a GraphQL abstract type.`);return e}function na(e){return Ke(e)||ye(e)}function $y(e){if(!na(e))throw new Error(`Expected ${B(e)} to be a GraphQL wrapping type.`);return e}function Gc(e){return gs(e)&&!ye(e)}function qc(e){if(!Gc(e))throw new Error(`Expected ${B(e)} to be a GraphQL nullable type.`);return e}function ra(e){if(e)return ye(e)?e.ofType:e}function ro(e){return zt(e)||De(e)||Me(e)||lt(e)||it(e)||Ue(e)}function jy(e){if(!ro(e))throw new Error(`Expected ${B(e)} to be a GraphQL named type.`);return e}function Vt(e){if(e){let t=e;for(;na(t);)t=t.ofType;return t}}function Kc(e){return typeof e=="function"?e():e}function Qc(e){return typeof e=="function"?e():e}function Ub(e){var t;let n=Kc((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||Se(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function Cb(e){let t=Qc(e.fields);return nu(t)||Se(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),si(t,(n,r)=>{var i;nu(n)||Se(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Se(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${B(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return nu(o)||Se(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Ln(r),description:n.description,type:n.type,args:Gy(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:dr(n.extensions),astNode:n.astNode}})}function Gy(e){return Object.entries(e).map(([t,n])=>({name:Ln(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:dr(n.extensions),astNode:n.astNode}))}function nu(e){return nn(e)&&!Array.isArray(e)}function Bb(e){return si(e,t=>({description:t.description,type:t.type,args:qy(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function qy(e){return Mr(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function wr(e){return ye(e.type)&&e.defaultValue===void 0}function Fx(e){let t=Kc(e.types);return Array.isArray(t)||Se(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function Wp(e,t){let n=e.getValues().map(i=>i.name),r=lr(t,n);return Wn("the enum value",r)}function Lx(e,t){return nu(t)||Se(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(nu(r)||Se(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${B(r)}.`),{name:Bc(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:dr(r.extensions),astNode:r.astNode}))}function Rx(e){let t=Qc(e.fields);return nu(t)||Se(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),si(t,(n,r)=>(!("resolve"in n)||Se(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Ln(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:dr(n.extensions),astNode:n.astNode}))}function io(e){return ye(e.type)&&e.defaultValue===void 0}var Rt,Le,$n,Nn,Sr,Dr,Xn,Or,tt=j(()=>{"use strict";p();m();f();ur();ys();Rb();yt();kc();Si();Ts();Uc();by();Ns();Jp();we();st();br();Ay();Vc();Rt=class{constructor(t){gs(t)||Se(!1,`Expected ${B(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},Le=class{constructor(t){Gc(t)||Se(!1,`Expected ${B(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};$n=class{constructor(t){var n,r,i,o;let s=(n=t.parseValue)!==null&&n!==void 0?n:_y;this.name=Ln(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:_y,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s(ta(a,u)),this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Se(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${B(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Se(!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.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||Se(!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()}},Nn=class{constructor(t){var n;this.name=Ln(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>Cb(t),this._interfaces=()=>Ub(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Se(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${B(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Bb(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Sr=class{constructor(t){var n;this.name=Ln(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Cb.bind(void 0,t),this._interfaces=Ub.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Se(!1,`${this.name} must provide "resolveType" as a function, but got: ${B(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Bb(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Dr=class{constructor(t){var n;this.name=Ln(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=Fx.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Se(!1,`${this.name} must provide "resolveType" as a function, but got: ${B(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(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()}};Xn=class{constructor(t){var n;this.name=Ln(t.name),this.description=t.description,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=Lx(this.name,t.values),this._valueLookup=new Map(this._values.map(r=>[r.value,r])),this._nameLookup=Hn(this._values,r=>r.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(t){return this._nameLookup[t]}serialize(t){let n=this._valueLookup.get(t);if(n===void 0)throw new x(`Enum "${this.name}" cannot represent value: ${B(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=B(t);throw new x(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Wp(this,r))}let n=this.getValue(t);if(n==null)throw new x(`Value "${t}" does not exist in "${this.name}" enum.`+Wp(this,t));return n.value}parseLiteral(t,n){if(t.kind!==_.ENUM){let i=$e(t);throw new x(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Wp(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=$e(t);throw new x(`Value "${i}" does not exist in "${this.name}" enum.`+Wp(this,i),{nodes:t})}return r.value}toConfig(){let t=Mr(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Or=class{constructor(t){var n;this.name=Ln(t.name),this.description=t.description,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Rx.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=si(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}});function ia(e,t){return e===t?!0:ye(e)&&ye(t)||Ke(e)&&Ke(t)?ia(e.ofType,t.ofType):!1}function ui(e,t,n){return t===n?!0:ye(n)?ye(t)?ui(e,t.ofType,n.ofType):!1:ye(t)?ui(e,t.ofType,n):Ke(n)?Ke(t)?ui(e,t.ofType,n.ofType):!1:Ke(t)?!1:jn(n)&&(Me(t)||De(t))&&e.isSubType(n,t)}function ru(e,t,n){return t===n?!0:jn(t)?jn(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):jn(n)?e.isSubType(n,t):!1}var Yc=j(()=>{"use strict";p();m();f();tt()});function ci(e){return Ai.some(({name:t})=>e.name===t)}function Jc(e){if(nn(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!nn(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}var iu,ou,Hp,Xp,Pt,Gn,su,Ai,wi=j(()=>{"use strict";p();m();f();yt();Si();we();st();br();tt();iu=2147483647,ou=-2147483648,Hp=new $n({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=Jc(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new x(`Int cannot represent non-integer value: ${B(t)}`);if(n>iu||niu||eiu||tt===e.name)}var qn,au,uu,cu,Fi,lu,Zn,yr=j(()=>{"use strict";p();m();f();ur();yt();kc();Si();Jp();Wa();Vc();tt();wi();qn=class{constructor(t){var n,r;this.name=Ln(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=dr(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||Se(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};nn(i)&&!Array.isArray(i)||Se(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=Gy(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:qy(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},au=new qn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ee.FIELD,Ee.FRAGMENT_SPREAD,Ee.INLINE_FRAGMENT],args:{if:{type:new Le(Gn),description:"Included when true."}}}),uu=new qn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ee.FIELD,Ee.FRAGMENT_SPREAD,Ee.INLINE_FRAGMENT],args:{if:{type:new Le(Gn),description:"Skipped when true."}}}),cu="No longer supported",Fi=new qn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ee.FIELD_DEFINITION,Ee.ARGUMENT_DEFINITION,Ee.INPUT_FIELD_DEFINITION,Ee.ENUM_VALUE],args:{reason:{type:Pt,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:cu}}}),lu=new qn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ee.SCALAR],args:{url:{type:new Le(Pt),description:"The URL that specifies the behavior of this scalar."}}}),Zn=Object.freeze([au,uu,Fi,lu])});function du(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}var Zp=j(()=>{"use strict";p();m();f()});function Kn(e,t){if(ye(t)){let n=Kn(e,t.ofType);return(n==null?void 0:n.kind)===_.NULL?null:n}if(e===null)return{kind:_.NULL};if(e===void 0)return null;if(Ke(t)){let n=t.ofType;if(du(e)){let r=[];for(let i of e){let o=Kn(i,n);o!=null&&r.push(o)}return{kind:_.LIST,values:r}}return Kn(e,n)}if(Ue(t)){if(!nn(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Kn(e[r.name],r.type);i&&n.push({kind:_.OBJECT_FIELD,name:{kind:_.NAME,value:r.name},value:i})}return{kind:_.OBJECT,fields:n}}if(vn(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:_.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return Vb.test(r)?{kind:_.INT,value:r}:{kind:_.FLOAT,value:r}}if(typeof n=="string")return it(t)?{kind:_.ENUM,value:n}:t===su&&Vb.test(n)?{kind:_.INT,value:n}:{kind:_.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${B(n)}.`)}He(!1,"Unexpected input type: "+B(t))}var Vb,zc=j(()=>{"use strict";p();m();f();yt();zn();Zp();Si();st();tt();wi();Vb=/^-?(?:0|[1-9][0-9]*)$/});function er(e){return Li.some(({name:t})=>e.name===t)}var oa,Wc,Hc,Tr,Xc,sa,Zc,dt,el,oo,so,ao,Li,Cr=j(()=>{"use strict";p();m();f();yt();zn();Wa();br();zc();tt();wi();oa=new Nn({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:Pt,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Le(new Rt(new Le(Tr))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Le(Tr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Tr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Tr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Le(new Rt(new Le(Wc))),resolve:e=>e.getDirectives()}})}),Wc=new Nn({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -In 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 Re(Pt),resolve:e=>e.name},description:{type:Pt,resolve:e=>e.description},isRepeatable:{type:new Re(jn),resolve:e=>e.isRepeatable},locations:{type:new Re(new Lt(new Re(Xc))),resolve:e=>e.locations},args:{type:new Re(new Lt(new Re(sa))),args:{includeDeprecated:{type:jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),Xc=new Hn({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:Ee.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ee.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ee.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ee.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ee.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ee.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ee.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ee.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ee.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ee.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ee.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ee.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ee.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ee.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ee.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ee.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ee.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ee.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ee.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Tr=new Nn({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 Re(el),resolve(e){if(Jt(e))return dt.SCALAR;if(De(e))return dt.OBJECT;if(Me(e))return dt.INTERFACE;if(lt(e))return dt.UNION;if(it(e))return dt.ENUM;if(Ue(e))return dt.INPUT_OBJECT;if(qe(e))return dt.LIST;if(ye(e))return dt.NON_NULL;Xe(!1,`Unexpected type: "${B(e)}".`)}},name:{type:Pt,resolve:e=>"name"in e?e.name:void 0},description:{type:Pt,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Pt,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Lt(new Re(Hc)),args:{includeDeprecated:{type:jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(De(e)||Me(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Lt(new Re(Tr)),resolve(e){if(De(e)||Me(e))return e.getInterfaces()}},possibleTypes:{type:new Lt(new Re(Tr)),resolve(e,t,n,{schema:r}){if($n(e))return r.getPossibleTypes(e)}},enumValues:{type:new Lt(new Re(Zc)),args:{includeDeprecated:{type:jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(it(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Lt(new Re(sa)),args:{includeDeprecated:{type:jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ue(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Tr,resolve:e=>"ofType"in e?e.ofType:void 0}})}),Hc=new Nn({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 Re(Pt),resolve:e=>e.name},description:{type:Pt,resolve:e=>e.description},args:{type:new Re(new Lt(new Re(sa))),args:{includeDeprecated:{type:jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Re(Tr),resolve:e=>e.type},isDeprecated:{type:new Re(jn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Pt,resolve:e=>e.deprecationReason}})}),sa=new Nn({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 Re(Pt),resolve:e=>e.name},description:{type:Pt,resolve:e=>e.description},type:{type:new Re(Tr),resolve:e=>e.type},defaultValue:{type:Pt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=qn(n,t);return r?$e(r):null}},isDeprecated:{type:new Re(jn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Pt,resolve:e=>e.deprecationReason}})}),Zc=new Nn({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 Re(Pt),resolve:e=>e.name},description:{type:Pt,resolve:e=>e.description},isDeprecated:{type:new Re(jn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Pt,resolve:e=>e.deprecationReason}})});(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(dt||(dt={}));el=new Hn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:dt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:dt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:dt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:dt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:dt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:dt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:dt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:dt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),oo={name:"__schema",type:new Re(oa),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},so={name:"__type",type:Tr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Re(Pt),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},ao={name:"__typename",type:new Re(Pt),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},Ri=Object.freeze([oa,Wc,Xc,Tr,Hc,sa,Zc,el])});function ef(e){return cr(e,Nr)}function aa(e){if(!ef(e))throw new Error(`Expected ${B(e)} to be a GraphQL schema.`);return e}function li(e,t){let n=Vt(e);if(!t.has(n)){if(t.add(n),lt(n))for(let r of n.getTypes())li(r,t);else if(De(n)||Me(n)){for(let r of n.getInterfaces())li(r,t);for(let r of Object.values(n.getFields())){li(r.type,t);for(let i of r.args)li(i.type,t)}}else if(Ue(n))for(let r of Object.values(n.getFields()))li(r.type,t)}return t}var Nr,ua=j(()=>{"use strict";p();m();f();ur();yt();kc();Si();Jp();Di();tt();yr();Cr();Nr=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,nn(t)||Se(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Se(!1,`"types" must be Array if provided but got: ${B(t.types)}.`),!t.directives||Array.isArray(t.directives)||Se(!1,`"directives" must be Array if provided but got: ${B(t.directives)}.`),this.description=t.description,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Zn;let i=new Set(t.types);if(t.types!=null)for(let o of t.types)i.delete(o),li(o,i);this._queryType!=null&&li(this._queryType,i),this._mutationType!=null&&li(this._mutationType,i),this._subscriptionType!=null&&li(this._subscriptionType,i);for(let o of this._directives)if(gs(o))for(let s of o.args)li(s.type,i);li(oa,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||Se(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,Me(o)){for(let a of o.getInterfaces())if(Me(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if(De(o)){for(let a of o.getInterfaces())if(Me(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Rt.QUERY:return this.getQueryType();case Rt.MUTATION:return this.getMutationType();case Rt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return lt(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),lt(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let o of i.objects)r[o.name]=!0;for(let o of i.interfaces)r[o.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}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:this.__validationErrors!==void 0}}}});function pu(e){if(aa(e),e.__validationErrors)return e.__validationErrors;let t=new Yy(e);Px(t),xx(t),kx(t);let n=t.getErrors();return e.__validationErrors=n,n}function la(e){let t=pu(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +In 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 Le(Pt),resolve:e=>e.name},description:{type:Pt,resolve:e=>e.description},isRepeatable:{type:new Le(Gn),resolve:e=>e.isRepeatable},locations:{type:new Le(new Rt(new Le(Hc))),resolve:e=>e.locations},args:{type:new Le(new Rt(new Le(sa))),args:{includeDeprecated:{type:Gn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),Hc=new Xn({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:Ee.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Ee.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Ee.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Ee.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Ee.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Ee.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Ee.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Ee.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Ee.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Ee.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Ee.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Ee.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Ee.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Ee.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Ee.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Ee.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Ee.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Ee.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Ee.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Tr=new Nn({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 Le(el),resolve(e){if(zt(e))return dt.SCALAR;if(De(e))return dt.OBJECT;if(Me(e))return dt.INTERFACE;if(lt(e))return dt.UNION;if(it(e))return dt.ENUM;if(Ue(e))return dt.INPUT_OBJECT;if(Ke(e))return dt.LIST;if(ye(e))return dt.NON_NULL;He(!1,`Unexpected type: "${B(e)}".`)}},name:{type:Pt,resolve:e=>"name"in e?e.name:void 0},description:{type:Pt,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Pt,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Rt(new Le(Xc)),args:{includeDeprecated:{type:Gn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(De(e)||Me(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Rt(new Le(Tr)),resolve(e){if(De(e)||Me(e))return e.getInterfaces()}},possibleTypes:{type:new Rt(new Le(Tr)),resolve(e,t,n,{schema:r}){if(jn(e))return r.getPossibleTypes(e)}},enumValues:{type:new Rt(new Le(Zc)),args:{includeDeprecated:{type:Gn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(it(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Rt(new Le(sa)),args:{includeDeprecated:{type:Gn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Ue(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Tr,resolve:e=>"ofType"in e?e.ofType:void 0}})}),Xc=new Nn({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 Le(Pt),resolve:e=>e.name},description:{type:Pt,resolve:e=>e.description},args:{type:new Le(new Rt(new Le(sa))),args:{includeDeprecated:{type:Gn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Le(Tr),resolve:e=>e.type},isDeprecated:{type:new Le(Gn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Pt,resolve:e=>e.deprecationReason}})}),sa=new Nn({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 Le(Pt),resolve:e=>e.name},description:{type:Pt,resolve:e=>e.description},type:{type:new Le(Tr),resolve:e=>e.type},defaultValue:{type:Pt,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=Kn(n,t);return r?$e(r):null}},isDeprecated:{type:new Le(Gn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Pt,resolve:e=>e.deprecationReason}})}),Zc=new Nn({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 Le(Pt),resolve:e=>e.name},description:{type:Pt,resolve:e=>e.description},isDeprecated:{type:new Le(Gn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Pt,resolve:e=>e.deprecationReason}})});(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(dt||(dt={}));el=new Xn({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:dt.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:dt.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:dt.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:dt.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:dt.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:dt.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:dt.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:dt.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),oo={name:"__schema",type:new Le(oa),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},so={name:"__type",type:Tr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Le(Pt),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},ao={name:"__typename",type:new Le(Pt),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},Li=Object.freeze([oa,Wc,Hc,Tr,Xc,sa,Zc,el])});function ef(e){return cr(e,Nr)}function aa(e){if(!ef(e))throw new Error(`Expected ${B(e)} to be a GraphQL schema.`);return e}function li(e,t){let n=Vt(e);if(!t.has(n)){if(t.add(n),lt(n))for(let r of n.getTypes())li(r,t);else if(De(n)||Me(n)){for(let r of n.getInterfaces())li(r,t);for(let r of Object.values(n.getFields())){li(r.type,t);for(let i of r.args)li(i.type,t)}}else if(Ue(n))for(let r of Object.values(n.getFields()))li(r.type,t)}return t}var Nr,ua=j(()=>{"use strict";p();m();f();ur();yt();kc();Si();Jp();Di();tt();yr();Cr();Nr=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,nn(t)||Se(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Se(!1,`"types" must be Array if provided but got: ${B(t.types)}.`),!t.directives||Array.isArray(t.directives)||Se(!1,`"directives" must be Array if provided but got: ${B(t.directives)}.`),this.description=t.description,this.extensions=dr(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Zn;let i=new Set(t.types);if(t.types!=null)for(let o of t.types)i.delete(o),li(o,i);this._queryType!=null&&li(this._queryType,i),this._mutationType!=null&&li(this._mutationType,i),this._subscriptionType!=null&&li(this._subscriptionType,i);for(let o of this._directives)if(Is(o))for(let s of o.args)li(s.type,i);li(oa,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||Se(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,Me(o)){for(let a of o.getInterfaces())if(Me(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if(De(o)){for(let a of o.getInterfaces())if(Me(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Lt.QUERY:return this.getQueryType();case Lt.MUTATION:return this.getMutationType();case Lt.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return lt(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),lt(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let o of i.objects)r[o.name]=!0;for(let o of i.interfaces)r[o.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}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:this.__validationErrors!==void 0}}}});function pu(e){if(aa(e),e.__validationErrors)return e.__validationErrors;let t=new Yy(e);Px(t),xx(t),kx(t);let n=t.getErrors();return e.__validationErrors=n,n}function la(e){let t=pu(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}function Px(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!De(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${B(n)}.`,(r=Qy(t,Rt.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!De(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${B(i)}.`,(o=Qy(t,Rt.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=t.getSubscriptionType();if(s&&!De(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${B(s)}.`,(a=Qy(t,Rt.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function Qy(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function xx(e){for(let n of e.schema.getDirectives()){if(!gs(n)){e.reportError(`Expected directive but got: ${B(n)}.`,n==null?void 0:n.astNode);continue}ca(e,n);for(let r of n.args)if(ca(e,r),un(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${B(r.type)}.`,r.astNode),wr(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Jy(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function ca(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function kx(e){let t=$x(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!ro(r)){e.reportError(`Expected GraphQL named type but got: ${B(r)}.`,r.astNode);continue}er(r)||ca(e,r),De(r)||Me(r)?($b(e,r),jb(e,r)):lt(r)?Cx(e,r):it(r)?Bx(e,r):Ue(r)&&(Vx(e,r),t(r))}}function $b(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(ca(e,s),!Ar(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${B(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}for(let a of s.args){let u=a.name;if(ca(e,a),!un(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${u}:) must be Input Type but got: ${B(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(wr(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${u}:) cannot be deprecated.`,[Jy(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function jb(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!Me(r)){e.reportError(`Type ${B(t)} must only implement Interface types, it cannot implement ${B(r)}.`,tl(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tl(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tl(t,r));continue}n[r.name]=!0,Ux(e,t,r),Mx(e,t,r)}}function Mx(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){let c=u.name,l=r[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!ui(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${n.name}.${c} expects type ${B(u.type)} but ${t.name}.${c} is type ${B(l.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let d of u.args){let h=d.name,N=l.args.find(E=>E.name===h);if(!N){e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expected but ${t.name}.${c} does not provide it.`,[d.astNode,l.astNode]);continue}if(!ia(d.type,N.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expects type ${B(d.type)} but ${t.name}.${c}(${h}:) is type ${B(N.type)}.`,[(s=d.astNode)===null||s===void 0?void 0:s.type,(a=N.astNode)===null||a===void 0?void 0:a.type])}}for(let d of l.args){let h=d.name;!u.args.find(E=>E.name===h)&&wr(d)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${h} that is missing from the Interface field ${n.name}.${c}.`,[d.astNode,u.astNode])}}}function Ux(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}.`,[...tl(n,i),...tl(t,n)])}function Cx(e,t){let n=t.getTypes();n.length===0&&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.`,Gb(t,i.name));continue}r[i.name]=!0,De(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${B(i)}.`,Gb(t,String(i)))}}function Bx(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)ca(e,r)}function Vx(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(ca(e,o),!un(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${B(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if(io(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Jy(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}}}function $x(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if(ye(a.type)&&Ue(a.type.ofType)){let u=a.type.ofType,c=r[u.name];if(n.push(a),c===void 0)i(u);else{let l=n.slice(c),d=l.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${d}".`,l.map(h=>h.astNode))}n.pop()}r[o.name]=void 0}}function tl(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function Gb(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function Jy(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Fi.name)}var Yy,nl=j(()=>{"use strict";p();m();f();yt();we();Di();Yc();tt();yr();Cr();ua();Yy=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new x(t,{nodes:r}))}getErrors(){return this._errors}}});function $t(e,t){switch(t.kind){case _.LIST_TYPE:{let n=$t(e,t.type);return n&&new Lt(n)}case _.NON_NULL_TYPE:{let n=$t(e,t.type);return n&&new Re(n)}case _.NAMED_TYPE:return e.getType(t.name.value)}}var Li=j(()=>{"use strict";p();m();f();st();tt()});function jx(e,t,n){let r=n.name.value;if(r===oo.name&&e.getQueryType()===t)return oo;if(r===so.name&&e.getQueryType()===t)return so;if(r===ao.name&&pr(t))return ao;if(De(t)||Me(t))return t.getFields()[r]}function da(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=no(t,r.kind).enter;if(i){let o=i.apply(t,n);return o!==void 0&&(e.leave(r),Fc(o)&&e.enter(o)),o}},leave(...n){let r=n[0],i=no(t,r.kind).leave,o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}var uo,tf=j(()=>{"use strict";p();m();f();Di();st();ea();tt();Cr();Li();uo=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:jx,n&&(un(n)&&this._inputTypeStack.push(n),pr(n)&&this._parentTypeStack.push(n),Ar(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){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(t){let n=this._schema;switch(t.kind){case _.SELECTION_SET:{let i=Vt(this.getType());this._parentTypeStack.push(pr(i)?i:void 0);break}case _.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,t),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(Ar(s)?s:void 0);break}case _.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case _.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(De(i)?i:void 0);break}case _.INLINE_FRAGMENT:case _.FRAGMENT_DEFINITION:{let i=t.typeCondition,o=i?$t(n,i):Vt(this.getType());this._typeStack.push(Ar(o)?o:void 0);break}case _.VARIABLE_DEFINITION:{let i=$t(n,t.type);this._inputTypeStack.push(un(i)?i:void 0);break}case _.ARGUMENT:{var r;let i,o,s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();s&&(i=s.args.find(a=>a.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(un(o)?o:void 0);break}case _.LIST:{let i=ra(this.getInputType()),o=qe(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(un(o)?o:void 0);break}case _.OBJECT_FIELD:{let i=Vt(this.getInputType()),o,s;Ue(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push(un(o)?o:void 0);break}case _.ENUM:{let i=Vt(this.getInputType()),o;it(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}default:}}leave(t){switch(t.kind){case _.SELECTION_SET:this._parentTypeStack.pop();break;case _.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case _.DIRECTIVE:this._directive=null;break;case _.OPERATION_DEFINITION:case _.INLINE_FRAGMENT:case _.FRAGMENT_DEFINITION:this._typeStack.pop();break;case _.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case _.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case _.LIST:case _.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case _.ENUM:this._enumValue=null;break;default:}}}});function zy(e){return fu(e)||mu(e)||hu(e)}function fu(e){return e.kind===_.OPERATION_DEFINITION||e.kind===_.FRAGMENT_DEFINITION}function Wy(e){return e.kind===_.FIELD||e.kind===_.FRAGMENT_SPREAD||e.kind===_.INLINE_FRAGMENT}function nf(e){return e.kind===_.VARIABLE||e.kind===_.INT||e.kind===_.FLOAT||e.kind===_.STRING||e.kind===_.BOOLEAN||e.kind===_.NULL||e.kind===_.ENUM||e.kind===_.LIST||e.kind===_.OBJECT}function rl(e){return nf(e)&&(e.kind===_.LIST?e.values.some(rl):e.kind===_.OBJECT?e.fields.some(t=>rl(t.value)):e.kind!==_.VARIABLE)}function Xy(e){return e.kind===_.NAMED_TYPE||e.kind===_.LIST_TYPE||e.kind===_.NON_NULL_TYPE}function mu(e){return e.kind===_.SCHEMA_DEFINITION||Br(e)||e.kind===_.DIRECTIVE_DEFINITION}function Br(e){return e.kind===_.SCALAR_TYPE_DEFINITION||e.kind===_.OBJECT_TYPE_DEFINITION||e.kind===_.INTERFACE_TYPE_DEFINITION||e.kind===_.UNION_TYPE_DEFINITION||e.kind===_.ENUM_TYPE_DEFINITION||e.kind===_.INPUT_OBJECT_TYPE_DEFINITION}function hu(e){return e.kind===_.SCHEMA_EXTENSION||vs(e)}function vs(e){return e.kind===_.SCALAR_TYPE_EXTENSION||e.kind===_.OBJECT_TYPE_EXTENSION||e.kind===_.INTERFACE_TYPE_EXTENSION||e.kind===_.UNION_TYPE_EXTENSION||e.kind===_.ENUM_TYPE_EXTENSION||e.kind===_.INPUT_OBJECT_TYPE_EXTENSION}var pa=j(()=>{"use strict";p();m();f();st()});function il(e){return{Document(t){for(let n of t.definitions)if(!fu(n)){let r=n.kind===_.SCHEMA_DEFINITION||n.kind===_.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new x(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}var Hy=j(()=>{"use strict";p();m();f();we();st();pa()});function ol(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=t.name.value,s=Wn("to use an inline fragment on",Gx(i,n,o));s===""&&(s=Wn(qx(n,o))),e.reportError(new x(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:t}))}}}}function Gx(e,t,n){if(!$n(t))return[];let r=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(r.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:Me(s)&&e.isSubType(s,a)?-1:Me(a)&&e.isSubType(a,s)?1:to(s.name,a.name)}).map(s=>s.name)}function qx(e,t){if(De(e)||Me(e)){let n=Object.keys(e.getFields());return lr(t,n)}return[]}var Zy=j(()=>{"use strict";p();m();f();hs();Cc();Ts();we();tt()});function sl(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=$t(e.getSchema(),n);if(r&&!pr(r)){let i=$e(n);e.reportError(new x(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=$t(e.getSchema(),t.typeCondition);if(n&&!pr(n)){let r=$e(t.typeCondition);e.reportError(new x(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}var eT=j(()=>{"use strict";p();m();f();we();br();tt();Li()});function al(e){return U(w({},tT(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let o=t.name.value,s=r.args.map(u=>u.name),a=lr(o,s);e.reportError(new x(`Unknown argument "${o}" on field "${i.name}.${r.name}".`+Wn(a),{nodes:t}))}}})}function tT(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Zn;for(let s of r)t[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===_.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(u=>u.name.value)}return{Directive(s){let a=s.name.value,u=t[a];if(s.arguments&&u)for(let c of s.arguments){let l=c.name.value;if(!u.includes(l)){let d=lr(l,u);e.reportError(new x(`Unknown argument "${l}" on directive "@${a}".`+Wn(d),{nodes:c}))}}return!1}}}var nT=j(()=>{"use strict";p();m();f();hs();Ts();we();st();yr()});function yu(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Zn;for(let o of r)t[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===_.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,u,c){let l=o.name.value,d=t[l];if(!d){e.reportError(new x(`Unknown directive "@${l}".`,{nodes:o}));return}let h=Kx(c);h&&!d.includes(h)&&e.reportError(new x(`Directive "@${l}" may not be used on ${h}.`,{nodes:o}))}}}function Kx(e){let t=e[e.length-1];switch("kind"in t||Xe(!1),t.kind){case _.OPERATION_DEFINITION:return Qx(t.operation);case _.FIELD:return Ee.FIELD;case _.FRAGMENT_SPREAD:return Ee.FRAGMENT_SPREAD;case _.INLINE_FRAGMENT:return Ee.INLINE_FRAGMENT;case _.FRAGMENT_DEFINITION:return Ee.FRAGMENT_DEFINITION;case _.VARIABLE_DEFINITION:return Ee.VARIABLE_DEFINITION;case _.SCHEMA_DEFINITION:case _.SCHEMA_EXTENSION:return Ee.SCHEMA;case _.SCALAR_TYPE_DEFINITION:case _.SCALAR_TYPE_EXTENSION:return Ee.SCALAR;case _.OBJECT_TYPE_DEFINITION:case _.OBJECT_TYPE_EXTENSION:return Ee.OBJECT;case _.FIELD_DEFINITION:return Ee.FIELD_DEFINITION;case _.INTERFACE_TYPE_DEFINITION:case _.INTERFACE_TYPE_EXTENSION:return Ee.INTERFACE;case _.UNION_TYPE_DEFINITION:case _.UNION_TYPE_EXTENSION:return Ee.UNION;case _.ENUM_TYPE_DEFINITION:case _.ENUM_TYPE_EXTENSION:return Ee.ENUM;case _.ENUM_VALUE_DEFINITION:return Ee.ENUM_VALUE;case _.INPUT_OBJECT_TYPE_DEFINITION:case _.INPUT_OBJECT_TYPE_EXTENSION:return Ee.INPUT_OBJECT;case _.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||Xe(!1),n.kind===_.INPUT_OBJECT_TYPE_DEFINITION?Ee.INPUT_FIELD_DEFINITION:Ee.ARGUMENT_DEFINITION}default:Xe(!1,"Unexpected kind: "+B(t.kind))}}function Qx(e){switch(e){case Rt.QUERY:return Ee.QUERY;case Rt.MUTATION:return Ee.MUTATION;case Rt.SUBSCRIPTION:return Ee.SUBSCRIPTION}}var rT=j(()=>{"use strict";p();m();f();yt();zn();we();Di();Wa();st();yr()});function ul(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new x(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var iT=j(()=>{"use strict";p();m();f();we()});function Tu(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let o of e.getDocument().definitions)Br(o)&&(r[o.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,s,a,u,c){let l=o.name.value;if(!n[l]&&!r[l]){var d;let h=(d=c[2])!==null&&d!==void 0?d:a,N=h!=null&&Yx(h);if(N&&qb.includes(l))return;let E=lr(l,N?qb.concat(i):i);e.reportError(new x(`Unknown type "${l}".`+Wn(E),{nodes:o}))}}}}function Yx(e){return"kind"in e&&(mu(e)||hu(e))}var qb,oT=j(()=>{"use strict";p();m();f();hs();Ts();we();pa();Cr();wi();qb=[...Ai,...Ri].map(e=>e.name)});function cl(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===_.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new x("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var sT=j(()=>{"use strict";p();m();f();we();st()});function ll(e){var t,n,r;let i=e.getSchema(),o=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new x("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new x("Must provide only one schema definition.",{nodes:a})),++s}}}var aT=j(()=>{"use strict";p();m();f();we()});function dl(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;let s=o.name.value;t[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){r[s]=n.length;for(let u of a){let c=u.name.value,l=r[c];if(n.push(u),l===void 0){let d=e.getFragment(c);d&&i(d)}else{let d=n.slice(l),h=d.slice(0,-1).map(N=>'"'+N.name.value+'"').join(", ");e.reportError(new x(`Cannot spread fragment "${c}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:d}))}n.pop()}r[s]=void 0}}}var uT=j(()=>{"use strict";p();m();f();we()});function pl(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 o=i.name.value;t[o]!==!0&&e.reportError(new x(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}var cT=j(()=>{"use strict";p();m();f();we()});function fl(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let o of e.getRecursivelyReferencedFragments(i))r[o.name.value]=!0;for(let i of n){let o=i.name.value;r[o]!==!0&&e.reportError(new x(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}var lT=j(()=>{"use strict";p();m();f();we()});function ml(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)r[o.name.value]=!0;for(let o of t){let s=o.variable.name.value;r[s]!==!0&&e.reportError(new x(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}var dT=j(()=>{"use strict";p();m();f();we()});function Nu(e){switch(e.kind){case _.OBJECT:return U(w({},e),{fields:Jx(e.fields)});case _.LIST:return U(w({},e),{values:e.values.map(Nu)});case _.INT:case _.FLOAT:case _.STRING:case _.BOOLEAN:case _.NULL:case _.ENUM:case _.VARIABLE:return e}}function Jx(e){return e.map(t=>U(w({},t),{value:Nu(t.value)})).sort((t,n)=>to(t.name.value,n.name.value))}var pT=j(()=>{"use strict";p();m();f();Cc();st()});function Qb(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Qb(n)).join(" and "):e}function hl(e){let t=new hT,n=new Map;return{SelectionSet(r){let i=zx(e,n,t,e.getParentType(),r);for(let[[o,s],a,u]of i){let c=Qb(s);e.reportError(new x(`Fields "${o}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(u)}))}}}}function zx(e,t,n,r,i){let o=[],[s,a]=sf(e,t,r,i);if(Xx(e,o,t,n,s),a.length!==0)for(let u=0;u1)for(let a=0;a({kind:_.OBJECT_FIELD,name:i.name,value:i.value}))};return $e(Nu(r))}function fT(e,t){return qe(e)?qe(t)?fT(e.ofType,t.ofType):!0:qe(t)?!0:ye(e)?ye(t)?fT(e.ofType,t.ofType):!0:ye(t)?!0:vn(e)||vn(t)?e!==t:!1}function sf(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),s=Object.create(null);Jb(e,n,r,o,s);let a=[o,Object.keys(s)];return t.set(r,a),a}function mT(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=$t(e.getSchema(),n.typeCondition);return sf(e,t,i,n.selectionSet)}function Jb(e,t,n,r,i){for(let o of n.selections)switch(o.kind){case _.FIELD:{let s=o.name.value,a;(De(t)||Me(t))&&(a=t.getFields()[s]);let u=o.alias?o.alias.value:s;r[u]||(r[u]=[]),r[u].push([t,o,a]);break}case _.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case _.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?$t(e.getSchema(),s):t;Jb(e,a,o.selectionSet,r,i);break}}}function Hx(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var hT,TT=j(()=>{"use strict";p();m();f();yt();we();st();br();tt();pT();Li();hT=class{constructor(){this._data=new Map}has(t,n,r){var i;let[o,s]=t{"use strict";p();m();f();yt();we();tt();Yc();Li()});function Tl(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Br(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let o=i.name.value,s=n[o],a=t==null?void 0:t.getType(o),u;if(s?u=ek[s.kind]:a&&(u=tk(a)),u){if(u!==i.kind){let c=nk(i.kind);e.reportError(new x(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let c=Object.keys(w(w({},n),t==null?void 0:t.getTypeMap())),l=lr(o,c);e.reportError(new x(`Cannot extend type "${o}" because it is not defined.`+Wn(l),{nodes:i.name}))}}}function tk(e){if(Jt(e))return _.SCALAR_TYPE_EXTENSION;if(De(e))return _.OBJECT_TYPE_EXTENSION;if(Me(e))return _.INTERFACE_TYPE_EXTENSION;if(lt(e))return _.UNION_TYPE_EXTENSION;if(it(e))return _.ENUM_TYPE_EXTENSION;if(Ue(e))return _.INPUT_OBJECT_TYPE_EXTENSION;Xe(!1,"Unexpected type: "+B(e))}function nk(e){switch(e){case _.SCALAR_TYPE_EXTENSION:return"scalar";case _.OBJECT_TYPE_EXTENSION:return"object";case _.INTERFACE_TYPE_EXTENSION:return"interface";case _.UNION_TYPE_EXTENSION:return"union";case _.ENUM_TYPE_EXTENSION:return"enum";case _.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Xe(!1,"Unexpected kind: "+B(e))}}var ek,ET=j(()=>{"use strict";p();m();f();hs();yt();zn();Ts();we();st();pa();tt();ek={[_.SCALAR_TYPE_DEFINITION]:_.SCALAR_TYPE_EXTENSION,[_.OBJECT_TYPE_DEFINITION]:_.OBJECT_TYPE_EXTENSION,[_.INTERFACE_TYPE_DEFINITION]:_.INTERFACE_TYPE_EXTENSION,[_.UNION_TYPE_DEFINITION]:_.UNION_TYPE_EXTENSION,[_.ENUM_TYPE_DEFINITION]:_.ENUM_TYPE_EXTENSION,[_.INPUT_OBJECT_TYPE_DEFINITION]:_.INPUT_OBJECT_TYPE_EXTENSION}});function Nl(e){return U(w({},gT(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of r.args)if(!i.has(o.name)&&wr(o)){let s=B(o.type);e.reportError(new x(`Field "${r.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}})}function gT(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Zn;for(let a of i)n[a.name]=Xn(a.args.filter(wr),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===_.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=Xn(u.filter(rk),c=>c.name.value)}return{Directive:{leave(a){let u=a.name.value,c=n[u];if(c){var l;let d=(l=a.arguments)!==null&&l!==void 0?l:[],h=new Set(d.map(N=>N.name.value));for(let[N,E]of Object.entries(c))if(!h.has(N)){let D=Es(E.type)?B(E.type):$e(E.type);e.reportError(new x(`Directive "@${u}" argument "${N}" of type "${D}" is required, but it was not provided.`,{nodes:a}))}}}}}}function rk(e){return e.type.kind===_.NON_NULL_TYPE&&e.defaultValue==null}var IT=j(()=>{"use strict";p();m();f();yt();ys();we();st();br();tt();yr()});function El(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(vn(Vt(n))){if(r){let i=t.name.value,o=B(n);e.reportError(new x(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,o=B(n);e.reportError(new x(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}var vT=j(()=>{"use strict";p();m();f();yt();we();tt()});function af(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}var _T=j(()=>{"use strict";p();m();f()});function co(e,t,n){return{prev:e,key:t,typename:n}}function Ln(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var gl=j(()=>{"use strict";p();m();f()});function vl(e,t,n=ik){return Il(e,t,n,void 0)}function ik(e,t,n){let r="Invalid value "+B(t);throw e.length>0&&(r+=` at "value${af(e)}"`),n.message=r+": "+n.message,n}function Il(e,t,n,r){if(ye(t)){if(e!=null)return Il(e,t.ofType,n,r);n(Ln(r),e,new x(`Expected non-nullable type "${B(t)}" not to be null.`));return}if(e==null)return null;if(qe(t)){let i=t.ofType;return du(e)?Array.from(e,(o,s)=>{let a=co(r,s,void 0);return Il(o,i,n,a)}):[Il(e,i,n,r)]}if(Ue(t)){if(!nn(e)){n(Ln(r),e,new x(`Expected type "${t.name}" to be an object.`));return}let i={},o=t.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if(ye(s.type)){let u=B(s.type);n(Ln(r),e,new x(`Field "${s.name}" of required type "${u}" was not provided.`))}continue}i[s.name]=Il(a,s.type,n,co(r,s.name,t.name))}for(let s of Object.keys(e))if(!o[s]){let a=lr(s,Object.keys(t.getFields()));n(Ln(r),e,new x(`Field "${s}" is not defined by type "${t.name}".`+Wn(a)))}return i}if(vn(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof x?n(Ln(r),e,o):n(Ln(r),e,new x(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return i===void 0&&n(Ln(r),e,new x(`Expected type "${t.name}".`)),i}Xe(!1,"Unexpected input type: "+B(t))}var bT=j(()=>{"use strict";p();m();f();hs();yt();zn();Zp();Si();gl();_T();Ts();we();tt()});function fr(e,t,n){if(e){if(e.kind===_.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&ye(t)?void 0:i}if(ye(t))return e.kind===_.NULL?void 0:fr(e,t.ofType,n);if(e.kind===_.NULL)return null;if(qe(t)){let r=t.ofType;if(e.kind===_.LIST){let o=[];for(let s of e.values)if(zb(s,n)){if(ye(r))return;o.push(null)}else{let a=fr(s,r,n);if(a===void 0)return;o.push(a)}return o}let i=fr(e,r,n);return i===void 0?void 0:[i]}if(Ue(t)){if(e.kind!==_.OBJECT)return;let r=Object.create(null),i=Xn(e.fields,o=>o.name.value);for(let o of Object.values(t.getFields())){let s=i[o.name];if(!s||zb(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(ye(o.type))return;continue}let a=fr(s.value,o.type,n);if(a===void 0)return;r[o.name]=a}return r}if(vn(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}Xe(!1,"Unexpected input type: "+B(t))}}function zb(e,t){return e.kind===_.VARIABLE&&(t==null||t[e.name.value]===void 0)}var _l=j(()=>{"use strict";p();m();f();yt();zn();ys();st();tt()});function bl(e,t,n,r){let i=[],o=r==null?void 0:r.maxErrors;try{let s=ok(e,t,n,a=>{if(o!=null&&i.length>=o)throw new x("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function ok(e,t,n,r){let i={};for(let o of t){let s=o.variable.name.value,a=$t(e,o.type);if(!un(a)){let c=$e(o.type);r(new x(`Variable "$${s}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Wb(n,s)){if(o.defaultValue)i[s]=fr(o.defaultValue,a);else if(ye(a)){let c=B(a);r(new x(`Variable "$${s}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=n[s];if(u===null&&ye(a)){let c=B(a);r(new x(`Variable "$${s}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}i[s]=vl(u,a,(c,l,d)=>{let h=`Variable "$${s}" got invalid value `+B(l);c.length>0&&(h+=` at "${s}${af(c)}"`),r(new x(h+"; "+d.message,{nodes:o,originalError:d}))})}return i}function _s(e,t,n){var r;let i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],s=Xn(o,a=>a.name.value);for(let a of e.args){let u=a.name,c=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(ye(c))throw new x(`Argument "${u}" of required type "${B(c)}" was not provided.`,{nodes:t});continue}let d=l.value,h=d.kind===_.NULL;if(d.kind===_.VARIABLE){let E=d.name.value;if(n==null||!Wb(n,E)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(ye(c))throw new x(`Argument "${u}" of required type "${B(c)}" was provided the variable "$${E}" which was not provided a runtime value.`,{nodes:d});continue}h=n[E]==null}if(h&&ye(c))throw new x(`Argument "${u}" of non-null type "${B(c)}" must not be null.`,{nodes:d});let N=fr(d,c,n);if(N===void 0)throw new x(`Argument "${u}" has invalid value ${$e(d)}.`,{nodes:d});i[u]=N}return i}function lo(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(o=>o.name.value===e.name);if(i)return _s(e,i,n)}function Wb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Eu=j(()=>{"use strict";p();m();f();yt();ys();_T();we();st();br();tt();bT();Li();_l()});function gu(e,t,n,r,i){let o=new Map;return uf(e,t,n,r,i,o,new Set),o}function Hb(e,t,n,r,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&uf(e,t,n,r,a.selectionSet,o,s);return o}function uf(e,t,n,r,i,o,s){for(let a of i.selections)switch(a.kind){case _.FIELD:{if(!ST(n,a))continue;let u=sk(a),c=o.get(u);c!==void 0?c.push(a):o.set(u,[a]);break}case _.INLINE_FRAGMENT:{if(!ST(n,a)||!Xb(e,a,r))continue;uf(e,t,n,r,a.selectionSet,o,s);break}case _.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!ST(n,a))continue;s.add(u);let c=t[u];if(!c||!Xb(e,c,r))continue;uf(e,t,n,r,c.selectionSet,o,s);break}}}function ST(e,t){let n=lo(uu,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=lo(au,t,e);return(r==null?void 0:r.if)!==!1}function Xb(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=$t(e,r);return i===n?!0:$n(i)?e.isSubType(i,n):!1}function sk(e){return e.alias?e.alias.value:e.name.value}var cf=j(()=>{"use strict";p();m();f();st();tt();yr();Li();Eu()});function Sl(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let c of s.definitions)c.kind===_.FRAGMENT_DEFINITION&&(a[c.name.value]=c);let u=gu(n,a,o,r,t.selectionSet);if(u.size>1){let d=[...u.values()].slice(1).flat();e.reportError(new x(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new x(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}var DT=j(()=>{"use strict";p();m();f();we();st();cf()});function Iu(e,t){let n=new Map;for(let r of e){let i=t(r),o=n.get(i);o===void 0?n.set(i,[r]):o.push(r)}return n}var lf=j(()=>{"use strict";p();m();f()});function Dl(e){return{DirectiveDefinition(r){var i;let o=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let o=r.name.value,s=(i=r.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let c=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${o}.${c}`,l)}return!1}function n(r,i){let o=Iu(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new x(`Argument "${r}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}var OT=j(()=>{"use strict";p();m();f();lf();we()});function vu(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],o=Iu(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new x(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}))}}var AT=j(()=>{"use strict";p();m();f();lf();we()});function Ol(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new x(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new x(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}var wT=j(()=>{"use strict";p();m();f();we()});function _u(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Zn;for(let a of r)t[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===_.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===_.SCHEMA_DEFINITION||a.kind===_.SCHEMA_EXTENSION)u=o;else if(Br(a)||vs(a)){let c=a.name.value;u=s[c],u===void 0&&(s[c]=u=Object.create(null))}else u=Object.create(null);for(let c of a.directives){let l=c.name.value;t[l]&&(u[l]?e.reportError(new x(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}var FT=j(()=>{"use strict";p();m();f();we();st();pa();yr()});function Al(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],c=r[a];for(let l of u){let d=l.name.value,h=n[a];it(h)&&h.getValue(d)?e.reportError(new x(`Enum value "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new x(`Enum value "${a}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}var RT=j(()=>{"use strict";p();m();f();we();tt()});function wl(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(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],c=r[a];for(let l of u){let d=l.name.value;ak(n[a],d)?e.reportError(new x(`Field "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new x(`Field "${a}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}function ak(e,t){return De(e)||Me(e)||Ue(e)?e.getFields()[t]!=null:!1}var LT=j(()=>{"use strict";p();m();f();we();tt()});function Fl(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new x(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var PT=j(()=>{"use strict";p();m();f();we()});function bu(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||Xe(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new x(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}var xT=j(()=>{"use strict";p();m();f();zn();we()});function Rl(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new x(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var kT=j(()=>{"use strict";p();m();f();we()});function Ll(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(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let u of a){let c=u.operation,l=n[c];r[c]?e.reportError(new x(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new x(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):n[c]=u}return!1}}var MT=j(()=>{"use strict";p();m();f();we()});function Pl(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new x(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new x(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}var UT=j(()=>{"use strict";p();m();f();we()});function xl(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Iu(r,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new x(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}var CT=j(()=>{"use strict";p();m();f();lf();we()});function kl(e){return{ListValue(t){let n=ra(e.getParentInputType());if(!qe(n))return fa(e,t),!1},ObjectValue(t){let n=Vt(e.getInputType());if(!Ue(n))return fa(e,t),!1;let r=Xn(t.fields,i=>i.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&io(i)){let s=B(i.type);e.reportError(new x(`Field "${n.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:t}))}},ObjectField(t){let n=Vt(e.getParentInputType());if(!e.getInputType()&&Ue(n)){let i=lr(t.name.value,Object.keys(n.getFields()));e.reportError(new x(`Field "${t.name.value}" is not defined by type "${n.name}".`+Wn(i),{nodes:t}))}},NullValue(t){let n=e.getInputType();ye(n)&&e.reportError(new x(`Expected value of type "${B(n)}", found ${$e(t)}.`,{nodes:t}))},EnumValue:t=>fa(e,t),IntValue:t=>fa(e,t),FloatValue:t=>fa(e,t),StringValue:t=>fa(e,t),BooleanValue:t=>fa(e,t)}}function fa(e,t){let n=e.getInputType();if(!n)return;let r=Vt(n);if(!vn(r)){let i=B(n);e.reportError(new x(`Expected value of type "${i}", found ${$e(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let o=B(n);e.reportError(new x(`Expected value of type "${o}", found ${$e(t)}.`,{nodes:t}))}}catch(i){let o=B(n);i instanceof x?e.reportError(i):e.reportError(new x(`Expected value of type "${o}", found ${$e(t)}; `+i.message,{nodes:t,originalError:i}))}}var BT=j(()=>{"use strict";p();m();f();hs();yt();ys();Ts();we();br();tt()});function Ml(e){return{VariableDefinition(t){let n=$t(e.getSchema(),t.type);if(n!==void 0&&!un(n)){let r=t.variable.name.value,i=$e(t.type);e.reportError(new x(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}var VT=j(()=>{"use strict";p();m();f();we();br();tt();Li()});function Ul(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s}of r){let a=i.name.value,u=t[a];if(u&&o){let c=e.getSchema(),l=$t(c,u.type);if(l&&!uk(c,l,u.defaultValue,o,s)){let d=B(l),h=B(o);e.reportError(new x(`Variable "$${a}" of type "${d}" used in position expecting type "${h}".`,{nodes:[u,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function uk(e,t,n,r,i){if(ye(r)&&!ye(t)){if(!(n!=null&&n.kind!==_.NULL)&&!(i!==void 0))return!1;let a=r.ofType;return ui(e,t,a)}return ui(e,t,r)}var $T=j(()=>{"use strict";p();m();f();yt();we();st();tt();Yc();Li()});var Cl,Zb,jT=j(()=>{"use strict";p();m();f();Hy();Zy();eT();nT();rT();iT();oT();sT();aT();uT();cT();lT();dT();TT();NT();ET();IT();vT();DT();OT();AT();wT();FT();RT();LT();PT();xT();kT();MT();UT();CT();BT();VT();$T();Cl=Object.freeze([il,Rl,cl,Sl,Tu,sl,Ml,El,ol,Fl,ul,fl,yl,dl,xl,pl,ml,yu,_u,al,vu,kl,Nl,Ul,hl,bu]),Zb=Object.freeze([ll,Ll,Pl,Al,wl,Dl,Ol,Tu,yu,_u,Tl,tT,vu,bu,gT])});var df,pf,ma,GT=j(()=>{"use strict";p();m();f();st();ea();tf();df=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===_.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let o of i.selections)o.kind===_.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(r[a]!==!0){r[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},pf=class extends df{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},ma=class extends df{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new uo(this._schema);Ur(t,da(i,{VariableDefinition:()=>!1,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}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 Bl(e,t,n=Cl,r,i=new uo(e)){var o;let s=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||Se(!1,"Must provide document."),la(e);let a=Object.freeze({}),u=[],c=new ma(e,t,i,d=>{if(u.length>=s)throw u.push(new x("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(d)}),l=tu(n.map(d=>d(c)));try{Ur(t,da(i,l))}catch(d){if(d!==a)throw d}return u}function eS(e,t,n=Zb){let r=[],i=new pf(e,t,s=>{r.push(s)}),o=n.map(s=>s(i));return Ur(e,tu(o)),r}function tS(e){let t=eS(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}function Px(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!De(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${B(n)}.`,(r=Qy(t,Lt.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!De(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${B(i)}.`,(o=Qy(t,Lt.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=t.getSubscriptionType();if(s&&!De(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${B(s)}.`,(a=Qy(t,Lt.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function Qy(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function xx(e){for(let n of e.schema.getDirectives()){if(!Is(n)){e.reportError(`Expected directive but got: ${B(n)}.`,n==null?void 0:n.astNode);continue}ca(e,n);for(let r of n.args)if(ca(e,r),un(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${B(r.type)}.`,r.astNode),wr(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Jy(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function ca(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function kx(e){let t=$x(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!ro(r)){e.reportError(`Expected GraphQL named type but got: ${B(r)}.`,r.astNode);continue}er(r)||ca(e,r),De(r)||Me(r)?($b(e,r),jb(e,r)):lt(r)?Cx(e,r):it(r)?Bx(e,r):Ue(r)&&(Vx(e,r),t(r))}}function $b(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(ca(e,s),!Ar(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${B(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}for(let a of s.args){let u=a.name;if(ca(e,a),!un(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${u}:) must be Input Type but got: ${B(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if(wr(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${u}:) cannot be deprecated.`,[Jy(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function jb(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!Me(r)){e.reportError(`Type ${B(t)} must only implement Interface types, it cannot implement ${B(r)}.`,tl(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,tl(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,tl(t,r));continue}n[r.name]=!0,Ux(e,t,r),Mx(e,t,r)}}function Mx(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){let c=u.name,l=r[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!ui(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${n.name}.${c} expects type ${B(u.type)} but ${t.name}.${c} is type ${B(l.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let d of u.args){let h=d.name,N=l.args.find(E=>E.name===h);if(!N){e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expected but ${t.name}.${c} does not provide it.`,[d.astNode,l.astNode]);continue}if(!ia(d.type,N.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expects type ${B(d.type)} but ${t.name}.${c}(${h}:) is type ${B(N.type)}.`,[(s=d.astNode)===null||s===void 0?void 0:s.type,(a=N.astNode)===null||a===void 0?void 0:a.type])}}for(let d of l.args){let h=d.name;!u.args.find(E=>E.name===h)&&wr(d)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${h} that is missing from the Interface field ${n.name}.${c}.`,[d.astNode,u.astNode])}}}function Ux(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}.`,[...tl(n,i),...tl(t,n)])}function Cx(e,t){let n=t.getTypes();n.length===0&&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.`,Gb(t,i.name));continue}r[i.name]=!0,De(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${B(i)}.`,Gb(t,String(i)))}}function Bx(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)ca(e,r)}function Vx(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(ca(e,o),!un(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${B(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if(io(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[Jy(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}}}function $x(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if(ye(a.type)&&Ue(a.type.ofType)){let u=a.type.ofType,c=r[u.name];if(n.push(a),c===void 0)i(u);else{let l=n.slice(c),d=l.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${d}".`,l.map(h=>h.astNode))}n.pop()}r[o.name]=void 0}}function tl(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function Gb(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function Jy(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Fi.name)}var Yy,nl=j(()=>{"use strict";p();m();f();yt();we();Di();Yc();tt();yr();Cr();ua();Yy=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new x(t,{nodes:r}))}getErrors(){return this._errors}}});function $t(e,t){switch(t.kind){case _.LIST_TYPE:{let n=$t(e,t.type);return n&&new Rt(n)}case _.NON_NULL_TYPE:{let n=$t(e,t.type);return n&&new Le(n)}case _.NAMED_TYPE:return e.getType(t.name.value)}}var Ri=j(()=>{"use strict";p();m();f();st();tt()});function jx(e,t,n){let r=n.name.value;if(r===oo.name&&e.getQueryType()===t)return oo;if(r===so.name&&e.getQueryType()===t)return so;if(r===ao.name&&pr(t))return ao;if(De(t)||Me(t))return t.getFields()[r]}function da(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=no(t,r.kind).enter;if(i){let o=i.apply(t,n);return o!==void 0&&(e.leave(r),Fc(o)&&e.enter(o)),o}},leave(...n){let r=n[0],i=no(t,r.kind).leave,o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}var uo,tf=j(()=>{"use strict";p();m();f();Di();st();ea();tt();Cr();Ri();uo=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:jx,n&&(un(n)&&this._inputTypeStack.push(n),pr(n)&&this._parentTypeStack.push(n),Ar(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){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(t){let n=this._schema;switch(t.kind){case _.SELECTION_SET:{let i=Vt(this.getType());this._parentTypeStack.push(pr(i)?i:void 0);break}case _.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,t),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(Ar(s)?s:void 0);break}case _.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case _.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push(De(i)?i:void 0);break}case _.INLINE_FRAGMENT:case _.FRAGMENT_DEFINITION:{let i=t.typeCondition,o=i?$t(n,i):Vt(this.getType());this._typeStack.push(Ar(o)?o:void 0);break}case _.VARIABLE_DEFINITION:{let i=$t(n,t.type);this._inputTypeStack.push(un(i)?i:void 0);break}case _.ARGUMENT:{var r;let i,o,s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();s&&(i=s.args.find(a=>a.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(un(o)?o:void 0);break}case _.LIST:{let i=ra(this.getInputType()),o=Ke(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(un(o)?o:void 0);break}case _.OBJECT_FIELD:{let i=Vt(this.getInputType()),o,s;Ue(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push(un(o)?o:void 0);break}case _.ENUM:{let i=Vt(this.getInputType()),o;it(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}default:}}leave(t){switch(t.kind){case _.SELECTION_SET:this._parentTypeStack.pop();break;case _.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case _.DIRECTIVE:this._directive=null;break;case _.OPERATION_DEFINITION:case _.INLINE_FRAGMENT:case _.FRAGMENT_DEFINITION:this._typeStack.pop();break;case _.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case _.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case _.LIST:case _.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case _.ENUM:this._enumValue=null;break;default:}}}});function zy(e){return fu(e)||mu(e)||hu(e)}function fu(e){return e.kind===_.OPERATION_DEFINITION||e.kind===_.FRAGMENT_DEFINITION}function Wy(e){return e.kind===_.FIELD||e.kind===_.FRAGMENT_SPREAD||e.kind===_.INLINE_FRAGMENT}function nf(e){return e.kind===_.VARIABLE||e.kind===_.INT||e.kind===_.FLOAT||e.kind===_.STRING||e.kind===_.BOOLEAN||e.kind===_.NULL||e.kind===_.ENUM||e.kind===_.LIST||e.kind===_.OBJECT}function rl(e){return nf(e)&&(e.kind===_.LIST?e.values.some(rl):e.kind===_.OBJECT?e.fields.some(t=>rl(t.value)):e.kind!==_.VARIABLE)}function Hy(e){return e.kind===_.NAMED_TYPE||e.kind===_.LIST_TYPE||e.kind===_.NON_NULL_TYPE}function mu(e){return e.kind===_.SCHEMA_DEFINITION||Br(e)||e.kind===_.DIRECTIVE_DEFINITION}function Br(e){return e.kind===_.SCALAR_TYPE_DEFINITION||e.kind===_.OBJECT_TYPE_DEFINITION||e.kind===_.INTERFACE_TYPE_DEFINITION||e.kind===_.UNION_TYPE_DEFINITION||e.kind===_.ENUM_TYPE_DEFINITION||e.kind===_.INPUT_OBJECT_TYPE_DEFINITION}function hu(e){return e.kind===_.SCHEMA_EXTENSION||_s(e)}function _s(e){return e.kind===_.SCALAR_TYPE_EXTENSION||e.kind===_.OBJECT_TYPE_EXTENSION||e.kind===_.INTERFACE_TYPE_EXTENSION||e.kind===_.UNION_TYPE_EXTENSION||e.kind===_.ENUM_TYPE_EXTENSION||e.kind===_.INPUT_OBJECT_TYPE_EXTENSION}var pa=j(()=>{"use strict";p();m();f();st()});function il(e){return{Document(t){for(let n of t.definitions)if(!fu(n)){let r=n.kind===_.SCHEMA_DEFINITION||n.kind===_.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new x(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}var Xy=j(()=>{"use strict";p();m();f();we();st();pa()});function ol(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=t.name.value,s=Wn("to use an inline fragment on",Gx(i,n,o));s===""&&(s=Wn(qx(n,o))),e.reportError(new x(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:t}))}}}}function Gx(e,t,n){if(!jn(t))return[];let r=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(r.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:Me(s)&&e.isSubType(s,a)?-1:Me(a)&&e.isSubType(a,s)?1:to(s.name,a.name)}).map(s=>s.name)}function qx(e,t){if(De(e)||Me(e)){let n=Object.keys(e.getFields());return lr(t,n)}return[]}var Zy=j(()=>{"use strict";p();m();f();ys();Cc();Ns();we();tt()});function sl(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=$t(e.getSchema(),n);if(r&&!pr(r)){let i=$e(n);e.reportError(new x(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=$t(e.getSchema(),t.typeCondition);if(n&&!pr(n)){let r=$e(t.typeCondition);e.reportError(new x(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}var eT=j(()=>{"use strict";p();m();f();we();br();tt();Ri()});function al(e){return U(w({},tT(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let o=t.name.value,s=r.args.map(u=>u.name),a=lr(o,s);e.reportError(new x(`Unknown argument "${o}" on field "${i.name}.${r.name}".`+Wn(a),{nodes:t}))}}})}function tT(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Zn;for(let s of r)t[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===_.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(u=>u.name.value)}return{Directive(s){let a=s.name.value,u=t[a];if(s.arguments&&u)for(let c of s.arguments){let l=c.name.value;if(!u.includes(l)){let d=lr(l,u);e.reportError(new x(`Unknown argument "${l}" on directive "@${a}".`+Wn(d),{nodes:c}))}}return!1}}}var nT=j(()=>{"use strict";p();m();f();ys();Ns();we();st();yr()});function yu(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Zn;for(let o of r)t[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===_.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,u,c){let l=o.name.value,d=t[l];if(!d){e.reportError(new x(`Unknown directive "@${l}".`,{nodes:o}));return}let h=Kx(c);h&&!d.includes(h)&&e.reportError(new x(`Directive "@${l}" may not be used on ${h}.`,{nodes:o}))}}}function Kx(e){let t=e[e.length-1];switch("kind"in t||He(!1),t.kind){case _.OPERATION_DEFINITION:return Qx(t.operation);case _.FIELD:return Ee.FIELD;case _.FRAGMENT_SPREAD:return Ee.FRAGMENT_SPREAD;case _.INLINE_FRAGMENT:return Ee.INLINE_FRAGMENT;case _.FRAGMENT_DEFINITION:return Ee.FRAGMENT_DEFINITION;case _.VARIABLE_DEFINITION:return Ee.VARIABLE_DEFINITION;case _.SCHEMA_DEFINITION:case _.SCHEMA_EXTENSION:return Ee.SCHEMA;case _.SCALAR_TYPE_DEFINITION:case _.SCALAR_TYPE_EXTENSION:return Ee.SCALAR;case _.OBJECT_TYPE_DEFINITION:case _.OBJECT_TYPE_EXTENSION:return Ee.OBJECT;case _.FIELD_DEFINITION:return Ee.FIELD_DEFINITION;case _.INTERFACE_TYPE_DEFINITION:case _.INTERFACE_TYPE_EXTENSION:return Ee.INTERFACE;case _.UNION_TYPE_DEFINITION:case _.UNION_TYPE_EXTENSION:return Ee.UNION;case _.ENUM_TYPE_DEFINITION:case _.ENUM_TYPE_EXTENSION:return Ee.ENUM;case _.ENUM_VALUE_DEFINITION:return Ee.ENUM_VALUE;case _.INPUT_OBJECT_TYPE_DEFINITION:case _.INPUT_OBJECT_TYPE_EXTENSION:return Ee.INPUT_OBJECT;case _.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||He(!1),n.kind===_.INPUT_OBJECT_TYPE_DEFINITION?Ee.INPUT_FIELD_DEFINITION:Ee.ARGUMENT_DEFINITION}default:He(!1,"Unexpected kind: "+B(t.kind))}}function Qx(e){switch(e){case Lt.QUERY:return Ee.QUERY;case Lt.MUTATION:return Ee.MUTATION;case Lt.SUBSCRIPTION:return Ee.SUBSCRIPTION}}var rT=j(()=>{"use strict";p();m();f();yt();zn();we();Di();Wa();st();yr()});function ul(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new x(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var iT=j(()=>{"use strict";p();m();f();we()});function Tu(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let o of e.getDocument().definitions)Br(o)&&(r[o.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,s,a,u,c){let l=o.name.value;if(!n[l]&&!r[l]){var d;let h=(d=c[2])!==null&&d!==void 0?d:a,N=h!=null&&Yx(h);if(N&&qb.includes(l))return;let E=lr(l,N?qb.concat(i):i);e.reportError(new x(`Unknown type "${l}".`+Wn(E),{nodes:o}))}}}}function Yx(e){return"kind"in e&&(mu(e)||hu(e))}var qb,oT=j(()=>{"use strict";p();m();f();ys();Ns();we();pa();Cr();wi();qb=[...Ai,...Li].map(e=>e.name)});function cl(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===_.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new x("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var sT=j(()=>{"use strict";p();m();f();we();st()});function ll(e){var t,n,r;let i=e.getSchema(),o=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new x("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new x("Must provide only one schema definition.",{nodes:a})),++s}}}var aT=j(()=>{"use strict";p();m();f();we()});function dl(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;let s=o.name.value;t[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){r[s]=n.length;for(let u of a){let c=u.name.value,l=r[c];if(n.push(u),l===void 0){let d=e.getFragment(c);d&&i(d)}else{let d=n.slice(l),h=d.slice(0,-1).map(N=>'"'+N.name.value+'"').join(", ");e.reportError(new x(`Cannot spread fragment "${c}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:d}))}n.pop()}r[s]=void 0}}}var uT=j(()=>{"use strict";p();m();f();we()});function pl(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 o=i.name.value;t[o]!==!0&&e.reportError(new x(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}var cT=j(()=>{"use strict";p();m();f();we()});function fl(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let o of e.getRecursivelyReferencedFragments(i))r[o.name.value]=!0;for(let i of n){let o=i.name.value;r[o]!==!0&&e.reportError(new x(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}var lT=j(()=>{"use strict";p();m();f();we()});function ml(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)r[o.name.value]=!0;for(let o of t){let s=o.variable.name.value;r[s]!==!0&&e.reportError(new x(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}var dT=j(()=>{"use strict";p();m();f();we()});function Nu(e){switch(e.kind){case _.OBJECT:return U(w({},e),{fields:Jx(e.fields)});case _.LIST:return U(w({},e),{values:e.values.map(Nu)});case _.INT:case _.FLOAT:case _.STRING:case _.BOOLEAN:case _.NULL:case _.ENUM:case _.VARIABLE:return e}}function Jx(e){return e.map(t=>U(w({},t),{value:Nu(t.value)})).sort((t,n)=>to(t.name.value,n.name.value))}var pT=j(()=>{"use strict";p();m();f();Cc();st()});function Qb(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Qb(n)).join(" and "):e}function hl(e){let t=new hT,n=new Map;return{SelectionSet(r){let i=zx(e,n,t,e.getParentType(),r);for(let[[o,s],a,u]of i){let c=Qb(s);e.reportError(new x(`Fields "${o}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(u)}))}}}}function zx(e,t,n,r,i){let o=[],[s,a]=sf(e,t,r,i);if(Hx(e,o,t,n,s),a.length!==0)for(let u=0;u1)for(let a=0;a({kind:_.OBJECT_FIELD,name:i.name,value:i.value}))};return $e(Nu(r))}function fT(e,t){return Ke(e)?Ke(t)?fT(e.ofType,t.ofType):!0:Ke(t)?!0:ye(e)?ye(t)?fT(e.ofType,t.ofType):!0:ye(t)?!0:vn(e)||vn(t)?e!==t:!1}function sf(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),s=Object.create(null);Jb(e,n,r,o,s);let a=[o,Object.keys(s)];return t.set(r,a),a}function mT(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=$t(e.getSchema(),n.typeCondition);return sf(e,t,i,n.selectionSet)}function Jb(e,t,n,r,i){for(let o of n.selections)switch(o.kind){case _.FIELD:{let s=o.name.value,a;(De(t)||Me(t))&&(a=t.getFields()[s]);let u=o.alias?o.alias.value:s;r[u]||(r[u]=[]),r[u].push([t,o,a]);break}case _.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case _.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?$t(e.getSchema(),s):t;Jb(e,a,o.selectionSet,r,i);break}}}function Xx(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var hT,TT=j(()=>{"use strict";p();m();f();yt();we();st();br();tt();pT();Ri();hT=class{constructor(){this._data=new Map}has(t,n,r){var i;let[o,s]=t{"use strict";p();m();f();yt();we();tt();Yc();Ri()});function Tl(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)Br(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let o=i.name.value,s=n[o],a=t==null?void 0:t.getType(o),u;if(s?u=ek[s.kind]:a&&(u=tk(a)),u){if(u!==i.kind){let c=nk(i.kind);e.reportError(new x(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let c=Object.keys(w(w({},n),t==null?void 0:t.getTypeMap())),l=lr(o,c);e.reportError(new x(`Cannot extend type "${o}" because it is not defined.`+Wn(l),{nodes:i.name}))}}}function tk(e){if(zt(e))return _.SCALAR_TYPE_EXTENSION;if(De(e))return _.OBJECT_TYPE_EXTENSION;if(Me(e))return _.INTERFACE_TYPE_EXTENSION;if(lt(e))return _.UNION_TYPE_EXTENSION;if(it(e))return _.ENUM_TYPE_EXTENSION;if(Ue(e))return _.INPUT_OBJECT_TYPE_EXTENSION;He(!1,"Unexpected type: "+B(e))}function nk(e){switch(e){case _.SCALAR_TYPE_EXTENSION:return"scalar";case _.OBJECT_TYPE_EXTENSION:return"object";case _.INTERFACE_TYPE_EXTENSION:return"interface";case _.UNION_TYPE_EXTENSION:return"union";case _.ENUM_TYPE_EXTENSION:return"enum";case _.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:He(!1,"Unexpected kind: "+B(e))}}var ek,ET=j(()=>{"use strict";p();m();f();ys();yt();zn();Ns();we();st();pa();tt();ek={[_.SCALAR_TYPE_DEFINITION]:_.SCALAR_TYPE_EXTENSION,[_.OBJECT_TYPE_DEFINITION]:_.OBJECT_TYPE_EXTENSION,[_.INTERFACE_TYPE_DEFINITION]:_.INTERFACE_TYPE_EXTENSION,[_.UNION_TYPE_DEFINITION]:_.UNION_TYPE_EXTENSION,[_.ENUM_TYPE_DEFINITION]:_.ENUM_TYPE_EXTENSION,[_.INPUT_OBJECT_TYPE_DEFINITION]:_.INPUT_OBJECT_TYPE_EXTENSION}});function Nl(e){return U(w({},gT(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of r.args)if(!i.has(o.name)&&wr(o)){let s=B(o.type);e.reportError(new x(`Field "${r.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}})}function gT(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Zn;for(let a of i)n[a.name]=Hn(a.args.filter(wr),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===_.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=Hn(u.filter(rk),c=>c.name.value)}return{Directive:{leave(a){let u=a.name.value,c=n[u];if(c){var l;let d=(l=a.arguments)!==null&&l!==void 0?l:[],h=new Set(d.map(N=>N.name.value));for(let[N,E]of Object.entries(c))if(!h.has(N)){let D=gs(E.type)?B(E.type):$e(E.type);e.reportError(new x(`Directive "@${u}" argument "${N}" of type "${D}" is required, but it was not provided.`,{nodes:a}))}}}}}}function rk(e){return e.type.kind===_.NON_NULL_TYPE&&e.defaultValue==null}var IT=j(()=>{"use strict";p();m();f();yt();Ts();we();st();br();tt();yr()});function El(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if(vn(Vt(n))){if(r){let i=t.name.value,o=B(n);e.reportError(new x(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,o=B(n);e.reportError(new x(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}var vT=j(()=>{"use strict";p();m();f();yt();we();tt()});function af(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}var _T=j(()=>{"use strict";p();m();f()});function co(e,t,n){return{prev:e,key:t,typename:n}}function Rn(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}var gl=j(()=>{"use strict";p();m();f()});function vl(e,t,n=ik){return Il(e,t,n,void 0)}function ik(e,t,n){let r="Invalid value "+B(t);throw e.length>0&&(r+=` at "value${af(e)}"`),n.message=r+": "+n.message,n}function Il(e,t,n,r){if(ye(t)){if(e!=null)return Il(e,t.ofType,n,r);n(Rn(r),e,new x(`Expected non-nullable type "${B(t)}" not to be null.`));return}if(e==null)return null;if(Ke(t)){let i=t.ofType;return du(e)?Array.from(e,(o,s)=>{let a=co(r,s,void 0);return Il(o,i,n,a)}):[Il(e,i,n,r)]}if(Ue(t)){if(!nn(e)){n(Rn(r),e,new x(`Expected type "${t.name}" to be an object.`));return}let i={},o=t.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if(ye(s.type)){let u=B(s.type);n(Rn(r),e,new x(`Field "${s.name}" of required type "${u}" was not provided.`))}continue}i[s.name]=Il(a,s.type,n,co(r,s.name,t.name))}for(let s of Object.keys(e))if(!o[s]){let a=lr(s,Object.keys(t.getFields()));n(Rn(r),e,new x(`Field "${s}" is not defined by type "${t.name}".`+Wn(a)))}return i}if(vn(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof x?n(Rn(r),e,o):n(Rn(r),e,new x(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return i===void 0&&n(Rn(r),e,new x(`Expected type "${t.name}".`)),i}He(!1,"Unexpected input type: "+B(t))}var bT=j(()=>{"use strict";p();m();f();ys();yt();zn();Zp();Si();gl();_T();Ns();we();tt()});function fr(e,t,n){if(e){if(e.kind===_.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&ye(t)?void 0:i}if(ye(t))return e.kind===_.NULL?void 0:fr(e,t.ofType,n);if(e.kind===_.NULL)return null;if(Ke(t)){let r=t.ofType;if(e.kind===_.LIST){let o=[];for(let s of e.values)if(zb(s,n)){if(ye(r))return;o.push(null)}else{let a=fr(s,r,n);if(a===void 0)return;o.push(a)}return o}let i=fr(e,r,n);return i===void 0?void 0:[i]}if(Ue(t)){if(e.kind!==_.OBJECT)return;let r=Object.create(null),i=Hn(e.fields,o=>o.name.value);for(let o of Object.values(t.getFields())){let s=i[o.name];if(!s||zb(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(ye(o.type))return;continue}let a=fr(s.value,o.type,n);if(a===void 0)return;r[o.name]=a}return r}if(vn(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}He(!1,"Unexpected input type: "+B(t))}}function zb(e,t){return e.kind===_.VARIABLE&&(t==null||t[e.name.value]===void 0)}var _l=j(()=>{"use strict";p();m();f();yt();zn();Ts();st();tt()});function bl(e,t,n,r){let i=[],o=r==null?void 0:r.maxErrors;try{let s=ok(e,t,n,a=>{if(o!=null&&i.length>=o)throw new x("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function ok(e,t,n,r){let i={};for(let o of t){let s=o.variable.name.value,a=$t(e,o.type);if(!un(a)){let c=$e(o.type);r(new x(`Variable "$${s}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!Wb(n,s)){if(o.defaultValue)i[s]=fr(o.defaultValue,a);else if(ye(a)){let c=B(a);r(new x(`Variable "$${s}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=n[s];if(u===null&&ye(a)){let c=B(a);r(new x(`Variable "$${s}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}i[s]=vl(u,a,(c,l,d)=>{let h=`Variable "$${s}" got invalid value `+B(l);c.length>0&&(h+=` at "${s}${af(c)}"`),r(new x(h+"; "+d.message,{nodes:o,originalError:d}))})}return i}function bs(e,t,n){var r;let i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],s=Hn(o,a=>a.name.value);for(let a of e.args){let u=a.name,c=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(ye(c))throw new x(`Argument "${u}" of required type "${B(c)}" was not provided.`,{nodes:t});continue}let d=l.value,h=d.kind===_.NULL;if(d.kind===_.VARIABLE){let E=d.name.value;if(n==null||!Wb(n,E)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if(ye(c))throw new x(`Argument "${u}" of required type "${B(c)}" was provided the variable "$${E}" which was not provided a runtime value.`,{nodes:d});continue}h=n[E]==null}if(h&&ye(c))throw new x(`Argument "${u}" of non-null type "${B(c)}" must not be null.`,{nodes:d});let N=fr(d,c,n);if(N===void 0)throw new x(`Argument "${u}" has invalid value ${$e(d)}.`,{nodes:d});i[u]=N}return i}function lo(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(o=>o.name.value===e.name);if(i)return bs(e,i,n)}function Wb(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var Eu=j(()=>{"use strict";p();m();f();yt();Ts();_T();we();st();br();tt();bT();Ri();_l()});function gu(e,t,n,r,i){let o=new Map;return uf(e,t,n,r,i,o,new Set),o}function Xb(e,t,n,r,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&uf(e,t,n,r,a.selectionSet,o,s);return o}function uf(e,t,n,r,i,o,s){for(let a of i.selections)switch(a.kind){case _.FIELD:{if(!ST(n,a))continue;let u=sk(a),c=o.get(u);c!==void 0?c.push(a):o.set(u,[a]);break}case _.INLINE_FRAGMENT:{if(!ST(n,a)||!Hb(e,a,r))continue;uf(e,t,n,r,a.selectionSet,o,s);break}case _.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!ST(n,a))continue;s.add(u);let c=t[u];if(!c||!Hb(e,c,r))continue;uf(e,t,n,r,c.selectionSet,o,s);break}}}function ST(e,t){let n=lo(uu,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=lo(au,t,e);return(r==null?void 0:r.if)!==!1}function Hb(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=$t(e,r);return i===n?!0:jn(i)?e.isSubType(i,n):!1}function sk(e){return e.alias?e.alias.value:e.name.value}var cf=j(()=>{"use strict";p();m();f();st();tt();yr();Ri();Eu()});function Sl(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let c of s.definitions)c.kind===_.FRAGMENT_DEFINITION&&(a[c.name.value]=c);let u=gu(n,a,o,r,t.selectionSet);if(u.size>1){let d=[...u.values()].slice(1).flat();e.reportError(new x(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new x(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}var DT=j(()=>{"use strict";p();m();f();we();st();cf()});function Iu(e,t){let n=new Map;for(let r of e){let i=t(r),o=n.get(i);o===void 0?n.set(i,[r]):o.push(r)}return n}var lf=j(()=>{"use strict";p();m();f()});function Dl(e){return{DirectiveDefinition(r){var i;let o=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let o=r.name.value,s=(i=r.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let c=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${o}.${c}`,l)}return!1}function n(r,i){let o=Iu(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new x(`Argument "${r}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}var OT=j(()=>{"use strict";p();m();f();lf();we()});function vu(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],o=Iu(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new x(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}))}}var AT=j(()=>{"use strict";p();m();f();lf();we()});function Ol(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new x(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new x(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}var wT=j(()=>{"use strict";p();m();f();we()});function _u(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Zn;for(let a of r)t[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===_.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===_.SCHEMA_DEFINITION||a.kind===_.SCHEMA_EXTENSION)u=o;else if(Br(a)||_s(a)){let c=a.name.value;u=s[c],u===void 0&&(s[c]=u=Object.create(null))}else u=Object.create(null);for(let c of a.directives){let l=c.name.value;t[l]&&(u[l]?e.reportError(new x(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}var FT=j(()=>{"use strict";p();m();f();we();st();pa();yr()});function Al(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],c=r[a];for(let l of u){let d=l.name.value,h=n[a];it(h)&&h.getValue(d)?e.reportError(new x(`Enum value "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new x(`Enum value "${a}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}var LT=j(()=>{"use strict";p();m();f();we();tt()});function wl(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(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],c=r[a];for(let l of u){let d=l.name.value;ak(n[a],d)?e.reportError(new x(`Field "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new x(`Field "${a}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}function ak(e,t){return De(e)||Me(e)||Ue(e)?e.getFields()[t]!=null:!1}var RT=j(()=>{"use strict";p();m();f();we();tt()});function Fl(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new x(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var PT=j(()=>{"use strict";p();m();f();we()});function bu(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||He(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new x(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}var xT=j(()=>{"use strict";p();m();f();zn();we()});function Ll(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new x(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var kT=j(()=>{"use strict";p();m();f();we()});function Rl(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(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let u of a){let c=u.operation,l=n[c];r[c]?e.reportError(new x(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new x(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):n[c]=u}return!1}}var MT=j(()=>{"use strict";p();m();f();we()});function Pl(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new x(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new x(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}var UT=j(()=>{"use strict";p();m();f();we()});function xl(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=Iu(r,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new x(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}var CT=j(()=>{"use strict";p();m();f();lf();we()});function kl(e){return{ListValue(t){let n=ra(e.getParentInputType());if(!Ke(n))return fa(e,t),!1},ObjectValue(t){let n=Vt(e.getInputType());if(!Ue(n))return fa(e,t),!1;let r=Hn(t.fields,i=>i.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&io(i)){let s=B(i.type);e.reportError(new x(`Field "${n.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:t}))}},ObjectField(t){let n=Vt(e.getParentInputType());if(!e.getInputType()&&Ue(n)){let i=lr(t.name.value,Object.keys(n.getFields()));e.reportError(new x(`Field "${t.name.value}" is not defined by type "${n.name}".`+Wn(i),{nodes:t}))}},NullValue(t){let n=e.getInputType();ye(n)&&e.reportError(new x(`Expected value of type "${B(n)}", found ${$e(t)}.`,{nodes:t}))},EnumValue:t=>fa(e,t),IntValue:t=>fa(e,t),FloatValue:t=>fa(e,t),StringValue:t=>fa(e,t),BooleanValue:t=>fa(e,t)}}function fa(e,t){let n=e.getInputType();if(!n)return;let r=Vt(n);if(!vn(r)){let i=B(n);e.reportError(new x(`Expected value of type "${i}", found ${$e(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let o=B(n);e.reportError(new x(`Expected value of type "${o}", found ${$e(t)}.`,{nodes:t}))}}catch(i){let o=B(n);i instanceof x?e.reportError(i):e.reportError(new x(`Expected value of type "${o}", found ${$e(t)}; `+i.message,{nodes:t,originalError:i}))}}var BT=j(()=>{"use strict";p();m();f();ys();yt();Ts();Ns();we();br();tt()});function Ml(e){return{VariableDefinition(t){let n=$t(e.getSchema(),t.type);if(n!==void 0&&!un(n)){let r=t.variable.name.value,i=$e(t.type);e.reportError(new x(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}var VT=j(()=>{"use strict";p();m();f();we();br();tt();Ri()});function Ul(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s}of r){let a=i.name.value,u=t[a];if(u&&o){let c=e.getSchema(),l=$t(c,u.type);if(l&&!uk(c,l,u.defaultValue,o,s)){let d=B(l),h=B(o);e.reportError(new x(`Variable "$${a}" of type "${d}" used in position expecting type "${h}".`,{nodes:[u,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function uk(e,t,n,r,i){if(ye(r)&&!ye(t)){if(!(n!=null&&n.kind!==_.NULL)&&!(i!==void 0))return!1;let a=r.ofType;return ui(e,t,a)}return ui(e,t,r)}var $T=j(()=>{"use strict";p();m();f();yt();we();st();tt();Yc();Ri()});var Cl,Zb,jT=j(()=>{"use strict";p();m();f();Xy();Zy();eT();nT();rT();iT();oT();sT();aT();uT();cT();lT();dT();TT();NT();ET();IT();vT();DT();OT();AT();wT();FT();LT();RT();PT();xT();kT();MT();UT();CT();BT();VT();$T();Cl=Object.freeze([il,Ll,cl,Sl,Tu,sl,Ml,El,ol,Fl,ul,fl,yl,dl,xl,pl,ml,yu,_u,al,vu,kl,Nl,Ul,hl,bu]),Zb=Object.freeze([ll,Rl,Pl,Al,wl,Dl,Ol,Tu,yu,_u,Tl,tT,vu,bu,gT])});var df,pf,ma,GT=j(()=>{"use strict";p();m();f();st();ea();tf();df=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===_.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let o of i.selections)o.kind===_.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(r[a]!==!0){r[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}},pf=class extends df{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}},ma=class extends df{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new uo(this._schema);Ur(t,da(i,{VariableDefinition:()=>!1,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}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 Bl(e,t,n=Cl,r,i=new uo(e)){var o;let s=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||Se(!1,"Must provide document."),la(e);let a=Object.freeze({}),u=[],c=new ma(e,t,i,d=>{if(u.length>=s)throw u.push(new x("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(d)}),l=tu(n.map(d=>d(c)));try{Ur(t,da(i,l))}catch(d){if(d!==a)throw d}return u}function eS(e,t,n=Zb){let r=[],i=new pf(e,t,s=>{r.push(s)}),o=n.map(s=>s(i));return Ur(e,tu(o)),r}function tS(e){let t=eS(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` `))}function nS(e,t){let n=eS(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}var Vl=j(()=>{"use strict";p();m();f();ur();we();ea();nl();tf();jT();GT()});function rS(e){let t;return function(r,i,o){t===void 0&&(t=new WeakMap);let s=t.get(r);s===void 0&&(s=new WeakMap,t.set(r,s));let a=s.get(i);a===void 0&&(a=new WeakMap,s.set(i,a));let u=a.get(o);return u===void 0&&(u=e(r,i,o),a.set(o,u)),u}}var iS=j(()=>{"use strict";p();m();f()});function qT(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}var oS=j(()=>{"use strict";p();m();f()});function sS(e,t,n){let r=n;for(let i of e)r=Jn(r)?r.then(o=>t(o,i)):t(r,i);return r}var aS=j(()=>{"use strict";p();m();f();Pp()});function uS(e){return e instanceof Error?e:new KT(e)}var KT,cS=j(()=>{"use strict";p();m();f();yt();KT=class extends Error{constructor(t){super("Unexpected error value: "+B(t)),this.name="NonErrorThrown",this.thrownValue=t}}});function Pi(e,t,n){var r;let i=uS(e);return ck(i)?i:new x(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function ck(e){return Array.isArray(e.path)}var ff=j(()=>{"use strict";p();m();f();cS();we()});function bs(e){arguments.length<2||Se(!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;YT(t,n,r);let o=JT(e);if(!("schema"in o))return{errors:o};try{let{operation:s}=o,a=dk(o,s,i);return Jn(a)?a.then(u=>mf(u,o.errors),u=>(o.errors.push(u),mf(null,o.errors))):mf(a,o.errors)}catch(s){return o.errors.push(s),mf(null,o.errors)}}function Gl(e){let t=bs(e);if(Jn(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function mf(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function YT(e,t,n){t||Se(!1,"Must provide document."),la(e),n==null||nn(n)||Se(!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 JT(e){var t,n;let{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:u,fieldResolver:c,typeResolver:l,subscribeFieldResolver:d}=e,h,N=Object.create(null);for(let A of i.definitions)switch(A.kind){case _.OPERATION_DEFINITION:if(u==null){if(h!==void 0)return[new x("Must provide operation name if query contains multiple operations.")];h=A}else((t=A.name)===null||t===void 0?void 0:t.value)===u&&(h=A);break;case _.FRAGMENT_DEFINITION:N[A.name.value]=A;break;default:}if(!h)return u!=null?[new x(`Unknown operation named "${u}".`)]:[new x("Must provide an operation.")];let E=(n=h.variableDefinitions)!==null&&n!==void 0?n:[],D=bl(r,E,a!=null?a:{},{maxErrors:50});return D.errors?D.errors:{schema:r,fragments:N,rootValue:o,contextValue:s,operation:h,variableValues:D.coerced,fieldResolver:c!=null?c:jl,typeResolver:l!=null?l:Tf,subscribeFieldResolver:d!=null?d:jl,errors:[]}}function dk(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new x(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=gu(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case Rt.QUERY:return hf(e,r,n,o,i);case Rt.MUTATION:return pk(e,r,n,o,i);case Rt.SUBSCRIPTION:return hf(e,r,n,o,i)}}function pk(e,t,n,r,i){return sS(i.entries(),(o,[s,a])=>{let u=co(r,s,t.name),c=pS(e,t,n,a,u);return c===void 0?o:Jn(c)?c.then(l=>(o[s]=l,o)):(o[s]=c,o)},Object.create(null))}function hf(e,t,n,r,i){let o=Object.create(null),s=!1;try{for(let[a,u]of i.entries()){let c=co(r,a,t.name),l=pS(e,t,n,u,c);l!==void 0&&(o[a]=l,Jn(l)&&(s=!0))}}catch(a){if(s)return qT(o).finally(()=>{throw a});throw a}return s?qT(o):o}function pS(e,t,n,r,i){var o;let s=WT(e.schema,t,r[0]);if(!s)return;let a=s.type,u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,c=zT(e,s,r,t,i);try{let l=_s(s,r[0],e.variableValues),d=e.contextValue,h=u(n,l,d,c),N;return Jn(h)?N=h.then(E=>$l(e,a,r,c,i,E)):N=$l(e,a,r,c,i,h),Jn(N)?N.then(void 0,E=>{let D=Pi(E,r,Ln(i));return yf(D,a,e)}):N}catch(l){let d=Pi(l,r,Ln(i));return yf(d,a,e)}}function zT(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 yf(e,t,n){if(ye(t))throw e;return n.errors.push(e),null}function $l(e,t,n,r,i,o){if(o instanceof Error)throw o;if(ye(t)){let s=$l(e,t.ofType,n,r,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}if(o==null)return null;if(qe(t))return fk(e,t,n,r,i,o);if(vn(t))return mk(t,o);if($n(t))return hk(e,t,n,r,i,o);if(De(t))return QT(e,t,n,r,i,o);Xe(!1,"Cannot complete value of unexpected output type: "+B(t))}function fk(e,t,n,r,i,o){if(!du(o))throw new x(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let s=t.ofType,a=!1,u=Array.from(o,(c,l)=>{let d=co(i,l,void 0);try{let h;return Jn(c)?h=c.then(N=>$l(e,s,n,r,d,N)):h=$l(e,s,n,r,d,c),Jn(h)?(a=!0,h.then(void 0,N=>{let E=Pi(N,n,Ln(d));return yf(E,s,e)})):h}catch(h){let N=Pi(h,n,Ln(d));return yf(N,s,e)}});return a?Promise.all(u):u}function mk(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${B(e)}.serialize(${B(t)})\` to return non-nullable value, returned: ${B(n)}`);return n}function hk(e,t,n,r,i,o){var s;let a=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver,u=e.contextValue,c=a(o,u,r,t);return Jn(c)?c.then(l=>QT(e,lS(l,e,t,n,r,o),n,r,i,o)):QT(e,lS(c,e,t,n,r,o),n,r,i,o)}function lS(e,t,n,r,i,o){if(e==null)throw new x(`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(De(e))throw new x("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new x(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${B(o)}, received "${B(e)}".`);let s=t.schema.getType(e);if(s==null)throw new x(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!De(s))throw new x(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new x(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function QT(e,t,n,r,i,o){let s=lk(e,t,n);if(t.isTypeOf){let a=t.isTypeOf(o,e.contextValue,r);if(Jn(a))return a.then(u=>{if(!u)throw dS(t,o,n);return hf(e,t,o,i,s)});if(!a)throw dS(t,o,n)}return hf(e,t,o,i,s)}function dS(e,t,n){return new x(`Expected value of type "${e.name}" but got: ${B(t)}.`,{nodes:n})}function WT(e,t,n){let r=n.name.value;return r===oo.name&&e.getQueryType()===t?oo:r===so.name&&e.getQueryType()===t?so:r===ao.name?ao:t.getFields()[r]}var lk,Tf,jl,ql=j(()=>{"use strict";p();m();f();ur();yt();zn();Zp();Si();Pp();iS();gl();oS();aS();we();ff();Di();st();tt();Cr();nl();cf();Eu();lk=rS((e,t,n)=>Hb(e.schema,e.fragments,e.variableValues,t,n));Tf=function(e,t,n,r){if(nn(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let s=0;s{for(let a=0;at(hS(e)))}function mS(e){let t=hS(e);if(Jn(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function hS(e){arguments.length<2||Se(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u}=e,c=pu(t);if(c.length>0)return{errors:c};let l;try{l=oi(n)}catch(h){return{errors:[h]}}let d=Bl(t,l);return d.length>0?{errors:d}:bs({schema:t,document:l,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u})}var yS=j(()=>{"use strict";p();m();f();ur();Pp();eu();nl();Vl();ql()});var TS=j(()=>{"use strict";p();m();f();ua();tt();yr();wi();Cr();nl();Vc()});var NS=j(()=>{"use strict";p();m();f();Kp();xp();yy();st();Pc();jp();eu();br();ea();Di();pa();Wa()});function XT(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}var ES=j(()=>{"use strict";p();m();f()});function gS(e,t){let n=e[Symbol.asyncIterator]();function r(o){return ar(this,null,function*(){if(o.done)return o;try{return{value:yield t(o.value),done:!1}}catch(s){if(typeof n.return=="function")try{yield n.return()}catch(a){}throw s}})}return{next(){return ar(this,null,function*(){return r(yield n.next())})},return(){return ar(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(o){return ar(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(o));throw o})},[Symbol.asyncIterator](){return this}}}var IS=j(()=>{"use strict";p();m();f()});function HT(t){return ar(this,arguments,function*(e){arguments.length<2||Se(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield Nf(e);return XT(n)?gS(n,i=>bs(U(w({},e),{rootValue:i}))):n})}function yk(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]}}function Nf(...e){return ar(this,null,function*(){let t=yk(e),{schema:n,document:r,variableValues:i}=t;YT(n,r,i);let o=JT(t);if(!("schema"in o))return{errors:o};try{let s=yield Tk(o);if(!XT(s))throw new Error(`Subscription field must return Async Iterable. Received: ${B(s)}.`);return s}catch(s){if(s instanceof x)return{errors:[s]};throw s}})}function Tk(e){return ar(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(s==null)throw new x("Schema is not configured to execute subscription operation.",{nodes:r});let a=gu(t,n,i,s,r.selectionSet),[u,c]=[...a.entries()][0],l=WT(t,s,c[0]);if(!l){let E=c[0].name.value;throw new x(`The subscription field "${E}" is not defined.`,{nodes:c})}let d=co(void 0,u,s.name),h=zT(e,l,c,s,d);try{var N;let E=_s(l,c[0],i),D=e.contextValue,F=yield((N=l.subscribe)!==null&&N!==void 0?N:e.subscribeFieldResolver)(o,E,D,h);if(F instanceof Error)throw F;return F}catch(E){throw Pi(E,c,Ln(d))}})}var vS=j(()=>{"use strict";p();m();f();ur();yt();ES();gl();we();ff();cf();ql();IS();Eu()});var _S=j(()=>{"use strict";p();m();f();gl();ql();vS();Eu()});function ZT(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||Xe(!1),e.reportError(new x(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new x(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||Xe(!1),e.reportError(new x(`Field "${o.name}.${s.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=Vt(e.getParentInputType());if(Ue(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new x(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=Vt(e.getInputType());i!=null||Xe(!1),e.reportError(new x(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var bS=j(()=>{"use strict";p();m();f();zn();we();tt()});function eN(e){return{Field(t){let n=Vt(e.getType());n&&er(n)&&e.reportError(new x(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var SS=j(()=>{"use strict";p();m();f();we();tt();Cr()});var DS=j(()=>{"use strict";p();m();f();Vl();GT();jT();Hy();Zy();eT();nT();rT();iT();oT();sT();uT();cT();lT();dT();TT();NT();IT();vT();DT();AT();FT();PT();xT();kT();CT();BT();VT();$T();aT();MT();UT();RT();LT();OT();wT();ET();bS();SS()});var OS=j(()=>{"use strict";p();m();f();we();kp();ff()});function Kl(e){let t=w({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function s(a){return t.inputValueDeprecation?a:""}return` +`))}var Vl=j(()=>{"use strict";p();m();f();ur();we();ea();nl();tf();jT();GT()});function rS(e){let t;return function(r,i,o){t===void 0&&(t=new WeakMap);let s=t.get(r);s===void 0&&(s=new WeakMap,t.set(r,s));let a=s.get(i);a===void 0&&(a=new WeakMap,s.set(i,a));let u=a.get(o);return u===void 0&&(u=e(r,i,o),a.set(o,u)),u}}var iS=j(()=>{"use strict";p();m();f()});function qT(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}var oS=j(()=>{"use strict";p();m();f()});function sS(e,t,n){let r=n;for(let i of e)r=Jn(r)?r.then(o=>t(o,i)):t(r,i);return r}var aS=j(()=>{"use strict";p();m();f();Pp()});function uS(e){return e instanceof Error?e:new KT(e)}var KT,cS=j(()=>{"use strict";p();m();f();yt();KT=class extends Error{constructor(t){super("Unexpected error value: "+B(t)),this.name="NonErrorThrown",this.thrownValue=t}}});function Pi(e,t,n){var r;let i=uS(e);return ck(i)?i:new x(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function ck(e){return Array.isArray(e.path)}var ff=j(()=>{"use strict";p();m();f();cS();we()});function Ss(e){arguments.length<2||Se(!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;YT(t,n,r);let o=JT(e);if(!("schema"in o))return{errors:o};try{let{operation:s}=o,a=dk(o,s,i);return Jn(a)?a.then(u=>mf(u,o.errors),u=>(o.errors.push(u),mf(null,o.errors))):mf(a,o.errors)}catch(s){return o.errors.push(s),mf(null,o.errors)}}function Gl(e){let t=Ss(e);if(Jn(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function mf(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function YT(e,t,n){t||Se(!1,"Must provide document."),la(e),n==null||nn(n)||Se(!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 JT(e){var t,n;let{schema:r,document:i,rootValue:o,contextValue:s,variableValues:a,operationName:u,fieldResolver:c,typeResolver:l,subscribeFieldResolver:d}=e,h,N=Object.create(null);for(let A of i.definitions)switch(A.kind){case _.OPERATION_DEFINITION:if(u==null){if(h!==void 0)return[new x("Must provide operation name if query contains multiple operations.")];h=A}else((t=A.name)===null||t===void 0?void 0:t.value)===u&&(h=A);break;case _.FRAGMENT_DEFINITION:N[A.name.value]=A;break;default:}if(!h)return u!=null?[new x(`Unknown operation named "${u}".`)]:[new x("Must provide an operation.")];let E=(n=h.variableDefinitions)!==null&&n!==void 0?n:[],D=bl(r,E,a!=null?a:{},{maxErrors:50});return D.errors?D.errors:{schema:r,fragments:N,rootValue:o,contextValue:s,operation:h,variableValues:D.coerced,fieldResolver:c!=null?c:jl,typeResolver:l!=null?l:Tf,subscribeFieldResolver:d!=null?d:jl,errors:[]}}function dk(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new x(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=gu(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case Lt.QUERY:return hf(e,r,n,o,i);case Lt.MUTATION:return pk(e,r,n,o,i);case Lt.SUBSCRIPTION:return hf(e,r,n,o,i)}}function pk(e,t,n,r,i){return sS(i.entries(),(o,[s,a])=>{let u=co(r,s,t.name),c=pS(e,t,n,a,u);return c===void 0?o:Jn(c)?c.then(l=>(o[s]=l,o)):(o[s]=c,o)},Object.create(null))}function hf(e,t,n,r,i){let o=Object.create(null),s=!1;try{for(let[a,u]of i.entries()){let c=co(r,a,t.name),l=pS(e,t,n,u,c);l!==void 0&&(o[a]=l,Jn(l)&&(s=!0))}}catch(a){if(s)return qT(o).finally(()=>{throw a});throw a}return s?qT(o):o}function pS(e,t,n,r,i){var o;let s=WT(e.schema,t,r[0]);if(!s)return;let a=s.type,u=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,c=zT(e,s,r,t,i);try{let l=bs(s,r[0],e.variableValues),d=e.contextValue,h=u(n,l,d,c),N;return Jn(h)?N=h.then(E=>$l(e,a,r,c,i,E)):N=$l(e,a,r,c,i,h),Jn(N)?N.then(void 0,E=>{let D=Pi(E,r,Rn(i));return yf(D,a,e)}):N}catch(l){let d=Pi(l,r,Rn(i));return yf(d,a,e)}}function zT(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 yf(e,t,n){if(ye(t))throw e;return n.errors.push(e),null}function $l(e,t,n,r,i,o){if(o instanceof Error)throw o;if(ye(t)){let s=$l(e,t.ofType,n,r,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}if(o==null)return null;if(Ke(t))return fk(e,t,n,r,i,o);if(vn(t))return mk(t,o);if(jn(t))return hk(e,t,n,r,i,o);if(De(t))return QT(e,t,n,r,i,o);He(!1,"Cannot complete value of unexpected output type: "+B(t))}function fk(e,t,n,r,i,o){if(!du(o))throw new x(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let s=t.ofType,a=!1,u=Array.from(o,(c,l)=>{let d=co(i,l,void 0);try{let h;return Jn(c)?h=c.then(N=>$l(e,s,n,r,d,N)):h=$l(e,s,n,r,d,c),Jn(h)?(a=!0,h.then(void 0,N=>{let E=Pi(N,n,Rn(d));return yf(E,s,e)})):h}catch(h){let N=Pi(h,n,Rn(d));return yf(N,s,e)}});return a?Promise.all(u):u}function mk(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${B(e)}.serialize(${B(t)})\` to return non-nullable value, returned: ${B(n)}`);return n}function hk(e,t,n,r,i,o){var s;let a=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver,u=e.contextValue,c=a(o,u,r,t);return Jn(c)?c.then(l=>QT(e,lS(l,e,t,n,r,o),n,r,i,o)):QT(e,lS(c,e,t,n,r,o),n,r,i,o)}function lS(e,t,n,r,i,o){if(e==null)throw new x(`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(De(e))throw new x("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if(typeof e!="string")throw new x(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${B(o)}, received "${B(e)}".`);let s=t.schema.getType(e);if(s==null)throw new x(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!De(s))throw new x(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new x(`Runtime Object type "${s.name}" is not a possible type for "${n.name}".`,{nodes:r});return s}function QT(e,t,n,r,i,o){let s=lk(e,t,n);if(t.isTypeOf){let a=t.isTypeOf(o,e.contextValue,r);if(Jn(a))return a.then(u=>{if(!u)throw dS(t,o,n);return hf(e,t,o,i,s)});if(!a)throw dS(t,o,n)}return hf(e,t,o,i,s)}function dS(e,t,n){return new x(`Expected value of type "${e.name}" but got: ${B(t)}.`,{nodes:n})}function WT(e,t,n){let r=n.name.value;return r===oo.name&&e.getQueryType()===t?oo:r===so.name&&e.getQueryType()===t?so:r===ao.name?ao:t.getFields()[r]}var lk,Tf,jl,ql=j(()=>{"use strict";p();m();f();ur();yt();zn();Zp();Si();Pp();iS();gl();oS();aS();we();ff();Di();st();tt();Cr();nl();cf();Eu();lk=rS((e,t,n)=>Xb(e.schema,e.fragments,e.variableValues,t,n));Tf=function(e,t,n,r){if(nn(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let s=0;s{for(let a=0;at(hS(e)))}function mS(e){let t=hS(e);if(Jn(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function hS(e){arguments.length<2||Se(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u}=e,c=pu(t);if(c.length>0)return{errors:c};let l;try{l=oi(n)}catch(h){return{errors:[h]}}let d=Bl(t,l);return d.length>0?{errors:d}:Ss({schema:t,document:l,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:a,typeResolver:u})}var yS=j(()=>{"use strict";p();m();f();ur();Pp();eu();nl();Vl();ql()});var TS=j(()=>{"use strict";p();m();f();ua();tt();yr();wi();Cr();nl();Vc()});var NS=j(()=>{"use strict";p();m();f();Kp();xp();yy();st();Pc();jp();eu();br();ea();Di();pa();Wa()});function HT(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}var ES=j(()=>{"use strict";p();m();f()});function gS(e,t){let n=e[Symbol.asyncIterator]();function r(o){return ar(this,null,function*(){if(o.done)return o;try{return{value:yield t(o.value),done:!1}}catch(s){if(typeof n.return=="function")try{yield n.return()}catch(a){}throw s}})}return{next(){return ar(this,null,function*(){return r(yield n.next())})},return(){return ar(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(o){return ar(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(o));throw o})},[Symbol.asyncIterator](){return this}}}var IS=j(()=>{"use strict";p();m();f()});function XT(t){return ar(this,arguments,function*(e){arguments.length<2||Se(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield Nf(e);return HT(n)?gS(n,i=>Ss(U(w({},e),{rootValue:i}))):n})}function yk(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]}}function Nf(...e){return ar(this,null,function*(){let t=yk(e),{schema:n,document:r,variableValues:i}=t;YT(n,r,i);let o=JT(t);if(!("schema"in o))return{errors:o};try{let s=yield Tk(o);if(!HT(s))throw new Error(`Subscription field must return Async Iterable. Received: ${B(s)}.`);return s}catch(s){if(s instanceof x)return{errors:[s]};throw s}})}function Tk(e){return ar(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(s==null)throw new x("Schema is not configured to execute subscription operation.",{nodes:r});let a=gu(t,n,i,s,r.selectionSet),[u,c]=[...a.entries()][0],l=WT(t,s,c[0]);if(!l){let E=c[0].name.value;throw new x(`The subscription field "${E}" is not defined.`,{nodes:c})}let d=co(void 0,u,s.name),h=zT(e,l,c,s,d);try{var N;let E=bs(l,c[0],i),D=e.contextValue,F=yield((N=l.subscribe)!==null&&N!==void 0?N:e.subscribeFieldResolver)(o,E,D,h);if(F instanceof Error)throw F;return F}catch(E){throw Pi(E,c,Rn(d))}})}var vS=j(()=>{"use strict";p();m();f();ur();yt();ES();gl();we();ff();cf();ql();IS();Eu()});var _S=j(()=>{"use strict";p();m();f();gl();ql();vS();Eu()});function ZT(e){return{Field(t){let n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getParentType();i!=null||He(!1),e.reportError(new x(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=e.getDirective();if(i!=null)e.reportError(new x(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||He(!1),e.reportError(new x(`Field "${o.name}.${s.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=Vt(e.getParentInputType());if(Ue(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new x(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){let i=Vt(e.getInputType());i!=null||He(!1),e.reportError(new x(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var bS=j(()=>{"use strict";p();m();f();zn();we();tt()});function eN(e){return{Field(t){let n=Vt(e.getType());n&&er(n)&&e.reportError(new x(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}var SS=j(()=>{"use strict";p();m();f();we();tt();Cr()});var DS=j(()=>{"use strict";p();m();f();Vl();GT();jT();Xy();Zy();eT();nT();rT();iT();oT();sT();uT();cT();lT();dT();TT();NT();IT();vT();DT();AT();FT();PT();xT();kT();CT();BT();VT();$T();aT();MT();UT();LT();RT();OT();wT();ET();bS();SS()});var OS=j(()=>{"use strict";p();m();f();we();kp();ff()});function Kl(e){let t=w({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function s(a){return t.inputValueDeprecation?a:""}return` query IntrospectionQuery { __schema { ${o} @@ -164,26 +164,26 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}var tN=j(()=>{"use strict";p();m();f()});function nN(e,t){let n=null;for(let i of e.definitions)if(i.kind===_.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}var AS=j(()=>{"use strict";p();m();f();st()});function rN(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new x("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new x("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new x("Schema is not configured for subscriptions.",{nodes:t});return n}throw new x("Can only have query, mutation and subscription operations.",{nodes:t})}var wS=j(()=>{"use strict";p();m();f();we()});function iN(e,t){let n=w({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=oi(Kl(n)),i=Gl({schema:e,document:r});return!i.errors&&i.data||Xe(!1),i.data}var FS=j(()=>{"use strict";p();m();f();zn();eu();ql();tN()});function oN(e,t){nn(e)&&nn(e.__schema)||Se(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${B(e)}.`);let n=e.__schema,r=Mr(n.types,Q=>Q.name,Q=>h(Q));for(let Q of[...Ai,...Ri])r[Q.name]&&(r[Q.name]=Q);let i=n.queryType?l(n.queryType):null,o=n.mutationType?l(n.mutationType):null,s=n.subscriptionType?l(n.subscriptionType):null,a=n.directives?n.directives.map(kt):[];return new Nr({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(r),directives:a,assumeValid:t==null?void 0:t.assumeValid});function u(Q){if(Q.kind===dt.LIST){let Ie=Q.ofType;if(!Ie)throw new Error("Decorated type deeper than introspection query.");return new Lt(u(Ie))}if(Q.kind===dt.NON_NULL){let Ie=Q.ofType;if(!Ie)throw new Error("Decorated type deeper than introspection query.");let Qt=u(Ie);return new Re(qc(Qt))}return c(Q)}function c(Q){let Ie=Q.name;if(!Ie)throw new Error(`Unknown type reference: ${B(Q)}.`);let Qt=r[Ie];if(!Qt)throw new Error(`Invalid or incomplete schema, unknown type: ${Ie}. Ensure that a full introspection query is used in order to build a client schema.`);return Qt}function l(Q){return $c(c(Q))}function d(Q){return jc(c(Q))}function h(Q){if(Q!=null&&Q.name!=null&&Q.kind!=null)switch(Q.kind){case dt.SCALAR:return N(Q);case dt.OBJECT:return D(Q);case dt.INTERFACE:return A(Q);case dt.UNION:return F(Q);case dt.ENUM:return Y(Q);case dt.INPUT_OBJECT:return J(Q)}let Ie=B(Q);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Ie}.`)}function N(Q){return new Vn({name:Q.name,description:Q.description,specifiedByURL:Q.specifiedByURL})}function E(Q){if(Q.interfaces===null&&Q.kind===dt.INTERFACE)return[];if(!Q.interfaces){let Ie=B(Q);throw new Error(`Introspection result missing interfaces: ${Ie}.`)}return Q.interfaces.map(d)}function D(Q){return new Nn({name:Q.name,description:Q.description,interfaces:()=>E(Q),fields:()=>Z(Q)})}function A(Q){return new Sr({name:Q.name,description:Q.description,interfaces:()=>E(Q),fields:()=>Z(Q)})}function F(Q){if(!Q.possibleTypes){let Ie=B(Q);throw new Error(`Introspection result missing possibleTypes: ${Ie}.`)}return new Dr({name:Q.name,description:Q.description,types:()=>Q.possibleTypes.map(l)})}function Y(Q){if(!Q.enumValues){let Ie=B(Q);throw new Error(`Introspection result missing enumValues: ${Ie}.`)}return new Hn({name:Q.name,description:Q.description,values:Mr(Q.enumValues,Ie=>Ie.name,Ie=>({description:Ie.description,deprecationReason:Ie.deprecationReason}))})}function J(Q){if(!Q.inputFields){let Ie=B(Q);throw new Error(`Introspection result missing inputFields: ${Ie}.`)}return new Or({name:Q.name,description:Q.description,fields:()=>_e(Q.inputFields)})}function Z(Q){if(!Q.fields)throw new Error(`Introspection result missing fields: ${B(Q)}.`);return Mr(Q.fields,Ie=>Ie.name,X)}function X(Q){let Ie=u(Q.type);if(!Ar(Ie)){let Qt=B(Ie);throw new Error(`Introspection must provide output type for fields, but received: ${Qt}.`)}if(!Q.args){let Qt=B(Q);throw new Error(`Introspection result missing field args: ${Qt}.`)}return{description:Q.description,deprecationReason:Q.deprecationReason,type:Ie,args:_e(Q.args)}}function _e(Q){return Mr(Q,Ie=>Ie.name,ut)}function ut(Q){let Ie=u(Q.type);if(!un(Ie)){let or=B(Ie);throw new Error(`Introspection must provide input type for arguments, but received: ${or}.`)}let Qt=Q.defaultValue!=null?fr(Mc(Q.defaultValue),Ie):void 0;return{description:Q.description,type:Ie,defaultValue:Qt,deprecationReason:Q.deprecationReason}}function kt(Q){if(!Q.args){let Ie=B(Q);throw new Error(`Introspection result missing directive args: ${Ie}.`)}if(!Q.locations){let Ie=B(Q);throw new Error(`Introspection result missing directive locations: ${Ie}.`)}return new Gn({name:Q.name,description:Q.description,isRepeatable:Q.isRepeatable,locations:Q.locations.slice(),args:_e(Q.args)})}}var RS=j(()=>{"use strict";p();m();f();ur();yt();Si();Uc();eu();tt();yr();Cr();wi();ua();_l()});function sN(e,t,n){aa(e),t!=null&&t.kind===_.DOCUMENT||Se(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&nS(t,e);let r=e.toConfig(),i=aN(r,t,n);return r===i?e:new Nr(i)}function aN(e,t,n){var r,i,o,s;let a=[],u=Object.create(null),c=[],l,d=[];for(let K of t.definitions)if(K.kind===_.SCHEMA_DEFINITION)l=K;else if(K.kind===_.SCHEMA_EXTENSION)d.push(K);else if(Br(K))a.push(K);else if(vs(K)){let ue=K.name.value,ne=u[ue];u[ue]=ne?ne.concat([K]):[K]}else K.kind===_.DIRECTIVE_DEFINITION&&c.push(K);if(Object.keys(u).length===0&&a.length===0&&c.length===0&&d.length===0&&l==null)return e;let h=Object.create(null);for(let K of e.types)h[K.name]=Y(K);for(let K of a){var N;let ue=K.name.value;h[ue]=(N=LS[ue])!==null&&N!==void 0?N:yn(K)}let E=w(w({query:e.query&&A(e.query),mutation:e.mutation&&A(e.mutation),subscription:e.subscription&&A(e.subscription)},l&&Qt([l])),Qt(d));return U(w({description:(r=l)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},E),{types:Object.values(h),directives:[...e.directives.map(F),...c.map(_r)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:(s=n==null?void 0:n.assumeValid)!==null&&s!==void 0?s:!1});function D(K){return qe(K)?new Lt(D(K.ofType)):ye(K)?new Re(D(K.ofType)):A(K)}function A(K){return h[K.name]}function F(K){let ue=K.toConfig();return new Gn(U(w({},ue),{args:si(ue.args,Ie)}))}function Y(K){if(er(K)||ci(K))return K;if(Jt(K))return X(K);if(De(K))return _e(K);if(Me(K))return ut(K);if(lt(K))return kt(K);if(it(K))return Z(K);if(Ue(K))return J(K);Xe(!1,"Unexpected type: "+B(K))}function J(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[];return new Or(U(w({},ne),{fields:()=>w(w({},si(ne.fields,ct=>U(w({},ct),{type:D(ct.type)}))),Qs(ce)),extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function Z(K){var ue;let ne=K.toConfig(),ce=(ue=u[K.name])!==null&&ue!==void 0?ue:[];return new Hn(U(w({},ne),{values:w(w({},ne.values),ls(ce)),extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function X(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[],ct=ne.specifiedByURL;for(let G of ce){var M;ct=(M=PS(G))!==null&&M!==void 0?M:ct}return new Vn(U(w({},ne),{specifiedByURL:ct,extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function _e(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[];return new Nn(U(w({},ne),{interfaces:()=>[...K.getInterfaces().map(A),...bi(ce)],fields:()=>w(w({},si(ne.fields,Q)),cs(ce)),extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function ut(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[];return new Sr(U(w({},ne),{interfaces:()=>[...K.getInterfaces().map(A),...bi(ce)],fields:()=>w(w({},si(ne.fields,Q)),cs(ce)),extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function kt(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[];return new Dr(U(w({},ne),{types:()=>[...K.getTypes().map(A),...vt(ce)],extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function Q(K){return U(w({},K),{type:D(K.type),args:K.args&&si(K.args,Ie)})}function Ie(K){return U(w({},K),{type:D(K.type)})}function Qt(K){let ue={};for(let ce of K){var ne;let ct=(ne=ce.operationTypes)!==null&&ne!==void 0?ne:[];for(let M of ct)ue[M.operation]=or(M.type)}return ue}function or(K){var ue;let ne=K.name.value,ce=(ue=LS[ne])!==null&&ue!==void 0?ue:h[ne];if(ce===void 0)throw new Error(`Unknown type: "${ne}".`);return ce}function In(K){return K.kind===_.LIST_TYPE?new Lt(In(K.type)):K.kind===_.NON_NULL_TYPE?new Re(In(K.type)):or(K)}function _r(K){var ue;return new Gn({name:K.name.value,description:(ue=K.description)===null||ue===void 0?void 0:ue.value,locations:K.locations.map(({value:ne})=>ne),isRepeatable:K.repeatable,args:ii(K.arguments),astNode:K})}function cs(K){let ue=Object.create(null);for(let ct of K){var ne;let M=(ne=ct.fields)!==null&&ne!==void 0?ne:[];for(let G of M){var ce;ue[G.name.value]={type:In(G.type),description:(ce=G.description)===null||ce===void 0?void 0:ce.value,args:ii(G.arguments),deprecationReason:Ef(G),astNode:G}}}return ue}function ii(K){let ue=K!=null?K:[],ne=Object.create(null);for(let ct of ue){var ce;let M=In(ct.type);ne[ct.name.value]={type:M,description:(ce=ct.description)===null||ce===void 0?void 0:ce.value,defaultValue:fr(ct.defaultValue,M),deprecationReason:Ef(ct),astNode:ct}}return ne}function Qs(K){let ue=Object.create(null);for(let ct of K){var ne;let M=(ne=ct.fields)!==null&&ne!==void 0?ne:[];for(let G of M){var ce;let ve=In(G.type);ue[G.name.value]={type:ve,description:(ce=G.description)===null||ce===void 0?void 0:ce.value,defaultValue:fr(G.defaultValue,ve),deprecationReason:Ef(G),astNode:G}}}return ue}function ls(K){let ue=Object.create(null);for(let ct of K){var ne;let M=(ne=ct.values)!==null&&ne!==void 0?ne:[];for(let G of M){var ce;ue[G.name.value]={description:(ce=G.description)===null||ce===void 0?void 0:ce.value,deprecationReason:Ef(G),astNode:G}}}return ue}function bi(K){return K.flatMap(ue=>{var ne,ce;return(ne=(ce=ue.interfaces)===null||ce===void 0?void 0:ce.map(or))!==null&&ne!==void 0?ne:[]})}function vt(K){return K.flatMap(ue=>{var ne,ce;return(ne=(ce=ue.types)===null||ce===void 0?void 0:ce.map(or))!==null&&ne!==void 0?ne:[]})}function yn(K){var ue;let ne=K.name.value,ce=(ue=u[ne])!==null&&ue!==void 0?ue:[];switch(K.kind){case _.OBJECT_TYPE_DEFINITION:{var ct;let We=[K,...ce];return new Nn({name:ne,description:(ct=K.description)===null||ct===void 0?void 0:ct.value,interfaces:()=>bi(We),fields:()=>cs(We),astNode:K,extensionASTNodes:ce})}case _.INTERFACE_TYPE_DEFINITION:{var M;let We=[K,...ce];return new Sr({name:ne,description:(M=K.description)===null||M===void 0?void 0:M.value,interfaces:()=>bi(We),fields:()=>cs(We),astNode:K,extensionASTNodes:ce})}case _.ENUM_TYPE_DEFINITION:{var G;let We=[K,...ce];return new Hn({name:ne,description:(G=K.description)===null||G===void 0?void 0:G.value,values:ls(We),astNode:K,extensionASTNodes:ce})}case _.UNION_TYPE_DEFINITION:{var ve;let We=[K,...ce];return new Dr({name:ne,description:(ve=K.description)===null||ve===void 0?void 0:ve.value,types:()=>vt(We),astNode:K,extensionASTNodes:ce})}case _.SCALAR_TYPE_DEFINITION:{var Fe;return new Vn({name:ne,description:(Fe=K.description)===null||Fe===void 0?void 0:Fe.value,specifiedByURL:PS(K),astNode:K,extensionASTNodes:ce})}case _.INPUT_OBJECT_TYPE_DEFINITION:{var ht;let We=[K,...ce];return new Or({name:ne,description:(ht=K.description)===null||ht===void 0?void 0:ht.value,fields:()=>Qs(We),astNode:K,extensionASTNodes:ce})}}}}function Ef(e){let t=lo(Fi,e);return t==null?void 0:t.reason}function PS(e){let t=lo(lu,e);return t==null?void 0:t.url}var LS,uN=j(()=>{"use strict";p();m();f();ur();yt();zn();ys();by();st();pa();tt();yr();Cr();wi();ua();Vl();Eu();_l();LS=Xn([...Ai,...Ri],e=>e.name)});function gf(e,t){e!=null&&e.kind===_.DOCUMENT||Se(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&tS(e);let r=aN({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let o of r.types)switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o;break}let i=[...r.directives,...Zn.filter(o=>r.directives.every(s=>s.name!==o.name))];return new Nr(U(w({},r),{directives:i}))}function cN(e,t){let n=oi(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return gf(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}var xS=j(()=>{"use strict";p();m();f();ur();st();eu();yr();ua();Vl();uN()});function Ql(e){let t=e.toConfig(),n=Mr(lN(t.types),h=>h.name,d);return new Nr(U(w({},t),{types:Object.values(n),directives:lN(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(h){return qe(h)?new Lt(r(h.ofType)):ye(h)?new Re(r(h.ofType)):i(h)}function i(h){return n[h.name]}function o(h){return h&&i(h)}function s(h){let N=h.toConfig();return new Gn(U(w({},N),{locations:kS(N.locations,E=>E),args:a(N.args)}))}function a(h){return If(h,N=>U(w({},N),{type:r(N.type)}))}function u(h){return If(h,N=>U(w({},N),{type:r(N.type),args:N.args&&a(N.args)}))}function c(h){return If(h,N=>U(w({},N),{type:r(N.type)}))}function l(h){return lN(h).map(i)}function d(h){if(Jt(h)||er(h))return h;if(De(h)){let N=h.toConfig();return new Nn(U(w({},N),{interfaces:()=>l(N.interfaces),fields:()=>u(N.fields)}))}if(Me(h)){let N=h.toConfig();return new Sr(U(w({},N),{interfaces:()=>l(N.interfaces),fields:()=>u(N.fields)}))}if(lt(h)){let N=h.toConfig();return new Dr(U(w({},N),{types:()=>l(N.types)}))}if(it(h)){let N=h.toConfig();return new Hn(U(w({},N),{values:If(N.values,E=>E)}))}if(Ue(h)){let N=h.toConfig();return new Or(U(w({},N),{fields:()=>c(N.fields)}))}Xe(!1,"Unexpected type: "+B(h))}}function If(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(to))n[r]=t(e[r]);return n}function lN(e){return kS(e,t=>t.name)}function kS(e,t){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);return to(i,o)})}var MS=j(()=>{"use strict";p();m();f();yt();zn();Uc();Cc();tt();yr();Cr();ua()});function Yl(e){return US(e,t=>!Is(t),Nk)}function pN(e){return US(e,Is,er)}function Nk(e){return!ci(e)&&!er(e)}function US(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Ek(e),...r.map(o=>Ok(o)),...i.map(o=>vf(o))].filter(Boolean).join(` + `}var tN=j(()=>{"use strict";p();m();f()});function nN(e,t){let n=null;for(let i of e.definitions)if(i.kind===_.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}var AS=j(()=>{"use strict";p();m();f();st()});function rN(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new x("Schema does not define the required query root type.",{nodes:t});return n}if(t.operation==="mutation"){let n=e.getMutationType();if(!n)throw new x("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new x("Schema is not configured for subscriptions.",{nodes:t});return n}throw new x("Can only have query, mutation and subscription operations.",{nodes:t})}var wS=j(()=>{"use strict";p();m();f();we()});function iN(e,t){let n=w({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),r=oi(Kl(n)),i=Gl({schema:e,document:r});return!i.errors&&i.data||He(!1),i.data}var FS=j(()=>{"use strict";p();m();f();zn();eu();ql();tN()});function oN(e,t){nn(e)&&nn(e.__schema)||Se(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${B(e)}.`);let n=e.__schema,r=Mr(n.types,Q=>Q.name,Q=>h(Q));for(let Q of[...Ai,...Li])r[Q.name]&&(r[Q.name]=Q);let i=n.queryType?l(n.queryType):null,o=n.mutationType?l(n.mutationType):null,s=n.subscriptionType?l(n.subscriptionType):null,a=n.directives?n.directives.map(kt):[];return new Nr({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(r),directives:a,assumeValid:t==null?void 0:t.assumeValid});function u(Q){if(Q.kind===dt.LIST){let Ie=Q.ofType;if(!Ie)throw new Error("Decorated type deeper than introspection query.");return new Rt(u(Ie))}if(Q.kind===dt.NON_NULL){let Ie=Q.ofType;if(!Ie)throw new Error("Decorated type deeper than introspection query.");let Yt=u(Ie);return new Le(qc(Yt))}return c(Q)}function c(Q){let Ie=Q.name;if(!Ie)throw new Error(`Unknown type reference: ${B(Q)}.`);let Yt=r[Ie];if(!Yt)throw new Error(`Invalid or incomplete schema, unknown type: ${Ie}. Ensure that a full introspection query is used in order to build a client schema.`);return Yt}function l(Q){return $c(c(Q))}function d(Q){return jc(c(Q))}function h(Q){if(Q!=null&&Q.name!=null&&Q.kind!=null)switch(Q.kind){case dt.SCALAR:return N(Q);case dt.OBJECT:return D(Q);case dt.INTERFACE:return A(Q);case dt.UNION:return F(Q);case dt.ENUM:return Y(Q);case dt.INPUT_OBJECT:return J(Q)}let Ie=B(Q);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${Ie}.`)}function N(Q){return new $n({name:Q.name,description:Q.description,specifiedByURL:Q.specifiedByURL})}function E(Q){if(Q.interfaces===null&&Q.kind===dt.INTERFACE)return[];if(!Q.interfaces){let Ie=B(Q);throw new Error(`Introspection result missing interfaces: ${Ie}.`)}return Q.interfaces.map(d)}function D(Q){return new Nn({name:Q.name,description:Q.description,interfaces:()=>E(Q),fields:()=>Z(Q)})}function A(Q){return new Sr({name:Q.name,description:Q.description,interfaces:()=>E(Q),fields:()=>Z(Q)})}function F(Q){if(!Q.possibleTypes){let Ie=B(Q);throw new Error(`Introspection result missing possibleTypes: ${Ie}.`)}return new Dr({name:Q.name,description:Q.description,types:()=>Q.possibleTypes.map(l)})}function Y(Q){if(!Q.enumValues){let Ie=B(Q);throw new Error(`Introspection result missing enumValues: ${Ie}.`)}return new Xn({name:Q.name,description:Q.description,values:Mr(Q.enumValues,Ie=>Ie.name,Ie=>({description:Ie.description,deprecationReason:Ie.deprecationReason}))})}function J(Q){if(!Q.inputFields){let Ie=B(Q);throw new Error(`Introspection result missing inputFields: ${Ie}.`)}return new Or({name:Q.name,description:Q.description,fields:()=>_e(Q.inputFields)})}function Z(Q){if(!Q.fields)throw new Error(`Introspection result missing fields: ${B(Q)}.`);return Mr(Q.fields,Ie=>Ie.name,H)}function H(Q){let Ie=u(Q.type);if(!Ar(Ie)){let Yt=B(Ie);throw new Error(`Introspection must provide output type for fields, but received: ${Yt}.`)}if(!Q.args){let Yt=B(Q);throw new Error(`Introspection result missing field args: ${Yt}.`)}return{description:Q.description,deprecationReason:Q.deprecationReason,type:Ie,args:_e(Q.args)}}function _e(Q){return Mr(Q,Ie=>Ie.name,ut)}function ut(Q){let Ie=u(Q.type);if(!un(Ie)){let or=B(Ie);throw new Error(`Introspection must provide input type for arguments, but received: ${or}.`)}let Yt=Q.defaultValue!=null?fr(Mc(Q.defaultValue),Ie):void 0;return{description:Q.description,type:Ie,defaultValue:Yt,deprecationReason:Q.deprecationReason}}function kt(Q){if(!Q.args){let Ie=B(Q);throw new Error(`Introspection result missing directive args: ${Ie}.`)}if(!Q.locations){let Ie=B(Q);throw new Error(`Introspection result missing directive locations: ${Ie}.`)}return new qn({name:Q.name,description:Q.description,isRepeatable:Q.isRepeatable,locations:Q.locations.slice(),args:_e(Q.args)})}}var LS=j(()=>{"use strict";p();m();f();ur();yt();Si();Uc();eu();tt();yr();Cr();wi();ua();_l()});function sN(e,t,n){aa(e),t!=null&&t.kind===_.DOCUMENT||Se(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&nS(t,e);let r=e.toConfig(),i=aN(r,t,n);return r===i?e:new Nr(i)}function aN(e,t,n){var r,i,o,s;let a=[],u=Object.create(null),c=[],l,d=[];for(let K of t.definitions)if(K.kind===_.SCHEMA_DEFINITION)l=K;else if(K.kind===_.SCHEMA_EXTENSION)d.push(K);else if(Br(K))a.push(K);else if(_s(K)){let ue=K.name.value,ne=u[ue];u[ue]=ne?ne.concat([K]):[K]}else K.kind===_.DIRECTIVE_DEFINITION&&c.push(K);if(Object.keys(u).length===0&&a.length===0&&c.length===0&&d.length===0&&l==null)return e;let h=Object.create(null);for(let K of e.types)h[K.name]=Y(K);for(let K of a){var N;let ue=K.name.value;h[ue]=(N=RS[ue])!==null&&N!==void 0?N:yn(K)}let E=w(w({query:e.query&&A(e.query),mutation:e.mutation&&A(e.mutation),subscription:e.subscription&&A(e.subscription)},l&&Yt([l])),Yt(d));return U(w({description:(r=l)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},E),{types:Object.values(h),directives:[...e.directives.map(F),...c.map(_r)],extensions:Object.create(null),astNode:(o=l)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(d),assumeValid:(s=n==null?void 0:n.assumeValid)!==null&&s!==void 0?s:!1});function D(K){return Ke(K)?new Rt(D(K.ofType)):ye(K)?new Le(D(K.ofType)):A(K)}function A(K){return h[K.name]}function F(K){let ue=K.toConfig();return new qn(U(w({},ue),{args:si(ue.args,Ie)}))}function Y(K){if(er(K)||ci(K))return K;if(zt(K))return H(K);if(De(K))return _e(K);if(Me(K))return ut(K);if(lt(K))return kt(K);if(it(K))return Z(K);if(Ue(K))return J(K);He(!1,"Unexpected type: "+B(K))}function J(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[];return new Or(U(w({},ne),{fields:()=>w(w({},si(ne.fields,ct=>U(w({},ct),{type:D(ct.type)}))),Qs(ce)),extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function Z(K){var ue;let ne=K.toConfig(),ce=(ue=u[K.name])!==null&&ue!==void 0?ue:[];return new Xn(U(w({},ne),{values:w(w({},ne.values),ds(ce)),extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function H(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[],ct=ne.specifiedByURL;for(let G of ce){var M;ct=(M=PS(G))!==null&&M!==void 0?M:ct}return new $n(U(w({},ne),{specifiedByURL:ct,extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function _e(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[];return new Nn(U(w({},ne),{interfaces:()=>[...K.getInterfaces().map(A),...bi(ce)],fields:()=>w(w({},si(ne.fields,Q)),ls(ce)),extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function ut(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[];return new Sr(U(w({},ne),{interfaces:()=>[...K.getInterfaces().map(A),...bi(ce)],fields:()=>w(w({},si(ne.fields,Q)),ls(ce)),extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function kt(K){var ue;let ne=K.toConfig(),ce=(ue=u[ne.name])!==null&&ue!==void 0?ue:[];return new Dr(U(w({},ne),{types:()=>[...K.getTypes().map(A),...vt(ce)],extensionASTNodes:ne.extensionASTNodes.concat(ce)}))}function Q(K){return U(w({},K),{type:D(K.type),args:K.args&&si(K.args,Ie)})}function Ie(K){return U(w({},K),{type:D(K.type)})}function Yt(K){let ue={};for(let ce of K){var ne;let ct=(ne=ce.operationTypes)!==null&&ne!==void 0?ne:[];for(let M of ct)ue[M.operation]=or(M.type)}return ue}function or(K){var ue;let ne=K.name.value,ce=(ue=RS[ne])!==null&&ue!==void 0?ue:h[ne];if(ce===void 0)throw new Error(`Unknown type: "${ne}".`);return ce}function In(K){return K.kind===_.LIST_TYPE?new Rt(In(K.type)):K.kind===_.NON_NULL_TYPE?new Le(In(K.type)):or(K)}function _r(K){var ue;return new qn({name:K.name.value,description:(ue=K.description)===null||ue===void 0?void 0:ue.value,locations:K.locations.map(({value:ne})=>ne),isRepeatable:K.repeatable,args:ii(K.arguments),astNode:K})}function ls(K){let ue=Object.create(null);for(let ct of K){var ne;let M=(ne=ct.fields)!==null&&ne!==void 0?ne:[];for(let G of M){var ce;ue[G.name.value]={type:In(G.type),description:(ce=G.description)===null||ce===void 0?void 0:ce.value,args:ii(G.arguments),deprecationReason:Ef(G),astNode:G}}}return ue}function ii(K){let ue=K!=null?K:[],ne=Object.create(null);for(let ct of ue){var ce;let M=In(ct.type);ne[ct.name.value]={type:M,description:(ce=ct.description)===null||ce===void 0?void 0:ce.value,defaultValue:fr(ct.defaultValue,M),deprecationReason:Ef(ct),astNode:ct}}return ne}function Qs(K){let ue=Object.create(null);for(let ct of K){var ne;let M=(ne=ct.fields)!==null&&ne!==void 0?ne:[];for(let G of M){var ce;let ve=In(G.type);ue[G.name.value]={type:ve,description:(ce=G.description)===null||ce===void 0?void 0:ce.value,defaultValue:fr(G.defaultValue,ve),deprecationReason:Ef(G),astNode:G}}}return ue}function ds(K){let ue=Object.create(null);for(let ct of K){var ne;let M=(ne=ct.values)!==null&&ne!==void 0?ne:[];for(let G of M){var ce;ue[G.name.value]={description:(ce=G.description)===null||ce===void 0?void 0:ce.value,deprecationReason:Ef(G),astNode:G}}}return ue}function bi(K){return K.flatMap(ue=>{var ne,ce;return(ne=(ce=ue.interfaces)===null||ce===void 0?void 0:ce.map(or))!==null&&ne!==void 0?ne:[]})}function vt(K){return K.flatMap(ue=>{var ne,ce;return(ne=(ce=ue.types)===null||ce===void 0?void 0:ce.map(or))!==null&&ne!==void 0?ne:[]})}function yn(K){var ue;let ne=K.name.value,ce=(ue=u[ne])!==null&&ue!==void 0?ue:[];switch(K.kind){case _.OBJECT_TYPE_DEFINITION:{var ct;let We=[K,...ce];return new Nn({name:ne,description:(ct=K.description)===null||ct===void 0?void 0:ct.value,interfaces:()=>bi(We),fields:()=>ls(We),astNode:K,extensionASTNodes:ce})}case _.INTERFACE_TYPE_DEFINITION:{var M;let We=[K,...ce];return new Sr({name:ne,description:(M=K.description)===null||M===void 0?void 0:M.value,interfaces:()=>bi(We),fields:()=>ls(We),astNode:K,extensionASTNodes:ce})}case _.ENUM_TYPE_DEFINITION:{var G;let We=[K,...ce];return new Xn({name:ne,description:(G=K.description)===null||G===void 0?void 0:G.value,values:ds(We),astNode:K,extensionASTNodes:ce})}case _.UNION_TYPE_DEFINITION:{var ve;let We=[K,...ce];return new Dr({name:ne,description:(ve=K.description)===null||ve===void 0?void 0:ve.value,types:()=>vt(We),astNode:K,extensionASTNodes:ce})}case _.SCALAR_TYPE_DEFINITION:{var Fe;return new $n({name:ne,description:(Fe=K.description)===null||Fe===void 0?void 0:Fe.value,specifiedByURL:PS(K),astNode:K,extensionASTNodes:ce})}case _.INPUT_OBJECT_TYPE_DEFINITION:{var ht;let We=[K,...ce];return new Or({name:ne,description:(ht=K.description)===null||ht===void 0?void 0:ht.value,fields:()=>Qs(We),astNode:K,extensionASTNodes:ce})}}}}function Ef(e){let t=lo(Fi,e);return t==null?void 0:t.reason}function PS(e){let t=lo(lu,e);return t==null?void 0:t.url}var RS,uN=j(()=>{"use strict";p();m();f();ur();yt();zn();Ts();by();st();pa();tt();yr();Cr();wi();ua();Vl();Eu();_l();RS=Hn([...Ai,...Li],e=>e.name)});function gf(e,t){e!=null&&e.kind===_.DOCUMENT||Se(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&tS(e);let r=aN({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(let o of r.types)switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o;break}let i=[...r.directives,...Zn.filter(o=>r.directives.every(s=>s.name!==o.name))];return new Nr(U(w({},r),{directives:i}))}function cN(e,t){let n=oi(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return gf(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}var xS=j(()=>{"use strict";p();m();f();ur();st();eu();yr();ua();Vl();uN()});function Ql(e){let t=e.toConfig(),n=Mr(lN(t.types),h=>h.name,d);return new Nr(U(w({},t),{types:Object.values(n),directives:lN(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function r(h){return Ke(h)?new Rt(r(h.ofType)):ye(h)?new Le(r(h.ofType)):i(h)}function i(h){return n[h.name]}function o(h){return h&&i(h)}function s(h){let N=h.toConfig();return new qn(U(w({},N),{locations:kS(N.locations,E=>E),args:a(N.args)}))}function a(h){return If(h,N=>U(w({},N),{type:r(N.type)}))}function u(h){return If(h,N=>U(w({},N),{type:r(N.type),args:N.args&&a(N.args)}))}function c(h){return If(h,N=>U(w({},N),{type:r(N.type)}))}function l(h){return lN(h).map(i)}function d(h){if(zt(h)||er(h))return h;if(De(h)){let N=h.toConfig();return new Nn(U(w({},N),{interfaces:()=>l(N.interfaces),fields:()=>u(N.fields)}))}if(Me(h)){let N=h.toConfig();return new Sr(U(w({},N),{interfaces:()=>l(N.interfaces),fields:()=>u(N.fields)}))}if(lt(h)){let N=h.toConfig();return new Dr(U(w({},N),{types:()=>l(N.types)}))}if(it(h)){let N=h.toConfig();return new Xn(U(w({},N),{values:If(N.values,E=>E)}))}if(Ue(h)){let N=h.toConfig();return new Or(U(w({},N),{fields:()=>c(N.fields)}))}He(!1,"Unexpected type: "+B(h))}}function If(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(to))n[r]=t(e[r]);return n}function lN(e){return kS(e,t=>t.name)}function kS(e,t){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);return to(i,o)})}var MS=j(()=>{"use strict";p();m();f();yt();zn();Uc();Cc();tt();yr();Cr();ua()});function Yl(e){return US(e,t=>!vs(t),Nk)}function pN(e){return US(e,vs,er)}function Nk(e){return!ci(e)&&!er(e)}function US(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Ek(e),...r.map(o=>Ok(o)),...i.map(o=>vf(o))].filter(Boolean).join(` `)}function Ek(e){if(e.description==null&&gk(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}`),Vr(e)+`schema { ${t.join(` `)} -}`}function gk(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function vf(e){if(Jt(e))return Ik(e);if(De(e))return vk(e);if(Me(e))return _k(e);if(lt(e))return bk(e);if(it(e))return Sk(e);if(Ue(e))return Dk(e);Xe(!1,"Unexpected type: "+B(e))}function Ik(e){return Vr(e)+`scalar ${e.name}`+Ak(e)}function CS(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function vk(e){return Vr(e)+`type ${e.name}`+CS(e)+BS(e)}function _k(e){return Vr(e)+`interface ${e.name}`+CS(e)+BS(e)}function bk(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Vr(e)+"union "+e.name+n}function Sk(e){let t=e.getValues().map((n,r)=>Vr(n," ",!r)+" "+n.name+mN(n.deprecationReason));return Vr(e)+`enum ${e.name}`+fN(t)}function Dk(e){let t=Object.values(e.getFields()).map((n,r)=>Vr(n," ",!r)+" "+dN(n));return Vr(e)+`input ${e.name}`+fN(t)}function BS(e){let t=Object.values(e.getFields()).map((n,r)=>Vr(n," ",!r)+" "+n.name+VS(n.args," ")+": "+String(n.type)+mN(n.deprecationReason));return fN(t)}function fN(e){return e.length!==0?` { +}`}function gk(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function vf(e){if(zt(e))return Ik(e);if(De(e))return vk(e);if(Me(e))return _k(e);if(lt(e))return bk(e);if(it(e))return Sk(e);if(Ue(e))return Dk(e);He(!1,"Unexpected type: "+B(e))}function Ik(e){return Vr(e)+`scalar ${e.name}`+Ak(e)}function CS(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function vk(e){return Vr(e)+`type ${e.name}`+CS(e)+BS(e)}function _k(e){return Vr(e)+`interface ${e.name}`+CS(e)+BS(e)}function bk(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Vr(e)+"union "+e.name+n}function Sk(e){let t=e.getValues().map((n,r)=>Vr(n," ",!r)+" "+n.name+mN(n.deprecationReason));return Vr(e)+`enum ${e.name}`+fN(t)}function Dk(e){let t=Object.values(e.getFields()).map((n,r)=>Vr(n," ",!r)+" "+dN(n));return Vr(e)+`input ${e.name}`+fN(t)}function BS(e){let t=Object.values(e.getFields()).map((n,r)=>Vr(n," ",!r)+" "+n.name+VS(n.args," ")+": "+String(n.type)+mN(n.deprecationReason));return fN(t)}function fN(e){return e.length!==0?` { `+e.join(` `)+` }`:""}function VS(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(dN).join(", ")+")":`( `+e.map((n,r)=>Vr(n," "+t,!r)+" "+t+dN(n)).join(` `)+` -`+t+")"}function dN(e){let t=qn(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${$e(t)}`),n+mN(e.deprecationReason)}function Ok(e){return Vr(e)+"directive @"+e.name+VS(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function mN(e){return e==null?"":e!==cu?` @deprecated(reason: ${$e({kind:_.STRING,value:e})})`:" @deprecated"}function Ak(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${$e({kind:_.STRING,value:e.specifiedByURL})})`}function Vr(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=$e({kind:_.STRING,value:r,block:Ob(r)});return(t&&!n?` +`+t+")"}function dN(e){let t=Kn(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${$e(t)}`),n+mN(e.deprecationReason)}function Ok(e){return Vr(e)+"directive @"+e.name+VS(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function mN(e){return e==null?"":e!==cu?` @deprecated(reason: ${$e({kind:_.STRING,value:e})})`:" @deprecated"}function Ak(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${$e({kind:_.STRING,value:e.specifiedByURL})})`}function Vr(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=$e({kind:_.STRING,value:r,block:Ob(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}var $S=j(()=>{"use strict";p();m();f();yt();zn();Lc();st();br();tt();yr();Cr();wi();zc()});function hN(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:_.DOCUMENT,definitions:t}}var jS=j(()=>{"use strict";p();m();f();st()});function yN(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case _.OPERATION_DEFINITION:t.push(i);break;case _.FRAGMENT_DEFINITION:n[i.name.value]=GS(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let o=new Set;for(let a of GS(i.selectionSet))qS(o,n,a);let s=i.name?i.name.value:"";r[s]={kind:_.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===_.FRAGMENT_DEFINITION&&o.has(a.name.value))}}return r}function qS(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)qS(e,t,i)}}function GS(e){let t=[];return Ur(e,{FragmentSpread(n){t.push(n.name.value)}}),t}var KS=j(()=>{"use strict";p();m();f();st();ea()});function TN(e){let t=qp(e)?e:new Oi(e),n=t.body,r=new eo(t),i="",o=!1;for(;r.advance().kind!==q.EOF;){let s=r.token,a=s.kind,u=!Vp(s.kind);o&&(u||s.kind===q.SPREAD)&&(i+=" ");let c=n.slice(s.start,s.end);a===q.BLOCK_STRING?i+=Bp(s.value,{minimize:!0}):i+=c,o=u}return i}var QS=j(()=>{"use strict";p();m();f();Lc();jp();Kp();Pc()});function NN(e){let t=_f(e);if(t)throw t;return e}function _f(e){if(typeof e=="string"||Se(!1,"Expected name to be a string."),e.startsWith("__"))return new x(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Rn(e)}catch(t){return t}}var YS=j(()=>{"use strict";p();m();f();ur();we();Vc()});function EN(e,t){return HS(e,t).filter(n=>n.type in jt)}function gN(e,t){return HS(e,t).filter(n=>n.type in Fr)}function HS(e,t){return[...Fk(e,t),...wk(e,t)]}function wk(e,t){let n=[],r=po(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:jt.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,o]of r.persisted){let s=po(i.args,o.args);for(let a of s.added)wr(a)&&n.push({type:jt.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(let a of s.removed)n.push({type:jt.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:jt.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let a of i.locations)o.locations.includes(a)||n.push({type:jt.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return n}function Fk(e,t){let n=[],r=po(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:jt.TYPE_REMOVED,description:ci(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,o]of r.persisted)it(i)&&it(o)?n.push(...Pk(i,o)):lt(i)&<(o)?n.push(...Lk(i,o)):Ue(i)&&Ue(o)?n.push(...Rk(i,o)):De(i)&&De(o)?n.push(...zS(i,o),...JS(i,o)):Me(i)&&Me(o)?n.push(...zS(i,o),...JS(i,o)):i.constructor!==o.constructor&&n.push({type:jt.TYPE_CHANGED_KIND,description:`${i.name} changed from ${WS(i)} to ${WS(o)}.`});return n}function Rk(e,t){let n=[],r=po(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)io(i)?n.push({type:jt.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Fr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:jt.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of r.persisted)zl(i.type,o.type)||n.push({type:jt.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function Lk(e,t){let n=[],r=po(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:Fr.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:jt.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function Pk(e,t){let n=[],r=po(e.getValues(),t.getValues());for(let i of r.added)n.push({type:Fr.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:jt.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function JS(e,t){let n=[],r=po(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:Fr.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:jt.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function zS(e,t){let n=[],r=po(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:jt.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of r.persisted)n.push(...xk(e,i,o)),Jl(i.type,o.type)||n.push({type:jt.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function xk(e,t,n){let r=[],i=po(t.args,n.args);for(let o of i.removed)r.push({type:jt.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,s]of i.persisted)if(!zl(o.type,s.type))r.push({type:jt.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(s.type)}.`});else if(o.defaultValue!==void 0)if(s.defaultValue===void 0)r.push({type:Fr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{let u=XS(o.defaultValue,o.type),c=XS(s.defaultValue,s.type);u!==c&&r.push({type:Fr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of i.added)wr(o)?r.push({type:jt.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:Fr.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function Jl(e,t){return qe(e)?qe(t)&&Jl(e.ofType,t.ofType)||ye(t)&&Jl(e,t.ofType):ye(e)?ye(t)&&Jl(e.ofType,t.ofType):ro(t)&&e.name===t.name||ye(t)&&Jl(e,t.ofType)}function zl(e,t){return qe(e)?qe(t)&&zl(e.ofType,t.ofType):ye(e)?ye(t)&&zl(e.ofType,t.ofType)||!ye(t)&&zl(e.ofType,t):ro(t)&&e.name===t.name}function WS(e){if(Jt(e))return"a Scalar type";if(De(e))return"an Object type";if(Me(e))return"an Interface type";if(lt(e))return"a Union type";if(it(e))return"an Enum type";if(Ue(e))return"an Input type";Xe(!1,"Unexpected type: "+B(e))}function XS(e,t){let n=qn(e,t);return n!=null||Xe(!1),$e(Nu(n))}function po(e,t){let n=[],r=[],i=[],o=Xn(e,({name:a})=>a),s=Xn(t,({name:a})=>a);for(let a of e){let u=s[a.name];u===void 0?r.push(a):i.push([a,u])}for(let a of t)o[a.name]===void 0&&n.push(a);return{added:n,persisted:i,removed:r}}var jt,Fr,ZS=j(()=>{"use strict";p();m();f();yt();zn();ys();br();tt();wi();zc();pT();(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(jt||(jt={}));(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Fr||(Fr={}))});var eD=j(()=>{"use strict";p();m();f();tN();AS();wS();FS();RS();xS();uN();MS();$S();Li();_l();Ay();zc();tf();bT();jS();KS();QS();Yc();YS();ZS()});var de={};Ya(de,{BREAK:()=>Ns,BreakingChangeType:()=>jt,DEFAULT_DEPRECATION_REASON:()=>cu,DangerousChangeType:()=>Fr,DirectiveLocation:()=>Ee,ExecutableDefinitionsRule:()=>il,FieldsOnCorrectTypeRule:()=>ol,FragmentsOnCompositeTypesRule:()=>sl,GRAPHQL_MAX_INT:()=>iu,GRAPHQL_MIN_INT:()=>ou,GraphQLBoolean:()=>jn,GraphQLDeprecatedDirective:()=>Fi,GraphQLDirective:()=>Gn,GraphQLEnumType:()=>Hn,GraphQLError:()=>x,GraphQLFloat:()=>Hp,GraphQLID:()=>su,GraphQLIncludeDirective:()=>au,GraphQLInputObjectType:()=>Or,GraphQLInt:()=>Xp,GraphQLInterfaceType:()=>Sr,GraphQLList:()=>Lt,GraphQLNonNull:()=>Re,GraphQLObjectType:()=>Nn,GraphQLScalarType:()=>Vn,GraphQLSchema:()=>Nr,GraphQLSkipDirective:()=>uu,GraphQLSpecifiedByDirective:()=>lu,GraphQLString:()=>Pt,GraphQLUnionType:()=>Dr,Kind:()=>_,KnownArgumentNamesRule:()=>al,KnownDirectivesRule:()=>yu,KnownFragmentNamesRule:()=>ul,KnownTypeNamesRule:()=>Tu,Lexer:()=>eo,Location:()=>Hs,LoneAnonymousOperationRule:()=>cl,LoneSchemaDefinitionRule:()=>ll,NoDeprecatedCustomRule:()=>ZT,NoFragmentCyclesRule:()=>dl,NoSchemaIntrospectionCustomRule:()=>eN,NoUndefinedVariablesRule:()=>pl,NoUnusedFragmentsRule:()=>fl,NoUnusedVariablesRule:()=>ml,OperationTypeNode:()=>Rt,OverlappingFieldsCanBeMergedRule:()=>hl,PossibleFragmentSpreadsRule:()=>yl,PossibleTypeExtensionsRule:()=>Tl,ProvidedRequiredArgumentsRule:()=>Nl,ScalarLeafsRule:()=>El,SchemaMetaFieldDef:()=>oo,SingleFieldSubscriptionsRule:()=>Sl,Source:()=>Oi,Token:()=>ms,TokenKind:()=>q,TypeInfo:()=>uo,TypeKind:()=>dt,TypeMetaFieldDef:()=>so,TypeNameMetaFieldDef:()=>ao,UniqueArgumentDefinitionNamesRule:()=>Dl,UniqueArgumentNamesRule:()=>vu,UniqueDirectiveNamesRule:()=>Ol,UniqueDirectivesPerLocationRule:()=>_u,UniqueEnumValueNamesRule:()=>Al,UniqueFieldDefinitionNamesRule:()=>wl,UniqueFragmentNamesRule:()=>Fl,UniqueInputFieldNamesRule:()=>bu,UniqueOperationNamesRule:()=>Rl,UniqueOperationTypesRule:()=>Ll,UniqueTypeNamesRule:()=>Pl,UniqueVariableNamesRule:()=>xl,ValidationContext:()=>ma,ValuesOfCorrectTypeRule:()=>kl,VariablesAreInputTypesRule:()=>Ml,VariablesInAllowedPositionRule:()=>Ul,__Directive:()=>Wc,__DirectiveLocation:()=>Xc,__EnumValue:()=>Zc,__Field:()=>Hc,__InputValue:()=>sa,__Schema:()=>oa,__Type:()=>Tr,__TypeKind:()=>el,assertAbstractType:()=>Vy,assertCompositeType:()=>By,assertDirective:()=>Ky,assertEnumType:()=>Ly,assertEnumValueName:()=>Bc,assertInputObjectType:()=>Py,assertInputType:()=>My,assertInterfaceType:()=>jc,assertLeafType:()=>Cy,assertListType:()=>xy,assertName:()=>Rn,assertNamedType:()=>jy,assertNonNullType:()=>ky,assertNullableType:()=>qc,assertObjectType:()=>$c,assertOutputType:()=>Uy,assertScalarType:()=>Fy,assertSchema:()=>aa,assertType:()=>wy,assertUnionType:()=>Ry,assertValidName:()=>NN,assertValidSchema:()=>la,assertWrappingType:()=>$y,astFromValue:()=>qn,buildASTSchema:()=>gf,buildClientSchema:()=>oN,buildSchema:()=>cN,coerceInputValue:()=>vl,concatAST:()=>hN,createSourceEventStream:()=>Nf,defaultFieldResolver:()=>jl,defaultTypeResolver:()=>Tf,doTypesOverlap:()=>ru,execute:()=>bs,executeSync:()=>Gl,extendSchema:()=>sN,findBreakingChanges:()=>EN,findDangerousChanges:()=>gN,formatError:()=>Ny,getArgumentValues:()=>_s,getDirectiveValues:()=>lo,getEnterLeaveForKind:()=>no,getIntrospectionQuery:()=>Kl,getLocation:()=>fs,getNamedType:()=>Vt,getNullableType:()=>ra,getOperationAST:()=>nN,getOperationRootType:()=>rN,getVariableValues:()=>bl,getVisitFn:()=>Oy,graphql:()=>fS,graphqlSync:()=>mS,introspectionFromSchema:()=>iN,introspectionTypes:()=>Ri,isAbstractType:()=>$n,isCompositeType:()=>pr,isConstValueNode:()=>rl,isDefinitionNode:()=>zy,isDirective:()=>gs,isEnumType:()=>it,isEqualType:()=>ia,isExecutableDefinitionNode:()=>fu,isInputObjectType:()=>Ue,isInputType:()=>un,isInterfaceType:()=>Me,isIntrospectionType:()=>er,isLeafType:()=>vn,isListType:()=>qe,isNamedType:()=>ro,isNonNullType:()=>ye,isNullableType:()=>Gc,isObjectType:()=>De,isOutputType:()=>Ar,isRequiredArgument:()=>wr,isRequiredInputField:()=>io,isScalarType:()=>Jt,isSchema:()=>ef,isSelectionNode:()=>Wy,isSpecifiedDirective:()=>Is,isSpecifiedScalarType:()=>ci,isType:()=>Es,isTypeDefinitionNode:()=>Br,isTypeExtensionNode:()=>vs,isTypeNode:()=>Xy,isTypeSubTypeOf:()=>ui,isTypeSystemDefinitionNode:()=>mu,isTypeSystemExtensionNode:()=>hu,isUnionType:()=>lt,isValidNameError:()=>_f,isValueNode:()=>nf,isWrappingType:()=>na,lexicographicSortSchema:()=>Ql,locatedError:()=>Pi,parse:()=>oi,parseConstValue:()=>Iy,parseType:()=>vy,parseValue:()=>Mc,print:()=>$e,printError:()=>Ty,printIntrospectionSchema:()=>pN,printLocation:()=>wc,printSchema:()=>Yl,printSourceLocation:()=>za,printType:()=>vf,resolveObjMapThunk:()=>Qc,resolveReadonlyArrayThunk:()=>Kc,responsePathAsArray:()=>Ln,separateOperations:()=>yN,specifiedDirectives:()=>Zn,specifiedRules:()=>Cl,specifiedScalarTypes:()=>Ai,stripIgnoredCharacters:()=>TN,subscribe:()=>HT,syntaxError:()=>Yt,typeFromAST:()=>$t,validate:()=>Bl,validateSchema:()=>pu,valueFromAST:()=>fr,valueFromASTUntyped:()=>ta,version:()=>gb,versionInfo:()=>Ib,visit:()=>Ur,visitInParallel:()=>tu,visitWithTypeInfo:()=>da});var ie=j(()=>{"use strict";p();m();f();vb();yS();TS();NS();_S();DS();OS();eD()});var $r=R(P=>{"use strict";p();m();f();Object.defineProperty(P,"__esModule",{value:!0});P.OBJECT_UPPER=P.OPERATION_TO_DEFAULT=P.NAME=P.N_A=P.MUTATION_UPPER=P.MUTATION=P.KEY=P.LINK=P.INTERFACE_OBJECT=P.INTERFACE_UPPER=P.INT_SCALAR=P.INPUT_OBJECT_UPPER=P.INPUT_OBJECT=P.INPUT_FIELD_DEFINITION_UPPER=P.INPUT_FIELD=P.INLINE_FRAGMENT_UPPER=P.INLINE_FRAGMENT=P.INACCESSIBLE=P.FROM=P.FRAGMENT_SPREAD_UPPER=P.FRAGMENT_DEFINITION_UPPER=P.FLOAT_SCALAR=P.FIELD_DEFINITION_UPPER=P.FIELDS=P.FIELD_SET_SCALAR=P.FIELD_UPPER=P.FIELD=P.EXTENSIONS=P.EXTENDS=P.EXTERNAL=P.EVENTS_SUBSCRIBE=P.EVENTS_REQUEST=P.EVENTS_PUBLISH=P.ENUM_VALUE_UPPER=P.ENUM_UPPER=P.ENTITY_UNION=P.ENTITIES_FIELD=P.ENTITIES=P.DIRECTIVE_DEFINITION=P.DEPRECATED_DEFAULT_ARGUMENT_VALUE=P.DEPRECATED=P.DEFAULT_SUBSCRIPTION=P.DEFAULT_QUERY=P.DEFAULT_MUTATION=P.COMPOSE_DIRECTIVE=P.BOOLEAN_SCALAR=P.ARGUMENT_DEFINITION_UPPER=P.AUTHENTICATED=P.ARGUMENT=P.ANY_SCALAR=void 0;P.ROOT_TYPES=P.IGNORED_PARENT_DIRECTIVES=P.EXECUTABLE_DIRECTIVE_LOCATIONS=P.VARIABLE_DEFINITION_UPPER=P.URL_LOWER=P.UNION_UPPER=P.UNION=P.TOPIC=P.TAG=P.SUBSCRIPTION_UPPER=P.SUBSCRIPTION=P.STRING_SCALAR=P.SPECIFIED_BY=P.SOURCE_ID=P.SHAREABLE=P.SERVICE_FIELD=P.SERVICE_OBJECT=P.SELECTION_REPRESENTATION=P.SCOPE_SCALAR=P.SCOPES=P.SCHEMA_UPPER=P.SCHEMA=P.SCALAR_UPPER=P.RESOLVABLE=P.REQUIRES_SCOPES=P.REQUIRES=P.REASON=P.QUOTATION_JOIN=P.QUERY_UPPER=P.QUERY=P.PROVIDES=P.PARENT_EXTENSION_DATA_MAP=P.PARENT_DEFINITION_DATA_MAP=P.PARENTS=P.OVERRIDE=void 0;P.ANY_SCALAR="_Any";P.ARGUMENT="argument";P.AUTHENTICATED="authenticated";P.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";P.BOOLEAN_SCALAR="Boolean";P.COMPOSE_DIRECTIVE="composeDirective";P.DEFAULT_MUTATION="Mutation";P.DEFAULT_QUERY="Query";P.DEFAULT_SUBSCRIPTION="Subscription";P.DEPRECATED="deprecated";P.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";P.DIRECTIVE_DEFINITION="directive definition";P.ENTITIES="entities";P.ENTITIES_FIELD="_entities";P.ENTITY_UNION="_Entity";P.ENUM_UPPER="ENUM";P.ENUM_VALUE_UPPER="ENUM_VALUE";P.EVENTS_PUBLISH="eventsPublish";P.EVENTS_REQUEST="eventsRequest";P.EVENTS_SUBSCRIBE="eventsSubscribe";P.EXTERNAL="external";P.EXTENDS="extends";P.EXTENSIONS="extensions";P.FIELD="field";P.FIELD_UPPER="FIELD";P.FIELD_SET_SCALAR="openfed__FieldSet";P.FIELDS="fields";P.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";P.FLOAT_SCALAR="Float";P.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";P.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";P.FROM="from";P.INACCESSIBLE="inaccessible";P.INLINE_FRAGMENT="inlineFragment";P.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";P.INPUT_FIELD="input field";P.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";P.INPUT_OBJECT="input object";P.INPUT_OBJECT_UPPER="INPUT_OBJECT";P.INT_SCALAR="Int";P.INTERFACE_UPPER="INTERFACE";P.INTERFACE_OBJECT="interfaceObject";P.LINK="link";P.KEY="key";P.MUTATION="Mutation";P.MUTATION_UPPER="MUTATION";P.N_A="N/A";P.NAME="name";P.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";P.OBJECT_UPPER="OBJECT";P.OVERRIDE="override";P.PARENTS="parents";P.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";P.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";P.PROVIDES="provides";P.QUERY="Query";P.QUERY_UPPER="QUERY";P.QUOTATION_JOIN='", "';P.REASON="reason";P.REQUIRES="requires";P.REQUIRES_SCOPES="requiresScopes";P.RESOLVABLE="resolvable";P.SCALAR_UPPER="SCALAR";P.SCHEMA="schema";P.SCHEMA_UPPER="SCHEMA";P.SCOPES="scopes";P.SCOPE_SCALAR="openfed__Scope";P.SELECTION_REPRESENTATION=" { ... }";P.SERVICE_OBJECT="_Service";P.SERVICE_FIELD="_service";P.SHAREABLE="shareable";P.SOURCE_ID="sourceID";P.SPECIFIED_BY="specifiedBy";P.STRING_SCALAR="String";P.SUBSCRIPTION="Subscription";P.SUBSCRIPTION_UPPER="SUBSCRIPTION";P.TAG="tag";P.TOPIC="topic";P.UNION="union";P.UNION_UPPER="UNION";P.URL_LOWER="url";P.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";P.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([P.FIELD_UPPER,P.FRAGMENT_DEFINITION_UPPER,P.FRAGMENT_SPREAD_UPPER,P.INLINE_FRAGMENT_UPPER,P.MUTATION_UPPER,P.QUERY_UPPER,P.SUBSCRIPTION_UPPER]);P.IGNORED_PARENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.EXTENDS,P.REQUIRES_SCOPES]);P.ROOT_TYPES=new Set([P.MUTATION,P.QUERY,P.SUBSCRIPTION])});var fo=R(oe=>{"use strict";p();m();f();Object.defineProperty(oe,"__esModule",{value:!0});oe.addMapEntries=oe.isNodeKindInterface=oe.generateRequiresScopesDirective=oe.generateSimpleDirective=oe.setAndGetValue=oe.upsertAuthorizationConfiguration=oe.upsertAuthorizationData=oe.upsertFieldAuthorizationData=oe.mergeAuthorizationDataByAND=oe.maxOrScopes=oe.newAuthorizationData=oe.getAuthorizationDataToUpdate=oe.resetAuthorizationData=oe.newFieldAuthorizationData=oe.upsertEntityContainer=oe.upsertEntityContainerProperties=oe.newEntityContainer=oe.getValueOrDefault=oe.hasSimplePath=oe.upsertEntityInterfaceFederationData=oe.newEntityInterfaceFederationData=oe.kindToTypeString=oe.addSetsAndReturnMutationBoolean=oe.addIterableValuesToSet=oe.numberToOrdinal=oe.mapToArrayOfValues=oe.subtractSourceSetFromTargetSet=oe.doSetsHaveAnyOverlap=oe.getEntriesNotInHashSet=oe.getAllSetDisparities=oe.getOrThrowError=oe.getAllMutualEntries=oe.areSetsEqual=void 0;var zt=(ie(),ae(de)),bf=$r(),kk=di(),IN=jr();function Mk(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}oe.areSetsEqual=Mk;function Uk(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}oe.getAllMutualEntries=Uk;function Ck(e,t,n){let r=e.get(t);if(r===void 0)throw(0,kk.invalidKeyFatalError)(t,n);return r}oe.getOrThrowError=Ck;function Bk(e,t){let n=new Set(t),r=[];for(let i of e)n.delete(i)||r.push(i);for(let i of n)r.push(i);return r}oe.getAllSetDisparities=Bk;function Vk(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}oe.getEntriesNotInHashSet=Vk;function $k(e,t){for(let n of e)if(t.has(n))return!0;return!1}oe.doSetsHaveAnyOverlap=$k;function jk(e,t){for(let n of e)t.has(n)&&t.delete(n)}oe.subtractSourceSetFromTargetSet=jk;function Gk(e){let t=[];for(let n of e.values())t.push(n);return t}oe.mapToArrayOfValues=Gk;function qk(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}oe.numberToOrdinal=qk;function ha(e,t){for(let n of e)t.add(n)}oe.addIterableValuesToSet=ha;function tD(e,t){let n=!1;for(let r of e)t.has(r)||(n=!0,t.add(r));return n}oe.addSetsAndReturnMutationBoolean=tD;function Kk(e){switch(e){case zt.Kind.ENUM_TYPE_DEFINITION:return"enum";case zt.Kind.ENUM_TYPE_EXTENSION:return"enum extension";case zt.Kind.FIELD_DEFINITION:return bf.FIELD;case zt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return"input object";case zt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object extension";case zt.Kind.INPUT_VALUE_DEFINITION:return"input value";case zt.Kind.INTERFACE_TYPE_DEFINITION:return"interface";case zt.Kind.INTERFACE_TYPE_EXTENSION:return"interface extension";case zt.Kind.OBJECT_TYPE_DEFINITION:return"object";case zt.Kind.OBJECT_TYPE_EXTENSION:return"object extension";case zt.Kind.SCALAR_TYPE_DEFINITION:return"scalar";case zt.Kind.SCALAR_TYPE_EXTENSION:return"scalar extension";case zt.Kind.UNION_TYPE_DEFINITION:return bf.UNION;case zt.Kind.UNION_TYPE_EXTENSION:return"union extension";default:return e}}oe.kindToTypeString=Kk;function Qk(e,t){return w({interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),typeName:e.typeName},e.isInterfaceObject?{}:{concreteTypeNames:new Set(e.concreteTypeNames)})}oe.newEntityInterfaceFederationData=Qk;function Yk(e,t,n){return ha(t.interfaceFieldNames,e.interfaceFieldNames),ha(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject?(e.interfaceObjectSubgraphs.add(n),!1):e.concreteTypeNames?tD(t.concreteTypeNames||new Set,e.concreteTypeNames):(e.concreteTypeNames=new Set(t.concreteTypeNames),!1)}oe.upsertEntityInterfaceFederationData=Yk;var vN=class{constructor(t){S(this,"set",new Set);S(this,"stack",[]);this.push(t)}has(t){return this.set.has(t)}push(t){this.stack.push(t),this.set.add(t)}pop(){let t=this.stack.pop();t&&this.set.delete(t)}};function Jk(e,t,n){if(!e.hasNode(t)||!e.hasNode(n))return!1;let r=[e.outboundNeighbors(t)],i=new vN(t),o,s;for(;r.length>0;){if(o=r[r.length-1],s=o.pop(),!s){r.pop();continue}if(i.has(s))continue;if(s===n)return!0;i.push(s);let a=e.outboundNeighbors(s);a.length<0||r.push(a)}return!1}oe.hasSimplePath=Jk;function nD(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}oe.getValueOrDefault=nD;function rD(e){return{fieldNames:new Set(e.fieldNames),keyFieldSets:new Set(e.keyFieldSets),subgraphNames:new Set(e.subgraphNames),typeName:e.typeName}}oe.newEntityContainer=rD;function iD(e,t){ha(e.fieldNames||[],t.fieldNames),ha(e.keyFieldSets||[],t.keyFieldSets),ha(e.subgraphNames||[],t.subgraphNames)}function zk(e,t){let n=e.get(t.typeName);n?iD(t,n):e.set(t.typeName,rD(t))}oe.upsertEntityContainerProperties=zk;function Wk(e,t){let n=e.get(t.typeName);n?iD(t,n):e.set(t.typeName,t)}oe.upsertEntityContainer=Wk;function _N(e){return{fieldName:e,requiresAuthentication:!1,requiredScopes:[]}}oe.newFieldAuthorizationData=_N;function Xk(e){e&&(e.requiresAuthentication=!1,e.requiredScopes=[],e.hasParentLevelAuthorization=!1)}oe.resetAuthorizationData=Xk;function Hk(e,t,n){return t.kind===zt.Kind.FIELD_DEFINITION?nD(e.fieldAuthorizationDataByFieldName,n,()=>_N(n)):(e.hasParentLevelAuthorization=!0,e)}oe.getAuthorizationDataToUpdate=Hk;function Zk(e){return{fieldAuthorizationDataByFieldName:new Map,hasParentLevelAuthorization:!1,requiresAuthentication:!1,requiredScopes:[],typeName:e}}oe.newAuthorizationData=Zk;oe.maxOrScopes=16;function oD(e,t){t.requiresAuthentication||(t.requiresAuthentication=e.requiresAuthentication);let n=e.requiredScopes.length;if(n<1)return!0;let r=t.requiredScopes.length;if(r<1){if(n>oe.maxOrScopes)return!1;for(let o of e.requiredScopes)t.requiredScopes.push(new Set(o));return!0}if(n*r>oe.maxOrScopes)return!1;let i=[];for(let o of t.requiredScopes)for(let s of e.requiredScopes){let a=new Set(o);ha(s,a),i.push(a)}return t.requiredScopes=i,!0}oe.mergeAuthorizationDataByAND=oD;function sD(e,t){let n=t.fieldName,r=e.get(n);if(!r){if(t.requiredScopes.length>oe.maxOrScopes)return!1;let i=_N(n);i.requiresAuthentication||(i.requiresAuthentication=t.requiresAuthentication);for(let o of t.requiredScopes)i.requiredScopes.push(new Set(o));return e.set(n,i),!0}return r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),oD(t,r)}oe.upsertFieldAuthorizationData=sD;function eM(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,t);return}for(let[i,o]of t.fieldAuthorizationDataByFieldName)sD(r.fieldAuthorizationDataByFieldName,o)||n.add(`${t.typeName}.${i}`)}oe.upsertAuthorizationData=eM;function tM(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthorizationDataByFieldName){let o=`${n}.${r}`,s=e.get(o);s?(s.requiresAuthentication=i.requiresAuthentication,s.requiredScopes=i.requiredScopes.map(a=>[...a])):e.set(o,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.requiresAuthentication,requiredScopes:i.requiredScopes.map(a=>[...a])})}}oe.upsertAuthorizationConfiguration=tM;function nM(e,t,n){return e.set(t,n),n}oe.setAndGetValue=nM;function rM(e){return{kind:zt.Kind.DIRECTIVE,name:(0,IN.stringToNameNode)(e)}}oe.generateSimpleDirective=rM;function iM(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:zt.Kind.STRING,value:i});t.push({kind:zt.Kind.LIST,values:r})}return{kind:zt.Kind.DIRECTIVE,name:(0,IN.stringToNameNode)(bf.REQUIRES_SCOPES),arguments:[{kind:zt.Kind.ARGUMENT,name:(0,IN.stringToNameNode)(bf.SCOPES),value:{kind:zt.Kind.LIST,values:t}}]}}oe.generateRequiresScopesDirective=iM;function oM(e){return e===zt.Kind.INTERFACE_TYPE_DEFINITION||e===zt.Kind.INTERFACE_TYPE_EXTENSION}oe.isNodeKindInterface=oM;function sM(e,t){for(let[n,r]of e)t.set(n,r)}oe.addMapEntries=sM});var di=R(k=>{"use strict";p();m();f();Object.defineProperty(k,"__esModule",{value:!0});k.invalidSubgraphNameErrorMessage=k.subgraphValidationFailureError=k.subgraphValidationError=k.unexpectedParentKindErrorMessage=k.invalidConfigurationResultFatalError=k.invalidKeyFatalError=k.unexpectedTypeNodeKindFatalError=k.unexpectedDirectiveLocationError=k.fieldTypeMergeFatalError=k.incompatibleParentKindFatalError=k.unexpectedKindFatalError=k.maximumTypeNestingExceededFatalError=k.invalidKeyDirectivesError=k.invalidKeyDirectiveArgumentErrorMessage=k.invalidDirectiveArgumentTypeErrorMessage=k.duplicateDirectiveArgumentDefinitionErrorMessage=k.unexpectedDirectiveArgumentErrorMessage=k.undefinedRequiredArgumentsErrorMessage=k.unexpectedDirectiveArgumentsErrorMessage=k.invalidDirectiveLocationErrorMessage=k.invalidDirectiveError=k.duplicateUnionMemberError=k.invalidRepeatedFederatedDirectiveErrorMessage=k.invalidRepeatedDirectiveErrorMessage=k.federationRequiredInputFieldError=k.undefinedTypeError=k.unresolvableFieldError=k.undefinedDirectiveErrorMessage=k.invalidFieldShareabilityError=k.operationDefinitionError=k.noDefinedUnionMembersError=k.noBaseTypeExtensionError=k.duplicateOperationTypeDefinitionError=k.duplicateTypeDefinitionError=k.duplicateValueExtensionError=k.duplicateUnionMemberExtensionError=k.duplicateInterfaceError=k.duplicateInterfaceExtensionError=k.duplicateEnumValueDefinitionError=k.duplicateDirectiveDefinitionError=k.duplicateFieldDefinitionError=k.invalidSubgraphNamesError=k.incompatibleExtensionKindsError=k.incompatibleSharedEnumError=k.incompatibleInputValueDefaultValuesError=k.incompatibleChildTypesError=k.incompatibleInputValueDefaultValueTypeError=k.incompatibleArgumentTypesError=k.incompatibleExtensionError=k.minimumSubgraphRequirementError=void 0;k.orScopesLimitError=k.undefinedEntityInterfaceImplementationsError=k.equivalentSourceAndTargetOverrideErrorMessage=k.allFieldDefinitionsAreInaccessibleError=k.noFieldDefinitionsError=k.duplicateOverriddenFieldsError=k.duplicateOverriddenFieldErrorMessage=k.invalidSelectionOnUnionErrorMessage=k.invalidInlineFragmentTypeConditionErrorMessage=k.invalidInlineFragmentTypeConditionTypeErrorMessage=k.unknownInlineFragmentTypeConditionErrorMessage=k.inlineFragmentWithoutTypeConditionErrorMessage=k.invalidInlineFragmentTypeErrorMessage=k.unknownProvidesEntityErrorMessage=k.duplicateFieldInFieldSetErrorMessage=k.invalidProvidesOrRequiresDirectivesError=k.argumentsInKeyFieldSetErrorMessage=k.unexpectedArgumentErrorMessage=k.undefinedObjectLikeParentError=k.unparsableFieldSetSelectionErrorMessage=k.unparsableFieldSetErrorMessage=k.undefinedFieldInFieldSetErrorMessage=k.invalidSelectionSetDefinitionErrorMessage=k.invalidSelectionSetErrorMessage=k.unknownTypeInFieldSetErrorMessage=k.abstractTypeInKeyFieldSetErrorMessage=k.inlineFragmentInFieldSetErrorMessage=k.expectedEntityError=k.noConcreteTypesForAbstractTypeError=k.unexpectedObjectResponseType=k.noQueryRootTypeError=k.invalidArgumentsError=k.duplicateArgumentsError=k.invalidRequiredInputValueError=k.unimplementedInterfaceFieldsError=k.subgraphInvalidSyntaxError=k.invalidRootTypeDefinitionError=k.invalidOperationTypeDefinitionError=void 0;var aM=jr(),uM=(ie(),ae(de)),Wl=fo(),Rr=$r();k.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function cM(e,t,n){return new Error(`Extension error: +`}var $S=j(()=>{"use strict";p();m();f();yt();zn();Rc();st();br();tt();yr();Cr();wi();zc()});function hN(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:_.DOCUMENT,definitions:t}}var jS=j(()=>{"use strict";p();m();f();st()});function yN(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case _.OPERATION_DEFINITION:t.push(i);break;case _.FRAGMENT_DEFINITION:n[i.name.value]=GS(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let o=new Set;for(let a of GS(i.selectionSet))qS(o,n,a);let s=i.name?i.name.value:"";r[s]={kind:_.DOCUMENT,definitions:e.definitions.filter(a=>a===i||a.kind===_.FRAGMENT_DEFINITION&&o.has(a.name.value))}}return r}function qS(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)qS(e,t,i)}}function GS(e){let t=[];return Ur(e,{FragmentSpread(n){t.push(n.name.value)}}),t}var KS=j(()=>{"use strict";p();m();f();st();ea()});function TN(e){let t=qp(e)?e:new Oi(e),n=t.body,r=new eo(t),i="",o=!1;for(;r.advance().kind!==q.EOF;){let s=r.token,a=s.kind,u=!Vp(s.kind);o&&(u||s.kind===q.SPREAD)&&(i+=" ");let c=n.slice(s.start,s.end);a===q.BLOCK_STRING?i+=Bp(s.value,{minimize:!0}):i+=c,o=u}return i}var QS=j(()=>{"use strict";p();m();f();Rc();jp();Kp();Pc()});function NN(e){let t=_f(e);if(t)throw t;return e}function _f(e){if(typeof e=="string"||Se(!1,"Expected name to be a string."),e.startsWith("__"))return new x(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{Ln(e)}catch(t){return t}}var YS=j(()=>{"use strict";p();m();f();ur();we();Vc()});function EN(e,t){return XS(e,t).filter(n=>n.type in jt)}function gN(e,t){return XS(e,t).filter(n=>n.type in Fr)}function XS(e,t){return[...Fk(e,t),...wk(e,t)]}function wk(e,t){let n=[],r=po(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:jt.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,o]of r.persisted){let s=po(i.args,o.args);for(let a of s.added)wr(a)&&n.push({type:jt.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${a.name} on directive ${i.name} was added.`});for(let a of s.removed)n.push({type:jt.DIRECTIVE_ARG_REMOVED,description:`${a.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:jt.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let a of i.locations)o.locations.includes(a)||n.push({type:jt.DIRECTIVE_LOCATION_REMOVED,description:`${a} was removed from ${i.name}.`})}return n}function Fk(e,t){let n=[],r=po(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:jt.TYPE_REMOVED,description:ci(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,o]of r.persisted)it(i)&&it(o)?n.push(...Pk(i,o)):lt(i)&<(o)?n.push(...Rk(i,o)):Ue(i)&&Ue(o)?n.push(...Lk(i,o)):De(i)&&De(o)?n.push(...zS(i,o),...JS(i,o)):Me(i)&&Me(o)?n.push(...zS(i,o),...JS(i,o)):i.constructor!==o.constructor&&n.push({type:jt.TYPE_CHANGED_KIND,description:`${i.name} changed from ${WS(i)} to ${WS(o)}.`});return n}function Lk(e,t){let n=[],r=po(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)io(i)?n.push({type:jt.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Fr.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:jt.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of r.persisted)zl(i.type,o.type)||n.push({type:jt.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function Rk(e,t){let n=[],r=po(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:Fr.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:jt.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function Pk(e,t){let n=[],r=po(e.getValues(),t.getValues());for(let i of r.added)n.push({type:Fr.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:jt.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function JS(e,t){let n=[],r=po(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:Fr.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:jt.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function zS(e,t){let n=[],r=po(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:jt.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,o]of r.persisted)n.push(...xk(e,i,o)),Jl(i.type,o.type)||n.push({type:jt.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function xk(e,t,n){let r=[],i=po(t.args,n.args);for(let o of i.removed)r.push({type:jt.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(let[o,s]of i.persisted)if(!zl(o.type,s.type))r.push({type:jt.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(s.type)}.`});else if(o.defaultValue!==void 0)if(s.defaultValue===void 0)r.push({type:Fr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{let u=HS(o.defaultValue,o.type),c=HS(s.defaultValue,s.type);u!==c&&r.push({type:Fr.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${u} to ${c}.`})}for(let o of i.added)wr(o)?r.push({type:jt.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:Fr.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function Jl(e,t){return Ke(e)?Ke(t)&&Jl(e.ofType,t.ofType)||ye(t)&&Jl(e,t.ofType):ye(e)?ye(t)&&Jl(e.ofType,t.ofType):ro(t)&&e.name===t.name||ye(t)&&Jl(e,t.ofType)}function zl(e,t){return Ke(e)?Ke(t)&&zl(e.ofType,t.ofType):ye(e)?ye(t)&&zl(e.ofType,t.ofType)||!ye(t)&&zl(e.ofType,t):ro(t)&&e.name===t.name}function WS(e){if(zt(e))return"a Scalar type";if(De(e))return"an Object type";if(Me(e))return"an Interface type";if(lt(e))return"a Union type";if(it(e))return"an Enum type";if(Ue(e))return"an Input type";He(!1,"Unexpected type: "+B(e))}function HS(e,t){let n=Kn(e,t);return n!=null||He(!1),$e(Nu(n))}function po(e,t){let n=[],r=[],i=[],o=Hn(e,({name:a})=>a),s=Hn(t,({name:a})=>a);for(let a of e){let u=s[a.name];u===void 0?r.push(a):i.push([a,u])}for(let a of t)o[a.name]===void 0&&n.push(a);return{added:n,persisted:i,removed:r}}var jt,Fr,ZS=j(()=>{"use strict";p();m();f();yt();zn();Ts();br();tt();wi();zc();pT();(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(jt||(jt={}));(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Fr||(Fr={}))});var eD=j(()=>{"use strict";p();m();f();tN();AS();wS();FS();LS();xS();uN();MS();$S();Ri();_l();Ay();zc();tf();bT();jS();KS();QS();Yc();YS();ZS()});var de={};Ya(de,{BREAK:()=>Es,BreakingChangeType:()=>jt,DEFAULT_DEPRECATION_REASON:()=>cu,DangerousChangeType:()=>Fr,DirectiveLocation:()=>Ee,ExecutableDefinitionsRule:()=>il,FieldsOnCorrectTypeRule:()=>ol,FragmentsOnCompositeTypesRule:()=>sl,GRAPHQL_MAX_INT:()=>iu,GRAPHQL_MIN_INT:()=>ou,GraphQLBoolean:()=>Gn,GraphQLDeprecatedDirective:()=>Fi,GraphQLDirective:()=>qn,GraphQLEnumType:()=>Xn,GraphQLError:()=>x,GraphQLFloat:()=>Xp,GraphQLID:()=>su,GraphQLIncludeDirective:()=>au,GraphQLInputObjectType:()=>Or,GraphQLInt:()=>Hp,GraphQLInterfaceType:()=>Sr,GraphQLList:()=>Rt,GraphQLNonNull:()=>Le,GraphQLObjectType:()=>Nn,GraphQLScalarType:()=>$n,GraphQLSchema:()=>Nr,GraphQLSkipDirective:()=>uu,GraphQLSpecifiedByDirective:()=>lu,GraphQLString:()=>Pt,GraphQLUnionType:()=>Dr,Kind:()=>_,KnownArgumentNamesRule:()=>al,KnownDirectivesRule:()=>yu,KnownFragmentNamesRule:()=>ul,KnownTypeNamesRule:()=>Tu,Lexer:()=>eo,Location:()=>Xs,LoneAnonymousOperationRule:()=>cl,LoneSchemaDefinitionRule:()=>ll,NoDeprecatedCustomRule:()=>ZT,NoFragmentCyclesRule:()=>dl,NoSchemaIntrospectionCustomRule:()=>eN,NoUndefinedVariablesRule:()=>pl,NoUnusedFragmentsRule:()=>fl,NoUnusedVariablesRule:()=>ml,OperationTypeNode:()=>Lt,OverlappingFieldsCanBeMergedRule:()=>hl,PossibleFragmentSpreadsRule:()=>yl,PossibleTypeExtensionsRule:()=>Tl,ProvidedRequiredArgumentsRule:()=>Nl,ScalarLeafsRule:()=>El,SchemaMetaFieldDef:()=>oo,SingleFieldSubscriptionsRule:()=>Sl,Source:()=>Oi,Token:()=>hs,TokenKind:()=>q,TypeInfo:()=>uo,TypeKind:()=>dt,TypeMetaFieldDef:()=>so,TypeNameMetaFieldDef:()=>ao,UniqueArgumentDefinitionNamesRule:()=>Dl,UniqueArgumentNamesRule:()=>vu,UniqueDirectiveNamesRule:()=>Ol,UniqueDirectivesPerLocationRule:()=>_u,UniqueEnumValueNamesRule:()=>Al,UniqueFieldDefinitionNamesRule:()=>wl,UniqueFragmentNamesRule:()=>Fl,UniqueInputFieldNamesRule:()=>bu,UniqueOperationNamesRule:()=>Ll,UniqueOperationTypesRule:()=>Rl,UniqueTypeNamesRule:()=>Pl,UniqueVariableNamesRule:()=>xl,ValidationContext:()=>ma,ValuesOfCorrectTypeRule:()=>kl,VariablesAreInputTypesRule:()=>Ml,VariablesInAllowedPositionRule:()=>Ul,__Directive:()=>Wc,__DirectiveLocation:()=>Hc,__EnumValue:()=>Zc,__Field:()=>Xc,__InputValue:()=>sa,__Schema:()=>oa,__Type:()=>Tr,__TypeKind:()=>el,assertAbstractType:()=>Vy,assertCompositeType:()=>By,assertDirective:()=>Ky,assertEnumType:()=>Ry,assertEnumValueName:()=>Bc,assertInputObjectType:()=>Py,assertInputType:()=>My,assertInterfaceType:()=>jc,assertLeafType:()=>Cy,assertListType:()=>xy,assertName:()=>Ln,assertNamedType:()=>jy,assertNonNullType:()=>ky,assertNullableType:()=>qc,assertObjectType:()=>$c,assertOutputType:()=>Uy,assertScalarType:()=>Fy,assertSchema:()=>aa,assertType:()=>wy,assertUnionType:()=>Ly,assertValidName:()=>NN,assertValidSchema:()=>la,assertWrappingType:()=>$y,astFromValue:()=>Kn,buildASTSchema:()=>gf,buildClientSchema:()=>oN,buildSchema:()=>cN,coerceInputValue:()=>vl,concatAST:()=>hN,createSourceEventStream:()=>Nf,defaultFieldResolver:()=>jl,defaultTypeResolver:()=>Tf,doTypesOverlap:()=>ru,execute:()=>Ss,executeSync:()=>Gl,extendSchema:()=>sN,findBreakingChanges:()=>EN,findDangerousChanges:()=>gN,formatError:()=>Ny,getArgumentValues:()=>bs,getDirectiveValues:()=>lo,getEnterLeaveForKind:()=>no,getIntrospectionQuery:()=>Kl,getLocation:()=>ms,getNamedType:()=>Vt,getNullableType:()=>ra,getOperationAST:()=>nN,getOperationRootType:()=>rN,getVariableValues:()=>bl,getVisitFn:()=>Oy,graphql:()=>fS,graphqlSync:()=>mS,introspectionFromSchema:()=>iN,introspectionTypes:()=>Li,isAbstractType:()=>jn,isCompositeType:()=>pr,isConstValueNode:()=>rl,isDefinitionNode:()=>zy,isDirective:()=>Is,isEnumType:()=>it,isEqualType:()=>ia,isExecutableDefinitionNode:()=>fu,isInputObjectType:()=>Ue,isInputType:()=>un,isInterfaceType:()=>Me,isIntrospectionType:()=>er,isLeafType:()=>vn,isListType:()=>Ke,isNamedType:()=>ro,isNonNullType:()=>ye,isNullableType:()=>Gc,isObjectType:()=>De,isOutputType:()=>Ar,isRequiredArgument:()=>wr,isRequiredInputField:()=>io,isScalarType:()=>zt,isSchema:()=>ef,isSelectionNode:()=>Wy,isSpecifiedDirective:()=>vs,isSpecifiedScalarType:()=>ci,isType:()=>gs,isTypeDefinitionNode:()=>Br,isTypeExtensionNode:()=>_s,isTypeNode:()=>Hy,isTypeSubTypeOf:()=>ui,isTypeSystemDefinitionNode:()=>mu,isTypeSystemExtensionNode:()=>hu,isUnionType:()=>lt,isValidNameError:()=>_f,isValueNode:()=>nf,isWrappingType:()=>na,lexicographicSortSchema:()=>Ql,locatedError:()=>Pi,parse:()=>oi,parseConstValue:()=>Iy,parseType:()=>vy,parseValue:()=>Mc,print:()=>$e,printError:()=>Ty,printIntrospectionSchema:()=>pN,printLocation:()=>wc,printSchema:()=>Yl,printSourceLocation:()=>za,printType:()=>vf,resolveObjMapThunk:()=>Qc,resolveReadonlyArrayThunk:()=>Kc,responsePathAsArray:()=>Rn,separateOperations:()=>yN,specifiedDirectives:()=>Zn,specifiedRules:()=>Cl,specifiedScalarTypes:()=>Ai,stripIgnoredCharacters:()=>TN,subscribe:()=>XT,syntaxError:()=>Jt,typeFromAST:()=>$t,validate:()=>Bl,validateSchema:()=>pu,valueFromAST:()=>fr,valueFromASTUntyped:()=>ta,version:()=>gb,versionInfo:()=>Ib,visit:()=>Ur,visitInParallel:()=>tu,visitWithTypeInfo:()=>da});var ie=j(()=>{"use strict";p();m();f();vb();yS();TS();NS();_S();DS();OS();eD()});var $r=L(P=>{"use strict";p();m();f();Object.defineProperty(P,"__esModule",{value:!0});P.OBJECT_UPPER=P.OPERATION_TO_DEFAULT=P.NAME=P.N_A=P.MUTATION_UPPER=P.MUTATION=P.KEY=P.LINK=P.INTERFACE_OBJECT=P.INTERFACE_UPPER=P.INT_SCALAR=P.INPUT_OBJECT_UPPER=P.INPUT_OBJECT=P.INPUT_FIELD_DEFINITION_UPPER=P.INPUT_FIELD=P.INLINE_FRAGMENT_UPPER=P.INLINE_FRAGMENT=P.INACCESSIBLE=P.FROM=P.FRAGMENT_SPREAD_UPPER=P.FRAGMENT_DEFINITION_UPPER=P.FLOAT_SCALAR=P.FIELD_DEFINITION_UPPER=P.FIELDS=P.FIELD_SET_SCALAR=P.FIELD_UPPER=P.FIELD=P.EXTENSIONS=P.EXTENDS=P.EXTERNAL=P.EVENTS_SUBSCRIBE=P.EVENTS_REQUEST=P.EVENTS_PUBLISH=P.ENUM_VALUE_UPPER=P.ENUM_UPPER=P.ENTITY_UNION=P.ENTITIES_FIELD=P.ENTITIES=P.DIRECTIVE_DEFINITION=P.DEPRECATED_DEFAULT_ARGUMENT_VALUE=P.DEPRECATED=P.DEFAULT_SUBSCRIPTION=P.DEFAULT_QUERY=P.DEFAULT_MUTATION=P.COMPOSE_DIRECTIVE=P.BOOLEAN_SCALAR=P.ARGUMENT_DEFINITION_UPPER=P.AUTHENTICATED=P.ARGUMENT=P.ANY_SCALAR=void 0;P.ROOT_TYPES=P.IGNORED_PARENT_DIRECTIVES=P.EXECUTABLE_DIRECTIVE_LOCATIONS=P.VARIABLE_DEFINITION_UPPER=P.URL_LOWER=P.UNION_UPPER=P.UNION=P.TOPIC=P.TAG=P.SUBSCRIPTION_UPPER=P.SUBSCRIPTION=P.STRING_SCALAR=P.SPECIFIED_BY=P.SOURCE_ID=P.SHAREABLE=P.SERVICE_FIELD=P.SERVICE_OBJECT=P.SELECTION_REPRESENTATION=P.SCOPE_SCALAR=P.SCOPES=P.SCHEMA_UPPER=P.SCHEMA=P.SCALAR_UPPER=P.RESOLVABLE=P.REQUIRES_SCOPES=P.REQUIRES=P.REASON=P.QUOTATION_JOIN=P.QUERY_UPPER=P.QUERY=P.PROVIDES=P.PARENT_EXTENSION_DATA_MAP=P.PARENT_DEFINITION_DATA_MAP=P.PARENTS=P.OVERRIDE=void 0;P.ANY_SCALAR="_Any";P.ARGUMENT="argument";P.AUTHENTICATED="authenticated";P.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";P.BOOLEAN_SCALAR="Boolean";P.COMPOSE_DIRECTIVE="composeDirective";P.DEFAULT_MUTATION="Mutation";P.DEFAULT_QUERY="Query";P.DEFAULT_SUBSCRIPTION="Subscription";P.DEPRECATED="deprecated";P.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";P.DIRECTIVE_DEFINITION="directive definition";P.ENTITIES="entities";P.ENTITIES_FIELD="_entities";P.ENTITY_UNION="_Entity";P.ENUM_UPPER="ENUM";P.ENUM_VALUE_UPPER="ENUM_VALUE";P.EVENTS_PUBLISH="eventsPublish";P.EVENTS_REQUEST="eventsRequest";P.EVENTS_SUBSCRIBE="eventsSubscribe";P.EXTERNAL="external";P.EXTENDS="extends";P.EXTENSIONS="extensions";P.FIELD="field";P.FIELD_UPPER="FIELD";P.FIELD_SET_SCALAR="openfed__FieldSet";P.FIELDS="fields";P.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";P.FLOAT_SCALAR="Float";P.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";P.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";P.FROM="from";P.INACCESSIBLE="inaccessible";P.INLINE_FRAGMENT="inlineFragment";P.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";P.INPUT_FIELD="input field";P.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";P.INPUT_OBJECT="input object";P.INPUT_OBJECT_UPPER="INPUT_OBJECT";P.INT_SCALAR="Int";P.INTERFACE_UPPER="INTERFACE";P.INTERFACE_OBJECT="interfaceObject";P.LINK="link";P.KEY="key";P.MUTATION="Mutation";P.MUTATION_UPPER="MUTATION";P.N_A="N/A";P.NAME="name";P.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";P.OBJECT_UPPER="OBJECT";P.OVERRIDE="override";P.PARENTS="parents";P.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";P.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";P.PROVIDES="provides";P.QUERY="Query";P.QUERY_UPPER="QUERY";P.QUOTATION_JOIN='", "';P.REASON="reason";P.REQUIRES="requires";P.REQUIRES_SCOPES="requiresScopes";P.RESOLVABLE="resolvable";P.SCALAR_UPPER="SCALAR";P.SCHEMA="schema";P.SCHEMA_UPPER="SCHEMA";P.SCOPES="scopes";P.SCOPE_SCALAR="openfed__Scope";P.SELECTION_REPRESENTATION=" { ... }";P.SERVICE_OBJECT="_Service";P.SERVICE_FIELD="_service";P.SHAREABLE="shareable";P.SOURCE_ID="sourceID";P.SPECIFIED_BY="specifiedBy";P.STRING_SCALAR="String";P.SUBSCRIPTION="Subscription";P.SUBSCRIPTION_UPPER="SUBSCRIPTION";P.TAG="tag";P.TOPIC="topic";P.UNION="union";P.UNION_UPPER="UNION";P.URL_LOWER="url";P.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";P.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([P.FIELD_UPPER,P.FRAGMENT_DEFINITION_UPPER,P.FRAGMENT_SPREAD_UPPER,P.INLINE_FRAGMENT_UPPER,P.MUTATION_UPPER,P.QUERY_UPPER,P.SUBSCRIPTION_UPPER]);P.IGNORED_PARENT_DIRECTIVES=new Set([P.AUTHENTICATED,P.EXTENDS,P.REQUIRES_SCOPES]);P.ROOT_TYPES=new Set([P.MUTATION,P.QUERY,P.SUBSCRIPTION])});var fo=L(oe=>{"use strict";p();m();f();Object.defineProperty(oe,"__esModule",{value:!0});oe.addMapEntries=oe.isNodeKindInterface=oe.generateRequiresScopesDirective=oe.generateSimpleDirective=oe.setAndGetValue=oe.upsertAuthorizationConfiguration=oe.upsertAuthorizationData=oe.upsertFieldAuthorizationData=oe.mergeAuthorizationDataByAND=oe.maxOrScopes=oe.newAuthorizationData=oe.getAuthorizationDataToUpdate=oe.resetAuthorizationData=oe.newFieldAuthorizationData=oe.upsertEntityContainer=oe.upsertEntityContainerProperties=oe.newEntityContainer=oe.getValueOrDefault=oe.hasSimplePath=oe.upsertEntityInterfaceFederationData=oe.newEntityInterfaceFederationData=oe.kindToTypeString=oe.addSetsAndReturnMutationBoolean=oe.addIterableValuesToSet=oe.numberToOrdinal=oe.mapToArrayOfValues=oe.subtractSourceSetFromTargetSet=oe.doSetsHaveAnyOverlap=oe.getEntriesNotInHashSet=oe.getAllSetDisparities=oe.getOrThrowError=oe.getAllMutualEntries=oe.areSetsEqual=void 0;var Wt=(ie(),ae(de)),bf=$r(),kk=di(),IN=jr();function Mk(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}oe.areSetsEqual=Mk;function Uk(e,t){let n=new Set;for(let r of e)t.has(r)&&n.add(r);return n}oe.getAllMutualEntries=Uk;function Ck(e,t,n){let r=e.get(t);if(r===void 0)throw(0,kk.invalidKeyFatalError)(t,n);return r}oe.getOrThrowError=Ck;function Bk(e,t){let n=new Set(t),r=[];for(let i of e)n.delete(i)||r.push(i);for(let i of n)r.push(i);return r}oe.getAllSetDisparities=Bk;function Vk(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}oe.getEntriesNotInHashSet=Vk;function $k(e,t){for(let n of e)if(t.has(n))return!0;return!1}oe.doSetsHaveAnyOverlap=$k;function jk(e,t){for(let n of e)t.has(n)&&t.delete(n)}oe.subtractSourceSetFromTargetSet=jk;function Gk(e){let t=[];for(let n of e.values())t.push(n);return t}oe.mapToArrayOfValues=Gk;function qk(e){let t=e.toString();switch(t[t.length-1]){case"1":return`${t}st`;case"2":return`${t}nd`;case"3":return`${t}rd`;default:return`${t}th`}}oe.numberToOrdinal=qk;function ha(e,t){for(let n of e)t.add(n)}oe.addIterableValuesToSet=ha;function tD(e,t){let n=!1;for(let r of e)t.has(r)||(n=!0,t.add(r));return n}oe.addSetsAndReturnMutationBoolean=tD;function Kk(e){switch(e){case Wt.Kind.ENUM_TYPE_DEFINITION:return"enum";case Wt.Kind.ENUM_TYPE_EXTENSION:return"enum extension";case Wt.Kind.FIELD_DEFINITION:return bf.FIELD;case Wt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return"input object";case Wt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object extension";case Wt.Kind.INPUT_VALUE_DEFINITION:return"input value";case Wt.Kind.INTERFACE_TYPE_DEFINITION:return"interface";case Wt.Kind.INTERFACE_TYPE_EXTENSION:return"interface extension";case Wt.Kind.OBJECT_TYPE_DEFINITION:return"object";case Wt.Kind.OBJECT_TYPE_EXTENSION:return"object extension";case Wt.Kind.SCALAR_TYPE_DEFINITION:return"scalar";case Wt.Kind.SCALAR_TYPE_EXTENSION:return"scalar extension";case Wt.Kind.UNION_TYPE_DEFINITION:return bf.UNION;case Wt.Kind.UNION_TYPE_EXTENSION:return"union extension";default:return e}}oe.kindToTypeString=Kk;function Qk(e,t){return w({interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),typeName:e.typeName},e.isInterfaceObject?{}:{concreteTypeNames:new Set(e.concreteTypeNames)})}oe.newEntityInterfaceFederationData=Qk;function Yk(e,t,n){return ha(t.interfaceFieldNames,e.interfaceFieldNames),ha(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject?(e.interfaceObjectSubgraphs.add(n),!1):e.concreteTypeNames?tD(t.concreteTypeNames||new Set,e.concreteTypeNames):(e.concreteTypeNames=new Set(t.concreteTypeNames),!1)}oe.upsertEntityInterfaceFederationData=Yk;var vN=class{constructor(t){S(this,"set",new Set);S(this,"stack",[]);this.push(t)}has(t){return this.set.has(t)}push(t){this.stack.push(t),this.set.add(t)}pop(){let t=this.stack.pop();t&&this.set.delete(t)}};function Jk(e,t,n){if(!e.hasNode(t)||!e.hasNode(n))return!1;let r=[e.outboundNeighbors(t)],i=new vN(t),o,s;for(;r.length>0;){if(o=r[r.length-1],s=o.pop(),!s){r.pop();continue}if(i.has(s))continue;if(s===n)return!0;i.push(s);let a=e.outboundNeighbors(s);a.length<0||r.push(a)}return!1}oe.hasSimplePath=Jk;function nD(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}oe.getValueOrDefault=nD;function rD(e){return{fieldNames:new Set(e.fieldNames),keyFieldSets:new Set(e.keyFieldSets),subgraphNames:new Set(e.subgraphNames),typeName:e.typeName}}oe.newEntityContainer=rD;function iD(e,t){ha(e.fieldNames||[],t.fieldNames),ha(e.keyFieldSets||[],t.keyFieldSets),ha(e.subgraphNames||[],t.subgraphNames)}function zk(e,t){let n=e.get(t.typeName);n?iD(t,n):e.set(t.typeName,rD(t))}oe.upsertEntityContainerProperties=zk;function Wk(e,t){let n=e.get(t.typeName);n?iD(t,n):e.set(t.typeName,t)}oe.upsertEntityContainer=Wk;function _N(e){return{fieldName:e,requiresAuthentication:!1,requiredScopes:[]}}oe.newFieldAuthorizationData=_N;function Hk(e){e&&(e.requiresAuthentication=!1,e.requiredScopes=[],e.hasParentLevelAuthorization=!1)}oe.resetAuthorizationData=Hk;function Xk(e,t,n){return t.kind===Wt.Kind.FIELD_DEFINITION?nD(e.fieldAuthorizationDataByFieldName,n,()=>_N(n)):(e.hasParentLevelAuthorization=!0,e)}oe.getAuthorizationDataToUpdate=Xk;function Zk(e){return{fieldAuthorizationDataByFieldName:new Map,hasParentLevelAuthorization:!1,requiresAuthentication:!1,requiredScopes:[],typeName:e}}oe.newAuthorizationData=Zk;oe.maxOrScopes=16;function oD(e,t){t.requiresAuthentication||(t.requiresAuthentication=e.requiresAuthentication);let n=e.requiredScopes.length;if(n<1)return!0;let r=t.requiredScopes.length;if(r<1){if(n>oe.maxOrScopes)return!1;for(let o of e.requiredScopes)t.requiredScopes.push(new Set(o));return!0}if(n*r>oe.maxOrScopes)return!1;let i=[];for(let o of t.requiredScopes)for(let s of e.requiredScopes){let a=new Set(o);ha(s,a),i.push(a)}return t.requiredScopes=i,!0}oe.mergeAuthorizationDataByAND=oD;function sD(e,t){let n=t.fieldName,r=e.get(n);if(!r){if(t.requiredScopes.length>oe.maxOrScopes)return!1;let i=_N(n);i.requiresAuthentication||(i.requiresAuthentication=t.requiresAuthentication);for(let o of t.requiredScopes)i.requiredScopes.push(new Set(o));return e.set(n,i),!0}return r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),oD(t,r)}oe.upsertFieldAuthorizationData=sD;function eM(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,t);return}for(let[i,o]of t.fieldAuthorizationDataByFieldName)sD(r.fieldAuthorizationDataByFieldName,o)||n.add(`${t.typeName}.${i}`)}oe.upsertAuthorizationData=eM;function tM(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthorizationDataByFieldName){let o=`${n}.${r}`,s=e.get(o);s?(s.requiresAuthentication=i.requiresAuthentication,s.requiredScopes=i.requiredScopes.map(a=>[...a])):e.set(o,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.requiresAuthentication,requiredScopes:i.requiredScopes.map(a=>[...a])})}}oe.upsertAuthorizationConfiguration=tM;function nM(e,t,n){return e.set(t,n),n}oe.setAndGetValue=nM;function rM(e){return{kind:Wt.Kind.DIRECTIVE,name:(0,IN.stringToNameNode)(e)}}oe.generateSimpleDirective=rM;function iM(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Wt.Kind.STRING,value:i});t.push({kind:Wt.Kind.LIST,values:r})}return{kind:Wt.Kind.DIRECTIVE,name:(0,IN.stringToNameNode)(bf.REQUIRES_SCOPES),arguments:[{kind:Wt.Kind.ARGUMENT,name:(0,IN.stringToNameNode)(bf.SCOPES),value:{kind:Wt.Kind.LIST,values:t}}]}}oe.generateRequiresScopesDirective=iM;function oM(e){return e===Wt.Kind.INTERFACE_TYPE_DEFINITION||e===Wt.Kind.INTERFACE_TYPE_EXTENSION}oe.isNodeKindInterface=oM;function sM(e,t){for(let[n,r]of e)t.set(n,r)}oe.addMapEntries=sM});var di=L(k=>{"use strict";p();m();f();Object.defineProperty(k,"__esModule",{value:!0});k.invalidSubgraphNameErrorMessage=k.subgraphValidationFailureError=k.subgraphValidationError=k.unexpectedParentKindErrorMessage=k.invalidConfigurationResultFatalError=k.invalidKeyFatalError=k.unexpectedTypeNodeKindFatalError=k.unexpectedDirectiveLocationError=k.fieldTypeMergeFatalError=k.incompatibleParentKindFatalError=k.unexpectedKindFatalError=k.maximumTypeNestingExceededFatalError=k.invalidKeyDirectivesError=k.invalidKeyDirectiveArgumentErrorMessage=k.invalidDirectiveArgumentTypeErrorMessage=k.duplicateDirectiveArgumentDefinitionErrorMessage=k.unexpectedDirectiveArgumentErrorMessage=k.undefinedRequiredArgumentsErrorMessage=k.unexpectedDirectiveArgumentsErrorMessage=k.invalidDirectiveLocationErrorMessage=k.invalidDirectiveError=k.duplicateUnionMemberError=k.invalidRepeatedFederatedDirectiveErrorMessage=k.invalidRepeatedDirectiveErrorMessage=k.federationRequiredInputFieldError=k.undefinedTypeError=k.unresolvableFieldError=k.undefinedDirectiveErrorMessage=k.invalidFieldShareabilityError=k.operationDefinitionError=k.noDefinedUnionMembersError=k.noBaseTypeExtensionError=k.duplicateOperationTypeDefinitionError=k.duplicateTypeDefinitionError=k.duplicateValueExtensionError=k.duplicateUnionMemberExtensionError=k.duplicateInterfaceError=k.duplicateInterfaceExtensionError=k.duplicateEnumValueDefinitionError=k.duplicateDirectiveDefinitionError=k.duplicateFieldDefinitionError=k.invalidSubgraphNamesError=k.incompatibleExtensionKindsError=k.incompatibleSharedEnumError=k.incompatibleInputValueDefaultValuesError=k.incompatibleChildTypesError=k.incompatibleInputValueDefaultValueTypeError=k.incompatibleArgumentTypesError=k.incompatibleExtensionError=k.minimumSubgraphRequirementError=void 0;k.orScopesLimitError=k.undefinedEntityInterfaceImplementationsError=k.equivalentSourceAndTargetOverrideErrorMessage=k.allFieldDefinitionsAreInaccessibleError=k.noFieldDefinitionsError=k.duplicateOverriddenFieldsError=k.duplicateOverriddenFieldErrorMessage=k.invalidSelectionOnUnionErrorMessage=k.invalidInlineFragmentTypeConditionErrorMessage=k.invalidInlineFragmentTypeConditionTypeErrorMessage=k.unknownInlineFragmentTypeConditionErrorMessage=k.inlineFragmentWithoutTypeConditionErrorMessage=k.invalidInlineFragmentTypeErrorMessage=k.unknownProvidesEntityErrorMessage=k.duplicateFieldInFieldSetErrorMessage=k.invalidProvidesOrRequiresDirectivesError=k.argumentsInKeyFieldSetErrorMessage=k.unexpectedArgumentErrorMessage=k.undefinedObjectLikeParentError=k.unparsableFieldSetSelectionErrorMessage=k.unparsableFieldSetErrorMessage=k.undefinedFieldInFieldSetErrorMessage=k.invalidSelectionSetDefinitionErrorMessage=k.invalidSelectionSetErrorMessage=k.unknownTypeInFieldSetErrorMessage=k.abstractTypeInKeyFieldSetErrorMessage=k.inlineFragmentInFieldSetErrorMessage=k.expectedEntityError=k.noConcreteTypesForAbstractTypeError=k.unexpectedObjectResponseType=k.noQueryRootTypeError=k.invalidArgumentsError=k.duplicateArgumentsError=k.invalidRequiredInputValueError=k.unimplementedInterfaceFieldsError=k.subgraphInvalidSyntaxError=k.invalidRootTypeDefinitionError=k.invalidOperationTypeDefinitionError=void 0;var aM=jr(),uM=(ie(),ae(de)),Wl=fo(),Lr=$r();k.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function cM(e,t,n){return new Error(`Extension error: Incompatible types: "${e}" is type "${t}", but an extension of the same name is type "${n}.`)}k.incompatibleExtensionError=cM;function lM(e,t,n,r){return new Error(`Incompatible types when merging two instances of argument "${e}" on path "${t}": Expected type "${n}" but received "${r}"`)}k.incompatibleArgumentTypesError=lM;function dM(e,t,n,r){return new Error(`The ${e} of type "${n}" defined on path "${t}" is incompatible with the default value of "${r}".`)}k.incompatibleInputValueDefaultValueTypeError=dM;function pM(e,t,n){return new Error(`Incompatible types when merging two instances of "${e}": Expected type "${t}" but received "${n}"`)}k.incompatibleChildTypesError=pM;function fM(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". "However, the default value "${i}" is defined in the following subgraph`+(n.length>1?"s":"")+`: - "`+n.join(Rr.QUOTATION_JOIN)+`" + "`+n.join(Lr.QUOTATION_JOIN)+`" If an instance defines a default value, that default value must be consistently defined across all subgraphs.`)}k.incompatibleInputValueDefaultValuesError=fM;function mM(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs.`)}k.incompatibleSharedEnumError=mM;function hM(e,t){let n=e.kind===uM.Kind.SCHEMA_EXTENSION?"schema":e.name.value;return new Error(`Expected extension "${n}" to be type ${t} but received ${e.kind}.`)}k.incompatibleExtensionKindsError=hM;function yM(e,t){let n="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(n+=` The following subgraph names are not unique: "`+e.join('", "')+'"');for(let r of t)n+=` @@ -196,27 +196,27 @@ If an instance defines a default value, that default value must be consistently Could not extend the type "${e}" because no base definition exists.`)}k.noBaseTypeExtensionError=DM;function OM(e,t=!1){return new Error("The union "+(t?"extension":"")+` "${e}" must define at least one union member.`)}k.noDefinedUnionMembersError=OM;function AM(e,t,n){return new Error(`Expected the response type "${e}" for operation "${t}" to be type object but received "${n}.`)}k.operationDefinitionError=AM;function wM(e,t){let n=e.name,r=[];for(let[i,o]of e.fieldDataByFieldName){if(!t.has(i))continue;let s=[],a=[];for(let[u,c]of o.isShareableBySubgraphName)c?s.push(u):a.push(u);s.length<1?r.push(` The field "${i}" is defined in the following subgraphs: "${[...o.subgraphNames].join('", "')}". However, it is not declared "@shareable" in any of them.`):r.push(` - The field "${i}" is defined and declared "@shareable" in the following subgraph`+(s.length>1?"s":"")+': "'+s.join(Rr.QUOTATION_JOIN)+`". - However, it is not declared "@shareable" in the following subgraph`+(a.length>1?"s":"")+`: "${a.join(Rr.QUOTATION_JOIN)}".`)}return new Error(`The object "${n}" defines the same fields in multiple subgraphs without the "@shareable" directive:${r.join(` -`)}`)}k.invalidFieldShareabilityError=wM;function FM(e,t){return`The directive "${e}" is declared on "${t}", but the directive is not defined in the schema.`}k.undefinedDirectiveErrorMessage=FM;function RM(e,t,n,r,i){let o=`${i}.${t}`;return new Error(`The path "${r}" cannot be resolved because: - The root type field "${e.path}" is defined in the following subgraph`+(e.subgraphs.size>1?"s":"")+': "'+[...e.subgraphs].join(Rr.QUOTATION_JOIN)+`". + The field "${i}" is defined and declared "@shareable" in the following subgraph`+(s.length>1?"s":"")+': "'+s.join(Lr.QUOTATION_JOIN)+`". + However, it is not declared "@shareable" in the following subgraph`+(a.length>1?"s":"")+`: "${a.join(Lr.QUOTATION_JOIN)}".`)}return new Error(`The object "${n}" defines the same fields in multiple subgraphs without the "@shareable" directive:${r.join(` +`)}`)}k.invalidFieldShareabilityError=wM;function FM(e,t){return`The directive "${e}" is declared on "${t}", but the directive is not defined in the schema.`}k.undefinedDirectiveErrorMessage=FM;function LM(e,t,n,r,i){let o=`${i}.${t}`;return new Error(`The path "${r}" cannot be resolved because: + The root type field "${e.path}" is defined in the following subgraph`+(e.subgraphs.size>1?"s":"")+': "'+[...e.subgraphs].join(Lr.QUOTATION_JOIN)+`". However, "${o}" is only defined in the following subgraph`+(n.length>1?"s":"")+': "'+n+`". Consequently, "${o}" cannot be resolved through the root type field "${e.path}". Potential solutions: Convert "${i}" into an entity using the "@key" directive. - Add the shareable root type field "${e.path}" to `+(n.length>1?"one of the following subgraphs":"the following subgraph")+': "'+n.join(Rr.QUOTATION_JOIN)+`". + Add the shareable root type field "${e.path}" to `+(n.length>1?"one of the following subgraphs":"the following subgraph")+': "'+n.join(Lr.QUOTATION_JOIN)+`". For example (note that V1 fields are shareable by default and do not require a directive): type ${e.typeName} { ... ${e.fieldName}: ${e.fieldTypeNodeString} @shareable - }`)}k.unresolvableFieldError=RM;function LM(e){return new Error(`The type "${e}" was referenced in the schema, but it was never defined.`)}k.undefinedTypeError=LM;var PM=(e,t)=>new Error(`Input object field "${e}.${t}" is required in at least one subgraph; consequently, "${t}" must be defined in all subgraphs that also define "${e}".`);k.federationRequiredInputFieldError=PM;function xM(e,t){return`The definition for the directive "${e}" does not define it as repeatable, but the same directive is declared more than once on type "${t}".`}k.invalidRepeatedDirectiveErrorMessage=xM;function kM(e,t){return new Error(`The definition for the directive "${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}k.invalidRepeatedFederatedDirectiveErrorMessage=kM;function MM(e,t){return new Error(`Member "${e}" must only be defined on union "${t}" once.`)}k.duplicateUnionMemberError=MM;function UM(e,t,n){return new Error(`The directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?`s: + }`)}k.unresolvableFieldError=LM;function RM(e){return new Error(`The type "${e}" was referenced in the schema, but it was never defined.`)}k.undefinedTypeError=RM;var PM=(e,t)=>new Error(`Input object field "${e}.${t}" is required in at least one subgraph; consequently, "${t}" must be defined in all subgraphs that also define "${e}".`);k.federationRequiredInputFieldError=PM;function xM(e,t){return`The definition for the directive "${e}" does not define it as repeatable, but the same directive is declared more than once on type "${t}".`}k.invalidRepeatedDirectiveErrorMessage=xM;function kM(e,t){return new Error(`The definition for the directive "${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}k.invalidRepeatedFederatedDirectiveErrorMessage=kM;function MM(e,t){return new Error(`Member "${e}" must only be defined on union "${t}" once.`)}k.duplicateUnionMemberError=MM;function UM(e,t,n){return new Error(`The directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?`s: `:`: `)+n.join(` `))}k.invalidDirectiveError=UM;function CM(e,t,n){return` "${e}" is type "${t}", but the directive "${n}" does not define "${(0,aM.nodeKindToDirectiveLocation)(t)}" as a valid location.`}k.invalidDirectiveLocationErrorMessage=CM;function BM(e,t){var i;let n=e.name.value,r=((i=e.arguments)==null?void 0:i.length)||1;return` The definition for the directive "${n}" does not define any arguments. However, the same directive declared on "${t}" defines ${r} argument`+(r>1?"s.":".")}k.unexpectedDirectiveArgumentsErrorMessage=BM;function VM(e,t,n,r=[]){return` The definition for the directive "${e}" defines the following `+n.length+" required argument"+(n.length>1?"s: ":": ")+'"'+n.join('", "')+`". However, the same directive that is declared on "${t}" does not define`+(r.length>0?` the following required arguments: "${r.join('", "')}"`:" any arguments.")}k.undefinedRequiredArgumentsErrorMessage=VM;function $M(e,t){return` The definition for the directive "${e}" does not define an argument named "${t}".`}k.unexpectedDirectiveArgumentErrorMessage=$M;function jM(e,t,n){return` The directive "${e}" that is declared on "${t}" defines the argument named "${n}" more than once.`}k.duplicateDirectiveArgumentDefinitionErrorMessage=jM;function GM(e,t,n,r){return` The ${e?"required ":""}argument "${t} must be type "${n}" and not type "${r}".`}k.invalidDirectiveArgumentTypeErrorMessage=GM;function qM(e){return` The required argument named "fields" must be type "String" and not type "${e}".`}k.invalidKeyDirectiveArgumentErrorMessage=qM;function KM(e,t){return new Error(`The entity "${e}" defines the following invalid "key" directive`+(t.length>1?"s":"")+`: `+t.join(` -`))}k.invalidKeyDirectivesError=KM;function QM(e,t){return new Error(`Fatal: The type defined at path "${e}" has more than ${t} layers of nesting, or there is a cyclical error.`)}k.maximumTypeNestingExceededFatalError=QM;function YM(e){return new Error(`Fatal: Unexpected type for "${e}"`)}k.unexpectedKindFatalError=YM;function JM(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,Wl.kindToTypeString)(t)} but received "${(0,Wl.kindToTypeString)(n)}".`)}k.incompatibleParentKindFatalError=JM;function zM(e){return new Error(`Fatal: Unsuccessfully merged the cross-subgraph types of field "${e}" without producing a type error object.`)}k.fieldTypeMergeFatalError=zM;function WM(e){return new Error(`Fatal: Unknown directive location "${e}".`)}k.unexpectedDirectiveLocationError=WM;function XM(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}k.unexpectedTypeNodeKindFatalError=XM;function HM(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}k.invalidKeyFatalError=HM;function ZM(e){return new Error(`Fatal: Expected either errors or configurations for the path ${e}" but received neither".`)}k.invalidConfigurationResultFatalError=ZM;function eU(e,t,n){return` Expected "${e}" to be type ${t} but received "${n}".`}k.unexpectedParentKindErrorMessage=eU;function tU(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: +`))}k.invalidKeyDirectivesError=KM;function QM(e,t){return new Error(`Fatal: The type defined at path "${e}" has more than ${t} layers of nesting, or there is a cyclical error.`)}k.maximumTypeNestingExceededFatalError=QM;function YM(e){return new Error(`Fatal: Unexpected type for "${e}"`)}k.unexpectedKindFatalError=YM;function JM(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,Wl.kindToTypeString)(t)} but received "${(0,Wl.kindToTypeString)(n)}".`)}k.incompatibleParentKindFatalError=JM;function zM(e){return new Error(`Fatal: Unsuccessfully merged the cross-subgraph types of field "${e}" without producing a type error object.`)}k.fieldTypeMergeFatalError=zM;function WM(e){return new Error(`Fatal: Unknown directive location "${e}".`)}k.unexpectedDirectiveLocationError=WM;function HM(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}k.unexpectedTypeNodeKindFatalError=HM;function XM(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}k.invalidKeyFatalError=XM;function ZM(e){return new Error(`Fatal: Expected either errors or configurations for the path ${e}" but received neither".`)}k.invalidConfigurationResultFatalError=ZM;function eU(e,t,n){return` Expected "${e}" to be type ${t} but received "${n}".`}k.unexpectedParentKindErrorMessage=eU;function tU(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: `+t.map(n=>n.message).join(` `))}k.subgraphValidationError=tU;k.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");function nU(e,t){return`The ${(0,Wl.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}k.invalidSubgraphNameErrorMessage=nU;function rU(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${n}" operation. If explicitly defined, each operation type must be a unique and valid Object type.`)}k.invalidOperationTypeDefinitionError=rU;function iU(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${n}", which is the default (root) type name for the "${e}" operation. @@ -231,7 +231,7 @@ For federation, it is only possible to use the default root types names ("Mutati `,s+=" The following additional argument"+(c.invalidAdditionalArguments.size>1?"s are":" is")+' not defined as optional: "'+[...c.invalidAdditionalArguments].join('", "')+`" `),c.implementedResponseType&&(s+=` The implemented response type "${c.implementedResponseType}" is not a valid subset (equally or more restrictive) of the response type "`+c.originalResponseType+`" for "${i}.${u}".`)}r.push(s)}return new Error(`The ${t} "${e}" has the following interface implementation errors: `+r.join(` -`))}k.unimplementedInterfaceFieldsError=sU;function aU(e,t,n,r=!0){let i=r?Rr.ARGUMENT:Rr.INPUT_FIELD,o=`The ${e} "${t}" could not be federated because: +`))}k.unimplementedInterfaceFieldsError=sU;function aU(e,t,n,r=!0){let i=r?Lr.ARGUMENT:Lr.INPUT_FIELD,o=`The ${e} "${t}" could not be federated because: `;for(let s of n)o+=` The ${i} "${s.inputValueName}" is required in the following subgraph`+(s.requiredSubgraphs.length>1?"s":"")+': "'+s.requiredSubgraphs.join('", "')+`" However, the ${i} "${s.inputValueName}" is not defined in the following subgraph`+(s.missingSubgraphs.length>1?"s":"")+': "'+s.missingSubgraphs.join('", "')+`" If an ${i} is required on a ${e} in any one subgraph, it must be at least defined as optional on all other definitions of that ${e} in all other subgraphs. @@ -244,7 +244,7 @@ For federation, it is only possible to use the default root types names ("Mutati For example: type Query { dummy: String - }`);function lU(e,t){return new Error(`Expected the path "${e}" to have the response type Enum, Interface, Object, Scalar, or Union but received ${t}.`)}k.unexpectedObjectResponseType=lU;function dU(e,t){return new Error(`Expected ${e} "${t}" to define at least one `+(e===Rr.UNION?"member":"object that implements the interface")+" but received none")}k.noConcreteTypesForAbstractTypeError=dU;function pU(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}k.expectedEntityError=pU;k.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a FieldSet argument.";function fU(e,t,n,r){return` The following FieldSet is invalid: + }`);function lU(e,t){return new Error(`Expected the path "${e}" to have the response type Enum, Interface, Object, Scalar, or Union but received ${t}.`)}k.unexpectedObjectResponseType=lU;function dU(e,t){return new Error(`Expected ${e} "${t}" to define at least one `+(e===Lr.UNION?"member":"object that implements the interface")+" but received none")}k.noConcreteTypesForAbstractTypeError=dU;function pU(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}k.expectedEntityError=pU;k.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a FieldSet argument.";function fU(e,t,n,r){return` The following FieldSet is invalid: "${e}" This is because "${t}" returns "${n}", which is type "${r}". Fields that return abstract types (interfaces and unions) cannot be included in the FieldSet of "@key" directives.`}k.abstractTypeInKeyFieldSetErrorMessage=fU;function mU(e,t,n){return` The following FieldSet is invalid: @@ -286,62 +286,84 @@ For federation, it is only possible to use the default root types names ("Mutati However, either an "interface" or "object" type was expected.`}k.invalidInlineFragmentTypeConditionTypeErrorMessage=wU;function FU(e,t,n,r,i){let o=` The following FieldSet is invalid: "${e}" This is because "${t}" defines an inline fragment with the type condition "${n}". -`;return r==="interface"?o+` However, "${n}" does not implement "${i}"`:o+` However, "${n}" is not a member of the union "${i}".`}k.invalidInlineFragmentTypeConditionErrorMessage=FU;function RU(e,t,n){return` The following FieldSet is invalid: +`;return r==="interface"?o+` However, "${n}" does not implement "${i}"`:o+` However, "${n}" is not a member of the union "${i}".`}k.invalidInlineFragmentTypeConditionErrorMessage=FU;function LU(e,t,n){return` The following FieldSet is invalid: "${e}" This is because "${t}" returns "${n}", which is type "union". - Consequently, an inline fragment is required to make a selection on one of the union's members.`}k.invalidSelectionOnUnionErrorMessage=RU;function LU(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(Rr.QUOTATION_JOIN)+'".'}k.duplicateOverriddenFieldErrorMessage=LU;function PU(e){return new Error("The @override directive must only be declared on one single instance of a field. However, an @override directive was declared on more than one instance of the following field"+(e.length>1?"s":"")+': "'+e.join(Rr.QUOTATION_JOIN)+`". + Consequently, an inline fragment is required to make a selection on one of the union's members.`}k.invalidSelectionOnUnionErrorMessage=LU;function RU(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(Lr.QUOTATION_JOIN)+'".'}k.duplicateOverriddenFieldErrorMessage=RU;function PU(e){return new Error("The @override directive must only be declared on one single instance of a field. However, an @override directive was declared on more than one instance of the following field"+(e.length>1?"s":"")+': "'+e.join(Lr.QUOTATION_JOIN)+`". `)}k.duplicateOverriddenFieldsError=PU;function xU(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}k.noFieldDefinitionsError=xU;function kU(e,t){return new Error(`The ${e} "${t}" is invalid because all its field definitions are declared "@inaccessible".`)}k.allFieldDefinitionsAreInaccessibleError=kU;function MU(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}k.equivalentSourceAndTargetOverrideErrorMessage=MU;function UU(e,t){let n=`Federation was unsuccessful because any one subgraph that defines a specific entity interface must also define each and every entity object that implements that entity interface. `;for(let[r,i]of e){let s=(0,Wl.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entity object`+(s.size>1?"s":"")+`: - "`+Array.from(s).join(Rr.QUOTATION_JOIN)+`" + "`+Array.from(s).join(Lr.QUOTATION_JOIN)+`" However, the definition of at least one of these implementations is missing in a subgraph that defines the entity interface "${r}": -`;for(let{subgraphName:a,concreteTypeNames:u}of i){let c=(0,Wl.getEntriesNotInHashSet)(s,u);n+=` Subgraph "${a}" does not define the following implementations: "`+c.join(Rr.QUOTATION_JOIN)+`" +`;for(let{subgraphName:a,concreteTypeNames:u}of i){let c=(0,Wl.getEntriesNotInHashSet)(s,u);n+=` Subgraph "${a}" does not define the following implementations: "`+c.join(Lr.QUOTATION_JOIN)+`" `}}return new Error(n)}k.undefinedEntityInterfaceImplementationsError=UU;function CU(e,t){return new Error(`The maximum number of OR scopes that can be defined by @requiresScopes on a single field is ${e}. However, the following path`+(t.length>1?"s attempt":" attempts")+` to define more: - "`+t.join(Rr.QUOTATION_JOIN)+`" -If you require more, please contact support.`)}k.orScopesLimitError=CU});var jr=R(Ce=>{"use strict";p();m();f();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.safeParse=Ce.lexicographicallySortDocumentNode=Ce.lexicographicallySortSelectionSetNode=Ce.lexicographicallySortArgumentNodes=Ce.formatDescription=Ce.addConcreteTypesForUnion=Ce.addConcreteTypesForImplementedInterfaces=Ce.extractExecutableDirectiveLocations=Ce.isKindAbstract=Ce.operationTypeNodeToDefaultType=Ce.nodeKindToDirectiveLocation=Ce.setToNamedTypeNodeArray=Ce.stringToNamedTypeNode=Ce.setToNameNodeArray=Ce.stringArrayToNameNodeArray=Ce.stringToNameNode=Ce.areBaseAndExtensionKindsCompatible=Ce.extractInterfaces=Ce.isNodeExtension=Ce.isNodeInterfaceObject=Ce.isObjectLikeNodeEntity=void 0;var je=(ie(),ae(de)),cn=$r(),aD=di();function BU(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===cn.KEY)return!0;return!1}Ce.isObjectLikeNodeEntity=BU;function VU(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===cn.INTERFACE_OBJECT)return!0;return!1}Ce.isNodeInterfaceObject=VU;function $U(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===cn.EXTENDS)return!0;return!1}Ce.isNodeExtension=$U;function jU(e,t,n){if(!e.interfaces)return t;let r=e.name.value;for(let i of e.interfaces){let o=i.name.value;if(n&&t.has(o)){n.push((0,aD.duplicateInterfaceError)(o,r));continue}t.add(o)}return t}Ce.extractInterfaces=jU;function GU(e,t,n){switch(e){case je.Kind.ENUM_TYPE_DEFINITION:return t===je.Kind.ENUM_TYPE_EXTENSION;case je.Kind.INPUT_OBJECT_TYPE_DEFINITION:return t===je.Kind.INPUT_OBJECT_TYPE_EXTENSION;case je.Kind.INTERFACE_TYPE_DEFINITION:return t===je.Kind.INTERFACE_TYPE_EXTENSION;case je.Kind.OBJECT_TYPE_DEFINITION:return t===je.Kind.OBJECT_TYPE_EXTENSION;case je.Kind.SCALAR_TYPE_DEFINITION:return t===je.Kind.SCALAR_TYPE_EXTENSION;case je.Kind.UNION_TYPE_DEFINITION:return t===je.Kind.UNION_TYPE_EXTENSION;default:throw(0,aD.unexpectedKindFatalError)(n)}}Ce.areBaseAndExtensionKindsCompatible=GU;function Sf(e){return{kind:je.Kind.NAME,value:e}}Ce.stringToNameNode=Sf;function qU(e){let t=[];for(let n of e)t.push(Sf(n));return t}Ce.stringArrayToNameNodeArray=qU;function KU(e){let t=[];for(let n of e)t.push(Sf(n));return t}Ce.setToNameNodeArray=KU;function uD(e){return{kind:je.Kind.NAMED_TYPE,name:Sf(e)}}Ce.stringToNamedTypeNode=uD;function QU(e){let t=[];for(let n of e)t.push(uD(n));return t}Ce.setToNamedTypeNodeArray=QU;function YU(e){switch(e){case je.Kind.ARGUMENT:return cn.ARGUMENT_DEFINITION_UPPER;case je.Kind.ENUM_TYPE_DEFINITION:case je.Kind.ENUM_TYPE_EXTENSION:return cn.ENUM_UPPER;case je.Kind.ENUM_VALUE_DEFINITION:return cn.ENUM_VALUE_UPPER;case je.Kind.FIELD_DEFINITION:return cn.FIELD_DEFINITION_UPPER;case je.Kind.FRAGMENT_DEFINITION:return cn.FRAGMENT_DEFINITION_UPPER;case je.Kind.FRAGMENT_SPREAD:return cn.FRAGMENT_SPREAD_UPPER;case je.Kind.INLINE_FRAGMENT:return cn.INLINE_FRAGMENT_UPPER;case je.Kind.INPUT_VALUE_DEFINITION:return cn.INPUT_FIELD_DEFINITION_UPPER;case je.Kind.INPUT_OBJECT_TYPE_DEFINITION:case je.Kind.INPUT_OBJECT_TYPE_EXTENSION:return cn.INPUT_OBJECT_UPPER;case je.Kind.INTERFACE_TYPE_DEFINITION:case je.Kind.INTERFACE_TYPE_EXTENSION:return cn.INTERFACE_UPPER;case je.Kind.OBJECT_TYPE_DEFINITION:case je.Kind.OBJECT_TYPE_EXTENSION:return cn.OBJECT_UPPER;case je.Kind.SCALAR_TYPE_DEFINITION:case je.Kind.SCALAR_TYPE_EXTENSION:return cn.SCALAR_UPPER;case je.Kind.SCHEMA_DEFINITION:case je.Kind.SCHEMA_EXTENSION:return cn.SCHEMA_UPPER;case je.Kind.UNION_TYPE_DEFINITION:case je.Kind.UNION_TYPE_EXTENSION:return cn.UNION_UPPER;default:return e}}Ce.nodeKindToDirectiveLocation=YU;Ce.operationTypeNodeToDefaultType=new Map([[je.OperationTypeNode.MUTATION,cn.MUTATION],[je.OperationTypeNode.QUERY,cn.QUERY],[je.OperationTypeNode.SUBSCRIPTION,cn.SUBSCRIPTION]]);function JU(e){return e===je.Kind.INTERFACE_TYPE_DEFINITION||e===je.Kind.UNION_TYPE_DEFINITION}Ce.isKindAbstract=JU;function zU(e,t){for(let n of e){let r=n.value;cn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}Ce.extractExecutableDirectiveLocations=zU;function WU(e,t){if(!e.interfaces||e.interfaces.length<1)return;let n=e.name.value;for(let r of e.interfaces){let i=r.name.value,o=t.get(i);o?o.add(n):t.set(i,new Set([n]))}}Ce.addConcreteTypesForImplementedInterfaces=WU;function XU(e,t){if(!e.types||e.types.length<1)return;let n=e.name.value;for(let r of e.types){let i=r.name.value,o=t.get(n);o?o.add(i):t.set(n,new Set([i]))}}Ce.addConcreteTypesForUnion=XU;function HU(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` + "`+t.join(Lr.QUOTATION_JOIN)+`" +If you require more, please contact support.`)}k.orScopesLimitError=CU});var jr=L(Ce=>{"use strict";p();m();f();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.safeParse=Ce.lexicographicallySortDocumentNode=Ce.lexicographicallySortSelectionSetNode=Ce.lexicographicallySortArgumentNodes=Ce.formatDescription=Ce.addConcreteTypesForUnion=Ce.addConcreteTypesForImplementedInterfaces=Ce.extractExecutableDirectiveLocations=Ce.isKindAbstract=Ce.operationTypeNodeToDefaultType=Ce.nodeKindToDirectiveLocation=Ce.setToNamedTypeNodeArray=Ce.stringToNamedTypeNode=Ce.setToNameNodeArray=Ce.stringArrayToNameNodeArray=Ce.stringToNameNode=Ce.areBaseAndExtensionKindsCompatible=Ce.extractInterfaces=Ce.isNodeExtension=Ce.isNodeInterfaceObject=Ce.isObjectLikeNodeEntity=void 0;var je=(ie(),ae(de)),cn=$r(),aD=di();function BU(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===cn.KEY)return!0;return!1}Ce.isObjectLikeNodeEntity=BU;function VU(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===cn.INTERFACE_OBJECT)return!0;return!1}Ce.isNodeInterfaceObject=VU;function $U(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===cn.EXTENDS)return!0;return!1}Ce.isNodeExtension=$U;function jU(e,t,n){if(!e.interfaces)return t;let r=e.name.value;for(let i of e.interfaces){let o=i.name.value;if(n&&t.has(o)){n.push((0,aD.duplicateInterfaceError)(o,r));continue}t.add(o)}return t}Ce.extractInterfaces=jU;function GU(e,t,n){switch(e){case je.Kind.ENUM_TYPE_DEFINITION:return t===je.Kind.ENUM_TYPE_EXTENSION;case je.Kind.INPUT_OBJECT_TYPE_DEFINITION:return t===je.Kind.INPUT_OBJECT_TYPE_EXTENSION;case je.Kind.INTERFACE_TYPE_DEFINITION:return t===je.Kind.INTERFACE_TYPE_EXTENSION;case je.Kind.OBJECT_TYPE_DEFINITION:return t===je.Kind.OBJECT_TYPE_EXTENSION;case je.Kind.SCALAR_TYPE_DEFINITION:return t===je.Kind.SCALAR_TYPE_EXTENSION;case je.Kind.UNION_TYPE_DEFINITION:return t===je.Kind.UNION_TYPE_EXTENSION;default:throw(0,aD.unexpectedKindFatalError)(n)}}Ce.areBaseAndExtensionKindsCompatible=GU;function Sf(e){return{kind:je.Kind.NAME,value:e}}Ce.stringToNameNode=Sf;function qU(e){let t=[];for(let n of e)t.push(Sf(n));return t}Ce.stringArrayToNameNodeArray=qU;function KU(e){let t=[];for(let n of e)t.push(Sf(n));return t}Ce.setToNameNodeArray=KU;function uD(e){return{kind:je.Kind.NAMED_TYPE,name:Sf(e)}}Ce.stringToNamedTypeNode=uD;function QU(e){let t=[];for(let n of e)t.push(uD(n));return t}Ce.setToNamedTypeNodeArray=QU;function YU(e){switch(e){case je.Kind.ARGUMENT:return cn.ARGUMENT_DEFINITION_UPPER;case je.Kind.ENUM_TYPE_DEFINITION:case je.Kind.ENUM_TYPE_EXTENSION:return cn.ENUM_UPPER;case je.Kind.ENUM_VALUE_DEFINITION:return cn.ENUM_VALUE_UPPER;case je.Kind.FIELD_DEFINITION:return cn.FIELD_DEFINITION_UPPER;case je.Kind.FRAGMENT_DEFINITION:return cn.FRAGMENT_DEFINITION_UPPER;case je.Kind.FRAGMENT_SPREAD:return cn.FRAGMENT_SPREAD_UPPER;case je.Kind.INLINE_FRAGMENT:return cn.INLINE_FRAGMENT_UPPER;case je.Kind.INPUT_VALUE_DEFINITION:return cn.INPUT_FIELD_DEFINITION_UPPER;case je.Kind.INPUT_OBJECT_TYPE_DEFINITION:case je.Kind.INPUT_OBJECT_TYPE_EXTENSION:return cn.INPUT_OBJECT_UPPER;case je.Kind.INTERFACE_TYPE_DEFINITION:case je.Kind.INTERFACE_TYPE_EXTENSION:return cn.INTERFACE_UPPER;case je.Kind.OBJECT_TYPE_DEFINITION:case je.Kind.OBJECT_TYPE_EXTENSION:return cn.OBJECT_UPPER;case je.Kind.SCALAR_TYPE_DEFINITION:case je.Kind.SCALAR_TYPE_EXTENSION:return cn.SCALAR_UPPER;case je.Kind.SCHEMA_DEFINITION:case je.Kind.SCHEMA_EXTENSION:return cn.SCHEMA_UPPER;case je.Kind.UNION_TYPE_DEFINITION:case je.Kind.UNION_TYPE_EXTENSION:return cn.UNION_UPPER;default:return e}}Ce.nodeKindToDirectiveLocation=YU;Ce.operationTypeNodeToDefaultType=new Map([[je.OperationTypeNode.MUTATION,cn.MUTATION],[je.OperationTypeNode.QUERY,cn.QUERY],[je.OperationTypeNode.SUBSCRIPTION,cn.SUBSCRIPTION]]);function JU(e){return e===je.Kind.INTERFACE_TYPE_DEFINITION||e===je.Kind.UNION_TYPE_DEFINITION}Ce.isKindAbstract=JU;function zU(e,t){for(let n of e){let r=n.value;cn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}Ce.extractExecutableDirectiveLocations=zU;function WU(e,t){if(!e.interfaces||e.interfaces.length<1)return;let n=e.name.value;for(let r of e.interfaces){let i=r.name.value,o=t.get(i);o?o.add(n):t.set(i,new Set([n]))}}Ce.addConcreteTypesForImplementedInterfaces=WU;function HU(e,t){if(!e.types||e.types.length<1)return;let n=e.name.value;for(let r of e.types){let i=r.name.value,o=t.get(n);o?o.add(i):t.set(n,new Set([i]))}}Ce.addConcreteTypesForUnion=HU;function XU(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` `);n.length>1&&(t=n.map(r=>r.trimStart()).join(` -`))}return U(w({},e),{value:t,block:!0})}Ce.formatDescription=HU;function cD(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}Ce.lexicographicallySortArgumentNodes=cD;function bN(e){let t=e.selections;return U(w({},e),{selections:t.sort((n,r)=>n.name.value.localeCompare(r.name.value)).map(n=>U(w({},n),{arguments:cD(n),selectionSet:n.selectionSet?bN(n.selectionSet):n.selectionSet}))})}Ce.lexicographicallySortSelectionSetNode=bN;function ZU(e){return U(w({},e),{definitions:e.definitions.map(t=>t.kind!==je.Kind.OPERATION_DEFINITION?t:U(w({},t),{selectionSet:bN(t.selectionSet)}))})}Ce.lexicographicallySortDocumentNode=ZU;function eC(e){try{return{documentNode:(0,je.parse)(e)}}catch(t){return{error:t}}}Ce.safeParse=eC});var Ss=R(Ke=>{"use strict";p();m();f();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.INHERITABLE_DIRECTIVE_NAMES=Ke.MAXIMUM_TYPE_NESTING=Ke.SCOPE_SCALAR_DEFINITION=Ke.FIELD_SET_SCALAR_DEFINITION=Ke.VERSION_TWO_DIRECTIVE_DEFINITIONS=Ke.BASE_DIRECTIVE_DEFINITIONS=Ke.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Ke.REQUIRES_SCOPES_DEFINITION=Ke.INACCESSIBLE_DEFINITION=Ke.AUTHENTICATED_DEFINITION=Ke.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Ke.TAG_DEFINITION=Ke.DEPRECATED_DEFINITION=Ke.BASE_SCALARS=void 0;var Te=(ie(),ae(de)),te=jr(),$=$r();Ke.BASE_SCALARS=new Set(["_Any","_Entities","Boolean","Float","ID","Int",$.FIELD_SET_SCALAR,$.SCOPE_SCALAR,$.STRING_SCALAR]);Ke.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.REASON),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR),defaultValue:{kind:Te.Kind.STRING,value:"No longer supported"}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ARGUMENT_DEFINITION_UPPER,$.ENUM_VALUE_UPPER,$.FIELD_DEFINITION_UPPER,$.INPUT_FIELD_DEFINITION_UPPER]),name:(0,te.stringToNameNode)($.DEPRECATED),repeatable:!1};var lD={kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.INTERFACE_UPPER,$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.EXTENDS),repeatable:!1},dD={kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.FIELD_DEFINITION_UPPER,$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.EXTERNAL),repeatable:!1},pD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.TOPIC),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.SOURCE_ID),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.EVENTS_PUBLISH),repeatable:!1},fD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.TOPIC),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.SOURCE_ID),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.EVENTS_REQUEST),repeatable:!1},mD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.TOPIC),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.SOURCE_ID),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.EVENTS_SUBSCRIBE),repeatable:!1},hD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.FIELDS),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.FIELD_SET_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.RESOLVABLE),type:(0,te.stringToNamedTypeNode)($.BOOLEAN_SCALAR),defaultValue:{kind:Te.Kind.BOOLEAN,value:!0}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.INTERFACE_UPPER,$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.KEY),repeatable:!0},yD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.FIELDS),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.FIELD_SET_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.PROVIDES),repeatable:!1},TD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.FIELDS),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.FIELD_SET_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.REQUIRES),repeatable:!1},ND={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.URL_LOWER),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.SCALAR_UPPER]),name:(0,te.stringToNameNode)($.SPECIFIED_BY),repeatable:!1};Ke.TAG_DEFINITION={arguments:[{directives:[],kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.NAME),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ARGUMENT_DEFINITION_UPPER,$.ENUM_UPPER,$.ENUM_VALUE_UPPER,$.FIELD_DEFINITION_UPPER,$.INPUT_FIELD_DEFINITION_UPPER,$.INPUT_OBJECT_UPPER,$.INTERFACE_UPPER,$.OBJECT_UPPER,$.SCALAR_UPPER,$.UNION_UPPER]),name:(0,te.stringToNameNode)($.TAG),repeatable:!0};Ke.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[$.DEPRECATED,Ke.DEPRECATED_DEFINITION],[$.EXTENDS,lD],[$.EXTERNAL,dD],[$.EVENTS_PUBLISH,pD],[$.EVENTS_REQUEST,fD],[$.EVENTS_SUBSCRIBE,mD],[$.KEY,hD],[$.PROVIDES,yD],[$.REQUIRES,TD],[$.SPECIFIED_BY,ND],[$.TAG,Ke.TAG_DEFINITION]]);Ke.AUTHENTICATED_DEFINITION={arguments:[],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ENUM_UPPER,$.FIELD_DEFINITION_UPPER,$.INTERFACE_UPPER,$.OBJECT_UPPER,$.SCALAR_UPPER]),name:(0,te.stringToNameNode)($.AUTHENTICATED),repeatable:!1};var ED={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.NAME),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.SCHEMA_UPPER]),name:(0,te.stringToNameNode)($.COMPOSE_DIRECTIVE),repeatable:!0};Ke.INACCESSIBLE_DEFINITION={arguments:[],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ARGUMENT_DEFINITION_UPPER,$.ENUM_UPPER,$.ENUM_VALUE_UPPER,$.FIELD_DEFINITION_UPPER,$.INPUT_FIELD_DEFINITION_UPPER,$.INPUT_OBJECT_UPPER,$.INTERFACE_UPPER,$.OBJECT_UPPER,$.SCALAR_UPPER,$.UNION_UPPER]),name:(0,te.stringToNameNode)($.INACCESSIBLE),repeatable:!1};var gD={kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.INTERFACE_OBJECT),repeatable:!1},ID={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.URL_LOWER),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)("as"),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)("for"),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)("import"),type:{kind:Te.Kind.LIST_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.SCHEMA_UPPER]),name:(0,te.stringToNameNode)($.LINK),repeatable:!0},vD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.FROM),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.FIELD_DEFINITION_UPPER]),name:(0,te.stringToNameNode)($.OVERRIDE),repeatable:!1};Ke.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.SCOPES),type:{kind:Te.Kind.NON_NULL_TYPE,type:{kind:Te.Kind.LIST_TYPE,type:{kind:Te.Kind.NON_NULL_TYPE,type:{kind:Te.Kind.LIST_TYPE,type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.SCOPE_SCALAR)}}}}}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ENUM_UPPER,$.FIELD_DEFINITION_UPPER,$.INTERFACE_UPPER,$.OBJECT_UPPER,$.SCALAR_UPPER]),name:(0,te.stringToNameNode)($.REQUIRES_SCOPES),repeatable:!1};var _D={kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.FIELD_DEFINITION_UPPER,$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.SHAREABLE),repeatable:!1};Ke.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[$.AUTHENTICATED,Ke.AUTHENTICATED_DEFINITION],[$.COMPOSE_DIRECTIVE,ED],[$.INACCESSIBLE,Ke.INACCESSIBLE_DEFINITION],[$.INTERFACE_OBJECT,gD],[$.LINK,ID],[$.OVERRIDE,vD],[$.REQUIRES_SCOPES,Ke.REQUIRES_SCOPES_DEFINITION],[$.SHAREABLE,_D]]);Ke.BASE_DIRECTIVE_DEFINITIONS=[Ke.DEPRECATED_DEFINITION,lD,dD,pD,fD,mD,hD,yD,TD,ND,Ke.TAG_DEFINITION];Ke.VERSION_TWO_DIRECTIVE_DEFINITIONS=[Ke.AUTHENTICATED_DEFINITION,ED,Ke.INACCESSIBLE_DEFINITION,gD,ID,vD,Ke.REQUIRES_SCOPES_DEFINITION,_D];Ke.FIELD_SET_SCALAR_DEFINITION={kind:Te.Kind.SCALAR_TYPE_DEFINITION,name:(0,te.stringToNameNode)($.FIELD_SET_SCALAR)};Ke.SCOPE_SCALAR_DEFINITION={kind:Te.Kind.SCALAR_TYPE_DEFINITION,name:(0,te.stringToNameNode)($.SCOPE_SCALAR)};Ke.MAXIMUM_TYPE_NESTING=30;Ke.INHERITABLE_DIRECTIVE_NAMES=[$.EXTERNAL,$.SHAREABLE]});var Ds=R(Tt=>{"use strict";p();m();f();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getTypeNodeNamedTypeName=Tt.deepCopyTypeNode=Tt.getMutableUnionNode=Tt.getMutableTypeNode=Tt.getMutableScalarNode=Tt.getMutableObjectExtensionNode=Tt.getMutableObjectNode=Tt.getMutableInterfaceNode=Tt.getMutableInputValueNode=Tt.getMutableInputObjectNode=Tt.getMutableFieldNode=Tt.getMutableEnumValueNode=Tt.getMutableEnumNode=Tt.getMutableDirectiveDefinitionNode=void 0;var pi=(ie(),ae(de)),fi=jr(),SN=di(),Df=Ss();function tC(e){return{arguments:[],kind:e.kind,locations:[],name:w({},e.name),repeatable:e.repeatable,description:(0,fi.formatDescription)(e.description)}}Tt.getMutableDirectiveDefinitionNode=tC;function nC(e){var t;return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description),values:(t=e.values)==null?void 0:t.map(n=>bD(n))}}Tt.getMutableEnumNode=nC;function bD(e){return{directives:[],kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableEnumValueNode=bD;function rC(e,t){return{arguments:[],directives:[],kind:e.kind,name:w({},e.name),type:DN(e.type,t),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableFieldNode=rC;function iC(e){return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableInputObjectNode=iC;function oC(e,t){return{directives:[],kind:e.kind,name:w({},e.name),type:DN(e.type,t),defaultValue:e.defaultValue,description:(0,fi.formatDescription)(e.description)}}Tt.getMutableInputValueNode=oC;function sC(e){return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableInterfaceNode=sC;function aC(e){return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableObjectNode=aC;function uC(e){let t=e.kind===pi.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:pi.Kind.OBJECT_TYPE_EXTENSION,name:w({},e.name),description:(0,fi.formatDescription)(t)}}Tt.getMutableObjectExtensionNode=uC;function cC(e){return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableScalarNode=cC;function lC(e,t){let n={kind:e.kind},r=n;for(let i=0;iQD,__assign:()=>Of,__asyncDelegator:()=>CD,__asyncGenerator:()=>UD,__asyncValues:()=>BD,__await:()=>Su,__awaiter:()=>RD,__classPrivateFieldGet:()=>GD,__classPrivateFieldIn:()=>KD,__classPrivateFieldSet:()=>qD,__createBinding:()=>wf,__decorate:()=>AD,__disposeResources:()=>YD,__esDecorate:()=>pC,__exportStar:()=>PD,__extends:()=>DD,__generator:()=>LD,__importDefault:()=>jD,__importStar:()=>$D,__makeTemplateObject:()=>VD,__metadata:()=>FD,__param:()=>wD,__propKey:()=>mC,__read:()=>AN,__rest:()=>OD,__runInitializers:()=>fC,__setFunctionName:()=>hC,__spread:()=>xD,__spreadArray:()=>MD,__spreadArrays:()=>kD,__values:()=>Af,default:()=>NC});function DD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ON(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function OD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function wD(e,t){return function(n,r){t(n,r,e)}}function pC(e,t,n,r,i,o){function s(F){if(F!==void 0&&typeof F!="function")throw new TypeError("Function expected");return F}for(var a=r.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,h=!1,N=n.length-1;N>=0;N--){var E={};for(var D in r)E[D]=D==="access"?{}:r[D];for(var D in r.access)E.access[D]=r.access[D];E.addInitializer=function(F){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(F||null))};var A=(0,n[N])(a==="accessor"?{get:l.get,set:l.set}:l[u],E);if(a==="accessor"){if(A===void 0)continue;if(A===null||typeof A!="object")throw new TypeError("Object expected");(d=s(A.get))&&(l.get=d),(d=s(A.set))&&(l.set=d),(d=s(A.init))&&i.unshift(d)}else(d=s(A))&&(a==="field"?i.unshift(d):l[u]=d)}c&&Object.defineProperty(c,r.name,l),h=!0}function fC(e,t,n){for(var r=arguments.length>2,i=0;i0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function AN(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function xD(){for(var e=[],t=0;t1||a(h,N)})})}function a(h,N){try{u(r[h](N))}catch(E){d(o[0][3],E)}}function u(h){h.value instanceof Su?Promise.resolve(h.value.v).then(c,l):d(o[0][2],h)}function c(h){a("next",h)}function l(h){a("throw",h)}function d(h,N){h(N),o.shift(),o.length&&a(o[0][0],o[0][1])}}function CD(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(s){return(n=!n)?{value:Su(e[i](s)),done:!1}:o?o(s):s}:o}}function BD(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Af=="function"?Af(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}function VD(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function $D(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&wf(t,e,n);return yC(t,e),t}function jD(e){return e&&e.__esModule?e:{default:e}}function GD(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function qD(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function KD(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function QD(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function YD(e){function t(r){e.error=e.hasError?new TC(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(o){return t(o),n()})}catch(o){t(o)}}if(e.hasError)throw e.error}return n()}var ON,Of,wf,yC,TC,NC,FN=j(()=>{"use strict";p();m();f();ON=function(e,t){return ON=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ON(e,t)};Of=function(){return Of=Object.assign||function(t){for(var n,r=1,i=arguments.length;rm0,__assign:()=>Ff,__asyncDelegator:()=>s0,__asyncGenerator:()=>o0,__asyncValues:()=>a0,__await:()=>Du,__awaiter:()=>ZD,__classPrivateFieldGet:()=>d0,__classPrivateFieldIn:()=>f0,__classPrivateFieldSet:()=>p0,__createBinding:()=>Lf,__decorate:()=>WD,__disposeResources:()=>h0,__esDecorate:()=>EC,__exportStar:()=>t0,__extends:()=>JD,__generator:()=>e0,__importDefault:()=>l0,__importStar:()=>c0,__makeTemplateObject:()=>u0,__metadata:()=>HD,__param:()=>XD,__propKey:()=>IC,__read:()=>LN,__rest:()=>zD,__runInitializers:()=>gC,__setFunctionName:()=>vC,__spread:()=>n0,__spreadArray:()=>i0,__spreadArrays:()=>r0,__values:()=>Rf,default:()=>SC});function JD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");RN(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function zD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function XD(e,t){return function(n,r){t(n,r,e)}}function EC(e,t,n,r,i,o){function s(F){if(F!==void 0&&typeof F!="function")throw new TypeError("Function expected");return F}for(var a=r.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,h=!1,N=n.length-1;N>=0;N--){var E={};for(var D in r)E[D]=D==="access"?{}:r[D];for(var D in r.access)E.access[D]=r.access[D];E.addInitializer=function(F){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(F||null))};var A=(0,n[N])(a==="accessor"?{get:l.get,set:l.set}:l[u],E);if(a==="accessor"){if(A===void 0)continue;if(A===null||typeof A!="object")throw new TypeError("Object expected");(d=s(A.get))&&(l.get=d),(d=s(A.set))&&(l.set=d),(d=s(A.init))&&i.unshift(d)}else(d=s(A))&&(a==="field"?i.unshift(d):l[u]=d)}c&&Object.defineProperty(c,r.name,l),h=!0}function gC(e,t,n){for(var r=arguments.length>2,i=0;i0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function LN(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function n0(){for(var e=[],t=0;t1||a(h,N)})})}function a(h,N){try{u(r[h](N))}catch(E){d(o[0][3],E)}}function u(h){h.value instanceof Du?Promise.resolve(h.value.v).then(c,l):d(o[0][2],h)}function c(h){a("next",h)}function l(h){a("throw",h)}function d(h,N){h(N),o.shift(),o.length&&a(o[0][0],o[0][1])}}function s0(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(s){return(n=!n)?{value:Du(e[i](s)),done:!1}:o?o(s):s}:o}}function a0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Rf=="function"?Rf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}function u0(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function c0(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Lf(t,e,n);return _C(t,e),t}function l0(e){return e&&e.__esModule?e:{default:e}}function d0(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function p0(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function f0(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function m0(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function h0(e){function t(r){e.error=e.hasError?new bC(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(o){return t(o),n()})}catch(o){t(o)}}if(e.hasError)throw e.error}return n()}var RN,Ff,Lf,_C,bC,SC,T0=j(()=>{"use strict";p();m();f();RN=function(e,t){return RN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},RN(e,t)};Ff=function(){return Ff=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";p();m();f()});var Xl=R(Pn=>{"use strict";p();m();f();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.assertSome=Pn.isSome=Pn.compareNodes=Pn.nodeToString=Pn.compareStrings=Pn.isValidPath=Pn.isDocumentString=Pn.asArray=void 0;var DC=(ie(),ae(de)),OC=e=>Array.isArray(e)?e:e?[e]:[];Pn.asArray=OC;var AC=/\.[a-z0-9]+$/i;function wC(e){if(typeof e!="string"||AC.test(e))return!1;try{return(0,DC.parse)(e),!0}catch(t){}return!1}Pn.isDocumentString=wC;var FC=/[‘“!%^<>`]/;function RC(e){return typeof e=="string"&&!FC.test(e)}Pn.isValidPath=RC;function E0(e,t){return String(e)String(t)?1:0}Pn.compareStrings=E0;function PN(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}Pn.nodeToString=PN;function LC(e,t,n){let r=PN(e),i=PN(t);return typeof n=="function"?n(r,i):E0(r,i)}Pn.compareNodes=LC;function PC(e){return e!=null}Pn.isSome=PC;function xC(e,t="Value should be something"){if(e==null)throw new Error(t)}Pn.assertSome=xC});var Hl=R(xf=>{"use strict";p();m();f();Object.defineProperty(xf,"__esModule",{value:!0});xf.inspect=void 0;var v0=3;function kC(e){return Pf(e,[])}xf.inspect=kC;function Pf(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return MC(e,t);default:return String(e)}}function g0(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; +`))}return U(w({},e),{value:t,block:!0})}Ce.formatDescription=XU;function cD(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}Ce.lexicographicallySortArgumentNodes=cD;function bN(e){let t=e.selections;return U(w({},e),{selections:t.sort((n,r)=>n.name.value.localeCompare(r.name.value)).map(n=>U(w({},n),{arguments:cD(n),selectionSet:n.selectionSet?bN(n.selectionSet):n.selectionSet}))})}Ce.lexicographicallySortSelectionSetNode=bN;function ZU(e){return U(w({},e),{definitions:e.definitions.map(t=>t.kind!==je.Kind.OPERATION_DEFINITION?t:U(w({},t),{selectionSet:bN(t.selectionSet)}))})}Ce.lexicographicallySortDocumentNode=ZU;function eC(e){try{return{documentNode:(0,je.parse)(e)}}catch(t){return{error:t}}}Ce.safeParse=eC});var mo=L(Ge=>{"use strict";p();m();f();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.baseDirectives=Ge.INHERITABLE_DIRECTIVE_NAMES=Ge.MAXIMUM_TYPE_NESTING=Ge.SCOPE_SCALAR_DEFINITION=Ge.FIELD_SET_SCALAR_DEFINITION=Ge.VERSION_TWO_DIRECTIVE_DEFINITIONS=Ge.BASE_DIRECTIVE_DEFINITIONS=Ge.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Ge.REQUIRES_SCOPES_DEFINITION=Ge.INACCESSIBLE_DEFINITION=Ge.AUTHENTICATED_DEFINITION=Ge.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Ge.TAG_DEFINITION=Ge.DEPRECATED_DEFINITION=Ge.BASE_SCALARS=void 0;var Te=(ie(),ae(de)),te=jr(),$=$r();Ge.BASE_SCALARS=new Set(["_Any","_Entities","Boolean","Float","ID","Int",$.FIELD_SET_SCALAR,$.SCOPE_SCALAR,$.STRING_SCALAR]);Ge.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.REASON),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR),defaultValue:{kind:Te.Kind.STRING,value:"No longer supported"}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ARGUMENT_DEFINITION_UPPER,$.ENUM_VALUE_UPPER,$.FIELD_DEFINITION_UPPER,$.INPUT_FIELD_DEFINITION_UPPER]),name:(0,te.stringToNameNode)($.DEPRECATED),repeatable:!1};var lD={kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.INTERFACE_UPPER,$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.EXTENDS),repeatable:!1},dD={kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.FIELD_DEFINITION_UPPER,$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.EXTERNAL),repeatable:!1},pD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.TOPIC),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.SOURCE_ID),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.EVENTS_PUBLISH),repeatable:!1},fD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.TOPIC),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.SOURCE_ID),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.EVENTS_REQUEST),repeatable:!1},mD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.TOPIC),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.SOURCE_ID),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.EVENTS_SUBSCRIBE),repeatable:!1},hD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.FIELDS),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.FIELD_SET_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.RESOLVABLE),type:(0,te.stringToNamedTypeNode)($.BOOLEAN_SCALAR),defaultValue:{kind:Te.Kind.BOOLEAN,value:!0}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.INTERFACE_UPPER,$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.KEY),repeatable:!0},yD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.FIELDS),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.FIELD_SET_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.PROVIDES),repeatable:!1},TD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.FIELDS),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.FIELD_SET_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:[(0,te.stringToNameNode)($.FIELD_DEFINITION_UPPER)],name:(0,te.stringToNameNode)($.REQUIRES),repeatable:!1},ND={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.URL_LOWER),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.SCALAR_UPPER]),name:(0,te.stringToNameNode)($.SPECIFIED_BY),repeatable:!1};Ge.TAG_DEFINITION={arguments:[{directives:[],kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.NAME),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ARGUMENT_DEFINITION_UPPER,$.ENUM_UPPER,$.ENUM_VALUE_UPPER,$.FIELD_DEFINITION_UPPER,$.INPUT_FIELD_DEFINITION_UPPER,$.INPUT_OBJECT_UPPER,$.INTERFACE_UPPER,$.OBJECT_UPPER,$.SCALAR_UPPER,$.UNION_UPPER]),name:(0,te.stringToNameNode)($.TAG),repeatable:!0};Ge.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[$.DEPRECATED,Ge.DEPRECATED_DEFINITION],[$.EXTENDS,lD],[$.EXTERNAL,dD],[$.EVENTS_PUBLISH,pD],[$.EVENTS_REQUEST,fD],[$.EVENTS_SUBSCRIBE,mD],[$.KEY,hD],[$.PROVIDES,yD],[$.REQUIRES,TD],[$.SPECIFIED_BY,ND],[$.TAG,Ge.TAG_DEFINITION]]);Ge.AUTHENTICATED_DEFINITION={arguments:[],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ENUM_UPPER,$.FIELD_DEFINITION_UPPER,$.INTERFACE_UPPER,$.OBJECT_UPPER,$.SCALAR_UPPER]),name:(0,te.stringToNameNode)($.AUTHENTICATED),repeatable:!1};var ED={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.NAME),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.SCHEMA_UPPER]),name:(0,te.stringToNameNode)($.COMPOSE_DIRECTIVE),repeatable:!0};Ge.INACCESSIBLE_DEFINITION={arguments:[],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ARGUMENT_DEFINITION_UPPER,$.ENUM_UPPER,$.ENUM_VALUE_UPPER,$.FIELD_DEFINITION_UPPER,$.INPUT_FIELD_DEFINITION_UPPER,$.INPUT_OBJECT_UPPER,$.INTERFACE_UPPER,$.OBJECT_UPPER,$.SCALAR_UPPER,$.UNION_UPPER]),name:(0,te.stringToNameNode)($.INACCESSIBLE),repeatable:!1};var gD={kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.INTERFACE_OBJECT),repeatable:!1},ID={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.URL_LOWER),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)("as"),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)("for"),type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)},{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)("import"),type:{kind:Te.Kind.LIST_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.SCHEMA_UPPER]),name:(0,te.stringToNameNode)($.LINK),repeatable:!0},vD={arguments:[{kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.FROM),type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.STRING_SCALAR)}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.FIELD_DEFINITION_UPPER]),name:(0,te.stringToNameNode)($.OVERRIDE),repeatable:!1};Ge.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:Te.Kind.INPUT_VALUE_DEFINITION,name:(0,te.stringToNameNode)($.SCOPES),type:{kind:Te.Kind.NON_NULL_TYPE,type:{kind:Te.Kind.LIST_TYPE,type:{kind:Te.Kind.NON_NULL_TYPE,type:{kind:Te.Kind.LIST_TYPE,type:{kind:Te.Kind.NON_NULL_TYPE,type:(0,te.stringToNamedTypeNode)($.SCOPE_SCALAR)}}}}}}],kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.ENUM_UPPER,$.FIELD_DEFINITION_UPPER,$.INTERFACE_UPPER,$.OBJECT_UPPER,$.SCALAR_UPPER]),name:(0,te.stringToNameNode)($.REQUIRES_SCOPES),repeatable:!1};var _D={kind:Te.Kind.DIRECTIVE_DEFINITION,locations:(0,te.stringArrayToNameNodeArray)([$.FIELD_DEFINITION_UPPER,$.OBJECT_UPPER]),name:(0,te.stringToNameNode)($.SHAREABLE),repeatable:!1};Ge.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[$.AUTHENTICATED,Ge.AUTHENTICATED_DEFINITION],[$.COMPOSE_DIRECTIVE,ED],[$.INACCESSIBLE,Ge.INACCESSIBLE_DEFINITION],[$.INTERFACE_OBJECT,gD],[$.LINK,ID],[$.OVERRIDE,vD],[$.REQUIRES_SCOPES,Ge.REQUIRES_SCOPES_DEFINITION],[$.SHAREABLE,_D]]);Ge.BASE_DIRECTIVE_DEFINITIONS=[Ge.DEPRECATED_DEFINITION,lD,dD,pD,fD,mD,hD,yD,TD,ND,Ge.TAG_DEFINITION];Ge.VERSION_TWO_DIRECTIVE_DEFINITIONS=[Ge.AUTHENTICATED_DEFINITION,ED,Ge.INACCESSIBLE_DEFINITION,gD,ID,vD,Ge.REQUIRES_SCOPES_DEFINITION,_D];Ge.FIELD_SET_SCALAR_DEFINITION={kind:Te.Kind.SCALAR_TYPE_DEFINITION,name:(0,te.stringToNameNode)($.FIELD_SET_SCALAR)};Ge.SCOPE_SCALAR_DEFINITION={kind:Te.Kind.SCALAR_TYPE_DEFINITION,name:(0,te.stringToNameNode)($.SCOPE_SCALAR)};Ge.MAXIMUM_TYPE_NESTING=30;Ge.INHERITABLE_DIRECTIVE_NAMES=[$.EXTERNAL,$.SHAREABLE];Ge.baseDirectives=` + directive @deprecated(reason: String = "No longer supported") on ARGUMENT_DEFINITION | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION + directive @extends on INTERFACE | OBJECT + directive @external on FIELD_DEFINITION | OBJECT + directive @eventsPublish(topic: String!, sourceID: String) on FIELD_DEFINITION + directive @eventsRequest(topic: String!, sourceID: String) on FIELD_DEFINITION + directive @eventsSubscribe(topic: String!, sourceID: String) on FIELD_DEFINITION + directive @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT + directive @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION + directive @requires(fields: openfed__FieldSet!) on FIELD_DEFINITION + directive @specifiedBy(url: String!) on SCALAR + directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION + directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR + directive @composeDirective(name: String!) repeatable on SCHEMA + directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION + directive @interfaceObject on OBJECT + directive @link(url: String!, as: String, for: String, import: [String]) repeatable on SCHEMA + directive @override(from: String!) on FIELD_DEFINITION + directive @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR + directive @shareable on FIELD_DEFINITION | OBJECT + scalar openfed__FieldSet + scalar openfed__Scope +`});var Ds=L(Tt=>{"use strict";p();m();f();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.getTypeNodeNamedTypeName=Tt.deepCopyTypeNode=Tt.getMutableUnionNode=Tt.getMutableTypeNode=Tt.getMutableScalarNode=Tt.getMutableObjectExtensionNode=Tt.getMutableObjectNode=Tt.getMutableInterfaceNode=Tt.getMutableInputValueNode=Tt.getMutableInputObjectNode=Tt.getMutableFieldNode=Tt.getMutableEnumValueNode=Tt.getMutableEnumNode=Tt.getMutableDirectiveDefinitionNode=void 0;var pi=(ie(),ae(de)),fi=jr(),SN=di(),Df=mo();function tC(e){return{arguments:[],kind:e.kind,locations:[],name:w({},e.name),repeatable:e.repeatable,description:(0,fi.formatDescription)(e.description)}}Tt.getMutableDirectiveDefinitionNode=tC;function nC(e){var t;return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description),values:(t=e.values)==null?void 0:t.map(n=>bD(n))}}Tt.getMutableEnumNode=nC;function bD(e){return{directives:[],kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableEnumValueNode=bD;function rC(e,t){return{arguments:[],directives:[],kind:e.kind,name:w({},e.name),type:DN(e.type,t),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableFieldNode=rC;function iC(e){return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableInputObjectNode=iC;function oC(e,t){return{directives:[],kind:e.kind,name:w({},e.name),type:DN(e.type,t),defaultValue:e.defaultValue,description:(0,fi.formatDescription)(e.description)}}Tt.getMutableInputValueNode=oC;function sC(e){return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableInterfaceNode=sC;function aC(e){return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableObjectNode=aC;function uC(e){let t=e.kind===pi.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:pi.Kind.OBJECT_TYPE_EXTENSION,name:w({},e.name),description:(0,fi.formatDescription)(t)}}Tt.getMutableObjectExtensionNode=uC;function cC(e){return{kind:e.kind,name:w({},e.name),description:(0,fi.formatDescription)(e.description)}}Tt.getMutableScalarNode=cC;function lC(e,t){let n={kind:e.kind},r=n;for(let i=0;iQD,__assign:()=>Of,__asyncDelegator:()=>CD,__asyncGenerator:()=>UD,__asyncValues:()=>BD,__await:()=>Su,__awaiter:()=>LD,__classPrivateFieldGet:()=>GD,__classPrivateFieldIn:()=>KD,__classPrivateFieldSet:()=>qD,__createBinding:()=>wf,__decorate:()=>AD,__disposeResources:()=>YD,__esDecorate:()=>pC,__exportStar:()=>PD,__extends:()=>DD,__generator:()=>RD,__importDefault:()=>jD,__importStar:()=>$D,__makeTemplateObject:()=>VD,__metadata:()=>FD,__param:()=>wD,__propKey:()=>mC,__read:()=>AN,__rest:()=>OD,__runInitializers:()=>fC,__setFunctionName:()=>hC,__spread:()=>xD,__spreadArray:()=>MD,__spreadArrays:()=>kD,__values:()=>Af,default:()=>NC});function DD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ON(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function OD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function wD(e,t){return function(n,r){t(n,r,e)}}function pC(e,t,n,r,i,o){function s(F){if(F!==void 0&&typeof F!="function")throw new TypeError("Function expected");return F}for(var a=r.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,h=!1,N=n.length-1;N>=0;N--){var E={};for(var D in r)E[D]=D==="access"?{}:r[D];for(var D in r.access)E.access[D]=r.access[D];E.addInitializer=function(F){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(F||null))};var A=(0,n[N])(a==="accessor"?{get:l.get,set:l.set}:l[u],E);if(a==="accessor"){if(A===void 0)continue;if(A===null||typeof A!="object")throw new TypeError("Object expected");(d=s(A.get))&&(l.get=d),(d=s(A.set))&&(l.set=d),(d=s(A.init))&&i.unshift(d)}else(d=s(A))&&(a==="field"?i.unshift(d):l[u]=d)}c&&Object.defineProperty(c,r.name,l),h=!0}function fC(e,t,n){for(var r=arguments.length>2,i=0;i0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function AN(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function xD(){for(var e=[],t=0;t1||a(h,N)})})}function a(h,N){try{u(r[h](N))}catch(E){d(o[0][3],E)}}function u(h){h.value instanceof Su?Promise.resolve(h.value.v).then(c,l):d(o[0][2],h)}function c(h){a("next",h)}function l(h){a("throw",h)}function d(h,N){h(N),o.shift(),o.length&&a(o[0][0],o[0][1])}}function CD(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(s){return(n=!n)?{value:Su(e[i](s)),done:!1}:o?o(s):s}:o}}function BD(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Af=="function"?Af(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}function VD(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function $D(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&wf(t,e,n);return yC(t,e),t}function jD(e){return e&&e.__esModule?e:{default:e}}function GD(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function qD(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function KD(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function QD(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function YD(e){function t(r){e.error=e.hasError?new TC(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(o){return t(o),n()})}catch(o){t(o)}}if(e.hasError)throw e.error}return n()}var ON,Of,wf,yC,TC,NC,FN=j(()=>{"use strict";p();m();f();ON=function(e,t){return ON=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ON(e,t)};Of=function(){return Of=Object.assign||function(t){for(var n,r=1,i=arguments.length;rm0,__assign:()=>Ff,__asyncDelegator:()=>s0,__asyncGenerator:()=>o0,__asyncValues:()=>a0,__await:()=>Du,__awaiter:()=>ZD,__classPrivateFieldGet:()=>d0,__classPrivateFieldIn:()=>f0,__classPrivateFieldSet:()=>p0,__createBinding:()=>Rf,__decorate:()=>WD,__disposeResources:()=>h0,__esDecorate:()=>EC,__exportStar:()=>t0,__extends:()=>JD,__generator:()=>e0,__importDefault:()=>l0,__importStar:()=>c0,__makeTemplateObject:()=>u0,__metadata:()=>XD,__param:()=>HD,__propKey:()=>IC,__read:()=>RN,__rest:()=>zD,__runInitializers:()=>gC,__setFunctionName:()=>vC,__spread:()=>n0,__spreadArray:()=>i0,__spreadArrays:()=>r0,__values:()=>Lf,default:()=>SC});function JD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");LN(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function zD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function HD(e,t){return function(n,r){t(n,r,e)}}function EC(e,t,n,r,i,o){function s(F){if(F!==void 0&&typeof F!="function")throw new TypeError("Function expected");return F}for(var a=r.kind,u=a==="getter"?"get":a==="setter"?"set":"value",c=!t&&e?r.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),d,h=!1,N=n.length-1;N>=0;N--){var E={};for(var D in r)E[D]=D==="access"?{}:r[D];for(var D in r.access)E.access[D]=r.access[D];E.addInitializer=function(F){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(s(F||null))};var A=(0,n[N])(a==="accessor"?{get:l.get,set:l.set}:l[u],E);if(a==="accessor"){if(A===void 0)continue;if(A===null||typeof A!="object")throw new TypeError("Object expected");(d=s(A.get))&&(l.get=d),(d=s(A.set))&&(l.set=d),(d=s(A.init))&&i.unshift(d)}else(d=s(A))&&(a==="field"?i.unshift(d):l[u]=d)}c&&Object.defineProperty(c,r.name,l),h=!0}function gC(e,t,n){for(var r=arguments.length>2,i=0;i0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function RN(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function n0(){for(var e=[],t=0;t1||a(h,N)})})}function a(h,N){try{u(r[h](N))}catch(E){d(o[0][3],E)}}function u(h){h.value instanceof Du?Promise.resolve(h.value.v).then(c,l):d(o[0][2],h)}function c(h){a("next",h)}function l(h){a("throw",h)}function d(h,N){h(N),o.shift(),o.length&&a(o[0][0],o[0][1])}}function s0(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,o){t[i]=e[i]?function(s){return(n=!n)?{value:Du(e[i](s)),done:!1}:o?o(s):s}:o}}function a0(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Lf=="function"?Lf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,u){s=e[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}function u0(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function c0(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Rf(t,e,n);return _C(t,e),t}function l0(e){return e&&e.__esModule?e:{default:e}}function d0(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function p0(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function f0(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function m0(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if(typeof r!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}function h0(e){function t(r){e.error=e.hasError?new bC(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(o){return t(o),n()})}catch(o){t(o)}}if(e.hasError)throw e.error}return n()}var LN,Ff,Rf,_C,bC,SC,T0=j(()=>{"use strict";p();m();f();LN=function(e,t){return LN=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},LN(e,t)};Ff=function(){return Ff=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";p();m();f()});var Hl=L(Pn=>{"use strict";p();m();f();Object.defineProperty(Pn,"__esModule",{value:!0});Pn.assertSome=Pn.isSome=Pn.compareNodes=Pn.nodeToString=Pn.compareStrings=Pn.isValidPath=Pn.isDocumentString=Pn.asArray=void 0;var DC=(ie(),ae(de)),OC=e=>Array.isArray(e)?e:e?[e]:[];Pn.asArray=OC;var AC=/\.[a-z0-9]+$/i;function wC(e){if(typeof e!="string"||AC.test(e))return!1;try{return(0,DC.parse)(e),!0}catch(t){}return!1}Pn.isDocumentString=wC;var FC=/[‘“!%^<>`]/;function LC(e){return typeof e=="string"&&!FC.test(e)}Pn.isValidPath=LC;function E0(e,t){return String(e)String(t)?1:0}Pn.compareStrings=E0;function PN(e){var n,r;let t;return"alias"in e&&(t=(n=e.alias)==null?void 0:n.value),t==null&&"name"in e&&(t=(r=e.name)==null?void 0:r.value),t==null&&(t=e.kind),t}Pn.nodeToString=PN;function RC(e,t,n){let r=PN(e),i=PN(t);return typeof n=="function"?n(r,i):E0(r,i)}Pn.compareNodes=RC;function PC(e){return e!=null}Pn.isSome=PC;function xC(e,t="Value should be something"){if(e==null)throw new Error(t)}Pn.assertSome=xC});var Xl=L(xf=>{"use strict";p();m();f();Object.defineProperty(xf,"__esModule",{value:!0});xf.inspect=void 0;var v0=3;function kC(e){return Pf(e,[])}xf.inspect=kC;function Pf(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return MC(e,t);default:return String(e)}}function g0(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function MC(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?g0(e)+` -`+I0(e.errors,t):g0(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(UC(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Pf(r,n)}else if(Array.isArray(e))return I0(e,n);return CC(e,n)}function UC(e){return typeof e.toJSON=="function"}function CC(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>v0?"["+BC(e)+"]":"{ "+n.map(([i,o])=>i+": "+Pf(o,t)).join(", ")+" }"}function I0(e,t){if(e.length===0)return"[]";if(t.length>v0)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";p();m();f();Object.defineProperty(Ou,"__esModule",{value:!0});Ou.relocatedError=Ou.createGraphQLError=void 0;var xN=(ie(),ae(de)),VC=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function $C(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>VC.includes(t))}function kN(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&$C(t.originalError)&&(t.originalError=kN(t.originalError.message,t.originalError)),xN.versionInfo.major>=17?new xN.GraphQLError(e,t):new xN.GraphQLError(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}Ou.createGraphQLError=kN;function jC(e,t){return kN(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Ou.relocatedError=jC});var Zl=R(Gr=>{"use strict";p();m();f();Object.defineProperty(Gr,"__esModule",{value:!0});Gr.hasOwnProperty=Gr.promiseReduce=Gr.isPromise=Gr.isObjectLike=Gr.isIterableObject=void 0;function GC(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}Gr.isIterableObject=GC;function qC(e){return typeof e=="object"&&e!==null}Gr.isObjectLike=qC;function _0(e){return(e==null?void 0:e.then)!=null}Gr.isPromise=_0;function KC(e,t,n){let r=n;for(let i of e)r=_0(r)?r.then(o=>t(o,i)):t(r,i);return r}Gr.promiseReduce=KC;function QC(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Gr.hasOwnProperty=QC});var UN=R(Uf=>{"use strict";p();m();f();Object.defineProperty(Uf,"__esModule",{value:!0});Uf.getArgumentValues=void 0;var MN=Hl(),ya=(ie(),ae(de)),Mf=kf(),YC=Zl();function JC(e,t,n={}){var s;let r={},o=((s=t.arguments)!=null?s:[]).reduce((a,u)=>U(w({},a),{[u.name.value]:u}),{});for(let{name:a,type:u,defaultValue:c}of e.args){let l=o[a];if(!l){if(c!==void 0)r[a]=c;else if((0,ya.isNonNullType)(u))throw(0,Mf.createGraphQLError)(`Argument "${a}" of required type "${(0,MN.inspect)(u)}" was not provided.`,{nodes:[t]});continue}let d=l.value,h=d.kind===ya.Kind.NULL;if(d.kind===ya.Kind.VARIABLE){let E=d.name.value;if(n==null||!(0,YC.hasOwnProperty)(n,E)){if(c!==void 0)r[a]=c;else if((0,ya.isNonNullType)(u))throw(0,Mf.createGraphQLError)(`Argument "${a}" of required type "${(0,MN.inspect)(u)}" was provided the variable "$${E}" which was not provided a runtime value.`,{nodes:[d]});continue}h=n[E]==null}if(h&&(0,ya.isNonNullType)(u))throw(0,Mf.createGraphQLError)(`Argument "${a}" of non-null type "${(0,MN.inspect)(u)}" must not be null.`,{nodes:[d]});let N=(0,ya.valueFromAST)(d,u,n);if(N===void 0)throw(0,Mf.createGraphQLError)(`Argument "${a}" has invalid value ${(0,ya.print)(d)}.`,{nodes:[d]});r[a]=N}return r}Uf.getArgumentValues=JC});var CN=R(xi=>{"use strict";p();m();f();Object.defineProperty(xi,"__esModule",{value:!0});xi.getDirective=xi.getDirectives=xi.getDirectiveInExtensions=xi.getDirectivesInExtensions=void 0;var S0=UN();function D0(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}xi.getDirectivesInExtensions=D0;function b0(e,t){let n=e.filter(r=>r.name===t);if(n.length)return n.map(r=>{var i;return(i=r.args)!=null?i:{}})}function O0(e,t,n=["directives"]){let r=n.reduce((o,s)=>o==null?o:o[s],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return b0(r,t);let i=[];for(let[o,s]of Object.entries(r))if(Array.isArray(s))for(let a of s)i.push({name:o,args:a});else i.push({name:o,args:s});return b0(i,t)}xi.getDirectiveInExtensions=O0;function zC(e,t,n=["directives"]){let r=D0(t,n);if(r!=null&&r.length>0)return r;let o=(e&&e.getDirectives?e.getDirectives():[]).reduce((u,c)=>(u[c.name]=c,u),{}),s=[];t.astNode&&s.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(s=[...s,...t.extensionASTNodes]);let a=[];for(let u of s)if(u.directives)for(let c of u.directives){let l=o[c.name.value];l&&a.push({name:c.name.value,args:(0,S0.getArgumentValues)(l,c)})}return a}xi.getDirectives=zC;function WC(e,t,n,r=["directives"]){let i=O0(t,n,r);if(i!=null)return i;let o=e&&e.getDirective?e.getDirective(n):void 0;if(o==null)return;let s=[];t.astNode&&s.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(s=[...s,...t.extensionASTNodes]);let a=[];for(let u of s)if(u.directives)for(let c of u.directives)c.name.value===n&&a.push((0,S0.getArgumentValues)(o,c));if(a.length)return a}xi.getDirective=WC});var BN=R(Cf=>{"use strict";p();m();f();Object.defineProperty(Cf,"__esModule",{value:!0});Cf.getFieldsWithDirectives=void 0;var XC=(ie(),ae(de));function HC(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(o=>r.includes(o.kind));for(let o of i){let s=o.name.value;if(o.fields!=null){for(let a of o.fields)if(a.directives&&a.directives.length>0){let u=a.name.value,c=`${s}.${u}`,l=a.directives.map(d=>({name:d.name.value,args:(d.arguments||[]).reduce((h,N)=>U(w({},h),{[N.name.value]:(0,XC.valueFromASTUntyped)(N.value)}),{})}));n[c]=l}}}return n}Cf.getFieldsWithDirectives=HC});var A0=R(Bf=>{"use strict";p();m();f();Object.defineProperty(Bf,"__esModule",{value:!0});Bf.getArgumentsWithDirectives=void 0;var VN=(ie(),ae(de));function ZC(e){return e.kind===VN.Kind.OBJECT_TYPE_DEFINITION||e.kind===VN.Kind.OBJECT_TYPE_EXTENSION}function eB(e){var r;let t={},n=e.definitions.filter(ZC);for(let i of n)if(i.fields!=null)for(let o of i.fields){let s=(r=o.arguments)==null?void 0:r.filter(u=>{var c;return(c=u.directives)==null?void 0:c.length});if(!(s!=null&&s.length))continue;let a=t[`${i.name.value}.${o.name.value}`]={};for(let u of s){let c=u.directives.map(l=>({name:l.name.value,args:(l.arguments||[]).reduce((d,h)=>U(w({},d),{[h.name.value]:(0,VN.valueFromASTUntyped)(h.value)}),{})}));a[u.name.value]=c}}return t}Bf.getArgumentsWithDirectives=eB});var $N=R(Vf=>{"use strict";p();m();f();Object.defineProperty(Vf,"__esModule",{value:!0});Vf.getImplementingTypes=void 0;var tB=(ie(),ae(de));function nB(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let o=n[i];(0,tB.isObjectType)(o)&&o.getInterfaces().find(a=>a.name===e)&&r.push(o.name)}return r}Vf.getImplementingTypes=nB});var GN=R($f=>{"use strict";p();m();f();Object.defineProperty($f,"__esModule",{value:!0});$f.astFromType=void 0;var rB=Hl(),Ta=(ie(),ae(de));function jN(e){if((0,Ta.isNonNullType)(e)){let t=jN(e.ofType);if(t.kind===Ta.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,rB.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Ta.Kind.NON_NULL_TYPE,type:t}}else if((0,Ta.isListType)(e))return{kind:Ta.Kind.LIST_TYPE,type:jN(e.ofType)};return{kind:Ta.Kind.NAMED_TYPE,name:{kind:Ta.Kind.NAME,value:e.name}}}$f.astFromType=jN});var Gf=R(jf=>{"use strict";p();m();f();Object.defineProperty(jf,"__esModule",{value:!0});jf.astFromValueUntyped=void 0;var ki=(ie(),ae(de));function qN(e){if(e===null)return{kind:ki.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=qN(n);r!=null&&t.push(r)}return{kind:ki.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=qN(r);i&&t.push({kind:ki.Kind.OBJECT_FIELD,name:{kind:ki.Kind.NAME,value:n},value:i})}return{kind:ki.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ki.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:ki.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return iB.test(t)?{kind:ki.Kind.INT,value:t}:{kind:ki.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ki.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}jf.astFromValueUntyped=qN;var iB=/^-?(?:0|[1-9][0-9]*)$/});var F0=R(qf=>{"use strict";p();m();f();Object.defineProperty(qf,"__esModule",{value:!0});qf.astFromValue=void 0;var oB=Hl(),Lr=(ie(),ae(de)),sB=Gf(),w0=Zl();function ed(e,t){if((0,Lr.isNonNullType)(t)){let n=ed(e,t.ofType);return(n==null?void 0:n.kind)===Lr.Kind.NULL?null:n}if(e===null)return{kind:Lr.Kind.NULL};if(e===void 0)return null;if((0,Lr.isListType)(t)){let n=t.ofType;if((0,w0.isIterableObject)(e)){let r=[];for(let i of e){let o=ed(i,n);o!=null&&r.push(o)}return{kind:Lr.Kind.LIST,values:r}}return ed(e,n)}if((0,Lr.isInputObjectType)(t)){if(!(0,w0.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=ed(e[r.name],r.type);i&&n.push({kind:Lr.Kind.OBJECT_FIELD,name:{kind:Lr.Kind.NAME,value:r.name},value:i})}return{kind:Lr.Kind.OBJECT,fields:n}}if((0,Lr.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,Lr.isEnumType)(t)?{kind:Lr.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&aB.test(n)?{kind:Lr.Kind.INT,value:n}:(0,sB.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,oB.inspect)(t))}qf.astFromValue=ed;var aB=/^-?(?:0|[1-9][0-9]*)$/});var R0=R(Kf=>{"use strict";p();m();f();Object.defineProperty(Kf,"__esModule",{value:!0});Kf.getDescriptionNode=void 0;var uB=(ie(),ae(de));function cB(e){var t;if((t=e.astNode)!=null&&t.description)return U(w({},e.astNode.description),{block:!0});if(e.description)return{kind:uB.Kind.STRING,value:e.description,block:!0}}Kf.getDescriptionNode=cB});var Au=R(tr=>{"use strict";p();m();f();Object.defineProperty(tr,"__esModule",{value:!0});tr.memoize2of5=tr.memoize2of4=tr.memoize5=tr.memoize4=tr.memoize3=tr.memoize2=tr.memoize1=void 0;function lB(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let o=e(r);return t.set(r,o),o}return i}}tr.memoize1=lB;function dB(e){let t=new WeakMap;return function(r,i){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let a=e(r,i);return o.set(i,a),a}let s=o.get(i);if(s===void 0){let a=e(r,i);return o.set(i,a),a}return s}}tr.memoize2=dB;function pB(e){let t=new WeakMap;return function(r,i,o){let s=t.get(r);if(!s){s=new WeakMap,t.set(r,s);let c=new WeakMap;s.set(i,c);let l=e(r,i,o);return c.set(o,l),l}let a=s.get(i);if(!a){a=new WeakMap,s.set(i,a);let c=e(r,i,o);return a.set(o,c),c}let u=a.get(o);if(u===void 0){let c=e(r,i,o);return a.set(o,c),c}return u}}tr.memoize3=pB;function fB(e){let t=new WeakMap;return function(r,i,o,s){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let d=new WeakMap;a.set(i,d);let h=new WeakMap;d.set(o,h);let N=e(r,i,o,s);return h.set(s,N),N}let u=a.get(i);if(!u){u=new WeakMap,a.set(i,u);let d=new WeakMap;u.set(o,d);let h=e(r,i,o,s);return d.set(s,h),h}let c=u.get(o);if(!c){let d=new WeakMap;u.set(o,d);let h=e(r,i,o,s);return d.set(s,h),h}let l=c.get(s);if(l===void 0){let d=e(r,i,o,s);return c.set(s,d),d}return l}}tr.memoize4=fB;function mB(e){let t=new WeakMap;return function(r,i,o,s,a){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let N=new WeakMap;u.set(i,N);let E=new WeakMap;N.set(o,E);let D=new WeakMap;E.set(s,D);let A=e(r,i,o,s,a);return D.set(a,A),A}let c=u.get(i);if(!c){c=new WeakMap,u.set(i,c);let N=new WeakMap;c.set(o,N);let E=new WeakMap;N.set(s,E);let D=e(r,i,o,s,a);return E.set(a,D),D}let l=c.get(o);if(!l){l=new WeakMap,c.set(o,l);let N=new WeakMap;l.set(s,N);let E=e(r,i,o,s,a);return N.set(a,E),E}let d=l.get(s);if(!d){d=new WeakMap,l.set(s,d);let N=e(r,i,o,s,a);return d.set(a,N),N}let h=d.get(a);if(h===void 0){let N=e(r,i,o,s,a);return d.set(a,N),N}return h}}tr.memoize5=mB;function hB(e){let t=new WeakMap;return function(r,i,o,s){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i,o,s);return a.set(i,c),c}let u=a.get(i);if(u===void 0){let c=e(r,i,o,s);return a.set(i,c),c}return u}}tr.memoize2of4=hB;function yB(e){let t=new WeakMap;return function(r,i,o,s,a){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let l=e(r,i,o,s,a);return u.set(i,l),l}let c=u.get(i);if(c===void 0){let l=e(r,i,o,s,a);return u.set(i,l),l}return c}}tr.memoize2of5=yB});var td=R(Pr=>{"use strict";p();m();f();Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getRootTypeMap=Pr.getRootTypes=Pr.getRootTypeNames=Pr.getDefinedRootType=void 0;var TB=kf(),KN=Au();function NB(e,t,n){let i=(0,Pr.getRootTypeMap)(e).get(t);if(i==null)throw(0,TB.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Pr.getDefinedRootType=NB;Pr.getRootTypeNames=(0,KN.memoize1)(function(t){let n=(0,Pr.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Pr.getRootTypes=(0,KN.memoize1)(function(t){let n=(0,Pr.getRootTypeMap)(t);return new Set(n.values())});Pr.getRootTypeMap=(0,KN.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let o=t.getSubscriptionType();return o&&n.set("subscription",o),n})});var WN=R(Qe=>{"use strict";p();m();f();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.makeDirectiveNodes=Qe.makeDirectiveNode=Qe.makeDeprecatedDirective=Qe.astFromEnumValue=Qe.astFromInputField=Qe.astFromField=Qe.astFromScalarType=Qe.astFromEnumType=Qe.astFromInputObjectType=Qe.astFromUnionType=Qe.astFromInterfaceType=Qe.astFromObjectType=Qe.astFromArg=Qe.getDeprecatableDirectiveNodes=Qe.getDirectiveNodes=Qe.astFromDirective=Qe.astFromSchema=Qe.printSchemaWithDirectives=Qe.getDocumentNodeFromSchema=void 0;var Be=(ie(),ae(de)),Na=GN(),QN=F0(),EB=Gf(),qr=R0(),YN=CN(),gB=Xl(),IB=td();function L0(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=P0(e,n),o=i!=null?[i]:[],s=e.getDirectives();for(let a of s)(0,Be.isSpecifiedDirective)(a)||o.push(x0(a,e,n));for(let a in r){let u=r[a],c=(0,Be.isSpecifiedScalarType)(u),l=(0,Be.isIntrospectionType)(u);if(!(c||l))if((0,Be.isObjectType)(u))o.push(k0(u,e,n));else if((0,Be.isInterfaceType)(u))o.push(M0(u,e,n));else if((0,Be.isUnionType)(u))o.push(U0(u,e,n));else if((0,Be.isInputObjectType)(u))o.push(C0(u,e,n));else if((0,Be.isEnumType)(u))o.push(B0(u,e,n));else if((0,Be.isScalarType)(u))o.push(V0(u,e,n));else throw new Error(`Unknown type ${u}.`)}return{kind:Be.Kind.DOCUMENT,definitions:o}}Qe.getDocumentNodeFromSchema=L0;function vB(e,t={}){let n=L0(e,t);return(0,Be.print)(n)}Qe.printSchemaWithDirectives=vB;function P0(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let c of e.extensionASTNodes)r.push(c);for(let c of r)if(c.operationTypes)for(let l of c.operationTypes)n.set(l.operation,l);let i=(0,IB.getRootTypeMap)(e);for(let[c,l]of n){let d=i.get(c);if(d!=null){let h=(0,Na.astFromType)(d);l!=null?l.type=h:n.set(c,{kind:Be.Kind.OPERATION_TYPE_DEFINITION,operation:c,type:h})}}let o=[...n.values()].filter(gB.isSome),s=Ea(e,e,t);if(!o.length&&!s.length)return null;let a={kind:o!=null?Be.Kind.SCHEMA_DEFINITION:Be.Kind.SCHEMA_EXTENSION,operationTypes:o,directives:s},u=(0,qr.getDescriptionNode)(e);return u&&(a.description=u),a}Qe.astFromSchema=P0;function x0(e,t,n){var r,i;return{kind:Be.Kind.DIRECTIVE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(o=>JN(o,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(o=>({kind:Be.Kind.NAME,value:o})))||[]}}Qe.astFromDirective=x0;function Ea(e,t,n){let r=(0,YN.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let o;if(r!=null)o=Qf(t,r);else{o=[];for(let s of i)s.directives&&o.push(...s.directives)}return o}Qe.getDirectiveNodes=Ea;function rd(e,t,n){var a,u;let r=[],i=null,o=(0,YN.getDirectivesInExtensions)(e,n),s;return o!=null?s=Qf(t,o):s=(a=e.astNode)==null?void 0:a.directives,s!=null&&(r=s.filter(c=>c.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(u=s.filter(c=>c.name.value==="deprecated"))==null?void 0:u[0])),e.deprecationReason!=null&&i==null&&(i=G0(e.deprecationReason)),i==null?r:[i].concat(r)}Qe.getDeprecatableDirectiveNodes=rd;function JN(e,t,n){var r;return{kind:Be.Kind.INPUT_VALUE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},type:(0,Na.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,QN.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:rd(e,t,n)}}Qe.astFromArg=JN;function k0(e,t,n){return{kind:Be.Kind.OBJECT_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>zN(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,Na.astFromType)(r)),directives:Ea(e,t,n)}}Qe.astFromObjectType=k0;function M0(e,t,n){let r={kind:Be.Kind.INTERFACE_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>zN(i,t,n)),directives:Ea(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,Na.astFromType)(i))),r}Qe.astFromInterfaceType=M0;function U0(e,t,n){return{kind:Be.Kind.UNION_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},directives:Ea(e,t,n),types:e.getTypes().map(r=>(0,Na.astFromType)(r))}}Qe.astFromUnionType=U0;function C0(e,t,n){return{kind:Be.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>$0(r,t,n)),directives:Ea(e,t,n)}}Qe.astFromInputObjectType=C0;function B0(e,t,n){return{kind:Be.Kind.ENUM_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>j0(r,t,n)),directives:Ea(e,t,n)}}Qe.astFromEnumType=B0;function V0(e,t,n){var s;let r=(0,YN.getDirectivesInExtensions)(e,n),i=r?Qf(t,r):((s=e.astNode)==null?void 0:s.directives)||[],o=e.specifiedByUrl||e.specifiedByURL;if(o&&!i.some(a=>a.name.value==="specifiedBy")){let a={url:o};i.push(nd("specifiedBy",a))}return{kind:Be.Kind.SCALAR_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},directives:i}}Qe.astFromScalarType=V0;function zN(e,t,n){return{kind:Be.Kind.FIELD_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},arguments:e.args.map(r=>JN(r,t,n)),type:(0,Na.astFromType)(e.type),directives:rd(e,t,n)}}Qe.astFromField=zN;function $0(e,t,n){var r;return{kind:Be.Kind.INPUT_VALUE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},type:(0,Na.astFromType)(e.type),directives:rd(e,t,n),defaultValue:(r=(0,QN.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}Qe.astFromInputField=$0;function j0(e,t,n){return{kind:Be.Kind.ENUM_VALUE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},directives:rd(e,t,n)}}Qe.astFromEnumValue=j0;function G0(e){return nd("deprecated",{reason:e},Be.GraphQLDeprecatedDirective)}Qe.makeDeprecatedDirective=G0;function nd(e,t,n){let r=[];if(n!=null)for(let i of n.args){let o=i.name,s=t[o];if(s!==void 0){let a=(0,QN.astFromValue)(s,i.type);a&&r.push({kind:Be.Kind.ARGUMENT,name:{kind:Be.Kind.NAME,value:o},value:a})}}else for(let i in t){let o=t[i],s=(0,EB.astFromValueUntyped)(o);s&&r.push({kind:Be.Kind.ARGUMENT,name:{kind:Be.Kind.NAME,value:i},value:s})}return{kind:Be.Kind.DIRECTIVE,name:{kind:Be.Kind.NAME,value:e},arguments:r}}Qe.makeDirectiveNode=nd;function Qf(e,t){let n=[];for(let r in t){let i=t[r],o=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let s of i)n.push(nd(r,s,o));else n.push(nd(r,i,o))}return n}Qe.makeDirectiveNodes=Qf});var K0=R(wu=>{"use strict";p();m();f();Object.defineProperty(wu,"__esModule",{value:!0});wu.createDefaultRules=wu.validateGraphQlDocuments=void 0;var id=(ie(),ae(de));function _B(e,t,n=q0()){var a;let r=new Set,i=new Map;for(let u of t)for(let c of u.definitions)c.kind===id.Kind.FRAGMENT_DEFINITION?i.set(c.name.value,c):r.add(c);let o={kind:id.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},s=(0,id.validate)(e,o,n);for(let u of s)if(u.stack=u.message,u.locations)for(let c of u.locations)u.stack+=` - at ${(a=u.source)==null?void 0:a.name}:${c.line}:${c.column}`;return s}wu.validateGraphQlDocuments=_B;function q0(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return id.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),id.specifiedRules.filter(t=>!e.includes(t.name))}wu.createDefaultRules=q0});var Q0=R(Yf=>{"use strict";p();m();f();Object.defineProperty(Yf,"__esModule",{value:!0});Yf.parseGraphQLJSON=void 0;var bB=(ie(),ae(de));function SB(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function DB(e){return JSON.parse(SB(e))}function OB(e,t,n){let r=DB(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,bB.buildClientSchema)(r,n);return{location:e,schema:i}}else if(typeof r=="string")return{location:e,rawSDL:r};throw new Error("Not valid JSON content")}Yf.parseGraphQLJSON=OB});var HN=R(rn=>{"use strict";p();m();f();Object.defineProperty(rn,"__esModule",{value:!0});rn.getBlockStringIndentation=rn.dedentBlockStringValue=rn.getLeadingCommentBlock=rn.getComment=rn.getDescription=rn.printWithComments=rn.printComment=rn.pushComment=rn.collectComment=rn.resetComments=void 0;var W0=(ie(),ae(de)),AB=80,Fu={};function wB(){Fu={}}rn.resetComments=wB;function FB(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(od(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)od(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(od(r,t,r.name.value),kB(r)&&r.arguments)for(let i of r.arguments)od(i,t,r.name.value,i.name.value)}break}}rn.collectComment=FB;function od(e,t,n,r){let i=XN(e);if(typeof i!="string"||i.length===0)return;let o=[t];n&&(o.push(n),r&&o.push(r));let s=o.join(".");Fu[s]||(Fu[s]=[]),Fu[s].push(i)}rn.pushComment=od;function X0(e){return` +`+I0(e.errors,t):g0(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(UC(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Pf(r,n)}else if(Array.isArray(e))return I0(e,n);return CC(e,n)}function UC(e){return typeof e.toJSON=="function"}function CC(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>v0?"["+BC(e)+"]":"{ "+n.map(([i,o])=>i+": "+Pf(o,t)).join(", ")+" }"}function I0(e,t){if(e.length===0)return"[]";if(t.length>v0)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";p();m();f();Object.defineProperty(Ou,"__esModule",{value:!0});Ou.relocatedError=Ou.createGraphQLError=void 0;var xN=(ie(),ae(de)),VC=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function $C(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>VC.includes(t))}function kN(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&$C(t.originalError)&&(t.originalError=kN(t.originalError.message,t.originalError)),xN.versionInfo.major>=17?new xN.GraphQLError(e,t):new xN.GraphQLError(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}Ou.createGraphQLError=kN;function jC(e,t){return kN(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Ou.relocatedError=jC});var Zl=L(Gr=>{"use strict";p();m();f();Object.defineProperty(Gr,"__esModule",{value:!0});Gr.hasOwnProperty=Gr.promiseReduce=Gr.isPromise=Gr.isObjectLike=Gr.isIterableObject=void 0;function GC(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}Gr.isIterableObject=GC;function qC(e){return typeof e=="object"&&e!==null}Gr.isObjectLike=qC;function _0(e){return(e==null?void 0:e.then)!=null}Gr.isPromise=_0;function KC(e,t,n){let r=n;for(let i of e)r=_0(r)?r.then(o=>t(o,i)):t(r,i);return r}Gr.promiseReduce=KC;function QC(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Gr.hasOwnProperty=QC});var UN=L(Uf=>{"use strict";p();m();f();Object.defineProperty(Uf,"__esModule",{value:!0});Uf.getArgumentValues=void 0;var MN=Xl(),ya=(ie(),ae(de)),Mf=kf(),YC=Zl();function JC(e,t,n={}){var s;let r={},o=((s=t.arguments)!=null?s:[]).reduce((a,u)=>U(w({},a),{[u.name.value]:u}),{});for(let{name:a,type:u,defaultValue:c}of e.args){let l=o[a];if(!l){if(c!==void 0)r[a]=c;else if((0,ya.isNonNullType)(u))throw(0,Mf.createGraphQLError)(`Argument "${a}" of required type "${(0,MN.inspect)(u)}" was not provided.`,{nodes:[t]});continue}let d=l.value,h=d.kind===ya.Kind.NULL;if(d.kind===ya.Kind.VARIABLE){let E=d.name.value;if(n==null||!(0,YC.hasOwnProperty)(n,E)){if(c!==void 0)r[a]=c;else if((0,ya.isNonNullType)(u))throw(0,Mf.createGraphQLError)(`Argument "${a}" of required type "${(0,MN.inspect)(u)}" was provided the variable "$${E}" which was not provided a runtime value.`,{nodes:[d]});continue}h=n[E]==null}if(h&&(0,ya.isNonNullType)(u))throw(0,Mf.createGraphQLError)(`Argument "${a}" of non-null type "${(0,MN.inspect)(u)}" must not be null.`,{nodes:[d]});let N=(0,ya.valueFromAST)(d,u,n);if(N===void 0)throw(0,Mf.createGraphQLError)(`Argument "${a}" has invalid value ${(0,ya.print)(d)}.`,{nodes:[d]});r[a]=N}return r}Uf.getArgumentValues=JC});var CN=L(xi=>{"use strict";p();m();f();Object.defineProperty(xi,"__esModule",{value:!0});xi.getDirective=xi.getDirectives=xi.getDirectiveInExtensions=xi.getDirectivesInExtensions=void 0;var S0=UN();function D0(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}xi.getDirectivesInExtensions=D0;function b0(e,t){let n=e.filter(r=>r.name===t);if(n.length)return n.map(r=>{var i;return(i=r.args)!=null?i:{}})}function O0(e,t,n=["directives"]){let r=n.reduce((o,s)=>o==null?o:o[s],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return b0(r,t);let i=[];for(let[o,s]of Object.entries(r))if(Array.isArray(s))for(let a of s)i.push({name:o,args:a});else i.push({name:o,args:s});return b0(i,t)}xi.getDirectiveInExtensions=O0;function zC(e,t,n=["directives"]){let r=D0(t,n);if(r!=null&&r.length>0)return r;let o=(e&&e.getDirectives?e.getDirectives():[]).reduce((u,c)=>(u[c.name]=c,u),{}),s=[];t.astNode&&s.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(s=[...s,...t.extensionASTNodes]);let a=[];for(let u of s)if(u.directives)for(let c of u.directives){let l=o[c.name.value];l&&a.push({name:c.name.value,args:(0,S0.getArgumentValues)(l,c)})}return a}xi.getDirectives=zC;function WC(e,t,n,r=["directives"]){let i=O0(t,n,r);if(i!=null)return i;let o=e&&e.getDirective?e.getDirective(n):void 0;if(o==null)return;let s=[];t.astNode&&s.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(s=[...s,...t.extensionASTNodes]);let a=[];for(let u of s)if(u.directives)for(let c of u.directives)c.name.value===n&&a.push((0,S0.getArgumentValues)(o,c));if(a.length)return a}xi.getDirective=WC});var BN=L(Cf=>{"use strict";p();m();f();Object.defineProperty(Cf,"__esModule",{value:!0});Cf.getFieldsWithDirectives=void 0;var HC=(ie(),ae(de));function XC(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(o=>r.includes(o.kind));for(let o of i){let s=o.name.value;if(o.fields!=null){for(let a of o.fields)if(a.directives&&a.directives.length>0){let u=a.name.value,c=`${s}.${u}`,l=a.directives.map(d=>({name:d.name.value,args:(d.arguments||[]).reduce((h,N)=>U(w({},h),{[N.name.value]:(0,HC.valueFromASTUntyped)(N.value)}),{})}));n[c]=l}}}return n}Cf.getFieldsWithDirectives=XC});var A0=L(Bf=>{"use strict";p();m();f();Object.defineProperty(Bf,"__esModule",{value:!0});Bf.getArgumentsWithDirectives=void 0;var VN=(ie(),ae(de));function ZC(e){return e.kind===VN.Kind.OBJECT_TYPE_DEFINITION||e.kind===VN.Kind.OBJECT_TYPE_EXTENSION}function eB(e){var r;let t={},n=e.definitions.filter(ZC);for(let i of n)if(i.fields!=null)for(let o of i.fields){let s=(r=o.arguments)==null?void 0:r.filter(u=>{var c;return(c=u.directives)==null?void 0:c.length});if(!(s!=null&&s.length))continue;let a=t[`${i.name.value}.${o.name.value}`]={};for(let u of s){let c=u.directives.map(l=>({name:l.name.value,args:(l.arguments||[]).reduce((d,h)=>U(w({},d),{[h.name.value]:(0,VN.valueFromASTUntyped)(h.value)}),{})}));a[u.name.value]=c}}return t}Bf.getArgumentsWithDirectives=eB});var $N=L(Vf=>{"use strict";p();m();f();Object.defineProperty(Vf,"__esModule",{value:!0});Vf.getImplementingTypes=void 0;var tB=(ie(),ae(de));function nB(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let o=n[i];(0,tB.isObjectType)(o)&&o.getInterfaces().find(a=>a.name===e)&&r.push(o.name)}return r}Vf.getImplementingTypes=nB});var GN=L($f=>{"use strict";p();m();f();Object.defineProperty($f,"__esModule",{value:!0});$f.astFromType=void 0;var rB=Xl(),Ta=(ie(),ae(de));function jN(e){if((0,Ta.isNonNullType)(e)){let t=jN(e.ofType);if(t.kind===Ta.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,rB.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Ta.Kind.NON_NULL_TYPE,type:t}}else if((0,Ta.isListType)(e))return{kind:Ta.Kind.LIST_TYPE,type:jN(e.ofType)};return{kind:Ta.Kind.NAMED_TYPE,name:{kind:Ta.Kind.NAME,value:e.name}}}$f.astFromType=jN});var Gf=L(jf=>{"use strict";p();m();f();Object.defineProperty(jf,"__esModule",{value:!0});jf.astFromValueUntyped=void 0;var ki=(ie(),ae(de));function qN(e){if(e===null)return{kind:ki.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=qN(n);r!=null&&t.push(r)}return{kind:ki.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=qN(r);i&&t.push({kind:ki.Kind.OBJECT_FIELD,name:{kind:ki.Kind.NAME,value:n},value:i})}return{kind:ki.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ki.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:ki.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return iB.test(t)?{kind:ki.Kind.INT,value:t}:{kind:ki.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ki.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}jf.astFromValueUntyped=qN;var iB=/^-?(?:0|[1-9][0-9]*)$/});var F0=L(qf=>{"use strict";p();m();f();Object.defineProperty(qf,"__esModule",{value:!0});qf.astFromValue=void 0;var oB=Xl(),Rr=(ie(),ae(de)),sB=Gf(),w0=Zl();function ed(e,t){if((0,Rr.isNonNullType)(t)){let n=ed(e,t.ofType);return(n==null?void 0:n.kind)===Rr.Kind.NULL?null:n}if(e===null)return{kind:Rr.Kind.NULL};if(e===void 0)return null;if((0,Rr.isListType)(t)){let n=t.ofType;if((0,w0.isIterableObject)(e)){let r=[];for(let i of e){let o=ed(i,n);o!=null&&r.push(o)}return{kind:Rr.Kind.LIST,values:r}}return ed(e,n)}if((0,Rr.isInputObjectType)(t)){if(!(0,w0.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=ed(e[r.name],r.type);i&&n.push({kind:Rr.Kind.OBJECT_FIELD,name:{kind:Rr.Kind.NAME,value:r.name},value:i})}return{kind:Rr.Kind.OBJECT,fields:n}}if((0,Rr.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,Rr.isEnumType)(t)?{kind:Rr.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&aB.test(n)?{kind:Rr.Kind.INT,value:n}:(0,sB.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,oB.inspect)(t))}qf.astFromValue=ed;var aB=/^-?(?:0|[1-9][0-9]*)$/});var L0=L(Kf=>{"use strict";p();m();f();Object.defineProperty(Kf,"__esModule",{value:!0});Kf.getDescriptionNode=void 0;var uB=(ie(),ae(de));function cB(e){var t;if((t=e.astNode)!=null&&t.description)return U(w({},e.astNode.description),{block:!0});if(e.description)return{kind:uB.Kind.STRING,value:e.description,block:!0}}Kf.getDescriptionNode=cB});var Au=L(tr=>{"use strict";p();m();f();Object.defineProperty(tr,"__esModule",{value:!0});tr.memoize2of5=tr.memoize2of4=tr.memoize5=tr.memoize4=tr.memoize3=tr.memoize2=tr.memoize1=void 0;function lB(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let o=e(r);return t.set(r,o),o}return i}}tr.memoize1=lB;function dB(e){let t=new WeakMap;return function(r,i){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let a=e(r,i);return o.set(i,a),a}let s=o.get(i);if(s===void 0){let a=e(r,i);return o.set(i,a),a}return s}}tr.memoize2=dB;function pB(e){let t=new WeakMap;return function(r,i,o){let s=t.get(r);if(!s){s=new WeakMap,t.set(r,s);let c=new WeakMap;s.set(i,c);let l=e(r,i,o);return c.set(o,l),l}let a=s.get(i);if(!a){a=new WeakMap,s.set(i,a);let c=e(r,i,o);return a.set(o,c),c}let u=a.get(o);if(u===void 0){let c=e(r,i,o);return a.set(o,c),c}return u}}tr.memoize3=pB;function fB(e){let t=new WeakMap;return function(r,i,o,s){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let d=new WeakMap;a.set(i,d);let h=new WeakMap;d.set(o,h);let N=e(r,i,o,s);return h.set(s,N),N}let u=a.get(i);if(!u){u=new WeakMap,a.set(i,u);let d=new WeakMap;u.set(o,d);let h=e(r,i,o,s);return d.set(s,h),h}let c=u.get(o);if(!c){let d=new WeakMap;u.set(o,d);let h=e(r,i,o,s);return d.set(s,h),h}let l=c.get(s);if(l===void 0){let d=e(r,i,o,s);return c.set(s,d),d}return l}}tr.memoize4=fB;function mB(e){let t=new WeakMap;return function(r,i,o,s,a){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let N=new WeakMap;u.set(i,N);let E=new WeakMap;N.set(o,E);let D=new WeakMap;E.set(s,D);let A=e(r,i,o,s,a);return D.set(a,A),A}let c=u.get(i);if(!c){c=new WeakMap,u.set(i,c);let N=new WeakMap;c.set(o,N);let E=new WeakMap;N.set(s,E);let D=e(r,i,o,s,a);return E.set(a,D),D}let l=c.get(o);if(!l){l=new WeakMap,c.set(o,l);let N=new WeakMap;l.set(s,N);let E=e(r,i,o,s,a);return N.set(a,E),E}let d=l.get(s);if(!d){d=new WeakMap,l.set(s,d);let N=e(r,i,o,s,a);return d.set(a,N),N}let h=d.get(a);if(h===void 0){let N=e(r,i,o,s,a);return d.set(a,N),N}return h}}tr.memoize5=mB;function hB(e){let t=new WeakMap;return function(r,i,o,s){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i,o,s);return a.set(i,c),c}let u=a.get(i);if(u===void 0){let c=e(r,i,o,s);return a.set(i,c),c}return u}}tr.memoize2of4=hB;function yB(e){let t=new WeakMap;return function(r,i,o,s,a){let u=t.get(r);if(!u){u=new WeakMap,t.set(r,u);let l=e(r,i,o,s,a);return u.set(i,l),l}let c=u.get(i);if(c===void 0){let l=e(r,i,o,s,a);return u.set(i,l),l}return c}}tr.memoize2of5=yB});var td=L(Pr=>{"use strict";p();m();f();Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getRootTypeMap=Pr.getRootTypes=Pr.getRootTypeNames=Pr.getDefinedRootType=void 0;var TB=kf(),KN=Au();function NB(e,t,n){let i=(0,Pr.getRootTypeMap)(e).get(t);if(i==null)throw(0,TB.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Pr.getDefinedRootType=NB;Pr.getRootTypeNames=(0,KN.memoize1)(function(t){let n=(0,Pr.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Pr.getRootTypes=(0,KN.memoize1)(function(t){let n=(0,Pr.getRootTypeMap)(t);return new Set(n.values())});Pr.getRootTypeMap=(0,KN.memoize1)(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let o=t.getSubscriptionType();return o&&n.set("subscription",o),n})});var WN=L(Qe=>{"use strict";p();m();f();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.makeDirectiveNodes=Qe.makeDirectiveNode=Qe.makeDeprecatedDirective=Qe.astFromEnumValue=Qe.astFromInputField=Qe.astFromField=Qe.astFromScalarType=Qe.astFromEnumType=Qe.astFromInputObjectType=Qe.astFromUnionType=Qe.astFromInterfaceType=Qe.astFromObjectType=Qe.astFromArg=Qe.getDeprecatableDirectiveNodes=Qe.getDirectiveNodes=Qe.astFromDirective=Qe.astFromSchema=Qe.printSchemaWithDirectives=Qe.getDocumentNodeFromSchema=void 0;var Be=(ie(),ae(de)),Na=GN(),QN=F0(),EB=Gf(),qr=L0(),YN=CN(),gB=Hl(),IB=td();function R0(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=P0(e,n),o=i!=null?[i]:[],s=e.getDirectives();for(let a of s)(0,Be.isSpecifiedDirective)(a)||o.push(x0(a,e,n));for(let a in r){let u=r[a],c=(0,Be.isSpecifiedScalarType)(u),l=(0,Be.isIntrospectionType)(u);if(!(c||l))if((0,Be.isObjectType)(u))o.push(k0(u,e,n));else if((0,Be.isInterfaceType)(u))o.push(M0(u,e,n));else if((0,Be.isUnionType)(u))o.push(U0(u,e,n));else if((0,Be.isInputObjectType)(u))o.push(C0(u,e,n));else if((0,Be.isEnumType)(u))o.push(B0(u,e,n));else if((0,Be.isScalarType)(u))o.push(V0(u,e,n));else throw new Error(`Unknown type ${u}.`)}return{kind:Be.Kind.DOCUMENT,definitions:o}}Qe.getDocumentNodeFromSchema=R0;function vB(e,t={}){let n=R0(e,t);return(0,Be.print)(n)}Qe.printSchemaWithDirectives=vB;function P0(e,t){let n=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),r=[];if(e.astNode!=null&&r.push(e.astNode),e.extensionASTNodes!=null)for(let c of e.extensionASTNodes)r.push(c);for(let c of r)if(c.operationTypes)for(let l of c.operationTypes)n.set(l.operation,l);let i=(0,IB.getRootTypeMap)(e);for(let[c,l]of n){let d=i.get(c);if(d!=null){let h=(0,Na.astFromType)(d);l!=null?l.type=h:n.set(c,{kind:Be.Kind.OPERATION_TYPE_DEFINITION,operation:c,type:h})}}let o=[...n.values()].filter(gB.isSome),s=Ea(e,e,t);if(!o.length&&!s.length)return null;let a={kind:o!=null?Be.Kind.SCHEMA_DEFINITION:Be.Kind.SCHEMA_EXTENSION,operationTypes:o,directives:s},u=(0,qr.getDescriptionNode)(e);return u&&(a.description=u),a}Qe.astFromSchema=P0;function x0(e,t,n){var r,i;return{kind:Be.Kind.DIRECTIVE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(o=>JN(o,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(o=>({kind:Be.Kind.NAME,value:o})))||[]}}Qe.astFromDirective=x0;function Ea(e,t,n){let r=(0,YN.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let o;if(r!=null)o=Qf(t,r);else{o=[];for(let s of i)s.directives&&o.push(...s.directives)}return o}Qe.getDirectiveNodes=Ea;function rd(e,t,n){var a,u;let r=[],i=null,o=(0,YN.getDirectivesInExtensions)(e,n),s;return o!=null?s=Qf(t,o):s=(a=e.astNode)==null?void 0:a.directives,s!=null&&(r=s.filter(c=>c.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(u=s.filter(c=>c.name.value==="deprecated"))==null?void 0:u[0])),e.deprecationReason!=null&&i==null&&(i=G0(e.deprecationReason)),i==null?r:[i].concat(r)}Qe.getDeprecatableDirectiveNodes=rd;function JN(e,t,n){var r;return{kind:Be.Kind.INPUT_VALUE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},type:(0,Na.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,QN.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:rd(e,t,n)}}Qe.astFromArg=JN;function k0(e,t,n){return{kind:Be.Kind.OBJECT_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>zN(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,Na.astFromType)(r)),directives:Ea(e,t,n)}}Qe.astFromObjectType=k0;function M0(e,t,n){let r={kind:Be.Kind.INTERFACE_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>zN(i,t,n)),directives:Ea(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,Na.astFromType)(i))),r}Qe.astFromInterfaceType=M0;function U0(e,t,n){return{kind:Be.Kind.UNION_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},directives:Ea(e,t,n),types:e.getTypes().map(r=>(0,Na.astFromType)(r))}}Qe.astFromUnionType=U0;function C0(e,t,n){return{kind:Be.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>$0(r,t,n)),directives:Ea(e,t,n)}}Qe.astFromInputObjectType=C0;function B0(e,t,n){return{kind:Be.Kind.ENUM_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>j0(r,t,n)),directives:Ea(e,t,n)}}Qe.astFromEnumType=B0;function V0(e,t,n){var s;let r=(0,YN.getDirectivesInExtensions)(e,n),i=r?Qf(t,r):((s=e.astNode)==null?void 0:s.directives)||[],o=e.specifiedByUrl||e.specifiedByURL;if(o&&!i.some(a=>a.name.value==="specifiedBy")){let a={url:o};i.push(nd("specifiedBy",a))}return{kind:Be.Kind.SCALAR_TYPE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},directives:i}}Qe.astFromScalarType=V0;function zN(e,t,n){return{kind:Be.Kind.FIELD_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},arguments:e.args.map(r=>JN(r,t,n)),type:(0,Na.astFromType)(e.type),directives:rd(e,t,n)}}Qe.astFromField=zN;function $0(e,t,n){var r;return{kind:Be.Kind.INPUT_VALUE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},type:(0,Na.astFromType)(e.type),directives:rd(e,t,n),defaultValue:(r=(0,QN.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}Qe.astFromInputField=$0;function j0(e,t,n){return{kind:Be.Kind.ENUM_VALUE_DEFINITION,description:(0,qr.getDescriptionNode)(e),name:{kind:Be.Kind.NAME,value:e.name},directives:rd(e,t,n)}}Qe.astFromEnumValue=j0;function G0(e){return nd("deprecated",{reason:e},Be.GraphQLDeprecatedDirective)}Qe.makeDeprecatedDirective=G0;function nd(e,t,n){let r=[];if(n!=null)for(let i of n.args){let o=i.name,s=t[o];if(s!==void 0){let a=(0,QN.astFromValue)(s,i.type);a&&r.push({kind:Be.Kind.ARGUMENT,name:{kind:Be.Kind.NAME,value:o},value:a})}}else for(let i in t){let o=t[i],s=(0,EB.astFromValueUntyped)(o);s&&r.push({kind:Be.Kind.ARGUMENT,name:{kind:Be.Kind.NAME,value:i},value:s})}return{kind:Be.Kind.DIRECTIVE,name:{kind:Be.Kind.NAME,value:e},arguments:r}}Qe.makeDirectiveNode=nd;function Qf(e,t){let n=[];for(let r in t){let i=t[r],o=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let s of i)n.push(nd(r,s,o));else n.push(nd(r,i,o))}return n}Qe.makeDirectiveNodes=Qf});var K0=L(wu=>{"use strict";p();m();f();Object.defineProperty(wu,"__esModule",{value:!0});wu.createDefaultRules=wu.validateGraphQlDocuments=void 0;var id=(ie(),ae(de));function _B(e,t,n=q0()){var a;let r=new Set,i=new Map;for(let u of t)for(let c of u.definitions)c.kind===id.Kind.FRAGMENT_DEFINITION?i.set(c.name.value,c):r.add(c);let o={kind:id.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},s=(0,id.validate)(e,o,n);for(let u of s)if(u.stack=u.message,u.locations)for(let c of u.locations)u.stack+=` + at ${(a=u.source)==null?void 0:a.name}:${c.line}:${c.column}`;return s}wu.validateGraphQlDocuments=_B;function q0(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return id.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),id.specifiedRules.filter(t=>!e.includes(t.name))}wu.createDefaultRules=q0});var Q0=L(Yf=>{"use strict";p();m();f();Object.defineProperty(Yf,"__esModule",{value:!0});Yf.parseGraphQLJSON=void 0;var bB=(ie(),ae(de));function SB(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function DB(e){return JSON.parse(SB(e))}function OB(e,t,n){let r=DB(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,bB.buildClientSchema)(r,n);return{location:e,schema:i}}else if(typeof r=="string")return{location:e,rawSDL:r};throw new Error("Not valid JSON content")}Yf.parseGraphQLJSON=OB});var XN=L(rn=>{"use strict";p();m();f();Object.defineProperty(rn,"__esModule",{value:!0});rn.getBlockStringIndentation=rn.dedentBlockStringValue=rn.getLeadingCommentBlock=rn.getComment=rn.getDescription=rn.printWithComments=rn.printComment=rn.pushComment=rn.collectComment=rn.resetComments=void 0;var W0=(ie(),ae(de)),AB=80,Fu={};function wB(){Fu={}}rn.resetComments=wB;function FB(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(od(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)od(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(od(r,t,r.name.value),kB(r)&&r.arguments)for(let i of r.arguments)od(i,t,r.name.value,i.name.value)}break}}rn.collectComment=FB;function od(e,t,n,r){let i=HN(e);if(typeof i!="string"||i.length===0)return;let o=[t];n&&(o.push(n),r&&o.push(r));let s=o.join(".");Fu[s]||(Fu[s]=[]),Fu[s].push(i)}rn.pushComment=od;function H0(e){return` # `+e.replace(/\n/g,` -# `)}rn.printComment=X0;function pe(e,t){return e?e.filter(n=>n).join(t||""):""}function Y0(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!=null?t:!1}function RB(e){return(t,n,r,i,o)=>{var l;let s=[],a=i.reduce((d,h)=>(["fields","arguments","values"].includes(h)&&d.name&&s.push(d.name.value),d[h]),o[0]),u=[...s,(l=a==null?void 0:a.name)==null?void 0:l.value].filter(Boolean).join("."),c=[];return t.kind.includes("Definition")&&Fu[u]&&c.push(...Fu[u]),pe([...c.map(X0),t.description,e(t,n,r,i,o)],` +# `)}rn.printComment=H0;function pe(e,t){return e?e.filter(n=>n).join(t||""):""}function Y0(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!=null?t:!1}function LB(e){return(t,n,r,i,o)=>{var l;let s=[],a=i.reduce((d,h)=>(["fields","arguments","values"].includes(h)&&d.name&&s.push(d.name.value),d[h]),o[0]),u=[...s,(l=a==null?void 0:a.name)==null?void 0:l.value].filter(Boolean).join("."),c=[];return t.kind.includes("Definition")&&Fu[u]&&c.push(...Fu[u]),pe([...c.map(H0),t.description,e(t,n,r,i,o)],` `)}}function sd(e){return e&&` ${e.replace(/\n/g,` `)}`}function mi(e){return e&&e.length!==0?`{ ${sd(pe(e,` `))} -}`:""}function Wt(e,t,n){return t?e+t+(n||""):""}function LB(e,t=!1){let n=e.replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` +}`:""}function Ht(e,t,n){return t?e+t+(n||""):""}function RB(e,t=!1){let n=e.replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` `)===-1?`"""${n.replace(/"$/,`" `)}"""`:`""" ${t?n:sd(n)} """`}var J0={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>pe(e.definitions,` -`)},OperationDefinition:{leave:e=>{let t=Wt("(",pe(e.variableDefinitions,", "),")");return pe([e.operation,pe([e.name,t]),pe(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Wt(" = ",n)+Wt(" ",pe(r," "))},SelectionSet:{leave:({selections:e})=>mi(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=Wt("",e,": ")+t,s=o+Wt("(",pe(n,", "),")");return s.length>AB&&(s=o+Wt(`( +`)},OperationDefinition:{leave:e=>{let t=Ht("(",pe(e.variableDefinitions,", "),")");return pe([e.operation,pe([e.name,t]),pe(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ht(" = ",n)+Ht(" ",pe(r," "))},SelectionSet:{leave:({selections:e})=>mi(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=Ht("",e,": ")+t,s=o+Ht("(",pe(n,", "),")");return s.length>AB&&(s=o+Ht(`( `,sd(pe(n,` `)),` -)`)),pe([s,pe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Wt(" ",pe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>pe(["...",Wt("on ",e),pe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Wt("(",pe(n,", "),")")} on ${t} ${Wt("",pe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?LB(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+pe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+pe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Wt("(",pe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>pe(["schema",pe(e," "),mi(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>pe(["scalar",e,pe(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pe(["type",e,Wt("implements ",pe(t," & ")),pe(n," "),mi(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(Y0(t)?Wt(`( +)`)),pe([s,pe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ht(" ",pe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>pe(["...",Ht("on ",e),pe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Ht("(",pe(n,", "),")")} on ${t} ${Ht("",pe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?RB(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+pe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+pe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ht("(",pe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>pe(["schema",pe(e," "),mi(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>pe(["scalar",e,pe(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pe(["type",e,Ht("implements ",pe(t," & ")),pe(n," "),mi(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(Y0(t)?Ht(`( `,sd(pe(t,` `)),` -)`):Wt("(",pe(t,", "),")"))+": "+n+Wt(" ",pe(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>pe([e+": "+t,Wt("= ",n),pe(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pe(["interface",e,Wt("implements ",pe(t," & ")),pe(n," "),mi(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>pe(["union",e,pe(t," "),Wt("= ",pe(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>pe(["enum",e,pe(t," "),mi(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>pe([e,pe(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>pe(["input",e,pe(t," "),mi(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(Y0(t)?Wt(`( +)`):Ht("(",pe(t,", "),")"))+": "+n+Ht(" ",pe(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>pe([e+": "+t,Ht("= ",n),pe(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pe(["interface",e,Ht("implements ",pe(t," & ")),pe(n," "),mi(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>pe(["union",e,pe(t," "),Ht("= ",pe(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>pe(["enum",e,pe(t," "),mi(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>pe([e,pe(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>pe(["input",e,pe(t," "),mi(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(Y0(t)?Ht(`( `,sd(pe(t,` `)),` -)`):Wt("(",pe(t,", "),")"))+(n?" repeatable":"")+" on "+pe(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>pe(["extend schema",pe(e," "),mi(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>pe(["extend scalar",e,pe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pe(["extend type",e,Wt("implements ",pe(t," & ")),pe(n," "),mi(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pe(["extend interface",e,Wt("implements ",pe(t," & ")),pe(n," "),mi(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>pe(["extend union",e,pe(t," "),Wt("= ",pe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>pe(["extend enum",e,pe(t," "),mi(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>pe(["extend input",e,pe(t," "),mi(n)]," ")}},PB=Object.keys(J0).reduce((e,t)=>U(w({},e),{[t]:{leave:RB(J0[t].leave)}}),{});function xB(e){return(0,W0.visit)(e,PB)}rn.printWithComments=xB;function kB(e){return e.kind==="FieldDefinition"}function MB(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return XN(e)}rn.getDescription=MB;function XN(e){let t=H0(e);if(t!==void 0)return Z0(` -${t}`)}rn.getComment=XN;function H0(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===W0.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` -`):void 0}rn.getLeadingCommentBlock=H0;function Z0(e){let t=e.split(/\r\n|[\n\r]/g),n=eO(t);if(n!==0)for(let r=1;r0&&z0(t[0]);)t.shift();for(;t.length>0&&z0(t[t.length-1]);)t.pop();return t.join(` -`)}rn.dedentBlockStringValue=Z0;function eO(e){let t=null;for(let n=1;n{"use strict";p();m();f();Object.defineProperty(Os,"__esModule",{value:!0});Os.isDescribable=Os.transformCommentsToDescriptions=Os.parseGraphQLSDL=void 0;var Kr=(ie(),ae(de)),nO=HN();function UB(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=rO(t,n),n.noLocation&&(r=(0,Kr.parse)((0,Kr.print)(r),n))):r=(0,Kr.parse)(new Kr.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Kr.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}Os.parseGraphQLSDL=UB;function rO(e,t={}){let n=(0,Kr.parse)(e,U(w({},t),{noLocation:!1}));return(0,Kr.visit)(n,{leave:i=>{if(iO(i)){let o=(0,nO.getLeadingCommentBlock)(i);if(o!==void 0){let s=(0,nO.dedentBlockStringValue)(` +)`):Ht("(",pe(t,", "),")"))+(n?" repeatable":"")+" on "+pe(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>pe(["extend schema",pe(e," "),mi(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>pe(["extend scalar",e,pe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pe(["extend type",e,Ht("implements ",pe(t," & ")),pe(n," "),mi(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pe(["extend interface",e,Ht("implements ",pe(t," & ")),pe(n," "),mi(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>pe(["extend union",e,pe(t," "),Ht("= ",pe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>pe(["extend enum",e,pe(t," "),mi(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>pe(["extend input",e,pe(t," "),mi(n)]," ")}},PB=Object.keys(J0).reduce((e,t)=>U(w({},e),{[t]:{leave:LB(J0[t].leave)}}),{});function xB(e){return(0,W0.visit)(e,PB)}rn.printWithComments=xB;function kB(e){return e.kind==="FieldDefinition"}function MB(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return HN(e)}rn.getDescription=MB;function HN(e){let t=X0(e);if(t!==void 0)return Z0(` +${t}`)}rn.getComment=HN;function X0(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===W0.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` +`):void 0}rn.getLeadingCommentBlock=X0;function Z0(e){let t=e.split(/\r\n|[\n\r]/g),n=eO(t);if(n!==0)for(let r=1;r0&&z0(t[0]);)t.shift();for(;t.length>0&&z0(t[t.length-1]);)t.pop();return t.join(` +`)}rn.dedentBlockStringValue=Z0;function eO(e){let t=null;for(let n=1;n{"use strict";p();m();f();Object.defineProperty(Os,"__esModule",{value:!0});Os.isDescribable=Os.transformCommentsToDescriptions=Os.parseGraphQLSDL=void 0;var Kr=(ie(),ae(de)),nO=XN();function UB(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=rO(t,n),n.noLocation&&(r=(0,Kr.parse)((0,Kr.print)(r),n))):r=(0,Kr.parse)(new Kr.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Kr.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}Os.parseGraphQLSDL=UB;function rO(e,t={}){let n=(0,Kr.parse)(e,U(w({},t),{noLocation:!1}));return(0,Kr.visit)(n,{leave:i=>{if(iO(i)){let o=(0,nO.getLeadingCommentBlock)(i);if(o!==void 0){let s=(0,nO.dedentBlockStringValue)(` `+o),a=s.includes(` `);return i.description?U(w({},i),{description:U(w({},i.description),{value:i.description.value+` -`+s,block:!0})}):U(w({},i),{description:{kind:Kr.Kind.STRING,value:s,block:a}})}}}})}Os.transformCommentsToDescriptions=rO;function iO(e){return(0,Kr.isTypeSystemDefinitionNode)(e)||e.kind===Kr.Kind.FIELD_DEFINITION||e.kind===Kr.Kind.INPUT_VALUE_DEFINITION||e.kind===Kr.Kind.ENUM_VALUE_DEFINITION}Os.isDescribable=iO});var fO=R(zf=>{"use strict";p();m();f();Object.defineProperty(zf,"__esModule",{value:!0});zf.buildOperationNodeForField=void 0;var Ve=(ie(),ae(de)),cO=td(),tE=[],Jf=new Map;function lO(e){tE.push(e)}function sO(){tE=[]}function aO(){Jf=new Map}function CB({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:o,circularReferenceDepth:s,argNames:a,selectedFields:u=!0}){sO(),aO();let c=(0,cO.getRootTypeNames)(e),l=BB({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:o||1/0,circularReferenceDepth:s||1,argNames:a,selectedFields:u,rootTypeNames:c});return l.variableDefinitions=[...tE],sO(),aO(),l}zf.buildOperationNodeForField=CB;function BB({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:o,circularReferenceDepth:s,argNames:a,selectedFields:u,rootTypeNames:c}){let l=(0,cO.getDefinedRootType)(e,n),d=l.getFields()[t],h=`${t}_${n}`;if(d.args)for(let N of d.args){let E=N.name;(!a||a.includes(E))&&lO(dO(N,E))}return{kind:Ve.Kind.OPERATION_DEFINITION,operation:n,name:{kind:Ve.Kind.NAME,value:h},variableDefinitions:[],selectionSet:{kind:Ve.Kind.SELECTION_SET,selections:[pO({type:l,field:d,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:o,circularReferenceDepth:s,schema:e,depth:0,argNames:a,selectedFields:u,rootTypeNames:c})]}}}function eE({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:h,rootTypeNames:N}){if(!(typeof h=="boolean"&&l>a)){if((0,Ve.isUnionType)(t)){let E=t.getTypes();return{kind:Ve.Kind.SELECTION_SET,selections:E.filter(D=>!ZN([...o,D],{depth:u})).map(D=>({kind:Ve.Kind.INLINE_FRAGMENT,typeCondition:{kind:Ve.Kind.NAMED_TYPE,name:{kind:Ve.Kind.NAME,value:D.name}},selectionSet:eE({parent:t,type:D,models:n,path:i,ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:h,rootTypeNames:N})})).filter(D=>{var A,F;return((F=(A=D==null?void 0:D.selectionSet)==null?void 0:A.selections)==null?void 0:F.length)>0})}}if((0,Ve.isInterfaceType)(t)){let E=Object.values(c.getTypeMap()).filter(D=>(0,Ve.isObjectType)(D)&&D.getInterfaces().includes(t));return{kind:Ve.Kind.SELECTION_SET,selections:E.filter(D=>!ZN([...o,D],{depth:u})).map(D=>({kind:Ve.Kind.INLINE_FRAGMENT,typeCondition:{kind:Ve.Kind.NAMED_TYPE,name:{kind:Ve.Kind.NAME,value:D.name}},selectionSet:eE({parent:t,type:D,models:n,path:i,ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:h,rootTypeNames:N})})).filter(D=>{var A,F;return((F=(A=D==null?void 0:D.selectionSet)==null?void 0:A.selections)==null?void 0:F.length)>0})}}if((0,Ve.isObjectType)(t)&&!N.has(t.name)){let E=s.includes(t.name)||s.includes(`${e.name}.${i[i.length-1]}`),D=n.includes(t.name);if(!r&&D&&!E)return{kind:Ve.Kind.SELECTION_SET,selections:[{kind:Ve.Kind.FIELD,name:{kind:Ve.Kind.NAME,value:"id"}}]};let A=t.getFields();return{kind:Ve.Kind.SELECTION_SET,selections:Object.keys(A).filter(F=>!ZN([...o,(0,Ve.getNamedType)(A[F].type)],{depth:u})).map(F=>{let Y=typeof h=="object"?h[F]:!0;return Y?pO({type:t,field:A[F],models:n,path:[...i,F],ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:Y,rootTypeNames:N}):null}).filter(F=>{var Y,J;return F==null?!1:"selectionSet"in F?!!((J=(Y=F.selectionSet)==null?void 0:Y.selections)!=null&&J.length):!0})}}}}function dO(e,t){function n(r){return(0,Ve.isListType)(r)?{kind:Ve.Kind.LIST_TYPE,type:n(r.ofType)}:(0,Ve.isNonNullType)(r)?{kind:Ve.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:Ve.Kind.NAMED_TYPE,name:{kind:Ve.Kind.NAME,value:r.name}}}return{kind:Ve.Kind.VARIABLE_DEFINITION,variable:{kind:Ve.Kind.VARIABLE,name:{kind:Ve.Kind.NAME,value:t||e.name}},type:n(e.type)}}function uO(e,t){return[...t,e].join("_")}function pO({type:e,field:t,models:n,firstCall:r,path:i,ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:h,rootTypeNames:N}){let E=(0,Ve.getNamedType)(t.type),D=[],A=!1;if(t.args&&t.args.length&&(D=t.args.map(Z=>{let X=uO(Z.name,i);return d&&!d.includes(X)?((0,Ve.isNonNullType)(Z.type)&&(A=!0),null):(r||lO(dO(Z,X)),{kind:Ve.Kind.ARGUMENT,name:{kind:Ve.Kind.NAME,value:Z.name},value:{kind:Ve.Kind.VARIABLE,name:{kind:Ve.Kind.NAME,value:uO(Z.name,i)}}})}).filter(Boolean)),A)return null;let F=[...i,t.name],Y=F.join("."),J=t.name;return Jf.has(Y)&&Jf.get(Y)!==t.type.toString()&&(J+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),Jf.set(Y,t.type.toString()),!(0,Ve.isScalarType)(E)&&!(0,Ve.isEnumType)(E)?U(w({kind:Ve.Kind.FIELD,name:{kind:Ve.Kind.NAME,value:t.name}},J!==t.name&&{alias:{kind:Ve.Kind.NAME,value:J}}),{selectionSet:eE({parent:e,type:E,models:n,firstCall:r,path:F,ancestors:[...o,e],ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l+1,argNames:d,selectedFields:h,rootTypeNames:N})||void 0,arguments:D}):U(w({kind:Ve.Kind.FIELD,name:{kind:Ve.Kind.NAME,value:t.name}},J!==t.name&&{alias:{kind:Ve.Kind.NAME,value:J}}),{arguments:D})}function ZN(e,t={depth:1}){let n=e[e.length-1];return(0,Ve.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var hO=R(Wf=>{"use strict";p();m();f();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.DirectiveLocation=void 0;var mO;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(mO||(Wf.DirectiveLocation=mO={}))});var ga=R(Xf=>{"use strict";p();m();f();Object.defineProperty(Xf,"__esModule",{value:!0});Xf.MapperKind=void 0;var yO;(function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"})(yO||(Xf.MapperKind=yO={}))});var nE=R(Hf=>{"use strict";p();m();f();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.getObjectTypeFromTypeMap=void 0;var VB=(ie(),ae(de));function $B(e,t){if(t){let n=e[t.name];if((0,VB.isObjectType)(n))return n}}Hf.getObjectTypeFromTypeMap=$B});var oE=R(Mi=>{"use strict";p();m();f();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.getBuiltInForStub=Mi.isNamedStub=Mi.createStub=Mi.createNamedStub=void 0;var xn=(ie(),ae(de));function rE(e,t){let n;return t==="object"?n=xn.GraphQLObjectType:t==="interface"?n=xn.GraphQLInterfaceType:n=xn.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:xn.GraphQLString}}})}Mi.createNamedStub=rE;function iE(e,t){switch(e.kind){case xn.Kind.LIST_TYPE:return new xn.GraphQLList(iE(e.type,t));case xn.Kind.NON_NULL_TYPE:return new xn.GraphQLNonNull(iE(e.type,t));default:return t==="output"?rE(e.name.value,"object"):rE(e.name.value,"input")}}Mi.createStub=iE;function jB(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}Mi.isNamedStub=jB;function GB(e){switch(e.name){case xn.GraphQLInt.name:return xn.GraphQLInt;case xn.GraphQLFloat.name:return xn.GraphQLFloat;case xn.GraphQLString.name:return xn.GraphQLString;case xn.GraphQLBoolean.name:return xn.GraphQLBoolean;case xn.GraphQLID.name:return xn.GraphQLID;default:return e}}Mi.getBuiltInForStub=GB});var em=R(Zf=>{"use strict";p();m();f();Object.defineProperty(Zf,"__esModule",{value:!0});Zf.rewireTypes=void 0;var En=(ie(),ae(de)),TO=oE();function qB(e,t){let n=Object.create(null);for(let h in e)n[h]=e[h];let r=Object.create(null);for(let h in n){let N=n[h];if(N==null||h.startsWith("__"))continue;let E=N.name;if(!E.startsWith("__")){if(r[E]!=null){console.warn(`Duplicate schema type name ${E} found; keeping the existing one found in the schema`);continue}r[E]=N}}for(let h in r)r[h]=a(r[h]);let i=t.map(h=>o(h));return{typeMap:r,directives:i};function o(h){if((0,En.isSpecifiedDirective)(h))return h;let N=h.toConfig();return N.args=s(N.args),new En.GraphQLDirective(N)}function s(h){let N={};for(let E in h){let D=h[E],A=d(D.type);A!=null&&(D.type=A,N[E]=D)}return N}function a(h){if((0,En.isObjectType)(h)){let N=h.toConfig(),E=U(w({},N),{fields:()=>u(N.fields),interfaces:()=>l(N.interfaces)});return new En.GraphQLObjectType(E)}else if((0,En.isInterfaceType)(h)){let N=h.toConfig(),E=U(w({},N),{fields:()=>u(N.fields)});return"interfaces"in E&&(E.interfaces=()=>l(N.interfaces)),new En.GraphQLInterfaceType(E)}else if((0,En.isUnionType)(h)){let N=h.toConfig(),E=U(w({},N),{types:()=>l(N.types)});return new En.GraphQLUnionType(E)}else if((0,En.isInputObjectType)(h)){let N=h.toConfig(),E=U(w({},N),{fields:()=>c(N.fields)});return new En.GraphQLInputObjectType(E)}else if((0,En.isEnumType)(h)){let N=h.toConfig();return new En.GraphQLEnumType(N)}else if((0,En.isScalarType)(h)){if((0,En.isSpecifiedScalarType)(h))return h;let N=h.toConfig();return new En.GraphQLScalarType(N)}throw new Error(`Unexpected schema type: ${h}`)}function u(h){let N={};for(let E in h){let D=h[E],A=d(D.type);A!=null&&D.args&&(D.type=A,D.args=s(D.args),N[E]=D)}return N}function c(h){let N={};for(let E in h){let D=h[E],A=d(D.type);A!=null&&(D.type=A,N[E]=D)}return N}function l(h){let N=[];for(let E of h){let D=d(E);D!=null&&N.push(D)}return N}function d(h){if((0,En.isListType)(h)){let N=d(h.ofType);return N!=null?new En.GraphQLList(N):null}else if((0,En.isNonNullType)(h)){let N=d(h.ofType);return N!=null?new En.GraphQLNonNull(N):null}else if((0,En.isNamedType)(h)){let N=n[h.name];return N===void 0&&(N=(0,TO.isNamedStub)(h)?(0,TO.getBuiltInForStub)(h):a(h),r[N.name]=n[h.name]=N),N!=null?r[N.name]:null}return null}}Zf.rewireTypes=qB});var sE=R(Ui=>{"use strict";p();m();f();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.parseInputValueLiteral=Ui.parseInputValue=Ui.serializeInputValue=Ui.transformInputValue=void 0;var tm=(ie(),ae(de)),KB=Xl();function Ru(e,t,n=null,r=null){if(t==null)return t;let i=(0,tm.getNullableType)(e);if((0,tm.isLeafType)(i))return n!=null?n(i,t):t;if((0,tm.isListType)(i))return(0,KB.asArray)(t).map(o=>Ru(i.ofType,o,n,r));if((0,tm.isInputObjectType)(i)){let o=i.getFields(),s={};for(let a in t){let u=o[a];u!=null&&(s[a]=Ru(u.type,t[a],n,r))}return r!=null?r(i,s):s}}Ui.transformInputValue=Ru;function QB(e,t){return Ru(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}Ui.serializeInputValue=QB;function YB(e,t){return Ru(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}Ui.parseInputValue=YB;function JB(e,t){return Ru(e,t,(n,r)=>n.parseLiteral(r,{}))}Ui.parseInputValueLiteral=JB});var xu=R(Pu=>{"use strict";p();m();f();Object.defineProperty(Pu,"__esModule",{value:!0});Pu.correctASTNodes=Pu.mapSchema=void 0;var Pe=(ie(),ae(de)),Lu=nE(),Ze=ga(),zB=em(),NO=sE();function WB(e,t={}){let n=IO(gO(aE(EO(XB(aE(EO(e.getTypeMap(),e,NO.serializeInputValue),e,t,a=>(0,Pe.isLeafType)(a)),e,t),e,NO.parseInputValue),e,t,a=>!(0,Pe.isLeafType)(a)),e,t),e,t),r=e.getDirectives(),i=HB(r,e,t),{typeMap:o,directives:s}=(0,zB.rewireTypes)(n,i);return new Pe.GraphQLSchema(U(w({},e.toConfig()),{query:(0,Lu.getObjectTypeFromTypeMap)(o,(0,Lu.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,Lu.getObjectTypeFromTypeMap)(o,(0,Lu.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,Lu.getObjectTypeFromTypeMap)(o,(0,Lu.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(o),directives:s}))}Pu.mapSchema=WB;function aE(e,t,n,r=()=>!0){let i={};for(let o in e)if(!o.startsWith("__")){let s=e[o];if(s==null||!r(s)){i[o]=s;continue}let a=eV(t,n,o);if(a==null){i[o]=s;continue}let u=a(s,t);if(u===void 0){i[o]=s;continue}i[o]=u}return i}function XB(e,t,n){let r=oV(n);return r?aE(e,t,{[Ze.MapperKind.ENUM_TYPE]:i=>{let o=i.toConfig(),s=o.values,a={};for(let u in s){let c=s[u],l=r(c,i.name,t,u);if(l===void 0)a[u]=c;else if(Array.isArray(l)){let[d,h]=l;a[d]=h===void 0?c:h}else l!==null&&(a[u]=l)}return ad(new Pe.GraphQLEnumType(U(w({},o),{values:a})))}},i=>(0,Pe.isEnumType)(i)):e}function EO(e,t,n){let r=IO(e,t,{[Ze.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let o=nm(e,i.type);if(o!=null)return U(w({},i),{defaultValue:n(o,i.defaultValue)})}});return gO(r,t,{[Ze.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let o=nm(r,i.type);if(o!=null)return U(w({},i),{defaultValue:n(o,i.defaultValue)})}})}function nm(e,t){if((0,Pe.isListType)(t)){let n=nm(e,t.ofType);return n!=null?new Pe.GraphQLList(n):null}else if((0,Pe.isNonNullType)(t)){let n=nm(e,t.ofType);return n!=null?new Pe.GraphQLNonNull(n):null}else if((0,Pe.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function gO(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let o=e[i];if(!(0,Pe.isObjectType)(o)&&!(0,Pe.isInterfaceType)(o)&&!(0,Pe.isInputObjectType)(o)){r[i]=o;continue}let s=nV(t,n,i);if(s==null){r[i]=o;continue}let a=o.toConfig(),u=a.fields,c={};for(let l in u){let d=u[l],h=s(d,l,i,t);if(h===void 0)c[l]=d;else if(Array.isArray(h)){let[N,E]=h;E.astNode!=null&&(E.astNode=U(w({},E.astNode),{name:U(w({},E.astNode.name),{value:N})})),c[N]=E===void 0?d:E}else h!==null&&(c[l]=h)}(0,Pe.isObjectType)(o)?r[i]=ad(new Pe.GraphQLObjectType(U(w({},a),{fields:c}))):(0,Pe.isInterfaceType)(o)?r[i]=ad(new Pe.GraphQLInterfaceType(U(w({},a),{fields:c}))):r[i]=ad(new Pe.GraphQLInputObjectType(U(w({},a),{fields:c})))}return r}function IO(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let o=e[i];if(!(0,Pe.isObjectType)(o)&&!(0,Pe.isInterfaceType)(o)){r[i]=o;continue}let s=rV(n);if(s==null){r[i]=o;continue}let a=o.toConfig(),u=a.fields,c={};for(let l in u){let d=u[l],h=d.args;if(h==null){c[l]=d;continue}let N=Object.keys(h);if(!N.length){c[l]=d;continue}let E={};for(let D of N){let A=h[D],F=s(A,l,i,t);if(F===void 0)E[D]=A;else if(Array.isArray(F)){let[Y,J]=F;E[Y]=J}else F!==null&&(E[D]=F)}c[l]=U(w({},d),{args:E})}(0,Pe.isObjectType)(o)?r[i]=new Pe.GraphQLObjectType(U(w({},a),{fields:c})):(0,Pe.isInterfaceType)(o)?r[i]=new Pe.GraphQLInterfaceType(U(w({},a),{fields:c})):r[i]=new Pe.GraphQLInputObjectType(U(w({},a),{fields:c}))}return r}function HB(e,t,n){let r=iV(n);if(r==null)return e.slice();let i=[];for(let o of e){let s=r(o,t);s===void 0?i.push(o):s!==null&&i.push(s)}return i}function ZB(e,t){var i,o,s;let n=e.getType(t),r=[Ze.MapperKind.TYPE];return(0,Pe.isObjectType)(n)?(r.push(Ze.MapperKind.COMPOSITE_TYPE,Ze.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Ze.MapperKind.ROOT_OBJECT,Ze.MapperKind.QUERY):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(Ze.MapperKind.ROOT_OBJECT,Ze.MapperKind.MUTATION):t===((s=e.getSubscriptionType())==null?void 0:s.name)&&r.push(Ze.MapperKind.ROOT_OBJECT,Ze.MapperKind.SUBSCRIPTION)):(0,Pe.isInputObjectType)(n)?r.push(Ze.MapperKind.INPUT_OBJECT_TYPE):(0,Pe.isInterfaceType)(n)?r.push(Ze.MapperKind.COMPOSITE_TYPE,Ze.MapperKind.ABSTRACT_TYPE,Ze.MapperKind.INTERFACE_TYPE):(0,Pe.isUnionType)(n)?r.push(Ze.MapperKind.COMPOSITE_TYPE,Ze.MapperKind.ABSTRACT_TYPE,Ze.MapperKind.UNION_TYPE):(0,Pe.isEnumType)(n)?r.push(Ze.MapperKind.ENUM_TYPE):(0,Pe.isScalarType)(n)&&r.push(Ze.MapperKind.SCALAR_TYPE),r}function eV(e,t,n){let r=ZB(e,n),i,o=[...r];for(;!i&&o.length>0;){let s=o.pop();i=t[s]}return i!=null?i:null}function tV(e,t){var i,o,s;let n=e.getType(t),r=[Ze.MapperKind.FIELD];return(0,Pe.isObjectType)(n)?(r.push(Ze.MapperKind.COMPOSITE_FIELD,Ze.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Ze.MapperKind.ROOT_FIELD,Ze.MapperKind.QUERY_ROOT_FIELD):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(Ze.MapperKind.ROOT_FIELD,Ze.MapperKind.MUTATION_ROOT_FIELD):t===((s=e.getSubscriptionType())==null?void 0:s.name)&&r.push(Ze.MapperKind.ROOT_FIELD,Ze.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,Pe.isInterfaceType)(n)?r.push(Ze.MapperKind.COMPOSITE_FIELD,Ze.MapperKind.INTERFACE_FIELD):(0,Pe.isInputObjectType)(n)&&r.push(Ze.MapperKind.INPUT_OBJECT_FIELD),r}function nV(e,t,n){let r=tV(e,n),i,o=[...r];for(;!i&&o.length>0;){let s=o.pop();i=t[s]}return i!=null?i:null}function rV(e){let t=e[Ze.MapperKind.ARGUMENT];return t!=null?t:null}function iV(e){let t=e[Ze.MapperKind.DIRECTIVE];return t!=null?t:null}function oV(e){let t=e[Ze.MapperKind.ENUM_VALUE];return t!=null?t:null}function ad(e){if((0,Pe.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=U(w({},t.astNode),{kind:Pe.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>U(w({},n),{kind:Pe.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new Pe.GraphQLObjectType(t)}else if((0,Pe.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=U(w({},t.astNode),{kind:Pe.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>U(w({},n),{kind:Pe.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new Pe.GraphQLInterfaceType(t)}else if((0,Pe.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=U(w({},t.astNode),{kind:Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>U(w({},n),{kind:Pe.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new Pe.GraphQLInputObjectType(t)}else if((0,Pe.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=U(w({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>U(w({},n),{values:void 0}))),new Pe.GraphQLEnumType(t)}else return e}Pu.correctASTNodes=ad});var vO=R(im=>{"use strict";p();m();f();Object.defineProperty(im,"__esModule",{value:!0});im.filterSchema=void 0;var rm=(ie(),ae(de)),mo=ga(),sV=xu();function aV({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:o=void 0,inputObjectFieldFilter:s=void 0,argumentFilter:a=void 0}){return(0,sV.mapSchema)(e,{[mo.MapperKind.QUERY]:c=>uE(c,"Query",r,a),[mo.MapperKind.MUTATION]:c=>uE(c,"Mutation",r,a),[mo.MapperKind.SUBSCRIPTION]:c=>uE(c,"Subscription",r,a),[mo.MapperKind.OBJECT_TYPE]:c=>t(c.name,c)?cE(rm.GraphQLObjectType,c,i||n,a):null,[mo.MapperKind.INTERFACE_TYPE]:c=>t(c.name,c)?cE(rm.GraphQLInterfaceType,c,o||n,a):null,[mo.MapperKind.INPUT_OBJECT_TYPE]:c=>t(c.name,c)?cE(rm.GraphQLInputObjectType,c,s||n):null,[mo.MapperKind.UNION_TYPE]:c=>t(c.name,c)?void 0:null,[mo.MapperKind.ENUM_TYPE]:c=>t(c.name,c)?void 0:null,[mo.MapperKind.SCALAR_TYPE]:c=>t(c.name,c)?void 0:null})}im.filterSchema=aV;function uE(e,t,n,r){if(n||r){let i=e.toConfig();for(let o in i.fields){let s=i.fields[o];if(n&&!n(t,o,i.fields[o]))delete i.fields[o];else if(r&&s.args)for(let a in s.args)r(t,o,a,s.args[a])||delete s.args[a]}return new rm.GraphQLObjectType(i)}return e}function cE(e,t,n,r){if(n||r){let i=t.toConfig();for(let o in i.fields){let s=i.fields[o];if(n&&!n(t.name,o,i.fields[o]))delete i.fields[o];else if(r&&"args"in s)for(let a in s.args)r(t.name,o,a,s.args[a])||delete s.args[a]}return new e(i)}}});var bO=R(ku=>{"use strict";p();m();f();Object.defineProperty(ku,"__esModule",{value:!0});ku.healTypes=ku.healSchema=void 0;var Ci=(ie(),ae(de));function uV(e){return _O(e.getTypeMap(),e.getDirectives()),e}ku.healSchema=uV;function _O(e,t){let n=Object.create(null);for(let c in e){let l=e[c];if(l==null||c.startsWith("__"))continue;let d=l.name;if(!d.startsWith("__")){if(n[d]!=null){console.warn(`Duplicate schema type name ${d} found; keeping the existing one found in the schema`);continue}n[d]=l}}for(let c in n){let l=n[c];e[c]=l}for(let c of t)c.args=c.args.filter(l=>(l.type=u(l.type),l.type!==null));for(let c in e){let l=e[c];!c.startsWith("__")&&c in n&&l!=null&&r(l)}for(let c in e)!c.startsWith("__")&&!(c in n)&&delete e[c];function r(c){if((0,Ci.isObjectType)(c)){i(c),o(c);return}else if((0,Ci.isInterfaceType)(c)){i(c),"getInterfaces"in c&&o(c);return}else if((0,Ci.isUnionType)(c)){a(c);return}else if((0,Ci.isInputObjectType)(c)){s(c);return}else if((0,Ci.isLeafType)(c))return;throw new Error(`Unexpected schema type: ${c}`)}function i(c){let l=c.getFields();for(let[d,h]of Object.entries(l))h.args.map(N=>(N.type=u(N.type),N.type===null?null:N)).filter(Boolean),h.type=u(h.type),h.type===null&&delete l[d]}function o(c){if("getInterfaces"in c){let l=c.getInterfaces();l.push(...l.splice(0).map(d=>u(d)).filter(Boolean))}}function s(c){let l=c.getFields();for(let[d,h]of Object.entries(l))h.type=u(h.type),h.type===null&&delete l[d]}function a(c){let l=c.getTypes();l.push(...l.splice(0).map(d=>u(d)).filter(Boolean))}function u(c){if((0,Ci.isListType)(c)){let l=u(c.ofType);return l!=null?new Ci.GraphQLList(l):null}else if((0,Ci.isNonNullType)(c)){let l=u(c.ofType);return l!=null?new Ci.GraphQLNonNull(l):null}else if((0,Ci.isNamedType)(c)){let l=e[c.name];if(l&&c!==l)return l}return c}}ku.healTypes=_O});var SO=R(om=>{"use strict";p();m();f();Object.defineProperty(om,"__esModule",{value:!0});om.getResolversFromSchema=void 0;var Ia=(ie(),ae(de));function cV(e,t){var i,o;let n=Object.create(null),r=e.getTypeMap();for(let s in r)if(!s.startsWith("__")){let a=r[s];if((0,Ia.isScalarType)(a)){if(!(0,Ia.isSpecifiedScalarType)(a)){let u=a.toConfig();delete u.astNode,n[s]=new Ia.GraphQLScalarType(u)}}else if((0,Ia.isEnumType)(a)){n[s]={};let u=a.getValues();for(let c of u)n[s][c.name]=c.value}else if((0,Ia.isInterfaceType)(a))a.resolveType!=null&&(n[s]={__resolveType:a.resolveType});else if((0,Ia.isUnionType)(a))a.resolveType!=null&&(n[s]={__resolveType:a.resolveType});else if((0,Ia.isObjectType)(a)){n[s]={},a.isTypeOf!=null&&(n[s].__isTypeOf=a.isTypeOf);let u=a.getFields();for(let c in u){let l=u[c];if(l.subscribe!=null&&(n[s][c]=n[s][c]||{},n[s][c].subscribe=l.subscribe),l.resolve!=null&&((i=l.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((o=l.resolve)==null?void 0:o.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[s][c]=n[s][c]||{},n[s][c].resolve=l.resolve}}}}return n}om.getResolversFromSchema=cV});var OO=R(sm=>{"use strict";p();m();f();Object.defineProperty(sm,"__esModule",{value:!0});sm.forEachField=void 0;var DO=(ie(),ae(de));function lV(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,DO.getNamedType)(i).name.startsWith("__")&&(0,DO.isObjectType)(i)){let o=i.getFields();for(let s in o){let a=o[s];t(a,r,s)}}}}sm.forEachField=lV});var AO=R(am=>{"use strict";p();m();f();Object.defineProperty(am,"__esModule",{value:!0});am.forEachDefaultValue=void 0;var lE=(ie(),ae(de));function dV(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,lE.getNamedType)(i).name.startsWith("__")){if((0,lE.isObjectType)(i)){let o=i.getFields();for(let s in o){let a=o[s];for(let u of a.args)u.defaultValue=t(u.type,u.defaultValue)}}else if((0,lE.isInputObjectType)(i)){let o=i.getFields();for(let s in o){let a=o[s];a.defaultValue=t(a.type,a.defaultValue)}}}}}am.forEachDefaultValue=dV});var fE=R(um=>{"use strict";p();m();f();Object.defineProperty(um,"__esModule",{value:!0});um.addTypes=void 0;var dE=(ie(),ae(de)),pE=nE(),pV=em();function fV(e,t){let n=e.toConfig(),r={};for(let a of n.types)r[a.name]=a;let i={};for(let a of n.directives)i[a.name]=a;for(let a of t)(0,dE.isNamedType)(a)?r[a.name]=a:(0,dE.isDirective)(a)&&(i[a.name]=a);let{typeMap:o,directives:s}=(0,pV.rewireTypes)(r,Object.values(i));return new dE.GraphQLSchema(U(w({},n),{query:(0,pE.getObjectTypeFromTypeMap)(o,e.getQueryType()),mutation:(0,pE.getObjectTypeFromTypeMap)(o,e.getMutationType()),subscription:(0,pE.getObjectTypeFromTypeMap)(o,e.getSubscriptionType()),types:Object.values(o),directives:s}))}um.addTypes=fV});var FO=R(lm=>{"use strict";p();m();f();Object.defineProperty(lm,"__esModule",{value:!0});lm.pruneSchema=void 0;var _n=(ie(),ae(de)),mV=$N(),hV=ga(),yV=xu(),TV=td();function NV(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:o,skipUnusedTypesPruning:s}=t,a=[],u=e;do{let c=EV(u);if(i){let l=[];for(let d in u.getTypeMap()){if(d.startsWith("__"))continue;let h=u.getType(d);h&&i(h)&&l.push(d)}c=wO(l,u,c)}a=[],u=(0,yV.mapSchema)(u,{[hV.MapperKind.TYPE]:l=>!c.has(l.name)&&!(0,_n.isSpecifiedScalarType)(l)?((0,_n.isUnionType)(l)||(0,_n.isInputObjectType)(l)||(0,_n.isInterfaceType)(l)||(0,_n.isObjectType)(l)||(0,_n.isScalarType)(l))&&(s||(0,_n.isUnionType)(l)&&r&&!Object.keys(l.getTypes()).length||((0,_n.isInputObjectType)(l)||(0,_n.isInterfaceType)(l)||(0,_n.isObjectType)(l))&&n&&!Object.keys(l.getFields()).length||(0,_n.isInterfaceType)(l)&&o)?l:(a.push(l.name),c.delete(l.name),null):l})}while(a.length);return u}lm.pruneSchema=NV;function EV(e){let t=[];for(let n of(0,TV.getRootTypes)(e))t.push(n.name);return wO(t,e)}function wO(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let o=t.getType(i);if(o){if((0,_n.isUnionType)(o)&&e.push(...o.getTypes().map(s=>s.name)),(0,_n.isInterfaceType)(o)&&r[i]===!0&&(e.push(...(0,mV.getImplementingTypes)(o.name,t)),r[i]=!1),(0,_n.isEnumType)(o)&&e.push(...o.getValues().flatMap(s=>s.astNode?cm(t,s.astNode):[])),"getInterfaces"in o&&e.push(...o.getInterfaces().map(s=>s.name)),"getFields"in o){let s=o.getFields(),a=Object.entries(s);if(!a.length)continue;for(let[,u]of a){(0,_n.isObjectType)(o)&&e.push(...u.args.flatMap(l=>{let d=[(0,_n.getNamedType)(l.type).name];return l.astNode&&d.push(...cm(t,l.astNode)),d}));let c=(0,_n.getNamedType)(u.type);e.push(c.name),u.astNode&&e.push(...cm(t,u.astNode)),(0,_n.isInterfaceType)(c)&&!(c.name in r)&&(r[c.name]=!0)}}o.astNode&&e.push(...cm(t,o.astNode)),n.add(i)}}return n}function cm(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,o;return(o=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(s=>(0,_n.getNamedType)(s.type).name))!=null?o:[]})}});var LO=R(dm=>{"use strict";p();m();f();Object.defineProperty(dm,"__esModule",{value:!0});dm.mergeDeep=void 0;var gV=Xl();function RO(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let o of e)if(mE(r)&&mE(o)){if(t){let s=Object.getPrototypeOf(i),a=Object.getPrototypeOf(o);if(a)for(let u of Object.getOwnPropertyNames(a)){let c=Object.getOwnPropertyDescriptor(a,u);(0,gV.isSome)(c)&&Object.defineProperty(s,u,c)}}for(let s in o)mE(o[s])?s in i?i[s]=RO([i[s],o[s]],t,n):Object.assign(i,{[s]:o[s]}):n&&Array.isArray(i[s])?Array.isArray(o[s])?i[s].push(...o[s]):i[s].push(o[s]):Object.assign(i,{[s]:o[s]})}else if(n&&Array.isArray(r))Array.isArray(o)?r.push(...o):r.push(o);else if(n&&Array.isArray(o))return[r,...o];return i}dm.mergeDeep=RO;function mE(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var PO=R(pm=>{"use strict";p();m();f();Object.defineProperty(pm,"__esModule",{value:!0});pm.parseSelectionSet=void 0;var IV=(ie(),ae(de));function vV(e,t){return(0,IV.parse)(e,t).definitions[0].selectionSet}pm.parseSelectionSet=vV});var xO=R(fm=>{"use strict";p();m();f();Object.defineProperty(fm,"__esModule",{value:!0});fm.getResponseKeyFromInfo=void 0;function _V(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}fm.getResponseKeyFromInfo=_V});var kO=R(Bi=>{"use strict";p();m();f();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.modifyObjectFields=Bi.selectObjectFields=Bi.removeObjectFields=Bi.appendObjectFields=void 0;var mm=(ie(),ae(de)),bV=fE(),hm=ga(),va=xu();function SV(e,t,n){return e.getType(t)==null?(0,bV.addTypes)(e,[new mm.GraphQLObjectType({name:t,fields:n})]):(0,va.mapSchema)(e,{[hm.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),o=i.fields,s={};for(let a in o)s[a]=o[a];for(let a in n)s[a]=n[a];return(0,va.correctASTNodes)(new mm.GraphQLObjectType(U(w({},i),{fields:s})))}}})}Bi.appendObjectFields=SV;function DV(e,t,n){let r={};return[(0,va.mapSchema)(e,{[hm.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let s=o.toConfig(),a=s.fields,u={};for(let c in a){let l=a[c];n(c,l)?r[c]=l:u[c]=l}return(0,va.correctASTNodes)(new mm.GraphQLObjectType(U(w({},s),{fields:u})))}}}),r]}Bi.removeObjectFields=DV;function OV(e,t,n){let r={};return(0,va.mapSchema)(e,{[hm.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let s=i.toConfig().fields;for(let a in s){let u=s[a];n(a,u)&&(r[a]=u)}}}}),r}Bi.selectObjectFields=OV;function AV(e,t,n,r){let i={};return[(0,va.mapSchema)(e,{[hm.MapperKind.OBJECT_TYPE]:s=>{if(s.name===t){let a=s.toConfig(),u=a.fields,c={};for(let l in u){let d=u[l];n(l,d)?i[l]=d:c[l]=d}for(let l in r){let d=r[l];c[l]=d}return(0,va.correctASTNodes)(new mm.GraphQLObjectType(U(w({},a),{fields:c})))}}}),i]}Bi.modifyObjectFields=AV});var MO=R(ym=>{"use strict";p();m();f();Object.defineProperty(ym,"__esModule",{value:!0});ym.renameType=void 0;var Qr=(ie(),ae(de));function wV(e,t){if((0,Qr.isObjectType)(e))return new Qr.GraphQLObjectType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isInterfaceType)(e))return new Qr.GraphQLInterfaceType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isUnionType)(e))return new Qr.GraphQLUnionType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isInputObjectType)(e))return new Qr.GraphQLInputObjectType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isEnumType)(e))return new Qr.GraphQLEnumType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isScalarType)(e))return new Qr.GraphQLScalarType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}ym.renameType=wV});var BO=R(Tm=>{"use strict";p();m();f();Object.defineProperty(Tm,"__esModule",{value:!0});Tm.mapAsyncIterator=void 0;var FV=Zl();function RV(e,t,n,r){let i,o,s;r&&(s=c=>{let l=r();return(0,FV.isPromise)(l)?l.then(()=>c):c}),typeof e.return=="function"&&(i=e.return,o=c=>{let l=()=>Promise.reject(c);return i.call(e).then(l,l)});function a(c){return c.done?s?s(c):c:UO(c.value,t).then(CO,o)}let u;if(n){let c=n;u=l=>UO(l,c).then(CO,o)}return{next(){return e.next().then(a,u)},return(){let c=i?i.call(e).then(a,u):Promise.resolve({value:void 0,done:!0});return s?c.then(s):c},throw(c){return typeof e.throw=="function"?e.throw(c).then(a,u):Promise.reject(c).catch(o)},[Symbol.asyncIterator](){return this}}}Tm.mapAsyncIterator=RV;function UO(e,t){return new Promise(n=>n(t(e)))}function CO(e){return{value:e,done:!1}}});var VO=R(Mu=>{"use strict";p();m();f();Object.defineProperty(Mu,"__esModule",{value:!0});Mu.createVariableNameGenerator=Mu.updateArgument=void 0;var _a=(ie(),ae(de)),LV=GN();function PV(e,t,n,r,i,o,s){if(e[r]={kind:_a.Kind.ARGUMENT,name:{kind:_a.Kind.NAME,value:r},value:{kind:_a.Kind.VARIABLE,name:{kind:_a.Kind.NAME,value:i}}},t[i]={kind:_a.Kind.VARIABLE_DEFINITION,variable:{kind:_a.Kind.VARIABLE,name:{kind:_a.Kind.NAME,value:i}},type:(0,LV.astFromType)(o)},s!==void 0){n[i]=s;return}i in n&&delete n[i]}Mu.updateArgument=PV;function xV(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Mu.createVariableNameGenerator=xV});var $O=R(Nm=>{"use strict";p();m();f();Object.defineProperty(Nm,"__esModule",{value:!0});Nm.implementsAbstractType=void 0;var hE=(ie(),ae(de));function kV(e,t,n){return n==null||t==null?!1:t===n?!0:(0,hE.isCompositeType)(t)&&(0,hE.isCompositeType)(n)?(0,hE.doTypesOverlap)(e,t,n):!1}Nm.implementsAbstractType=kV});var jO=R(Em=>{"use strict";p();m();f();Object.defineProperty(Em,"__esModule",{value:!0});Em.observableToAsyncIterable=void 0;function MV(e){let t=[],n=[],r=!0,i=l=>{t.length!==0?t.shift()({value:l,done:!1}):n.push({value:l,done:!1})},o=l=>{t.length!==0?t.shift()({value:{errors:[l]},done:!1}):n.push({value:{errors:[l]},done:!1})},s=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},a=()=>new Promise(l=>{if(n.length!==0){let d=n.shift();l(d)}else t.push(l)}),u=e.subscribe({next(l){i(l)},error(l){o(l)},complete(){s()}}),c=()=>{if(r){r=!1,u.unsubscribe();for(let l of t)l({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?a():this.return()},return(){return c(),Promise.resolve({value:void 0,done:!0})},throw(l){return c(),Promise.reject(l)},[Symbol.asyncIterator](){return this}}}Em.observableToAsyncIterable=MV});var GO=R(gm=>{"use strict";p();m();f();Object.defineProperty(gm,"__esModule",{value:!0});gm.AccumulatorMap=void 0;var yE=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};gm.AccumulatorMap=yE});var TE=R(Uu=>{"use strict";p();m();f();Object.defineProperty(Uu,"__esModule",{value:!0});Uu.GraphQLStreamDirective=Uu.GraphQLDeferDirective=void 0;var Yr=(ie(),ae(de));Uu.GraphQLDeferDirective=new Yr.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Yr.DirectiveLocation.FRAGMENT_SPREAD,Yr.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Yr.GraphQLNonNull(Yr.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Yr.GraphQLString,description:"Unique name"}}});Uu.GraphQLStreamDirective=new Yr.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Yr.DirectiveLocation.FIELD],args:{if:{type:new Yr.GraphQLNonNull(Yr.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Yr.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Yr.GraphQLInt,description:"Number of items to return immediately"}}})});var gE=R(Er=>{"use strict";p();m();f();Object.defineProperty(Er,"__esModule",{value:!0});Er.collectSubFields=Er.getDeferValues=Er.getFieldEntryKey=Er.doesFragmentConditionMatch=Er.shouldIncludeNode=Er.collectFields=void 0;var Vi=(ie(),ae(de)),vm=GO(),UV=TE(),CV=Au();function Cu(e,t,n,r,i,o,s,a){for(let u of i.selections)switch(u.kind){case Vi.Kind.FIELD:{if(!Im(n,u))continue;o.add(qO(u),u);break}case Vi.Kind.INLINE_FRAGMENT:{if(!Im(n,u)||!NE(e,u,r))continue;let c=EE(n,u);if(c){let l=new vm.AccumulatorMap;Cu(e,t,n,r,u.selectionSet,l,s,a),s.push({label:c.label,fields:l})}else Cu(e,t,n,r,u.selectionSet,o,s,a);break}case Vi.Kind.FRAGMENT_SPREAD:{let c=u.name.value;if(!Im(n,u))continue;let l=EE(n,u);if(a.has(c)&&!l)continue;let d=t[c];if(!d||!NE(e,d,r))continue;if(l||a.add(c),l){let h=new vm.AccumulatorMap;Cu(e,t,n,r,d.selectionSet,h,s,a),s.push({label:l.label,fields:h})}else Cu(e,t,n,r,d.selectionSet,o,s,a);break}}}function BV(e,t,n,r,i){let o=new vm.AccumulatorMap,s=[];return Cu(e,t,n,r,i,o,s,new Set),{fields:o,patches:s}}Er.collectFields=BV;function Im(e,t){let n=(0,Vi.getDirectiveValues)(Vi.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Vi.getDirectiveValues)(Vi.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}Er.shouldIncludeNode=Im;function NE(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Vi.typeFromAST)(e,r);return i===n?!0:(0,Vi.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}Er.doesFragmentConditionMatch=NE;function qO(e){return e.alias?e.alias.value:e.name.value}Er.getFieldEntryKey=qO;function EE(e,t){let n=(0,Vi.getDirectiveValues)(UV.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Er.getDeferValues=EE;Er.collectSubFields=(0,CV.memoize5)(function(t,n,r,i,o){let s=new vm.AccumulatorMap,a=new Set,u=[],c={fields:s,patches:u};for(let l of o)l.selectionSet&&Cu(t,n,r,i,l.selectionSet,s,u,a);return c})});var IE=R(Bu=>{"use strict";p();m();f();Object.defineProperty(Bu,"__esModule",{value:!0});Bu.getOperationASTFromRequest=Bu.getOperationASTFromDocument=void 0;var VV=(ie(),ae(de)),$V=Au();function KO(e,t){let n=(0,VV.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}Bu.getOperationASTFromDocument=KO;Bu.getOperationASTFromRequest=(0,$V.memoize1)(function(t){return KO(t.document,t.operationName)})});var JO=R(ws=>{"use strict";p();m();f();Object.defineProperty(ws,"__esModule",{value:!0});ws.visitResult=ws.visitErrors=ws.visitData=void 0;var As=(ie(),ae(de)),vE=gE(),jV=IE();function _E(e,t,n){if(Array.isArray(e))return e.map(r=>_E(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let o=r[i];Object.defineProperty(r,i,{value:_E(o,t,n)})}return n!=null?n(r):r}return e}ws.visitData=_E;function GV(e,t){return e.map(n=>t(n))}ws.visitErrors=GV;function qV(e,t,n,r,i){let o=t.document.definitions.reduce((h,N)=>(N.kind===As.Kind.FRAGMENT_DEFINITION&&(h[N.name.value]=N),h),{}),s=t.variables||{},a={segmentInfoMap:new Map,unpathedErrors:new Set},u=e.data,c=e.errors,l=c!=null&&i!=null,d=(0,jV.getOperationASTFromRequest)(t);return u!=null&&d!=null&&(e.data=YV(u,d,n,o,s,r,l?c:void 0,a)),c!=null&&i&&(e.errors=KV(c,i,a)),e}ws.visitResult=qV;function KV(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,o=t.__unpathed;return e.map(s=>{let a=r.get(s),u=a==null?s:a.reduceRight((c,l)=>{let d=l.type.name,h=t[d];if(h==null)return c;let N=h[l.fieldName];return N==null?c:N(c,l.pathIndex)},s);return o&&i.has(s)?o(u):u})}function QV(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function YV(e,t,n,r,i,o,s,a){let u=QV(n,t),{fields:c}=(0,vE.collectFields)(n,r,i,u,t.selectionSet);return bE(e,u,c,n,r,i,o,0,s,a)}function bE(e,t,n,r,i,o,s,a,u,c){var Y;let l=t.getFields(),d=s==null?void 0:s[t.name],h=d==null?void 0:d.__enter,N=h!=null?h(e):e,E,D=null;if(u!=null){E=zV(u,a),D=E.errorMap;for(let J of E.unpathedErrors)c.unpathedErrors.add(J)}for(let[J,Z]of n){let X=Z[0].name.value,_e=(Y=l[X])==null?void 0:Y.type;if(_e==null)switch(X){case"__typename":_e=As.TypeNameMetaFieldDef.type;break;case"__schema":_e=As.SchemaMetaFieldDef.type;break;case"__type":_e=As.TypeMetaFieldDef.type;break}let ut=a+1,kt;D&&(kt=D[J],kt!=null&&delete D[J],WV(t,X,ut,kt,c));let Q=YO(e[J],_e,Z,r,i,o,s,ut,kt,c);QO(N,J,Q,d,X)}let A=N.__typename;if(A!=null&&QO(N,"__typename",A,d,"__typename"),D)for(let J in D){let Z=D[J];for(let X of Z)c.unpathedErrors.add(X)}let F=d==null?void 0:d.__leave;return F!=null?F(N):N}function QO(e,t,n,r,i){if(r==null){e[t]=n;return}let o=r[i];if(o==null){e[t]=n;return}let s=o(n);if(s===void 0){delete e[t];return}e[t]=s}function JV(e,t,n,r,i,o,s,a,u,c){return e.map(l=>YO(l,t,n,r,i,o,s,a+1,u,c))}function YO(e,t,n,r,i,o,s,a,u=[],c){if(e==null)return e;let l=(0,As.getNullableType)(t);if((0,As.isListType)(l))return JV(e,l.ofType,n,r,i,o,s,a,u,c);if((0,As.isAbstractType)(l)){let N=r.getType(e.__typename),{fields:E}=(0,vE.collectSubFields)(r,i,o,N,n);return bE(e,N,E,r,i,o,s,a,u,c)}else if((0,As.isObjectType)(l)){let{fields:N}=(0,vE.collectSubFields)(r,i,o,l,n);return bE(e,l,N,r,i,o,s,a,u,c)}let d=s==null?void 0:s[l.name];if(d==null)return e;let h=d(e);return h===void 0?e:h}function zV(e,t){var i;let n=Object.create(null),r=new Set;for(let o of e){let s=(i=o.path)==null?void 0:i[t];if(s==null){r.add(o);continue}s in n?n[s].push(o):n[s]=[o]}return{errorMap:n,unpathedErrors:r}}function WV(e,t,n,r=[],i){for(let o of r){let s={type:e,fieldName:t,pathIndex:n},a=i.segmentInfoMap.get(o);a==null?i.segmentInfoMap.set(o,[s]):a.push(s)}}});var zO=R(_m=>{"use strict";p();m();f();Object.defineProperty(_m,"__esModule",{value:!0});_m.valueMatchesCriteria=void 0;function SE(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>SE(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>SE(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}_m.valueMatchesCriteria=SE});var WO=R(bm=>{"use strict";p();m();f();Object.defineProperty(bm,"__esModule",{value:!0});bm.isAsyncIterable=void 0;function XV(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}bm.isAsyncIterable=XV});var XO=R(Sm=>{"use strict";p();m();f();Object.defineProperty(Sm,"__esModule",{value:!0});Sm.isDocumentNode=void 0;var HV=(ie(),ae(de));function ZV(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===HV.Kind.DOCUMENT}Sm.isDocumentNode=ZV});var HO=R(()=>{"use strict";p();m();f()});var nA=R(Fs=>{"use strict";p();m();f();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.withCancel=Fs.getAsyncIterableWithCancel=Fs.getAsyncIteratorWithCancel=void 0;var e$=Au();function t$(e){return ar(this,null,function*(){return{value:e,done:!0}})}var ZO=(0,e$.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function eA(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let o=Reflect.get(n,r,i);if(r==="return"){let s=o||t$;return function(u){return ar(this,null,function*(){let c=yield t(u);return Reflect.apply(s,n,[c])})}}else if(typeof o=="function")return ZO(n,o);return o}})}Fs.getAsyncIteratorWithCancel=eA;function tA(e,t){return new Proxy(e,{get(n,r,i){let o=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let a=Reflect.apply(o,n,[]);return eA(a,t)}:typeof o=="function"?ZO(n,o):o}})}Fs.getAsyncIterableWithCancel=tA;Fs.withCancel=tA});var rA=R(Dm=>{"use strict";p();m();f();Object.defineProperty(Dm,"__esModule",{value:!0});Dm.fixSchemaAst=void 0;var n$=(ie(),ae(de)),r$=WN();function i$(e,t){let n=(0,r$.getDocumentNodeFromSchema)(e);return(0,n$.buildASTSchema)(n,w({},t||{}))}function o$(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=i$(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}Dm.fixSchemaAst=o$});var iA=R(Om=>{"use strict";p();m();f();Object.defineProperty(Om,"__esModule",{value:!0});Om.extractExtensionsFromSchema=void 0;var ho=ga(),s$=xu();function hi(e={}){let t=w({},e),n=t.directives;if(n!=null)for(let r in n){let i=n[r];Array.isArray(i)||(n[r]=[i])}return t}function a$(e){let t={schemaExtensions:hi(e.extensions),types:{}};return(0,s$.mapSchema)(e,{[ho.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:hi(n.extensions)},n),[ho.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:hi(n.extensions)},n),[ho.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:hi(n.extensions)};let o=n.args;if(o!=null)for(let s in o)t.types[i].fields[r].arguments[s]=hi(o[s].extensions);return n},[ho.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:hi(n.extensions)},n),[ho.MapperKind.ENUM_VALUE]:(n,r,i,o)=>(t.types[r].values[o]=hi(n.extensions),n),[ho.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:hi(n.extensions)},n),[ho.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:hi(n.extensions)},n),[ho.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:hi(n.extensions)},n),[ho.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:hi(n.extensions)},n)}),t}Om.extractExtensionsFromSchema=a$});var oA=R(Rs=>{"use strict";p();m();f();Object.defineProperty(Rs,"__esModule",{value:!0});Rs.printPathArray=Rs.pathToArray=Rs.addPath=void 0;function u$(e,t,n){return{prev:e,key:t,typename:n}}Rs.addPath=u$;function c$(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}Rs.pathToArray=c$;function l$(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}Rs.printPathArray=l$});var sA=R(DE=>{"use strict";p();m();f();function Am(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";p();m();f();Object.defineProperty(wm,"__esModule",{value:!0});wm.mergeIncrementalResult=void 0;var OE=sA();function aA({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,OE.dset)(t,n,i),n[n.length-1]++;e.data&&(0,OE.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,OE.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{aA({incrementalResult:i,executionResult:t})})}wm.mergeIncrementalResult=aA});var lA=R(Vu=>{"use strict";p();m();f();Object.defineProperty(Vu,"__esModule",{value:!0});Vu.debugTimerEnd=Vu.debugTimerStart=void 0;var cA=new Set;function p$(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(cA.add(e),console.time(e))}Vu.debugTimerStart=p$;function f$(e){cA.has(e)&&console.timeEnd(e)}Vu.debugTimerEnd=f$});var yi=R(ge=>{"use strict";p();m();f();Object.defineProperty(ge,"__esModule",{value:!0});ge.inspect=void 0;var be=(T0(),ae(y0));be.__exportStar(N0(),ge);be.__exportStar(Xl(),ge);be.__exportStar(CN(),ge);be.__exportStar(BN(),ge);be.__exportStar(A0(),ge);be.__exportStar($N(),ge);be.__exportStar(WN(),ge);be.__exportStar(BN(),ge);be.__exportStar(K0(),ge);be.__exportStar(Q0(),ge);be.__exportStar(oO(),ge);be.__exportStar(fO(),ge);be.__exportStar(hO(),ge);be.__exportStar(vO(),ge);be.__exportStar(bO(),ge);be.__exportStar(SO(),ge);be.__exportStar(OO(),ge);be.__exportStar(AO(),ge);be.__exportStar(xu(),ge);be.__exportStar(fE(),ge);be.__exportStar(em(),ge);be.__exportStar(FO(),ge);be.__exportStar(LO(),ge);be.__exportStar(ga(),ge);be.__exportStar(oE(),ge);be.__exportStar(PO(),ge);be.__exportStar(xO(),ge);be.__exportStar(kO(),ge);be.__exportStar(MO(),ge);be.__exportStar(sE(),ge);be.__exportStar(BO(),ge);be.__exportStar(VO(),ge);be.__exportStar($O(),ge);be.__exportStar(kf(),ge);be.__exportStar(jO(),ge);be.__exportStar(JO(),ge);be.__exportStar(UN(),ge);be.__exportStar(zO(),ge);be.__exportStar(WO(),ge);be.__exportStar(XO(),ge);be.__exportStar(Gf(),ge);be.__exportStar(HO(),ge);be.__exportStar(nA(),ge);be.__exportStar(td(),ge);be.__exportStar(HN(),ge);be.__exportStar(gE(),ge);var m$=Hl();Object.defineProperty(ge,"inspect",{enumerable:!0,get:function(){return m$.inspect}});be.__exportStar(Au(),ge);be.__exportStar(rA(),ge);be.__exportStar(IE(),ge);be.__exportStar(iA(),ge);be.__exportStar(oA(),ge);be.__exportStar(Zl(),ge);be.__exportStar(TE(),ge);be.__exportStar(uA(),ge);be.__exportStar(lA(),ge)});var pA=R(Fm=>{"use strict";p();m();f();Object.defineProperty(Fm,"__esModule",{value:!0});Fm.mergeResolvers=void 0;var h$=yi();function dA(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=dA(i)),typeof i=="object"&&i&&n.push(i);let r=(0,h$.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[o,s]=i.split(".");!s||s==="*"?delete r[o]:r[o]&&delete r[o][s]}return r}Fm.mergeResolvers=dA});var AE=R(Rm=>{"use strict";p();m();f();Object.defineProperty(Rm,"__esModule",{value:!0});Rm.mergeArguments=void 0;var fA=yi();function y$(e,t,n){let r=T$([...t,...e].filter(fA.isSome),n);return n&&n.sort&&r.sort(fA.compareNodes),r}Rm.mergeArguments=y$;function T$(e,t){return e.reduce((n,r)=>{let i=n.findIndex(o=>o.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var Jr=R($u=>{"use strict";p();m();f();Object.defineProperty($u,"__esModule",{value:!0});$u.mergeDirective=$u.mergeDirectives=void 0;var mA=(ie(),ae(de)),N$=yi();function E$(e,t){return!!e.find(n=>n.name.value===t.name.value)}function hA(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function g$(e,t){return t.some(({value:n})=>n===e.value)}function yA(e,t){let n=[...t];for(let r of e){let i=n.findIndex(o=>o.name.value===r.name.value);if(i>-1){let o=n[i];if(o.value.kind==="ListValue"){let s=o.value.values,a=r.value.values;o.value.values=S$(s,a,(u,c)=>{let l=u.value;return!l||!c.some(d=>d.value===l)})}else o.value=r.value}else n.push(r)}return n}function I$(e,t){return e.map((n,r,i)=>{let o=i.findIndex(s=>s.name.value===n.name.value);if(o!==r&&!hA(n,t)){let s=i[o];return n.arguments=yA(n.arguments,s.arguments),null}return n}).filter(N$.isSome)}function v$(e=[],t=[],n,r){let i=n&&n.reverseDirectives,o=i?e:t,s=i?t:e,a=I$([...o],r);for(let u of s)if(E$(a,u)&&!hA(u,r)){let c=a.findIndex(d=>d.name.value===u.name.value),l=a[c];a[c].arguments=yA(u.arguments||[],l.arguments||[])}else a.push(u);return a}$u.mergeDirectives=v$;function _$(e,t){let n=(0,mA.print)(U(w({},e),{description:void 0})),r=(0,mA.print)(U(w({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". +`+s,block:!0})}):U(w({},i),{description:{kind:Kr.Kind.STRING,value:s,block:a}})}}}})}Os.transformCommentsToDescriptions=rO;function iO(e){return(0,Kr.isTypeSystemDefinitionNode)(e)||e.kind===Kr.Kind.FIELD_DEFINITION||e.kind===Kr.Kind.INPUT_VALUE_DEFINITION||e.kind===Kr.Kind.ENUM_VALUE_DEFINITION}Os.isDescribable=iO});var fO=L(zf=>{"use strict";p();m();f();Object.defineProperty(zf,"__esModule",{value:!0});zf.buildOperationNodeForField=void 0;var Ve=(ie(),ae(de)),cO=td(),tE=[],Jf=new Map;function lO(e){tE.push(e)}function sO(){tE=[]}function aO(){Jf=new Map}function CB({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:o,circularReferenceDepth:s,argNames:a,selectedFields:u=!0}){sO(),aO();let c=(0,cO.getRootTypeNames)(e),l=BB({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:o||1/0,circularReferenceDepth:s||1,argNames:a,selectedFields:u,rootTypeNames:c});return l.variableDefinitions=[...tE],sO(),aO(),l}zf.buildOperationNodeForField=CB;function BB({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:o,circularReferenceDepth:s,argNames:a,selectedFields:u,rootTypeNames:c}){let l=(0,cO.getDefinedRootType)(e,n),d=l.getFields()[t],h=`${t}_${n}`;if(d.args)for(let N of d.args){let E=N.name;(!a||a.includes(E))&&lO(dO(N,E))}return{kind:Ve.Kind.OPERATION_DEFINITION,operation:n,name:{kind:Ve.Kind.NAME,value:h},variableDefinitions:[],selectionSet:{kind:Ve.Kind.SELECTION_SET,selections:[pO({type:l,field:d,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:o,circularReferenceDepth:s,schema:e,depth:0,argNames:a,selectedFields:u,rootTypeNames:c})]}}}function eE({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:h,rootTypeNames:N}){if(!(typeof h=="boolean"&&l>a)){if((0,Ve.isUnionType)(t)){let E=t.getTypes();return{kind:Ve.Kind.SELECTION_SET,selections:E.filter(D=>!ZN([...o,D],{depth:u})).map(D=>({kind:Ve.Kind.INLINE_FRAGMENT,typeCondition:{kind:Ve.Kind.NAMED_TYPE,name:{kind:Ve.Kind.NAME,value:D.name}},selectionSet:eE({parent:t,type:D,models:n,path:i,ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:h,rootTypeNames:N})})).filter(D=>{var A,F;return((F=(A=D==null?void 0:D.selectionSet)==null?void 0:A.selections)==null?void 0:F.length)>0})}}if((0,Ve.isInterfaceType)(t)){let E=Object.values(c.getTypeMap()).filter(D=>(0,Ve.isObjectType)(D)&&D.getInterfaces().includes(t));return{kind:Ve.Kind.SELECTION_SET,selections:E.filter(D=>!ZN([...o,D],{depth:u})).map(D=>({kind:Ve.Kind.INLINE_FRAGMENT,typeCondition:{kind:Ve.Kind.NAMED_TYPE,name:{kind:Ve.Kind.NAME,value:D.name}},selectionSet:eE({parent:t,type:D,models:n,path:i,ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:h,rootTypeNames:N})})).filter(D=>{var A,F;return((F=(A=D==null?void 0:D.selectionSet)==null?void 0:A.selections)==null?void 0:F.length)>0})}}if((0,Ve.isObjectType)(t)&&!N.has(t.name)){let E=s.includes(t.name)||s.includes(`${e.name}.${i[i.length-1]}`),D=n.includes(t.name);if(!r&&D&&!E)return{kind:Ve.Kind.SELECTION_SET,selections:[{kind:Ve.Kind.FIELD,name:{kind:Ve.Kind.NAME,value:"id"}}]};let A=t.getFields();return{kind:Ve.Kind.SELECTION_SET,selections:Object.keys(A).filter(F=>!ZN([...o,(0,Ve.getNamedType)(A[F].type)],{depth:u})).map(F=>{let Y=typeof h=="object"?h[F]:!0;return Y?pO({type:t,field:A[F],models:n,path:[...i,F],ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:Y,rootTypeNames:N}):null}).filter(F=>{var Y,J;return F==null?!1:"selectionSet"in F?!!((J=(Y=F.selectionSet)==null?void 0:Y.selections)!=null&&J.length):!0})}}}}function dO(e,t){function n(r){return(0,Ve.isListType)(r)?{kind:Ve.Kind.LIST_TYPE,type:n(r.ofType)}:(0,Ve.isNonNullType)(r)?{kind:Ve.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:Ve.Kind.NAMED_TYPE,name:{kind:Ve.Kind.NAME,value:r.name}}}return{kind:Ve.Kind.VARIABLE_DEFINITION,variable:{kind:Ve.Kind.VARIABLE,name:{kind:Ve.Kind.NAME,value:t||e.name}},type:n(e.type)}}function uO(e,t){return[...t,e].join("_")}function pO({type:e,field:t,models:n,firstCall:r,path:i,ancestors:o,ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l,argNames:d,selectedFields:h,rootTypeNames:N}){let E=(0,Ve.getNamedType)(t.type),D=[],A=!1;if(t.args&&t.args.length&&(D=t.args.map(Z=>{let H=uO(Z.name,i);return d&&!d.includes(H)?((0,Ve.isNonNullType)(Z.type)&&(A=!0),null):(r||lO(dO(Z,H)),{kind:Ve.Kind.ARGUMENT,name:{kind:Ve.Kind.NAME,value:Z.name},value:{kind:Ve.Kind.VARIABLE,name:{kind:Ve.Kind.NAME,value:uO(Z.name,i)}}})}).filter(Boolean)),A)return null;let F=[...i,t.name],Y=F.join("."),J=t.name;return Jf.has(Y)&&Jf.get(Y)!==t.type.toString()&&(J+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),Jf.set(Y,t.type.toString()),!(0,Ve.isScalarType)(E)&&!(0,Ve.isEnumType)(E)?U(w({kind:Ve.Kind.FIELD,name:{kind:Ve.Kind.NAME,value:t.name}},J!==t.name&&{alias:{kind:Ve.Kind.NAME,value:J}}),{selectionSet:eE({parent:e,type:E,models:n,firstCall:r,path:F,ancestors:[...o,e],ignore:s,depthLimit:a,circularReferenceDepth:u,schema:c,depth:l+1,argNames:d,selectedFields:h,rootTypeNames:N})||void 0,arguments:D}):U(w({kind:Ve.Kind.FIELD,name:{kind:Ve.Kind.NAME,value:t.name}},J!==t.name&&{alias:{kind:Ve.Kind.NAME,value:J}}),{arguments:D})}function ZN(e,t={depth:1}){let n=e[e.length-1];return(0,Ve.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var hO=L(Wf=>{"use strict";p();m();f();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.DirectiveLocation=void 0;var mO;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(mO||(Wf.DirectiveLocation=mO={}))});var ga=L(Hf=>{"use strict";p();m();f();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.MapperKind=void 0;var yO;(function(e){e.TYPE="MapperKind.TYPE",e.SCALAR_TYPE="MapperKind.SCALAR_TYPE",e.ENUM_TYPE="MapperKind.ENUM_TYPE",e.COMPOSITE_TYPE="MapperKind.COMPOSITE_TYPE",e.OBJECT_TYPE="MapperKind.OBJECT_TYPE",e.INPUT_OBJECT_TYPE="MapperKind.INPUT_OBJECT_TYPE",e.ABSTRACT_TYPE="MapperKind.ABSTRACT_TYPE",e.UNION_TYPE="MapperKind.UNION_TYPE",e.INTERFACE_TYPE="MapperKind.INTERFACE_TYPE",e.ROOT_OBJECT="MapperKind.ROOT_OBJECT",e.QUERY="MapperKind.QUERY",e.MUTATION="MapperKind.MUTATION",e.SUBSCRIPTION="MapperKind.SUBSCRIPTION",e.DIRECTIVE="MapperKind.DIRECTIVE",e.FIELD="MapperKind.FIELD",e.COMPOSITE_FIELD="MapperKind.COMPOSITE_FIELD",e.OBJECT_FIELD="MapperKind.OBJECT_FIELD",e.ROOT_FIELD="MapperKind.ROOT_FIELD",e.QUERY_ROOT_FIELD="MapperKind.QUERY_ROOT_FIELD",e.MUTATION_ROOT_FIELD="MapperKind.MUTATION_ROOT_FIELD",e.SUBSCRIPTION_ROOT_FIELD="MapperKind.SUBSCRIPTION_ROOT_FIELD",e.INTERFACE_FIELD="MapperKind.INTERFACE_FIELD",e.INPUT_OBJECT_FIELD="MapperKind.INPUT_OBJECT_FIELD",e.ARGUMENT="MapperKind.ARGUMENT",e.ENUM_VALUE="MapperKind.ENUM_VALUE"})(yO||(Hf.MapperKind=yO={}))});var nE=L(Xf=>{"use strict";p();m();f();Object.defineProperty(Xf,"__esModule",{value:!0});Xf.getObjectTypeFromTypeMap=void 0;var VB=(ie(),ae(de));function $B(e,t){if(t){let n=e[t.name];if((0,VB.isObjectType)(n))return n}}Xf.getObjectTypeFromTypeMap=$B});var oE=L(Mi=>{"use strict";p();m();f();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.getBuiltInForStub=Mi.isNamedStub=Mi.createStub=Mi.createNamedStub=void 0;var xn=(ie(),ae(de));function rE(e,t){let n;return t==="object"?n=xn.GraphQLObjectType:t==="interface"?n=xn.GraphQLInterfaceType:n=xn.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:xn.GraphQLString}}})}Mi.createNamedStub=rE;function iE(e,t){switch(e.kind){case xn.Kind.LIST_TYPE:return new xn.GraphQLList(iE(e.type,t));case xn.Kind.NON_NULL_TYPE:return new xn.GraphQLNonNull(iE(e.type,t));default:return t==="output"?rE(e.name.value,"object"):rE(e.name.value,"input")}}Mi.createStub=iE;function jB(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}Mi.isNamedStub=jB;function GB(e){switch(e.name){case xn.GraphQLInt.name:return xn.GraphQLInt;case xn.GraphQLFloat.name:return xn.GraphQLFloat;case xn.GraphQLString.name:return xn.GraphQLString;case xn.GraphQLBoolean.name:return xn.GraphQLBoolean;case xn.GraphQLID.name:return xn.GraphQLID;default:return e}}Mi.getBuiltInForStub=GB});var em=L(Zf=>{"use strict";p();m();f();Object.defineProperty(Zf,"__esModule",{value:!0});Zf.rewireTypes=void 0;var En=(ie(),ae(de)),TO=oE();function qB(e,t){let n=Object.create(null);for(let h in e)n[h]=e[h];let r=Object.create(null);for(let h in n){let N=n[h];if(N==null||h.startsWith("__"))continue;let E=N.name;if(!E.startsWith("__")){if(r[E]!=null){console.warn(`Duplicate schema type name ${E} found; keeping the existing one found in the schema`);continue}r[E]=N}}for(let h in r)r[h]=a(r[h]);let i=t.map(h=>o(h));return{typeMap:r,directives:i};function o(h){if((0,En.isSpecifiedDirective)(h))return h;let N=h.toConfig();return N.args=s(N.args),new En.GraphQLDirective(N)}function s(h){let N={};for(let E in h){let D=h[E],A=d(D.type);A!=null&&(D.type=A,N[E]=D)}return N}function a(h){if((0,En.isObjectType)(h)){let N=h.toConfig(),E=U(w({},N),{fields:()=>u(N.fields),interfaces:()=>l(N.interfaces)});return new En.GraphQLObjectType(E)}else if((0,En.isInterfaceType)(h)){let N=h.toConfig(),E=U(w({},N),{fields:()=>u(N.fields)});return"interfaces"in E&&(E.interfaces=()=>l(N.interfaces)),new En.GraphQLInterfaceType(E)}else if((0,En.isUnionType)(h)){let N=h.toConfig(),E=U(w({},N),{types:()=>l(N.types)});return new En.GraphQLUnionType(E)}else if((0,En.isInputObjectType)(h)){let N=h.toConfig(),E=U(w({},N),{fields:()=>c(N.fields)});return new En.GraphQLInputObjectType(E)}else if((0,En.isEnumType)(h)){let N=h.toConfig();return new En.GraphQLEnumType(N)}else if((0,En.isScalarType)(h)){if((0,En.isSpecifiedScalarType)(h))return h;let N=h.toConfig();return new En.GraphQLScalarType(N)}throw new Error(`Unexpected schema type: ${h}`)}function u(h){let N={};for(let E in h){let D=h[E],A=d(D.type);A!=null&&D.args&&(D.type=A,D.args=s(D.args),N[E]=D)}return N}function c(h){let N={};for(let E in h){let D=h[E],A=d(D.type);A!=null&&(D.type=A,N[E]=D)}return N}function l(h){let N=[];for(let E of h){let D=d(E);D!=null&&N.push(D)}return N}function d(h){if((0,En.isListType)(h)){let N=d(h.ofType);return N!=null?new En.GraphQLList(N):null}else if((0,En.isNonNullType)(h)){let N=d(h.ofType);return N!=null?new En.GraphQLNonNull(N):null}else if((0,En.isNamedType)(h)){let N=n[h.name];return N===void 0&&(N=(0,TO.isNamedStub)(h)?(0,TO.getBuiltInForStub)(h):a(h),r[N.name]=n[h.name]=N),N!=null?r[N.name]:null}return null}}Zf.rewireTypes=qB});var sE=L(Ui=>{"use strict";p();m();f();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.parseInputValueLiteral=Ui.parseInputValue=Ui.serializeInputValue=Ui.transformInputValue=void 0;var tm=(ie(),ae(de)),KB=Hl();function Lu(e,t,n=null,r=null){if(t==null)return t;let i=(0,tm.getNullableType)(e);if((0,tm.isLeafType)(i))return n!=null?n(i,t):t;if((0,tm.isListType)(i))return(0,KB.asArray)(t).map(o=>Lu(i.ofType,o,n,r));if((0,tm.isInputObjectType)(i)){let o=i.getFields(),s={};for(let a in t){let u=o[a];u!=null&&(s[a]=Lu(u.type,t[a],n,r))}return r!=null?r(i,s):s}}Ui.transformInputValue=Lu;function QB(e,t){return Lu(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}Ui.serializeInputValue=QB;function YB(e,t){return Lu(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}Ui.parseInputValue=YB;function JB(e,t){return Lu(e,t,(n,r)=>n.parseLiteral(r,{}))}Ui.parseInputValueLiteral=JB});var xu=L(Pu=>{"use strict";p();m();f();Object.defineProperty(Pu,"__esModule",{value:!0});Pu.correctASTNodes=Pu.mapSchema=void 0;var Pe=(ie(),ae(de)),Ru=nE(),Ze=ga(),zB=em(),NO=sE();function WB(e,t={}){let n=IO(gO(aE(EO(HB(aE(EO(e.getTypeMap(),e,NO.serializeInputValue),e,t,a=>(0,Pe.isLeafType)(a)),e,t),e,NO.parseInputValue),e,t,a=>!(0,Pe.isLeafType)(a)),e,t),e,t),r=e.getDirectives(),i=XB(r,e,t),{typeMap:o,directives:s}=(0,zB.rewireTypes)(n,i);return new Pe.GraphQLSchema(U(w({},e.toConfig()),{query:(0,Ru.getObjectTypeFromTypeMap)(o,(0,Ru.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,Ru.getObjectTypeFromTypeMap)(o,(0,Ru.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,Ru.getObjectTypeFromTypeMap)(o,(0,Ru.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(o),directives:s}))}Pu.mapSchema=WB;function aE(e,t,n,r=()=>!0){let i={};for(let o in e)if(!o.startsWith("__")){let s=e[o];if(s==null||!r(s)){i[o]=s;continue}let a=eV(t,n,o);if(a==null){i[o]=s;continue}let u=a(s,t);if(u===void 0){i[o]=s;continue}i[o]=u}return i}function HB(e,t,n){let r=oV(n);return r?aE(e,t,{[Ze.MapperKind.ENUM_TYPE]:i=>{let o=i.toConfig(),s=o.values,a={};for(let u in s){let c=s[u],l=r(c,i.name,t,u);if(l===void 0)a[u]=c;else if(Array.isArray(l)){let[d,h]=l;a[d]=h===void 0?c:h}else l!==null&&(a[u]=l)}return ad(new Pe.GraphQLEnumType(U(w({},o),{values:a})))}},i=>(0,Pe.isEnumType)(i)):e}function EO(e,t,n){let r=IO(e,t,{[Ze.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let o=nm(e,i.type);if(o!=null)return U(w({},i),{defaultValue:n(o,i.defaultValue)})}});return gO(r,t,{[Ze.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let o=nm(r,i.type);if(o!=null)return U(w({},i),{defaultValue:n(o,i.defaultValue)})}})}function nm(e,t){if((0,Pe.isListType)(t)){let n=nm(e,t.ofType);return n!=null?new Pe.GraphQLList(n):null}else if((0,Pe.isNonNullType)(t)){let n=nm(e,t.ofType);return n!=null?new Pe.GraphQLNonNull(n):null}else if((0,Pe.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function gO(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let o=e[i];if(!(0,Pe.isObjectType)(o)&&!(0,Pe.isInterfaceType)(o)&&!(0,Pe.isInputObjectType)(o)){r[i]=o;continue}let s=nV(t,n,i);if(s==null){r[i]=o;continue}let a=o.toConfig(),u=a.fields,c={};for(let l in u){let d=u[l],h=s(d,l,i,t);if(h===void 0)c[l]=d;else if(Array.isArray(h)){let[N,E]=h;E.astNode!=null&&(E.astNode=U(w({},E.astNode),{name:U(w({},E.astNode.name),{value:N})})),c[N]=E===void 0?d:E}else h!==null&&(c[l]=h)}(0,Pe.isObjectType)(o)?r[i]=ad(new Pe.GraphQLObjectType(U(w({},a),{fields:c}))):(0,Pe.isInterfaceType)(o)?r[i]=ad(new Pe.GraphQLInterfaceType(U(w({},a),{fields:c}))):r[i]=ad(new Pe.GraphQLInputObjectType(U(w({},a),{fields:c})))}return r}function IO(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let o=e[i];if(!(0,Pe.isObjectType)(o)&&!(0,Pe.isInterfaceType)(o)){r[i]=o;continue}let s=rV(n);if(s==null){r[i]=o;continue}let a=o.toConfig(),u=a.fields,c={};for(let l in u){let d=u[l],h=d.args;if(h==null){c[l]=d;continue}let N=Object.keys(h);if(!N.length){c[l]=d;continue}let E={};for(let D of N){let A=h[D],F=s(A,l,i,t);if(F===void 0)E[D]=A;else if(Array.isArray(F)){let[Y,J]=F;E[Y]=J}else F!==null&&(E[D]=F)}c[l]=U(w({},d),{args:E})}(0,Pe.isObjectType)(o)?r[i]=new Pe.GraphQLObjectType(U(w({},a),{fields:c})):(0,Pe.isInterfaceType)(o)?r[i]=new Pe.GraphQLInterfaceType(U(w({},a),{fields:c})):r[i]=new Pe.GraphQLInputObjectType(U(w({},a),{fields:c}))}return r}function XB(e,t,n){let r=iV(n);if(r==null)return e.slice();let i=[];for(let o of e){let s=r(o,t);s===void 0?i.push(o):s!==null&&i.push(s)}return i}function ZB(e,t){var i,o,s;let n=e.getType(t),r=[Ze.MapperKind.TYPE];return(0,Pe.isObjectType)(n)?(r.push(Ze.MapperKind.COMPOSITE_TYPE,Ze.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Ze.MapperKind.ROOT_OBJECT,Ze.MapperKind.QUERY):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(Ze.MapperKind.ROOT_OBJECT,Ze.MapperKind.MUTATION):t===((s=e.getSubscriptionType())==null?void 0:s.name)&&r.push(Ze.MapperKind.ROOT_OBJECT,Ze.MapperKind.SUBSCRIPTION)):(0,Pe.isInputObjectType)(n)?r.push(Ze.MapperKind.INPUT_OBJECT_TYPE):(0,Pe.isInterfaceType)(n)?r.push(Ze.MapperKind.COMPOSITE_TYPE,Ze.MapperKind.ABSTRACT_TYPE,Ze.MapperKind.INTERFACE_TYPE):(0,Pe.isUnionType)(n)?r.push(Ze.MapperKind.COMPOSITE_TYPE,Ze.MapperKind.ABSTRACT_TYPE,Ze.MapperKind.UNION_TYPE):(0,Pe.isEnumType)(n)?r.push(Ze.MapperKind.ENUM_TYPE):(0,Pe.isScalarType)(n)&&r.push(Ze.MapperKind.SCALAR_TYPE),r}function eV(e,t,n){let r=ZB(e,n),i,o=[...r];for(;!i&&o.length>0;){let s=o.pop();i=t[s]}return i!=null?i:null}function tV(e,t){var i,o,s;let n=e.getType(t),r=[Ze.MapperKind.FIELD];return(0,Pe.isObjectType)(n)?(r.push(Ze.MapperKind.COMPOSITE_FIELD,Ze.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Ze.MapperKind.ROOT_FIELD,Ze.MapperKind.QUERY_ROOT_FIELD):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(Ze.MapperKind.ROOT_FIELD,Ze.MapperKind.MUTATION_ROOT_FIELD):t===((s=e.getSubscriptionType())==null?void 0:s.name)&&r.push(Ze.MapperKind.ROOT_FIELD,Ze.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,Pe.isInterfaceType)(n)?r.push(Ze.MapperKind.COMPOSITE_FIELD,Ze.MapperKind.INTERFACE_FIELD):(0,Pe.isInputObjectType)(n)&&r.push(Ze.MapperKind.INPUT_OBJECT_FIELD),r}function nV(e,t,n){let r=tV(e,n),i,o=[...r];for(;!i&&o.length>0;){let s=o.pop();i=t[s]}return i!=null?i:null}function rV(e){let t=e[Ze.MapperKind.ARGUMENT];return t!=null?t:null}function iV(e){let t=e[Ze.MapperKind.DIRECTIVE];return t!=null?t:null}function oV(e){let t=e[Ze.MapperKind.ENUM_VALUE];return t!=null?t:null}function ad(e){if((0,Pe.isObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=U(w({},t.astNode),{kind:Pe.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>U(w({},n),{kind:Pe.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new Pe.GraphQLObjectType(t)}else if((0,Pe.isInterfaceType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=U(w({},t.astNode),{kind:Pe.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>U(w({},n),{kind:Pe.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new Pe.GraphQLInterfaceType(t)}else if((0,Pe.isInputObjectType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.fields){let i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=U(w({},t.astNode),{kind:Pe.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>U(w({},n),{kind:Pe.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new Pe.GraphQLInputObjectType(t)}else if((0,Pe.isEnumType)(e)){let t=e.toConfig();if(t.astNode!=null){let n=[];for(let r in t.values){let i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode=U(w({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>U(w({},n),{values:void 0}))),new Pe.GraphQLEnumType(t)}else return e}Pu.correctASTNodes=ad});var vO=L(im=>{"use strict";p();m();f();Object.defineProperty(im,"__esModule",{value:!0});im.filterSchema=void 0;var rm=(ie(),ae(de)),ho=ga(),sV=xu();function aV({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:o=void 0,inputObjectFieldFilter:s=void 0,argumentFilter:a=void 0}){return(0,sV.mapSchema)(e,{[ho.MapperKind.QUERY]:c=>uE(c,"Query",r,a),[ho.MapperKind.MUTATION]:c=>uE(c,"Mutation",r,a),[ho.MapperKind.SUBSCRIPTION]:c=>uE(c,"Subscription",r,a),[ho.MapperKind.OBJECT_TYPE]:c=>t(c.name,c)?cE(rm.GraphQLObjectType,c,i||n,a):null,[ho.MapperKind.INTERFACE_TYPE]:c=>t(c.name,c)?cE(rm.GraphQLInterfaceType,c,o||n,a):null,[ho.MapperKind.INPUT_OBJECT_TYPE]:c=>t(c.name,c)?cE(rm.GraphQLInputObjectType,c,s||n):null,[ho.MapperKind.UNION_TYPE]:c=>t(c.name,c)?void 0:null,[ho.MapperKind.ENUM_TYPE]:c=>t(c.name,c)?void 0:null,[ho.MapperKind.SCALAR_TYPE]:c=>t(c.name,c)?void 0:null})}im.filterSchema=aV;function uE(e,t,n,r){if(n||r){let i=e.toConfig();for(let o in i.fields){let s=i.fields[o];if(n&&!n(t,o,i.fields[o]))delete i.fields[o];else if(r&&s.args)for(let a in s.args)r(t,o,a,s.args[a])||delete s.args[a]}return new rm.GraphQLObjectType(i)}return e}function cE(e,t,n,r){if(n||r){let i=t.toConfig();for(let o in i.fields){let s=i.fields[o];if(n&&!n(t.name,o,i.fields[o]))delete i.fields[o];else if(r&&"args"in s)for(let a in s.args)r(t.name,o,a,s.args[a])||delete s.args[a]}return new e(i)}}});var bO=L(ku=>{"use strict";p();m();f();Object.defineProperty(ku,"__esModule",{value:!0});ku.healTypes=ku.healSchema=void 0;var Ci=(ie(),ae(de));function uV(e){return _O(e.getTypeMap(),e.getDirectives()),e}ku.healSchema=uV;function _O(e,t){let n=Object.create(null);for(let c in e){let l=e[c];if(l==null||c.startsWith("__"))continue;let d=l.name;if(!d.startsWith("__")){if(n[d]!=null){console.warn(`Duplicate schema type name ${d} found; keeping the existing one found in the schema`);continue}n[d]=l}}for(let c in n){let l=n[c];e[c]=l}for(let c of t)c.args=c.args.filter(l=>(l.type=u(l.type),l.type!==null));for(let c in e){let l=e[c];!c.startsWith("__")&&c in n&&l!=null&&r(l)}for(let c in e)!c.startsWith("__")&&!(c in n)&&delete e[c];function r(c){if((0,Ci.isObjectType)(c)){i(c),o(c);return}else if((0,Ci.isInterfaceType)(c)){i(c),"getInterfaces"in c&&o(c);return}else if((0,Ci.isUnionType)(c)){a(c);return}else if((0,Ci.isInputObjectType)(c)){s(c);return}else if((0,Ci.isLeafType)(c))return;throw new Error(`Unexpected schema type: ${c}`)}function i(c){let l=c.getFields();for(let[d,h]of Object.entries(l))h.args.map(N=>(N.type=u(N.type),N.type===null?null:N)).filter(Boolean),h.type=u(h.type),h.type===null&&delete l[d]}function o(c){if("getInterfaces"in c){let l=c.getInterfaces();l.push(...l.splice(0).map(d=>u(d)).filter(Boolean))}}function s(c){let l=c.getFields();for(let[d,h]of Object.entries(l))h.type=u(h.type),h.type===null&&delete l[d]}function a(c){let l=c.getTypes();l.push(...l.splice(0).map(d=>u(d)).filter(Boolean))}function u(c){if((0,Ci.isListType)(c)){let l=u(c.ofType);return l!=null?new Ci.GraphQLList(l):null}else if((0,Ci.isNonNullType)(c)){let l=u(c.ofType);return l!=null?new Ci.GraphQLNonNull(l):null}else if((0,Ci.isNamedType)(c)){let l=e[c.name];if(l&&c!==l)return l}return c}}ku.healTypes=_O});var SO=L(om=>{"use strict";p();m();f();Object.defineProperty(om,"__esModule",{value:!0});om.getResolversFromSchema=void 0;var Ia=(ie(),ae(de));function cV(e,t){var i,o;let n=Object.create(null),r=e.getTypeMap();for(let s in r)if(!s.startsWith("__")){let a=r[s];if((0,Ia.isScalarType)(a)){if(!(0,Ia.isSpecifiedScalarType)(a)){let u=a.toConfig();delete u.astNode,n[s]=new Ia.GraphQLScalarType(u)}}else if((0,Ia.isEnumType)(a)){n[s]={};let u=a.getValues();for(let c of u)n[s][c.name]=c.value}else if((0,Ia.isInterfaceType)(a))a.resolveType!=null&&(n[s]={__resolveType:a.resolveType});else if((0,Ia.isUnionType)(a))a.resolveType!=null&&(n[s]={__resolveType:a.resolveType});else if((0,Ia.isObjectType)(a)){n[s]={},a.isTypeOf!=null&&(n[s].__isTypeOf=a.isTypeOf);let u=a.getFields();for(let c in u){let l=u[c];if(l.subscribe!=null&&(n[s][c]=n[s][c]||{},n[s][c].subscribe=l.subscribe),l.resolve!=null&&((i=l.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((o=l.resolve)==null?void 0:o.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[s][c]=n[s][c]||{},n[s][c].resolve=l.resolve}}}}return n}om.getResolversFromSchema=cV});var OO=L(sm=>{"use strict";p();m();f();Object.defineProperty(sm,"__esModule",{value:!0});sm.forEachField=void 0;var DO=(ie(),ae(de));function lV(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,DO.getNamedType)(i).name.startsWith("__")&&(0,DO.isObjectType)(i)){let o=i.getFields();for(let s in o){let a=o[s];t(a,r,s)}}}}sm.forEachField=lV});var AO=L(am=>{"use strict";p();m();f();Object.defineProperty(am,"__esModule",{value:!0});am.forEachDefaultValue=void 0;var lE=(ie(),ae(de));function dV(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,lE.getNamedType)(i).name.startsWith("__")){if((0,lE.isObjectType)(i)){let o=i.getFields();for(let s in o){let a=o[s];for(let u of a.args)u.defaultValue=t(u.type,u.defaultValue)}}else if((0,lE.isInputObjectType)(i)){let o=i.getFields();for(let s in o){let a=o[s];a.defaultValue=t(a.type,a.defaultValue)}}}}}am.forEachDefaultValue=dV});var fE=L(um=>{"use strict";p();m();f();Object.defineProperty(um,"__esModule",{value:!0});um.addTypes=void 0;var dE=(ie(),ae(de)),pE=nE(),pV=em();function fV(e,t){let n=e.toConfig(),r={};for(let a of n.types)r[a.name]=a;let i={};for(let a of n.directives)i[a.name]=a;for(let a of t)(0,dE.isNamedType)(a)?r[a.name]=a:(0,dE.isDirective)(a)&&(i[a.name]=a);let{typeMap:o,directives:s}=(0,pV.rewireTypes)(r,Object.values(i));return new dE.GraphQLSchema(U(w({},n),{query:(0,pE.getObjectTypeFromTypeMap)(o,e.getQueryType()),mutation:(0,pE.getObjectTypeFromTypeMap)(o,e.getMutationType()),subscription:(0,pE.getObjectTypeFromTypeMap)(o,e.getSubscriptionType()),types:Object.values(o),directives:s}))}um.addTypes=fV});var FO=L(lm=>{"use strict";p();m();f();Object.defineProperty(lm,"__esModule",{value:!0});lm.pruneSchema=void 0;var _n=(ie(),ae(de)),mV=$N(),hV=ga(),yV=xu(),TV=td();function NV(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:o,skipUnusedTypesPruning:s}=t,a=[],u=e;do{let c=EV(u);if(i){let l=[];for(let d in u.getTypeMap()){if(d.startsWith("__"))continue;let h=u.getType(d);h&&i(h)&&l.push(d)}c=wO(l,u,c)}a=[],u=(0,yV.mapSchema)(u,{[hV.MapperKind.TYPE]:l=>!c.has(l.name)&&!(0,_n.isSpecifiedScalarType)(l)?((0,_n.isUnionType)(l)||(0,_n.isInputObjectType)(l)||(0,_n.isInterfaceType)(l)||(0,_n.isObjectType)(l)||(0,_n.isScalarType)(l))&&(s||(0,_n.isUnionType)(l)&&r&&!Object.keys(l.getTypes()).length||((0,_n.isInputObjectType)(l)||(0,_n.isInterfaceType)(l)||(0,_n.isObjectType)(l))&&n&&!Object.keys(l.getFields()).length||(0,_n.isInterfaceType)(l)&&o)?l:(a.push(l.name),c.delete(l.name),null):l})}while(a.length);return u}lm.pruneSchema=NV;function EV(e){let t=[];for(let n of(0,TV.getRootTypes)(e))t.push(n.name);return wO(t,e)}function wO(e,t,n=new Set){let r=new Map;for(;e.length;){let i=e.pop();if(n.has(i)&&r[i]!==!0)continue;let o=t.getType(i);if(o){if((0,_n.isUnionType)(o)&&e.push(...o.getTypes().map(s=>s.name)),(0,_n.isInterfaceType)(o)&&r[i]===!0&&(e.push(...(0,mV.getImplementingTypes)(o.name,t)),r[i]=!1),(0,_n.isEnumType)(o)&&e.push(...o.getValues().flatMap(s=>s.astNode?cm(t,s.astNode):[])),"getInterfaces"in o&&e.push(...o.getInterfaces().map(s=>s.name)),"getFields"in o){let s=o.getFields(),a=Object.entries(s);if(!a.length)continue;for(let[,u]of a){(0,_n.isObjectType)(o)&&e.push(...u.args.flatMap(l=>{let d=[(0,_n.getNamedType)(l.type).name];return l.astNode&&d.push(...cm(t,l.astNode)),d}));let c=(0,_n.getNamedType)(u.type);e.push(c.name),u.astNode&&e.push(...cm(t,u.astNode)),(0,_n.isInterfaceType)(c)&&!(c.name in r)&&(r[c.name]=!0)}}o.astNode&&e.push(...cm(t,o.astNode)),n.add(i)}}return n}function cm(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,o;return(o=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(s=>(0,_n.getNamedType)(s.type).name))!=null?o:[]})}});var RO=L(dm=>{"use strict";p();m();f();Object.defineProperty(dm,"__esModule",{value:!0});dm.mergeDeep=void 0;var gV=Hl();function LO(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let o of e)if(mE(r)&&mE(o)){if(t){let s=Object.getPrototypeOf(i),a=Object.getPrototypeOf(o);if(a)for(let u of Object.getOwnPropertyNames(a)){let c=Object.getOwnPropertyDescriptor(a,u);(0,gV.isSome)(c)&&Object.defineProperty(s,u,c)}}for(let s in o)mE(o[s])?s in i?i[s]=LO([i[s],o[s]],t,n):Object.assign(i,{[s]:o[s]}):n&&Array.isArray(i[s])?Array.isArray(o[s])?i[s].push(...o[s]):i[s].push(o[s]):Object.assign(i,{[s]:o[s]})}else if(n&&Array.isArray(r))Array.isArray(o)?r.push(...o):r.push(o);else if(n&&Array.isArray(o))return[r,...o];return i}dm.mergeDeep=LO;function mE(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var PO=L(pm=>{"use strict";p();m();f();Object.defineProperty(pm,"__esModule",{value:!0});pm.parseSelectionSet=void 0;var IV=(ie(),ae(de));function vV(e,t){return(0,IV.parse)(e,t).definitions[0].selectionSet}pm.parseSelectionSet=vV});var xO=L(fm=>{"use strict";p();m();f();Object.defineProperty(fm,"__esModule",{value:!0});fm.getResponseKeyFromInfo=void 0;function _V(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}fm.getResponseKeyFromInfo=_V});var kO=L(Bi=>{"use strict";p();m();f();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.modifyObjectFields=Bi.selectObjectFields=Bi.removeObjectFields=Bi.appendObjectFields=void 0;var mm=(ie(),ae(de)),bV=fE(),hm=ga(),va=xu();function SV(e,t,n){return e.getType(t)==null?(0,bV.addTypes)(e,[new mm.GraphQLObjectType({name:t,fields:n})]):(0,va.mapSchema)(e,{[hm.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),o=i.fields,s={};for(let a in o)s[a]=o[a];for(let a in n)s[a]=n[a];return(0,va.correctASTNodes)(new mm.GraphQLObjectType(U(w({},i),{fields:s})))}}})}Bi.appendObjectFields=SV;function DV(e,t,n){let r={};return[(0,va.mapSchema)(e,{[hm.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let s=o.toConfig(),a=s.fields,u={};for(let c in a){let l=a[c];n(c,l)?r[c]=l:u[c]=l}return(0,va.correctASTNodes)(new mm.GraphQLObjectType(U(w({},s),{fields:u})))}}}),r]}Bi.removeObjectFields=DV;function OV(e,t,n){let r={};return(0,va.mapSchema)(e,{[hm.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let s=i.toConfig().fields;for(let a in s){let u=s[a];n(a,u)&&(r[a]=u)}}}}),r}Bi.selectObjectFields=OV;function AV(e,t,n,r){let i={};return[(0,va.mapSchema)(e,{[hm.MapperKind.OBJECT_TYPE]:s=>{if(s.name===t){let a=s.toConfig(),u=a.fields,c={};for(let l in u){let d=u[l];n(l,d)?i[l]=d:c[l]=d}for(let l in r){let d=r[l];c[l]=d}return(0,va.correctASTNodes)(new mm.GraphQLObjectType(U(w({},a),{fields:c})))}}}),i]}Bi.modifyObjectFields=AV});var MO=L(ym=>{"use strict";p();m();f();Object.defineProperty(ym,"__esModule",{value:!0});ym.renameType=void 0;var Qr=(ie(),ae(de));function wV(e,t){if((0,Qr.isObjectType)(e))return new Qr.GraphQLObjectType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isInterfaceType)(e))return new Qr.GraphQLInterfaceType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isUnionType)(e))return new Qr.GraphQLUnionType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isInputObjectType)(e))return new Qr.GraphQLInputObjectType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isEnumType)(e))return new Qr.GraphQLEnumType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));if((0,Qr.isScalarType)(e))return new Qr.GraphQLScalarType(U(w({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:U(w({},e.astNode),{name:U(w({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>U(w({},n),{name:U(w({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}ym.renameType=wV});var BO=L(Tm=>{"use strict";p();m();f();Object.defineProperty(Tm,"__esModule",{value:!0});Tm.mapAsyncIterator=void 0;var FV=Zl();function LV(e,t,n,r){let i,o,s;r&&(s=c=>{let l=r();return(0,FV.isPromise)(l)?l.then(()=>c):c}),typeof e.return=="function"&&(i=e.return,o=c=>{let l=()=>Promise.reject(c);return i.call(e).then(l,l)});function a(c){return c.done?s?s(c):c:UO(c.value,t).then(CO,o)}let u;if(n){let c=n;u=l=>UO(l,c).then(CO,o)}return{next(){return e.next().then(a,u)},return(){let c=i?i.call(e).then(a,u):Promise.resolve({value:void 0,done:!0});return s?c.then(s):c},throw(c){return typeof e.throw=="function"?e.throw(c).then(a,u):Promise.reject(c).catch(o)},[Symbol.asyncIterator](){return this}}}Tm.mapAsyncIterator=LV;function UO(e,t){return new Promise(n=>n(t(e)))}function CO(e){return{value:e,done:!1}}});var VO=L(Mu=>{"use strict";p();m();f();Object.defineProperty(Mu,"__esModule",{value:!0});Mu.createVariableNameGenerator=Mu.updateArgument=void 0;var _a=(ie(),ae(de)),RV=GN();function PV(e,t,n,r,i,o,s){if(e[r]={kind:_a.Kind.ARGUMENT,name:{kind:_a.Kind.NAME,value:r},value:{kind:_a.Kind.VARIABLE,name:{kind:_a.Kind.NAME,value:i}}},t[i]={kind:_a.Kind.VARIABLE_DEFINITION,variable:{kind:_a.Kind.VARIABLE,name:{kind:_a.Kind.NAME,value:i}},type:(0,RV.astFromType)(o)},s!==void 0){n[i]=s;return}i in n&&delete n[i]}Mu.updateArgument=PV;function xV(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Mu.createVariableNameGenerator=xV});var $O=L(Nm=>{"use strict";p();m();f();Object.defineProperty(Nm,"__esModule",{value:!0});Nm.implementsAbstractType=void 0;var hE=(ie(),ae(de));function kV(e,t,n){return n==null||t==null?!1:t===n?!0:(0,hE.isCompositeType)(t)&&(0,hE.isCompositeType)(n)?(0,hE.doTypesOverlap)(e,t,n):!1}Nm.implementsAbstractType=kV});var jO=L(Em=>{"use strict";p();m();f();Object.defineProperty(Em,"__esModule",{value:!0});Em.observableToAsyncIterable=void 0;function MV(e){let t=[],n=[],r=!0,i=l=>{t.length!==0?t.shift()({value:l,done:!1}):n.push({value:l,done:!1})},o=l=>{t.length!==0?t.shift()({value:{errors:[l]},done:!1}):n.push({value:{errors:[l]},done:!1})},s=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},a=()=>new Promise(l=>{if(n.length!==0){let d=n.shift();l(d)}else t.push(l)}),u=e.subscribe({next(l){i(l)},error(l){o(l)},complete(){s()}}),c=()=>{if(r){r=!1,u.unsubscribe();for(let l of t)l({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?a():this.return()},return(){return c(),Promise.resolve({value:void 0,done:!0})},throw(l){return c(),Promise.reject(l)},[Symbol.asyncIterator](){return this}}}Em.observableToAsyncIterable=MV});var GO=L(gm=>{"use strict";p();m();f();Object.defineProperty(gm,"__esModule",{value:!0});gm.AccumulatorMap=void 0;var yE=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};gm.AccumulatorMap=yE});var TE=L(Uu=>{"use strict";p();m();f();Object.defineProperty(Uu,"__esModule",{value:!0});Uu.GraphQLStreamDirective=Uu.GraphQLDeferDirective=void 0;var Yr=(ie(),ae(de));Uu.GraphQLDeferDirective=new Yr.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Yr.DirectiveLocation.FRAGMENT_SPREAD,Yr.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Yr.GraphQLNonNull(Yr.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Yr.GraphQLString,description:"Unique name"}}});Uu.GraphQLStreamDirective=new Yr.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Yr.DirectiveLocation.FIELD],args:{if:{type:new Yr.GraphQLNonNull(Yr.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Yr.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Yr.GraphQLInt,description:"Number of items to return immediately"}}})});var gE=L(Er=>{"use strict";p();m();f();Object.defineProperty(Er,"__esModule",{value:!0});Er.collectSubFields=Er.getDeferValues=Er.getFieldEntryKey=Er.doesFragmentConditionMatch=Er.shouldIncludeNode=Er.collectFields=void 0;var Vi=(ie(),ae(de)),vm=GO(),UV=TE(),CV=Au();function Cu(e,t,n,r,i,o,s,a){for(let u of i.selections)switch(u.kind){case Vi.Kind.FIELD:{if(!Im(n,u))continue;o.add(qO(u),u);break}case Vi.Kind.INLINE_FRAGMENT:{if(!Im(n,u)||!NE(e,u,r))continue;let c=EE(n,u);if(c){let l=new vm.AccumulatorMap;Cu(e,t,n,r,u.selectionSet,l,s,a),s.push({label:c.label,fields:l})}else Cu(e,t,n,r,u.selectionSet,o,s,a);break}case Vi.Kind.FRAGMENT_SPREAD:{let c=u.name.value;if(!Im(n,u))continue;let l=EE(n,u);if(a.has(c)&&!l)continue;let d=t[c];if(!d||!NE(e,d,r))continue;if(l||a.add(c),l){let h=new vm.AccumulatorMap;Cu(e,t,n,r,d.selectionSet,h,s,a),s.push({label:l.label,fields:h})}else Cu(e,t,n,r,d.selectionSet,o,s,a);break}}}function BV(e,t,n,r,i){let o=new vm.AccumulatorMap,s=[];return Cu(e,t,n,r,i,o,s,new Set),{fields:o,patches:s}}Er.collectFields=BV;function Im(e,t){let n=(0,Vi.getDirectiveValues)(Vi.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Vi.getDirectiveValues)(Vi.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}Er.shouldIncludeNode=Im;function NE(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Vi.typeFromAST)(e,r);return i===n?!0:(0,Vi.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}Er.doesFragmentConditionMatch=NE;function qO(e){return e.alias?e.alias.value:e.name.value}Er.getFieldEntryKey=qO;function EE(e,t){let n=(0,Vi.getDirectiveValues)(UV.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Er.getDeferValues=EE;Er.collectSubFields=(0,CV.memoize5)(function(t,n,r,i,o){let s=new vm.AccumulatorMap,a=new Set,u=[],c={fields:s,patches:u};for(let l of o)l.selectionSet&&Cu(t,n,r,i,l.selectionSet,s,u,a);return c})});var IE=L(Bu=>{"use strict";p();m();f();Object.defineProperty(Bu,"__esModule",{value:!0});Bu.getOperationASTFromRequest=Bu.getOperationASTFromDocument=void 0;var VV=(ie(),ae(de)),$V=Au();function KO(e,t){let n=(0,VV.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}Bu.getOperationASTFromDocument=KO;Bu.getOperationASTFromRequest=(0,$V.memoize1)(function(t){return KO(t.document,t.operationName)})});var JO=L(ws=>{"use strict";p();m();f();Object.defineProperty(ws,"__esModule",{value:!0});ws.visitResult=ws.visitErrors=ws.visitData=void 0;var As=(ie(),ae(de)),vE=gE(),jV=IE();function _E(e,t,n){if(Array.isArray(e))return e.map(r=>_E(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let o=r[i];Object.defineProperty(r,i,{value:_E(o,t,n)})}return n!=null?n(r):r}return e}ws.visitData=_E;function GV(e,t){return e.map(n=>t(n))}ws.visitErrors=GV;function qV(e,t,n,r,i){let o=t.document.definitions.reduce((h,N)=>(N.kind===As.Kind.FRAGMENT_DEFINITION&&(h[N.name.value]=N),h),{}),s=t.variables||{},a={segmentInfoMap:new Map,unpathedErrors:new Set},u=e.data,c=e.errors,l=c!=null&&i!=null,d=(0,jV.getOperationASTFromRequest)(t);return u!=null&&d!=null&&(e.data=YV(u,d,n,o,s,r,l?c:void 0,a)),c!=null&&i&&(e.errors=KV(c,i,a)),e}ws.visitResult=qV;function KV(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,o=t.__unpathed;return e.map(s=>{let a=r.get(s),u=a==null?s:a.reduceRight((c,l)=>{let d=l.type.name,h=t[d];if(h==null)return c;let N=h[l.fieldName];return N==null?c:N(c,l.pathIndex)},s);return o&&i.has(s)?o(u):u})}function QV(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function YV(e,t,n,r,i,o,s,a){let u=QV(n,t),{fields:c}=(0,vE.collectFields)(n,r,i,u,t.selectionSet);return bE(e,u,c,n,r,i,o,0,s,a)}function bE(e,t,n,r,i,o,s,a,u,c){var Y;let l=t.getFields(),d=s==null?void 0:s[t.name],h=d==null?void 0:d.__enter,N=h!=null?h(e):e,E,D=null;if(u!=null){E=zV(u,a),D=E.errorMap;for(let J of E.unpathedErrors)c.unpathedErrors.add(J)}for(let[J,Z]of n){let H=Z[0].name.value,_e=(Y=l[H])==null?void 0:Y.type;if(_e==null)switch(H){case"__typename":_e=As.TypeNameMetaFieldDef.type;break;case"__schema":_e=As.SchemaMetaFieldDef.type;break;case"__type":_e=As.TypeMetaFieldDef.type;break}let ut=a+1,kt;D&&(kt=D[J],kt!=null&&delete D[J],WV(t,H,ut,kt,c));let Q=YO(e[J],_e,Z,r,i,o,s,ut,kt,c);QO(N,J,Q,d,H)}let A=N.__typename;if(A!=null&&QO(N,"__typename",A,d,"__typename"),D)for(let J in D){let Z=D[J];for(let H of Z)c.unpathedErrors.add(H)}let F=d==null?void 0:d.__leave;return F!=null?F(N):N}function QO(e,t,n,r,i){if(r==null){e[t]=n;return}let o=r[i];if(o==null){e[t]=n;return}let s=o(n);if(s===void 0){delete e[t];return}e[t]=s}function JV(e,t,n,r,i,o,s,a,u,c){return e.map(l=>YO(l,t,n,r,i,o,s,a+1,u,c))}function YO(e,t,n,r,i,o,s,a,u=[],c){if(e==null)return e;let l=(0,As.getNullableType)(t);if((0,As.isListType)(l))return JV(e,l.ofType,n,r,i,o,s,a,u,c);if((0,As.isAbstractType)(l)){let N=r.getType(e.__typename),{fields:E}=(0,vE.collectSubFields)(r,i,o,N,n);return bE(e,N,E,r,i,o,s,a,u,c)}else if((0,As.isObjectType)(l)){let{fields:N}=(0,vE.collectSubFields)(r,i,o,l,n);return bE(e,l,N,r,i,o,s,a,u,c)}let d=s==null?void 0:s[l.name];if(d==null)return e;let h=d(e);return h===void 0?e:h}function zV(e,t){var i;let n=Object.create(null),r=new Set;for(let o of e){let s=(i=o.path)==null?void 0:i[t];if(s==null){r.add(o);continue}s in n?n[s].push(o):n[s]=[o]}return{errorMap:n,unpathedErrors:r}}function WV(e,t,n,r=[],i){for(let o of r){let s={type:e,fieldName:t,pathIndex:n},a=i.segmentInfoMap.get(o);a==null?i.segmentInfoMap.set(o,[s]):a.push(s)}}});var zO=L(_m=>{"use strict";p();m();f();Object.defineProperty(_m,"__esModule",{value:!0});_m.valueMatchesCriteria=void 0;function SE(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>SE(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>SE(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}_m.valueMatchesCriteria=SE});var WO=L(bm=>{"use strict";p();m();f();Object.defineProperty(bm,"__esModule",{value:!0});bm.isAsyncIterable=void 0;function HV(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}bm.isAsyncIterable=HV});var HO=L(Sm=>{"use strict";p();m();f();Object.defineProperty(Sm,"__esModule",{value:!0});Sm.isDocumentNode=void 0;var XV=(ie(),ae(de));function ZV(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===XV.Kind.DOCUMENT}Sm.isDocumentNode=ZV});var XO=L(()=>{"use strict";p();m();f()});var nA=L(Fs=>{"use strict";p();m();f();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.withCancel=Fs.getAsyncIterableWithCancel=Fs.getAsyncIteratorWithCancel=void 0;var e$=Au();function t$(e){return ar(this,null,function*(){return{value:e,done:!0}})}var ZO=(0,e$.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function eA(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let o=Reflect.get(n,r,i);if(r==="return"){let s=o||t$;return function(u){return ar(this,null,function*(){let c=yield t(u);return Reflect.apply(s,n,[c])})}}else if(typeof o=="function")return ZO(n,o);return o}})}Fs.getAsyncIteratorWithCancel=eA;function tA(e,t){return new Proxy(e,{get(n,r,i){let o=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let a=Reflect.apply(o,n,[]);return eA(a,t)}:typeof o=="function"?ZO(n,o):o}})}Fs.getAsyncIterableWithCancel=tA;Fs.withCancel=tA});var rA=L(Dm=>{"use strict";p();m();f();Object.defineProperty(Dm,"__esModule",{value:!0});Dm.fixSchemaAst=void 0;var n$=(ie(),ae(de)),r$=WN();function i$(e,t){let n=(0,r$.getDocumentNodeFromSchema)(e);return(0,n$.buildASTSchema)(n,w({},t||{}))}function o$(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=i$(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}Dm.fixSchemaAst=o$});var iA=L(Om=>{"use strict";p();m();f();Object.defineProperty(Om,"__esModule",{value:!0});Om.extractExtensionsFromSchema=void 0;var yo=ga(),s$=xu();function hi(e={}){let t=w({},e),n=t.directives;if(n!=null)for(let r in n){let i=n[r];Array.isArray(i)||(n[r]=[i])}return t}function a$(e){let t={schemaExtensions:hi(e.extensions),types:{}};return(0,s$.mapSchema)(e,{[yo.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:hi(n.extensions)},n),[yo.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:hi(n.extensions)},n),[yo.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:hi(n.extensions)};let o=n.args;if(o!=null)for(let s in o)t.types[i].fields[r].arguments[s]=hi(o[s].extensions);return n},[yo.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:hi(n.extensions)},n),[yo.MapperKind.ENUM_VALUE]:(n,r,i,o)=>(t.types[r].values[o]=hi(n.extensions),n),[yo.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:hi(n.extensions)},n),[yo.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:hi(n.extensions)},n),[yo.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:hi(n.extensions)},n),[yo.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:hi(n.extensions)},n)}),t}Om.extractExtensionsFromSchema=a$});var oA=L(Ls=>{"use strict";p();m();f();Object.defineProperty(Ls,"__esModule",{value:!0});Ls.printPathArray=Ls.pathToArray=Ls.addPath=void 0;function u$(e,t,n){return{prev:e,key:t,typename:n}}Ls.addPath=u$;function c$(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}Ls.pathToArray=c$;function l$(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}Ls.printPathArray=l$});var sA=L(DE=>{"use strict";p();m();f();function Am(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";p();m();f();Object.defineProperty(wm,"__esModule",{value:!0});wm.mergeIncrementalResult=void 0;var OE=sA();function aA({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,OE.dset)(t,n,i),n[n.length-1]++;e.data&&(0,OE.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,OE.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{aA({incrementalResult:i,executionResult:t})})}wm.mergeIncrementalResult=aA});var lA=L(Vu=>{"use strict";p();m();f();Object.defineProperty(Vu,"__esModule",{value:!0});Vu.debugTimerEnd=Vu.debugTimerStart=void 0;var cA=new Set;function p$(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(cA.add(e),console.time(e))}Vu.debugTimerStart=p$;function f$(e){cA.has(e)&&console.timeEnd(e)}Vu.debugTimerEnd=f$});var yi=L(ge=>{"use strict";p();m();f();Object.defineProperty(ge,"__esModule",{value:!0});ge.inspect=void 0;var be=(T0(),ae(y0));be.__exportStar(N0(),ge);be.__exportStar(Hl(),ge);be.__exportStar(CN(),ge);be.__exportStar(BN(),ge);be.__exportStar(A0(),ge);be.__exportStar($N(),ge);be.__exportStar(WN(),ge);be.__exportStar(BN(),ge);be.__exportStar(K0(),ge);be.__exportStar(Q0(),ge);be.__exportStar(oO(),ge);be.__exportStar(fO(),ge);be.__exportStar(hO(),ge);be.__exportStar(vO(),ge);be.__exportStar(bO(),ge);be.__exportStar(SO(),ge);be.__exportStar(OO(),ge);be.__exportStar(AO(),ge);be.__exportStar(xu(),ge);be.__exportStar(fE(),ge);be.__exportStar(em(),ge);be.__exportStar(FO(),ge);be.__exportStar(RO(),ge);be.__exportStar(ga(),ge);be.__exportStar(oE(),ge);be.__exportStar(PO(),ge);be.__exportStar(xO(),ge);be.__exportStar(kO(),ge);be.__exportStar(MO(),ge);be.__exportStar(sE(),ge);be.__exportStar(BO(),ge);be.__exportStar(VO(),ge);be.__exportStar($O(),ge);be.__exportStar(kf(),ge);be.__exportStar(jO(),ge);be.__exportStar(JO(),ge);be.__exportStar(UN(),ge);be.__exportStar(zO(),ge);be.__exportStar(WO(),ge);be.__exportStar(HO(),ge);be.__exportStar(Gf(),ge);be.__exportStar(XO(),ge);be.__exportStar(nA(),ge);be.__exportStar(td(),ge);be.__exportStar(XN(),ge);be.__exportStar(gE(),ge);var m$=Xl();Object.defineProperty(ge,"inspect",{enumerable:!0,get:function(){return m$.inspect}});be.__exportStar(Au(),ge);be.__exportStar(rA(),ge);be.__exportStar(IE(),ge);be.__exportStar(iA(),ge);be.__exportStar(oA(),ge);be.__exportStar(Zl(),ge);be.__exportStar(TE(),ge);be.__exportStar(uA(),ge);be.__exportStar(lA(),ge)});var pA=L(Fm=>{"use strict";p();m();f();Object.defineProperty(Fm,"__esModule",{value:!0});Fm.mergeResolvers=void 0;var h$=yi();function dA(e,t){if(!e||Array.isArray(e)&&e.length===0)return{};if(!Array.isArray(e))return e;if(e.length===1)return e[0]||{};let n=new Array;for(let i of e)Array.isArray(i)&&(i=dA(i)),typeof i=="object"&&i&&n.push(i);let r=(0,h$.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[o,s]=i.split(".");!s||s==="*"?delete r[o]:r[o]&&delete r[o][s]}return r}Fm.mergeResolvers=dA});var AE=L(Lm=>{"use strict";p();m();f();Object.defineProperty(Lm,"__esModule",{value:!0});Lm.mergeArguments=void 0;var fA=yi();function y$(e,t,n){let r=T$([...t,...e].filter(fA.isSome),n);return n&&n.sort&&r.sort(fA.compareNodes),r}Lm.mergeArguments=y$;function T$(e,t){return e.reduce((n,r)=>{let i=n.findIndex(o=>o.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var Jr=L($u=>{"use strict";p();m();f();Object.defineProperty($u,"__esModule",{value:!0});$u.mergeDirective=$u.mergeDirectives=void 0;var mA=(ie(),ae(de)),N$=yi();function E$(e,t){return!!e.find(n=>n.name.value===t.name.value)}function hA(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function g$(e,t){return t.some(({value:n})=>n===e.value)}function yA(e,t){let n=[...t];for(let r of e){let i=n.findIndex(o=>o.name.value===r.name.value);if(i>-1){let o=n[i];if(o.value.kind==="ListValue"){let s=o.value.values,a=r.value.values;o.value.values=S$(s,a,(u,c)=>{let l=u.value;return!l||!c.some(d=>d.value===l)})}else o.value=r.value}else n.push(r)}return n}function I$(e,t){return e.map((n,r,i)=>{let o=i.findIndex(s=>s.name.value===n.name.value);if(o!==r&&!hA(n,t)){let s=i[o];return n.arguments=yA(n.arguments,s.arguments),null}return n}).filter(N$.isSome)}function v$(e=[],t=[],n,r){let i=n&&n.reverseDirectives,o=i?e:t,s=i?t:e,a=I$([...o],r);for(let u of s)if(E$(a,u)&&!hA(u,r)){let c=a.findIndex(d=>d.name.value===u.name.value),l=a[c];a[c].arguments=yA(u.arguments||[],l.arguments||[])}else a.push(u);return a}$u.mergeDirectives=v$;function _$(e,t){let n=(0,mA.print)(U(w({},e),{description:void 0})),r=(0,mA.print)(U(w({},t),{description:void 0})),i=new RegExp("(directive @w*d*)|( on .*$)","g");if(!(n.replace(i,"")===r.replace(i,"")))throw new Error(`Unable to merge GraphQL directive "${e.name.value}". Existing directive: ${r} Received directive: - ${n}`)}function b$(e,t){return t?(_$(e,t),U(w({},e),{locations:[...t.locations,...e.locations.filter(n=>!g$(n,t.locations))]})):e}$u.mergeDirective=b$;function S$(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var wE=R(Lm=>{"use strict";p();m();f();Object.defineProperty(Lm,"__esModule",{value:!0});Lm.mergeEnumValues=void 0;var D$=Jr(),O$=yi();function A$(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let s=[];e&&s.push(...e),e=t,t=s}let i=new Map;if(e)for(let s of e)i.set(s.name.value,s);if(t)for(let s of t){let a=s.name.value;if(i.has(a)){let u=i.get(a);u.description=s.description||u.description,u.directives=(0,D$.mergeDirectives)(s.directives,u.directives,r)}else i.set(a,s)}let o=[...i.values()];return n&&n.sort&&o.sort(O$.compareNodes),o}Lm.mergeEnumValues=A$});var FE=R(Pm=>{"use strict";p();m();f();Object.defineProperty(Pm,"__esModule",{value:!0});Pm.mergeEnum=void 0;var w$=(ie(),ae(de)),F$=Jr(),R$=wE();function L$(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,F$.mergeDirectives)(e.directives,t.directives,n,r),values:(0,R$.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?U(w({},e),{kind:w$.Kind.ENUM_TYPE_DEFINITION}):e}Pm.mergeEnum=L$});var xm=R(ln=>{"use strict";p();m();f();Object.defineProperty(ln,"__esModule",{value:!0});ln.defaultStringComparator=ln.CompareVal=ln.printTypeNode=ln.isNonNullTypeNode=ln.isListTypeNode=ln.isWrappingTypeNode=ln.extractType=ln.isSourceTypes=ln.isStringTypes=void 0;var ud=(ie(),ae(de));function P$(e){return typeof e=="string"}ln.isStringTypes=P$;function x$(e){return e instanceof ud.Source}ln.isSourceTypes=x$;function k$(e){let t=e;for(;t.kind===ud.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}ln.extractType=k$;function M$(e){return e.kind!==ud.Kind.NAMED_TYPE}ln.isWrappingTypeNode=M$;function TA(e){return e.kind===ud.Kind.LIST_TYPE}ln.isListTypeNode=TA;function NA(e){return e.kind===ud.Kind.NON_NULL_TYPE}ln.isNonNullTypeNode=NA;function RE(e){return TA(e)?`[${RE(e.type)}]`:NA(e)?`${RE(e.type)}!`:e.name.value}ln.printTypeNode=RE;var ba;(function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"})(ba=ln.CompareVal||(ln.CompareVal={}));function U$(e,t){return e==null&&t==null?ba.A_EQUALS_B:e==null?ba.A_SMALLER_THAN_B:t==null?ba.A_GREATER_THAN_B:et?ba.A_GREATER_THAN_B:ba.A_EQUALS_B}ln.defaultStringComparator=U$});var ld=R(km=>{"use strict";p();m();f();Object.defineProperty(km,"__esModule",{value:!0});km.mergeFields=void 0;var gr=xm(),C$=Jr(),B$=yi(),V$=AE();function $$(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function j$(e,t,n,r,i){let o=[];if(n!=null&&o.push(...n),t!=null)for(let s of t){let[a,u]=$$(o,s);if(a&&!(r!=null&&r.ignoreFieldConflicts)){let c=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(a,s,e,r==null?void 0:r.throwOnConflict)||G$(e,a,s,r==null?void 0:r.throwOnConflict);c.arguments=(0,V$.mergeArguments)(s.arguments||[],a.arguments||[],r),c.directives=(0,C$.mergeDirectives)(s.directives,a.directives,r,i),c.description=s.description||a.description,o[u]=c}else o.push(s)}if(r&&r.sort&&o.sort(B$.compareNodes),r&&r.exclusions){let s=r.exclusions;return o.filter(a=>!s.includes(`${e.name.value}.${a.name.value}`))}return o}km.mergeFields=j$;function G$(e,t,n,r=!1){let i=(0,gr.printTypeNode)(t.type),o=(0,gr.printTypeNode)(n.type);if(i!==o){let s=(0,gr.extractType)(t.type),a=(0,gr.extractType)(n.type);if(s.name.value!==a.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${s.name.value}", but you tried to override with "${a.name.value}"`);if(!cd(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${o}'`)}return(0,gr.isNonNullTypeNode)(n.type)&&!(0,gr.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function cd(e,t,n=!1){if(!(0,gr.isWrappingTypeNode)(e)&&!(0,gr.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,gr.isNonNullTypeNode)(t)){let r=(0,gr.isNonNullTypeNode)(e)?e.type:e;return cd(r,t.type)}return(0,gr.isNonNullTypeNode)(e)?cd(t,e,n):(0,gr.isListTypeNode)(e)?(0,gr.isListTypeNode)(t)&&cd(e.type,t.type)||(0,gr.isNonNullTypeNode)(t)&&cd(e,t.type):!1}});var LE=R(Mm=>{"use strict";p();m();f();Object.defineProperty(Mm,"__esModule",{value:!0});Mm.mergeInputType=void 0;var q$=(ie(),ae(de)),K$=ld(),Q$=Jr();function Y$(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,K$.mergeFields)(e,e.fields,t.fields,n),directives:(0,Q$.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?U(w({},e),{kind:q$.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}Mm.mergeInputType=Y$});var dd=R(Um=>{"use strict";p();m();f();Object.defineProperty(Um,"__esModule",{value:!0});Um.mergeNamedTypeArray=void 0;var J$=yi();function z$(e,t){return!!e.find(n=>n.name.value===t.name.value)}function W$(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!z$(t,i))];return n&&n.sort&&r.sort(J$.compareNodes),r}Um.mergeNamedTypeArray=W$});var PE=R(Cm=>{"use strict";p();m();f();Object.defineProperty(Cm,"__esModule",{value:!0});Cm.mergeInterface=void 0;var X$=(ie(),ae(de)),H$=ld(),Z$=Jr(),ej=dd();function tj(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,H$.mergeFields)(e,e.fields,t.fields,n),directives:(0,Z$.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,ej.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?U(w({},e),{kind:X$.Kind.INTERFACE_TYPE_DEFINITION}):e}Cm.mergeInterface=tj});var xE=R(Bm=>{"use strict";p();m();f();Object.defineProperty(Bm,"__esModule",{value:!0});Bm.mergeType=void 0;var nj=(ie(),ae(de)),rj=ld(),ij=Jr(),oj=dd();function sj(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,rj.mergeFields)(e,e.fields,t.fields,n),directives:(0,ij.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,oj.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?U(w({},e),{kind:nj.Kind.OBJECT_TYPE_DEFINITION}):e}Bm.mergeType=sj});var kE=R(Vm=>{"use strict";p();m();f();Object.defineProperty(Vm,"__esModule",{value:!0});Vm.mergeScalar=void 0;var aj=(ie(),ae(de)),uj=Jr();function cj(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,uj.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?U(w({},e),{kind:aj.Kind.SCALAR_TYPE_DEFINITION}):e}Vm.mergeScalar=cj});var UE=R($m=>{"use strict";p();m();f();Object.defineProperty($m,"__esModule",{value:!0});$m.mergeUnion=void 0;var ME=(ie(),ae(de)),lj=Jr(),dj=dd();function pj(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,lj.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?ME.Kind.UNION_TYPE_DEFINITION:ME.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,dj.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?U(w({},e),{kind:ME.Kind.UNION_TYPE_DEFINITION}):e}$m.mergeUnion=pj});var CE=R(Sa=>{"use strict";p();m();f();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.mergeSchemaDefs=Sa.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var pd=(ie(),ae(de)),fj=Jr();Sa.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function mj(e=[],t=[]){let n=[];for(let r in Sa.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(o=>o.operation===r)||t.find(o=>o.operation===r);i&&n.push(i)}return n}function hj(e,t,n,r){return t?{kind:e.kind===pd.Kind.SCHEMA_DEFINITION||t.kind===pd.Kind.SCHEMA_DEFINITION?pd.Kind.SCHEMA_DEFINITION:pd.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,fj.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:mj(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?U(w({},e),{kind:pd.Kind.SCHEMA_DEFINITION}):e}Sa.mergeSchemaDefs=hj});var BE=R($i=>{"use strict";p();m();f();Object.defineProperty($i,"__esModule",{value:!0});$i.mergeGraphQLNodes=$i.isNamedDefinitionNode=$i.schemaDefSymbol=void 0;var mr=(ie(),ae(de)),yj=xE(),Tj=FE(),Nj=kE(),Ej=UE(),gj=LE(),Ij=PE(),vj=Jr(),_j=CE(),bj=yi();$i.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function EA(e){return"name"in e}$i.isNamedDefinitionNode=EA;function Sj(e,t,n={}){var i,o,s;let r=n;for(let a of e)if(EA(a)){let u=(i=a.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,bj.collectComment)(a),u==null)continue;if((o=t==null?void 0:t.exclusions)!=null&&o.includes(u+".*")||(s=t==null?void 0:t.exclusions)!=null&&s.includes(u))delete r[u];else switch(a.kind){case mr.Kind.OBJECT_TYPE_DEFINITION:case mr.Kind.OBJECT_TYPE_EXTENSION:r[u]=(0,yj.mergeType)(a,r[u],t,n);break;case mr.Kind.ENUM_TYPE_DEFINITION:case mr.Kind.ENUM_TYPE_EXTENSION:r[u]=(0,Tj.mergeEnum)(a,r[u],t,n);break;case mr.Kind.UNION_TYPE_DEFINITION:case mr.Kind.UNION_TYPE_EXTENSION:r[u]=(0,Ej.mergeUnion)(a,r[u],t,n);break;case mr.Kind.SCALAR_TYPE_DEFINITION:case mr.Kind.SCALAR_TYPE_EXTENSION:r[u]=(0,Nj.mergeScalar)(a,r[u],t,n);break;case mr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case mr.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[u]=(0,gj.mergeInputType)(a,r[u],t,n);break;case mr.Kind.INTERFACE_TYPE_DEFINITION:case mr.Kind.INTERFACE_TYPE_EXTENSION:r[u]=(0,Ij.mergeInterface)(a,r[u],t,n);break;case mr.Kind.DIRECTIVE_DEFINITION:r[u]=(0,vj.mergeDirective)(a,r[u]);break}}else(a.kind===mr.Kind.SCHEMA_DEFINITION||a.kind===mr.Kind.SCHEMA_EXTENSION)&&(r[$i.schemaDefSymbol]=(0,_j.mergeSchemaDefs)(a,r[$i.schemaDefSymbol],t));return r}$i.mergeGraphQLNodes=Sj});var vA=R(Ku=>{"use strict";p();m();f();Object.defineProperty(Ku,"__esModule",{value:!0});Ku.mergeGraphQLTypes=Ku.mergeTypeDefs=void 0;var zr=(ie(),ae(de)),VE=xm(),ju=BE(),qu=yi(),gA=CE();function Dj(e,t){(0,qu.resetComments)();let n={kind:zr.Kind.DOCUMENT,definitions:IA(e,w({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,qu.printWithComments)(n):r=n,(0,qu.resetComments)(),r}Ku.mergeTypeDefs=Dj;function Gu(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Gu(e(),t,n,r,i);else if(Array.isArray(e))for(let o of e)Gu(o,t,n,r,i);else if((0,zr.isSchema)(e)){let o=(0,qu.getDocumentNodeFromSchema)(e,t);Gu(o.definitions,t,n,r,i)}else if((0,VE.isStringTypes)(e)||(0,VE.isSourceTypes)(e)){let o=(0,zr.parse)(e,t);Gu(o.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,zr.isDefinitionNode)(e))e.kind===zr.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,qu.isDocumentNode)(e))Gu(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function IA(e,t){var a,u,c;(0,qu.resetComments)();let{allDirectives:n,allNodes:r}=Gu(e,t),i=(0,ju.mergeGraphQLNodes)(n,t),o=(0,ju.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let l=o[ju.schemaDefSymbol]||{kind:zr.Kind.SCHEMA_DEFINITION,operationTypes:[]},d=l.operationTypes;for(let h in gA.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!d.find(E=>E.operation===h)){let E=gA.DEFAULT_OPERATION_TYPE_NAME_MAP[h],D=o[E];D!=null&&D.name!=null&&d.push({kind:zr.Kind.OPERATION_TYPE_DEFINITION,type:{kind:zr.Kind.NAMED_TYPE,name:D.name},operation:h})}((a=l==null?void 0:l.operationTypes)==null?void 0:a.length)!=null&&l.operationTypes.length>0&&(o[ju.schemaDefSymbol]=l)}t!=null&&t.forceSchemaDefinition&&!((c=(u=o[ju.schemaDefSymbol])==null?void 0:u.operationTypes)!=null&&c.length)&&(o[ju.schemaDefSymbol]={kind:zr.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:zr.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:zr.Kind.NAMED_TYPE,name:{kind:zr.Kind.NAME,value:"Query"}}}]});let s=Object.values(o);if(t!=null&&t.sort){let l=typeof t.sort=="function"?t.sort:VE.defaultStringComparator;s.sort((d,h)=>{var N,E;return l((N=d.name)==null?void 0:N.value,(E=h.name)==null?void 0:E.value)})}return s}Ku.mergeGraphQLTypes=IA});var _A=R(nr=>{"use strict";p();m();f();Object.defineProperty(nr,"__esModule",{value:!0});var Ir=(FN(),ae(wN));Ir.__exportStar(AE(),nr);Ir.__exportStar(Jr(),nr);Ir.__exportStar(wE(),nr);Ir.__exportStar(FE(),nr);Ir.__exportStar(ld(),nr);Ir.__exportStar(LE(),nr);Ir.__exportStar(PE(),nr);Ir.__exportStar(dd(),nr);Ir.__exportStar(BE(),nr);Ir.__exportStar(vA(),nr);Ir.__exportStar(kE(),nr);Ir.__exportStar(xE(),nr);Ir.__exportStar(UE(),nr);Ir.__exportStar(xm(),nr)});var SA=R(Ls=>{"use strict";p();m();f();Object.defineProperty(Ls,"__esModule",{value:!0});Ls.applyExtensions=Ls.mergeExtensions=Ls.extractExtensionsFromSchema=void 0;var bA=yi(),Oj=yi();Object.defineProperty(Ls,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Oj.extractExtensionsFromSchema}});function Aj(e){return(0,bA.mergeDeep)(e)}Ls.mergeExtensions=Aj;function Qu(e,t){e&&(e.extensions=(0,bA.mergeDeep)([e.extensions||{},t||{}]))}function wj(e,t){Qu(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Qu(i,r.extensions),r.type==="object"||r.type==="interface")for(let[o,s]of Object.entries(r.fields)){let a=i.getFields()[o];if(a){Qu(a,s.extensions);for(let[u,c]of Object.entries(s.arguments))Qu(a.args.find(l=>l.name===u),c)}}else if(r.type==="input")for(let[o,s]of Object.entries(r.fields)){let a=i.getFields()[o];Qu(a,s.extensions)}else if(r.type==="enum")for(let[o,s]of Object.entries(r.values)){let a=i.getValue(o);Qu(a,s)}}}return e}Ls.applyExtensions=wj});var jm=R(fd=>{"use strict";p();m();f();Object.defineProperty(fd,"__esModule",{value:!0});var $E=(FN(),ae(wN));$E.__exportStar(pA(),fd);$E.__exportStar(_A(),fd);$E.__exportStar(SA(),fd)});var Yu=R(kn=>{"use strict";p();m();f();Object.defineProperty(kn,"__esModule",{value:!0});kn.isNodeQuery=kn.validateAndAddDirectivesWithFieldSetToConfigurationData=kn.getNormalizedFieldSet=kn.extractFieldSetValue=kn.addNonExternalFieldsToSet=kn.getDirectiveDefinitionArgumentSets=kn.areNodeKindAndDirectiveLocationCompatible=kn.newFieldSetContainer=void 0;var se=(ie(),ae(de)),Wr=fo(),md=jr(),on=$r(),ot=di(),OA=Ss(),hd=Ds();function Fj(){return{keys:new Set,provides:new Map,requires:new Map}}kn.newFieldSetContainer=Fj;function Rj(e,t,n=!1){for(let r of t.locations){let i=r.value.toUpperCase();switch(i){case on.ARGUMENT_DEFINITION_UPPER:if(!n)break;if(e===se.Kind.INPUT_VALUE_DEFINITION)return!0;break;case on.ENUM_UPPER:if(e===se.Kind.ENUM_TYPE_DEFINITION||e===se.Kind.ENUM_TYPE_EXTENSION)return!0;break;case on.ENUM_VALUE_UPPER:if(e===se.Kind.ENUM_VALUE_DEFINITION)return!0;break;case on.FIELD_UPPER:if(e===se.Kind.FIELD)return!0;break;case on.FIELD_DEFINITION_UPPER:if(e===se.Kind.FIELD_DEFINITION)return!0;break;case on.INLINE_FRAGMENT_UPPER:if(e===se.Kind.INLINE_FRAGMENT)return!0;break;case on.INPUT_FIELD_DEFINITION_UPPER:if(e===se.Kind.INPUT_VALUE_DEFINITION)return!0;break;case on.INPUT_OBJECT_UPPER:if(e===se.Kind.INPUT_OBJECT_TYPE_DEFINITION||e===se.Kind.INPUT_OBJECT_TYPE_EXTENSION)return!0;break;case on.INTERFACE_UPPER:if(e===se.Kind.INTERFACE_TYPE_DEFINITION||e===se.Kind.INTERFACE_TYPE_EXTENSION)return!0;break;case on.OBJECT_UPPER:if(e===se.Kind.OBJECT_TYPE_DEFINITION||e===se.Kind.OBJECT_TYPE_EXTENSION)return!0;break;case on.FRAGMENT_DEFINITION_UPPER:if(e===se.Kind.FRAGMENT_DEFINITION)return!0;break;case on.FRAGMENT_SPREAD_UPPER:if(e===se.Kind.FRAGMENT_SPREAD)return!0;break;case on.SCALAR_UPPER:if(e===se.Kind.SCALAR_TYPE_DEFINITION||e===se.Kind.SCALAR_TYPE_EXTENSION)return!0;break;case on.SCHEMA_UPPER:if(e===se.Kind.SCHEMA_DEFINITION||e===se.Kind.SCHEMA_EXTENSION)return!0;break;case on.UNION_UPPER:if(e===se.Kind.UNION_TYPE_DEFINITION||e===se.Kind.UNION_TYPE_EXTENSION)return!0;break;case on.VARIABLE_DEFINITION_UPPER:if(e===se.Kind.VARIABLE_DEFINITION)return!0;break;case on.QUERY_UPPER:case on.MUTATION_UPPER:case on.SUBSCRIPTION_UPPER:if(e===se.Kind.OPERATION_DEFINITION)return!0;break;default:throw(0,ot.unexpectedDirectiveLocationError)(i)}}return!1}kn.areNodeKindAndDirectiveLocationCompatible=Rj;function Lj(e,t,n){for(let r of e){let i=r.name.value;t.set(i,r.type),r.type.kind===se.Kind.NON_NULL_TYPE&&!r.defaultValue&&n.add(i)}}kn.getDirectiveDefinitionArgumentSets=Lj;function Pj(e,t){for(let[n,r]of e)r.directivesByDirectiveName.has(on.EXTERNAL)||t.add(n)}kn.addNonExternalFieldsToSet=Pj;function xj(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==on.FIELDS||i.value.kind!==se.Kind.STRING||t.set(e,i.value.value)}kn.extractFieldSetValue=xj;function jE(e){return(0,se.print)((0,md.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}kn.getNormalizedFieldSet=jE;function kj(e,t,n,r){let{error:i,documentNode:o}=(0,md.safeParse)("{"+n+"}");if(i||!o)return{errorMessage:(0,ot.unparsableFieldSetErrorMessage)(n,i)};let s,a=[t],u=[],c=-1,l=!0,d=r,h=t.name;return(0,se.visit)(o,{Argument:{enter(){return!1}},Field:{enter(N){let E=a[c],D=E.name;if(E.kind===se.Kind.UNION_TYPE_DEFINITION)return s=(0,ot.invalidSelectionOnUnionErrorMessage)(n,h,D),se.BREAK;if(l)return s=(0,ot.invalidSelectionSetErrorMessage)(n,h,D,(0,Wr.kindToTypeString)(E.kind)),se.BREAK;let A=N.name.value;h=`${D}.${A}`,d=A;let F=E.fieldDataByFieldName.get(A);if(!F)return s=(0,ot.undefinedFieldInFieldSetErrorMessage)(n,D,A),se.BREAK;if(u[c].has(A))return s=(0,ot.duplicateFieldInFieldSetErrorMessage)(n,h),se.BREAK;u[c].add(A);let Y=(0,hd.getTypeNodeNamedTypeName)(F.node.type);if(OA.BASE_SCALARS.has(Y))return;let J=e.parentDefinitionDataByTypeName.get(Y)||e.parentExtensionDataByTypeName.get(Y);if(!J)return s=(0,ot.unknownTypeInFieldSetErrorMessage)(n,h,Y),se.BREAK;if(J.kind===se.Kind.OBJECT_TYPE_DEFINITION||J.kind===se.Kind.OBJECT_TYPE_EXTENSION||J.kind===se.Kind.INTERFACE_TYPE_DEFINITION||J.kind===se.Kind.UNION_TYPE_DEFINITION){l=!0,a.push(J);return}}},InlineFragment:{enter(N){let E=a[c],D=E.name;if(!N.typeCondition)return s=(0,ot.inlineFragmentWithoutTypeConditionErrorMessage)(n,h),se.BREAK;let A=N.typeCondition.name.value;if(A===D){a.push(E),l=!0;return}if(!(0,md.isKindAbstract)(E.kind))return s=(0,ot.invalidInlineFragmentTypeErrorMessage)(n,h,A,D),se.BREAK;let F=e.parentDefinitionDataByTypeName.get(A)||e.parentExtensionDataByTypeName.get(A);if(!F)return s=(0,ot.unknownInlineFragmentTypeConditionErrorMessage)(n,h,A),se.BREAK;if(F.kind!==se.Kind.INTERFACE_TYPE_DEFINITION&&F.kind!==se.Kind.OBJECT_TYPE_DEFINITION&&F.kind!==se.Kind.OBJECT_TYPE_EXTENSION&&F.kind!==se.Kind.UNION_TYPE_DEFINITION)return s=(0,ot.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,h,A,(0,Wr.kindToTypeString)(F.kind)),se.BREAK;let Y=e.concreteTypeNamesByAbstractTypeName.get(D);if(!Y||!Y.has(A))return s=(0,ot.invalidInlineFragmentTypeConditionErrorMessage)(n,h,A,(0,Wr.kindToTypeString)(E.kind),D),se.BREAK;l=!0,a.push(F)},leave(){a.pop()}},SelectionSet:{enter(){if(!l){let N=a[c];if(N.kind===se.Kind.UNION_TYPE_DEFINITION)return s=(0,ot.unparsableFieldSetSelectionErrorMessage)(n,d),se.BREAK;let E=N.fieldDataByFieldName.get(d);if(!E)return s=(0,ot.undefinedFieldInFieldSetErrorMessage)(n,h,d),se.BREAK;let D=(0,hd.getTypeNodeNamedTypeName)(E.node.type),A=e.parentDefinitionDataByTypeName.get(D),F=A?A.kind:se.Kind.SCALAR_TYPE_DEFINITION;return s=(0,ot.invalidSelectionSetDefinitionErrorMessage)(n,h,D,(0,Wr.kindToTypeString)(F)),se.BREAK}if(c+=1,l=!1,c<0||c>=a.length)return s=(0,ot.unparsableFieldSetSelectionErrorMessage)(n,d),se.BREAK;u.push(new Set)},leave(){if(l){let N=a[c+1];s=(0,ot.invalidSelectionSetErrorMessage)(n,h,N.name,(0,Wr.kindToTypeString)(N.kind)),l=!1}c-=1,a.pop(),u.pop()}}}),s?{errorMessage:s}:{configuration:{fieldName:r,selectionSet:jE(o)}}}function Mj(e,t,n,r,i){let o=t.name,s=[],a=[],u=new Set;for(let c of n){let{error:l,documentNode:d}=(0,md.safeParse)("{"+c+"}");if(l||!d){s.push((0,ot.unparsableFieldSetErrorMessage)(c,l));continue}let h=[t],N=[],E=-1,D=!0,A="";(0,se.visit)(d,{Argument:{enter(F){return s.push((0,ot.unexpectedArgumentErrorMessage)(c,`${h[E].name}.${A}`,F.name.value)),se.BREAK}},Field:{enter(F){let Y=h[E-1],J=h[E],Z=J.name;if(D)return s.push((0,ot.invalidSelectionSetErrorMessage)(c,`${Y.name}.${A}`,Z,(0,Wr.kindToTypeString)(J.kind))),se.BREAK;let X=F.name.value,_e=`${Z}.${X}`;A=X;let ut=J.fieldDataByFieldName.get(X);if(!ut)return s.push((0,ot.undefinedFieldInFieldSetErrorMessage)(c,Z,X)),se.BREAK;if(ut.argumentDataByArgumentName.size)return s.push((0,ot.argumentsInKeyFieldSetErrorMessage)(c,_e)),se.BREAK;if(N[E].has(X))return s.push((0,ot.duplicateFieldInFieldSetErrorMessage)(c,_e)),se.BREAK;ut.isShareableBySubgraphName.set(e.subgraphName,!0),N[E].add(X),E===0&&(u.add(X),r.add(X)),(0,Wr.getValueOrDefault)(e.keyFieldNamesByParentTypeName,Z,()=>new Set).add(X);let kt=(0,hd.getTypeNodeNamedTypeName)(ut.node.type);if(OA.BASE_SCALARS.has(kt))return;let Q=e.parentDefinitionDataByTypeName.get(kt)||e.parentExtensionDataByTypeName.get(kt);if(!Q)return s.push((0,ot.unknownTypeInFieldSetErrorMessage)(c,_e,kt)),se.BREAK;if(Q.kind===se.Kind.OBJECT_TYPE_DEFINITION||Q.kind===se.Kind.OBJECT_TYPE_EXTENSION){D=!0,h.push(Q);return}if((0,md.isKindAbstract)(Q.kind))return s.push((0,ot.abstractTypeInKeyFieldSetErrorMessage)(c,_e,kt,(0,Wr.kindToTypeString)(Q.kind))),se.BREAK}},InlineFragment:{enter(){return s.push(ot.inlineFragmentInFieldSetErrorMessage),se.BREAK}},SelectionSet:{enter(){if(!D){let F=h[E],J=`${F.name}.${A}`,Z=F.fieldDataByFieldName.get(A);if(!Z)return s.push((0,ot.undefinedFieldInFieldSetErrorMessage)(c,J,A)),se.BREAK;let X=(0,hd.getTypeNodeNamedTypeName)(Z.node.type),_e=e.parentDefinitionDataByTypeName.get(X),ut=_e?_e.kind:se.Kind.SCALAR_TYPE_DEFINITION;return s.push((0,ot.invalidSelectionSetDefinitionErrorMessage)(c,J,X,(0,Wr.kindToTypeString)(ut))),se.BREAK}if(E+=1,D=!1,E<0||E>=h.length)return s.push((0,ot.unparsableFieldSetSelectionErrorMessage)(c,A)),se.BREAK;N.push(new Set)},leave(){if(D){let Y=h[E].name,J=h[E+1],Z=`${Y}.${A}`;s.push((0,ot.invalidSelectionSetErrorMessage)(c,Z,J.name,(0,Wr.kindToTypeString)(J.kind))),D=!1}E-=1,h.pop(),N.pop()}}}),s.length||a.push(w({fieldName:"",selectionSet:jE(d)},i?{disableEntityResolver:!0}:{}))}if(s.length){e.errors.push((0,ot.invalidKeyDirectivesError)(o,s));return}if(a.length)return a}var yd;(function(e){e.PROVIDES="provides",e.REQUIRES="requires"})(yd||(yd={}));function Uj(e,t,n,r,i){if(t!==yd.PROVIDES)return e.entityContainerByTypeName.has(i)?{fieldSetParentContainer:n}:{};let o=(0,Wr.getOrThrowError)(n.fieldDataByFieldName,r,`${i}.fieldDataByFieldName`),s=(0,hd.getTypeNodeNamedTypeName)(o.node.type);if(!e.entityContainerByTypeName.has(s))return{};let a=e.parentDefinitionDataByTypeName.get(s)||e.parentExtensionDataByTypeName.get(s);return!a||a.kind!==se.Kind.OBJECT_TYPE_DEFINITION&&a.kind!==se.Kind.OBJECT_TYPE_EXTENSION?{errorString:(0,ot.unknownProvidesEntityErrorMessage)(`${i}.${r}`,s)}:{fieldSetParentContainer:a}}function DA(e,t,n,r){let i=[],o=[],s=t.name;for(let[a,u]of n){let{fieldSetParentContainer:c,errorString:l}=Uj(e,r,t,a,s),d=`${s}.${a}`;if(l){i.push(l);continue}if(!c)continue;let{errorMessage:h,configuration:N}=kj(e,c,u,a);if(h){i.push(` On "${s}.${a}" \u2014`+h);continue}if(N){o.push(N);continue}throw(0,ot.invalidConfigurationResultFatalError)(d)}if(i.length){e.errors.push((0,ot.invalidProvidesOrRequiresDirectivesError)(r,i));return}if(o.length)return o}function Cj(e,t,n){let r=(0,Wr.getOrThrowError)(e.configurationDataByParentTypeName,t.name,"configurationDataMap"),i=Mj(e,t,n.keys,r.fieldNames,n.disableEntityResolver);i&&(r.keys=i);let o=DA(e,t,n.provides,yd.PROVIDES);o&&(r.provides=o);let s=DA(e,t,n.requires,yd.REQUIRES);s&&(r.requires=s)}kn.validateAndAddDirectivesWithFieldSetToConfigurationData=Cj;function Bj(e,t){return e===on.QUERY||t===se.OperationTypeNode.QUERY}kn.isNodeQuery=Bj});var Da=R(GE=>{"use strict";p();m();f();Object.defineProperty(GE,"__esModule",{value:!0});GE.devAssert=Vj;function Vj(e,t){if(!!!e)throw new Error(t)}});var Ps=R(qE=>{"use strict";p();m();f();Object.defineProperty(qE,"__esModule",{value:!0});qE.isObjectLike=$j;function $j(e){return typeof e=="object"&&e!==null}});var yo=R(KE=>{"use strict";p();m();f();Object.defineProperty(KE,"__esModule",{value:!0});KE.invariant=jj;function jj(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var YE=R(QE=>{"use strict";p();m();f();Object.defineProperty(QE,"__esModule",{value:!0});QE.getLocation=Kj;var Gj=yo(),qj=/\r\n|[\n\r]/g;function Kj(e,t){let n=0,r=1;for(let i of e.body.matchAll(qj)){if(typeof i.index=="number"||(0,Gj.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var FA=R(Gm=>{"use strict";p();m();f();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.printLocation=Yj;Gm.printSourceLocation=wA;var Qj=YE();function Yj(e){return wA(e.source,(0,Qj.getLocation)(e.source,e.start))}function wA(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,u=t.column+a,c=`${e.name}:${s}:${u} + ${n}`)}function b$(e,t){return t?(_$(e,t),U(w({},e),{locations:[...t.locations,...e.locations.filter(n=>!g$(n,t.locations))]})):e}$u.mergeDirective=b$;function S$(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var wE=L(Rm=>{"use strict";p();m();f();Object.defineProperty(Rm,"__esModule",{value:!0});Rm.mergeEnumValues=void 0;var D$=Jr(),O$=yi();function A$(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let s=[];e&&s.push(...e),e=t,t=s}let i=new Map;if(e)for(let s of e)i.set(s.name.value,s);if(t)for(let s of t){let a=s.name.value;if(i.has(a)){let u=i.get(a);u.description=s.description||u.description,u.directives=(0,D$.mergeDirectives)(s.directives,u.directives,r)}else i.set(a,s)}let o=[...i.values()];return n&&n.sort&&o.sort(O$.compareNodes),o}Rm.mergeEnumValues=A$});var FE=L(Pm=>{"use strict";p();m();f();Object.defineProperty(Pm,"__esModule",{value:!0});Pm.mergeEnum=void 0;var w$=(ie(),ae(de)),F$=Jr(),L$=wE();function R$(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="EnumTypeDefinition"||t.kind==="EnumTypeDefinition"?"EnumTypeDefinition":"EnumTypeExtension",loc:e.loc,directives:(0,F$.mergeDirectives)(e.directives,t.directives,n,r),values:(0,L$.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?U(w({},e),{kind:w$.Kind.ENUM_TYPE_DEFINITION}):e}Pm.mergeEnum=R$});var xm=L(ln=>{"use strict";p();m();f();Object.defineProperty(ln,"__esModule",{value:!0});ln.defaultStringComparator=ln.CompareVal=ln.printTypeNode=ln.isNonNullTypeNode=ln.isListTypeNode=ln.isWrappingTypeNode=ln.extractType=ln.isSourceTypes=ln.isStringTypes=void 0;var ud=(ie(),ae(de));function P$(e){return typeof e=="string"}ln.isStringTypes=P$;function x$(e){return e instanceof ud.Source}ln.isSourceTypes=x$;function k$(e){let t=e;for(;t.kind===ud.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}ln.extractType=k$;function M$(e){return e.kind!==ud.Kind.NAMED_TYPE}ln.isWrappingTypeNode=M$;function TA(e){return e.kind===ud.Kind.LIST_TYPE}ln.isListTypeNode=TA;function NA(e){return e.kind===ud.Kind.NON_NULL_TYPE}ln.isNonNullTypeNode=NA;function LE(e){return TA(e)?`[${LE(e.type)}]`:NA(e)?`${LE(e.type)}!`:e.name.value}ln.printTypeNode=LE;var ba;(function(e){e[e.A_SMALLER_THAN_B=-1]="A_SMALLER_THAN_B",e[e.A_EQUALS_B=0]="A_EQUALS_B",e[e.A_GREATER_THAN_B=1]="A_GREATER_THAN_B"})(ba=ln.CompareVal||(ln.CompareVal={}));function U$(e,t){return e==null&&t==null?ba.A_EQUALS_B:e==null?ba.A_SMALLER_THAN_B:t==null?ba.A_GREATER_THAN_B:et?ba.A_GREATER_THAN_B:ba.A_EQUALS_B}ln.defaultStringComparator=U$});var ld=L(km=>{"use strict";p();m();f();Object.defineProperty(km,"__esModule",{value:!0});km.mergeFields=void 0;var gr=xm(),C$=Jr(),B$=yi(),V$=AE();function $$(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function j$(e,t,n,r,i){let o=[];if(n!=null&&o.push(...n),t!=null)for(let s of t){let[a,u]=$$(o,s);if(a&&!(r!=null&&r.ignoreFieldConflicts)){let c=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(a,s,e,r==null?void 0:r.throwOnConflict)||G$(e,a,s,r==null?void 0:r.throwOnConflict);c.arguments=(0,V$.mergeArguments)(s.arguments||[],a.arguments||[],r),c.directives=(0,C$.mergeDirectives)(s.directives,a.directives,r,i),c.description=s.description||a.description,o[u]=c}else o.push(s)}if(r&&r.sort&&o.sort(B$.compareNodes),r&&r.exclusions){let s=r.exclusions;return o.filter(a=>!s.includes(`${e.name.value}.${a.name.value}`))}return o}km.mergeFields=j$;function G$(e,t,n,r=!1){let i=(0,gr.printTypeNode)(t.type),o=(0,gr.printTypeNode)(n.type);if(i!==o){let s=(0,gr.extractType)(t.type),a=(0,gr.extractType)(n.type);if(s.name.value!==a.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${s.name.value}", but you tried to override with "${a.name.value}"`);if(!cd(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${o}'`)}return(0,gr.isNonNullTypeNode)(n.type)&&!(0,gr.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function cd(e,t,n=!1){if(!(0,gr.isWrappingTypeNode)(e)&&!(0,gr.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,gr.isNonNullTypeNode)(t)){let r=(0,gr.isNonNullTypeNode)(e)?e.type:e;return cd(r,t.type)}return(0,gr.isNonNullTypeNode)(e)?cd(t,e,n):(0,gr.isListTypeNode)(e)?(0,gr.isListTypeNode)(t)&&cd(e.type,t.type)||(0,gr.isNonNullTypeNode)(t)&&cd(e,t.type):!1}});var RE=L(Mm=>{"use strict";p();m();f();Object.defineProperty(Mm,"__esModule",{value:!0});Mm.mergeInputType=void 0;var q$=(ie(),ae(de)),K$=ld(),Q$=Jr();function Y$(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InputObjectTypeDefinition"||t.kind==="InputObjectTypeDefinition"?"InputObjectTypeDefinition":"InputObjectTypeExtension",loc:e.loc,fields:(0,K$.mergeFields)(e,e.fields,t.fields,n),directives:(0,Q$.mergeDirectives)(e.directives,t.directives,n,r)}}catch(i){throw new Error(`Unable to merge GraphQL input type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?U(w({},e),{kind:q$.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}Mm.mergeInputType=Y$});var dd=L(Um=>{"use strict";p();m();f();Object.defineProperty(Um,"__esModule",{value:!0});Um.mergeNamedTypeArray=void 0;var J$=yi();function z$(e,t){return!!e.find(n=>n.name.value===t.name.value)}function W$(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!z$(t,i))];return n&&n.sort&&r.sort(J$.compareNodes),r}Um.mergeNamedTypeArray=W$});var PE=L(Cm=>{"use strict";p();m();f();Object.defineProperty(Cm,"__esModule",{value:!0});Cm.mergeInterface=void 0;var H$=(ie(),ae(de)),X$=ld(),Z$=Jr(),ej=dd();function tj(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="InterfaceTypeDefinition"||t.kind==="InterfaceTypeDefinition"?"InterfaceTypeDefinition":"InterfaceTypeExtension",loc:e.loc,fields:(0,X$.mergeFields)(e,e.fields,t.fields,n),directives:(0,Z$.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,ej.mergeNamedTypeArray)(e.interfaces,t.interfaces,n):void 0}}catch(i){throw new Error(`Unable to merge GraphQL interface "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?U(w({},e),{kind:H$.Kind.INTERFACE_TYPE_DEFINITION}):e}Cm.mergeInterface=tj});var xE=L(Bm=>{"use strict";p();m();f();Object.defineProperty(Bm,"__esModule",{value:!0});Bm.mergeType=void 0;var nj=(ie(),ae(de)),rj=ld(),ij=Jr(),oj=dd();function sj(e,t,n,r){if(t)try{return{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ObjectTypeDefinition"||t.kind==="ObjectTypeDefinition"?"ObjectTypeDefinition":"ObjectTypeExtension",loc:e.loc,fields:(0,rj.mergeFields)(e,e.fields,t.fields,n),directives:(0,ij.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,oj.mergeNamedTypeArray)(e.interfaces,t.interfaces,n)}}catch(i){throw new Error(`Unable to merge GraphQL type "${e.name.value}": ${i.message}`)}return n!=null&&n.convertExtensions?U(w({},e),{kind:nj.Kind.OBJECT_TYPE_DEFINITION}):e}Bm.mergeType=sj});var kE=L(Vm=>{"use strict";p();m();f();Object.defineProperty(Vm,"__esModule",{value:!0});Vm.mergeScalar=void 0;var aj=(ie(),ae(de)),uj=Jr();function cj(e,t,n,r){return t?{name:e.name,description:e.description||t.description,kind:n!=null&&n.convertExtensions||e.kind==="ScalarTypeDefinition"||t.kind==="ScalarTypeDefinition"?"ScalarTypeDefinition":"ScalarTypeExtension",loc:e.loc,directives:(0,uj.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?U(w({},e),{kind:aj.Kind.SCALAR_TYPE_DEFINITION}):e}Vm.mergeScalar=cj});var UE=L($m=>{"use strict";p();m();f();Object.defineProperty($m,"__esModule",{value:!0});$m.mergeUnion=void 0;var ME=(ie(),ae(de)),lj=Jr(),dj=dd();function pj(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,lj.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?ME.Kind.UNION_TYPE_DEFINITION:ME.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,dj.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?U(w({},e),{kind:ME.Kind.UNION_TYPE_DEFINITION}):e}$m.mergeUnion=pj});var CE=L(Sa=>{"use strict";p();m();f();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.mergeSchemaDefs=Sa.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var pd=(ie(),ae(de)),fj=Jr();Sa.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function mj(e=[],t=[]){let n=[];for(let r in Sa.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(o=>o.operation===r)||t.find(o=>o.operation===r);i&&n.push(i)}return n}function hj(e,t,n,r){return t?{kind:e.kind===pd.Kind.SCHEMA_DEFINITION||t.kind===pd.Kind.SCHEMA_DEFINITION?pd.Kind.SCHEMA_DEFINITION:pd.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,fj.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:mj(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?U(w({},e),{kind:pd.Kind.SCHEMA_DEFINITION}):e}Sa.mergeSchemaDefs=hj});var BE=L($i=>{"use strict";p();m();f();Object.defineProperty($i,"__esModule",{value:!0});$i.mergeGraphQLNodes=$i.isNamedDefinitionNode=$i.schemaDefSymbol=void 0;var mr=(ie(),ae(de)),yj=xE(),Tj=FE(),Nj=kE(),Ej=UE(),gj=RE(),Ij=PE(),vj=Jr(),_j=CE(),bj=yi();$i.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function EA(e){return"name"in e}$i.isNamedDefinitionNode=EA;function Sj(e,t,n={}){var i,o,s;let r=n;for(let a of e)if(EA(a)){let u=(i=a.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,bj.collectComment)(a),u==null)continue;if((o=t==null?void 0:t.exclusions)!=null&&o.includes(u+".*")||(s=t==null?void 0:t.exclusions)!=null&&s.includes(u))delete r[u];else switch(a.kind){case mr.Kind.OBJECT_TYPE_DEFINITION:case mr.Kind.OBJECT_TYPE_EXTENSION:r[u]=(0,yj.mergeType)(a,r[u],t,n);break;case mr.Kind.ENUM_TYPE_DEFINITION:case mr.Kind.ENUM_TYPE_EXTENSION:r[u]=(0,Tj.mergeEnum)(a,r[u],t,n);break;case mr.Kind.UNION_TYPE_DEFINITION:case mr.Kind.UNION_TYPE_EXTENSION:r[u]=(0,Ej.mergeUnion)(a,r[u],t,n);break;case mr.Kind.SCALAR_TYPE_DEFINITION:case mr.Kind.SCALAR_TYPE_EXTENSION:r[u]=(0,Nj.mergeScalar)(a,r[u],t,n);break;case mr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case mr.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[u]=(0,gj.mergeInputType)(a,r[u],t,n);break;case mr.Kind.INTERFACE_TYPE_DEFINITION:case mr.Kind.INTERFACE_TYPE_EXTENSION:r[u]=(0,Ij.mergeInterface)(a,r[u],t,n);break;case mr.Kind.DIRECTIVE_DEFINITION:r[u]=(0,vj.mergeDirective)(a,r[u]);break}}else(a.kind===mr.Kind.SCHEMA_DEFINITION||a.kind===mr.Kind.SCHEMA_EXTENSION)&&(r[$i.schemaDefSymbol]=(0,_j.mergeSchemaDefs)(a,r[$i.schemaDefSymbol],t));return r}$i.mergeGraphQLNodes=Sj});var vA=L(Ku=>{"use strict";p();m();f();Object.defineProperty(Ku,"__esModule",{value:!0});Ku.mergeGraphQLTypes=Ku.mergeTypeDefs=void 0;var zr=(ie(),ae(de)),VE=xm(),ju=BE(),qu=yi(),gA=CE();function Dj(e,t){(0,qu.resetComments)();let n={kind:zr.Kind.DOCUMENT,definitions:IA(e,w({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,qu.printWithComments)(n):r=n,(0,qu.resetComments)(),r}Ku.mergeTypeDefs=Dj;function Gu(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Gu(e(),t,n,r,i);else if(Array.isArray(e))for(let o of e)Gu(o,t,n,r,i);else if((0,zr.isSchema)(e)){let o=(0,qu.getDocumentNodeFromSchema)(e,t);Gu(o.definitions,t,n,r,i)}else if((0,VE.isStringTypes)(e)||(0,VE.isSourceTypes)(e)){let o=(0,zr.parse)(e,t);Gu(o.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,zr.isDefinitionNode)(e))e.kind===zr.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,qu.isDocumentNode)(e))Gu(e.definitions,t,n,r,i);else throw new Error(`typeDefs must contain only strings, documents, schemas, or functions, got ${typeof e}`);return{allDirectives:n,allNodes:r}}function IA(e,t){var a,u,c;(0,qu.resetComments)();let{allDirectives:n,allNodes:r}=Gu(e,t),i=(0,ju.mergeGraphQLNodes)(n,t),o=(0,ju.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let l=o[ju.schemaDefSymbol]||{kind:zr.Kind.SCHEMA_DEFINITION,operationTypes:[]},d=l.operationTypes;for(let h in gA.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!d.find(E=>E.operation===h)){let E=gA.DEFAULT_OPERATION_TYPE_NAME_MAP[h],D=o[E];D!=null&&D.name!=null&&d.push({kind:zr.Kind.OPERATION_TYPE_DEFINITION,type:{kind:zr.Kind.NAMED_TYPE,name:D.name},operation:h})}((a=l==null?void 0:l.operationTypes)==null?void 0:a.length)!=null&&l.operationTypes.length>0&&(o[ju.schemaDefSymbol]=l)}t!=null&&t.forceSchemaDefinition&&!((c=(u=o[ju.schemaDefSymbol])==null?void 0:u.operationTypes)!=null&&c.length)&&(o[ju.schemaDefSymbol]={kind:zr.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:zr.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:zr.Kind.NAMED_TYPE,name:{kind:zr.Kind.NAME,value:"Query"}}}]});let s=Object.values(o);if(t!=null&&t.sort){let l=typeof t.sort=="function"?t.sort:VE.defaultStringComparator;s.sort((d,h)=>{var N,E;return l((N=d.name)==null?void 0:N.value,(E=h.name)==null?void 0:E.value)})}return s}Ku.mergeGraphQLTypes=IA});var _A=L(nr=>{"use strict";p();m();f();Object.defineProperty(nr,"__esModule",{value:!0});var Ir=(FN(),ae(wN));Ir.__exportStar(AE(),nr);Ir.__exportStar(Jr(),nr);Ir.__exportStar(wE(),nr);Ir.__exportStar(FE(),nr);Ir.__exportStar(ld(),nr);Ir.__exportStar(RE(),nr);Ir.__exportStar(PE(),nr);Ir.__exportStar(dd(),nr);Ir.__exportStar(BE(),nr);Ir.__exportStar(vA(),nr);Ir.__exportStar(kE(),nr);Ir.__exportStar(xE(),nr);Ir.__exportStar(UE(),nr);Ir.__exportStar(xm(),nr)});var SA=L(Rs=>{"use strict";p();m();f();Object.defineProperty(Rs,"__esModule",{value:!0});Rs.applyExtensions=Rs.mergeExtensions=Rs.extractExtensionsFromSchema=void 0;var bA=yi(),Oj=yi();Object.defineProperty(Rs,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Oj.extractExtensionsFromSchema}});function Aj(e){return(0,bA.mergeDeep)(e)}Rs.mergeExtensions=Aj;function Qu(e,t){e&&(e.extensions=(0,bA.mergeDeep)([e.extensions||{},t||{}]))}function wj(e,t){Qu(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(Qu(i,r.extensions),r.type==="object"||r.type==="interface")for(let[o,s]of Object.entries(r.fields)){let a=i.getFields()[o];if(a){Qu(a,s.extensions);for(let[u,c]of Object.entries(s.arguments))Qu(a.args.find(l=>l.name===u),c)}}else if(r.type==="input")for(let[o,s]of Object.entries(r.fields)){let a=i.getFields()[o];Qu(a,s.extensions)}else if(r.type==="enum")for(let[o,s]of Object.entries(r.values)){let a=i.getValue(o);Qu(a,s)}}}return e}Rs.applyExtensions=wj});var jm=L(fd=>{"use strict";p();m();f();Object.defineProperty(fd,"__esModule",{value:!0});var $E=(FN(),ae(wN));$E.__exportStar(pA(),fd);$E.__exportStar(_A(),fd);$E.__exportStar(SA(),fd)});var Yu=L(kn=>{"use strict";p();m();f();Object.defineProperty(kn,"__esModule",{value:!0});kn.isNodeQuery=kn.validateAndAddDirectivesWithFieldSetToConfigurationData=kn.getNormalizedFieldSet=kn.extractFieldSetValue=kn.addNonExternalFieldsToSet=kn.getDirectiveDefinitionArgumentSets=kn.areNodeKindAndDirectiveLocationCompatible=kn.newFieldSetContainer=void 0;var se=(ie(),ae(de)),Wr=fo(),md=jr(),on=$r(),ot=di(),OA=mo(),hd=Ds();function Fj(){return{keys:new Set,provides:new Map,requires:new Map}}kn.newFieldSetContainer=Fj;function Lj(e,t,n=!1){for(let r of t.locations){let i=r.value.toUpperCase();switch(i){case on.ARGUMENT_DEFINITION_UPPER:if(!n)break;if(e===se.Kind.INPUT_VALUE_DEFINITION)return!0;break;case on.ENUM_UPPER:if(e===se.Kind.ENUM_TYPE_DEFINITION||e===se.Kind.ENUM_TYPE_EXTENSION)return!0;break;case on.ENUM_VALUE_UPPER:if(e===se.Kind.ENUM_VALUE_DEFINITION)return!0;break;case on.FIELD_UPPER:if(e===se.Kind.FIELD)return!0;break;case on.FIELD_DEFINITION_UPPER:if(e===se.Kind.FIELD_DEFINITION)return!0;break;case on.INLINE_FRAGMENT_UPPER:if(e===se.Kind.INLINE_FRAGMENT)return!0;break;case on.INPUT_FIELD_DEFINITION_UPPER:if(e===se.Kind.INPUT_VALUE_DEFINITION)return!0;break;case on.INPUT_OBJECT_UPPER:if(e===se.Kind.INPUT_OBJECT_TYPE_DEFINITION||e===se.Kind.INPUT_OBJECT_TYPE_EXTENSION)return!0;break;case on.INTERFACE_UPPER:if(e===se.Kind.INTERFACE_TYPE_DEFINITION||e===se.Kind.INTERFACE_TYPE_EXTENSION)return!0;break;case on.OBJECT_UPPER:if(e===se.Kind.OBJECT_TYPE_DEFINITION||e===se.Kind.OBJECT_TYPE_EXTENSION)return!0;break;case on.FRAGMENT_DEFINITION_UPPER:if(e===se.Kind.FRAGMENT_DEFINITION)return!0;break;case on.FRAGMENT_SPREAD_UPPER:if(e===se.Kind.FRAGMENT_SPREAD)return!0;break;case on.SCALAR_UPPER:if(e===se.Kind.SCALAR_TYPE_DEFINITION||e===se.Kind.SCALAR_TYPE_EXTENSION)return!0;break;case on.SCHEMA_UPPER:if(e===se.Kind.SCHEMA_DEFINITION||e===se.Kind.SCHEMA_EXTENSION)return!0;break;case on.UNION_UPPER:if(e===se.Kind.UNION_TYPE_DEFINITION||e===se.Kind.UNION_TYPE_EXTENSION)return!0;break;case on.VARIABLE_DEFINITION_UPPER:if(e===se.Kind.VARIABLE_DEFINITION)return!0;break;case on.QUERY_UPPER:case on.MUTATION_UPPER:case on.SUBSCRIPTION_UPPER:if(e===se.Kind.OPERATION_DEFINITION)return!0;break;default:throw(0,ot.unexpectedDirectiveLocationError)(i)}}return!1}kn.areNodeKindAndDirectiveLocationCompatible=Lj;function Rj(e,t,n){for(let r of e){let i=r.name.value;t.set(i,r.type),r.type.kind===se.Kind.NON_NULL_TYPE&&!r.defaultValue&&n.add(i)}}kn.getDirectiveDefinitionArgumentSets=Rj;function Pj(e,t){for(let[n,r]of e)r.directivesByDirectiveName.has(on.EXTERNAL)||t.add(n)}kn.addNonExternalFieldsToSet=Pj;function xj(e,t,n){if(!n||n.length>1)return;let r=n[0].arguments;if(!r||r.length!==1)return;let i=r[0];i.name.value!==on.FIELDS||i.value.kind!==se.Kind.STRING||t.set(e,i.value.value)}kn.extractFieldSetValue=xj;function jE(e){return(0,se.print)((0,md.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}kn.getNormalizedFieldSet=jE;function kj(e,t,n,r){let{error:i,documentNode:o}=(0,md.safeParse)("{"+n+"}");if(i||!o)return{errorMessage:(0,ot.unparsableFieldSetErrorMessage)(n,i)};let s,a=[t],u=[],c=-1,l=!0,d=r,h=t.name;return(0,se.visit)(o,{Argument:{enter(){return!1}},Field:{enter(N){let E=a[c],D=E.name;if(E.kind===se.Kind.UNION_TYPE_DEFINITION)return s=(0,ot.invalidSelectionOnUnionErrorMessage)(n,h,D),se.BREAK;if(l)return s=(0,ot.invalidSelectionSetErrorMessage)(n,h,D,(0,Wr.kindToTypeString)(E.kind)),se.BREAK;let A=N.name.value;h=`${D}.${A}`,d=A;let F=E.fieldDataByFieldName.get(A);if(!F)return s=(0,ot.undefinedFieldInFieldSetErrorMessage)(n,D,A),se.BREAK;if(u[c].has(A))return s=(0,ot.duplicateFieldInFieldSetErrorMessage)(n,h),se.BREAK;u[c].add(A);let Y=(0,hd.getTypeNodeNamedTypeName)(F.node.type);if(OA.BASE_SCALARS.has(Y))return;let J=e.parentDefinitionDataByTypeName.get(Y)||e.parentExtensionDataByTypeName.get(Y);if(!J)return s=(0,ot.unknownTypeInFieldSetErrorMessage)(n,h,Y),se.BREAK;if(J.kind===se.Kind.OBJECT_TYPE_DEFINITION||J.kind===se.Kind.OBJECT_TYPE_EXTENSION||J.kind===se.Kind.INTERFACE_TYPE_DEFINITION||J.kind===se.Kind.UNION_TYPE_DEFINITION){l=!0,a.push(J);return}}},InlineFragment:{enter(N){let E=a[c],D=E.name;if(!N.typeCondition)return s=(0,ot.inlineFragmentWithoutTypeConditionErrorMessage)(n,h),se.BREAK;let A=N.typeCondition.name.value;if(A===D){a.push(E),l=!0;return}if(!(0,md.isKindAbstract)(E.kind))return s=(0,ot.invalidInlineFragmentTypeErrorMessage)(n,h,A,D),se.BREAK;let F=e.parentDefinitionDataByTypeName.get(A)||e.parentExtensionDataByTypeName.get(A);if(!F)return s=(0,ot.unknownInlineFragmentTypeConditionErrorMessage)(n,h,A),se.BREAK;if(F.kind!==se.Kind.INTERFACE_TYPE_DEFINITION&&F.kind!==se.Kind.OBJECT_TYPE_DEFINITION&&F.kind!==se.Kind.OBJECT_TYPE_EXTENSION&&F.kind!==se.Kind.UNION_TYPE_DEFINITION)return s=(0,ot.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,h,A,(0,Wr.kindToTypeString)(F.kind)),se.BREAK;let Y=e.concreteTypeNamesByAbstractTypeName.get(D);if(!Y||!Y.has(A))return s=(0,ot.invalidInlineFragmentTypeConditionErrorMessage)(n,h,A,(0,Wr.kindToTypeString)(E.kind),D),se.BREAK;l=!0,a.push(F)},leave(){a.pop()}},SelectionSet:{enter(){if(!l){let N=a[c];if(N.kind===se.Kind.UNION_TYPE_DEFINITION)return s=(0,ot.unparsableFieldSetSelectionErrorMessage)(n,d),se.BREAK;let E=N.fieldDataByFieldName.get(d);if(!E)return s=(0,ot.undefinedFieldInFieldSetErrorMessage)(n,h,d),se.BREAK;let D=(0,hd.getTypeNodeNamedTypeName)(E.node.type),A=e.parentDefinitionDataByTypeName.get(D),F=A?A.kind:se.Kind.SCALAR_TYPE_DEFINITION;return s=(0,ot.invalidSelectionSetDefinitionErrorMessage)(n,h,D,(0,Wr.kindToTypeString)(F)),se.BREAK}if(c+=1,l=!1,c<0||c>=a.length)return s=(0,ot.unparsableFieldSetSelectionErrorMessage)(n,d),se.BREAK;u.push(new Set)},leave(){if(l){let N=a[c+1];s=(0,ot.invalidSelectionSetErrorMessage)(n,h,N.name,(0,Wr.kindToTypeString)(N.kind)),l=!1}c-=1,a.pop(),u.pop()}}}),s?{errorMessage:s}:{configuration:{fieldName:r,selectionSet:jE(o)}}}function Mj(e,t,n,r,i){let o=t.name,s=[],a=[],u=new Set;for(let c of n){let{error:l,documentNode:d}=(0,md.safeParse)("{"+c+"}");if(l||!d){s.push((0,ot.unparsableFieldSetErrorMessage)(c,l));continue}let h=[t],N=[],E=-1,D=!0,A="";(0,se.visit)(d,{Argument:{enter(F){return s.push((0,ot.unexpectedArgumentErrorMessage)(c,`${h[E].name}.${A}`,F.name.value)),se.BREAK}},Field:{enter(F){let Y=h[E-1],J=h[E],Z=J.name;if(D)return s.push((0,ot.invalidSelectionSetErrorMessage)(c,`${Y.name}.${A}`,Z,(0,Wr.kindToTypeString)(J.kind))),se.BREAK;let H=F.name.value,_e=`${Z}.${H}`;A=H;let ut=J.fieldDataByFieldName.get(H);if(!ut)return s.push((0,ot.undefinedFieldInFieldSetErrorMessage)(c,Z,H)),se.BREAK;if(ut.argumentDataByArgumentName.size)return s.push((0,ot.argumentsInKeyFieldSetErrorMessage)(c,_e)),se.BREAK;if(N[E].has(H))return s.push((0,ot.duplicateFieldInFieldSetErrorMessage)(c,_e)),se.BREAK;ut.isShareableBySubgraphName.set(e.subgraphName,!0),N[E].add(H),E===0&&(u.add(H),r.add(H)),(0,Wr.getValueOrDefault)(e.keyFieldNamesByParentTypeName,Z,()=>new Set).add(H);let kt=(0,hd.getTypeNodeNamedTypeName)(ut.node.type);if(OA.BASE_SCALARS.has(kt))return;let Q=e.parentDefinitionDataByTypeName.get(kt)||e.parentExtensionDataByTypeName.get(kt);if(!Q)return s.push((0,ot.unknownTypeInFieldSetErrorMessage)(c,_e,kt)),se.BREAK;if(Q.kind===se.Kind.OBJECT_TYPE_DEFINITION||Q.kind===se.Kind.OBJECT_TYPE_EXTENSION){D=!0,h.push(Q);return}if((0,md.isKindAbstract)(Q.kind))return s.push((0,ot.abstractTypeInKeyFieldSetErrorMessage)(c,_e,kt,(0,Wr.kindToTypeString)(Q.kind))),se.BREAK}},InlineFragment:{enter(){return s.push(ot.inlineFragmentInFieldSetErrorMessage),se.BREAK}},SelectionSet:{enter(){if(!D){let F=h[E],J=`${F.name}.${A}`,Z=F.fieldDataByFieldName.get(A);if(!Z)return s.push((0,ot.undefinedFieldInFieldSetErrorMessage)(c,J,A)),se.BREAK;let H=(0,hd.getTypeNodeNamedTypeName)(Z.node.type),_e=e.parentDefinitionDataByTypeName.get(H),ut=_e?_e.kind:se.Kind.SCALAR_TYPE_DEFINITION;return s.push((0,ot.invalidSelectionSetDefinitionErrorMessage)(c,J,H,(0,Wr.kindToTypeString)(ut))),se.BREAK}if(E+=1,D=!1,E<0||E>=h.length)return s.push((0,ot.unparsableFieldSetSelectionErrorMessage)(c,A)),se.BREAK;N.push(new Set)},leave(){if(D){let Y=h[E].name,J=h[E+1],Z=`${Y}.${A}`;s.push((0,ot.invalidSelectionSetErrorMessage)(c,Z,J.name,(0,Wr.kindToTypeString)(J.kind))),D=!1}E-=1,h.pop(),N.pop()}}}),s.length||a.push(w({fieldName:"",selectionSet:jE(d)},i?{disableEntityResolver:!0}:{}))}if(s.length){e.errors.push((0,ot.invalidKeyDirectivesError)(o,s));return}if(a.length)return a}var yd;(function(e){e.PROVIDES="provides",e.REQUIRES="requires"})(yd||(yd={}));function Uj(e,t,n,r,i){if(t!==yd.PROVIDES)return e.entityContainerByTypeName.has(i)?{fieldSetParentContainer:n}:{};let o=(0,Wr.getOrThrowError)(n.fieldDataByFieldName,r,`${i}.fieldDataByFieldName`),s=(0,hd.getTypeNodeNamedTypeName)(o.node.type);if(!e.entityContainerByTypeName.has(s))return{};let a=e.parentDefinitionDataByTypeName.get(s)||e.parentExtensionDataByTypeName.get(s);return!a||a.kind!==se.Kind.OBJECT_TYPE_DEFINITION&&a.kind!==se.Kind.OBJECT_TYPE_EXTENSION?{errorString:(0,ot.unknownProvidesEntityErrorMessage)(`${i}.${r}`,s)}:{fieldSetParentContainer:a}}function DA(e,t,n,r){let i=[],o=[],s=t.name;for(let[a,u]of n){let{fieldSetParentContainer:c,errorString:l}=Uj(e,r,t,a,s),d=`${s}.${a}`;if(l){i.push(l);continue}if(!c)continue;let{errorMessage:h,configuration:N}=kj(e,c,u,a);if(h){i.push(` On "${s}.${a}" \u2014`+h);continue}if(N){o.push(N);continue}throw(0,ot.invalidConfigurationResultFatalError)(d)}if(i.length){e.errors.push((0,ot.invalidProvidesOrRequiresDirectivesError)(r,i));return}if(o.length)return o}function Cj(e,t,n){let r=(0,Wr.getOrThrowError)(e.configurationDataByParentTypeName,t.name,"configurationDataMap"),i=Mj(e,t,n.keys,r.fieldNames,n.disableEntityResolver);i&&(r.keys=i);let o=DA(e,t,n.provides,yd.PROVIDES);o&&(r.provides=o);let s=DA(e,t,n.requires,yd.REQUIRES);s&&(r.requires=s)}kn.validateAndAddDirectivesWithFieldSetToConfigurationData=Cj;function Bj(e,t){return e===on.QUERY||t===se.OperationTypeNode.QUERY}kn.isNodeQuery=Bj});var Da=L(GE=>{"use strict";p();m();f();Object.defineProperty(GE,"__esModule",{value:!0});GE.devAssert=Vj;function Vj(e,t){if(!!!e)throw new Error(t)}});var Ps=L(qE=>{"use strict";p();m();f();Object.defineProperty(qE,"__esModule",{value:!0});qE.isObjectLike=$j;function $j(e){return typeof e=="object"&&e!==null}});var To=L(KE=>{"use strict";p();m();f();Object.defineProperty(KE,"__esModule",{value:!0});KE.invariant=jj;function jj(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var YE=L(QE=>{"use strict";p();m();f();Object.defineProperty(QE,"__esModule",{value:!0});QE.getLocation=Kj;var Gj=To(),qj=/\r\n|[\n\r]/g;function Kj(e,t){let n=0,r=1;for(let i of e.body.matchAll(qj)){if(typeof i.index=="number"||(0,Gj.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var FA=L(Gm=>{"use strict";p();m();f();Object.defineProperty(Gm,"__esModule",{value:!0});Gm.printLocation=Yj;Gm.printSourceLocation=wA;var Qj=YE();function Yj(e){return wA(e.source,(0,Qj.getLocation)(e.source,e.start))}function wA(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=t.line===1?n:0,u=t.column+a,c=`${e.name}:${s}:${u} `,l=r.split(/\r\n|[\n\r]/g),d=l[i];if(d.length>120){let h=Math.floor(u/80),N=u%80,E=[];for(let D=0;D["|",D]),["|","^".padStart(N)],["|",E[h+1]]])}return c+AA([[`${s-1} |`,l[i-1]],[`${s} |`,d],["|","^".padStart(u)],[`${s+1} |`,l[i+1]]])}function AA(e){let t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(` -`)}});var Ge=R(Ju=>{"use strict";p();m();f();Object.defineProperty(Ju,"__esModule",{value:!0});Ju.GraphQLError=void 0;Ju.formatError=Xj;Ju.printError=Wj;var Jj=Ps(),RA=YE(),LA=FA();function zj(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var JE=class e extends Error{constructor(t,...n){var r,i,o;let{nodes:s,source:a,positions:u,path:c,originalError:l,extensions:d}=zj(n);super(t),this.name="GraphQLError",this.path=c!=null?c:void 0,this.originalError=l!=null?l:void 0,this.nodes=PA(Array.isArray(s)?s:s?[s]:void 0);let h=PA((r=this.nodes)===null||r===void 0?void 0:r.map(E=>E.loc).filter(E=>E!=null));this.source=a!=null?a:h==null||(i=h[0])===null||i===void 0?void 0:i.source,this.positions=u!=null?u:h==null?void 0:h.map(E=>E.start),this.locations=u&&a?u.map(E=>(0,RA.getLocation)(a,E)):h==null?void 0:h.map(E=>(0,RA.getLocation)(E.source,E.start));let N=(0,Jj.isObjectLike)(l==null?void 0:l.extensions)?l==null?void 0:l.extensions:void 0;this.extensions=(o=d!=null?d:N)!==null&&o!==void 0?o: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}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` +`)}});var qe=L(Ju=>{"use strict";p();m();f();Object.defineProperty(Ju,"__esModule",{value:!0});Ju.GraphQLError=void 0;Ju.formatError=Hj;Ju.printError=Wj;var Jj=Ps(),LA=YE(),RA=FA();function zj(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var JE=class e extends Error{constructor(t,...n){var r,i,o;let{nodes:s,source:a,positions:u,path:c,originalError:l,extensions:d}=zj(n);super(t),this.name="GraphQLError",this.path=c!=null?c:void 0,this.originalError=l!=null?l:void 0,this.nodes=PA(Array.isArray(s)?s:s?[s]:void 0);let h=PA((r=this.nodes)===null||r===void 0?void 0:r.map(E=>E.loc).filter(E=>E!=null));this.source=a!=null?a:h==null||(i=h[0])===null||i===void 0?void 0:i.source,this.positions=u!=null?u:h==null?void 0:h.map(E=>E.start),this.locations=u&&a?u.map(E=>(0,LA.getLocation)(a,E)):h==null?void 0:h.map(E=>(0,LA.getLocation)(E.source,E.start));let N=(0,Jj.isObjectLike)(l==null?void 0:l.extensions)?l==null?void 0:l.extensions:void 0;this.extensions=(o=d!=null?d:N)!==null&&o!==void 0?o: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}}),l!=null&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=` -`+(0,LA.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` +`+(0,RA.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+(0,LA.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};Ju.GraphQLError=JE;function PA(e){return e===void 0||e.length===0?void 0:e}function Wj(e){return e.toString()}function Xj(e){return e.toJSON()}});var dn=R(zE=>{"use strict";p();m();f();Object.defineProperty(zE,"__esModule",{value:!0});zE.inspect=Zj;var Hj=10,xA=2;function Zj(e){return qm(e,[])}function qm(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return eG(e,t);default:return String(e)}}function eG(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(tG(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:qm(r,n)}else if(Array.isArray(e))return rG(e,n);return nG(e,n)}function tG(e){return typeof e.toJSON=="function"}function nG(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>xA?"["+iG(e)+"]":"{ "+n.map(([i,o])=>i+": "+qm(o,t)).join(", ")+" }"}function rG(e,t){if(e.length===0)return"[]";if(t.length>xA)return"[Array]";let n=Math.min(Hj,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function iG(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var zu=R(Xr=>{"use strict";p();m();f();Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Token=Xr.QueryDocumentKeys=Xr.OperationTypeNode=Xr.Location=void 0;Xr.isNode=sG;var WE=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Xr.Location=WE;var XE=class{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Xr.Token=XE;var kA={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Xr.QueryDocumentKeys=kA;var oG=new Set(Object.keys(kA));function sG(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&oG.has(t)}var HE;Xr.OperationTypeNode=HE;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(HE||(Xr.OperationTypeNode=HE={}))});var Gt=R(Td=>{"use strict";p();m();f();Object.defineProperty(Td,"__esModule",{value:!0});Td.Kind=void 0;var ZE;Td.Kind=ZE;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(ZE||(Td.Kind=ZE={}))});var Nd=R(xs=>{"use strict";p();m();f();Object.defineProperty(xs,"__esModule",{value:!0});xs.BREAK=void 0;xs.getEnterLeaveForKind=Km;xs.getVisitFn=dG;xs.visit=cG;xs.visitInParallel=lG;var aG=Da(),uG=dn(),eg=zu(),MA=Gt(),Wu=Object.freeze({});xs.BREAK=Wu;function cG(e,t,n=eg.QueryDocumentKeys){let r=new Map;for(let F of Object.values(MA.Kind))r.set(F,Km(t,F));let i,o=Array.isArray(e),s=[e],a=-1,u=[],c=e,l,d,h=[],N=[];do{a++;let F=a===s.length,Y=F&&u.length!==0;if(F){if(l=N.length===0?void 0:h[h.length-1],c=d,d=N.pop(),Y)if(o){c=c.slice();let Z=0;for(let[X,_e]of u){let ut=X-Z;_e===null?(c.splice(ut,1),Z++):c[ut]=_e}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(let[Z,X]of u)c[Z]=X}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(d){if(l=o?a:s[a],c=d[l],c==null)continue;h.push(l)}let J;if(!Array.isArray(c)){var E,D;(0,eg.isNode)(c)||(0,aG.devAssert)(!1,`Invalid AST Node: ${(0,uG.inspect)(c)}.`);let Z=F?(E=r.get(c.kind))===null||E===void 0?void 0:E.leave:(D=r.get(c.kind))===null||D===void 0?void 0:D.enter;if(J=Z==null?void 0:Z.call(t,c,l,d,h,N),J===Wu)break;if(J===!1){if(!F){h.pop();continue}}else if(J!==void 0&&(u.push([l,J]),!F))if((0,eg.isNode)(J))c=J;else{h.pop();continue}}if(J===void 0&&Y&&u.push([l,c]),F)h.pop();else{var A;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(c),s=o?c:(A=n[c.kind])!==null&&A!==void 0?A:[],a=-1,u=[],d&&N.push(d),d=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function lG(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(MA.Kind)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let u=0;u{"use strict";p();m();f();Object.defineProperty(tg,"__esModule",{value:!0});tg.didYouMean=fG;var pG=5;function fG(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,pG),a=s.pop();return i+s.join(", ")+", or "+a+"?"}});var UA=R(ng=>{"use strict";p();m();f();Object.defineProperty(ng,"__esModule",{value:!0});ng.identityFunc=mG;function mG(e){return e}});var Ym=R(Qm=>{"use strict";p();m();f();Object.defineProperty(Qm,"__esModule",{value:!0});Qm.instanceOf=void 0;var hG=dn(),yG=globalThis.process&&globalThis.process.env.NODE_ENV==="production"?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){let s=(0,hG.inspect)(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm. +`+(0,RA.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};Ju.GraphQLError=JE;function PA(e){return e===void 0||e.length===0?void 0:e}function Wj(e){return e.toString()}function Hj(e){return e.toJSON()}});var dn=L(zE=>{"use strict";p();m();f();Object.defineProperty(zE,"__esModule",{value:!0});zE.inspect=Zj;var Xj=10,xA=2;function Zj(e){return qm(e,[])}function qm(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return eG(e,t);default:return String(e)}}function eG(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(tG(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:qm(r,n)}else if(Array.isArray(e))return rG(e,n);return nG(e,n)}function tG(e){return typeof e.toJSON=="function"}function nG(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>xA?"["+iG(e)+"]":"{ "+n.map(([i,o])=>i+": "+qm(o,t)).join(", ")+" }"}function rG(e,t){if(e.length===0)return"[]";if(t.length>xA)return"[Array]";let n=Math.min(Xj,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function iG(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var zu=L(Hr=>{"use strict";p();m();f();Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Token=Hr.QueryDocumentKeys=Hr.OperationTypeNode=Hr.Location=void 0;Hr.isNode=sG;var WE=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Hr.Location=WE;var HE=class{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Hr.Token=HE;var kA={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Hr.QueryDocumentKeys=kA;var oG=new Set(Object.keys(kA));function sG(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&oG.has(t)}var XE;Hr.OperationTypeNode=XE;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(XE||(Hr.OperationTypeNode=XE={}))});var Gt=L(Td=>{"use strict";p();m();f();Object.defineProperty(Td,"__esModule",{value:!0});Td.Kind=void 0;var ZE;Td.Kind=ZE;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(ZE||(Td.Kind=ZE={}))});var Nd=L(xs=>{"use strict";p();m();f();Object.defineProperty(xs,"__esModule",{value:!0});xs.BREAK=void 0;xs.getEnterLeaveForKind=Km;xs.getVisitFn=dG;xs.visit=cG;xs.visitInParallel=lG;var aG=Da(),uG=dn(),eg=zu(),MA=Gt(),Wu=Object.freeze({});xs.BREAK=Wu;function cG(e,t,n=eg.QueryDocumentKeys){let r=new Map;for(let F of Object.values(MA.Kind))r.set(F,Km(t,F));let i,o=Array.isArray(e),s=[e],a=-1,u=[],c=e,l,d,h=[],N=[];do{a++;let F=a===s.length,Y=F&&u.length!==0;if(F){if(l=N.length===0?void 0:h[h.length-1],c=d,d=N.pop(),Y)if(o){c=c.slice();let Z=0;for(let[H,_e]of u){let ut=H-Z;_e===null?(c.splice(ut,1),Z++):c[ut]=_e}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(let[Z,H]of u)c[Z]=H}a=i.index,s=i.keys,u=i.edits,o=i.inArray,i=i.prev}else if(d){if(l=o?a:s[a],c=d[l],c==null)continue;h.push(l)}let J;if(!Array.isArray(c)){var E,D;(0,eg.isNode)(c)||(0,aG.devAssert)(!1,`Invalid AST Node: ${(0,uG.inspect)(c)}.`);let Z=F?(E=r.get(c.kind))===null||E===void 0?void 0:E.leave:(D=r.get(c.kind))===null||D===void 0?void 0:D.enter;if(J=Z==null?void 0:Z.call(t,c,l,d,h,N),J===Wu)break;if(J===!1){if(!F){h.pop();continue}}else if(J!==void 0&&(u.push([l,J]),!F))if((0,eg.isNode)(J))c=J;else{h.pop();continue}}if(J===void 0&&Y&&u.push([l,c]),F)h.pop();else{var A;i={inArray:o,index:a,keys:s,edits:u,prev:i},o=Array.isArray(c),s=o?c:(A=n[c.kind])!==null&&A!==void 0?A:[],a=-1,u=[],d&&N.push(d),d=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:e}function lG(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(MA.Kind)){let i=!1,o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let u=0;u{"use strict";p();m();f();Object.defineProperty(tg,"__esModule",{value:!0});tg.didYouMean=fG;var pG=5;function fG(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(u=>`"${u}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let s=o.slice(0,pG),a=s.pop();return i+s.join(", ")+", or "+a+"?"}});var UA=L(ng=>{"use strict";p();m();f();Object.defineProperty(ng,"__esModule",{value:!0});ng.identityFunc=mG;function mG(e){return e}});var Ym=L(Qm=>{"use strict";p();m();f();Object.defineProperty(Qm,"__esModule",{value:!0});Qm.instanceOf=void 0;var hG=dn(),yG=globalThis.process&&globalThis.process.env.NODE_ENV==="production"?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){let s=(0,hG.inspect)(t);throw new Error(`Cannot use ${i} "${s}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other @@ -352,19 +374,19 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1};Qm.instanceOf=yG});var Xu=R(rg=>{"use strict";p();m();f();Object.defineProperty(rg,"__esModule",{value:!0});rg.keyMap=TG;function TG(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var og=R(ig=>{"use strict";p();m();f();Object.defineProperty(ig,"__esModule",{value:!0});ig.keyValMap=NG;function NG(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var CA=R(sg=>{"use strict";p();m();f();Object.defineProperty(sg,"__esModule",{value:!0});sg.mapValue=EG;function EG(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var zm=R(ug=>{"use strict";p();m();f();Object.defineProperty(ug,"__esModule",{value:!0});ug.naturalCompare=gG;function gG(e,t){let n=0,r=0;for(;n0);let a=0;do++r,a=a*10+o-ag,o=t.charCodeAt(r);while(Jm(o)&&a>0);if(sa)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}var ag=48,IG=57;function Jm(e){return!isNaN(e)&&ag<=e&&e<=IG}});var Ms=R(lg=>{"use strict";p();m();f();Object.defineProperty(lg,"__esModule",{value:!0});lg.suggestionList=_G;var vG=zm();function _G(e,t){let n=Object.create(null),r=new cg(e),i=Math.floor(e.length*.4)+1;for(let o of t){let s=r.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{let a=n[o]-n[s];return a!==0?a:(0,vG.naturalCompare)(o,s)})}var cg=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=BA(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=BA(r),o=this._inputArray;if(i.lengthn)return;let u=this._rows;for(let l=0;l<=a;l++)u[0][l]=l;for(let l=1;l<=s;l++){let d=u[(l-1)%3],h=u[l%3],N=h[0]=l;for(let E=1;E<=a;E++){let D=i[l-1]===o[E-1]?0:1,A=Math.min(d[E]+1,h[E-1]+1,d[E-1]+D);if(l>1&&E>1&&i[l-1]===o[E-2]&&i[l-2]===o[E-1]){let F=u[(l-2)%3][E-2];A=Math.min(A,F+1)}An)return}let c=u[s%3][a];return c<=n?c:void 0}};function BA(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";p();m();f();Object.defineProperty(dg,"__esModule",{value:!0});dg.toObjMap=bG;function bG(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}});var fg=R(Oa=>{"use strict";p();m();f();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.isDigit=VA;Oa.isLetter=pg;Oa.isNameContinue=OG;Oa.isNameStart=DG;Oa.isWhiteSpace=SG;function SG(e){return e===9||e===32}function VA(e){return e>=48&&e<=57}function pg(e){return e>=97&&e<=122||e>=65&&e<=90}function DG(e){return pg(e)||e===95}function OG(e){return pg(e)||VA(e)||e===95}});var $A=R(Ed=>{"use strict";p();m();f();Object.defineProperty(Ed,"__esModule",{value:!0});Ed.dedentBlockStringLines=AG;Ed.isPrintableAsBlockString=FG;Ed.printBlockString=RG;var mg=fg();function AG(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;sa===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function wG(e){let t=0;for(;t1&&r.slice(1).every(N=>N.length===0||(0,mg.isWhiteSpace)(N.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!(t!=null&&t.minimize)&&(!i||e.length>70||c||o||s),d="",h=i&&(0,mg.isWhiteSpace)(e.charCodeAt(0));return(l&&!h||o)&&(d+=` +spurious results.`)}}return!1};Qm.instanceOf=yG});var Hu=L(rg=>{"use strict";p();m();f();Object.defineProperty(rg,"__esModule",{value:!0});rg.keyMap=TG;function TG(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var og=L(ig=>{"use strict";p();m();f();Object.defineProperty(ig,"__esModule",{value:!0});ig.keyValMap=NG;function NG(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var CA=L(sg=>{"use strict";p();m();f();Object.defineProperty(sg,"__esModule",{value:!0});sg.mapValue=EG;function EG(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var zm=L(ug=>{"use strict";p();m();f();Object.defineProperty(ug,"__esModule",{value:!0});ug.naturalCompare=gG;function gG(e,t){let n=0,r=0;for(;n0);let a=0;do++r,a=a*10+o-ag,o=t.charCodeAt(r);while(Jm(o)&&a>0);if(sa)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}var ag=48,IG=57;function Jm(e){return!isNaN(e)&&ag<=e&&e<=IG}});var Ms=L(lg=>{"use strict";p();m();f();Object.defineProperty(lg,"__esModule",{value:!0});lg.suggestionList=_G;var vG=zm();function _G(e,t){let n=Object.create(null),r=new cg(e),i=Math.floor(e.length*.4)+1;for(let o of t){let s=r.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{let a=n[o]-n[s];return a!==0?a:(0,vG.naturalCompare)(o,s)})}var cg=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=BA(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;let r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=BA(r),o=this._inputArray;if(i.lengthn)return;let u=this._rows;for(let l=0;l<=a;l++)u[0][l]=l;for(let l=1;l<=s;l++){let d=u[(l-1)%3],h=u[l%3],N=h[0]=l;for(let E=1;E<=a;E++){let D=i[l-1]===o[E-1]?0:1,A=Math.min(d[E]+1,h[E-1]+1,d[E-1]+D);if(l>1&&E>1&&i[l-1]===o[E-2]&&i[l-2]===o[E-1]){let F=u[(l-2)%3][E-2];A=Math.min(A,F+1)}An)return}let c=u[s%3][a];return c<=n?c:void 0}};function BA(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";p();m();f();Object.defineProperty(dg,"__esModule",{value:!0});dg.toObjMap=bG;function bG(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;let t=Object.create(null);for(let[n,r]of Object.entries(e))t[n]=r;return t}});var fg=L(Oa=>{"use strict";p();m();f();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.isDigit=VA;Oa.isLetter=pg;Oa.isNameContinue=OG;Oa.isNameStart=DG;Oa.isWhiteSpace=SG;function SG(e){return e===9||e===32}function VA(e){return e>=48&&e<=57}function pg(e){return e>=97&&e<=122||e>=65&&e<=90}function DG(e){return pg(e)||e===95}function OG(e){return pg(e)||VA(e)||e===95}});var $A=L(Ed=>{"use strict";p();m();f();Object.defineProperty(Ed,"__esModule",{value:!0});Ed.dedentBlockStringLines=AG;Ed.isPrintableAsBlockString=FG;Ed.printBlockString=LG;var mg=fg();function AG(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;sa===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function wG(e){let t=0;for(;t1&&r.slice(1).every(N=>N.length===0||(0,mg.isWhiteSpace)(N.charCodeAt(0))),s=n.endsWith('\\"""'),a=e.endsWith('"')&&!s,u=e.endsWith("\\"),c=a||u,l=!(t!=null&&t.minimize)&&(!i||e.length>70||c||o||s),d="",h=i&&(0,mg.isWhiteSpace)(e.charCodeAt(0));return(l&&!h||o)&&(d+=` `),d+=n,(l||c)&&(d+=` -`),'"""'+d+'"""'}});var jA=R(hg=>{"use strict";p();m();f();Object.defineProperty(hg,"__esModule",{value:!0});hg.printString=LG;function LG(e){return`"${e.replace(PG,xG)}"`}var PG=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function xG(e){return kG[e.charCodeAt(0)]}var kG=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var ji=R(yg=>{"use strict";p();m();f();Object.defineProperty(yg,"__esModule",{value:!0});yg.print=BG;var MG=$A(),UG=jA(),CG=Nd();function BG(e){return(0,CG.visit)(e,$G)}var VG=80,$G={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>me(e.definitions,` +`),'"""'+d+'"""'}});var jA=L(hg=>{"use strict";p();m();f();Object.defineProperty(hg,"__esModule",{value:!0});hg.printString=RG;function RG(e){return`"${e.replace(PG,xG)}"`}var PG=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function xG(e){return kG[e.charCodeAt(0)]}var kG=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});var ji=L(yg=>{"use strict";p();m();f();Object.defineProperty(yg,"__esModule",{value:!0});yg.print=BG;var MG=$A(),UG=jA(),CG=Nd();function BG(e){return(0,CG.visit)(e,$G)}var VG=80,$G={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>me(e.definitions,` `)},OperationDefinition:{leave(e){let t=et("(",me(e.variableDefinitions,", "),")"),n=me([e.operation,me([e.name,t]),me(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+et(" = ",n)+et(" ",me(r," "))},SelectionSet:{leave:({selections:e})=>Ti(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=et("",e,": ")+t,s=o+et("(",me(n,", "),")");return s.length>VG&&(s=o+et(`( -`,Xm(me(n,` +`,Hm(me(n,` `)),` )`)),me([s,me(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+et(" ",me(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>me(["...",et("on ",e),me(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${et("(",me(n,", "),")")} on ${t} ${et("",me(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,MG.printBlockString)(e):(0,UG.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+me(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+me(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+et("(",me(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>et("",e,` `)+me(["schema",me(t," "),Ti(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>et("",e,` `)+me(["scalar",t,me(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>et("",e,` `)+me(["type",t,et("implements ",me(n," & ")),me(r," "),Ti(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>et("",e,` `)+t+(GA(n)?et(`( -`,Xm(me(n,` +`,Hm(me(n,` `)),` )`):et("(",me(n,", "),")"))+": "+r+et(" ",me(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>et("",e,` `)+me([t+": "+n,et("= ",r),me(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>et("",e,` @@ -374,28 +396,28 @@ spurious results.`)}}return!1};Qm.instanceOf=yG});var Xu=R(rg=>{"use strict";p() `)+me([t,me(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>et("",e,` `)+me(["input",t,me(n," "),Ti(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>et("",e,` `)+"directive @"+t+(GA(n)?et(`( -`,Xm(me(n,` +`,Hm(me(n,` `)),` )`):et("(",me(n,", "),")"))+(r?" repeatable":"")+" on "+me(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>me(["extend schema",me(e," "),Ti(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>me(["extend scalar",e,me(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>me(["extend type",e,et("implements ",me(t," & ")),me(n," "),Ti(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>me(["extend interface",e,et("implements ",me(t," & ")),me(n," "),Ti(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>me(["extend union",e,me(t," "),et("= ",me(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>me(["extend enum",e,me(t," "),Ti(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>me(["extend input",e,me(t," "),Ti(n)]," ")}};function me(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function Ti(e){return et(`{ -`,Xm(me(e,` +`,Hm(me(e,` `)),` -}`)}function et(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Xm(e){return et(" ",e.replace(/\n/g,` +}`)}function et(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Hm(e){return et(" ",e.replace(/\n/g,` `))}function GA(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}});var qA=R(Ng=>{"use strict";p();m();f();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.valueFromASTUntyped=Tg;var jG=og(),To=Gt();function Tg(e,t){switch(e.kind){case To.Kind.NULL:return null;case To.Kind.INT:return parseInt(e.value,10);case To.Kind.FLOAT:return parseFloat(e.value);case To.Kind.STRING:case To.Kind.ENUM:case To.Kind.BOOLEAN:return e.value;case To.Kind.LIST:return e.values.map(n=>Tg(n,t));case To.Kind.OBJECT:return(0,jG.keyValMap)(e.fields,n=>n.name.value,n=>Tg(n.value,t));case To.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var Eg=R(Zm=>{"use strict";p();m();f();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.assertEnumValueName=GG;Zm.assertName=YA;var KA=Da(),Hm=Ge(),QA=fg();function YA(e){if(e!=null||(0,KA.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,KA.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new Hm.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";p();m();f();Object.defineProperty(Ne,"__esModule",{value:!0});Ne.GraphQLUnionType=Ne.GraphQLScalarType=Ne.GraphQLObjectType=Ne.GraphQLNonNull=Ne.GraphQLList=Ne.GraphQLInterfaceType=Ne.GraphQLInputObjectType=Ne.GraphQLEnumType=void 0;Ne.argsToArgsConfig=ow;Ne.assertAbstractType=cq;Ne.assertCompositeType=uq;Ne.assertEnumType=tq;Ne.assertInputObjectType=nq;Ne.assertInputType=oq;Ne.assertInterfaceType=ZG;Ne.assertLeafType=aq;Ne.assertListType=rq;Ne.assertNamedType=fq;Ne.assertNonNullType=iq;Ne.assertNullableType=dq;Ne.assertObjectType=HG;Ne.assertOutputType=sq;Ne.assertScalarType=XG;Ne.assertType=WG;Ne.assertUnionType=eq;Ne.assertWrappingType=lq;Ne.defineArguments=rw;Ne.getNamedType=mq;Ne.getNullableType=pq;Ne.isAbstractType=ZA;Ne.isCompositeType=HA;Ne.isEnumType=Ra;Ne.isInputObjectType=Id;Ne.isInputType=gg;Ne.isInterfaceType=wa;Ne.isLeafType=XA;Ne.isListType=dh;Ne.isNamedType=ew;Ne.isNonNullType=Cs;Ne.isNullableType=vg;Ne.isObjectType=Zu;Ne.isOutputType=Ig;Ne.isRequiredArgument=hq;Ne.isRequiredInputField=Eq;Ne.isScalarType=Aa;Ne.isType=lh;Ne.isUnionType=Fa;Ne.isWrappingType=vd;Ne.resolveObjMapThunk=bg;Ne.resolveReadonlyArrayThunk=_g;var Mn=Da(),qG=ks(),JA=UA(),Dt=dn(),Us=Ym(),KG=Ps(),QG=Xu(),WA=og(),ch=CA(),YG=Ms(),Gi=Wm(),gd=Ge(),JG=Gt(),zA=ji(),zG=qA(),qi=Eg();function lh(e){return Aa(e)||Zu(e)||wa(e)||Fa(e)||Ra(e)||Id(e)||dh(e)||Cs(e)}function WG(e){if(!lh(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL type.`);return e}function Aa(e){return(0,Us.instanceOf)(e,rh)}function XG(e){if(!Aa(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Scalar type.`);return e}function Zu(e){return(0,Us.instanceOf)(e,ih)}function HG(e){if(!Zu(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Object type.`);return e}function wa(e){return(0,Us.instanceOf)(e,oh)}function ZG(e){if(!wa(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Interface type.`);return e}function Fa(e){return(0,Us.instanceOf)(e,sh)}function eq(e){if(!Fa(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Union type.`);return e}function Ra(e){return(0,Us.instanceOf)(e,ah)}function tq(e){if(!Ra(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Enum type.`);return e}function Id(e){return(0,Us.instanceOf)(e,uh)}function nq(e){if(!Id(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Input Object type.`);return e}function dh(e){return(0,Us.instanceOf)(e,th)}function rq(e){if(!dh(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL List type.`);return e}function Cs(e){return(0,Us.instanceOf)(e,nh)}function iq(e){if(!Cs(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function gg(e){return Aa(e)||Ra(e)||Id(e)||vd(e)&&gg(e.ofType)}function oq(e){if(!gg(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL input type.`);return e}function Ig(e){return Aa(e)||Zu(e)||wa(e)||Fa(e)||Ra(e)||vd(e)&&Ig(e.ofType)}function sq(e){if(!Ig(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL output type.`);return e}function XA(e){return Aa(e)||Ra(e)}function aq(e){if(!XA(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL leaf type.`);return e}function HA(e){return Zu(e)||wa(e)||Fa(e)}function uq(e){if(!HA(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL composite type.`);return e}function ZA(e){return wa(e)||Fa(e)}function cq(e){if(!ZA(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL abstract type.`);return e}var th=class{constructor(t){lh(t)||(0,Mn.devAssert)(!1,`Expected ${(0,Dt.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Ne.GraphQLList=th;var nh=class{constructor(t){vg(t)||(0,Mn.devAssert)(!1,`Expected ${(0,Dt.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Ne.GraphQLNonNull=nh;function vd(e){return dh(e)||Cs(e)}function lq(e){if(!vd(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL wrapping type.`);return e}function vg(e){return lh(e)&&!Cs(e)}function dq(e){if(!vg(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL nullable type.`);return e}function pq(e){if(e)return Cs(e)?e.ofType:e}function ew(e){return Aa(e)||Zu(e)||wa(e)||Fa(e)||Ra(e)||Id(e)}function fq(e){if(!ew(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL named type.`);return e}function mq(e){if(e){let t=e;for(;vd(t);)t=t.ofType;return t}}function _g(e){return typeof e=="function"?e():e}function bg(e){return typeof e=="function"?e():e}var rh=class{constructor(t){var n,r,i,o;let s=(n=t.parseValue)!==null&&n!==void 0?n:JA.identityFunc;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:JA.identityFunc,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s((0,zG.valueFromASTUntyped)(a,u)),this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,Mn.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Dt.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,Mn.devAssert)(!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.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,Mn.devAssert)(!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()}};Ne.GraphQLScalarType=rh;var ih=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>nw(t),this._interfaces=()=>tw(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,Mn.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Dt.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:iw(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ne.GraphQLObjectType=ih;function tw(e){var t;let n=_g((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,Mn.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function nw(e){let t=bg(e.fields);return Hu(t)||(0,Mn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ch.mapValue)(t,(n,r)=>{var i;Hu(n)||(0,Mn.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,Mn.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Dt.inspect)(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return Hu(o)||(0,Mn.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,qi.assertName)(r),description:n.description,type:n.type,args:rw(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Gi.toObjMap)(n.extensions),astNode:n.astNode}})}function rw(e){return Object.entries(e).map(([t,n])=>({name:(0,qi.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Gi.toObjMap)(n.extensions),astNode:n.astNode}))}function Hu(e){return(0,KG.isObjectLike)(e)&&!Array.isArray(e)}function iw(e){return(0,ch.mapValue)(e,t=>({description:t.description,type:t.type,args:ow(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function ow(e){return(0,WA.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function hq(e){return Cs(e.type)&&e.defaultValue===void 0}var oh=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=nw.bind(void 0,t),this._interfaces=tw.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Mn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Dt.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:iw(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ne.GraphQLInterfaceType=oh;var sh=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=yq.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Mn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Dt.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(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()}};Ne.GraphQLUnionType=sh;function yq(e){let t=_g(e.types);return Array.isArray(t)||(0,Mn.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var ah=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=Tq(this.name,t.values),this._valueLookup=new Map(this._values.map(r=>[r.value,r])),this._nameLookup=(0,QG.keyMap)(this._values,r=>r.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(t){return this._nameLookup[t]}serialize(t){let n=this._valueLookup.get(t);if(n===void 0)throw new gd.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Dt.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Dt.inspect)(t);throw new gd.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+eh(this,r))}let n=this.getValue(t);if(n==null)throw new gd.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+eh(this,t));return n.value}parseLiteral(t,n){if(t.kind!==JG.Kind.ENUM){let i=(0,zA.print)(t);throw new gd.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+eh(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,zA.print)(t);throw new gd.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+eh(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,WA.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ne.GraphQLEnumType=ah;function eh(e,t){let n=e.getValues().map(i=>i.name),r=(0,YG.suggestionList)(t,n);return(0,qG.didYouMean)("the enum value",r)}function Tq(e,t){return Hu(t)||(0,Mn.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Hu(r)||(0,Mn.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Dt.inspect)(r)}.`),{name:(0,qi.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Gi.toObjMap)(r.extensions),astNode:r.astNode}))}var uh=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Nq.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,ch.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ne.GraphQLInputObjectType=uh;function Nq(e){let t=bg(e.fields);return Hu(t)||(0,Mn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ch.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,Mn.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,qi.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Gi.toObjMap)(n.extensions),astNode:n.astNode}))}function Eq(e){return Cs(e.type)&&e.defaultValue===void 0}});var fh=R(_d=>{"use strict";p();m();f();Object.defineProperty(_d,"__esModule",{value:!0});_d.doTypesOverlap=gq;_d.isEqualType=Sg;_d.isTypeSubTypeOf=ph;var rr=xt();function Sg(e,t){return e===t?!0:(0,rr.isNonNullType)(e)&&(0,rr.isNonNullType)(t)||(0,rr.isListType)(e)&&(0,rr.isListType)(t)?Sg(e.ofType,t.ofType):!1}function ph(e,t,n){return t===n?!0:(0,rr.isNonNullType)(n)?(0,rr.isNonNullType)(t)?ph(e,t.ofType,n.ofType):!1:(0,rr.isNonNullType)(t)?ph(e,t.ofType,n):(0,rr.isListType)(n)?(0,rr.isListType)(t)?ph(e,t.ofType,n.ofType):!1:(0,rr.isListType)(t)?!1:(0,rr.isAbstractType)(n)&&((0,rr.isInterfaceType)(t)||(0,rr.isObjectType)(t))&&e.isSubType(n,t)}function gq(e,t,n){return t===n?!0:(0,rr.isAbstractType)(t)?(0,rr.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,rr.isAbstractType)(n)?e.isSubType(n,t):!1}});var mh=R(bd=>{"use strict";p();m();f();Object.defineProperty(bd,"__esModule",{value:!0});bd.DirectiveLocation=void 0;var Dg;bd.DirectiveLocation=Dg;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Dg||(bd.DirectiveLocation=Dg={}))});var Ad=R(bn=>{"use strict";p();m();f();Object.defineProperty(bn,"__esModule",{value:!0});bn.GraphQLString=bn.GraphQLInt=bn.GraphQLID=bn.GraphQLFloat=bn.GraphQLBoolean=bn.GRAPHQL_MIN_INT=bn.GRAPHQL_MAX_INT=void 0;bn.isSpecifiedScalarType=Iq;bn.specifiedScalarTypes=void 0;var Ni=dn(),sw=Ps(),Un=Ge(),La=Gt(),Sd=ji(),Dd=xt(),hh=2147483647;bn.GRAPHQL_MAX_INT=hh;var yh=-2147483648;bn.GRAPHQL_MIN_INT=yh;var aw=new Dd.GraphQLScalarType({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=Od(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new Un.GraphQLError(`Int cannot represent non-integer value: ${(0,Ni.inspect)(t)}`);if(n>hh||nhh||ehh||te.name===t)}function Od(e){if((0,sw.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,sw.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Vs=R(Sn=>{"use strict";p();m();f();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.GraphQLSpecifiedByDirective=Sn.GraphQLSkipDirective=Sn.GraphQLIncludeDirective=Sn.GraphQLDirective=Sn.GraphQLDeprecatedDirective=Sn.DEFAULT_DEPRECATION_REASON=void 0;Sn.assertDirective=Oq;Sn.isDirective=mw;Sn.isSpecifiedDirective=Aq;Sn.specifiedDirectives=void 0;var fw=Da(),vq=dn(),_q=Ym(),bq=Ps(),Sq=Wm(),Ei=mh(),Dq=Eg(),wd=xt(),Th=Ad();function mw(e){return(0,_q.instanceOf)(e,Bs)}function Oq(e){if(!mw(e))throw new Error(`Expected ${(0,vq.inspect)(e)} to be a GraphQL directive.`);return e}var Bs=class{constructor(t){var n,r;this.name=(0,Dq.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,Sq.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,fw.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,bq.isObjectLike)(i)&&!Array.isArray(i)||(0,fw.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,wd.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,wd.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Sn.GraphQLDirective=Bs;var hw=new Bs({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ei.DirectiveLocation.FIELD,Ei.DirectiveLocation.FRAGMENT_SPREAD,Ei.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new wd.GraphQLNonNull(Th.GraphQLBoolean),description:"Included when true."}}});Sn.GraphQLIncludeDirective=hw;var yw=new Bs({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ei.DirectiveLocation.FIELD,Ei.DirectiveLocation.FRAGMENT_SPREAD,Ei.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new wd.GraphQLNonNull(Th.GraphQLBoolean),description:"Skipped when true."}}});Sn.GraphQLSkipDirective=yw;var Tw="No longer supported";Sn.DEFAULT_DEPRECATION_REASON=Tw;var Nw=new Bs({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ei.DirectiveLocation.FIELD_DEFINITION,Ei.DirectiveLocation.ARGUMENT_DEFINITION,Ei.DirectiveLocation.INPUT_FIELD_DEFINITION,Ei.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Th.GraphQLString,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:Tw}}});Sn.GraphQLDeprecatedDirective=Nw;var Ew=new Bs({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ei.DirectiveLocation.SCALAR],args:{url:{type:new wd.GraphQLNonNull(Th.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Sn.GraphQLSpecifiedByDirective=Ew;var gw=Object.freeze([hw,yw,Nw,Ew]);Sn.specifiedDirectives=gw;function Aq(e){return gw.some(({name:t})=>t===e.name)}});var Ag=R(Og=>{"use strict";p();m();f();Object.defineProperty(Og,"__esModule",{value:!0});Og.isIterableObject=wq;function wq(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var _w=R(wg=>{"use strict";p();m();f();Object.defineProperty(wg,"__esModule",{value:!0});wg.astFromValue=Rd;var Iw=dn(),Fq=yo(),Rq=Ag(),Lq=Ps(),Hr=Gt(),Fd=xt(),Pq=Ad();function Rd(e,t){if((0,Fd.isNonNullType)(t)){let n=Rd(e,t.ofType);return(n==null?void 0:n.kind)===Hr.Kind.NULL?null:n}if(e===null)return{kind:Hr.Kind.NULL};if(e===void 0)return null;if((0,Fd.isListType)(t)){let n=t.ofType;if((0,Rq.isIterableObject)(e)){let r=[];for(let i of e){let o=Rd(i,n);o!=null&&r.push(o)}return{kind:Hr.Kind.LIST,values:r}}return Rd(e,n)}if((0,Fd.isInputObjectType)(t)){if(!(0,Lq.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Rd(e[r.name],r.type);i&&n.push({kind:Hr.Kind.OBJECT_FIELD,name:{kind:Hr.Kind.NAME,value:r.name},value:i})}return{kind:Hr.Kind.OBJECT,fields:n}}if((0,Fd.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Hr.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return vw.test(r)?{kind:Hr.Kind.INT,value:r}:{kind:Hr.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,Fd.isEnumType)(t)?{kind:Hr.Kind.ENUM,value:n}:t===Pq.GraphQLID&&vw.test(n)?{kind:Hr.Kind.INT,value:n}:{kind:Hr.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,Iw.inspect)(n)}.`)}(0,Fq.invariant)(!1,"Unexpected input type: "+(0,Iw.inspect)(t))}var vw=/^-?(?:0|[1-9][0-9]*)$/});var Pd=R(Nt=>{"use strict";p();m();f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.introspectionTypes=Nt.__TypeKind=Nt.__Type=Nt.__Schema=Nt.__InputValue=Nt.__Field=Nt.__EnumValue=Nt.__DirectiveLocation=Nt.__Directive=Nt.TypeNameMetaFieldDef=Nt.TypeMetaFieldDef=Nt.TypeKind=Nt.SchemaMetaFieldDef=void 0;Nt.isIntrospectionType=$q;var xq=dn(),kq=yo(),Dn=mh(),Mq=ji(),Uq=_w(),he=xt(),Ot=Ad(),Fg=new he.GraphQLObjectType({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:Ot.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Zr))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new he.GraphQLNonNull(Zr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Zr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Zr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Rg))),resolve:e=>e.getDirectives()}})});Nt.__Schema=Fg;var Rg=new he.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +`)))!==null&&t!==void 0?t:!1}});var qA=L(Ng=>{"use strict";p();m();f();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.valueFromASTUntyped=Tg;var jG=og(),No=Gt();function Tg(e,t){switch(e.kind){case No.Kind.NULL:return null;case No.Kind.INT:return parseInt(e.value,10);case No.Kind.FLOAT:return parseFloat(e.value);case No.Kind.STRING:case No.Kind.ENUM:case No.Kind.BOOLEAN:return e.value;case No.Kind.LIST:return e.values.map(n=>Tg(n,t));case No.Kind.OBJECT:return(0,jG.keyValMap)(e.fields,n=>n.name.value,n=>Tg(n.value,t));case No.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var Eg=L(Zm=>{"use strict";p();m();f();Object.defineProperty(Zm,"__esModule",{value:!0});Zm.assertEnumValueName=GG;Zm.assertName=YA;var KA=Da(),Xm=qe(),QA=fg();function YA(e){if(e!=null||(0,KA.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,KA.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new Xm.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";p();m();f();Object.defineProperty(Ne,"__esModule",{value:!0});Ne.GraphQLUnionType=Ne.GraphQLScalarType=Ne.GraphQLObjectType=Ne.GraphQLNonNull=Ne.GraphQLList=Ne.GraphQLInterfaceType=Ne.GraphQLInputObjectType=Ne.GraphQLEnumType=void 0;Ne.argsToArgsConfig=ow;Ne.assertAbstractType=cq;Ne.assertCompositeType=uq;Ne.assertEnumType=tq;Ne.assertInputObjectType=nq;Ne.assertInputType=oq;Ne.assertInterfaceType=ZG;Ne.assertLeafType=aq;Ne.assertListType=rq;Ne.assertNamedType=fq;Ne.assertNonNullType=iq;Ne.assertNullableType=dq;Ne.assertObjectType=XG;Ne.assertOutputType=sq;Ne.assertScalarType=HG;Ne.assertType=WG;Ne.assertUnionType=eq;Ne.assertWrappingType=lq;Ne.defineArguments=rw;Ne.getNamedType=mq;Ne.getNullableType=pq;Ne.isAbstractType=ZA;Ne.isCompositeType=XA;Ne.isEnumType=La;Ne.isInputObjectType=Id;Ne.isInputType=gg;Ne.isInterfaceType=wa;Ne.isLeafType=HA;Ne.isListType=dh;Ne.isNamedType=ew;Ne.isNonNullType=Cs;Ne.isNullableType=vg;Ne.isObjectType=Zu;Ne.isOutputType=Ig;Ne.isRequiredArgument=hq;Ne.isRequiredInputField=Eq;Ne.isScalarType=Aa;Ne.isType=lh;Ne.isUnionType=Fa;Ne.isWrappingType=vd;Ne.resolveObjMapThunk=bg;Ne.resolveReadonlyArrayThunk=_g;var Mn=Da(),qG=ks(),JA=UA(),Dt=dn(),Us=Ym(),KG=Ps(),QG=Hu(),WA=og(),ch=CA(),YG=Ms(),Gi=Wm(),gd=qe(),JG=Gt(),zA=ji(),zG=qA(),qi=Eg();function lh(e){return Aa(e)||Zu(e)||wa(e)||Fa(e)||La(e)||Id(e)||dh(e)||Cs(e)}function WG(e){if(!lh(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL type.`);return e}function Aa(e){return(0,Us.instanceOf)(e,rh)}function HG(e){if(!Aa(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Scalar type.`);return e}function Zu(e){return(0,Us.instanceOf)(e,ih)}function XG(e){if(!Zu(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Object type.`);return e}function wa(e){return(0,Us.instanceOf)(e,oh)}function ZG(e){if(!wa(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Interface type.`);return e}function Fa(e){return(0,Us.instanceOf)(e,sh)}function eq(e){if(!Fa(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Union type.`);return e}function La(e){return(0,Us.instanceOf)(e,ah)}function tq(e){if(!La(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Enum type.`);return e}function Id(e){return(0,Us.instanceOf)(e,uh)}function nq(e){if(!Id(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Input Object type.`);return e}function dh(e){return(0,Us.instanceOf)(e,th)}function rq(e){if(!dh(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL List type.`);return e}function Cs(e){return(0,Us.instanceOf)(e,nh)}function iq(e){if(!Cs(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function gg(e){return Aa(e)||La(e)||Id(e)||vd(e)&&gg(e.ofType)}function oq(e){if(!gg(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL input type.`);return e}function Ig(e){return Aa(e)||Zu(e)||wa(e)||Fa(e)||La(e)||vd(e)&&Ig(e.ofType)}function sq(e){if(!Ig(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL output type.`);return e}function HA(e){return Aa(e)||La(e)}function aq(e){if(!HA(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL leaf type.`);return e}function XA(e){return Zu(e)||wa(e)||Fa(e)}function uq(e){if(!XA(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL composite type.`);return e}function ZA(e){return wa(e)||Fa(e)}function cq(e){if(!ZA(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL abstract type.`);return e}var th=class{constructor(t){lh(t)||(0,Mn.devAssert)(!1,`Expected ${(0,Dt.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Ne.GraphQLList=th;var nh=class{constructor(t){vg(t)||(0,Mn.devAssert)(!1,`Expected ${(0,Dt.inspect)(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}};Ne.GraphQLNonNull=nh;function vd(e){return dh(e)||Cs(e)}function lq(e){if(!vd(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL wrapping type.`);return e}function vg(e){return lh(e)&&!Cs(e)}function dq(e){if(!vg(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL nullable type.`);return e}function pq(e){if(e)return Cs(e)?e.ofType:e}function ew(e){return Aa(e)||Zu(e)||wa(e)||Fa(e)||La(e)||Id(e)}function fq(e){if(!ew(e))throw new Error(`Expected ${(0,Dt.inspect)(e)} to be a GraphQL named type.`);return e}function mq(e){if(e){let t=e;for(;vd(t);)t=t.ofType;return t}}function _g(e){return typeof e=="function"?e():e}function bg(e){return typeof e=="function"?e():e}var rh=class{constructor(t){var n,r,i,o;let s=(n=t.parseValue)!==null&&n!==void 0?n:JA.identityFunc;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:JA.identityFunc,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(a,u)=>s((0,zG.valueFromASTUntyped)(a,u)),this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,Mn.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Dt.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,Mn.devAssert)(!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.`),t.parseLiteral&&(typeof t.parseValue=="function"&&typeof t.parseLiteral=="function"||(0,Mn.devAssert)(!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()}};Ne.GraphQLScalarType=rh;var ih=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>nw(t),this._interfaces=()=>tw(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,Mn.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Dt.inspect)(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:iw(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ne.GraphQLObjectType=ih;function tw(e){var t;let n=_g((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,Mn.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function nw(e){let t=bg(e.fields);return Xu(t)||(0,Mn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ch.mapValue)(t,(n,r)=>{var i;Xu(n)||(0,Mn.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,Mn.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Dt.inspect)(n.resolve)}.`);let o=(i=n.args)!==null&&i!==void 0?i:{};return Xu(o)||(0,Mn.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,qi.assertName)(r),description:n.description,type:n.type,args:rw(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Gi.toObjMap)(n.extensions),astNode:n.astNode}})}function rw(e){return Object.entries(e).map(([t,n])=>({name:(0,qi.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Gi.toObjMap)(n.extensions),astNode:n.astNode}))}function Xu(e){return(0,KG.isObjectLike)(e)&&!Array.isArray(e)}function iw(e){return(0,ch.mapValue)(e,t=>({description:t.description,type:t.type,args:ow(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function ow(e){return(0,WA.keyValMap)(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function hq(e){return Cs(e.type)&&e.defaultValue===void 0}var oh=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=nw.bind(void 0,t),this._interfaces=tw.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Mn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Dt.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces=="function"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:iw(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ne.GraphQLInterfaceType=oh;var sh=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=yq.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,Mn.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Dt.inspect)(t.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return typeof this._types=="function"&&(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()}};Ne.GraphQLUnionType=sh;function yq(e){let t=_g(e.types);return Array.isArray(t)||(0,Mn.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var ah=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=Tq(this.name,t.values),this._valueLookup=new Map(this._values.map(r=>[r.value,r])),this._nameLookup=(0,QG.keyMap)(this._values,r=>r.name)}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return this._values}getValue(t){return this._nameLookup[t]}serialize(t){let n=this._valueLookup.get(t);if(n===void 0)throw new gd.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Dt.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Dt.inspect)(t);throw new gd.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+eh(this,r))}let n=this.getValue(t);if(n==null)throw new gd.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+eh(this,t));return n.value}parseLiteral(t,n){if(t.kind!==JG.Kind.ENUM){let i=(0,zA.print)(t);throw new gd.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+eh(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,zA.print)(t);throw new gd.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+eh(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,WA.keyValMap)(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ne.GraphQLEnumType=ah;function eh(e,t){let n=e.getValues().map(i=>i.name),r=(0,YG.suggestionList)(t,n);return(0,qG.didYouMean)("the enum value",r)}function Tq(e,t){return Xu(t)||(0,Mn.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Xu(r)||(0,Mn.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Dt.inspect)(r)}.`),{name:(0,qi.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Gi.toObjMap)(r.extensions),astNode:r.astNode}))}var uh=class{constructor(t){var n;this.name=(0,qi.assertName)(t.name),this.description=t.description,this.extensions=(0,Gi.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=Nq.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){let t=(0,ch.mapValue)(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ne.GraphQLInputObjectType=uh;function Nq(e){let t=bg(e.fields);return Xu(t)||(0,Mn.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,ch.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,Mn.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,qi.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Gi.toObjMap)(n.extensions),astNode:n.astNode}))}function Eq(e){return Cs(e.type)&&e.defaultValue===void 0}});var fh=L(_d=>{"use strict";p();m();f();Object.defineProperty(_d,"__esModule",{value:!0});_d.doTypesOverlap=gq;_d.isEqualType=Sg;_d.isTypeSubTypeOf=ph;var rr=xt();function Sg(e,t){return e===t?!0:(0,rr.isNonNullType)(e)&&(0,rr.isNonNullType)(t)||(0,rr.isListType)(e)&&(0,rr.isListType)(t)?Sg(e.ofType,t.ofType):!1}function ph(e,t,n){return t===n?!0:(0,rr.isNonNullType)(n)?(0,rr.isNonNullType)(t)?ph(e,t.ofType,n.ofType):!1:(0,rr.isNonNullType)(t)?ph(e,t.ofType,n):(0,rr.isListType)(n)?(0,rr.isListType)(t)?ph(e,t.ofType,n.ofType):!1:(0,rr.isListType)(t)?!1:(0,rr.isAbstractType)(n)&&((0,rr.isInterfaceType)(t)||(0,rr.isObjectType)(t))&&e.isSubType(n,t)}function gq(e,t,n){return t===n?!0:(0,rr.isAbstractType)(t)?(0,rr.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,rr.isAbstractType)(n)?e.isSubType(n,t):!1}});var mh=L(bd=>{"use strict";p();m();f();Object.defineProperty(bd,"__esModule",{value:!0});bd.DirectiveLocation=void 0;var Dg;bd.DirectiveLocation=Dg;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Dg||(bd.DirectiveLocation=Dg={}))});var Ad=L(bn=>{"use strict";p();m();f();Object.defineProperty(bn,"__esModule",{value:!0});bn.GraphQLString=bn.GraphQLInt=bn.GraphQLID=bn.GraphQLFloat=bn.GraphQLBoolean=bn.GRAPHQL_MIN_INT=bn.GRAPHQL_MAX_INT=void 0;bn.isSpecifiedScalarType=Iq;bn.specifiedScalarTypes=void 0;var Ni=dn(),sw=Ps(),Un=qe(),Ra=Gt(),Sd=ji(),Dd=xt(),hh=2147483647;bn.GRAPHQL_MAX_INT=hh;var yh=-2147483648;bn.GRAPHQL_MIN_INT=yh;var aw=new Dd.GraphQLScalarType({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=Od(e);if(typeof t=="boolean")return t?1:0;let n=t;if(typeof t=="string"&&t!==""&&(n=Number(t)),typeof n!="number"||!Number.isInteger(n))throw new Un.GraphQLError(`Int cannot represent non-integer value: ${(0,Ni.inspect)(t)}`);if(n>hh||nhh||ehh||te.name===t)}function Od(e){if((0,sw.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,sw.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Vs=L(Sn=>{"use strict";p();m();f();Object.defineProperty(Sn,"__esModule",{value:!0});Sn.GraphQLSpecifiedByDirective=Sn.GraphQLSkipDirective=Sn.GraphQLIncludeDirective=Sn.GraphQLDirective=Sn.GraphQLDeprecatedDirective=Sn.DEFAULT_DEPRECATION_REASON=void 0;Sn.assertDirective=Oq;Sn.isDirective=mw;Sn.isSpecifiedDirective=Aq;Sn.specifiedDirectives=void 0;var fw=Da(),vq=dn(),_q=Ym(),bq=Ps(),Sq=Wm(),Ei=mh(),Dq=Eg(),wd=xt(),Th=Ad();function mw(e){return(0,_q.instanceOf)(e,Bs)}function Oq(e){if(!mw(e))throw new Error(`Expected ${(0,vq.inspect)(e)} to be a GraphQL directive.`);return e}var Bs=class{constructor(t){var n,r;this.name=(0,Dq.assertName)(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=(0,Sq.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,fw.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,bq.isObjectLike)(i)&&!Array.isArray(i)||(0,fw.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,wd.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,wd.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Sn.GraphQLDirective=Bs;var hw=new Bs({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ei.DirectiveLocation.FIELD,Ei.DirectiveLocation.FRAGMENT_SPREAD,Ei.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new wd.GraphQLNonNull(Th.GraphQLBoolean),description:"Included when true."}}});Sn.GraphQLIncludeDirective=hw;var yw=new Bs({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ei.DirectiveLocation.FIELD,Ei.DirectiveLocation.FRAGMENT_SPREAD,Ei.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new wd.GraphQLNonNull(Th.GraphQLBoolean),description:"Skipped when true."}}});Sn.GraphQLSkipDirective=yw;var Tw="No longer supported";Sn.DEFAULT_DEPRECATION_REASON=Tw;var Nw=new Bs({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ei.DirectiveLocation.FIELD_DEFINITION,Ei.DirectiveLocation.ARGUMENT_DEFINITION,Ei.DirectiveLocation.INPUT_FIELD_DEFINITION,Ei.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Th.GraphQLString,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:Tw}}});Sn.GraphQLDeprecatedDirective=Nw;var Ew=new Bs({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ei.DirectiveLocation.SCALAR],args:{url:{type:new wd.GraphQLNonNull(Th.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Sn.GraphQLSpecifiedByDirective=Ew;var gw=Object.freeze([hw,yw,Nw,Ew]);Sn.specifiedDirectives=gw;function Aq(e){return gw.some(({name:t})=>t===e.name)}});var Ag=L(Og=>{"use strict";p();m();f();Object.defineProperty(Og,"__esModule",{value:!0});Og.isIterableObject=wq;function wq(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var _w=L(wg=>{"use strict";p();m();f();Object.defineProperty(wg,"__esModule",{value:!0});wg.astFromValue=Ld;var Iw=dn(),Fq=To(),Lq=Ag(),Rq=Ps(),Xr=Gt(),Fd=xt(),Pq=Ad();function Ld(e,t){if((0,Fd.isNonNullType)(t)){let n=Ld(e,t.ofType);return(n==null?void 0:n.kind)===Xr.Kind.NULL?null:n}if(e===null)return{kind:Xr.Kind.NULL};if(e===void 0)return null;if((0,Fd.isListType)(t)){let n=t.ofType;if((0,Lq.isIterableObject)(e)){let r=[];for(let i of e){let o=Ld(i,n);o!=null&&r.push(o)}return{kind:Xr.Kind.LIST,values:r}}return Ld(e,n)}if((0,Fd.isInputObjectType)(t)){if(!(0,Rq.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Ld(e[r.name],r.type);i&&n.push({kind:Xr.Kind.OBJECT_FIELD,name:{kind:Xr.Kind.NAME,value:r.name},value:i})}return{kind:Xr.Kind.OBJECT,fields:n}}if((0,Fd.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Xr.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return vw.test(r)?{kind:Xr.Kind.INT,value:r}:{kind:Xr.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,Fd.isEnumType)(t)?{kind:Xr.Kind.ENUM,value:n}:t===Pq.GraphQLID&&vw.test(n)?{kind:Xr.Kind.INT,value:n}:{kind:Xr.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,Iw.inspect)(n)}.`)}(0,Fq.invariant)(!1,"Unexpected input type: "+(0,Iw.inspect)(t))}var vw=/^-?(?:0|[1-9][0-9]*)$/});var Pd=L(Nt=>{"use strict";p();m();f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.introspectionTypes=Nt.__TypeKind=Nt.__Type=Nt.__Schema=Nt.__InputValue=Nt.__Field=Nt.__EnumValue=Nt.__DirectiveLocation=Nt.__Directive=Nt.TypeNameMetaFieldDef=Nt.TypeMetaFieldDef=Nt.TypeKind=Nt.SchemaMetaFieldDef=void 0;Nt.isIntrospectionType=$q;var xq=dn(),kq=To(),Dn=mh(),Mq=ji(),Uq=_w(),he=xt(),Ot=Ad(),Fg=new he.GraphQLObjectType({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:Ot.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Zr))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new he.GraphQLNonNull(Zr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Zr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Zr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Lg))),resolve:e=>e.getDirectives()}})});Nt.__Schema=Fg;var Lg=new he.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. -In 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 he.GraphQLNonNull(Ot.GraphQLString),resolve:e=>e.name},description:{type:Ot.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new he.GraphQLNonNull(Ot.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Lg))),resolve:e=>e.locations},args:{type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Ld))),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Nt.__Directive=Rg;var Lg=new he.GraphQLEnumType({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:Dn.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Dn.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Dn.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Dn.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Dn.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Dn.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Dn.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Dn.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Dn.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Dn.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Dn.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Dn.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Dn.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Dn.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Dn.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Dn.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Dn.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Dn.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Dn.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Nt.__DirectiveLocation=Lg;var Zr=new he.GraphQLObjectType({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 he.GraphQLNonNull(kg),resolve(e){if((0,he.isScalarType)(e))return On.SCALAR;if((0,he.isObjectType)(e))return On.OBJECT;if((0,he.isInterfaceType)(e))return On.INTERFACE;if((0,he.isUnionType)(e))return On.UNION;if((0,he.isEnumType)(e))return On.ENUM;if((0,he.isInputObjectType)(e))return On.INPUT_OBJECT;if((0,he.isListType)(e))return On.LIST;if((0,he.isNonNullType)(e))return On.NON_NULL;(0,kq.invariant)(!1,`Unexpected type: "${(0,xq.inspect)(e)}".`)}},name:{type:Ot.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Ot.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ot.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new he.GraphQLList(new he.GraphQLNonNull(Pg)),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,he.isObjectType)(e)||(0,he.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new he.GraphQLList(new he.GraphQLNonNull(Zr)),resolve(e){if((0,he.isObjectType)(e)||(0,he.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new he.GraphQLList(new he.GraphQLNonNull(Zr)),resolve(e,t,n,{schema:r}){if((0,he.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new he.GraphQLList(new he.GraphQLNonNull(xg)),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,he.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new he.GraphQLList(new he.GraphQLNonNull(Ld)),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,he.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Zr,resolve:e=>"ofType"in e?e.ofType:void 0}})});Nt.__Type=Zr;var Pg=new he.GraphQLObjectType({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 he.GraphQLNonNull(Ot.GraphQLString),resolve:e=>e.name},description:{type:Ot.GraphQLString,resolve:e=>e.description},args:{type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Ld))),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new he.GraphQLNonNull(Zr),resolve:e=>e.type},isDeprecated:{type:new he.GraphQLNonNull(Ot.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ot.GraphQLString,resolve:e=>e.deprecationReason}})});Nt.__Field=Pg;var Ld=new he.GraphQLObjectType({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 he.GraphQLNonNull(Ot.GraphQLString),resolve:e=>e.name},description:{type:Ot.GraphQLString,resolve:e=>e.description},type:{type:new he.GraphQLNonNull(Zr),resolve:e=>e.type},defaultValue:{type:Ot.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,Uq.astFromValue)(n,t);return r?(0,Mq.print)(r):null}},isDeprecated:{type:new he.GraphQLNonNull(Ot.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ot.GraphQLString,resolve:e=>e.deprecationReason}})});Nt.__InputValue=Ld;var xg=new he.GraphQLObjectType({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 he.GraphQLNonNull(Ot.GraphQLString),resolve:e=>e.name},description:{type:Ot.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new he.GraphQLNonNull(Ot.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ot.GraphQLString,resolve:e=>e.deprecationReason}})});Nt.__EnumValue=xg;var On;Nt.TypeKind=On;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(On||(Nt.TypeKind=On={}));var kg=new he.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:On.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:On.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:On.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:On.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:On.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:On.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:On.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:On.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Nt.__TypeKind=kg;var Cq={name:"__schema",type:new he.GraphQLNonNull(Fg),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};Nt.SchemaMetaFieldDef=Cq;var Bq={name:"__type",type:Zr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new he.GraphQLNonNull(Ot.GraphQLString),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};Nt.TypeMetaFieldDef=Bq;var Vq={name:"__typename",type:new he.GraphQLNonNull(Ot.GraphQLString),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};Nt.TypeNameMetaFieldDef=Vq;var bw=Object.freeze([Fg,Rg,Lg,Zr,Pg,Ld,xg,kg]);Nt.introspectionTypes=bw;function $q(e){return bw.some(({name:t})=>e.name===t)}});var Ow=R(ec=>{"use strict";p();m();f();Object.defineProperty(ec,"__esModule",{value:!0});ec.GraphQLSchema=void 0;ec.assertSchema=Qq;ec.isSchema=Dw;var Nh=Da(),Ug=dn(),jq=Ym(),Gq=Ps(),qq=Wm(),Mg=zu(),gi=xt(),Sw=Vs(),Kq=Pd();function Dw(e){return(0,jq.instanceOf)(e,Eh)}function Qq(e){if(!Dw(e))throw new Error(`Expected ${(0,Ug.inspect)(e)} to be a GraphQL schema.`);return e}var Eh=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,Gq.isObjectLike)(t)||(0,Nh.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,Nh.devAssert)(!1,`"types" must be Array if provided but got: ${(0,Ug.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,Nh.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,Ug.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,qq.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Sw.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let o of t.types)i.delete(o),Ii(o,i);this._queryType!=null&&Ii(this._queryType,i),this._mutationType!=null&&Ii(this._mutationType,i),this._subscriptionType!=null&&Ii(this._subscriptionType,i);for(let o of this._directives)if((0,Sw.isDirective)(o))for(let s of o.args)Ii(s.type,i);Ii(Kq.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||(0,Nh.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,(0,gi.isInterfaceType)(o)){for(let a of o.getInterfaces())if((0,gi.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if((0,gi.isObjectType)(o)){for(let a of o.getInterfaces())if((0,gi.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Mg.OperationTypeNode.QUERY:return this.getQueryType();case Mg.OperationTypeNode.MUTATION:return this.getMutationType();case Mg.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,gi.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,gi.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let o of i.objects)r[o.name]=!0;for(let o of i.interfaces)r[o.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}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:this.__validationErrors!==void 0}}};ec.GraphQLSchema=Eh;function Ii(e,t){let n=(0,gi.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,gi.isUnionType)(n))for(let r of n.getTypes())Ii(r,t);else if((0,gi.isObjectType)(n)||(0,gi.isInterfaceType)(n)){for(let r of n.getInterfaces())Ii(r,t);for(let r of Object.values(n.getFields())){Ii(r.type,t);for(let i of r.args)Ii(i.type,t)}}else if((0,gi.isInputObjectType)(n))for(let r of Object.values(n.getFields()))Ii(r.type,t)}return t}});var xw=R(gh=>{"use strict";p();m();f();Object.defineProperty(gh,"__esModule",{value:!0});gh.assertValidSchema=Wq;gh.validateSchema=Pw;var ir=dn(),Yq=Ge(),Cg=zu(),Aw=fh(),pn=xt(),Lw=Vs(),Jq=Pd(),zq=Ow();function Pw(e){if((0,zq.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new Vg(e);Xq(t),Hq(t),Zq(t);let n=t.getErrors();return e.__validationErrors=n,n}function Wq(e){let t=Pw(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +In 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 he.GraphQLNonNull(Ot.GraphQLString),resolve:e=>e.name},description:{type:Ot.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new he.GraphQLNonNull(Ot.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Rg))),resolve:e=>e.locations},args:{type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Rd))),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Nt.__Directive=Lg;var Rg=new he.GraphQLEnumType({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:Dn.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:Dn.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:Dn.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:Dn.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:Dn.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:Dn.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:Dn.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:Dn.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:Dn.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:Dn.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:Dn.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:Dn.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:Dn.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:Dn.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:Dn.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:Dn.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:Dn.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:Dn.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:Dn.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Nt.__DirectiveLocation=Rg;var Zr=new he.GraphQLObjectType({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 he.GraphQLNonNull(kg),resolve(e){if((0,he.isScalarType)(e))return On.SCALAR;if((0,he.isObjectType)(e))return On.OBJECT;if((0,he.isInterfaceType)(e))return On.INTERFACE;if((0,he.isUnionType)(e))return On.UNION;if((0,he.isEnumType)(e))return On.ENUM;if((0,he.isInputObjectType)(e))return On.INPUT_OBJECT;if((0,he.isListType)(e))return On.LIST;if((0,he.isNonNullType)(e))return On.NON_NULL;(0,kq.invariant)(!1,`Unexpected type: "${(0,xq.inspect)(e)}".`)}},name:{type:Ot.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:Ot.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Ot.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new he.GraphQLList(new he.GraphQLNonNull(Pg)),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,he.isObjectType)(e)||(0,he.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new he.GraphQLList(new he.GraphQLNonNull(Zr)),resolve(e){if((0,he.isObjectType)(e)||(0,he.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new he.GraphQLList(new he.GraphQLNonNull(Zr)),resolve(e,t,n,{schema:r}){if((0,he.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new he.GraphQLList(new he.GraphQLNonNull(xg)),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,he.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new he.GraphQLList(new he.GraphQLNonNull(Rd)),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,he.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Zr,resolve:e=>"ofType"in e?e.ofType:void 0}})});Nt.__Type=Zr;var Pg=new he.GraphQLObjectType({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 he.GraphQLNonNull(Ot.GraphQLString),resolve:e=>e.name},description:{type:Ot.GraphQLString,resolve:e=>e.description},args:{type:new he.GraphQLNonNull(new he.GraphQLList(new he.GraphQLNonNull(Rd))),args:{includeDeprecated:{type:Ot.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new he.GraphQLNonNull(Zr),resolve:e=>e.type},isDeprecated:{type:new he.GraphQLNonNull(Ot.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ot.GraphQLString,resolve:e=>e.deprecationReason}})});Nt.__Field=Pg;var Rd=new he.GraphQLObjectType({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 he.GraphQLNonNull(Ot.GraphQLString),resolve:e=>e.name},description:{type:Ot.GraphQLString,resolve:e=>e.description},type:{type:new he.GraphQLNonNull(Zr),resolve:e=>e.type},defaultValue:{type:Ot.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,Uq.astFromValue)(n,t);return r?(0,Mq.print)(r):null}},isDeprecated:{type:new he.GraphQLNonNull(Ot.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ot.GraphQLString,resolve:e=>e.deprecationReason}})});Nt.__InputValue=Rd;var xg=new he.GraphQLObjectType({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 he.GraphQLNonNull(Ot.GraphQLString),resolve:e=>e.name},description:{type:Ot.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new he.GraphQLNonNull(Ot.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Ot.GraphQLString,resolve:e=>e.deprecationReason}})});Nt.__EnumValue=xg;var On;Nt.TypeKind=On;(function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"})(On||(Nt.TypeKind=On={}));var kg=new he.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:On.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:On.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:On.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:On.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:On.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:On.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:On.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:On.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Nt.__TypeKind=kg;var Cq={name:"__schema",type:new he.GraphQLNonNull(Fg),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};Nt.SchemaMetaFieldDef=Cq;var Bq={name:"__type",type:Zr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new he.GraphQLNonNull(Ot.GraphQLString),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};Nt.TypeMetaFieldDef=Bq;var Vq={name:"__typename",type:new he.GraphQLNonNull(Ot.GraphQLString),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};Nt.TypeNameMetaFieldDef=Vq;var bw=Object.freeze([Fg,Lg,Rg,Zr,Pg,Rd,xg,kg]);Nt.introspectionTypes=bw;function $q(e){return bw.some(({name:t})=>e.name===t)}});var Ow=L(ec=>{"use strict";p();m();f();Object.defineProperty(ec,"__esModule",{value:!0});ec.GraphQLSchema=void 0;ec.assertSchema=Qq;ec.isSchema=Dw;var Nh=Da(),Ug=dn(),jq=Ym(),Gq=Ps(),qq=Wm(),Mg=zu(),gi=xt(),Sw=Vs(),Kq=Pd();function Dw(e){return(0,jq.instanceOf)(e,Eh)}function Qq(e){if(!Dw(e))throw new Error(`Expected ${(0,Ug.inspect)(e)} to be a GraphQL schema.`);return e}var Eh=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,Gq.isObjectLike)(t)||(0,Nh.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,Nh.devAssert)(!1,`"types" must be Array if provided but got: ${(0,Ug.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,Nh.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,Ug.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,qq.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:Sw.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let o of t.types)i.delete(o),Ii(o,i);this._queryType!=null&&Ii(this._queryType,i),this._mutationType!=null&&Ii(this._mutationType,i),this._subscriptionType!=null&&Ii(this._subscriptionType,i);for(let o of this._directives)if((0,Sw.isDirective)(o))for(let s of o.args)Ii(s.type,i);Ii(Kq.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let o of i){if(o==null)continue;let s=o.name;if(s||(0,Nh.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${s}".`);if(this._typeMap[s]=o,(0,gi.isInterfaceType)(o)){for(let a of o.getInterfaces())if((0,gi.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.interfaces.push(o)}}else if((0,gi.isObjectType)(o)){for(let a of o.getInterfaces())if((0,gi.isInterfaceType)(a)){let u=this._implementationsMap[a.name];u===void 0&&(u=this._implementationsMap[a.name]={objects:[],interfaces:[]}),u.objects.push(o)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case Mg.OperationTypeNode.QUERY:return this.getQueryType();case Mg.OperationTypeNode.MUTATION:return this.getMutationType();case Mg.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,gi.isUnionType)(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){let n=this._implementationsMap[t.name];return n!=null?n:{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),(0,gi.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let o of i.objects)r[o.name]=!0;for(let o of i.interfaces)r[o.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}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:this.__validationErrors!==void 0}}};ec.GraphQLSchema=Eh;function Ii(e,t){let n=(0,gi.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,gi.isUnionType)(n))for(let r of n.getTypes())Ii(r,t);else if((0,gi.isObjectType)(n)||(0,gi.isInterfaceType)(n)){for(let r of n.getInterfaces())Ii(r,t);for(let r of Object.values(n.getFields())){Ii(r.type,t);for(let i of r.args)Ii(i.type,t)}}else if((0,gi.isInputObjectType)(n))for(let r of Object.values(n.getFields()))Ii(r.type,t)}return t}});var xw=L(gh=>{"use strict";p();m();f();Object.defineProperty(gh,"__esModule",{value:!0});gh.assertValidSchema=Wq;gh.validateSchema=Pw;var ir=dn(),Yq=qe(),Cg=zu(),Aw=fh(),pn=xt(),Rw=Vs(),Jq=Pd(),zq=Ow();function Pw(e){if((0,zq.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new Vg(e);Hq(t),Xq(t),Zq(t);let n=t.getErrors();return e.__validationErrors=n,n}function Wq(e){let t=Pw(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}var Vg=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Yq.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function Xq(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,pn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,ir.inspect)(n)}.`,(r=Bg(t,Cg.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,pn.isObjectType)(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,ir.inspect)(i)}.`,(o=Bg(t,Cg.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=t.getSubscriptionType();if(s&&!(0,pn.isObjectType)(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,ir.inspect)(s)}.`,(a=Bg(t,Cg.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function Bg(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function Hq(e){for(let n of e.schema.getDirectives()){if(!(0,Lw.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,ir.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Pa(e,n);for(let r of n.args)if(Pa(e,r),(0,pn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,ir.inspect)(r.type)}.`,r.astNode),(0,pn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[$g(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Pa(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Zq(e){let t=o1(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,pn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,ir.inspect)(r)}.`,r.astNode);continue}(0,Jq.isIntrospectionType)(r)||Pa(e,r),(0,pn.isObjectType)(r)||(0,pn.isInterfaceType)(r)?(ww(e,r),Fw(e,r)):(0,pn.isUnionType)(r)?n1(e,r):(0,pn.isEnumType)(r)?r1(e,r):(0,pn.isInputObjectType)(r)&&(i1(e,r),t(r))}}function ww(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(Pa(e,s),!(0,pn.isOutputType)(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${(0,ir.inspect)(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}for(let a of s.args){let u=a.name;if(Pa(e,a),!(0,pn.isInputType)(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${u}:) must be Input Type but got: ${(0,ir.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if((0,pn.isRequiredArgument)(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${u}:) cannot be deprecated.`,[$g(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function Fw(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,pn.isInterfaceType)(r)){e.reportError(`Type ${(0,ir.inspect)(t)} must only implement Interface types, it cannot implement ${(0,ir.inspect)(r)}.`,xd(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,xd(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,xd(t,r));continue}n[r.name]=!0,t1(e,t,r),e1(e,t,r)}}function e1(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){let c=u.name,l=r[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,Aw.isTypeSubTypeOf)(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${n.name}.${c} expects type ${(0,ir.inspect)(u.type)} but ${t.name}.${c} is type ${(0,ir.inspect)(l.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let d of u.args){let h=d.name,N=l.args.find(E=>E.name===h);if(!N){e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expected but ${t.name}.${c} does not provide it.`,[d.astNode,l.astNode]);continue}if(!(0,Aw.isEqualType)(d.type,N.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expects type ${(0,ir.inspect)(d.type)} but ${t.name}.${c}(${h}:) is type ${(0,ir.inspect)(N.type)}.`,[(s=d.astNode)===null||s===void 0?void 0:s.type,(a=N.astNode)===null||a===void 0?void 0:a.type])}}for(let d of l.args){let h=d.name;!u.args.find(E=>E.name===h)&&(0,pn.isRequiredArgument)(d)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${h} that is missing from the Interface field ${n.name}.${c}.`,[d.astNode,u.astNode])}}}function t1(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}.`,[...xd(n,i),...xd(t,n)])}function n1(e,t){let n=t.getTypes();n.length===0&&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.`,Rw(t,i.name));continue}r[i.name]=!0,(0,pn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,ir.inspect)(i)}.`,Rw(t,String(i)))}}function r1(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Pa(e,r)}function i1(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(Pa(e,o),!(0,pn.isInputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${(0,ir.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if((0,pn.isRequiredInputField)(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[$g(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}}}function o1(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if((0,pn.isNonNullType)(a.type)&&(0,pn.isInputObjectType)(a.type.ofType)){let u=a.type.ofType,c=r[u.name];if(n.push(a),c===void 0)i(u);else{let l=n.slice(c),d=l.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${d}".`,l.map(h=>h.astNode))}n.pop()}r[o.name]=void 0}}function xd(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function Rw(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function $g(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Lw.GraphQLDeprecatedDirective.name)}});var No=R(qg=>{"use strict";p();m();f();Object.defineProperty(qg,"__esModule",{value:!0});qg.typeFromAST=Gg;var jg=Gt(),kw=xt();function Gg(e,t){switch(t.kind){case jg.Kind.LIST_TYPE:{let n=Gg(e,t.type);return n&&new kw.GraphQLList(n)}case jg.Kind.NON_NULL_TYPE:{let n=Gg(e,t.type);return n&&new kw.GraphQLNonNull(n)}case jg.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var Qg=R(kd=>{"use strict";p();m();f();Object.defineProperty(kd,"__esModule",{value:!0});kd.TypeInfo=void 0;kd.visitWithTypeInfo=u1;var s1=zu(),sn=Gt(),Mw=Nd(),an=xt(),tc=Pd(),Uw=No(),Kg=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:a1,n&&((0,an.isInputType)(n)&&this._inputTypeStack.push(n),(0,an.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,an.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){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(t){let n=this._schema;switch(t.kind){case sn.Kind.SELECTION_SET:{let i=(0,an.getNamedType)(this.getType());this._parentTypeStack.push((0,an.isCompositeType)(i)?i:void 0);break}case sn.Kind.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,t),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push((0,an.isOutputType)(s)?s:void 0);break}case sn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case sn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,an.isObjectType)(i)?i:void 0);break}case sn.Kind.INLINE_FRAGMENT:case sn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,o=i?(0,Uw.typeFromAST)(n,i):(0,an.getNamedType)(this.getType());this._typeStack.push((0,an.isOutputType)(o)?o:void 0);break}case sn.Kind.VARIABLE_DEFINITION:{let i=(0,Uw.typeFromAST)(n,t.type);this._inputTypeStack.push((0,an.isInputType)(i)?i:void 0);break}case sn.Kind.ARGUMENT:{var r;let i,o,s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();s&&(i=s.args.find(a=>a.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,an.isInputType)(o)?o:void 0);break}case sn.Kind.LIST:{let i=(0,an.getNullableType)(this.getInputType()),o=(0,an.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,an.isInputType)(o)?o:void 0);break}case sn.Kind.OBJECT_FIELD:{let i=(0,an.getNamedType)(this.getInputType()),o,s;(0,an.isInputObjectType)(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push((0,an.isInputType)(o)?o:void 0);break}case sn.Kind.ENUM:{let i=(0,an.getNamedType)(this.getInputType()),o;(0,an.isEnumType)(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}default:}}leave(t){switch(t.kind){case sn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case sn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case sn.Kind.DIRECTIVE:this._directive=null;break;case sn.Kind.OPERATION_DEFINITION:case sn.Kind.INLINE_FRAGMENT:case sn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case sn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case sn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case sn.Kind.LIST:case sn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case sn.Kind.ENUM:this._enumValue=null;break;default:}}};kd.TypeInfo=Kg;function a1(e,t,n){let r=n.name.value;if(r===tc.SchemaMetaFieldDef.name&&e.getQueryType()===t)return tc.SchemaMetaFieldDef;if(r===tc.TypeMetaFieldDef.name&&e.getQueryType()===t)return tc.TypeMetaFieldDef;if(r===tc.TypeNameMetaFieldDef.name&&(0,an.isCompositeType)(t))return tc.TypeNameMetaFieldDef;if((0,an.isObjectType)(t)||(0,an.isInterfaceType)(t))return t.getFields()[r]}function u1(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,Mw.getEnterLeaveForKind)(t,r.kind).enter;if(i){let o=i.apply(t,n);return o!==void 0&&(e.leave(r),(0,s1.isNode)(o)&&e.enter(o)),o}},leave(...n){let r=n[0],i=(0,Mw.getEnterLeaveForKind)(t,r.kind).leave,o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}});var Md=R(ei=>{"use strict";p();m();f();Object.defineProperty(ei,"__esModule",{value:!0});ei.isConstValueNode=Yg;ei.isDefinitionNode=c1;ei.isExecutableDefinitionNode=Cw;ei.isSelectionNode=l1;ei.isTypeDefinitionNode=$w;ei.isTypeExtensionNode=Gw;ei.isTypeNode=d1;ei.isTypeSystemDefinitionNode=Vw;ei.isTypeSystemExtensionNode=jw;ei.isValueNode=Bw;var nt=Gt();function c1(e){return Cw(e)||Vw(e)||jw(e)}function Cw(e){return e.kind===nt.Kind.OPERATION_DEFINITION||e.kind===nt.Kind.FRAGMENT_DEFINITION}function l1(e){return e.kind===nt.Kind.FIELD||e.kind===nt.Kind.FRAGMENT_SPREAD||e.kind===nt.Kind.INLINE_FRAGMENT}function Bw(e){return e.kind===nt.Kind.VARIABLE||e.kind===nt.Kind.INT||e.kind===nt.Kind.FLOAT||e.kind===nt.Kind.STRING||e.kind===nt.Kind.BOOLEAN||e.kind===nt.Kind.NULL||e.kind===nt.Kind.ENUM||e.kind===nt.Kind.LIST||e.kind===nt.Kind.OBJECT}function Yg(e){return Bw(e)&&(e.kind===nt.Kind.LIST?e.values.some(Yg):e.kind===nt.Kind.OBJECT?e.fields.some(t=>Yg(t.value)):e.kind!==nt.Kind.VARIABLE)}function d1(e){return e.kind===nt.Kind.NAMED_TYPE||e.kind===nt.Kind.LIST_TYPE||e.kind===nt.Kind.NON_NULL_TYPE}function Vw(e){return e.kind===nt.Kind.SCHEMA_DEFINITION||$w(e)||e.kind===nt.Kind.DIRECTIVE_DEFINITION}function $w(e){return e.kind===nt.Kind.SCALAR_TYPE_DEFINITION||e.kind===nt.Kind.OBJECT_TYPE_DEFINITION||e.kind===nt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===nt.Kind.UNION_TYPE_DEFINITION||e.kind===nt.Kind.ENUM_TYPE_DEFINITION||e.kind===nt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function jw(e){return e.kind===nt.Kind.SCHEMA_EXTENSION||Gw(e)}function Gw(e){return e.kind===nt.Kind.SCALAR_TYPE_EXTENSION||e.kind===nt.Kind.OBJECT_TYPE_EXTENSION||e.kind===nt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===nt.Kind.UNION_TYPE_EXTENSION||e.kind===nt.Kind.ENUM_TYPE_EXTENSION||e.kind===nt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var Kw=R(Jg=>{"use strict";p();m();f();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.ExecutableDefinitionsRule=m1;var p1=Ge(),qw=Gt(),f1=Md();function m1(e){return{Document(t){for(let n of t.definitions)if(!(0,f1.isExecutableDefinitionNode)(n)){let r=n.kind===qw.Kind.SCHEMA_DEFINITION||n.kind===qw.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new p1.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var Yw=R(zg=>{"use strict";p();m();f();Object.defineProperty(zg,"__esModule",{value:!0});zg.FieldsOnCorrectTypeRule=N1;var Qw=ks(),h1=zm(),y1=Ms(),T1=Ge(),Ud=xt();function N1(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=t.name.value,s=(0,Qw.didYouMean)("to use an inline fragment on",E1(i,n,o));s===""&&(s=(0,Qw.didYouMean)(g1(n,o))),e.reportError(new T1.GraphQLError(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:t}))}}}}function E1(e,t,n){if(!(0,Ud.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(r.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:(0,Ud.isInterfaceType)(s)&&e.isSubType(s,a)?-1:(0,Ud.isInterfaceType)(a)&&e.isSubType(a,s)?1:(0,h1.naturalCompare)(s.name,a.name)}).map(s=>s.name)}function g1(e,t){if((0,Ud.isObjectType)(e)||(0,Ud.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,y1.suggestionList)(t,n)}return[]}});var Hw=R(Wg=>{"use strict";p();m();f();Object.defineProperty(Wg,"__esModule",{value:!0});Wg.FragmentsOnCompositeTypesRule=I1;var Jw=Ge(),zw=ji(),Ww=xt(),Xw=No();function I1(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,Xw.typeFromAST)(e.getSchema(),n);if(r&&!(0,Ww.isCompositeType)(r)){let i=(0,zw.print)(n);e.reportError(new Jw.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,Xw.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,Ww.isCompositeType)(n)){let r=(0,zw.print)(t.typeCondition);e.reportError(new Jw.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var rF=R(Ih=>{"use strict";p();m();f();Object.defineProperty(Ih,"__esModule",{value:!0});Ih.KnownArgumentNamesOnDirectivesRule=nF;Ih.KnownArgumentNamesRule=b1;var Zw=ks(),eF=Ms(),tF=Ge(),v1=Gt(),_1=Vs();function b1(e){return U(w({},nF(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let o=t.name.value,s=r.args.map(u=>u.name),a=(0,eF.suggestionList)(o,s);e.reportError(new tF.GraphQLError(`Unknown argument "${o}" on field "${i.name}.${r.name}".`+(0,Zw.didYouMean)(a),{nodes:t}))}}})}function nF(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():_1.specifiedDirectives;for(let s of r)t[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===v1.Kind.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(u=>u.name.value)}return{Directive(s){let a=s.name.value,u=t[a];if(s.arguments&&u)for(let c of s.arguments){let l=c.name.value;if(!u.includes(l)){let d=(0,eF.suggestionList)(l,u);e.reportError(new tF.GraphQLError(`Unknown argument "${l}" on directive "@${a}".`+(0,Zw.didYouMean)(d),{nodes:c}))}}return!1}}}});var oF=R(Zg=>{"use strict";p();m();f();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.KnownDirectivesRule=O1;var S1=dn(),Xg=yo(),iF=Ge(),Hg=zu(),An=mh(),Mt=Gt(),D1=Vs();function O1(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():D1.specifiedDirectives;for(let o of r)t[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===Mt.Kind.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,u,c){let l=o.name.value,d=t[l];if(!d){e.reportError(new iF.GraphQLError(`Unknown directive "@${l}".`,{nodes:o}));return}let h=A1(c);h&&!d.includes(h)&&e.reportError(new iF.GraphQLError(`Directive "@${l}" may not be used on ${h}.`,{nodes:o}))}}}function A1(e){let t=e[e.length-1];switch("kind"in t||(0,Xg.invariant)(!1),t.kind){case Mt.Kind.OPERATION_DEFINITION:return w1(t.operation);case Mt.Kind.FIELD:return An.DirectiveLocation.FIELD;case Mt.Kind.FRAGMENT_SPREAD:return An.DirectiveLocation.FRAGMENT_SPREAD;case Mt.Kind.INLINE_FRAGMENT:return An.DirectiveLocation.INLINE_FRAGMENT;case Mt.Kind.FRAGMENT_DEFINITION:return An.DirectiveLocation.FRAGMENT_DEFINITION;case Mt.Kind.VARIABLE_DEFINITION:return An.DirectiveLocation.VARIABLE_DEFINITION;case Mt.Kind.SCHEMA_DEFINITION:case Mt.Kind.SCHEMA_EXTENSION:return An.DirectiveLocation.SCHEMA;case Mt.Kind.SCALAR_TYPE_DEFINITION:case Mt.Kind.SCALAR_TYPE_EXTENSION:return An.DirectiveLocation.SCALAR;case Mt.Kind.OBJECT_TYPE_DEFINITION:case Mt.Kind.OBJECT_TYPE_EXTENSION:return An.DirectiveLocation.OBJECT;case Mt.Kind.FIELD_DEFINITION:return An.DirectiveLocation.FIELD_DEFINITION;case Mt.Kind.INTERFACE_TYPE_DEFINITION:case Mt.Kind.INTERFACE_TYPE_EXTENSION:return An.DirectiveLocation.INTERFACE;case Mt.Kind.UNION_TYPE_DEFINITION:case Mt.Kind.UNION_TYPE_EXTENSION:return An.DirectiveLocation.UNION;case Mt.Kind.ENUM_TYPE_DEFINITION:case Mt.Kind.ENUM_TYPE_EXTENSION:return An.DirectiveLocation.ENUM;case Mt.Kind.ENUM_VALUE_DEFINITION:return An.DirectiveLocation.ENUM_VALUE;case Mt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Mt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return An.DirectiveLocation.INPUT_OBJECT;case Mt.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,Xg.invariant)(!1),n.kind===Mt.Kind.INPUT_OBJECT_TYPE_DEFINITION?An.DirectiveLocation.INPUT_FIELD_DEFINITION:An.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,Xg.invariant)(!1,"Unexpected kind: "+(0,S1.inspect)(t.kind))}}function w1(e){switch(e){case Hg.OperationTypeNode.QUERY:return An.DirectiveLocation.QUERY;case Hg.OperationTypeNode.MUTATION:return An.DirectiveLocation.MUTATION;case Hg.OperationTypeNode.SUBSCRIPTION:return An.DirectiveLocation.SUBSCRIPTION}}});var sF=R(eI=>{"use strict";p();m();f();Object.defineProperty(eI,"__esModule",{value:!0});eI.KnownFragmentNamesRule=R1;var F1=Ge();function R1(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new F1.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var uF=R(nI=>{"use strict";p();m();f();Object.defineProperty(nI,"__esModule",{value:!0});nI.KnownTypeNamesRule=U1;var L1=ks(),P1=Ms(),x1=Ge(),tI=Md(),k1=Pd(),M1=Ad();function U1(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let o of e.getDocument().definitions)(0,tI.isTypeDefinitionNode)(o)&&(r[o.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,s,a,u,c){let l=o.name.value;if(!n[l]&&!r[l]){var d;let h=(d=c[2])!==null&&d!==void 0?d:a,N=h!=null&&C1(h);if(N&&aF.includes(l))return;let E=(0,P1.suggestionList)(l,N?aF.concat(i):i);e.reportError(new x1.GraphQLError(`Unknown type "${l}".`+(0,L1.didYouMean)(E),{nodes:o}))}}}}var aF=[...M1.specifiedScalarTypes,...k1.introspectionTypes].map(e=>e.name);function C1(e){return"kind"in e&&((0,tI.isTypeSystemDefinitionNode)(e)||(0,tI.isTypeSystemExtensionNode)(e))}});var cF=R(rI=>{"use strict";p();m();f();Object.defineProperty(rI,"__esModule",{value:!0});rI.LoneAnonymousOperationRule=$1;var B1=Ge(),V1=Gt();function $1(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===V1.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new B1.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var dF=R(iI=>{"use strict";p();m();f();Object.defineProperty(iI,"__esModule",{value:!0});iI.LoneSchemaDefinitionRule=j1;var lF=Ge();function j1(e){var t,n,r;let i=e.getSchema(),o=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new lF.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new lF.GraphQLError("Must provide only one schema definition.",{nodes:a})),++s}}}});var pF=R(oI=>{"use strict";p();m();f();Object.defineProperty(oI,"__esModule",{value:!0});oI.NoFragmentCyclesRule=q1;var G1=Ge();function q1(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;let s=o.name.value;t[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){r[s]=n.length;for(let u of a){let c=u.name.value,l=r[c];if(n.push(u),l===void 0){let d=e.getFragment(c);d&&i(d)}else{let d=n.slice(l),h=d.slice(0,-1).map(N=>'"'+N.name.value+'"').join(", ");e.reportError(new G1.GraphQLError(`Cannot spread fragment "${c}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:d}))}n.pop()}r[s]=void 0}}}});var fF=R(sI=>{"use strict";p();m();f();Object.defineProperty(sI,"__esModule",{value:!0});sI.NoUndefinedVariablesRule=Q1;var K1=Ge();function Q1(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 o=i.name.value;t[o]!==!0&&e.reportError(new K1.GraphQLError(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var mF=R(aI=>{"use strict";p();m();f();Object.defineProperty(aI,"__esModule",{value:!0});aI.NoUnusedFragmentsRule=J1;var Y1=Ge();function J1(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let o of e.getRecursivelyReferencedFragments(i))r[o.name.value]=!0;for(let i of n){let o=i.name.value;r[o]!==!0&&e.reportError(new Y1.GraphQLError(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}});var hF=R(uI=>{"use strict";p();m();f();Object.defineProperty(uI,"__esModule",{value:!0});uI.NoUnusedVariablesRule=W1;var z1=Ge();function W1(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)r[o.name.value]=!0;for(let o of t){let s=o.variable.name.value;r[s]!==!0&&e.reportError(new z1.GraphQLError(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}});var yF=R(lI=>{"use strict";p();m();f();Object.defineProperty(lI,"__esModule",{value:!0});lI.sortValueNode=cI;var X1=zm(),Eo=Gt();function cI(e){switch(e.kind){case Eo.Kind.OBJECT:return U(w({},e),{fields:H1(e.fields)});case Eo.Kind.LIST:return U(w({},e),{values:e.values.map(cI)});case Eo.Kind.INT:case Eo.Kind.FLOAT:case Eo.Kind.STRING:case Eo.Kind.BOOLEAN:case Eo.Kind.NULL:case Eo.Kind.ENUM:case Eo.Kind.VARIABLE:return e}}function H1(e){return e.map(t=>U(w({},t),{value:cI(t.value)})).sort((t,n)=>(0,X1.naturalCompare)(t.name.value,n.name.value))}});var _F=R(hI=>{"use strict";p();m();f();Object.defineProperty(hI,"__esModule",{value:!0});hI.OverlappingFieldsCanBeMergedRule=nK;var TF=dn(),Z1=Ge(),Cd=Gt(),eK=ji(),vr=xt(),tK=yF(),EF=No();function gF(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+gF(n)).join(" and "):e}function nK(e){let t=new fI,n=new Map;return{SelectionSet(r){let i=rK(e,n,t,e.getParentType(),r);for(let[[o,s],a,u]of i){let c=gF(s);e.reportError(new Z1.GraphQLError(`Fields "${o}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(u)}))}}}}function rK(e,t,n,r,i){let o=[],[s,a]=bh(e,t,r,i);if(oK(e,o,t,n,s),a.length!==0)for(let u=0;u1)for(let a=0;a({kind:Cd.Kind.OBJECT_FIELD,name:i.name,value:i.value}))};return(0,eK.print)((0,tK.sortValueNode)(r))}function dI(e,t){return(0,vr.isListType)(e)?(0,vr.isListType)(t)?dI(e.ofType,t.ofType):!0:(0,vr.isListType)(t)?!0:(0,vr.isNonNullType)(e)?(0,vr.isNonNullType)(t)?dI(e.ofType,t.ofType):!0:(0,vr.isNonNullType)(t)?!0:(0,vr.isLeafType)(e)||(0,vr.isLeafType)(t)?e!==t:!1}function bh(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),s=Object.create(null);vF(e,n,r,o,s);let a=[o,Object.keys(s)];return t.set(r,a),a}function pI(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,EF.typeFromAST)(e.getSchema(),n.typeCondition);return bh(e,t,i,n.selectionSet)}function vF(e,t,n,r,i){for(let o of n.selections)switch(o.kind){case Cd.Kind.FIELD:{let s=o.name.value,a;((0,vr.isObjectType)(t)||(0,vr.isInterfaceType)(t))&&(a=t.getFields()[s]);let u=o.alias?o.alias.value:s;r[u]||(r[u]=[]),r[u].push([t,o,a]);break}case Cd.Kind.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case Cd.Kind.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?(0,EF.typeFromAST)(e.getSchema(),s):t;vF(e,a,o.selectionSet,r,i);break}}}function sK(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var fI=class{constructor(){this._data=new Map}has(t,n,r){var i;let[o,s]=t{"use strict";p();m();f();Object.defineProperty(TI,"__esModule",{value:!0});TI.PossibleFragmentSpreadsRule=uK;var Sh=dn(),bF=Ge(),yI=xt(),SF=fh(),aK=No();function uK(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,yI.isCompositeType)(n)&&(0,yI.isCompositeType)(r)&&!(0,SF.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,Sh.inspect)(r),o=(0,Sh.inspect)(n);e.reportError(new bF.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=cK(e,n),i=e.getParentType();if(r&&i&&!(0,SF.doTypesOverlap)(e.getSchema(),r,i)){let o=(0,Sh.inspect)(i),s=(0,Sh.inspect)(r);e.reportError(new bF.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function cK(e,t){let n=e.getFragment(t);if(n){let r=(0,aK.typeFromAST)(e.getSchema(),n.typeCondition);if((0,yI.isCompositeType)(r))return r}}});var FF=R(NI=>{"use strict";p();m();f();Object.defineProperty(NI,"__esModule",{value:!0});NI.PossibleTypeExtensionsRule=fK;var lK=ks(),AF=dn(),wF=yo(),dK=Ms(),OF=Ge(),qt=Gt(),pK=Md(),nc=xt();function fK(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,pK.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let o=i.name.value,s=n[o],a=t==null?void 0:t.getType(o),u;if(s?u=mK[s.kind]:a&&(u=hK(a)),u){if(u!==i.kind){let c=yK(i.kind);e.reportError(new OF.GraphQLError(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let c=Object.keys(w(w({},n),t==null?void 0:t.getTypeMap())),l=(0,dK.suggestionList)(o,c);e.reportError(new OF.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,lK.didYouMean)(l),{nodes:i.name}))}}}var mK={[qt.Kind.SCALAR_TYPE_DEFINITION]:qt.Kind.SCALAR_TYPE_EXTENSION,[qt.Kind.OBJECT_TYPE_DEFINITION]:qt.Kind.OBJECT_TYPE_EXTENSION,[qt.Kind.INTERFACE_TYPE_DEFINITION]:qt.Kind.INTERFACE_TYPE_EXTENSION,[qt.Kind.UNION_TYPE_DEFINITION]:qt.Kind.UNION_TYPE_EXTENSION,[qt.Kind.ENUM_TYPE_DEFINITION]:qt.Kind.ENUM_TYPE_EXTENSION,[qt.Kind.INPUT_OBJECT_TYPE_DEFINITION]:qt.Kind.INPUT_OBJECT_TYPE_EXTENSION};function hK(e){if((0,nc.isScalarType)(e))return qt.Kind.SCALAR_TYPE_EXTENSION;if((0,nc.isObjectType)(e))return qt.Kind.OBJECT_TYPE_EXTENSION;if((0,nc.isInterfaceType)(e))return qt.Kind.INTERFACE_TYPE_EXTENSION;if((0,nc.isUnionType)(e))return qt.Kind.UNION_TYPE_EXTENSION;if((0,nc.isEnumType)(e))return qt.Kind.ENUM_TYPE_EXTENSION;if((0,nc.isInputObjectType)(e))return qt.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,wF.invariant)(!1,"Unexpected type: "+(0,AF.inspect)(e))}function yK(e){switch(e){case qt.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case qt.Kind.OBJECT_TYPE_EXTENSION:return"object";case qt.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case qt.Kind.UNION_TYPE_EXTENSION:return"union";case qt.Kind.ENUM_TYPE_EXTENSION:return"enum";case qt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,wF.invariant)(!1,"Unexpected kind: "+(0,AF.inspect)(e))}}});var MF=R(Dh=>{"use strict";p();m();f();Object.defineProperty(Dh,"__esModule",{value:!0});Dh.ProvidedRequiredArgumentsOnDirectivesRule=kF;Dh.ProvidedRequiredArgumentsRule=EK;var LF=dn(),RF=Xu(),PF=Ge(),xF=Gt(),TK=ji(),EI=xt(),NK=Vs();function EK(e){return U(w({},kF(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of r.args)if(!i.has(o.name)&&(0,EI.isRequiredArgument)(o)){let s=(0,LF.inspect)(o.type);e.reportError(new PF.GraphQLError(`Field "${r.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}})}function kF(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:NK.specifiedDirectives;for(let a of i)n[a.name]=(0,RF.keyMap)(a.args.filter(EI.isRequiredArgument),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===xF.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=(0,RF.keyMap)(u.filter(gK),c=>c.name.value)}return{Directive:{leave(a){let u=a.name.value,c=n[u];if(c){var l;let d=(l=a.arguments)!==null&&l!==void 0?l:[],h=new Set(d.map(N=>N.name.value));for(let[N,E]of Object.entries(c))if(!h.has(N)){let D=(0,EI.isType)(E.type)?(0,LF.inspect)(E.type):(0,TK.print)(E.type);e.reportError(new PF.GraphQLError(`Directive "@${u}" argument "${N}" of type "${D}" is required, but it was not provided.`,{nodes:a}))}}}}}}function gK(e){return e.type.kind===xF.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var VF=R(gI=>{"use strict";p();m();f();Object.defineProperty(gI,"__esModule",{value:!0});gI.ScalarLeafsRule=IK;var UF=dn(),CF=Ge(),BF=xt();function IK(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,BF.isLeafType)((0,BF.getNamedType)(n))){if(r){let i=t.name.value,o=(0,UF.inspect)(n);e.reportError(new CF.GraphQLError(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,o=(0,UF.inspect)(n);e.reportError(new CF.GraphQLError(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var vI=R(II=>{"use strict";p();m();f();Object.defineProperty(II,"__esModule",{value:!0});II.printPathArray=vK;function vK(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var $F=R(Oh=>{"use strict";p();m();f();Object.defineProperty(Oh,"__esModule",{value:!0});Oh.addPath=_K;Oh.pathToArray=bK;function _K(e,t,n){return{prev:e,key:t,typename:n}}function bK(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var jF=R(_I=>{"use strict";p();m();f();Object.defineProperty(_I,"__esModule",{value:!0});_I.coerceInputValue=RK;var SK=ks(),Ah=dn(),DK=yo(),OK=Ag(),AK=Ps(),go=$F(),wK=vI(),FK=Ms(),xa=Ge(),Bd=xt();function RK(e,t,n=LK){return Vd(e,t,n,void 0)}function LK(e,t,n){let r="Invalid value "+(0,Ah.inspect)(t);throw e.length>0&&(r+=` at "value${(0,wK.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function Vd(e,t,n,r){if((0,Bd.isNonNullType)(t)){if(e!=null)return Vd(e,t.ofType,n,r);n((0,go.pathToArray)(r),e,new xa.GraphQLError(`Expected non-nullable type "${(0,Ah.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Bd.isListType)(t)){let i=t.ofType;return(0,OK.isIterableObject)(e)?Array.from(e,(o,s)=>{let a=(0,go.addPath)(r,s,void 0);return Vd(o,i,n,a)}):[Vd(e,i,n,r)]}if((0,Bd.isInputObjectType)(t)){if(!(0,AK.isObjectLike)(e)){n((0,go.pathToArray)(r),e,new xa.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},o=t.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if((0,Bd.isNonNullType)(s.type)){let u=(0,Ah.inspect)(s.type);n((0,go.pathToArray)(r),e,new xa.GraphQLError(`Field "${s.name}" of required type "${u}" was not provided.`))}continue}i[s.name]=Vd(a,s.type,n,(0,go.addPath)(r,s.name,t.name))}for(let s of Object.keys(e))if(!o[s]){let a=(0,FK.suggestionList)(s,Object.keys(t.getFields()));n((0,go.pathToArray)(r),e,new xa.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,SK.didYouMean)(a)))}return i}if((0,Bd.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof xa.GraphQLError?n((0,go.pathToArray)(r),e,o):n((0,go.pathToArray)(r),e,new xa.GraphQLError(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return i===void 0&&n((0,go.pathToArray)(r),e,new xa.GraphQLError(`Expected type "${t.name}".`)),i}(0,DK.invariant)(!1,"Unexpected input type: "+(0,Ah.inspect)(t))}});var qF=R(bI=>{"use strict";p();m();f();Object.defineProperty(bI,"__esModule",{value:!0});bI.valueFromAST=$d;var PK=dn(),xK=yo(),kK=Xu(),rc=Gt(),ka=xt();function $d(e,t,n){if(e){if(e.kind===rc.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,ka.isNonNullType)(t)?void 0:i}if((0,ka.isNonNullType)(t))return e.kind===rc.Kind.NULL?void 0:$d(e,t.ofType,n);if(e.kind===rc.Kind.NULL)return null;if((0,ka.isListType)(t)){let r=t.ofType;if(e.kind===rc.Kind.LIST){let o=[];for(let s of e.values)if(GF(s,n)){if((0,ka.isNonNullType)(r))return;o.push(null)}else{let a=$d(s,r,n);if(a===void 0)return;o.push(a)}return o}let i=$d(e,r,n);return i===void 0?void 0:[i]}if((0,ka.isInputObjectType)(t)){if(e.kind!==rc.Kind.OBJECT)return;let r=Object.create(null),i=(0,kK.keyMap)(e.fields,o=>o.name.value);for(let o of Object.values(t.getFields())){let s=i[o.name];if(!s||GF(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if((0,ka.isNonNullType)(o.type))return;continue}let a=$d(s.value,o.type,n);if(a===void 0)return;r[o.name]=a}return r}if((0,ka.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,xK.invariant)(!1,"Unexpected input type: "+(0,PK.inspect)(t))}}function GF(e,t){return e.kind===rc.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var WF=R(jd=>{"use strict";p();m();f();Object.defineProperty(jd,"__esModule",{value:!0});jd.getArgumentValues=JF;jd.getDirectiveValues=jK;jd.getVariableValues=VK;var ic=dn(),MK=Xu(),UK=vI(),Io=Ge(),KF=Gt(),QF=ji(),oc=xt(),CK=jF(),BK=No(),YF=qF();function VK(e,t,n,r){let i=[],o=r==null?void 0:r.maxErrors;try{let s=$K(e,t,n,a=>{if(o!=null&&i.length>=o)throw new Io.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function $K(e,t,n,r){let i={};for(let o of t){let s=o.variable.name.value,a=(0,BK.typeFromAST)(e,o.type);if(!(0,oc.isInputType)(a)){let c=(0,QF.print)(o.type);r(new Io.GraphQLError(`Variable "$${s}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!zF(n,s)){if(o.defaultValue)i[s]=(0,YF.valueFromAST)(o.defaultValue,a);else if((0,oc.isNonNullType)(a)){let c=(0,ic.inspect)(a);r(new Io.GraphQLError(`Variable "$${s}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=n[s];if(u===null&&(0,oc.isNonNullType)(a)){let c=(0,ic.inspect)(a);r(new Io.GraphQLError(`Variable "$${s}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}i[s]=(0,CK.coerceInputValue)(u,a,(c,l,d)=>{let h=`Variable "$${s}" got invalid value `+(0,ic.inspect)(l);c.length>0&&(h+=` at "${s}${(0,UK.printPathArray)(c)}"`),r(new Io.GraphQLError(h+"; "+d.message,{nodes:o,originalError:d}))})}return i}function JF(e,t,n){var r;let i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],s=(0,MK.keyMap)(o,a=>a.name.value);for(let a of e.args){let u=a.name,c=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,oc.isNonNullType)(c))throw new Io.GraphQLError(`Argument "${u}" of required type "${(0,ic.inspect)(c)}" was not provided.`,{nodes:t});continue}let d=l.value,h=d.kind===KF.Kind.NULL;if(d.kind===KF.Kind.VARIABLE){let E=d.name.value;if(n==null||!zF(n,E)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,oc.isNonNullType)(c))throw new Io.GraphQLError(`Argument "${u}" of required type "${(0,ic.inspect)(c)}" was provided the variable "$${E}" which was not provided a runtime value.`,{nodes:d});continue}h=n[E]==null}if(h&&(0,oc.isNonNullType)(c))throw new Io.GraphQLError(`Argument "${u}" of non-null type "${(0,ic.inspect)(c)}" must not be null.`,{nodes:d});let N=(0,YF.valueFromAST)(d,c,n);if(N===void 0)throw new Io.GraphQLError(`Argument "${u}" has invalid value ${(0,QF.print)(d)}.`,{nodes:d});i[u]=N}return i}function jK(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(o=>o.name.value===e.name);if(i)return JF(e,i,n)}function zF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var eR=R(Fh=>{"use strict";p();m();f();Object.defineProperty(Fh,"__esModule",{value:!0});Fh.collectFields=KK;Fh.collectSubfields=QK;var SI=Gt(),GK=xt(),XF=Vs(),qK=No(),HF=WF();function KK(e,t,n,r,i){let o=new Map;return wh(e,t,n,r,i,o,new Set),o}function QK(e,t,n,r,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&wh(e,t,n,r,a.selectionSet,o,s);return o}function wh(e,t,n,r,i,o,s){for(let a of i.selections)switch(a.kind){case SI.Kind.FIELD:{if(!DI(n,a))continue;let u=YK(a),c=o.get(u);c!==void 0?c.push(a):o.set(u,[a]);break}case SI.Kind.INLINE_FRAGMENT:{if(!DI(n,a)||!ZF(e,a,r))continue;wh(e,t,n,r,a.selectionSet,o,s);break}case SI.Kind.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!DI(n,a))continue;s.add(u);let c=t[u];if(!c||!ZF(e,c,r))continue;wh(e,t,n,r,c.selectionSet,o,s);break}}}function DI(e,t){let n=(0,HF.getDirectiveValues)(XF.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,HF.getDirectiveValues)(XF.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function ZF(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,qK.typeFromAST)(e,r);return i===n?!0:(0,GK.isAbstractType)(i)?e.isSubType(i,n):!1}function YK(e){return e.alias?e.alias.value:e.name.value}});var nR=R(OI=>{"use strict";p();m();f();Object.defineProperty(OI,"__esModule",{value:!0});OI.SingleFieldSubscriptionsRule=WK;var tR=Ge(),JK=Gt(),zK=eR();function WK(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let c of s.definitions)c.kind===JK.Kind.FRAGMENT_DEFINITION&&(a[c.name.value]=c);let u=(0,zK.collectFields)(n,a,o,r,t.selectionSet);if(u.size>1){let d=[...u.values()].slice(1).flat();e.reportError(new tR.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new tR.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}});var Rh=R(AI=>{"use strict";p();m();f();Object.defineProperty(AI,"__esModule",{value:!0});AI.groupBy=XK;function XK(e,t){let n=new Map;for(let r of e){let i=t(r),o=n.get(i);o===void 0?n.set(i,[r]):o.push(r)}return n}});var rR=R(wI=>{"use strict";p();m();f();Object.defineProperty(wI,"__esModule",{value:!0});wI.UniqueArgumentDefinitionNamesRule=eQ;var HK=Rh(),ZK=Ge();function eQ(e){return{DirectiveDefinition(r){var i;let o=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let o=r.name.value,s=(i=r.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let c=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${o}.${c}`,l)}return!1}function n(r,i){let o=(0,HK.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new ZK.GraphQLError(`Argument "${r}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}});var iR=R(FI=>{"use strict";p();m();f();Object.defineProperty(FI,"__esModule",{value:!0});FI.UniqueArgumentNamesRule=rQ;var tQ=Rh(),nQ=Ge();function rQ(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],o=(0,tQ.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new nQ.GraphQLError(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}))}}});var sR=R(RI=>{"use strict";p();m();f();Object.defineProperty(RI,"__esModule",{value:!0});RI.UniqueDirectiveNamesRule=iQ;var oR=Ge();function iQ(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new oR.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new oR.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var uR=R(PI=>{"use strict";p();m();f();Object.defineProperty(PI,"__esModule",{value:!0});PI.UniqueDirectivesPerLocationRule=aQ;var oQ=Ge(),LI=Gt(),aR=Md(),sQ=Vs();function aQ(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():sQ.specifiedDirectives;for(let a of r)t[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===LI.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===LI.Kind.SCHEMA_DEFINITION||a.kind===LI.Kind.SCHEMA_EXTENSION)u=o;else if((0,aR.isTypeDefinitionNode)(a)||(0,aR.isTypeExtensionNode)(a)){let c=a.name.value;u=s[c],u===void 0&&(s[c]=u=Object.create(null))}else u=Object.create(null);for(let c of a.directives){let l=c.name.value;t[l]&&(u[l]?e.reportError(new oQ.GraphQLError(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}});var lR=R(xI=>{"use strict";p();m();f();Object.defineProperty(xI,"__esModule",{value:!0});xI.UniqueEnumValueNamesRule=cQ;var cR=Ge(),uQ=xt();function cQ(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],c=r[a];for(let l of u){let d=l.name.value,h=n[a];(0,uQ.isEnumType)(h)&&h.getValue(d)?e.reportError(new cR.GraphQLError(`Enum value "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new cR.GraphQLError(`Enum value "${a}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}});var pR=R(MI=>{"use strict";p();m();f();Object.defineProperty(MI,"__esModule",{value:!0});MI.UniqueFieldDefinitionNamesRule=lQ;var dR=Ge(),kI=xt();function lQ(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(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],c=r[a];for(let l of u){let d=l.name.value;dQ(n[a],d)?e.reportError(new dR.GraphQLError(`Field "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new dR.GraphQLError(`Field "${a}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}function dQ(e,t){return(0,kI.isObjectType)(e)||(0,kI.isInterfaceType)(e)||(0,kI.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var fR=R(UI=>{"use strict";p();m();f();Object.defineProperty(UI,"__esModule",{value:!0});UI.UniqueFragmentNamesRule=fQ;var pQ=Ge();function fQ(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new pQ.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var mR=R(CI=>{"use strict";p();m();f();Object.defineProperty(CI,"__esModule",{value:!0});CI.UniqueInputFieldNamesRule=yQ;var mQ=yo(),hQ=Ge();function yQ(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,mQ.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new hQ.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var hR=R(BI=>{"use strict";p();m();f();Object.defineProperty(BI,"__esModule",{value:!0});BI.UniqueOperationNamesRule=NQ;var TQ=Ge();function NQ(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new TQ.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var TR=R(VI=>{"use strict";p();m();f();Object.defineProperty(VI,"__esModule",{value:!0});VI.UniqueOperationTypesRule=EQ;var yR=Ge();function EQ(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(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let u of a){let c=u.operation,l=n[c];r[c]?e.reportError(new yR.GraphQLError(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new yR.GraphQLError(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):n[c]=u}return!1}}});var ER=R($I=>{"use strict";p();m();f();Object.defineProperty($I,"__esModule",{value:!0});$I.UniqueTypeNamesRule=gQ;var NR=Ge();function gQ(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new NR.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new NR.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}});var gR=R(jI=>{"use strict";p();m();f();Object.defineProperty(jI,"__esModule",{value:!0});jI.UniqueVariableNamesRule=_Q;var IQ=Rh(),vQ=Ge();function _Q(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,IQ.groupBy)(r,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new vQ.GraphQLError(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}});var IR=R(GI=>{"use strict";p();m();f();Object.defineProperty(GI,"__esModule",{value:!0});GI.ValuesOfCorrectTypeRule=OQ;var bQ=ks(),Gd=dn(),SQ=Xu(),DQ=Ms(),Ua=Ge(),Lh=ji(),Ki=xt();function OQ(e){return{ListValue(t){let n=(0,Ki.getNullableType)(e.getParentInputType());if(!(0,Ki.isListType)(n))return Ma(e,t),!1},ObjectValue(t){let n=(0,Ki.getNamedType)(e.getInputType());if(!(0,Ki.isInputObjectType)(n))return Ma(e,t),!1;let r=(0,SQ.keyMap)(t.fields,i=>i.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&(0,Ki.isRequiredInputField)(i)){let s=(0,Gd.inspect)(i.type);e.reportError(new Ua.GraphQLError(`Field "${n.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:t}))}},ObjectField(t){let n=(0,Ki.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Ki.isInputObjectType)(n)){let i=(0,DQ.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new Ua.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,bQ.didYouMean)(i),{nodes:t}))}},NullValue(t){let n=e.getInputType();(0,Ki.isNonNullType)(n)&&e.reportError(new Ua.GraphQLError(`Expected value of type "${(0,Gd.inspect)(n)}", found ${(0,Lh.print)(t)}.`,{nodes:t}))},EnumValue:t=>Ma(e,t),IntValue:t=>Ma(e,t),FloatValue:t=>Ma(e,t),StringValue:t=>Ma(e,t),BooleanValue:t=>Ma(e,t)}}function Ma(e,t){let n=e.getInputType();if(!n)return;let r=(0,Ki.getNamedType)(n);if(!(0,Ki.isLeafType)(r)){let i=(0,Gd.inspect)(n);e.reportError(new Ua.GraphQLError(`Expected value of type "${i}", found ${(0,Lh.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let o=(0,Gd.inspect)(n);e.reportError(new Ua.GraphQLError(`Expected value of type "${o}", found ${(0,Lh.print)(t)}.`,{nodes:t}))}}catch(i){let o=(0,Gd.inspect)(n);i instanceof Ua.GraphQLError?e.reportError(i):e.reportError(new Ua.GraphQLError(`Expected value of type "${o}", found ${(0,Lh.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}});var vR=R(qI=>{"use strict";p();m();f();Object.defineProperty(qI,"__esModule",{value:!0});qI.VariablesAreInputTypesRule=LQ;var AQ=Ge(),wQ=ji(),FQ=xt(),RQ=No();function LQ(e){return{VariableDefinition(t){let n=(0,RQ.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,FQ.isInputType)(n)){let r=t.variable.name.value,i=(0,wQ.print)(t.type);e.reportError(new AQ.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var DR=R(KI=>{"use strict";p();m();f();Object.defineProperty(KI,"__esModule",{value:!0});KI.VariablesInAllowedPositionRule=MQ;var _R=dn(),PQ=Ge(),xQ=Gt(),bR=xt(),SR=fh(),kQ=No();function MQ(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s}of r){let a=i.name.value,u=t[a];if(u&&o){let c=e.getSchema(),l=(0,kQ.typeFromAST)(c,u.type);if(l&&!UQ(c,l,u.defaultValue,o,s)){let d=(0,_R.inspect)(l),h=(0,_R.inspect)(o);e.reportError(new PQ.GraphQLError(`Variable "$${a}" of type "${d}" used in position expecting type "${h}".`,{nodes:[u,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function UQ(e,t,n,r,i){if((0,bR.isNonNullType)(r)&&!(0,bR.isNonNullType)(t)){if(!(n!=null&&n.kind!==xQ.Kind.NULL)&&!(i!==void 0))return!1;let a=r.ofType;return(0,SR.isTypeSubTypeOf)(e,t,a)}return(0,SR.isTypeSubTypeOf)(e,t,r)}});var xR=R(sc=>{"use strict";p();m();f();Object.defineProperty(sc,"__esModule",{value:!0});sc.specifiedSDLRules=sc.specifiedRules=void 0;var CQ=Kw(),BQ=Yw(),VQ=Hw(),OR=rF(),AR=oF(),$Q=sF(),wR=uF(),jQ=cF(),GQ=dF(),qQ=pF(),KQ=fF(),QQ=mF(),YQ=hF(),JQ=_F(),zQ=DF(),WQ=FF(),FR=MF(),XQ=VF(),HQ=nR(),ZQ=rR(),RR=iR(),eY=sR(),LR=uR(),tY=lR(),nY=pR(),rY=fR(),PR=mR(),iY=hR(),oY=TR(),sY=ER(),aY=gR(),uY=IR(),cY=vR(),lY=DR(),dY=Object.freeze([CQ.ExecutableDefinitionsRule,iY.UniqueOperationNamesRule,jQ.LoneAnonymousOperationRule,HQ.SingleFieldSubscriptionsRule,wR.KnownTypeNamesRule,VQ.FragmentsOnCompositeTypesRule,cY.VariablesAreInputTypesRule,XQ.ScalarLeafsRule,BQ.FieldsOnCorrectTypeRule,rY.UniqueFragmentNamesRule,$Q.KnownFragmentNamesRule,QQ.NoUnusedFragmentsRule,zQ.PossibleFragmentSpreadsRule,qQ.NoFragmentCyclesRule,aY.UniqueVariableNamesRule,KQ.NoUndefinedVariablesRule,YQ.NoUnusedVariablesRule,AR.KnownDirectivesRule,LR.UniqueDirectivesPerLocationRule,OR.KnownArgumentNamesRule,RR.UniqueArgumentNamesRule,uY.ValuesOfCorrectTypeRule,FR.ProvidedRequiredArgumentsRule,lY.VariablesInAllowedPositionRule,JQ.OverlappingFieldsCanBeMergedRule,PR.UniqueInputFieldNamesRule]);sc.specifiedRules=dY;var pY=Object.freeze([GQ.LoneSchemaDefinitionRule,oY.UniqueOperationTypesRule,sY.UniqueTypeNamesRule,tY.UniqueEnumValueNamesRule,nY.UniqueFieldDefinitionNamesRule,ZQ.UniqueArgumentDefinitionNamesRule,eY.UniqueDirectiveNamesRule,wR.KnownTypeNamesRule,AR.KnownDirectivesRule,LR.UniqueDirectivesPerLocationRule,WQ.PossibleTypeExtensionsRule,OR.KnownArgumentNamesOnDirectivesRule,RR.UniqueArgumentNamesRule,PR.UniqueInputFieldNamesRule,FR.ProvidedRequiredArgumentsOnDirectivesRule]);sc.specifiedSDLRules=pY});var UR=R($s=>{"use strict";p();m();f();Object.defineProperty($s,"__esModule",{value:!0});$s.ValidationContext=$s.SDLValidationContext=$s.ASTValidationContext=void 0;var kR=Gt(),fY=Nd(),MR=Qg(),qd=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===kR.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let o of i.selections)o.kind===kR.Kind.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(r[a]!==!0){r[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};$s.ASTValidationContext=qd;var QI=class extends qd{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};$s.SDLValidationContext=QI;var YI=class extends qd{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new MR.TypeInfo(this._schema);(0,fY.visit)(t,(0,MR.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}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()}};$s.ValidationContext=YI});var $R=R(ac=>{"use strict";p();m();f();Object.defineProperty(ac,"__esModule",{value:!0});ac.assertValidSDL=NY;ac.assertValidSDLExtension=EY;ac.validate=TY;ac.validateSDL=JI;var mY=Da(),hY=Ge(),Ph=Nd(),yY=xw(),CR=Qg(),BR=xR(),VR=UR();function TY(e,t,n=BR.specifiedRules,r,i=new CR.TypeInfo(e)){var o;let s=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||(0,mY.devAssert)(!1,"Must provide document."),(0,yY.assertValidSchema)(e);let a=Object.freeze({}),u=[],c=new VR.ValidationContext(e,t,i,d=>{if(u.length>=s)throw u.push(new hY.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(d)}),l=(0,Ph.visitInParallel)(n.map(d=>d(c)));try{(0,Ph.visit)(t,(0,CR.visitWithTypeInfo)(i,l))}catch(d){if(d!==a)throw d}return u}function JI(e,t,n=BR.specifiedSDLRules){let r=[],i=new VR.SDLValidationContext(e,t,s=>{r.push(s)}),o=n.map(s=>s(i));return(0,Ph.visit)(e,(0,Ph.visitInParallel)(o)),r}function NY(e){let t=JI(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}var Vg=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Yq.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function Hq(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,pn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,ir.inspect)(n)}.`,(r=Bg(t,Cg.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,pn.isObjectType)(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,ir.inspect)(i)}.`,(o=Bg(t,Cg.OperationTypeNode.MUTATION))!==null&&o!==void 0?o:i.astNode)}let s=t.getSubscriptionType();if(s&&!(0,pn.isObjectType)(s)){var a;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,ir.inspect)(s)}.`,(a=Bg(t,Cg.OperationTypeNode.SUBSCRIPTION))!==null&&a!==void 0?a:s.astNode)}}function Bg(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function Xq(e){for(let n of e.schema.getDirectives()){if(!(0,Rw.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,ir.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Pa(e,n);for(let r of n.args)if(Pa(e,r),(0,pn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,ir.inspect)(r.type)}.`,r.astNode),(0,pn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[$g(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Pa(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Zq(e){let t=o1(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,pn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,ir.inspect)(r)}.`,r.astNode);continue}(0,Jq.isIntrospectionType)(r)||Pa(e,r),(0,pn.isObjectType)(r)||(0,pn.isInterfaceType)(r)?(ww(e,r),Fw(e,r)):(0,pn.isUnionType)(r)?n1(e,r):(0,pn.isEnumType)(r)?r1(e,r):(0,pn.isInputObjectType)(r)&&(i1(e,r),t(r))}}function ww(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let s of n){if(Pa(e,s),!(0,pn.isOutputType)(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${(0,ir.inspect)(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}for(let a of s.args){let u=a.name;if(Pa(e,a),!(0,pn.isInputType)(a.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${u}:) must be Input Type but got: ${(0,ir.inspect)(a.type)}.`,(i=a.astNode)===null||i===void 0?void 0:i.type)}if((0,pn.isRequiredArgument)(a)&&a.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${u}:) cannot be deprecated.`,[$g(a.astNode),(o=a.astNode)===null||o===void 0?void 0:o.type])}}}}function Fw(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,pn.isInterfaceType)(r)){e.reportError(`Type ${(0,ir.inspect)(t)} must only implement Interface types, it cannot implement ${(0,ir.inspect)(r)}.`,xd(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,xd(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,xd(t,r));continue}n[r.name]=!0,t1(e,t,r),e1(e,t,r)}}function e1(e,t,n){let r=t.getFields();for(let u of Object.values(n.getFields())){let c=u.name,l=r[c];if(!l){e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[u.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,Aw.isTypeSubTypeOf)(e.schema,l.type,u.type)){var i,o;e.reportError(`Interface field ${n.name}.${c} expects type ${(0,ir.inspect)(u.type)} but ${t.name}.${c} is type ${(0,ir.inspect)(l.type)}.`,[(i=u.astNode)===null||i===void 0?void 0:i.type,(o=l.astNode)===null||o===void 0?void 0:o.type])}for(let d of u.args){let h=d.name,N=l.args.find(E=>E.name===h);if(!N){e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expected but ${t.name}.${c} does not provide it.`,[d.astNode,l.astNode]);continue}if(!(0,Aw.isEqualType)(d.type,N.type)){var s,a;e.reportError(`Interface field argument ${n.name}.${c}(${h}:) expects type ${(0,ir.inspect)(d.type)} but ${t.name}.${c}(${h}:) is type ${(0,ir.inspect)(N.type)}.`,[(s=d.astNode)===null||s===void 0?void 0:s.type,(a=N.astNode)===null||a===void 0?void 0:a.type])}}for(let d of l.args){let h=d.name;!u.args.find(E=>E.name===h)&&(0,pn.isRequiredArgument)(d)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${h} that is missing from the Interface field ${n.name}.${c}.`,[d.astNode,u.astNode])}}}function t1(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}.`,[...xd(n,i),...xd(t,n)])}function n1(e,t){let n=t.getTypes();n.length===0&&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.`,Lw(t,i.name));continue}r[i.name]=!0,(0,pn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,ir.inspect)(i)}.`,Lw(t,String(i)))}}function r1(e,t){let n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(let r of n)Pa(e,r)}function i1(e,t){let n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(let o of n){if(Pa(e,o),!(0,pn.isInputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${(0,ir.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if((0,pn.isRequiredInputField)(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[$g(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}}}function o1(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;let s=Object.values(o.getFields());for(let a of s)if((0,pn.isNonNullType)(a.type)&&(0,pn.isInputObjectType)(a.type.ofType)){let u=a.type.ofType,c=r[u.name];if(n.push(a),c===void 0)i(u);else{let l=n.slice(c),d=l.map(h=>h.name).join(".");e.reportError(`Cannot reference Input Object "${u.name}" within itself through a series of non-null fields: "${d}".`,l.map(h=>h.astNode))}n.pop()}r[o.name]=void 0}}function xd(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function Lw(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function $g(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Rw.GraphQLDeprecatedDirective.name)}});var Eo=L(qg=>{"use strict";p();m();f();Object.defineProperty(qg,"__esModule",{value:!0});qg.typeFromAST=Gg;var jg=Gt(),kw=xt();function Gg(e,t){switch(t.kind){case jg.Kind.LIST_TYPE:{let n=Gg(e,t.type);return n&&new kw.GraphQLList(n)}case jg.Kind.NON_NULL_TYPE:{let n=Gg(e,t.type);return n&&new kw.GraphQLNonNull(n)}case jg.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var Qg=L(kd=>{"use strict";p();m();f();Object.defineProperty(kd,"__esModule",{value:!0});kd.TypeInfo=void 0;kd.visitWithTypeInfo=u1;var s1=zu(),sn=Gt(),Mw=Nd(),an=xt(),tc=Pd(),Uw=Eo(),Kg=class{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r!=null?r:a1,n&&((0,an.isInputType)(n)&&this._inputTypeStack.push(n),(0,an.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,an.isOutputType)(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){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(t){let n=this._schema;switch(t.kind){case sn.Kind.SELECTION_SET:{let i=(0,an.getNamedType)(this.getType());this._parentTypeStack.push((0,an.isCompositeType)(i)?i:void 0);break}case sn.Kind.FIELD:{let i=this.getParentType(),o,s;i&&(o=this._getFieldDef(n,i,t),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push((0,an.isOutputType)(s)?s:void 0);break}case sn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case sn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,an.isObjectType)(i)?i:void 0);break}case sn.Kind.INLINE_FRAGMENT:case sn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,o=i?(0,Uw.typeFromAST)(n,i):(0,an.getNamedType)(this.getType());this._typeStack.push((0,an.isOutputType)(o)?o:void 0);break}case sn.Kind.VARIABLE_DEFINITION:{let i=(0,Uw.typeFromAST)(n,t.type);this._inputTypeStack.push((0,an.isInputType)(i)?i:void 0);break}case sn.Kind.ARGUMENT:{var r;let i,o,s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();s&&(i=s.args.find(a=>a.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,an.isInputType)(o)?o:void 0);break}case sn.Kind.LIST:{let i=(0,an.getNullableType)(this.getInputType()),o=(0,an.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,an.isInputType)(o)?o:void 0);break}case sn.Kind.OBJECT_FIELD:{let i=(0,an.getNamedType)(this.getInputType()),o,s;(0,an.isInputObjectType)(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push((0,an.isInputType)(o)?o:void 0);break}case sn.Kind.ENUM:{let i=(0,an.getNamedType)(this.getInputType()),o;(0,an.isEnumType)(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}default:}}leave(t){switch(t.kind){case sn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case sn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case sn.Kind.DIRECTIVE:this._directive=null;break;case sn.Kind.OPERATION_DEFINITION:case sn.Kind.INLINE_FRAGMENT:case sn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case sn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case sn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case sn.Kind.LIST:case sn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case sn.Kind.ENUM:this._enumValue=null;break;default:}}};kd.TypeInfo=Kg;function a1(e,t,n){let r=n.name.value;if(r===tc.SchemaMetaFieldDef.name&&e.getQueryType()===t)return tc.SchemaMetaFieldDef;if(r===tc.TypeMetaFieldDef.name&&e.getQueryType()===t)return tc.TypeMetaFieldDef;if(r===tc.TypeNameMetaFieldDef.name&&(0,an.isCompositeType)(t))return tc.TypeNameMetaFieldDef;if((0,an.isObjectType)(t)||(0,an.isInterfaceType)(t))return t.getFields()[r]}function u1(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,Mw.getEnterLeaveForKind)(t,r.kind).enter;if(i){let o=i.apply(t,n);return o!==void 0&&(e.leave(r),(0,s1.isNode)(o)&&e.enter(o)),o}},leave(...n){let r=n[0],i=(0,Mw.getEnterLeaveForKind)(t,r.kind).leave,o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}});var Md=L(ei=>{"use strict";p();m();f();Object.defineProperty(ei,"__esModule",{value:!0});ei.isConstValueNode=Yg;ei.isDefinitionNode=c1;ei.isExecutableDefinitionNode=Cw;ei.isSelectionNode=l1;ei.isTypeDefinitionNode=$w;ei.isTypeExtensionNode=Gw;ei.isTypeNode=d1;ei.isTypeSystemDefinitionNode=Vw;ei.isTypeSystemExtensionNode=jw;ei.isValueNode=Bw;var nt=Gt();function c1(e){return Cw(e)||Vw(e)||jw(e)}function Cw(e){return e.kind===nt.Kind.OPERATION_DEFINITION||e.kind===nt.Kind.FRAGMENT_DEFINITION}function l1(e){return e.kind===nt.Kind.FIELD||e.kind===nt.Kind.FRAGMENT_SPREAD||e.kind===nt.Kind.INLINE_FRAGMENT}function Bw(e){return e.kind===nt.Kind.VARIABLE||e.kind===nt.Kind.INT||e.kind===nt.Kind.FLOAT||e.kind===nt.Kind.STRING||e.kind===nt.Kind.BOOLEAN||e.kind===nt.Kind.NULL||e.kind===nt.Kind.ENUM||e.kind===nt.Kind.LIST||e.kind===nt.Kind.OBJECT}function Yg(e){return Bw(e)&&(e.kind===nt.Kind.LIST?e.values.some(Yg):e.kind===nt.Kind.OBJECT?e.fields.some(t=>Yg(t.value)):e.kind!==nt.Kind.VARIABLE)}function d1(e){return e.kind===nt.Kind.NAMED_TYPE||e.kind===nt.Kind.LIST_TYPE||e.kind===nt.Kind.NON_NULL_TYPE}function Vw(e){return e.kind===nt.Kind.SCHEMA_DEFINITION||$w(e)||e.kind===nt.Kind.DIRECTIVE_DEFINITION}function $w(e){return e.kind===nt.Kind.SCALAR_TYPE_DEFINITION||e.kind===nt.Kind.OBJECT_TYPE_DEFINITION||e.kind===nt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===nt.Kind.UNION_TYPE_DEFINITION||e.kind===nt.Kind.ENUM_TYPE_DEFINITION||e.kind===nt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function jw(e){return e.kind===nt.Kind.SCHEMA_EXTENSION||Gw(e)}function Gw(e){return e.kind===nt.Kind.SCALAR_TYPE_EXTENSION||e.kind===nt.Kind.OBJECT_TYPE_EXTENSION||e.kind===nt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===nt.Kind.UNION_TYPE_EXTENSION||e.kind===nt.Kind.ENUM_TYPE_EXTENSION||e.kind===nt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var Kw=L(Jg=>{"use strict";p();m();f();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.ExecutableDefinitionsRule=m1;var p1=qe(),qw=Gt(),f1=Md();function m1(e){return{Document(t){for(let n of t.definitions)if(!(0,f1.isExecutableDefinitionNode)(n)){let r=n.kind===qw.Kind.SCHEMA_DEFINITION||n.kind===qw.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new p1.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var Yw=L(zg=>{"use strict";p();m();f();Object.defineProperty(zg,"__esModule",{value:!0});zg.FieldsOnCorrectTypeRule=N1;var Qw=ks(),h1=zm(),y1=Ms(),T1=qe(),Ud=xt();function N1(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),o=t.name.value,s=(0,Qw.didYouMean)("to use an inline fragment on",E1(i,n,o));s===""&&(s=(0,Qw.didYouMean)(g1(n,o))),e.reportError(new T1.GraphQLError(`Cannot query field "${o}" on type "${n.name}".`+s,{nodes:t}))}}}}function E1(e,t,n){if(!(0,Ud.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(let a of s.getInterfaces()){var o;a.getFields()[n]&&(r.add(a),i[a.name]=((o=i[a.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((s,a)=>{let u=i[a.name]-i[s.name];return u!==0?u:(0,Ud.isInterfaceType)(s)&&e.isSubType(s,a)?-1:(0,Ud.isInterfaceType)(a)&&e.isSubType(a,s)?1:(0,h1.naturalCompare)(s.name,a.name)}).map(s=>s.name)}function g1(e,t){if((0,Ud.isObjectType)(e)||(0,Ud.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,y1.suggestionList)(t,n)}return[]}});var Xw=L(Wg=>{"use strict";p();m();f();Object.defineProperty(Wg,"__esModule",{value:!0});Wg.FragmentsOnCompositeTypesRule=I1;var Jw=qe(),zw=ji(),Ww=xt(),Hw=Eo();function I1(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,Hw.typeFromAST)(e.getSchema(),n);if(r&&!(0,Ww.isCompositeType)(r)){let i=(0,zw.print)(n);e.reportError(new Jw.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,Hw.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,Ww.isCompositeType)(n)){let r=(0,zw.print)(t.typeCondition);e.reportError(new Jw.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var rF=L(Ih=>{"use strict";p();m();f();Object.defineProperty(Ih,"__esModule",{value:!0});Ih.KnownArgumentNamesOnDirectivesRule=nF;Ih.KnownArgumentNamesRule=b1;var Zw=ks(),eF=Ms(),tF=qe(),v1=Gt(),_1=Vs();function b1(e){return U(w({},nF(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let o=t.name.value,s=r.args.map(u=>u.name),a=(0,eF.suggestionList)(o,s);e.reportError(new tF.GraphQLError(`Unknown argument "${o}" on field "${i.name}.${r.name}".`+(0,Zw.didYouMean)(a),{nodes:t}))}}})}function nF(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():_1.specifiedDirectives;for(let s of r)t[s.name]=s.args.map(a=>a.name);let i=e.getDocument().definitions;for(let s of i)if(s.kind===v1.Kind.DIRECTIVE_DEFINITION){var o;let a=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=a.map(u=>u.name.value)}return{Directive(s){let a=s.name.value,u=t[a];if(s.arguments&&u)for(let c of s.arguments){let l=c.name.value;if(!u.includes(l)){let d=(0,eF.suggestionList)(l,u);e.reportError(new tF.GraphQLError(`Unknown argument "${l}" on directive "@${a}".`+(0,Zw.didYouMean)(d),{nodes:c}))}}return!1}}}});var oF=L(Zg=>{"use strict";p();m();f();Object.defineProperty(Zg,"__esModule",{value:!0});Zg.KnownDirectivesRule=O1;var S1=dn(),Hg=To(),iF=qe(),Xg=zu(),An=mh(),Mt=Gt(),D1=Vs();function O1(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():D1.specifiedDirectives;for(let o of r)t[o.name]=o.locations;let i=e.getDocument().definitions;for(let o of i)o.kind===Mt.Kind.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,a,u,c){let l=o.name.value,d=t[l];if(!d){e.reportError(new iF.GraphQLError(`Unknown directive "@${l}".`,{nodes:o}));return}let h=A1(c);h&&!d.includes(h)&&e.reportError(new iF.GraphQLError(`Directive "@${l}" may not be used on ${h}.`,{nodes:o}))}}}function A1(e){let t=e[e.length-1];switch("kind"in t||(0,Hg.invariant)(!1),t.kind){case Mt.Kind.OPERATION_DEFINITION:return w1(t.operation);case Mt.Kind.FIELD:return An.DirectiveLocation.FIELD;case Mt.Kind.FRAGMENT_SPREAD:return An.DirectiveLocation.FRAGMENT_SPREAD;case Mt.Kind.INLINE_FRAGMENT:return An.DirectiveLocation.INLINE_FRAGMENT;case Mt.Kind.FRAGMENT_DEFINITION:return An.DirectiveLocation.FRAGMENT_DEFINITION;case Mt.Kind.VARIABLE_DEFINITION:return An.DirectiveLocation.VARIABLE_DEFINITION;case Mt.Kind.SCHEMA_DEFINITION:case Mt.Kind.SCHEMA_EXTENSION:return An.DirectiveLocation.SCHEMA;case Mt.Kind.SCALAR_TYPE_DEFINITION:case Mt.Kind.SCALAR_TYPE_EXTENSION:return An.DirectiveLocation.SCALAR;case Mt.Kind.OBJECT_TYPE_DEFINITION:case Mt.Kind.OBJECT_TYPE_EXTENSION:return An.DirectiveLocation.OBJECT;case Mt.Kind.FIELD_DEFINITION:return An.DirectiveLocation.FIELD_DEFINITION;case Mt.Kind.INTERFACE_TYPE_DEFINITION:case Mt.Kind.INTERFACE_TYPE_EXTENSION:return An.DirectiveLocation.INTERFACE;case Mt.Kind.UNION_TYPE_DEFINITION:case Mt.Kind.UNION_TYPE_EXTENSION:return An.DirectiveLocation.UNION;case Mt.Kind.ENUM_TYPE_DEFINITION:case Mt.Kind.ENUM_TYPE_EXTENSION:return An.DirectiveLocation.ENUM;case Mt.Kind.ENUM_VALUE_DEFINITION:return An.DirectiveLocation.ENUM_VALUE;case Mt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Mt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return An.DirectiveLocation.INPUT_OBJECT;case Mt.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,Hg.invariant)(!1),n.kind===Mt.Kind.INPUT_OBJECT_TYPE_DEFINITION?An.DirectiveLocation.INPUT_FIELD_DEFINITION:An.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,Hg.invariant)(!1,"Unexpected kind: "+(0,S1.inspect)(t.kind))}}function w1(e){switch(e){case Xg.OperationTypeNode.QUERY:return An.DirectiveLocation.QUERY;case Xg.OperationTypeNode.MUTATION:return An.DirectiveLocation.MUTATION;case Xg.OperationTypeNode.SUBSCRIPTION:return An.DirectiveLocation.SUBSCRIPTION}}});var sF=L(eI=>{"use strict";p();m();f();Object.defineProperty(eI,"__esModule",{value:!0});eI.KnownFragmentNamesRule=L1;var F1=qe();function L1(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new F1.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var uF=L(nI=>{"use strict";p();m();f();Object.defineProperty(nI,"__esModule",{value:!0});nI.KnownTypeNamesRule=U1;var R1=ks(),P1=Ms(),x1=qe(),tI=Md(),k1=Pd(),M1=Ad();function U1(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let o of e.getDocument().definitions)(0,tI.isTypeDefinitionNode)(o)&&(r[o.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,s,a,u,c){let l=o.name.value;if(!n[l]&&!r[l]){var d;let h=(d=c[2])!==null&&d!==void 0?d:a,N=h!=null&&C1(h);if(N&&aF.includes(l))return;let E=(0,P1.suggestionList)(l,N?aF.concat(i):i);e.reportError(new x1.GraphQLError(`Unknown type "${l}".`+(0,R1.didYouMean)(E),{nodes:o}))}}}}var aF=[...M1.specifiedScalarTypes,...k1.introspectionTypes].map(e=>e.name);function C1(e){return"kind"in e&&((0,tI.isTypeSystemDefinitionNode)(e)||(0,tI.isTypeSystemExtensionNode)(e))}});var cF=L(rI=>{"use strict";p();m();f();Object.defineProperty(rI,"__esModule",{value:!0});rI.LoneAnonymousOperationRule=$1;var B1=qe(),V1=Gt();function $1(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===V1.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new B1.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var dF=L(iI=>{"use strict";p();m();f();Object.defineProperty(iI,"__esModule",{value:!0});iI.LoneSchemaDefinitionRule=j1;var lF=qe();function j1(e){var t,n,r;let i=e.getSchema(),o=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType(),s=0;return{SchemaDefinition(a){if(o){e.reportError(new lF.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:a}));return}s>0&&e.reportError(new lF.GraphQLError("Must provide only one schema definition.",{nodes:a})),++s}}}});var pF=L(oI=>{"use strict";p();m();f();Object.defineProperty(oI,"__esModule",{value:!0});oI.NoFragmentCyclesRule=q1;var G1=qe();function q1(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;let s=o.name.value;t[s]=!0;let a=e.getFragmentSpreads(o.selectionSet);if(a.length!==0){r[s]=n.length;for(let u of a){let c=u.name.value,l=r[c];if(n.push(u),l===void 0){let d=e.getFragment(c);d&&i(d)}else{let d=n.slice(l),h=d.slice(0,-1).map(N=>'"'+N.name.value+'"').join(", ");e.reportError(new G1.GraphQLError(`Cannot spread fragment "${c}" within itself`+(h!==""?` via ${h}.`:"."),{nodes:d}))}n.pop()}r[s]=void 0}}}});var fF=L(sI=>{"use strict";p();m();f();Object.defineProperty(sI,"__esModule",{value:!0});sI.NoUndefinedVariablesRule=Q1;var K1=qe();function Q1(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 o=i.name.value;t[o]!==!0&&e.reportError(new K1.GraphQLError(n.name?`Variable "$${o}" is not defined by operation "${n.name.value}".`:`Variable "$${o}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var mF=L(aI=>{"use strict";p();m();f();Object.defineProperty(aI,"__esModule",{value:!0});aI.NoUnusedFragmentsRule=J1;var Y1=qe();function J1(e){let t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){let r=Object.create(null);for(let i of t)for(let o of e.getRecursivelyReferencedFragments(i))r[o.name.value]=!0;for(let i of n){let o=i.name.value;r[o]!==!0&&e.reportError(new Y1.GraphQLError(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}});var hF=L(uI=>{"use strict";p();m();f();Object.defineProperty(uI,"__esModule",{value:!0});uI.NoUnusedVariablesRule=W1;var z1=qe();function W1(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:o}of i)r[o.name.value]=!0;for(let o of t){let s=o.variable.name.value;r[s]!==!0&&e.reportError(new z1.GraphQLError(n.name?`Variable "$${s}" is never used in operation "${n.name.value}".`:`Variable "$${s}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}});var yF=L(lI=>{"use strict";p();m();f();Object.defineProperty(lI,"__esModule",{value:!0});lI.sortValueNode=cI;var H1=zm(),go=Gt();function cI(e){switch(e.kind){case go.Kind.OBJECT:return U(w({},e),{fields:X1(e.fields)});case go.Kind.LIST:return U(w({},e),{values:e.values.map(cI)});case go.Kind.INT:case go.Kind.FLOAT:case go.Kind.STRING:case go.Kind.BOOLEAN:case go.Kind.NULL:case go.Kind.ENUM:case go.Kind.VARIABLE:return e}}function X1(e){return e.map(t=>U(w({},t),{value:cI(t.value)})).sort((t,n)=>(0,H1.naturalCompare)(t.name.value,n.name.value))}});var _F=L(hI=>{"use strict";p();m();f();Object.defineProperty(hI,"__esModule",{value:!0});hI.OverlappingFieldsCanBeMergedRule=nK;var TF=dn(),Z1=qe(),Cd=Gt(),eK=ji(),vr=xt(),tK=yF(),EF=Eo();function gF(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+gF(n)).join(" and "):e}function nK(e){let t=new fI,n=new Map;return{SelectionSet(r){let i=rK(e,n,t,e.getParentType(),r);for(let[[o,s],a,u]of i){let c=gF(s);e.reportError(new Z1.GraphQLError(`Fields "${o}" conflict because ${c}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:a.concat(u)}))}}}}function rK(e,t,n,r,i){let o=[],[s,a]=bh(e,t,r,i);if(oK(e,o,t,n,s),a.length!==0)for(let u=0;u1)for(let a=0;a({kind:Cd.Kind.OBJECT_FIELD,name:i.name,value:i.value}))};return(0,eK.print)((0,tK.sortValueNode)(r))}function dI(e,t){return(0,vr.isListType)(e)?(0,vr.isListType)(t)?dI(e.ofType,t.ofType):!0:(0,vr.isListType)(t)?!0:(0,vr.isNonNullType)(e)?(0,vr.isNonNullType)(t)?dI(e.ofType,t.ofType):!0:(0,vr.isNonNullType)(t)?!0:(0,vr.isLeafType)(e)||(0,vr.isLeafType)(t)?e!==t:!1}function bh(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),s=Object.create(null);vF(e,n,r,o,s);let a=[o,Object.keys(s)];return t.set(r,a),a}function pI(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,EF.typeFromAST)(e.getSchema(),n.typeCondition);return bh(e,t,i,n.selectionSet)}function vF(e,t,n,r,i){for(let o of n.selections)switch(o.kind){case Cd.Kind.FIELD:{let s=o.name.value,a;((0,vr.isObjectType)(t)||(0,vr.isInterfaceType)(t))&&(a=t.getFields()[s]);let u=o.alias?o.alias.value:s;r[u]||(r[u]=[]),r[u].push([t,o,a]);break}case Cd.Kind.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case Cd.Kind.INLINE_FRAGMENT:{let s=o.typeCondition,a=s?(0,EF.typeFromAST)(e.getSchema(),s):t;vF(e,a,o.selectionSet,r,i);break}}}function sK(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}var fI=class{constructor(){this._data=new Map}has(t,n,r){var i;let[o,s]=t{"use strict";p();m();f();Object.defineProperty(TI,"__esModule",{value:!0});TI.PossibleFragmentSpreadsRule=uK;var Sh=dn(),bF=qe(),yI=xt(),SF=fh(),aK=Eo();function uK(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,yI.isCompositeType)(n)&&(0,yI.isCompositeType)(r)&&!(0,SF.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,Sh.inspect)(r),o=(0,Sh.inspect)(n);e.reportError(new bF.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${o}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=cK(e,n),i=e.getParentType();if(r&&i&&!(0,SF.doTypesOverlap)(e.getSchema(),r,i)){let o=(0,Sh.inspect)(i),s=(0,Sh.inspect)(r);e.reportError(new bF.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${s}".`,{nodes:t}))}}}}function cK(e,t){let n=e.getFragment(t);if(n){let r=(0,aK.typeFromAST)(e.getSchema(),n.typeCondition);if((0,yI.isCompositeType)(r))return r}}});var FF=L(NI=>{"use strict";p();m();f();Object.defineProperty(NI,"__esModule",{value:!0});NI.PossibleTypeExtensionsRule=fK;var lK=ks(),AF=dn(),wF=To(),dK=Ms(),OF=qe(),qt=Gt(),pK=Md(),nc=xt();function fK(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,pK.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let o=i.name.value,s=n[o],a=t==null?void 0:t.getType(o),u;if(s?u=mK[s.kind]:a&&(u=hK(a)),u){if(u!==i.kind){let c=yK(i.kind);e.reportError(new OF.GraphQLError(`Cannot extend non-${c} type "${o}".`,{nodes:s?[s,i]:i}))}}else{let c=Object.keys(w(w({},n),t==null?void 0:t.getTypeMap())),l=(0,dK.suggestionList)(o,c);e.reportError(new OF.GraphQLError(`Cannot extend type "${o}" because it is not defined.`+(0,lK.didYouMean)(l),{nodes:i.name}))}}}var mK={[qt.Kind.SCALAR_TYPE_DEFINITION]:qt.Kind.SCALAR_TYPE_EXTENSION,[qt.Kind.OBJECT_TYPE_DEFINITION]:qt.Kind.OBJECT_TYPE_EXTENSION,[qt.Kind.INTERFACE_TYPE_DEFINITION]:qt.Kind.INTERFACE_TYPE_EXTENSION,[qt.Kind.UNION_TYPE_DEFINITION]:qt.Kind.UNION_TYPE_EXTENSION,[qt.Kind.ENUM_TYPE_DEFINITION]:qt.Kind.ENUM_TYPE_EXTENSION,[qt.Kind.INPUT_OBJECT_TYPE_DEFINITION]:qt.Kind.INPUT_OBJECT_TYPE_EXTENSION};function hK(e){if((0,nc.isScalarType)(e))return qt.Kind.SCALAR_TYPE_EXTENSION;if((0,nc.isObjectType)(e))return qt.Kind.OBJECT_TYPE_EXTENSION;if((0,nc.isInterfaceType)(e))return qt.Kind.INTERFACE_TYPE_EXTENSION;if((0,nc.isUnionType)(e))return qt.Kind.UNION_TYPE_EXTENSION;if((0,nc.isEnumType)(e))return qt.Kind.ENUM_TYPE_EXTENSION;if((0,nc.isInputObjectType)(e))return qt.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,wF.invariant)(!1,"Unexpected type: "+(0,AF.inspect)(e))}function yK(e){switch(e){case qt.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case qt.Kind.OBJECT_TYPE_EXTENSION:return"object";case qt.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case qt.Kind.UNION_TYPE_EXTENSION:return"union";case qt.Kind.ENUM_TYPE_EXTENSION:return"enum";case qt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,wF.invariant)(!1,"Unexpected kind: "+(0,AF.inspect)(e))}}});var MF=L(Dh=>{"use strict";p();m();f();Object.defineProperty(Dh,"__esModule",{value:!0});Dh.ProvidedRequiredArgumentsOnDirectivesRule=kF;Dh.ProvidedRequiredArgumentsRule=EK;var RF=dn(),LF=Hu(),PF=qe(),xF=Gt(),TK=ji(),EI=xt(),NK=Vs();function EK(e){return U(w({},kF(e)),{Field:{leave(t){var n;let r=e.getFieldDef();if(!r)return!1;let i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(let o of r.args)if(!i.has(o.name)&&(0,EI.isRequiredArgument)(o)){let s=(0,RF.inspect)(o.type);e.reportError(new PF.GraphQLError(`Field "${r.name}" argument "${o.name}" of type "${s}" is required, but it was not provided.`,{nodes:t}))}}}})}function kF(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:NK.specifiedDirectives;for(let a of i)n[a.name]=(0,LF.keyMap)(a.args.filter(EI.isRequiredArgument),u=>u.name);let o=e.getDocument().definitions;for(let a of o)if(a.kind===xF.Kind.DIRECTIVE_DEFINITION){var s;let u=(s=a.arguments)!==null&&s!==void 0?s:[];n[a.name.value]=(0,LF.keyMap)(u.filter(gK),c=>c.name.value)}return{Directive:{leave(a){let u=a.name.value,c=n[u];if(c){var l;let d=(l=a.arguments)!==null&&l!==void 0?l:[],h=new Set(d.map(N=>N.name.value));for(let[N,E]of Object.entries(c))if(!h.has(N)){let D=(0,EI.isType)(E.type)?(0,RF.inspect)(E.type):(0,TK.print)(E.type);e.reportError(new PF.GraphQLError(`Directive "@${u}" argument "${N}" of type "${D}" is required, but it was not provided.`,{nodes:a}))}}}}}}function gK(e){return e.type.kind===xF.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var VF=L(gI=>{"use strict";p();m();f();Object.defineProperty(gI,"__esModule",{value:!0});gI.ScalarLeafsRule=IK;var UF=dn(),CF=qe(),BF=xt();function IK(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,BF.isLeafType)((0,BF.getNamedType)(n))){if(r){let i=t.name.value,o=(0,UF.inspect)(n);e.reportError(new CF.GraphQLError(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,o=(0,UF.inspect)(n);e.reportError(new CF.GraphQLError(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var vI=L(II=>{"use strict";p();m();f();Object.defineProperty(II,"__esModule",{value:!0});II.printPathArray=vK;function vK(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var $F=L(Oh=>{"use strict";p();m();f();Object.defineProperty(Oh,"__esModule",{value:!0});Oh.addPath=_K;Oh.pathToArray=bK;function _K(e,t,n){return{prev:e,key:t,typename:n}}function bK(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var jF=L(_I=>{"use strict";p();m();f();Object.defineProperty(_I,"__esModule",{value:!0});_I.coerceInputValue=LK;var SK=ks(),Ah=dn(),DK=To(),OK=Ag(),AK=Ps(),Io=$F(),wK=vI(),FK=Ms(),xa=qe(),Bd=xt();function LK(e,t,n=RK){return Vd(e,t,n,void 0)}function RK(e,t,n){let r="Invalid value "+(0,Ah.inspect)(t);throw e.length>0&&(r+=` at "value${(0,wK.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function Vd(e,t,n,r){if((0,Bd.isNonNullType)(t)){if(e!=null)return Vd(e,t.ofType,n,r);n((0,Io.pathToArray)(r),e,new xa.GraphQLError(`Expected non-nullable type "${(0,Ah.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Bd.isListType)(t)){let i=t.ofType;return(0,OK.isIterableObject)(e)?Array.from(e,(o,s)=>{let a=(0,Io.addPath)(r,s,void 0);return Vd(o,i,n,a)}):[Vd(e,i,n,r)]}if((0,Bd.isInputObjectType)(t)){if(!(0,AK.isObjectLike)(e)){n((0,Io.pathToArray)(r),e,new xa.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},o=t.getFields();for(let s of Object.values(o)){let a=e[s.name];if(a===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if((0,Bd.isNonNullType)(s.type)){let u=(0,Ah.inspect)(s.type);n((0,Io.pathToArray)(r),e,new xa.GraphQLError(`Field "${s.name}" of required type "${u}" was not provided.`))}continue}i[s.name]=Vd(a,s.type,n,(0,Io.addPath)(r,s.name,t.name))}for(let s of Object.keys(e))if(!o[s]){let a=(0,FK.suggestionList)(s,Object.keys(t.getFields()));n((0,Io.pathToArray)(r),e,new xa.GraphQLError(`Field "${s}" is not defined by type "${t.name}".`+(0,SK.didYouMean)(a)))}return i}if((0,Bd.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof xa.GraphQLError?n((0,Io.pathToArray)(r),e,o):n((0,Io.pathToArray)(r),e,new xa.GraphQLError(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return i===void 0&&n((0,Io.pathToArray)(r),e,new xa.GraphQLError(`Expected type "${t.name}".`)),i}(0,DK.invariant)(!1,"Unexpected input type: "+(0,Ah.inspect)(t))}});var qF=L(bI=>{"use strict";p();m();f();Object.defineProperty(bI,"__esModule",{value:!0});bI.valueFromAST=$d;var PK=dn(),xK=To(),kK=Hu(),rc=Gt(),ka=xt();function $d(e,t,n){if(e){if(e.kind===rc.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,ka.isNonNullType)(t)?void 0:i}if((0,ka.isNonNullType)(t))return e.kind===rc.Kind.NULL?void 0:$d(e,t.ofType,n);if(e.kind===rc.Kind.NULL)return null;if((0,ka.isListType)(t)){let r=t.ofType;if(e.kind===rc.Kind.LIST){let o=[];for(let s of e.values)if(GF(s,n)){if((0,ka.isNonNullType)(r))return;o.push(null)}else{let a=$d(s,r,n);if(a===void 0)return;o.push(a)}return o}let i=$d(e,r,n);return i===void 0?void 0:[i]}if((0,ka.isInputObjectType)(t)){if(e.kind!==rc.Kind.OBJECT)return;let r=Object.create(null),i=(0,kK.keyMap)(e.fields,o=>o.name.value);for(let o of Object.values(t.getFields())){let s=i[o.name];if(!s||GF(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if((0,ka.isNonNullType)(o.type))return;continue}let a=$d(s.value,o.type,n);if(a===void 0)return;r[o.name]=a}return r}if((0,ka.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,xK.invariant)(!1,"Unexpected input type: "+(0,PK.inspect)(t))}}function GF(e,t){return e.kind===rc.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var WF=L(jd=>{"use strict";p();m();f();Object.defineProperty(jd,"__esModule",{value:!0});jd.getArgumentValues=JF;jd.getDirectiveValues=jK;jd.getVariableValues=VK;var ic=dn(),MK=Hu(),UK=vI(),vo=qe(),KF=Gt(),QF=ji(),oc=xt(),CK=jF(),BK=Eo(),YF=qF();function VK(e,t,n,r){let i=[],o=r==null?void 0:r.maxErrors;try{let s=$K(e,t,n,a=>{if(o!=null&&i.length>=o)throw new vo.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(a)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function $K(e,t,n,r){let i={};for(let o of t){let s=o.variable.name.value,a=(0,BK.typeFromAST)(e,o.type);if(!(0,oc.isInputType)(a)){let c=(0,QF.print)(o.type);r(new vo.GraphQLError(`Variable "$${s}" expected value of type "${c}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!zF(n,s)){if(o.defaultValue)i[s]=(0,YF.valueFromAST)(o.defaultValue,a);else if((0,oc.isNonNullType)(a)){let c=(0,ic.inspect)(a);r(new vo.GraphQLError(`Variable "$${s}" of required type "${c}" was not provided.`,{nodes:o}))}continue}let u=n[s];if(u===null&&(0,oc.isNonNullType)(a)){let c=(0,ic.inspect)(a);r(new vo.GraphQLError(`Variable "$${s}" of non-null type "${c}" must not be null.`,{nodes:o}));continue}i[s]=(0,CK.coerceInputValue)(u,a,(c,l,d)=>{let h=`Variable "$${s}" got invalid value `+(0,ic.inspect)(l);c.length>0&&(h+=` at "${s}${(0,UK.printPathArray)(c)}"`),r(new vo.GraphQLError(h+"; "+d.message,{nodes:o,originalError:d}))})}return i}function JF(e,t,n){var r;let i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],s=(0,MK.keyMap)(o,a=>a.name.value);for(let a of e.args){let u=a.name,c=a.type,l=s[u];if(!l){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,oc.isNonNullType)(c))throw new vo.GraphQLError(`Argument "${u}" of required type "${(0,ic.inspect)(c)}" was not provided.`,{nodes:t});continue}let d=l.value,h=d.kind===KF.Kind.NULL;if(d.kind===KF.Kind.VARIABLE){let E=d.name.value;if(n==null||!zF(n,E)){if(a.defaultValue!==void 0)i[u]=a.defaultValue;else if((0,oc.isNonNullType)(c))throw new vo.GraphQLError(`Argument "${u}" of required type "${(0,ic.inspect)(c)}" was provided the variable "$${E}" which was not provided a runtime value.`,{nodes:d});continue}h=n[E]==null}if(h&&(0,oc.isNonNullType)(c))throw new vo.GraphQLError(`Argument "${u}" of non-null type "${(0,ic.inspect)(c)}" must not be null.`,{nodes:d});let N=(0,YF.valueFromAST)(d,c,n);if(N===void 0)throw new vo.GraphQLError(`Argument "${u}" has invalid value ${(0,QF.print)(d)}.`,{nodes:d});i[u]=N}return i}function jK(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(o=>o.name.value===e.name);if(i)return JF(e,i,n)}function zF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var eL=L(Fh=>{"use strict";p();m();f();Object.defineProperty(Fh,"__esModule",{value:!0});Fh.collectFields=KK;Fh.collectSubfields=QK;var SI=Gt(),GK=xt(),HF=Vs(),qK=Eo(),XF=WF();function KK(e,t,n,r,i){let o=new Map;return wh(e,t,n,r,i,o,new Set),o}function QK(e,t,n,r,i){let o=new Map,s=new Set;for(let a of i)a.selectionSet&&wh(e,t,n,r,a.selectionSet,o,s);return o}function wh(e,t,n,r,i,o,s){for(let a of i.selections)switch(a.kind){case SI.Kind.FIELD:{if(!DI(n,a))continue;let u=YK(a),c=o.get(u);c!==void 0?c.push(a):o.set(u,[a]);break}case SI.Kind.INLINE_FRAGMENT:{if(!DI(n,a)||!ZF(e,a,r))continue;wh(e,t,n,r,a.selectionSet,o,s);break}case SI.Kind.FRAGMENT_SPREAD:{let u=a.name.value;if(s.has(u)||!DI(n,a))continue;s.add(u);let c=t[u];if(!c||!ZF(e,c,r))continue;wh(e,t,n,r,c.selectionSet,o,s);break}}}function DI(e,t){let n=(0,XF.getDirectiveValues)(HF.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,XF.getDirectiveValues)(HF.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function ZF(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,qK.typeFromAST)(e,r);return i===n?!0:(0,GK.isAbstractType)(i)?e.isSubType(i,n):!1}function YK(e){return e.alias?e.alias.value:e.name.value}});var nL=L(OI=>{"use strict";p();m();f();Object.defineProperty(OI,"__esModule",{value:!0});OI.SingleFieldSubscriptionsRule=WK;var tL=qe(),JK=Gt(),zK=eL();function WK(e){return{OperationDefinition(t){if(t.operation==="subscription"){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),a=Object.create(null);for(let c of s.definitions)c.kind===JK.Kind.FRAGMENT_DEFINITION&&(a[c.name.value]=c);let u=(0,zK.collectFields)(n,a,o,r,t.selectionSet);if(u.size>1){let d=[...u.values()].slice(1).flat();e.reportError(new tL.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:d}))}for(let c of u.values())c[0].name.value.startsWith("__")&&e.reportError(new tL.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:c}))}}}}}});var Lh=L(AI=>{"use strict";p();m();f();Object.defineProperty(AI,"__esModule",{value:!0});AI.groupBy=HK;function HK(e,t){let n=new Map;for(let r of e){let i=t(r),o=n.get(i);o===void 0?n.set(i,[r]):o.push(r)}return n}});var rL=L(wI=>{"use strict";p();m();f();Object.defineProperty(wI,"__esModule",{value:!0});wI.UniqueArgumentDefinitionNamesRule=eQ;var XK=Lh(),ZK=qe();function eQ(e){return{DirectiveDefinition(r){var i;let o=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let o=r.name.value,s=(i=r.fields)!==null&&i!==void 0?i:[];for(let u of s){var a;let c=u.name.value,l=(a=u.arguments)!==null&&a!==void 0?a:[];n(`${o}.${c}`,l)}return!1}function n(r,i){let o=(0,XK.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new ZK.GraphQLError(`Argument "${r}(${s}:)" can only be defined once.`,{nodes:a.map(u=>u.name)}));return!1}}});var iL=L(FI=>{"use strict";p();m();f();Object.defineProperty(FI,"__esModule",{value:!0});FI.UniqueArgumentNamesRule=rQ;var tQ=Lh(),nQ=qe();function rQ(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],o=(0,tQ.groupBy)(i,s=>s.name.value);for(let[s,a]of o)a.length>1&&e.reportError(new nQ.GraphQLError(`There can be only one argument named "${s}".`,{nodes:a.map(u=>u.name)}))}}});var sL=L(LI=>{"use strict";p();m();f();Object.defineProperty(LI,"__esModule",{value:!0});LI.UniqueDirectiveNamesRule=iQ;var oL=qe();function iQ(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new oL.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new oL.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var uL=L(PI=>{"use strict";p();m();f();Object.defineProperty(PI,"__esModule",{value:!0});PI.UniqueDirectivesPerLocationRule=aQ;var oQ=qe(),RI=Gt(),aL=Md(),sQ=Vs();function aQ(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():sQ.specifiedDirectives;for(let a of r)t[a.name]=!a.isRepeatable;let i=e.getDocument().definitions;for(let a of i)a.kind===RI.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=!a.repeatable);let o=Object.create(null),s=Object.create(null);return{enter(a){if(!("directives"in a)||!a.directives)return;let u;if(a.kind===RI.Kind.SCHEMA_DEFINITION||a.kind===RI.Kind.SCHEMA_EXTENSION)u=o;else if((0,aL.isTypeDefinitionNode)(a)||(0,aL.isTypeExtensionNode)(a)){let c=a.name.value;u=s[c],u===void 0&&(s[c]=u=Object.create(null))}else u=Object.create(null);for(let c of a.directives){let l=c.name.value;t[l]&&(u[l]?e.reportError(new oQ.GraphQLError(`The directive "@${l}" can only be used once at this location.`,{nodes:[u[l],c]})):u[l]=c)}}}}});var lL=L(xI=>{"use strict";p();m();f();Object.defineProperty(xI,"__esModule",{value:!0});xI.UniqueEnumValueNamesRule=cQ;var cL=qe(),uQ=xt();function cQ(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.values)!==null&&s!==void 0?s:[],c=r[a];for(let l of u){let d=l.name.value,h=n[a];(0,uQ.isEnumType)(h)&&h.getValue(d)?e.reportError(new cL.GraphQLError(`Enum value "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new cL.GraphQLError(`Enum value "${a}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}});var pL=L(MI=>{"use strict";p();m();f();Object.defineProperty(MI,"__esModule",{value:!0});MI.UniqueFieldDefinitionNamesRule=lQ;var dL=qe(),kI=xt();function lQ(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(o){var s;let a=o.name.value;r[a]||(r[a]=Object.create(null));let u=(s=o.fields)!==null&&s!==void 0?s:[],c=r[a];for(let l of u){let d=l.name.value;dQ(n[a],d)?e.reportError(new dL.GraphQLError(`Field "${a}.${d}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:l.name})):c[d]?e.reportError(new dL.GraphQLError(`Field "${a}.${d}" can only be defined once.`,{nodes:[c[d],l.name]})):c[d]=l.name}return!1}}function dQ(e,t){return(0,kI.isObjectType)(e)||(0,kI.isInterfaceType)(e)||(0,kI.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var fL=L(UI=>{"use strict";p();m();f();Object.defineProperty(UI,"__esModule",{value:!0});UI.UniqueFragmentNamesRule=fQ;var pQ=qe();function fQ(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new pQ.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var mL=L(CI=>{"use strict";p();m();f();Object.defineProperty(CI,"__esModule",{value:!0});CI.UniqueInputFieldNamesRule=yQ;var mQ=To(),hQ=qe();function yQ(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,mQ.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new hQ.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var hL=L(BI=>{"use strict";p();m();f();Object.defineProperty(BI,"__esModule",{value:!0});BI.UniqueOperationNamesRule=NQ;var TQ=qe();function NQ(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new TQ.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var TL=L(VI=>{"use strict";p();m();f();Object.defineProperty(VI,"__esModule",{value:!0});VI.UniqueOperationTypesRule=EQ;var yL=qe();function EQ(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(o){var s;let a=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(let u of a){let c=u.operation,l=n[c];r[c]?e.reportError(new yL.GraphQLError(`Type for ${c} already defined in the schema. It cannot be redefined.`,{nodes:u})):l?e.reportError(new yL.GraphQLError(`There can be only one ${c} type in schema.`,{nodes:[l,u]})):n[c]=u}return!1}}});var EL=L($I=>{"use strict";p();m();f();Object.defineProperty($I,"__esModule",{value:!0});$I.UniqueTypeNamesRule=gQ;var NL=qe();function gQ(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){let o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new NL.GraphQLError(`Type "${o}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new NL.GraphQLError(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}});var gL=L(jI=>{"use strict";p();m();f();Object.defineProperty(jI,"__esModule",{value:!0});jI.UniqueVariableNamesRule=_Q;var IQ=Lh(),vQ=qe();function _Q(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,IQ.groupBy)(r,o=>o.variable.name.value);for(let[o,s]of i)s.length>1&&e.reportError(new vQ.GraphQLError(`There can be only one variable named "$${o}".`,{nodes:s.map(a=>a.variable.name)}))}}}});var IL=L(GI=>{"use strict";p();m();f();Object.defineProperty(GI,"__esModule",{value:!0});GI.ValuesOfCorrectTypeRule=OQ;var bQ=ks(),Gd=dn(),SQ=Hu(),DQ=Ms(),Ua=qe(),Rh=ji(),Ki=xt();function OQ(e){return{ListValue(t){let n=(0,Ki.getNullableType)(e.getParentInputType());if(!(0,Ki.isListType)(n))return Ma(e,t),!1},ObjectValue(t){let n=(0,Ki.getNamedType)(e.getInputType());if(!(0,Ki.isInputObjectType)(n))return Ma(e,t),!1;let r=(0,SQ.keyMap)(t.fields,i=>i.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&(0,Ki.isRequiredInputField)(i)){let s=(0,Gd.inspect)(i.type);e.reportError(new Ua.GraphQLError(`Field "${n.name}.${i.name}" of required type "${s}" was not provided.`,{nodes:t}))}},ObjectField(t){let n=(0,Ki.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Ki.isInputObjectType)(n)){let i=(0,DQ.suggestionList)(t.name.value,Object.keys(n.getFields()));e.reportError(new Ua.GraphQLError(`Field "${t.name.value}" is not defined by type "${n.name}".`+(0,bQ.didYouMean)(i),{nodes:t}))}},NullValue(t){let n=e.getInputType();(0,Ki.isNonNullType)(n)&&e.reportError(new Ua.GraphQLError(`Expected value of type "${(0,Gd.inspect)(n)}", found ${(0,Rh.print)(t)}.`,{nodes:t}))},EnumValue:t=>Ma(e,t),IntValue:t=>Ma(e,t),FloatValue:t=>Ma(e,t),StringValue:t=>Ma(e,t),BooleanValue:t=>Ma(e,t)}}function Ma(e,t){let n=e.getInputType();if(!n)return;let r=(0,Ki.getNamedType)(n);if(!(0,Ki.isLeafType)(r)){let i=(0,Gd.inspect)(n);e.reportError(new Ua.GraphQLError(`Expected value of type "${i}", found ${(0,Rh.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let o=(0,Gd.inspect)(n);e.reportError(new Ua.GraphQLError(`Expected value of type "${o}", found ${(0,Rh.print)(t)}.`,{nodes:t}))}}catch(i){let o=(0,Gd.inspect)(n);i instanceof Ua.GraphQLError?e.reportError(i):e.reportError(new Ua.GraphQLError(`Expected value of type "${o}", found ${(0,Rh.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}});var vL=L(qI=>{"use strict";p();m();f();Object.defineProperty(qI,"__esModule",{value:!0});qI.VariablesAreInputTypesRule=RQ;var AQ=qe(),wQ=ji(),FQ=xt(),LQ=Eo();function RQ(e){return{VariableDefinition(t){let n=(0,LQ.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,FQ.isInputType)(n)){let r=t.variable.name.value,i=(0,wQ.print)(t.type);e.reportError(new AQ.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var DL=L(KI=>{"use strict";p();m();f();Object.defineProperty(KI,"__esModule",{value:!0});KI.VariablesInAllowedPositionRule=MQ;var _L=dn(),PQ=qe(),xQ=Gt(),bL=xt(),SL=fh(),kQ=Eo();function MQ(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){let r=e.getRecursiveVariableUsages(n);for(let{node:i,type:o,defaultValue:s}of r){let a=i.name.value,u=t[a];if(u&&o){let c=e.getSchema(),l=(0,kQ.typeFromAST)(c,u.type);if(l&&!UQ(c,l,u.defaultValue,o,s)){let d=(0,_L.inspect)(l),h=(0,_L.inspect)(o);e.reportError(new PQ.GraphQLError(`Variable "$${a}" of type "${d}" used in position expecting type "${h}".`,{nodes:[u,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function UQ(e,t,n,r,i){if((0,bL.isNonNullType)(r)&&!(0,bL.isNonNullType)(t)){if(!(n!=null&&n.kind!==xQ.Kind.NULL)&&!(i!==void 0))return!1;let a=r.ofType;return(0,SL.isTypeSubTypeOf)(e,t,a)}return(0,SL.isTypeSubTypeOf)(e,t,r)}});var xL=L(sc=>{"use strict";p();m();f();Object.defineProperty(sc,"__esModule",{value:!0});sc.specifiedSDLRules=sc.specifiedRules=void 0;var CQ=Kw(),BQ=Yw(),VQ=Xw(),OL=rF(),AL=oF(),$Q=sF(),wL=uF(),jQ=cF(),GQ=dF(),qQ=pF(),KQ=fF(),QQ=mF(),YQ=hF(),JQ=_F(),zQ=DF(),WQ=FF(),FL=MF(),HQ=VF(),XQ=nL(),ZQ=rL(),LL=iL(),eY=sL(),RL=uL(),tY=lL(),nY=pL(),rY=fL(),PL=mL(),iY=hL(),oY=TL(),sY=EL(),aY=gL(),uY=IL(),cY=vL(),lY=DL(),dY=Object.freeze([CQ.ExecutableDefinitionsRule,iY.UniqueOperationNamesRule,jQ.LoneAnonymousOperationRule,XQ.SingleFieldSubscriptionsRule,wL.KnownTypeNamesRule,VQ.FragmentsOnCompositeTypesRule,cY.VariablesAreInputTypesRule,HQ.ScalarLeafsRule,BQ.FieldsOnCorrectTypeRule,rY.UniqueFragmentNamesRule,$Q.KnownFragmentNamesRule,QQ.NoUnusedFragmentsRule,zQ.PossibleFragmentSpreadsRule,qQ.NoFragmentCyclesRule,aY.UniqueVariableNamesRule,KQ.NoUndefinedVariablesRule,YQ.NoUnusedVariablesRule,AL.KnownDirectivesRule,RL.UniqueDirectivesPerLocationRule,OL.KnownArgumentNamesRule,LL.UniqueArgumentNamesRule,uY.ValuesOfCorrectTypeRule,FL.ProvidedRequiredArgumentsRule,lY.VariablesInAllowedPositionRule,JQ.OverlappingFieldsCanBeMergedRule,PL.UniqueInputFieldNamesRule]);sc.specifiedRules=dY;var pY=Object.freeze([GQ.LoneSchemaDefinitionRule,oY.UniqueOperationTypesRule,sY.UniqueTypeNamesRule,tY.UniqueEnumValueNamesRule,nY.UniqueFieldDefinitionNamesRule,ZQ.UniqueArgumentDefinitionNamesRule,eY.UniqueDirectiveNamesRule,wL.KnownTypeNamesRule,AL.KnownDirectivesRule,RL.UniqueDirectivesPerLocationRule,WQ.PossibleTypeExtensionsRule,OL.KnownArgumentNamesOnDirectivesRule,LL.UniqueArgumentNamesRule,PL.UniqueInputFieldNamesRule,FL.ProvidedRequiredArgumentsOnDirectivesRule]);sc.specifiedSDLRules=pY});var UL=L($s=>{"use strict";p();m();f();Object.defineProperty($s,"__esModule",{value:!0});$s.ValidationContext=$s.SDLValidationContext=$s.ASTValidationContext=void 0;var kL=Gt(),fY=Nd(),ML=Qg(),qd=class{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(let r of this.getDocument().definitions)r.kind===kL.Kind.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];let r=[t],i;for(;i=r.pop();)for(let o of i.selections)o.kind===kL.Kind.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];let r=Object.create(null),i=[t.selectionSet],o;for(;o=i.pop();)for(let s of this.getFragmentSpreads(o)){let a=s.name.value;if(r[a]!==!0){r[a]=!0;let u=this.getFragment(a);u&&(n.push(u),i.push(u.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};$s.ASTValidationContext=qd;var QI=class extends qd{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};$s.SDLValidationContext=QI;var YI=class extends qd{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){let r=[],i=new ML.TypeInfo(this._schema);(0,fY.visit)(t,(0,ML.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(let r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}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()}};$s.ValidationContext=YI});var $L=L(ac=>{"use strict";p();m();f();Object.defineProperty(ac,"__esModule",{value:!0});ac.assertValidSDL=NY;ac.assertValidSDLExtension=EY;ac.validate=TY;ac.validateSDL=JI;var mY=Da(),hY=qe(),Ph=Nd(),yY=xw(),CL=Qg(),BL=xL(),VL=UL();function TY(e,t,n=BL.specifiedRules,r,i=new CL.TypeInfo(e)){var o;let s=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||(0,mY.devAssert)(!1,"Must provide document."),(0,yY.assertValidSchema)(e);let a=Object.freeze({}),u=[],c=new VL.ValidationContext(e,t,i,d=>{if(u.length>=s)throw u.push(new hY.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),a;u.push(d)}),l=(0,Ph.visitInParallel)(n.map(d=>d(c)));try{(0,Ph.visit)(t,(0,CL.visitWithTypeInfo)(i,l))}catch(d){if(d!==a)throw d}return u}function JI(e,t,n=BL.specifiedSDLRules){let r=[],i=new VL.SDLValidationContext(e,t,s=>{r.push(s)}),o=n.map(s=>s(i));return(0,Ph.visit)(e,(0,Ph.visitInParallel)(o)),r}function NY(e){let t=JI(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` `))}function EY(e,t){let n=JI(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}});var qR=R(js=>{"use strict";p();m();f();Object.defineProperty(js,"__esModule",{value:!0});js.extendSchemaImpl=js.mapValue=js.AccumulatorMap=void 0;var le=(ie(),ae(de)),vo=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};js.AccumulatorMap=vo;function uc(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}js.mapValue=uc;function gY(e,t,n){var ue,ne,ce,ct;let r=[],i=new vo,o=new vo,s=new vo,a=new vo,u=new vo,c=new vo,l=[],d,h=[],N=!1;for(let M of t.definitions){switch(M.kind){case le.Kind.SCHEMA_DEFINITION:d=M;break;case le.Kind.SCHEMA_EXTENSION:h.push(M);break;case le.Kind.DIRECTIVE_DEFINITION:l.push(M);break;case le.Kind.SCALAR_TYPE_DEFINITION:case le.Kind.OBJECT_TYPE_DEFINITION:case le.Kind.INTERFACE_TYPE_DEFINITION:case le.Kind.UNION_TYPE_DEFINITION:case le.Kind.ENUM_TYPE_DEFINITION:case le.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(M);break;case le.Kind.SCALAR_TYPE_EXTENSION:i.add(M.name.value,M);break;case le.Kind.OBJECT_TYPE_EXTENSION:o.add(M.name.value,M);break;case le.Kind.INTERFACE_TYPE_EXTENSION:s.add(M.name.value,M);break;case le.Kind.UNION_TYPE_EXTENSION:a.add(M.name.value,M);break;case le.Kind.ENUM_TYPE_EXTENSION:u.add(M.name.value,M);break;case le.Kind.INPUT_OBJECT_TYPE_EXTENSION:c.add(M.name.value,M);break;default:continue}N=!0}if(!N)return e;let E=new Map;for(let M of e.types){let G=J(M);G&&E.set(M.name,G)}for(let M of r){let G=M.name.value;E.set(G,(ue=jR.get(G))!=null?ue:K(M))}for(let[M,G]of o)E.set(M,new le.GraphQLObjectType({name:M,interfaces:()=>vt(G),fields:()=>ii(G),extensionASTNodes:G}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[M,G]of s)E.set(M,new le.GraphQLInterfaceType({name:M,interfaces:()=>vt(G),fields:()=>ii(G),extensionASTNodes:G}));for(let[M,G]of u)E.set(M,new le.GraphQLEnumType({name:M,values:bi(G),extensionASTNodes:G}));for(let[M,G]of a)E.set(M,new le.GraphQLUnionType({name:M,types:()=>yn(G),extensionASTNodes:G}));for(let[M,G]of i)E.set(M,new le.GraphQLScalarType({name:M,extensionASTNodes:G}));for(let[M,G]of c)E.set(M,new le.GraphQLInputObjectType({name:M,fields:()=>ls(G),extensionASTNodes:G}))}let D=w(w({query:e.query&&F(e.query),mutation:e.mutation&&F(e.mutation),subscription:e.subscription&&F(e.subscription)},d&&or([d])),or(h));return U(w({description:(ce=(ne=d==null?void 0:d.description)==null?void 0:ne.value)!=null?ce:e.description},D),{types:Array.from(E.values()),directives:[...e.directives.map(Y),...l.map(cs)],extensions:e.extensions,astNode:d!=null?d:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:(ct=n==null?void 0:n.assumeValid)!=null?ct:!1});function A(M){return(0,le.isListType)(M)?new le.GraphQLList(A(M.ofType)):(0,le.isNonNullType)(M)?new le.GraphQLNonNull(A(M.ofType)):F(M)}function F(M){return E.get(M.name)}function Y(M){if((0,le.isSpecifiedDirective)(M))return M;let G=M.toConfig();return new le.GraphQLDirective(U(w({},G),{args:uc(G.args,Qt)}))}function J(M){if((0,le.isIntrospectionType)(M)||(0,le.isSpecifiedScalarType)(M))return M;if((0,le.isScalarType)(M))return _e(M);if((0,le.isObjectType)(M))return ut(M);if((0,le.isInterfaceType)(M))return kt(M);if((0,le.isUnionType)(M))return Q(M);if((0,le.isEnumType)(M))return X(M);if((0,le.isInputObjectType)(M))return Z(M)}function Z(M){var Fe;let G=M.toConfig(),ve=(Fe=c.get(G.name))!=null?Fe:[];return new le.GraphQLInputObjectType(U(w({},G),{fields:()=>w(w({},uc(G.fields,ht=>U(w({},ht),{type:A(ht.type)}))),ls(ve)),extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function X(M){var Fe;let G=M.toConfig(),ve=(Fe=u.get(M.name))!=null?Fe:[];return new le.GraphQLEnumType(U(w({},G),{values:w(w({},G.values),bi(ve)),extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function _e(M){var ht,We;let G=M.toConfig(),ve=(ht=i.get(G.name))!=null?ht:[],Fe=G.specifiedByURL;for(let gt of ve)Fe=(We=GR(gt))!=null?We:Fe;return new le.GraphQLScalarType(U(w({},G),{specifiedByURL:Fe,extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function ut(M){var Fe;let G=M.toConfig(),ve=(Fe=o.get(G.name))!=null?Fe:[];return new le.GraphQLObjectType(U(w({},G),{interfaces:()=>[...M.getInterfaces().map(F),...vt(ve)],fields:()=>w(w({},uc(G.fields,Ie)),ii(ve)),extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function kt(M){var Fe;let G=M.toConfig(),ve=(Fe=s.get(G.name))!=null?Fe:[];return new le.GraphQLInterfaceType(U(w({},G),{interfaces:()=>[...M.getInterfaces().map(F),...vt(ve)],fields:()=>w(w({},uc(G.fields,Ie)),ii(ve)),extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function Q(M){var Fe;let G=M.toConfig(),ve=(Fe=a.get(G.name))!=null?Fe:[];return new le.GraphQLUnionType(U(w({},G),{types:()=>[...M.getTypes().map(F),...yn(ve)],extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function Ie(M){return U(w({},M),{type:A(M.type),args:M.args&&uc(M.args,Qt)})}function Qt(M){return U(w({},M),{type:A(M.type)})}function or(M){var ve;let G={};for(let Fe of M){let ht=(ve=Fe.operationTypes)!=null?ve:[];for(let We of ht)G[We.operation]=In(We.type)}return G}function In(M){var Fe;let G=M.name.value,ve=(Fe=jR.get(G))!=null?Fe:E.get(G);if(ve===void 0)throw new Error(`Unknown type: "${G}".`);return ve}function _r(M){return M.kind===le.Kind.LIST_TYPE?new le.GraphQLList(_r(M.type)):M.kind===le.Kind.NON_NULL_TYPE?new le.GraphQLNonNull(_r(M.type)):In(M)}function cs(M){var G;return new le.GraphQLDirective({name:M.name.value,description:(G=M.description)==null?void 0:G.value,locations:M.locations.map(({value:ve})=>ve),isRepeatable:M.repeatable,args:Qs(M.arguments),astNode:M})}function ii(M){var ve,Fe;let G=Object.create(null);for(let ht of M){let We=(ve=ht.fields)!=null?ve:[];for(let gt of We)G[gt.name.value]={type:_r(gt.type),description:(Fe=gt.description)==null?void 0:Fe.value,args:Qs(gt.arguments),deprecationReason:xh(gt),astNode:gt}}return G}function Qs(M){var Fe;let G=M!=null?M:[],ve=Object.create(null);for(let ht of G){let We=_r(ht.type);ve[ht.name.value]={type:We,description:(Fe=ht.description)==null?void 0:Fe.value,defaultValue:(0,le.valueFromAST)(ht.defaultValue,We),deprecationReason:xh(ht),astNode:ht}}return ve}function ls(M){var ve,Fe;let G=Object.create(null);for(let ht of M){let We=(ve=ht.fields)!=null?ve:[];for(let gt of We){let Ys=_r(gt.type);G[gt.name.value]={type:Ys,description:(Fe=gt.description)==null?void 0:Fe.value,defaultValue:(0,le.valueFromAST)(gt.defaultValue,Ys),deprecationReason:xh(gt),astNode:gt}}}return G}function bi(M){var ve,Fe;let G=Object.create(null);for(let ht of M){let We=(ve=ht.values)!=null?ve:[];for(let gt of We)G[gt.name.value]={description:(Fe=gt.description)==null?void 0:Fe.value,deprecationReason:xh(gt),astNode:gt}}return G}function vt(M){return M.flatMap(G=>{var ve,Fe;return(Fe=(ve=G.interfaces)==null?void 0:ve.map(In))!=null?Fe:[]})}function yn(M){return M.flatMap(G=>{var ve,Fe;return(Fe=(ve=G.types)==null?void 0:ve.map(In))!=null?Fe:[]})}function K(M){var ve,Fe,ht,We,gt,Ys,Sp,Qa,Dp,Op,Dc,Js;let G=M.name.value;switch(M.kind){case le.Kind.OBJECT_TYPE_DEFINITION:{let bt=(ve=o.get(G))!=null?ve:[],sr=[M,...bt];return o.delete(G),new le.GraphQLObjectType({name:G,description:(Fe=M.description)==null?void 0:Fe.value,interfaces:()=>vt(sr),fields:()=>ii(sr),astNode:M,extensionASTNodes:bt})}case le.Kind.INTERFACE_TYPE_DEFINITION:{let bt=(ht=s.get(G))!=null?ht:[],sr=[M,...bt];return s.delete(G),new le.GraphQLInterfaceType({name:G,description:(We=M.description)==null?void 0:We.value,interfaces:()=>vt(sr),fields:()=>ii(sr),astNode:M,extensionASTNodes:bt})}case le.Kind.ENUM_TYPE_DEFINITION:{let bt=(gt=u.get(G))!=null?gt:[],sr=[M,...bt];return u.delete(G),new le.GraphQLEnumType({name:G,description:(Ys=M.description)==null?void 0:Ys.value,values:bi(sr),astNode:M,extensionASTNodes:bt})}case le.Kind.UNION_TYPE_DEFINITION:{let bt=(Sp=a.get(G))!=null?Sp:[],sr=[M,...bt];return a.delete(G),new le.GraphQLUnionType({name:G,description:(Qa=M.description)==null?void 0:Qa.value,types:()=>yn(sr),astNode:M,extensionASTNodes:bt})}case le.Kind.SCALAR_TYPE_DEFINITION:{let bt=(Dp=i.get(G))!=null?Dp:[];return i.delete(G),new le.GraphQLScalarType({name:G,description:(Op=M.description)==null?void 0:Op.value,specifiedByURL:GR(M),astNode:M,extensionASTNodes:bt})}case le.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let bt=(Dc=c.get(G))!=null?Dc:[],sr=[M,...bt];return c.delete(G),new le.GraphQLInputObjectType({name:G,description:(Js=M.description)==null?void 0:Js.value,fields:()=>ls(sr),astNode:M,extensionASTNodes:bt})}}}}js.extendSchemaImpl=gY;var jR=new Map([...le.specifiedScalarTypes,...le.introspectionTypes].map(e=>[e.name,e]));function xh(e){let t=(0,le.getDirectiveValues)(le.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function GR(e){let t=(0,le.getDirectiveValues)(le.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var QR=R(kh=>{"use strict";p();m();f();Object.defineProperty(kh,"__esModule",{value:!0});kh.buildASTSchema=void 0;var KR=(ie(),ae(de)),IY=$R(),vY=qR();function _Y(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,IY.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,vY.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let o of r.types)switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o;break}let i=[...r.directives,...KR.specifiedDirectives.filter(o=>r.directives.every(s=>s.name!==o.name))];return new KR.GraphQLSchema(U(w({},r),{directives:i}))}kh.buildASTSchema=_Y});var zI=R(Mh=>{"use strict";p();m();f();Object.defineProperty(Mh,"__esModule",{value:!0});Mh.recordSubgraphName=void 0;function bY(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}Mh.recordSubgraphName=bY});var WI=R(Uh=>{"use strict";p();m();f();Object.defineProperty(Uh,"__esModule",{value:!0});Uh.invalidOverrideTargetSubgraphNameWarning=void 0;var SY=$r();function DY(e,t,n){return`The object type "${t}" defines the directive "@override(from: "${e})" on the following field`+(n.length>1?"s":"")+': "'+n.join(SY.QUOTATION_JOIN)+`". +`))}});var qL=L(js=>{"use strict";p();m();f();Object.defineProperty(js,"__esModule",{value:!0});js.extendSchemaImpl=js.mapValue=js.AccumulatorMap=void 0;var le=(ie(),ae(de)),_o=class extends Map{get[Symbol.toStringTag](){return"AccumulatorMap"}add(t,n){let r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}};js.AccumulatorMap=_o;function uc(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}js.mapValue=uc;function gY(e,t,n){var ue,ne,ce,ct;let r=[],i=new _o,o=new _o,s=new _o,a=new _o,u=new _o,c=new _o,l=[],d,h=[],N=!1;for(let M of t.definitions){switch(M.kind){case le.Kind.SCHEMA_DEFINITION:d=M;break;case le.Kind.SCHEMA_EXTENSION:h.push(M);break;case le.Kind.DIRECTIVE_DEFINITION:l.push(M);break;case le.Kind.SCALAR_TYPE_DEFINITION:case le.Kind.OBJECT_TYPE_DEFINITION:case le.Kind.INTERFACE_TYPE_DEFINITION:case le.Kind.UNION_TYPE_DEFINITION:case le.Kind.ENUM_TYPE_DEFINITION:case le.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(M);break;case le.Kind.SCALAR_TYPE_EXTENSION:i.add(M.name.value,M);break;case le.Kind.OBJECT_TYPE_EXTENSION:o.add(M.name.value,M);break;case le.Kind.INTERFACE_TYPE_EXTENSION:s.add(M.name.value,M);break;case le.Kind.UNION_TYPE_EXTENSION:a.add(M.name.value,M);break;case le.Kind.ENUM_TYPE_EXTENSION:u.add(M.name.value,M);break;case le.Kind.INPUT_OBJECT_TYPE_EXTENSION:c.add(M.name.value,M);break;default:continue}N=!0}if(!N)return e;let E=new Map;for(let M of e.types){let G=J(M);G&&E.set(M.name,G)}for(let M of r){let G=M.name.value;E.set(G,(ue=jL.get(G))!=null?ue:K(M))}for(let[M,G]of o)E.set(M,new le.GraphQLObjectType({name:M,interfaces:()=>vt(G),fields:()=>ii(G),extensionASTNodes:G}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[M,G]of s)E.set(M,new le.GraphQLInterfaceType({name:M,interfaces:()=>vt(G),fields:()=>ii(G),extensionASTNodes:G}));for(let[M,G]of u)E.set(M,new le.GraphQLEnumType({name:M,values:bi(G),extensionASTNodes:G}));for(let[M,G]of a)E.set(M,new le.GraphQLUnionType({name:M,types:()=>yn(G),extensionASTNodes:G}));for(let[M,G]of i)E.set(M,new le.GraphQLScalarType({name:M,extensionASTNodes:G}));for(let[M,G]of c)E.set(M,new le.GraphQLInputObjectType({name:M,fields:()=>ds(G),extensionASTNodes:G}))}let D=w(w({query:e.query&&F(e.query),mutation:e.mutation&&F(e.mutation),subscription:e.subscription&&F(e.subscription)},d&&or([d])),or(h));return U(w({description:(ce=(ne=d==null?void 0:d.description)==null?void 0:ne.value)!=null?ce:e.description},D),{types:Array.from(E.values()),directives:[...e.directives.map(Y),...l.map(ls)],extensions:e.extensions,astNode:d!=null?d:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:(ct=n==null?void 0:n.assumeValid)!=null?ct:!1});function A(M){return(0,le.isListType)(M)?new le.GraphQLList(A(M.ofType)):(0,le.isNonNullType)(M)?new le.GraphQLNonNull(A(M.ofType)):F(M)}function F(M){return E.get(M.name)}function Y(M){if((0,le.isSpecifiedDirective)(M))return M;let G=M.toConfig();return new le.GraphQLDirective(U(w({},G),{args:uc(G.args,Yt)}))}function J(M){if((0,le.isIntrospectionType)(M)||(0,le.isSpecifiedScalarType)(M))return M;if((0,le.isScalarType)(M))return _e(M);if((0,le.isObjectType)(M))return ut(M);if((0,le.isInterfaceType)(M))return kt(M);if((0,le.isUnionType)(M))return Q(M);if((0,le.isEnumType)(M))return H(M);if((0,le.isInputObjectType)(M))return Z(M)}function Z(M){var Fe;let G=M.toConfig(),ve=(Fe=c.get(G.name))!=null?Fe:[];return new le.GraphQLInputObjectType(U(w({},G),{fields:()=>w(w({},uc(G.fields,ht=>U(w({},ht),{type:A(ht.type)}))),ds(ve)),extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function H(M){var Fe;let G=M.toConfig(),ve=(Fe=u.get(M.name))!=null?Fe:[];return new le.GraphQLEnumType(U(w({},G),{values:w(w({},G.values),bi(ve)),extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function _e(M){var ht,We;let G=M.toConfig(),ve=(ht=i.get(G.name))!=null?ht:[],Fe=G.specifiedByURL;for(let gt of ve)Fe=(We=GL(gt))!=null?We:Fe;return new le.GraphQLScalarType(U(w({},G),{specifiedByURL:Fe,extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function ut(M){var Fe;let G=M.toConfig(),ve=(Fe=o.get(G.name))!=null?Fe:[];return new le.GraphQLObjectType(U(w({},G),{interfaces:()=>[...M.getInterfaces().map(F),...vt(ve)],fields:()=>w(w({},uc(G.fields,Ie)),ii(ve)),extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function kt(M){var Fe;let G=M.toConfig(),ve=(Fe=s.get(G.name))!=null?Fe:[];return new le.GraphQLInterfaceType(U(w({},G),{interfaces:()=>[...M.getInterfaces().map(F),...vt(ve)],fields:()=>w(w({},uc(G.fields,Ie)),ii(ve)),extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function Q(M){var Fe;let G=M.toConfig(),ve=(Fe=a.get(G.name))!=null?Fe:[];return new le.GraphQLUnionType(U(w({},G),{types:()=>[...M.getTypes().map(F),...yn(ve)],extensionASTNodes:G.extensionASTNodes.concat(ve)}))}function Ie(M){return U(w({},M),{type:A(M.type),args:M.args&&uc(M.args,Yt)})}function Yt(M){return U(w({},M),{type:A(M.type)})}function or(M){var ve;let G={};for(let Fe of M){let ht=(ve=Fe.operationTypes)!=null?ve:[];for(let We of ht)G[We.operation]=In(We.type)}return G}function In(M){var Fe;let G=M.name.value,ve=(Fe=jL.get(G))!=null?Fe:E.get(G);if(ve===void 0)throw new Error(`Unknown type: "${G}".`);return ve}function _r(M){return M.kind===le.Kind.LIST_TYPE?new le.GraphQLList(_r(M.type)):M.kind===le.Kind.NON_NULL_TYPE?new le.GraphQLNonNull(_r(M.type)):In(M)}function ls(M){var G;return new le.GraphQLDirective({name:M.name.value,description:(G=M.description)==null?void 0:G.value,locations:M.locations.map(({value:ve})=>ve),isRepeatable:M.repeatable,args:Qs(M.arguments),astNode:M})}function ii(M){var ve,Fe;let G=Object.create(null);for(let ht of M){let We=(ve=ht.fields)!=null?ve:[];for(let gt of We)G[gt.name.value]={type:_r(gt.type),description:(Fe=gt.description)==null?void 0:Fe.value,args:Qs(gt.arguments),deprecationReason:xh(gt),astNode:gt}}return G}function Qs(M){var Fe;let G=M!=null?M:[],ve=Object.create(null);for(let ht of G){let We=_r(ht.type);ve[ht.name.value]={type:We,description:(Fe=ht.description)==null?void 0:Fe.value,defaultValue:(0,le.valueFromAST)(ht.defaultValue,We),deprecationReason:xh(ht),astNode:ht}}return ve}function ds(M){var ve,Fe;let G=Object.create(null);for(let ht of M){let We=(ve=ht.fields)!=null?ve:[];for(let gt of We){let Ys=_r(gt.type);G[gt.name.value]={type:Ys,description:(Fe=gt.description)==null?void 0:Fe.value,defaultValue:(0,le.valueFromAST)(gt.defaultValue,Ys),deprecationReason:xh(gt),astNode:gt}}}return G}function bi(M){var ve,Fe;let G=Object.create(null);for(let ht of M){let We=(ve=ht.values)!=null?ve:[];for(let gt of We)G[gt.name.value]={description:(Fe=gt.description)==null?void 0:Fe.value,deprecationReason:xh(gt),astNode:gt}}return G}function vt(M){return M.flatMap(G=>{var ve,Fe;return(Fe=(ve=G.interfaces)==null?void 0:ve.map(In))!=null?Fe:[]})}function yn(M){return M.flatMap(G=>{var ve,Fe;return(Fe=(ve=G.types)==null?void 0:ve.map(In))!=null?Fe:[]})}function K(M){var ve,Fe,ht,We,gt,Ys,Sp,Qa,Dp,Op,Dc,Js;let G=M.name.value;switch(M.kind){case le.Kind.OBJECT_TYPE_DEFINITION:{let bt=(ve=o.get(G))!=null?ve:[],sr=[M,...bt];return o.delete(G),new le.GraphQLObjectType({name:G,description:(Fe=M.description)==null?void 0:Fe.value,interfaces:()=>vt(sr),fields:()=>ii(sr),astNode:M,extensionASTNodes:bt})}case le.Kind.INTERFACE_TYPE_DEFINITION:{let bt=(ht=s.get(G))!=null?ht:[],sr=[M,...bt];return s.delete(G),new le.GraphQLInterfaceType({name:G,description:(We=M.description)==null?void 0:We.value,interfaces:()=>vt(sr),fields:()=>ii(sr),astNode:M,extensionASTNodes:bt})}case le.Kind.ENUM_TYPE_DEFINITION:{let bt=(gt=u.get(G))!=null?gt:[],sr=[M,...bt];return u.delete(G),new le.GraphQLEnumType({name:G,description:(Ys=M.description)==null?void 0:Ys.value,values:bi(sr),astNode:M,extensionASTNodes:bt})}case le.Kind.UNION_TYPE_DEFINITION:{let bt=(Sp=a.get(G))!=null?Sp:[],sr=[M,...bt];return a.delete(G),new le.GraphQLUnionType({name:G,description:(Qa=M.description)==null?void 0:Qa.value,types:()=>yn(sr),astNode:M,extensionASTNodes:bt})}case le.Kind.SCALAR_TYPE_DEFINITION:{let bt=(Dp=i.get(G))!=null?Dp:[];return i.delete(G),new le.GraphQLScalarType({name:G,description:(Op=M.description)==null?void 0:Op.value,specifiedByURL:GL(M),astNode:M,extensionASTNodes:bt})}case le.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let bt=(Dc=c.get(G))!=null?Dc:[],sr=[M,...bt];return c.delete(G),new le.GraphQLInputObjectType({name:G,description:(Js=M.description)==null?void 0:Js.value,fields:()=>ds(sr),astNode:M,extensionASTNodes:bt})}}}}js.extendSchemaImpl=gY;var jL=new Map([...le.specifiedScalarTypes,...le.introspectionTypes].map(e=>[e.name,e]));function xh(e){let t=(0,le.getDirectiveValues)(le.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function GL(e){let t=(0,le.getDirectiveValues)(le.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var QL=L(kh=>{"use strict";p();m();f();Object.defineProperty(kh,"__esModule",{value:!0});kh.buildASTSchema=void 0;var KL=(ie(),ae(de)),IY=$L(),vY=qL();function _Y(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,IY.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,vY.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let o of r.types)switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o;break}let i=[...r.directives,...KL.specifiedDirectives.filter(o=>r.directives.every(s=>s.name!==o.name))];return new KL.GraphQLSchema(U(w({},r),{directives:i}))}kh.buildASTSchema=_Y});var zI=L(Mh=>{"use strict";p();m();f();Object.defineProperty(Mh,"__esModule",{value:!0});Mh.recordSubgraphName=void 0;function bY(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}Mh.recordSubgraphName=bY});var WI=L(Uh=>{"use strict";p();m();f();Object.defineProperty(Uh,"__esModule",{value:!0});Uh.invalidOverrideTargetSubgraphNameWarning=void 0;var SY=$r();function DY(e,t,n){return`The object type "${t}" defines the directive "@override(from: "${e})" on the following field`+(n.length>1?"s":"")+': "'+n.join(SY.QUOTATION_JOIN)+`". The required "from" argument of type "String!" should be provided with an existing subgraph name. However, a subgraph by the name of "${e}" does not exist. -If this subgraph has been recently deleted, remember to clean up unused @override directives that reference this subgraph.`}Uh.invalidOverrideTargetSubgraphNameWarning=DY});var XI=R(cc=>{"use strict";p();m();f();Object.defineProperty(cc,"__esModule",{value:!0});cc.getMostRestrictiveMergedTypeNode=cc.getLeastRestrictiveMergedTypeNode=void 0;var Kd=(ie(),ae(de)),OY=di(),AY=Ds(),YR=Ss(),Ca;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Ca||(Ca={}));function JR(e,t,n,r){t=(0,AY.deepCopyTypeNode)(t,n);let i={kind:e.kind},o=Ca.NONE,s=i;for(let a=0;a{"use strict";p();m();f();Object.defineProperty(H,"__esModule",{value:!0});H.isTypeValidImplementation=H.MergeMethod=H.isFieldExternalInAllMutualSubgraphs=H.isShareabilityOfAllFieldInstancesValid=H.addValidPersistedDirectiveDefinitionNodeByData=H.getValidFieldArgumentNodes=H.getNodeWithPersistedDirectivesByInputValueData=H.getNodeWithPersistedDirectivesByFieldData=H.getNodeWithPersistedDirectivesByData=H.upsertValidObjectExtensionData=H.pushAuthorizationDirectives=H.upsertObjectExtensionData=H.upsertParentDefinitionData=H.removeInheritableDirectivesFromParentWithFieldsData=H.getUnionNodeByData=H.getSchemaNodeByData=H.getScalarNodeByData=H.getParentWithFieldsNodeByData=H.getInputObjectNodeByData=H.getEnumNodeByData=H.extractImplementedInterfaceTypeNames=H.convertKindForExtension=H.getRenamedRootTypeName=H.isTypeNameRootType=H.addUnionExtensionDataByNode=H.addUnionDefinitionDataByNode=H.extractUniqueUnionMembers=H.addScalarExtensionDataByNode=H.addScalarDefinitionDataByNode=H.upsertPersistedDirectiveDefinitionData=H.addPersistedDirectiveDefinitionDataByNode=H.addObjectDefinitionDataByNode=H.addInterfaceDefinitionDataByNode=H.addInputValueDataByNode=H.addInputObjectExtensionDataByNode=H.addInputObjectDefinitionDataByNode=H.addExtensionWithFieldsDataByNode=H.addFieldDataByNode=H.addInheritedDirectivesToFieldData=H.addEnumValueDataByNode=H.addEnumExtensionDataByNode=H.addEnumDefinitionDataByNode=H.isTypeRequired=H.extractArguments=H.extractDirectives=H.getDirectiveValidationErrors=H.getDefinedArgumentsForDirective=H.isNodeExternalOrShareable=void 0;var Oe=(ie(),ae(de)),fn=Ds(),ft=jr(),pt=di(),It=$r(),XR=XI(),zR=Yu(),Ut=fo(),Yd=Ss(),RY=jm();function Qi(){return{deprecatedReason:"",directives:new Map,isDeprecated:!1,tags:new Map}}function HR(e,t,n){var i;let r={isExternal:n.has(It.EXTERNAL),isShareable:t||n.has(It.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let o of e.directives){let s=o.name.value;if(s===It.EXTERNAL){r.isExternal=!0;continue}s===It.SHAREABLE&&(r.isShareable=!0)}return r}H.isNodeExternalOrShareable=HR;function ZR(e,t,n,r,i){let o=e.arguments||[],s=e.name.value,a=new Set,u=new Set;for(let c of o){let l=c.name.value;if(a.has(l)){u.has(l)||(u.add(l),i.push((0,pt.duplicateDirectiveArgumentDefinitionErrorMessage)(s,r,l)));continue}if(!t.get(l)){i.push((0,pt.unexpectedDirectiveArgumentErrorMessage)(s,l));continue}a.add(l)}return a}H.getDefinedArgumentsForDirective=ZR;function eL(e,t,n,r,i,o,s=!1){var E,D,A;let a=e.name.value,u=r.get(a)||Yd.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(a),c=[];if(!u)return c.push((0,pt.undefinedDirectiveErrorMessage)(a,o)),c;let l=new Map,d=new Set;if((0,zR.getDirectiveDefinitionArgumentSets)(u.arguments||[],l,d),(0,zR.areNodeKindAndDirectiveLocationCompatible)(t,u,s)||c.push((0,pt.invalidDirectiveLocationErrorMessage)(o,s?Oe.Kind.ARGUMENT:t,a)),!u.repeatable&&n.get(a)){let F=i.get(o);F?F.has(a)||(F.add(a),c.push((0,pt.invalidRepeatedDirectiveErrorMessage)(a,o))):i.set(o,new Set([a]))}if(!((E=u.arguments)!=null&&E.length))return(D=e.arguments)!=null&&D.length&&c.push((0,pt.unexpectedDirectiveArgumentsErrorMessage)(e,o)),c;if(!((A=e.arguments)!=null&&A.length))return d.size>0&&c.push((0,pt.undefinedRequiredArgumentsErrorMessage)(a,o,[...d])),c;let h=ZR(e,l,d,o,c),N=(0,Ut.getEntriesNotInHashSet)(d,h);return N.length>0&&c.push((0,pt.undefinedRequiredArgumentsErrorMessage)(a,o,[...d],N)),c}H.getDirectiveValidationErrors=eL;function vi(e,t,n,r,i,o,s=!1){if(!e.directives)return t;let a=new Set;for(let u of e.directives){let c=eL(u,e.kind,t,r,i,o,s),l=u.name.value;if(c.length>0){n.push((0,pt.invalidDirectiveError)(l,o,c));continue}if(It.IGNORED_PARENT_DIRECTIVES.has(l))continue;if(l===It.KEY){let h=u.arguments[0].value.value;if(a.has(h))continue;a.add(h)}let d=t.get(l);d?d.push(u):t.set(l,[u])}return t}H.extractDirectives=vi;function LY(e,t,n,r,i,o,s,a,u){var N;if(!((N=t.arguments)!=null&&N.length))return e;let c=t.name.value,l=`${s}.${c}`,d=`${a}.${c}`;o.add(s);let h=new Set;for(let E of t.arguments){let D=E.name.value;if(e.has(D)){h.add(D);continue}ZI(e,E,r,i,`${l}(${D}: ...)`,u,n,`${d}(${D}: ...)`)}return h.size>0&&n.push((0,pt.duplicateArgumentsError)(l,[...h])),e}H.extractArguments=LY;function HI(e){return e.kind===Oe.Kind.NON_NULL_TYPE}H.isTypeRequired=HI;function tL(e,t){switch(e.kind){case Oe.Kind.LIST_TYPE:return t.kind===Oe.Kind.LIST||t.kind===Oe.Kind.NULL;case Oe.Kind.NAMED_TYPE:if(t.kind===Oe.Kind.NULL)return!0;switch(e.name.value){case It.BOOLEAN_SCALAR:return t.kind===Oe.Kind.BOOLEAN;case It.FLOAT_SCALAR:return t.kind===Oe.Kind.INT||t.kind===Oe.Kind.FLOAT;case It.INT_SCALAR:return t.kind===Oe.Kind.INT;case It.STRING_SCALAR:return t.kind===Oe.Kind.STRING;default:return!0}case Oe.Kind.NON_NULL_TYPE:return t.kind===Oe.Kind.NULL?!1:tL(e.type,t)}}function PY(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,Oe.print)(e.defaultValue),i=(0,Oe.print)(t.defaultValue);if(r!==i){n.push((0,pt.incompatibleInputValueDefaultValuesError)(`${e.isArgument?"argument":"input value"} "${e.name}"`,e.originalPath,[...t.subgraphNames],r,i));return}}function xY(e,t,n){let r=t.name.value;e.set(r,{appearances:1,directivesByDirectiveName:n,enumValueDataByValueName:new Map,kind:t.kind,node:(0,fn.getMutableEnumNode)(t),persistedDirectivesData:Qi(),name:r,description:(0,ft.formatDescription)(t.description)})}H.addEnumDefinitionDataByNode=xY;function kY(e,t,n){let r=t.name.value;e.set(r,{directivesByDirectiveName:n,enumValueDataByValueName:new Map,kind:t.kind,name:r})}H.addEnumExtensionDataByNode=kY;function MY(e,t,n,r,i,o){let s=t.name.value;e.set(s,{appearances:1,directivesByDirectiveName:vi(t,new Map,n,r,i,`${o}.${s}`),name:s,node:(0,fn.getMutableEnumValueNode)(t),parentTypeName:o,persistedDirectivesData:Qi(),description:(0,ft.formatDescription)(t.description)})}H.addEnumValueDataByNode=MY;function UY(e,t){for(let n of Yd.INHERITABLE_DIRECTIVE_NAMES)e.get(n)&&(0,Ut.getValueOrDefault)(t,n,()=>[(0,Ut.generateSimpleDirective)(n)]);return t}H.addInheritedDirectivesToFieldData=UY;function CY(e,t,n,r,i,o,s,a,u){let c=t.name.value,l=`${o}.${c}`,d=HR(t,!u,i),h={argumentDataByArgumentName:r,isExternalBySubgraphName:new Map([[a,d.isExternal]]),isInaccessible:i.has(It.INACCESSIBLE),isShareableBySubgraphName:new Map([[a,d.isShareable]]),node:(0,fn.getMutableFieldNode)(t,l),name:c,namedTypeName:(0,fn.getTypeNodeNamedTypeName)(t.type),originalParentTypeName:o,persistedDirectivesData:Qi(),renamedParentTypeName:s,subgraphNames:new Set([a]),type:(0,fn.getMutableTypeNode)(t.type,l),directivesByDirectiveName:i,description:(0,ft.formatDescription)(t.description)};return e.set(c,h),h}H.addFieldDataByNode=CY;function BY(e,t,n,r,i,o,s,a,u){let c=t.name.value,l=nL(t);switch(l){case Oe.Kind.INTERFACE_TYPE_EXTENSION:e.set(c,{directivesByDirectiveName:vi(t,new Map,n,r,i,c),fieldDataByFieldName:new Map,implementedInterfaceTypeNames:Qd(t,new Set,n),isEntity:o,kind:l,name:c});return;default:e.set(c,{directivesByDirectiveName:vi(t,new Map,n,r,i,c),fieldDataByFieldName:new Map,implementedInterfaceTypeNames:Qd(t,new Set,n),isEntity:o,isRootType:s,kind:l,name:c,node:(0,fn.getMutableObjectExtensionNode)(t),persistedDirectivesData:Qi(),renamedTypeName:u||c,subgraphNames:new Set([a])})}}H.addExtensionWithFieldsDataByNode=BY;function VY(e,t,n,r,i,o){let s=t.name.value;e.set(s,{directivesByDirectiveName:vi(t,new Map,o,n,r,s),inputValueDataByValueName:new Map,kind:t.kind,node:(0,fn.getMutableInputObjectNode)(t),persistedDirectivesData:Qi(),name:s,subgraphNames:new Set([i]),description:(0,ft.formatDescription)(t.description)})}H.addInputObjectDefinitionDataByNode=VY;function $Y(e,t,n,r,i){let o=t.name.value;e.set(o,{directivesByDirectiveName:vi(t,new Map,i,n,r,o),inputValueDataByValueName:new Map,kind:t.kind,name:o})}H.addInputObjectExtensionDataByNode=$Y;function ZI(e,t,n,r,i,o,s,a){let u=t.name.value,c=!!a;t.defaultValue&&!tL(t.type,t.defaultValue)&&s.push((0,pt.incompatibleInputValueDefaultValueTypeError)((c?"argument":"input field")+` "${u}"`,i,(0,RY.printTypeNode)(t.type),(0,Oe.print)(t.defaultValue))),e.set(u,{directivesByDirectiveName:vi(t,new Map,s,n,r,i,c),includeDefaultValue:!!t.defaultValue,isArgument:c,name:u,node:(0,fn.getMutableInputValueNode)(t,i),originalPath:i,persistedDirectivesData:Qi(),renamedPath:a||i,requiredSubgraphNames:new Set(HI(t.type)?[o]:[]),subgraphNames:new Set([o]),type:(0,fn.getMutableTypeNode)(t.type,i),defaultValue:t.defaultValue,description:(0,ft.formatDescription)(t.description)})}H.addInputValueDataByNode=ZI;function jY(e,t,n,r,i,o,s){let a=t.name.value;e.set(a,{directivesByDirectiveName:vi(t,new Map,n,r,i,a),fieldDataByFieldName:new Map,isEntity:o,implementedInterfaceTypeNames:Qd(t,new Set,n),kind:t.kind,node:(0,fn.getMutableInterfaceNode)(t),persistedDirectivesData:Qi(),subgraphNames:new Set([s]),name:a,description:(0,ft.formatDescription)(t.description)})}H.addInterfaceDefinitionDataByNode=jY;function GY(e,t,n,r,i,o,s,a,u){let c=t.name.value;e.set(c,{directivesByDirectiveName:vi(t,new Map,n,r,i,c),fieldDataByFieldName:new Map,isEntity:o,isRootType:s,implementedInterfaceTypeNames:Qd(t,new Set,n),kind:t.kind,name:c,node:(0,fn.getMutableObjectNode)(t),persistedDirectivesData:Qi(),renamedTypeName:u||c,subgraphNames:new Set([a]),description:(0,ft.formatDescription)(t.description)})}H.addObjectDefinitionDataByNode=GY;function qY(e,t,n,r,i,o,s){let a=t.name.value,u=new Map;for(let c of t.arguments||[]){let l=`@${a}(${c.name.value}: ...)`;ZI(u,c,r,i,l,s,n,l)}e.set(a,{argumentDataByArgumentName:u,executableLocations:o,name:a,repeatable:t.repeatable,subgraphNames:new Set([s]),description:(0,ft.formatDescription)(t.description)})}H.addPersistedDirectiveDefinitionDataByNode=qY;function KY(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function QY(e,t,n,r,i,o){let s=t.name,a=e.get(s);if(!a){if(i>1)return;let u=new Map;for(let c of t.argumentDataByArgumentName.values())r.add((0,fn.getTypeNodeNamedTypeName)(c.type)),Bh(u,c,n,o);e.set(s,{argumentDataByArgumentName:u,executableLocations:new Set(t.executableLocations),name:s,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(a.subgraphNames.size+1!==i){e.delete(s);return}if(KY(a,t.executableLocations),a.executableLocations.size<1){e.delete(s);return}for(let u of t.argumentDataByArgumentName.values())r.add((0,fn.getTypeNodeNamedTypeName)(u.type)),Bh(a.argumentDataByArgumentName,u,n,o);zd(a,t),a.repeatable&&(a.repeatable=t.repeatable),(0,Ut.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames)}H.upsertPersistedDirectiveDefinitionData=QY;function YY(e,t,n){let r=t.name.value;e.set(r,{directivesByDirectiveName:n,kind:t.kind,node:(0,fn.getMutableScalarNode)(t),persistedDirectivesData:Qi(),name:r,description:(0,ft.formatDescription)(t.description)})}H.addScalarDefinitionDataByNode=YY;function JY(e,t,n){let r=t.name.value;e.set(r,{directivesByDirectiveName:n,kind:t.kind,name:r})}H.addScalarExtensionDataByNode=JY;function ev(e,t,n,r,i,o){for(let s of e){let a=s.name.value;if(t.has(a)){n.push((0,pt.duplicateUnionMemberError)(a,r));continue}let u=i.get(r);u?u.add(a):i.set(r,new Set([a])),Yd.BASE_SCALARS.has(a)||o.add(a),t.set(a,s)}return t}H.extractUniqueUnionMembers=ev;function zY(e,t,n,r,i,o,s){var u;let a=t.name.value;if(!((u=t.types)!=null&&u.length)){n.push((0,pt.noDefinedUnionMembersError)(a));return}e.set(a,{directivesByDirectiveName:vi(t,new Map,n,r,i,a),kind:t.kind,memberByMemberTypeName:ev(t.types,new Map,n,a,o,s),node:(0,fn.getMutableUnionNode)(t),persistedDirectivesData:Qi(),name:a,description:(0,ft.formatDescription)(t.description)})}H.addUnionDefinitionDataByNode=zY;function WY(e,t,n,r,i,o,s){let a=t.name.value;e.set(a,{directivesByDirectiveName:vi(t,new Map,n,r,i,a),kind:t.kind,memberByMemberTypeName:ev(t.types,new Map,n,a,o,s),name:a})}H.addUnionExtensionDataByNode=WY;function XY(e,t){return It.ROOT_TYPES.has(e)||t.has(e)}H.isTypeNameRootType=XY;function HY(e,t){let n=t.get(e);if(!n)return e;switch(n){case Oe.OperationTypeNode.MUTATION:return It.MUTATION;case Oe.OperationTypeNode.SUBSCRIPTION:return It.SUBSCRIPTION;default:return It.QUERY}}H.getRenamedRootTypeName=HY;function nL(e){switch(e.kind){case Oe.Kind.INTERFACE_TYPE_DEFINITION:return Oe.Kind.INTERFACE_TYPE_EXTENSION;case Oe.Kind.OBJECT_TYPE_DEFINITION:return Oe.Kind.OBJECT_TYPE_EXTENSION;default:return e.kind}}H.convertKindForExtension=nL;function Qd(e,t,n){if(!e.interfaces)return t;let r=e.name.value;for(let i of e.interfaces){let o=i.name.value;if(n&&t.has(o)){n.push((0,pt.duplicateInterfaceError)(o,r));continue}t.add(o)}return t}H.extractImplementedInterfaceTypeNames=Qd;function Jd(e,t){if(t)for(let[n,r]of t.directivesByDirectiveName){let i=e.get(n);if(i){i.push(...r);continue}e.set(n,[...r])}}function ZY(e,t){let n=e.get(t.originalParentTypeName);if(!n)return;let r=n.fieldAuthorizationDataByFieldName.get(t.name);if(r){if(r.requiresAuthentication){let i=(0,Ut.generateSimpleDirective)(It.AUTHENTICATED);t.directivesByDirectiveName.set(It.AUTHENTICATED,[i])}if(r.requiredScopes.length>0){let i=(0,Ut.generateRequiresScopesDirective)(r.requiredScopes);t.directivesByDirectiveName.set(It.REQUIRES_SCOPES,[i])}}}function e2(e){for(let t of e.argumentDataByArgumentName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function tv(e,t){let n=[];for(let r of e.values()){if(r.node.kind===Oe.Kind.FIELD_DEFINITION){let i=r;ZY(t,i),e2(i)}for(let i of r.directivesByDirectiveName.values())r.node.directives.push(...i);n.push(r.node)}return n}function lc(e,t,n,r){let i=[];for(let[o,s]of e){let a=n.get(o)||Yd.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(o);if(!a)continue;if(!a.repeatable&&s.length>1){t.push((0,pt.invalidDirectiveError)(o,r,[(0,pt.invalidRepeatedDirectiveErrorMessage)(o,r)]));continue}if(o!==It.KEY){i.push(...s);continue}let u=[],c=new Set,l=[];for(let d of s){let h=d.arguments[0].value;if(h.kind!==Oe.Kind.STRING){l.push((0,pt.invalidKeyDirectiveArgumentErrorMessage)(h.kind));continue}let N=h.value;c.has(N)||(c.add(N),i.push(d),u.push(d))}e.set(o,u),l.length>0&&t.push((0,pt.invalidDirectiveError)(o,r,l))}return i}function t2(e,t,n){if(!n)return;let r=e.memberByMemberTypeName,i=n.memberByMemberTypeName,o=e.name;for(let[s,a]of i){if(!r.has(s)){r.set(s,a);continue}t.push((0,pt.duplicateUnionMemberExtensionError)(s,o))}}function n2(e,t,n,r,i){return Jd(e.directivesByDirectiveName,i),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node.values=tv(e.enumValueDataByValueName,r),e.node}H.getEnumNodeByData=n2;function r2(e,t,n,r,i){return Jd(e.directivesByDirectiveName,i),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node.fields=tv(e.inputValueDataByValueName,r),e.node}H.getInputObjectNodeByData=r2;function i2(e,t,n,r,i){return Jd(e.directivesByDirectiveName,i),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node.fields=tv(e.fieldDataByFieldName,r),e.node.interfaces=(0,ft.setToNamedTypeNodeArray)(e.implementedInterfaceTypeNames),e.node}H.getParentWithFieldsNodeByData=i2;function o2(e,t,n,r){return Jd(e.directivesByDirectiveName,r),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node}H.getScalarNodeByData=o2;function s2(e,t,n){return{description:e.description,directives:lc(e.directivesByDirectiveName,t,n,e.typeName),kind:e.kind,operationTypes:(0,Ut.mapToArrayOfValues)(e.operationTypes)}}H.getSchemaNodeByData=s2;function a2(e,t,n,r){return t2(e,t,r),Jd(e.directivesByDirectiveName,r),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node.types=(0,Ut.mapToArrayOfValues)(e.memberByMemberTypeName),e.node}H.getUnionNodeByData=a2;function u2(e){for(let t of Yd.INHERITABLE_DIRECTIVE_NAMES)e.directivesByDirectiveName.delete(t)}H.removeInheritableDirectivesFromParentWithFieldsData=u2;function zd(e,t){t.description&&(!e.description||e.description.value.length0&&e.persistedDirectivesData.directives.set(It.REQUIRES_SCOPES,[(0,Ut.generateRequiresScopesDirective)(n.requiredScopes)]))}H.pushAuthorizationDirectives=rL;function h2(e,t,n,r,i,o,s){let a=e.get(t.name);if(!a){if(t.isRootType){for(let u of t.fieldDataByFieldName.values())rL(u,s);e.set(t.name,{directivesByDirectiveName:t.directivesByDirectiveName,fieldDataByFieldName:t.fieldDataByFieldName,implementedInterfaceTypeNames:t.implementedInterfaceTypeNames,isRootType:!0,isEntity:!1,kind:Oe.Kind.OBJECT_TYPE_DEFINITION,name:t.name,node:{kind:Oe.Kind.OBJECT_TYPE_DEFINITION,name:(0,ft.stringToNameNode)(t.name)},persistedDirectivesData:t.persistedDirectivesData,renamedTypeName:t.renamedTypeName,subgraphNames:t.subgraphNames});return}o.push((0,pt.noBaseTypeExtensionError)(t.name));return}if(a.kind!==Oe.Kind.OBJECT_TYPE_DEFINITION)throw(0,pt.incompatibleParentKindFatalError)(a.name,Oe.Kind.OBJECT_TYPE_DEFINITION,a.kind);m2(a.persistedDirectivesData,t.persistedDirectivesData),(0,Ut.addIterableValuesToSet)(t.implementedInterfaceTypeNames,a.implementedInterfaceTypeNames);for(let u of t.fieldDataByFieldName.values())nv(a.fieldDataByFieldName,u,n,r,i,o)}H.upsertValidObjectExtensionData=h2;function y2(e){return{kind:Oe.Kind.DIRECTIVE,name:(0,ft.stringToNameNode)(It.DEPRECATED),arguments:[{kind:Oe.Kind.ARGUMENT,name:(0,ft.stringToNameNode)(It.REASON),value:{kind:Oe.Kind.STRING,value:e||It.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function T2(e,t,n,r){let i=[];for(let[o,s]of e){let a=t.get(o);if(a){if(s.length<2){i.push(...s);continue}if(!a.repeatable){r.push((0,pt.invalidRepeatedFederatedDirectiveErrorMessage)(o,n));continue}i.push(...s)}}return i}function rv(e,t,n){let r=[...e.persistedDirectivesData.tags.values()];return e.persistedDirectivesData.isDeprecated&&r.push(y2(e.persistedDirectivesData.deprecatedReason)),r.push(...T2(e.persistedDirectivesData.directives,t,e.name,n)),r}function N2(e,t,n){return e.node.name=(0,ft.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=rv(e,t,n),e.node}H.getNodeWithPersistedDirectivesByData=N2;function E2(e,t,n,r){return e.node.arguments=n,e.node.name=(0,ft.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=rv(e,t,r),e.node}H.getNodeWithPersistedDirectivesByFieldData=E2;function iv(e,t,n){return e.node.name=(0,ft.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=rv(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}H.getNodeWithPersistedDirectivesByInputValueData=iv;function g2(e,t,n,r){let i=[],o=[],s=[],a=`${e.renamedParentTypeName}.${e.name}`;for(let[u,c]of e.argumentDataByArgumentName)e.subgraphNames.size===c.subgraphNames.size?(o.push(u),i.push(iv(c,t,r))):HI(c.type)&&s.push({inputValueName:u,missingSubgraphs:(0,Ut.getEntriesNotInHashSet)(e.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return s.length>0?r.push((0,pt.invalidRequiredInputValueError)(It.FIELD,a,s)):o.length>0&&n.set(a,{argumentNames:o,fieldName:e.name,typeName:e.renamedParentTypeName}),i}H.getValidFieldArgumentNodes=g2;function I2(e,t,n,r,i){let o=[];for(let[s,a]of t.argumentDataByArgumentName){let u=(0,Ut.getEntriesNotInHashSet)(t.subgraphNames,a.subgraphNames);if(u.length>0){a.requiredSubgraphNames.size>0&&o.push({inputValueName:s,missingSubgraphs:u,requiredSubgraphs:[...a.requiredSubgraphNames]});continue}e.push(iv(a,n,r)),i&&i.add(s)}return o.length>0?(r.push((0,pt.invalidRequiredInputValueError)(It.DIRECTIVE_DEFINITION,`@${t.name}`,o)),!1):!0}function v2(e,t,n,r){let i=[];I2(i,t,n,r)&&e.push({arguments:i,kind:Oe.Kind.DIRECTIVE_DEFINITION,locations:(0,ft.setToNameNodeArray)(t.executableLocations),name:(0,ft.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}H.addValidPersistedDirectiveDefinitionNodeByData=v2;function _2(e){let t=0,n=0;for(let[r,i]of e.isShareableBySubgraphName)if(!e.isExternalBySubgraphName.get(r)){if(i){if(n)return!1;t+=1;continue}if(n+=1,t||n>1)return!1}return!0}H.isShareabilityOfAllFieldInstancesValid=_2;function b2(e,t){let n=(0,Ut.getAllMutualEntries)(e,t.subgraphNames);if(n.size<1)return!1;for(let r of n)if(!t.isExternalBySubgraphName.get(r))return!1;return!0}H.isFieldExternalInAllMutualSubgraphs=b2;var WR;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(WR||(H.MergeMethod=WR={}));function Ch(e,t,n){if(e.kind===Oe.Kind.NON_NULL_TYPE)return t.kind!==Oe.Kind.NON_NULL_TYPE?!1:Ch(e.type,t.type,n);if(t.kind===Oe.Kind.NON_NULL_TYPE)return Ch(e,t.type,n);switch(e.kind){case Oe.Kind.NAMED_TYPE:if(t.kind===Oe.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let o=n.get(r);return o?o.has(i):!1}return!1;default:return t.kind===Oe.Kind.LIST_TYPE?Ch(e.type,t.type,n):!1}}H.isTypeValidImplementation=Ch});var ov=R(Gs=>{"use strict";p();m();f();Object.defineProperty(Gs,"__esModule",{value:!0});Gs.consolidateAuthorizationDirectives=Gs.upsertParentsAndChildren=Gs.upsertDirectiveAndSchemaDefinitions=void 0;var at=(ie(),ae(de)),mn=di(),pc=Ss(),Et=fo(),Ba=jr(),dc=Yu(),Kt=$r(),At=Wd(),Xd=Ds();function S2(e,t){let n=new Set,r=[];(0,at.visit)(t,{Directive:{enter(i){let o=i.name.value;if(pc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(o))return e.isSubgraphVersionTwo=!0,!1;if(pc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(o))return!1;e.referencedDirectiveNames.add(o)}},DirectiveDefinition:{enter(i){let o=i.name.value;return n.has(o)?(e.errors.push((0,mn.duplicateDirectiveDefinitionError)(o)),!1):(n.add(o),pc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(o)?(e.isSubgraphVersionTwo=!0,!1):(pc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(o)||(e.directiveDefinitionByDirectiveName.set(o,i),e.customDirectiveDefinitions.set(o,i)),!1))}},OperationTypeDefinition:{enter(i){let o=i.operation,s=e.schemaDefinition.operationTypes.get(o),a=(0,Xd.getTypeNodeNamedTypeName)(i.type);if(s)return(0,mn.duplicateOperationTypeDefinitionError)(o,a,(0,Xd.getTypeNodeNamedTypeName)(s.type)),!1;let u=e.operationTypeNodeByTypeName.get(a);return u?(e.errors.push((0,mn.invalidOperationTypeDefinitionError)(u,a,o)),!1):(e.operationTypeNodeByTypeName.set(a,o),e.schemaDefinition.operationTypes.set(o,i),!1)}},SchemaDefinition:{enter(i){r.push(i),e.schemaDefinition.description=i.description}},SchemaExtension:{enter(i){r.push(i)}}});for(let i of r)(0,At.extractDirectives)(i,e.schemaDefinition.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,Kt.SCHEMA)}Gs.upsertDirectiveAndSchemaDefinitions=S2;function D2(e,t){let n=!1;(0,at.visit)(t,{EnumTypeDefinition:{enter(r){if(e.originalParentTypeName=r.name.value,e.parentDefinitionDataByTypeName.has(e.originalParentTypeName))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),e.originalParentTypeName)),!1;e.lastParentNodeKind=r.kind;let i=e.extractDirectivesAndAuthorization(r,new Map);(0,At.addEnumDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},EnumTypeExtension:{enter(r){e.originalParentTypeName=r.name.value,e.lastParentNodeKind=r.kind,e.isCurrentParentExtension=!0;let i=e.parentExtensionDataByTypeName.get(e.originalParentTypeName);if(i){if(i.kind!==at.Kind.ENUM_TYPE_EXTENSION)return e.errors.push((0,mn.incompatibleExtensionKindsError)(r,i.kind)),!1;e.extractDirectivesAndAuthorization(r,i.directivesByDirectiveName);return}let o=e.extractDirectivesAndAuthorization(r,new Map);(0,At.addEnumExtensionDataByNode)(e.parentExtensionDataByTypeName,r,o)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL,e.isCurrentParentExtension=!1}},EnumValueDefinition:{enter(r){e.childName=r.name.value,e.lastChildNodeKind=r.kind;let i=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.EXTENSIONS):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENTS);if(i.kind!==at.Kind.ENUM_TYPE_DEFINITION&&i.kind!==at.Kind.ENUM_TYPE_EXTENSION)throw(0,mn.unexpectedKindFatalError)(e.childName);if(i.enumValueDataByValueName.has(e.childName)){let o=e.isCurrentParentExtension?(0,mn.duplicateValueExtensionError)("enum",e.originalParentTypeName,e.childName):(0,mn.duplicateEnumValueDefinitionError)(e.childName,e.originalParentTypeName);e.errors.push(o);return}(0,At.addEnumValueDataByNode)(i.enumValueDataByValueName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName)},leave(){e.childName="",e.lastChildNodeKind=at.Kind.NULL}},FieldDefinition:{enter(r){if(e.childName=r.name.value,n&&(e.extractEventDirectivesToConfiguration(r),e.childName===Kt.SERVICE_FIELD||e.childName===Kt.ENTITIES_FIELD))return!1;e.lastChildNodeKind=r.kind,e.lastChildNodeKind=r.kind;let i=(0,Xd.getTypeNodeNamedTypeName)(r.type);pc.BASE_SCALARS.has(i)||e.referencedTypeNames.add(i);let o=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.EXTENSIONS):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENTS);if(o.kind!==at.Kind.OBJECT_TYPE_DEFINITION&&o.kind!==at.Kind.OBJECT_TYPE_EXTENSION&&o.kind!==at.Kind.INTERFACE_TYPE_DEFINITION&&o.kind!==at.Kind.INTERFACE_TYPE_EXTENSION)throw(0,mn.unexpectedKindFatalError)(e.originalParentTypeName);if(o.fieldDataByFieldName.has(e.childName)){e.errors.push((0,mn.duplicateFieldDefinitionError)(e.childName,e.originalParentTypeName));return}let s=(0,At.extractArguments)(new Map,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.parentsWithChildArguments,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName),a=e.extractDirectivesAndAuthorization(r,(0,At.addInheritedDirectivesToFieldData)(o.directivesByDirectiveName,new Map)),u=(0,At.addFieldDataByNode)(o.fieldDataByFieldName,r,e.errors,s,a,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName,e.isSubgraphVersionTwo),c=e.entityContainerByTypeName.get(e.originalParentTypeName);if(c){c.fieldNames.add(e.childName);let h=e.fieldSetContainerByTypeName.get(e.originalParentTypeName);if(h){(0,dc.extractFieldSetValue)(e.childName,h.requires,u.directivesByDirectiveName.get(Kt.REQUIRES)),(0,dc.extractFieldSetValue)(e.childName,h.provides,u.directivesByDirectiveName.get(Kt.PROVIDES));return}}let l=u.directivesByDirectiveName.get(Kt.PROVIDES);if(!l)return;let d=(0,Et.getValueOrDefault)(e.fieldSetContainerByTypeName,e.originalParentTypeName,dc.newFieldSetContainer);(0,dc.extractFieldSetValue)(e.childName,d.provides,l)},leave(){e.childName="",e.lastChildNodeKind=at.Kind.NULL}},InputObjectTypeDefinition:{enter(r){if(e.originalParentTypeName=r.name.value,e.parentDefinitionDataByTypeName.has(e.originalParentTypeName))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),e.originalParentTypeName)),!1;e.lastParentNodeKind=r.kind,(0,At.addInputObjectDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.subgraphName,e.errors)},leave(){e.lastParentNodeKind=at.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(r){e.originalParentTypeName=r.name.value,e.lastParentNodeKind=r.kind,e.isCurrentParentExtension=!0;let i=e.parentExtensionDataByTypeName.get(e.originalParentTypeName);if(i){if(i.kind!==at.Kind.INPUT_OBJECT_TYPE_EXTENSION)return e.errors.push((0,mn.incompatibleExtensionKindsError)(r,i.kind)),!1;(0,At.extractDirectives)(r,i.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName);return}(0,At.addInputObjectExtensionDataByNode)(e.parentExtensionDataByTypeName,r,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.errors)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL,e.isCurrentParentExtension=!1}},InputValueDefinition:{enter(r){let i=r.name.value;if(e.lastParentNodeKind!==at.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==at.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=i;return}e.childName=i,e.lastChildNodeKind=r.kind;let o=`${e.originalParentTypeName}.${i}`,s=(0,Xd.getTypeNodeNamedTypeName)(r.type);pc.BASE_SCALARS.has(s)||e.referencedTypeNames.add(s);let a=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.EXTENSIONS):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENTS);if(a.kind!==at.Kind.INPUT_OBJECT_TYPE_DEFINITION&&a.kind!==at.Kind.INPUT_OBJECT_TYPE_EXTENSION)throw(0,mn.unexpectedKindFatalError)(e.originalParentTypeName);if(a.inputValueDataByValueName.has(i)){e.errors.push((0,mn.duplicateValueExtensionError)("input",e.originalParentTypeName,i));return}(0,At.addInputValueDataByNode)(a.inputValueDataByValueName,r,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,o,e.subgraphName,e.errors)},leave(){e.argumentName="",e.lastChildNodeKind===at.Kind.INPUT_VALUE_DEFINITION&&(e.childName="",e.lastChildNodeKind=at.Kind.NULL)}},InterfaceTypeDefinition:{enter(r){var a;let i=r.name.value;if(e.originalParentTypeName=i,e.lastParentNodeKind=r.kind,(0,Ba.isNodeExtension)(r))return e.handleExtensionWithFields(r);if(e.parentDefinitionDataByTypeName.has(i))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),i)),!1;let o=(0,Ba.isObjectLikeNodeEntity)(r);if(o&&!e.graph.hasNode(i)&&e.graph.addNode(i),(0,At.addInterfaceDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,o,e.subgraphName),!o)return;e.entityInterfaces.set(i,{concreteTypeNames:new Set,interfaceFieldNames:new Set((a=r.fields)==null?void 0:a.map(u=>u.name.value)),interfaceObjectFieldNames:new Set,isInterfaceObject:!1,typeName:i}),(0,Et.upsertEntityContainerProperties)(e.entityContainerByTypeName,w({typeName:e.originalParentTypeName},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}));let s=(0,Et.getValueOrDefault)(e.fieldSetContainerByTypeName,i,dc.newFieldSetContainer);e.extractKeyFieldSets(r,s)},leave(){let r=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.PARENT_EXTENSION_DATA_MAP):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENT_DEFINITION_DATA_MAP);(0,At.removeInheritableDirectivesFromParentWithFieldsData)(r),e.isCurrentParentExtension=!1,e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},InterfaceTypeExtension:{enter(r){return e.originalParentTypeName=r.name.value,e.lastParentNodeKind=r.kind,e.handleExtensionWithFields(r)},leave(){(0,At.removeInheritableDirectivesFromParentWithFieldsData)((0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.PARENT_EXTENSION_DATA_MAP)),e.isCurrentParentExtension=!1,e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},ObjectTypeDefinition:{enter(r){if(e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.SERVICE_OBJECT)return!1;if(n=(0,At.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,At.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),e.graph.hasNode(e.renamedParentTypeName)||e.graph.addNode(e.renamedParentTypeName),e.lastParentNodeKind=r.kind,(0,Ba.addConcreteTypesForImplementedInterfaces)(r,e.concreteTypeNamesByAbstractTypeName),e.handleInterfaceObject(r),(0,Ba.isNodeExtension)(r))return e.handleExtensionWithFields(r,n);if(e.parentDefinitionDataByTypeName.has(e.originalParentTypeName))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),e.originalParentTypeName)),!1;let i=(0,Ba.isObjectLikeNodeEntity)(r);if((0,At.addObjectDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,i,n,e.subgraphName||"N/A",e.renamedParentTypeName),!i)return;let o=(0,Et.getValueOrDefault)(e.fieldSetContainerByTypeName,e.originalParentTypeName,dc.newFieldSetContainer);e.extractKeyFieldSets(r,o),(0,Et.upsertEntityContainerProperties)(e.entityContainerByTypeName,w({typeName:e.originalParentTypeName,keyFieldSets:o.keys},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))},leave(){let r=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.PARENT_EXTENSION_DATA_MAP):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENT_DEFINITION_DATA_MAP);(0,At.removeInheritableDirectivesFromParentWithFieldsData)(r),n=!1,e.isCurrentParentExtension=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},ObjectTypeExtension:{enter(r){return e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.SERVICE_OBJECT?!1:(n=(0,At.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,At.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),e.graph.hasNode(e.renamedParentTypeName)||e.graph.addNode(e.renamedParentTypeName),e.lastParentNodeKind=r.kind,(0,Ba.addConcreteTypesForImplementedInterfaces)(r,e.concreteTypeNamesByAbstractTypeName),e.handleExtensionWithFields(r,n))},leave(){(0,At.removeInheritableDirectivesFromParentWithFieldsData)((0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.PARENT_EXTENSION_DATA_MAP)),n=!1,e.isCurrentParentExtension=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},ScalarTypeDefinition:{enter(r){let i=r.name.value;if(i===Kt.ANY_SCALAR)return!1;if(e.parentDefinitionDataByTypeName.get(i))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),i)),!1;e.originalParentTypeName=i,e.lastParentNodeKind=r.kind;let s=e.extractDirectivesAndAuthorization(r,new Map);(0,At.addScalarDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,s)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},ScalarTypeExtension:{enter(r){if(e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.ANY_SCALAR)return!1;e.lastParentNodeKind=r.kind;let i=e.parentExtensionDataByTypeName.get(e.originalParentTypeName);if(i)return i.kind!==at.Kind.SCALAR_TYPE_EXTENSION?(e.errors.push((0,mn.incompatibleExtensionKindsError)(r,i.kind)),!1):(e.extractDirectivesAndAuthorization(r,i.directivesByDirectiveName),!1);let o=e.extractDirectivesAndAuthorization(r,new Map);return(0,At.addScalarExtensionDataByNode)(e.parentExtensionDataByTypeName,r,o),!1},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},UnionTypeDefinition:{enter(r){if(e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.ENTITY_UNION)return!1;if(e.parentDefinitionDataByTypeName.get(e.originalParentTypeName))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),e.originalParentTypeName)),!1;e.lastParentNodeKind=r.kind,(0,At.addUnionDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.concreteTypeNamesByAbstractTypeName,e.referencedTypeNames)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},UnionTypeExtension:{enter(r){var o;if(e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.ENTITY_UNION)return!1;let i=e.parentExtensionDataByTypeName.get(e.originalParentTypeName);return(o=r.types)!=null&&o.length?(e.lastParentNodeKind=r.kind,(0,Ba.addConcreteTypesForUnion)(r,e.concreteTypeNamesByAbstractTypeName),i?i.kind!==at.Kind.UNION_TYPE_EXTENSION?(e.errors.push((0,mn.incompatibleExtensionKindsError)(r,i.kind)),!1):((0,At.extractDirectives)(r,i.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName),(0,At.extractUniqueUnionMembers)(r.types,i.memberByMemberTypeName,e.errors,e.originalParentTypeName,e.concreteTypeNamesByAbstractTypeName,e.referencedTypeNames),!1):((0,At.addUnionExtensionDataByNode)(e.parentExtensionDataByTypeName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.concreteTypeNamesByAbstractTypeName,e.referencedTypeNames),!1)):(e.errors.push((0,mn.noDefinedUnionMembersError)(e.originalParentTypeName,!0)),!1)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}}})}Gs.upsertParentsAndChildren=D2;function O2(e,t){let n,r=!1;(0,at.visit)(t,{FieldDefinition:{enter(i){e.childName=i.name.value;let o=(0,Xd.getTypeNodeNamedTypeName)(i.type),s=e.leafTypeNamesWithAuthorizationDirectives.has(o);if((!n||!n.hasParentLevelAuthorization)&&!s)return!1;let a=e.renamedParentTypeName||e.originalParentTypeName;n||(n=(0,Et.setAndGetValue)(e.authorizationDataByParentTypeName,a,(0,Et.newAuthorizationData)(a)));let u=(0,Et.getValueOrDefault)(n.fieldAuthorizationDataByFieldName,e.childName,()=>(0,Et.newFieldAuthorizationData)(e.childName));if(!(0,Et.mergeAuthorizationDataByAND)(n,u))return e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1;if(!s)return!1;if(r)return(0,Et.getValueOrDefault)(e.heirFieldAuthorizationDataByTypeName,o,()=>[]).push(u),!1;let c=e.authorizationDataByParentTypeName.get(o);return c&&c.hasParentLevelAuthorization&&!(0,Et.mergeAuthorizationDataByAND)(c,u)&&e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1},leave(){e.childName=""}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},ObjectTypeDefinition:{enter(i){let o=e.parentDefinitionDataByTypeName.get(i.name.value)||e.parentExtensionDataByTypeName.get(i.name.value);if(!o)return!1;e.originalParentTypeName=o.name,e.renamedParentTypeName=o.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}},ObjectTypeExtension:{enter(i){let o=e.parentDefinitionDataByTypeName.get(i.name.value)||e.parentExtensionDataByTypeName.get(i.name.value);if(!o)return!1;e.originalParentTypeName=o.name,e.renamedParentTypeName=o.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}}})}Gs.consolidateAuthorizationDirectives=O2});function _t(){_t.init.call(this)}function Vh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function fL(e){return e._maxListeners===void 0?_t.defaultMaxListeners:e._maxListeners}function aL(e,t,n,r){var i,o,s,a;if(Vh(n),(o=e._events)===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s=="function"?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=fL(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function A2(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function uL(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=A2.bind(r);return i.listener=n,r.wrapFn=i,i}function cL(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(o){for(var s=new Array(o.length),a=0;a{"use strict";p();m();f();fc=typeof Reflect=="object"?Reflect:null,iL=fc&&typeof fc.apply=="function"?fc.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};pL=fc&&typeof fc.ownKeys=="function"?fc.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};oL=Number.isNaN||function(e){return e!=e};dL=_t,_t.EventEmitter=_t,_t.prototype._events=void 0,_t.prototype._eventsCount=0,_t.prototype._maxListeners=void 0;sL=10;Object.defineProperty(_t,"defaultMaxListeners",{enumerable:!0,get:function(){return sL},set:function(e){if(typeof e!="number"||e<0||oL(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");sL=e}}),_t.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_t.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||oL(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},_t.prototype.getMaxListeners=function(){return fL(this)},_t.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(a===void 0)return!1;if(typeof a=="function")iL(a,this,t);else{var u=a.length,c=mL(a,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():function(a,u){for(;u+1=0;r--)this.removeListener(e,t[r]);return this},_t.prototype.listeners=function(e){return cL(this,e,!0)},_t.prototype.rawListeners=function(e){return cL(this,e,!1)},_t.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):lL.call(e,t)},_t.prototype.listenerCount=lL,_t.prototype.eventNames=function(){return this._eventsCount>0?pL(this._events):[]};xr=dL;xr.EventEmitter;xr.defaultMaxListeners;xr.init;xr.listenerCount;xr.EventEmitter;xr.defaultMaxListeners;xr.init;xr.listenerCount});var hL,QIe,YIe,JIe,zIe,WIe,yL=j(()=>{"use strict";p();m();f();sv();sv();xr.once=function(e,t){return new Promise((n,r)=>{function i(...s){o!==void 0&&e.removeListener("error",o),n(s)}let o;t!=="error"&&(o=s=>{e.removeListener(name,i),r(s)},e.once("error",o)),e.once(t,i)})};xr.on=function(e,t){let n=[],r=[],i=null,o=!1,s={next(){return ar(this,null,function*(){let l=n.shift();if(l)return createIterResult(l,!1);if(i){let d=Promise.reject(i);return i=null,d}return o?createIterResult(void 0,!0):new Promise((d,h)=>r.push({resolve:d,reject:h}))})},return(){return ar(this,null,function*(){e.removeListener(t,a),e.removeListener("error",u),o=!0;for(let l of r)l.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)})},throw(l){i=l,e.removeListener(t,a),e.removeListener("error",u)},[Symbol.asyncIterator](){return this}};return e.on(t,a),e.on("error",u),s;function a(...l){let d=r.shift();d?d.resolve(createIterResult(l,!1)):n.push(l)}function u(l){o=!0;let d=r.shift();d?d.reject(l):i=l,s.return()}};({EventEmitter:hL,defaultMaxListeners:QIe,init:YIe,listenerCount:JIe,on:zIe,once:WIe}=xr)});var $h=R((rve,TL)=>{"use strict";p();m();f();function Yi(e){if(typeof e!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=e}typeof Symbol!="undefined"&&(Yi.prototype[Symbol.iterator]=function(){return this});Yi.of=function(){var e=arguments,t=e.length,n=0;return new Yi(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};Yi.empty=function(){var e=new Yi(function(){return{done:!0}});return e};Yi.fromSequence=function(e){var t=0,n=e.length;return new Yi(function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}})};Yi.is=function(e){return e instanceof Yi?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};TL.exports=Yi});var NL=R(av=>{"use strict";p();m();f();av.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer!="undefined";av.SYMBOL_SUPPORT=typeof Symbol!="undefined"});var uv=R((dve,gL)=>{"use strict";p();m();f();var w2=$h(),EL=NL(),F2=EL.ARRAY_BUFFER_SUPPORT,R2=EL.SYMBOL_SUPPORT;function L2(e){return typeof e=="string"||Array.isArray(e)||F2&&ArrayBuffer.isView(e)?w2.fromSequence(e):typeof e!="object"||e===null?null:R2&&typeof e[Symbol.iterator]=="function"?e[Symbol.iterator]():typeof e.next=="function"?e:null}gL.exports=function(t){var n=L2(t);if(!n)throw new Error("obliterator: target is not iterable nor a valid iterator.");return n}});var vL=R((hve,IL)=>{"use strict";p();m();f();var P2=uv();IL.exports=function(t,n){for(var r=arguments.length>1?n:1/0,i=r!==1/0?new Array(r):[],o,s=0,a=P2(t);;){if(s===r)return i;if(o=a.next(),o.done)return s!==n&&(i.length=s),i;i[s++]=o.value}}});var bL=R((Eve,_L)=>{"use strict";p();m();f();var x2=$h(),k2=uv();_L.exports=function(){var t=arguments,n=null,r=-1;return new x2(function(){var o=null;do{if(n===null){if(r++,r>=t.length)return{done:!0};n=k2(t[r])}if(o=n.next(),o.done===!0){n=null;continue}break}while(!0);return o})}});var UL={};Ya(UL,{DirectedGraph:()=>tp,Graph:()=>wt,InvalidArgumentsGraphError:()=>re,MultiDirectedGraph:()=>ip,MultiGraph:()=>rp,MultiUndirectedGraph:()=>op,NotFoundGraphError:()=>ee,UndirectedGraph:()=>np,UsageGraphError:()=>Ae,default:()=>wt});function M2(){let e=arguments[0];for(let t=1,n=arguments.length;te++}function wL(e,t){this.key=e,this.attributes=t,this.clear()}function FL(e,t){this.key=e,this.attributes=t,this.clear()}function RL(e,t){this.key=e,this.attributes=t,this.clear()}function hc(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}function _o(e,t,n,r,i,o,s){let a,u,c,l;if(r=""+r,n===LL){if(a=e._nodes.get(r),!a)throw new ee(`Graph.${t}: could not find the "${r}" node in the graph.`);c=i,l=o}else if(n===xL){if(i=""+i,u=e._edges.get(i),!u)throw new ee(`Graph.${t}: could not find the "${i}" edge in the graph.`);let d=u.source.key,h=u.target.key;if(r===d)a=u.target;else if(r===h)a=u.source;else throw new ee(`Graph.${t}: the "${r}" node is not attached to the "${i}" edge (${d}, ${h}).`);c=o,l=s}else{if(u=e._edges.get(r),!u)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`);n===PL?a=u.source:a=u.target,c=i,l=o}return[a,c,l]}function B2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=_o(this,t,n,r,i,o);return s.attributes[a]}}function V2(e,t,n){e.prototype[t]=function(r,i){let[o]=_o(this,t,n,r,i);return o.attributes}}function $2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=_o(this,t,n,r,i,o);return s.attributes.hasOwnProperty(a)}}function j2(e,t,n){e.prototype[t]=function(r,i,o,s){let[a,u,c]=_o(this,t,n,r,i,o,s);return a.attributes[u]=c,this.emit("nodeAttributesUpdated",{key:a.key,type:"set",attributes:a.attributes,name:u}),this}}function G2(e,t,n){e.prototype[t]=function(r,i,o,s){let[a,u,c]=_o(this,t,n,r,i,o,s);if(typeof c!="function")throw new re(`Graph.${t}: updater should be a function.`);let l=a.attributes,d=c(l[u]);return l[u]=d,this.emit("nodeAttributesUpdated",{key:a.key,type:"set",attributes:a.attributes,name:u}),this}}function q2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=_o(this,t,n,r,i,o);return delete s.attributes[a],this.emit("nodeAttributesUpdated",{key:s.key,type:"remove",attributes:s.attributes,name:a}),this}}function K2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=_o(this,t,n,r,i,o);if(!Kn(a))throw new re(`Graph.${t}: provided attributes are not a plain object.`);return s.attributes=a,this.emit("nodeAttributesUpdated",{key:s.key,type:"replace",attributes:s.attributes}),this}}function Q2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=_o(this,t,n,r,i,o);if(!Kn(a))throw new re(`Graph.${t}: provided attributes are not a plain object.`);return wn(s.attributes,a),this.emit("nodeAttributesUpdated",{key:s.key,type:"merge",attributes:s.attributes,data:a}),this}}function Y2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=_o(this,t,n,r,i,o);if(typeof a!="function")throw new re(`Graph.${t}: provided updater is not a function.`);return s.attributes=a(s.attributes),this.emit("nodeAttributesUpdated",{key:s.key,type:"update",attributes:s.attributes}),this}}function z2(e){J2.forEach(function({name:t,attacher:n}){n(e,t("Node"),LL),n(e,t("Source"),PL),n(e,t("Target"),C2),n(e,t("Opposite"),xL)})}function W2(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return o.attributes[i]}}function X2(e,t,n){e.prototype[t]=function(r){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>1){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let o=""+r,s=""+arguments[1];if(i=ri(this,o,s,n),!i)throw new ee(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes}}function H2(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return o.attributes.hasOwnProperty(i)}}function Z2(e,t,n){e.prototype[t]=function(r,i,o){let s;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=""+r,u=""+i;if(i=arguments[2],o=arguments[3],s=ri(this,a,u,n),!s)throw new ee(`Graph.${t}: could not find an edge for the given path ("${a}" - "${u}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,s=this._edges.get(r),!s)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return s.attributes[i]=o,this.emit("edgeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:i}),this}}function eJ(e,t,n){e.prototype[t]=function(r,i,o){let s;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=""+r,u=""+i;if(i=arguments[2],o=arguments[3],s=ri(this,a,u,n),!s)throw new ee(`Graph.${t}: could not find an edge for the given path ("${a}" - "${u}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,s=this._edges.get(r),!s)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof o!="function")throw new re(`Graph.${t}: updater should be a function.`);return s.attributes[i]=o(s.attributes[i]),this.emit("edgeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:i}),this}}function tJ(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return delete o.attributes[i],this.emit("edgeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:i}),this}}function nJ(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Kn(i))throw new re(`Graph.${t}: provided attributes are not a plain object.`);return o.attributes=i,this.emit("edgeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}function rJ(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Kn(i))throw new re(`Graph.${t}: provided attributes are not a plain object.`);return wn(o.attributes,i),this.emit("edgeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:i}),this}}function iJ(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof i!="function")throw new re(`Graph.${t}: provided updater is not a function.`);return o.attributes=i(o.attributes),this.emit("edgeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}function sJ(e){oJ.forEach(function({name:t,attacher:n}){n(e,t("Edge"),"mixed"),n(e,t("DirectedEdge"),"directed"),n(e,t("UndirectedEdge"),"undirected")})}function uJ(e,t,n,r){let i=!1;for(let o in t){if(o===r)continue;let s=t[o];if(i=n(s.key,s.attributes,s.source.key,s.target.key,s.source.attributes,s.target.attributes,s.undirected),e&&i)return s.key}}function cJ(e,t,n,r){let i,o,s,a=!1;for(let u in t)if(u!==r){i=t[u];do{if(o=i.source,s=i.target,a=n(i.key,i.attributes,o.key,s.key,o.attributes,s.attributes,i.undirected),e&&a)return i.key;i=i.next}while(i!==void 0)}}function cv(e,t){let n=Object.keys(e),r=n.length,i,o=0;return new kr.default(function(){do if(i)i=i.next;else{if(o>=r)return{done:!0};let a=n[o++];if(a===t){i=void 0;continue}i=e[a]}while(!i);return{done:!1,value:{edge:i.key,attributes:i.attributes,source:i.source.key,target:i.target.key,sourceAttributes:i.source.attributes,targetAttributes:i.target.attributes,undirected:i.undirected}}})}function lJ(e,t,n,r){let i=t[n];if(!i)return;let o=i.source,s=i.target;if(r(i.key,i.attributes,o.key,s.key,o.attributes,s.attributes,i.undirected)&&e)return i.key}function dJ(e,t,n,r){let i=t[n];if(!i)return;let o=!1;do{if(o=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&o)return i.key;i=i.next}while(i!==void 0)}function lv(e,t){let n=e[t];return n.next!==void 0?new kr.default(function(){if(!n)return{done:!0};let r={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:r}}):kr.default.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function pJ(e,t){if(e.size===0)return[];if(t==="mixed"||t===e.type)return typeof Array.from=="function"?Array.from(e._edges.keys()):(0,dv.default)(e._edges.keys(),e._edges.size);let n=t==="undirected"?e.undirectedSize:e.directedSize,r=new Array(n),i=t==="undirected",o=e._edges.values(),s=0,a,u;for(;a=o.next(),a.done!==!0;)u=a.value,u.undirected===i&&(r[s++]=u.key);return r}function kL(e,t,n,r){if(t.size===0)return;let i=n!=="mixed"&&n!==t.type,o=n==="undirected",s,a,u=!1,c=t._edges.values();for(;s=c.next(),s.done!==!0;){if(a=s.value,i&&a.undirected!==o)continue;let{key:l,attributes:d,source:h,target:N}=a;if(u=r(l,d,h.key,N.key,h.attributes,N.attributes,a.undirected),e&&u)return l}}function fJ(e,t){if(e.size===0)return kr.default.empty();let n=t!=="mixed"&&t!==e.type,r=t==="undirected",i=e._edges.values();return new kr.default(function(){let s,a;for(;;){if(s=i.next(),s.done)return s;if(a=s.value,!(n&&a.undirected!==r))break}return{value:{edge:a.key,attributes:a.attributes,source:a.source.key,target:a.target.key,sourceAttributes:a.source.attributes,targetAttributes:a.target.attributes,undirected:a.undirected},done:!1}})}function pv(e,t,n,r,i,o){let s=t?cJ:uJ,a;if(n!=="undirected"&&(r!=="out"&&(a=s(e,i.in,o),e&&a)||r!=="in"&&(a=s(e,i.out,o,r?void 0:i.key),e&&a))||n!=="directed"&&(a=s(e,i.undirected,o),e&&a))return a}function mJ(e,t,n,r){let i=[];return pv(!1,e,t,n,r,function(o){i.push(o)}),i}function hJ(e,t,n){let r=kr.default.empty();return e!=="undirected"&&(t!=="out"&&typeof n.in!="undefined"&&(r=(0,Ji.default)(r,cv(n.in))),t!=="in"&&typeof n.out!="undefined"&&(r=(0,Ji.default)(r,cv(n.out,t?void 0:n.key)))),e!=="directed"&&typeof n.undirected!="undefined"&&(r=(0,Ji.default)(r,cv(n.undirected))),r}function fv(e,t,n,r,i,o,s){let a=n?dJ:lJ,u;if(t!=="undirected"&&(typeof i.in!="undefined"&&r!=="out"&&(u=a(e,i.in,o,s),e&&u)||typeof i.out!="undefined"&&r!=="in"&&(r||i.key!==o)&&(u=a(e,i.out,o,s),e&&u))||t!=="directed"&&typeof i.undirected!="undefined"&&(u=a(e,i.undirected,o,s),e&&u))return u}function yJ(e,t,n,r,i){let o=[];return fv(!1,e,t,n,r,i,function(s){o.push(s)}),o}function TJ(e,t,n,r){let i=kr.default.empty();return e!=="undirected"&&(typeof n.in!="undefined"&&t!=="out"&&r in n.in&&(i=(0,Ji.default)(i,lv(n.in,r))),typeof n.out!="undefined"&&t!=="in"&&r in n.out&&(t||n.key!==r)&&(i=(0,Ji.default)(i,lv(n.out,r)))),e!=="directed"&&typeof n.undirected!="undefined"&&r in n.undirected&&(i=(0,Ji.default)(i,lv(n.undirected,r))),i}function NJ(e,t){let{name:n,type:r,direction:i}=t;e.prototype[n]=function(o,s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];if(!arguments.length)return pJ(this,r);if(arguments.length===1){o=""+o;let a=this._nodes.get(o);if(typeof a=="undefined")throw new ee(`Graph.${n}: could not find the "${o}" node in the graph.`);return mJ(this.multi,r==="mixed"?this.type:r,i,a)}if(arguments.length===2){o=""+o,s=""+s;let a=this._nodes.get(o);if(!a)throw new ee(`Graph.${n}: could not find the "${o}" source node in the graph.`);if(!this._nodes.has(s))throw new ee(`Graph.${n}: could not find the "${s}" target node in the graph.`);return yJ(r,this.multi,i,a,s)}throw new re(`Graph.${n}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function EJ(e,t){let{name:n,type:r,direction:i}=t,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(c,l,d){if(!(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)){if(arguments.length===1)return d=c,kL(!1,this,r,d);if(arguments.length===2){c=""+c,d=l;let h=this._nodes.get(c);if(typeof h=="undefined")throw new ee(`Graph.${o}: could not find the "${c}" node in the graph.`);return pv(!1,this.multi,r==="mixed"?this.type:r,i,h,d)}if(arguments.length===3){c=""+c,l=""+l;let h=this._nodes.get(c);if(!h)throw new ee(`Graph.${o}: could not find the "${c}" source node in the graph.`);if(!this._nodes.has(l))throw new ee(`Graph.${o}: could not find the "${l}" target node in the graph.`);return fv(!1,r,this.multi,i,h,l,d)}throw new re(`Graph.${o}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)}};let s="map"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){let c=Array.prototype.slice.call(arguments),l=c.pop(),d;if(c.length===0){let h=0;r!=="directed"&&(h+=this.undirectedSize),r!=="undirected"&&(h+=this.directedSize),d=new Array(h);let N=0;c.push((E,D,A,F,Y,J,Z)=>{d[N++]=l(E,D,A,F,Y,J,Z)})}else d=[],c.push((h,N,E,D,A,F,Y)=>{d.push(l(h,N,E,D,A,F,Y))});return this[o].apply(this,c),d};let a="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){let c=Array.prototype.slice.call(arguments),l=c.pop(),d=[];return c.push((h,N,E,D,A,F,Y)=>{l(h,N,E,D,A,F,Y)&&d.push(h)}),this[o].apply(this,c),d};let u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){let c=Array.prototype.slice.call(arguments);if(c.length<2||c.length>4)throw new re(`Graph.${u}: invalid number of arguments (expecting 2, 3 or 4 and got ${c.length}).`);if(typeof c[c.length-1]=="function"&&typeof c[c.length-2]!="function")throw new re(`Graph.${u}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let l,d;c.length===2?(l=c[0],d=c[1],c=[]):c.length===3?(l=c[1],d=c[2],c=[c[0]]):c.length===4&&(l=c[2],d=c[3],c=[c[0],c[1]]);let h=d;return c.push((N,E,D,A,F,Y,J)=>{h=l(h,N,E,D,A,F,Y,J)}),this[o].apply(this,c),h}}function gJ(e,t){let{name:n,type:r,direction:i}=t,o="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(u,c,l){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return!1;if(arguments.length===1)return l=u,kL(!0,this,r,l);if(arguments.length===2){u=""+u,l=c;let d=this._nodes.get(u);if(typeof d=="undefined")throw new ee(`Graph.${o}: could not find the "${u}" node in the graph.`);return pv(!0,this.multi,r==="mixed"?this.type:r,i,d,l)}if(arguments.length===3){u=""+u,c=""+c;let d=this._nodes.get(u);if(!d)throw new ee(`Graph.${o}: could not find the "${u}" source node in the graph.`);if(!this._nodes.has(c))throw new ee(`Graph.${o}: could not find the "${c}" target node in the graph.`);return fv(!0,r,this.multi,i,d,c,l)}throw new re(`Graph.${o}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)};let s="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){let u=Array.prototype.slice.call(arguments),c=u.pop();return u.push((d,h,N,E,D,A,F)=>c(d,h,N,E,D,A,F)),!!this[o].apply(this,u)};let a="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){let u=Array.prototype.slice.call(arguments),c=u.pop();return u.push((d,h,N,E,D,A,F)=>!c(d,h,N,E,D,A,F)),!this[o].apply(this,u)}}function IJ(e,t){let{name:n,type:r,direction:i}=t,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(s,a){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return kr.default.empty();if(!arguments.length)return fJ(this,r);if(arguments.length===1){s=""+s;let u=this._nodes.get(s);if(!u)throw new ee(`Graph.${o}: could not find the "${s}" node in the graph.`);return hJ(r,i,u)}if(arguments.length===2){s=""+s,a=""+a;let u=this._nodes.get(s);if(!u)throw new ee(`Graph.${o}: could not find the "${s}" source node in the graph.`);if(!this._nodes.has(a))throw new ee(`Graph.${o}: could not find the "${a}" target node in the graph.`);return TJ(r,i,u,a)}throw new re(`Graph.${o}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function vJ(e){aJ.forEach(t=>{NJ(e,t),EJ(e,t),gJ(e,t),IJ(e,t)})}function Gh(){this.A=null,this.B=null}function Hd(e,t,n,r,i){for(let o in r){let s=r[o],a=s.source,u=s.target,c=a===n?u:a;if(t&&t.has(c.key))continue;let l=i(c.key,c.attributes);if(e&&l)return c.key}}function mv(e,t,n,r,i){if(t!=="mixed"){if(t==="undirected")return Hd(e,null,r,r.undirected,i);if(typeof n=="string")return Hd(e,null,r,r[n],i)}let o=new Gh,s;if(t!=="undirected"){if(n!=="out"){if(s=Hd(e,null,r,r.in,i),e&&s)return s;o.wrap(r.in)}if(n!=="in"){if(s=Hd(e,o,r,r.out,i),e&&s)return s;o.wrap(r.out)}}if(t!=="directed"&&(s=Hd(e,o,r,r.undirected,i),e&&s))return s}function bJ(e,t,n){if(e!=="mixed"){if(e==="undirected")return Object.keys(n.undirected);if(typeof t=="string")return Object.keys(n[t])}let r=[];return mv(!1,e,t,n,function(i){r.push(i)}),r}function Zd(e,t,n){let r=Object.keys(n),i=r.length,o=0;return new kr.default(function(){let a=null;do{if(o>=i)return e&&e.wrap(n),{done:!0};let u=n[r[o++]],c=u.source,l=u.target;if(a=c===t?l:c,e&&e.has(a.key)){a=null;continue}}while(a===null);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}})}function SJ(e,t,n){if(e!=="mixed"){if(e==="undirected")return Zd(null,n,n.undirected);if(typeof t=="string")return Zd(null,n,n[t])}let r=kr.default.empty(),i=new Gh;return e!=="undirected"&&(t!=="out"&&(r=(0,Ji.default)(r,Zd(i,n,n.in))),t!=="in"&&(r=(0,Ji.default)(r,Zd(i,n,n.out)))),e!=="directed"&&(r=(0,Ji.default)(r,Zd(i,n,n.undirected))),r}function DJ(e,t){let{name:n,type:r,direction:i}=t;e.prototype[n]=function(o){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];o=""+o;let s=this._nodes.get(o);if(typeof s=="undefined")throw new ee(`Graph.${n}: could not find the "${o}" node in the graph.`);return bJ(r==="mixed"?this.type:r,i,s)}}function OJ(e,t){let{name:n,type:r,direction:i}=t,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(c,l){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;c=""+c;let d=this._nodes.get(c);if(typeof d=="undefined")throw new ee(`Graph.${o}: could not find the "${c}" node in the graph.`);mv(!1,r==="mixed"?this.type:r,i,d,l)};let s="map"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(c,l){let d=[];return this[o](c,(h,N)=>{d.push(l(h,N))}),d};let a="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(c,l){let d=[];return this[o](c,(h,N)=>{l(h,N)&&d.push(h)}),d};let u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(c,l,d){if(arguments.length<3)throw new re(`Graph.${u}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let h=d;return this[o](c,(N,E)=>{h=l(h,N,E)}),h}}function AJ(e,t){let{name:n,type:r,direction:i}=t,o=n[0].toUpperCase()+n.slice(1,-1),s="find"+o;e.prototype[s]=function(c,l){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;c=""+c;let d=this._nodes.get(c);if(typeof d=="undefined")throw new ee(`Graph.${s}: could not find the "${c}" node in the graph.`);return mv(!0,r==="mixed"?this.type:r,i,d,l)};let a="some"+o;e.prototype[a]=function(c,l){return!!this[s](c,l)};let u="every"+o;e.prototype[u]=function(c,l){return!this[s](c,(h,N)=>!l(h,N))}}function wJ(e,t){let{name:n,type:r,direction:i}=t,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return kr.default.empty();s=""+s;let a=this._nodes.get(s);if(typeof a=="undefined")throw new ee(`Graph.${o}: could not find the "${s}" node in the graph.`);return SJ(r==="mixed"?this.type:r,i,a)}}function FJ(e){_J.forEach(t=>{DJ(e,t),OJ(e,t),AJ(e,t),wJ(e,t)})}function jh(e,t,n,r,i){let o=r._nodes.values(),s=r.type,a,u,c,l,d,h,N;for(;a=o.next(),a.done!==!0;){let E=!1;if(u=a.value,s!=="undirected"){l=u.out;for(c in l){d=l[c];do{if(h=d.target,E=!0,N=i(u.key,h.key,u.attributes,h.attributes,d.key,d.attributes,d.undirected),e&&N)return d;d=d.next}while(d)}}if(s!=="directed"){l=u.undirected;for(c in l)if(!(t&&u.key>c)){d=l[c];do{if(h=d.target,h.key!==c&&(h=d.source),E=!0,N=i(u.key,h.key,u.attributes,h.attributes,d.key,d.attributes,d.undirected),e&&N)return d;d=d.next}while(d)}}if(n&&!E&&(N=i(u.key,null,u.attributes,null,null,null,null),e&&N))return null}}function RJ(e,t){let n={key:e};return AL(t.attributes)||(n.attributes=wn({},t.attributes)),n}function LJ(e,t,n){let r={key:t,source:n.source.key,target:n.target.key};return AL(n.attributes)||(r.attributes=wn({},n.attributes)),e==="mixed"&&n.undirected&&(r.undirected=!0),r}function PJ(e){if(!Kn(e))throw new re('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new re("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!Kn(e.attributes)||e.attributes===null))throw new re("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function xJ(e){if(!Kn(e))throw new re('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new re("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new re("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!Kn(e.attributes)||e.attributes===null))throw new re("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&typeof e.undirected!="boolean")throw new re("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}function BJ(e,t,n){if(n&&!Kn(n))throw new re(`Graph.addNode: invalid attributes. Expecting an object but got "${n}"`);if(t=""+t,n=n||{},e._nodes.has(t))throw new Ae(`Graph.addNode: the "${t}" node already exist in the graph.`);let r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function OL(e,t,n){let r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function ML(e,t,n,r,i,o,s,a){if(!r&&e.type==="undirected")throw new Ae(`Graph.${t}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Ae(`Graph.${t}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`);if(a&&!Kn(a))throw new re(`Graph.${t}: invalid attributes. Expecting an object but got "${a}"`);if(o=""+o,s=""+s,a=a||{},!e.allowSelfLoops&&o===s)throw new Ae(`Graph.${t}: source & target are the same ("${o}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let u=e._nodes.get(o),c=e._nodes.get(s);if(!u)throw new ee(`Graph.${t}: source node "${o}" not found.`);if(!c)throw new ee(`Graph.${t}: target node "${s}" not found.`);let l={key:null,undirected:r,source:o,target:s,attributes:a};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Ae(`Graph.${t}: the "${i}" edge already exists in the graph.`);if(!e.multi&&(r?typeof u.undirected[s]!="undefined":typeof u.out[s]!="undefined"))throw new Ae(`Graph.${t}: an edge linking "${o}" to "${s}" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`);let d=new hc(r,i,u,c,a);e._edges.set(i,d);let h=o===s;return r?(u.undirectedDegree++,c.undirectedDegree++,h&&(u.undirectedLoops++,e._undirectedSelfLoopCount++)):(u.outDegree++,c.inDegree++,h&&(u.directedLoops++,e._directedSelfLoopCount++)),e.multi?d.attachMulti():d.attach(),r?e._undirectedSize++:e._directedSize++,l.key=i,e.emit("edgeAdded",l),i}function VJ(e,t,n,r,i,o,s,a,u){if(!r&&e.type==="undirected")throw new Ae(`Graph.${t}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Ae(`Graph.${t}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`);if(a){if(u){if(typeof a!="function")throw new re(`Graph.${t}: invalid updater function. Expecting a function but got "${a}"`)}else if(!Kn(a))throw new re(`Graph.${t}: invalid attributes. Expecting an object but got "${a}"`)}o=""+o,s=""+s;let c;if(u&&(c=a,a=void 0),!e.allowSelfLoops&&o===s)throw new Ae(`Graph.${t}: source & target are the same ("${o}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let l=e._nodes.get(o),d=e._nodes.get(s),h,N;if(!n&&(h=e._edges.get(i),h)){if((h.source.key!==o||h.target.key!==s)&&(!r||h.source.key!==s||h.target.key!==o))throw new Ae(`Graph.${t}: inconsistency detected when attempting to merge the "${i}" edge with "${o}" source & "${s}" target vs. ("${h.source.key}", "${h.target.key}").`);N=h}if(!N&&!e.multi&&l&&(N=r?l.undirected[s]:l.out[s]),N){let Y=[N.key,!1,!1,!1];if(u?!c:!a)return Y;if(u){let J=N.attributes;N.attributes=c(J),e.emit("edgeAttributesUpdated",{type:"replace",key:N.key,attributes:N.attributes})}else wn(N.attributes,a),e.emit("edgeAttributesUpdated",{type:"merge",key:N.key,attributes:N.attributes,data:a});return Y}a=a||{},u&&c&&(a=c(a));let E={key:null,undirected:r,source:o,target:s,attributes:a};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Ae(`Graph.${t}: the "${i}" edge already exists in the graph.`);let D=!1,A=!1;l||(l=OL(e,o,{}),D=!0,o===s&&(d=l,A=!0)),d||(d=OL(e,s,{}),A=!0),h=new hc(r,i,l,d,a),e._edges.set(i,h);let F=o===s;return r?(l.undirectedDegree++,d.undirectedDegree++,F&&(l.undirectedLoops++,e._undirectedSelfLoopCount++)):(l.outDegree++,d.inDegree++,F&&(l.directedLoops++,e._directedSelfLoopCount++)),e.multi?h.attachMulti():h.attach(),r?e._undirectedSize++:e._directedSize++,E.key=i,e.emit("edgeAdded",E),[i,!0,D,A]}function mc(e,t){e._edges.delete(t.key);let{source:n,target:r,attributes:i}=t,o=t.undirected,s=n===r;o?(n.undirectedDegree--,r.undirectedDegree--,s&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,s&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),o?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:o})}function yc(e){e.from=function(t,n){let r=wn({},t.options,n),i=new e(r);return i.import(t),i}}var kr,dv,Ji,wn,ep,re,ee,Ae,LL,PL,C2,xL,J2,oJ,aJ,_J,kJ,MJ,DL,UJ,CJ,wt,tp,np,rp,ip,op,CL=j(()=>{"use strict";p();m();f();yL();kr=Ap($h()),dv=Ap(vL()),Ji=Ap(bL());wn=M2;typeof Object.assign=="function"&&(wn=Object.assign);ep=class extends Error{constructor(t){super(),this.name="GraphError",this.message=t}},re=class e extends ep{constructor(t){super(t),this.name="InvalidArgumentsGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e.prototype.constructor)}},ee=class e extends ep{constructor(t){super(t),this.name="NotFoundGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e.prototype.constructor)}},Ae=class e extends ep{constructor(t){super(t),this.name="UsageGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e.prototype.constructor)}};wL.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}};FL.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}};RL.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}};hc.prototype.attach=function(){let e="out",t="in";this.undirected&&(e=t="undirected");let n=this.source.key,r=this.target.key;this.source[e][r]=this,!(this.undirected&&n===r)&&(this.target[t][n]=this)};hc.prototype.attachMulti=function(){let e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");let i=this.source[e],o=i[r];if(typeof o=="undefined"){i[r]=this,this.undirected&&n===r||(this.target[t][n]=this);return}o.previous=this,this.next=o,i[r]=this,this.target[t][n]=this};hc.prototype.detach=function(){let e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]};hc.prototype.detachMulti=function(){let e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),this.previous===void 0?this.next===void 0?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,this.next!==void 0&&(this.next.previous=this.previous))};LL=0,PL=1,C2=2,xL=3;J2=[{name:e=>`get${e}Attribute`,attacher:B2},{name:e=>`get${e}Attributes`,attacher:V2},{name:e=>`has${e}Attribute`,attacher:$2},{name:e=>`set${e}Attribute`,attacher:j2},{name:e=>`update${e}Attribute`,attacher:G2},{name:e=>`remove${e}Attribute`,attacher:q2},{name:e=>`replace${e}Attributes`,attacher:K2},{name:e=>`merge${e}Attributes`,attacher:Q2},{name:e=>`update${e}Attributes`,attacher:Y2}];oJ=[{name:e=>`get${e}Attribute`,attacher:W2},{name:e=>`get${e}Attributes`,attacher:X2},{name:e=>`has${e}Attribute`,attacher:H2},{name:e=>`set${e}Attribute`,attacher:Z2},{name:e=>`update${e}Attribute`,attacher:eJ},{name:e=>`remove${e}Attribute`,attacher:tJ},{name:e=>`replace${e}Attributes`,attacher:nJ},{name:e=>`merge${e}Attributes`,attacher:rJ},{name:e=>`update${e}Attributes`,attacher:iJ}];aJ=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];_J=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];Gh.prototype.wrap=function(e){this.A===null?this.A=e:this.B===null&&(this.B=e)};Gh.prototype.has=function(e){return this.A!==null&&e in this.A||this.B!==null&&e in this.B};kJ=U2(),MJ=new Set(["directed","undirected","mixed"]),DL=new Set(["domain","_events","_eventsCount","_maxListeners"]),UJ=[{name:e=>`${e}Edge`,generateKey:!0},{name:e=>`${e}DirectedEdge`,generateKey:!0,type:"directed"},{name:e=>`${e}UndirectedEdge`,generateKey:!0,type:"undirected"},{name:e=>`${e}EdgeWithKey`},{name:e=>`${e}DirectedEdgeWithKey`,type:"directed"},{name:e=>`${e}UndirectedEdgeWithKey`,type:"undirected"}],CJ={allowSelfLoops:!0,multi:!1,type:"mixed"};wt=class e extends hL{constructor(t){if(super(),t=wn({},CJ,t),typeof t.multi!="boolean")throw new re(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${t.multi}".`);if(!MJ.has(t.type))throw new re(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${t.type}".`);if(typeof t.allowSelfLoops!="boolean")throw new re(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${t.allowSelfLoops}".`);let n=t.type==="mixed"?wL:t.type==="directed"?FL:RL;ni(this,"NodeDataClass",n);let r="geid_"+kJ()+"_",i=0,o=()=>{let s;do s=r+i++;while(this._edges.has(s));return s};ni(this,"_attributes",{}),ni(this,"_nodes",new Map),ni(this,"_edges",new Map),ni(this,"_directedSize",0),ni(this,"_undirectedSize",0),ni(this,"_directedSelfLoopCount",0),ni(this,"_undirectedSelfLoopCount",0),ni(this,"_edgeKeyGenerator",o),ni(this,"_options",t),DL.forEach(s=>ni(this,s,this[s])),_i(this,"order",()=>this._nodes.size),_i(this,"size",()=>this._edges.size),_i(this,"directedSize",()=>this._directedSize),_i(this,"undirectedSize",()=>this._undirectedSize),_i(this,"selfLoopCount",()=>this._directedSelfLoopCount+this._undirectedSelfLoopCount),_i(this,"directedSelfLoopCount",()=>this._directedSelfLoopCount),_i(this,"undirectedSelfLoopCount",()=>this._undirectedSelfLoopCount),_i(this,"multi",this._options.multi),_i(this,"type",this._options.type),_i(this,"allowSelfLoops",this._options.allowSelfLoops),_i(this,"implementation",()=>"graphology")}_resetInstanceCounters(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0}hasNode(t){return this._nodes.has(""+t)}hasDirectedEdge(t,n){if(this.type==="undirected")return!1;if(arguments.length===1){let r=""+t,i=this._edges.get(r);return!!i&&!i.undirected}else if(arguments.length===2){t=""+t,n=""+n;let r=this._nodes.get(t);return r?r.out.hasOwnProperty(n):!1}throw new re(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasUndirectedEdge(t,n){if(this.type==="directed")return!1;if(arguments.length===1){let r=""+t,i=this._edges.get(r);return!!i&&i.undirected}else if(arguments.length===2){t=""+t,n=""+n;let r=this._nodes.get(t);return r?r.undirected.hasOwnProperty(n):!1}throw new re(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasEdge(t,n){if(arguments.length===1){let r=""+t;return this._edges.has(r)}else if(arguments.length===2){t=""+t,n=""+n;let r=this._nodes.get(t);return r?typeof r.out!="undefined"&&r.out.hasOwnProperty(n)||typeof r.undirected!="undefined"&&r.undirected.hasOwnProperty(n):!1}throw new re(`Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}directedEdge(t,n){if(this.type==="undirected")return;if(t=""+t,n=""+n,this.multi)throw new Ae("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");let r=this._nodes.get(t);if(!r)throw new ee(`Graph.directedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ee(`Graph.directedEdge: could not find the "${n}" target node in the graph.`);let i=r.out&&r.out[n]||void 0;if(i)return i.key}undirectedEdge(t,n){if(this.type==="directed")return;if(t=""+t,n=""+n,this.multi)throw new Ae("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");let r=this._nodes.get(t);if(!r)throw new ee(`Graph.undirectedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ee(`Graph.undirectedEdge: could not find the "${n}" target node in the graph.`);let i=r.undirected&&r.undirected[n]||void 0;if(i)return i.key}edge(t,n){if(this.multi)throw new Ae("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.edge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ee(`Graph.edge: could not find the "${n}" target node in the graph.`);let i=r.out&&r.out[n]||r.undirected&&r.undirected[n]||void 0;if(i)return i.key}areDirectedNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areDirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in||n in r.out}areOutNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areOutNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.out}areInNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areInNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in}areUndirectedNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areUndirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="directed"?!1:n in r.undirected}areNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&(n in r.in||n in r.out)||this.type!=="directed"&&n in r.undirected}areInboundNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areInboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.in||this.type!=="directed"&&n in r.undirected}areOutboundNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areOutboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.out||this.type!=="directed"&&n in r.undirected}inDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.inDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree}outDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.outDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree}directedDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.directedDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree}undirectedDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.undirectedDegree: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree}inboundDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.inboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree),r}outboundDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.outboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.outDegree),r}degree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.degree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree),r}inDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.inDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree-n.directedLoops}outDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.outDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree-n.directedLoops}directedDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.directedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree-n.directedLoops*2}undirectedDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.undirectedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree-n.undirectedLoops*2}inboundDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.inboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree,i+=n.directedLoops),r-i}outboundDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.outboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.outDegree,i+=n.directedLoops),r-i}degreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.degreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree,i+=n.directedLoops*2),r-i}source(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.source: could not find the "${t}" edge in the graph.`);return n.source.key}target(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.target: could not find the "${t}" edge in the graph.`);return n.target.key}extremities(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.extremities: could not find the "${t}" edge in the graph.`);return[n.source.key,n.target.key]}opposite(t,n){t=""+t,n=""+n;let r=this._edges.get(n);if(!r)throw new ee(`Graph.opposite: could not find the "${n}" edge in the graph.`);let i=r.source.key,o=r.target.key;if(t===i)return o;if(t===o)return i;throw new ee(`Graph.opposite: the "${t}" node is not attached to the "${n}" edge (${i}, ${o}).`)}hasExtremity(t,n){t=""+t,n=""+n;let r=this._edges.get(t);if(!r)throw new ee(`Graph.hasExtremity: could not find the "${t}" edge in the graph.`);return r.source.key===n||r.target.key===n}isUndirected(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.isUndirected: could not find the "${t}" edge in the graph.`);return n.undirected}isDirected(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.isDirected: could not find the "${t}" edge in the graph.`);return!n.undirected}isSelfLoop(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.isSelfLoop: could not find the "${t}" edge in the graph.`);return n.source===n.target}addNode(t,n){return BJ(this,t,n).key}mergeNode(t,n){if(n&&!Kn(n))throw new re(`Graph.mergeNode: invalid attributes. Expecting an object but got "${n}"`);t=""+t,n=n||{};let r=this._nodes.get(t);return r?(n&&(wn(r.attributes,n),this.emit("nodeAttributesUpdated",{type:"merge",key:t,attributes:r.attributes,data:n})),[t,!1]):(r=new this.NodeDataClass(t,n),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:n}),[t,!0])}updateNode(t,n){if(n&&typeof n!="function")throw new re(`Graph.updateNode: invalid updater function. Expecting a function but got "${n}"`);t=""+t;let r=this._nodes.get(t);if(r){if(n){let o=r.attributes;r.attributes=n(o),this.emit("nodeAttributesUpdated",{type:"replace",key:t,attributes:r.attributes})}return[t,!1]}let i=n?n({}):{};return r=new this.NodeDataClass(t,i),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:i}),[t,!0]}dropNode(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.dropNode: could not find the "${t}" node in the graph.`);let r;if(this.type!=="undirected"){for(let i in n.out){r=n.out[i];do mc(this,r),r=r.next;while(r)}for(let i in n.in){r=n.in[i];do mc(this,r),r=r.next;while(r)}}if(this.type!=="directed")for(let i in n.undirected){r=n.undirected[i];do mc(this,r),r=r.next;while(r)}this._nodes.delete(t),this.emit("nodeDropped",{key:t,attributes:n.attributes})}dropEdge(t){let n;if(arguments.length>1){let r=""+arguments[0],i=""+arguments[1];if(n=ri(this,r,i,this.type),!n)throw new ee(`Graph.dropEdge: could not find the "${r}" -> "${i}" edge in the graph.`)}else if(t=""+t,n=this._edges.get(t),!n)throw new ee(`Graph.dropEdge: could not find the "${t}" edge in the graph.`);return mc(this,n),this}dropDirectedEdge(t,n){if(arguments.length<2)throw new Ae("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Ae("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");t=""+t,n=""+n;let r=ri(this,t,n,"directed");if(!r)throw new ee(`Graph.dropDirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return mc(this,r),this}dropUndirectedEdge(t,n){if(arguments.length<2)throw new Ae("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Ae("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");let r=ri(this,t,n,"undirected");if(!r)throw new ee(`Graph.dropUndirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return mc(this,r),this}clear(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")}clearEdges(){let t=this._nodes.values(),n;for(;n=t.next(),n.done!==!0;)n.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")}getAttribute(t){return this._attributes[t]}getAttributes(){return this._attributes}hasAttribute(t){return this._attributes.hasOwnProperty(t)}setAttribute(t,n){return this._attributes[t]=n,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}updateAttribute(t,n){if(typeof n!="function")throw new re("Graph.updateAttribute: updater should be a function.");let r=this._attributes[t];return this._attributes[t]=n(r),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}removeAttribute(t){return delete this._attributes[t],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:t}),this}replaceAttributes(t){if(!Kn(t))throw new re("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=t,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this}mergeAttributes(t){if(!Kn(t))throw new re("Graph.mergeAttributes: provided attributes are not a plain object.");return wn(this._attributes,t),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:t}),this}updateAttributes(t){if(typeof t!="function")throw new re("Graph.updateAttributes: provided updater is not a function.");return this._attributes=t(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this}updateEachNodeAttributes(t,n){if(typeof t!="function")throw new re("Graph.updateEachNodeAttributes: expecting an updater function.");if(n&&!SL(n))throw new re("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");let r=this._nodes.values(),i,o;for(;i=r.next(),i.done!==!0;)o=i.value,o.attributes=t(o.key,o.attributes);this.emit("eachNodeAttributesUpdated",{hints:n||null})}updateEachEdgeAttributes(t,n){if(typeof t!="function")throw new re("Graph.updateEachEdgeAttributes: expecting an updater function.");if(n&&!SL(n))throw new re("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");let r=this._edges.values(),i,o,s,a;for(;i=r.next(),i.done!==!0;)o=i.value,s=o.source,a=o.target,o.attributes=t(o.key,o.attributes,s.key,a.key,s.attributes,a.attributes,o.undirected);this.emit("eachEdgeAttributesUpdated",{hints:n||null})}forEachAdjacencyEntry(t){if(typeof t!="function")throw new re("Graph.forEachAdjacencyEntry: expecting a callback.");jh(!1,!1,!1,this,t)}forEachAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new re("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");jh(!1,!1,!0,this,t)}forEachAssymetricAdjacencyEntry(t){if(typeof t!="function")throw new re("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");jh(!1,!0,!1,this,t)}forEachAssymetricAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new re("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");jh(!1,!0,!0,this,t)}nodes(){return typeof Array.from=="function"?Array.from(this._nodes.keys()):(0,dv.default)(this._nodes.keys(),this._nodes.size)}forEachNode(t){if(typeof t!="function")throw new re("Graph.forEachNode: expecting a callback.");let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)}findNode(t){if(typeof t!="function")throw new re("Graph.findNode: expecting a callback.");let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return i.key}mapNodes(t){if(typeof t!="function")throw new re("Graph.mapNode: expecting a callback.");let n=this._nodes.values(),r,i,o=new Array(this.order),s=0;for(;r=n.next(),r.done!==!0;)i=r.value,o[s++]=t(i.key,i.attributes);return o}someNode(t){if(typeof t!="function")throw new re("Graph.someNode: expecting a callback.");let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return!0;return!1}everyNode(t){if(typeof t!="function")throw new re("Graph.everyNode: expecting a callback.");let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,!t(i.key,i.attributes))return!1;return!0}filterNodes(t){if(typeof t!="function")throw new re("Graph.filterNodes: expecting a callback.");let n=this._nodes.values(),r,i,o=[];for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)&&o.push(i.key);return o}reduceNodes(t,n){if(typeof t!="function")throw new re("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new re("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");let r=n,i=this._nodes.values(),o,s;for(;o=i.next(),o.done!==!0;)s=o.value,r=t(r,s.key,s.attributes);return r}nodeEntries(){let t=this._nodes.values();return new kr.default(()=>{let n=t.next();if(n.done)return n;let r=n.value;return{value:{node:r.key,attributes:r.attributes},done:!1}})}export(){let t=new Array(this._nodes.size),n=0;this._nodes.forEach((i,o)=>{t[n++]=RJ(o,i)});let r=new Array(this._edges.size);return n=0,this._edges.forEach((i,o)=>{r[n++]=LJ(this.type,o,i)}),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}}import(t,n=!1){if(t instanceof e)return t.forEachNode((u,c)=>{n?this.mergeNode(u,c):this.addNode(u,c)}),t.forEachEdge((u,c,l,d,h,N,E)=>{n?E?this.mergeUndirectedEdgeWithKey(u,l,d,c):this.mergeDirectedEdgeWithKey(u,l,d,c):E?this.addUndirectedEdgeWithKey(u,l,d,c):this.addDirectedEdgeWithKey(u,l,d,c)}),this;if(!Kn(t))throw new re("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(t.attributes){if(!Kn(t.attributes))throw new re("Graph.import: invalid attributes. Expecting a plain object.");n?this.mergeAttributes(t.attributes):this.replaceAttributes(t.attributes)}let r,i,o,s,a;if(t.nodes){if(o=t.nodes,!Array.isArray(o))throw new re("Graph.import: invalid nodes. Expecting an array.");for(r=0,i=o.length;r{let o=wn({},r.attributes);r=new n.NodeDataClass(i,o),n._nodes.set(i,r)}),n}copy(t){if(t=t||{},typeof t.type=="string"&&t.type!==this.type&&t.type!=="mixed")throw new Ae(`Graph.copy: cannot create an incompatible copy from "${this.type}" type to "${t.type}" because this would mean losing information about the current graph.`);if(typeof t.multi=="boolean"&&t.multi!==this.multi&&t.multi!==!0)throw new Ae("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if(typeof t.allowSelfLoops=="boolean"&&t.allowSelfLoops!==this.allowSelfLoops&&t.allowSelfLoops!==!0)throw new Ae("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");let n=this.emptyCopy(t),r=this._edges.values(),i,o;for(;i=r.next(),i.done!==!0;)o=i.value,ML(n,"copy",!1,o.undirected,o.key,o.source.key,o.target.key,wn({},o.attributes));return n}toJSON(){return this.export()}toString(){return"[object Graph]"}inspect(){let t={};this._nodes.forEach((o,s)=>{t[s]=o.attributes});let n={},r={};this._edges.forEach((o,s)=>{let a=o.undirected?"--":"->",u="",c=o.source.key,l=o.target.key,d;o.undirected&&c>l&&(d=c,c=l,l=d);let h=`(${c})${a}(${l})`;s.startsWith("geid_")?this.multi&&(typeof r[h]=="undefined"?r[h]=0:r[h]++,u+=`${r[h]}. `):u+=`[${s}]: `,u+=h,n[u]=o.attributes});let i={};for(let o in this)this.hasOwnProperty(o)&&!DL.has(o)&&typeof this[o]!="function"&&typeof o!="symbol"&&(i[o]=this[o]);return i.attributes=this._attributes,i.nodes=t,i.edges=n,ni(i,"constructor",this.constructor),i}};typeof Symbol!="undefined"&&(wt.prototype[Symbol.for("nodejs.util.inspect.custom")]=wt.prototype.inspect);UJ.forEach(e=>{["add","merge","update"].forEach(t=>{let n=e.name(t),r=t==="add"?ML:VJ;e.generateKey?wt.prototype[n]=function(i,o,s){return r(this,n,!0,(e.type||this.type)==="undirected",null,i,o,s,t==="update")}:wt.prototype[n]=function(i,o,s,a){return r(this,n,!1,(e.type||this.type)==="undirected",i,o,s,a,t==="update")}})});z2(wt);sJ(wt);vJ(wt);FJ(wt);tp=class extends wt{constructor(t){let n=wn({type:"directed"},t);if("multi"in n&&n.multi!==!1)throw new re("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="directed")throw new re('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}},np=class extends wt{constructor(t){let n=wn({type:"undirected"},t);if("multi"in n&&n.multi!==!1)throw new re("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="undirected")throw new re('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}},rp=class extends wt{constructor(t){let n=wn({multi:!0},t);if("multi"in n&&n.multi!==!0)throw new re("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");super(n)}},ip=class extends wt{constructor(t){let n=wn({type:"directed",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new re("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="directed")throw new re('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}},op=class extends wt{constructor(t){let n=wn({type:"undirected",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new re("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="undirected")throw new re('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}};yc(wt);yc(tp);yc(np);yc(rp);yc(ip);yc(op);wt.Graph=wt;wt.DirectedGraph=tp;wt.UndirectedGraph=np;wt.MultiGraph=rp;wt.MultiDirectedGraph=ip;wt.MultiUndirectedGraph=op;wt.InvalidArgumentsGraphError=re;wt.NotFoundGraphError=ee;wt.UsageGraphError=Ae});var Nv=R(zi=>{"use strict";p();m();f();Object.defineProperty(zi,"__esModule",{value:!0});zi.batchNormalize=zi.NormalizationFactory=zi.normalizeSubgraph=zi.normalizeSubgraphFromString=void 0;var xe=(ie(),ae(de)),ja=jr(),Va=Yu(),$a=Ss(),rt=fo(),Ye=di(),mt=$r(),$J=QR(),sp=jm(),jJ=zI(),GJ=WI(),hv=ov(),Cn=Wd(),Tv=(CL(),ae(UL)),yv=Ds();function qJ(e){let{error:t,documentNode:n}=(0,ja.safeParse)(e);return t||!n?{errors:[(0,Ye.subgraphInvalidSyntaxError)(t)]}:new ap(new Tv.MultiGraph).normalize(n)}zi.normalizeSubgraphFromString=qJ;function BL(e,t,n){return new ap(t||new Tv.MultiGraph,n).normalize(e)}zi.normalizeSubgraph=BL;var ap=class{constructor(t,n){S(this,"argumentName","");S(this,"authorizationDataByParentTypeName",new Map);S(this,"childName","");S(this,"concreteTypeNamesByAbstractTypeName",new Map);S(this,"configurationDataByParentTypeName",new Map);S(this,"customDirectiveDefinitions",new Map);S(this,"directiveDefinitionByDirectiveName",new Map);S(this,"errors",[]);S(this,"entityContainerByTypeName",new Map);S(this,"entityInterfaces",new Map);S(this,"graph");S(this,"parentExtensionDataByTypeName",new Map);S(this,"interfaceTypeNamesWithAuthorizationDirectives",new Set);S(this,"isCurrentParentExtension",!1);S(this,"isSubgraphVersionTwo",!1);S(this,"fieldSetContainerByTypeName",new Map);S(this,"heirFieldAuthorizationDataByTypeName",new Map);S(this,"handledRepeatedDirectivesByHostPath",new Map);S(this,"lastParentNodeKind",xe.Kind.NULL);S(this,"lastChildNodeKind",xe.Kind.NULL);S(this,"leafTypeNamesWithAuthorizationDirectives",new Set);S(this,"keyFieldNamesByParentTypeName",new Map);S(this,"operationTypeNodeByTypeName",new Map);S(this,"originalTypeNameByRenamedTypeName",new Map);S(this,"parentDefinitionDataByTypeName",new Map);S(this,"originalParentTypeName","");S(this,"parentsWithChildArguments",new Set);S(this,"eventsConfigurations",new Map);S(this,"overridesByTargetSubgraphName",new Map);S(this,"invalidOrScopesHostPaths",new Set);S(this,"schemaDefinition");S(this,"referencedDirectiveNames",new Set);S(this,"referencedTypeNames",new Set);S(this,"renamedParentTypeName","");S(this,"warnings",[]);S(this,"subgraphName");for(let[r,i]of $a.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.graph=t,this.subgraphName=n||mt.N_A,this.schemaDefinition={directivesByDirectiveName:new Map,kind:xe.Kind.SCHEMA_DEFINITION,typeName:mt.SCHEMA,operationTypes:new Map}}validateInputNamedType(t){if($a.BASE_SCALARS.has(t))return{hasUnhandledError:!1,typeString:""};let n=this.parentDefinitionDataByTypeName.get(t);if(!n)return this.errors.push((0,Ye.undefinedTypeError)(t)),{hasUnhandledError:!1,typeString:""};switch(n.kind){case xe.Kind.ENUM_TYPE_DEFINITION:case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:case xe.Kind.SCALAR_TYPE_DEFINITION:return{hasUnhandledError:!1,typeString:""};default:return{hasUnhandledError:!0,typeString:(0,rt.kindToTypeString)(n.kind)}}}validateArguments(t,n){let r=[];for(let[i,o]of t.argumentDataByArgumentName){let s=(0,yv.getTypeNodeNamedTypeName)(o.type),{hasUnhandledError:a,typeString:u}=this.validateInputNamedType(s);a&&r.push({argumentName:i,namedType:s,typeString:u,typeName:(0,sp.printTypeNode)(o.type)})}r.length>0&&this.errors.push((0,Ye.invalidArgumentsError)(n,r))}getAuthorizationData(t){let n=this.renamedParentTypeName||this.originalParentTypeName,r=this.authorizationDataByParentTypeName.get(n);if((0,rt.resetAuthorizationData)(r),!t.directives)return r;let i=!1,o=[];for(let c of t.directives){let l=c.name.value;if(l===mt.AUTHENTICATED){if(i)return;i=!0;continue}if(l===mt.REQUIRES_SCOPES){if(o.length>0)return;o.push(c)}}if(!i&&o.length<1||((0,rt.isNodeKindInterface)(t.kind)&&this.interfaceTypeNamesWithAuthorizationDirectives.add(n),r||(r=(0,rt.setAndGetValue)(this.authorizationDataByParentTypeName,this.renamedParentTypeName||this.originalParentTypeName,(0,rt.newAuthorizationData)(n))),r.hasParentLevelAuthorization=!0,r.requiresAuthentication=i,o.length!==1))return r;let s=o[0];if(!s.arguments||s.arguments.length!==1)return;let a=s.arguments[0];if(a.name.value!==mt.SCOPES||a.value.kind!==xe.Kind.LIST)return;let u=a.value.values;if(u.length<1)return r;if(u.length>rt.maxOrScopes){this.invalidOrScopesHostPaths.add(this.originalParentTypeName);return}for(let c of u){if(c.kind!==xe.Kind.LIST)return;let l=new Set;for(let d of c.values){if(d.kind!==xe.Kind.STRING)return;l.add(d.value)}l.size&&r.requiredScopes.push(l)}return r}extractDirectivesAndAuthorization(t,n){if(!t.directives)return n;let r=this.childName?`${this.originalParentTypeName}.${this.childName}`:this.originalParentTypeName,i=[];for(let u of t.directives){let c=(0,Cn.getDirectiveValidationErrors)(u,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r),l=u.name.value;if(c.length>0){this.errors.push((0,Ye.invalidDirectiveError)(l,r,c));continue}if(l===mt.EXTENDS)continue;if(l===mt.OVERRIDE){this.handleOverrideDeclaration(u,r,c),c.length>0&&this.errors.push((0,Ye.invalidDirectiveError)(l,r,c));continue}if(l===mt.AUTHENTICATED||l===mt.REQUIRES_SCOPES){i.push(u);continue}let d=n.get(l);d&&d.push(u),n.set(l,[u])}if(i.length<1)return n;let o=this.renamedParentTypeName||this.originalParentTypeName;t.kind!==xe.Kind.FIELD_DEFINITION&&this.leafTypeNamesWithAuthorizationDirectives.add(o);let s=(0,rt.getValueOrDefault)(this.authorizationDataByParentTypeName,o,()=>(0,rt.newAuthorizationData)(o)),a=(0,rt.getAuthorizationDataToUpdate)(s,t,this.childName);for(let u of i){if(u.name.value===mt.AUTHENTICATED){a.requiresAuthentication=!0;continue}let l=u.arguments[0].value.values;if(l.length>rt.maxOrScopes){this.invalidOrScopesHostPaths.add(r);continue}for(let d of l){let h=new Set;for(let N of d.values)h.add(N.value);h.size&&a.requiredScopes.push(h)}}return n}mergeUniqueInterfaces(t,n,r){for(let i of t){if(!n.has(i)){n.add(i);continue}this.errors.push((0,Ye.duplicateInterfaceExtensionError)(i,r))}}handleInterfaceObject(t){var r;if(!(0,ja.isNodeInterfaceObject)(t))return;let n=t.name.value;this.entityInterfaces.has(n)||this.entityInterfaces.set(n,{interfaceObjectFieldNames:new Set((r=t.fields)==null?void 0:r.map(i=>i.name.value)),interfaceFieldNames:new Set,isInterfaceObject:!0,typeName:n})}handleExtensionWithFields(t,n=!1){this.isCurrentParentExtension=!0;let r=this.parentExtensionDataByTypeName.get(this.originalParentTypeName),i=(0,Cn.convertKindForExtension)(t);if(r){if(r.kind!==i)return this.errors.push((0,Ye.incompatibleExtensionKindsError)(t,r.kind)),!1;(0,Cn.extractDirectives)(t,r.directivesByDirectiveName,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,this.originalParentTypeName),(0,ja.extractInterfaces)(t,r.implementedInterfaceTypeNames,this.errors);return}let o=(0,ja.isObjectLikeNodeEntity)(t);if((0,Cn.addExtensionWithFieldsDataByNode)(this.parentExtensionDataByTypeName,t,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,o,n,this.subgraphName,this.renamedParentTypeName),t.kind===xe.Kind.INTERFACE_TYPE_DEFINITION||t.kind===xe.Kind.INTERFACE_TYPE_EXTENSION||!o)return;let s=(0,rt.getValueOrDefault)(this.fieldSetContainerByTypeName,this.originalParentTypeName,Va.newFieldSetContainer);this.extractKeyFieldSets(t,s),(0,rt.upsertEntityContainerProperties)(this.entityContainerByTypeName,w({typeName:this.originalParentTypeName,keyFieldSets:s.keys},this.subgraphName?{subgraphNames:[this.subgraphName]}:{}))}extractKeyFieldSets(t,n){var s;let r=n.keys,i=t.name.value;if(!((s=t.directives)!=null&&s.length)){this.errors.push((0,Ye.expectedEntityError)(i));return}let o=[];for(let a of t.directives)if(a.name.value===mt.KEY){if(!a.arguments||a.arguments.length<1){o.push((0,Ye.undefinedRequiredArgumentsErrorMessage)(mt.KEY,i,[mt.FIELDS]));continue}for(let u of a.arguments){let c=u.name.value;if(u.name.value===mt.RESOLVABLE){u.value.kind===xe.Kind.BOOLEAN&&!u.value.value&&(n.disableEntityResolver=!0);continue}if(u.name.value!==mt.FIELDS){o.push((0,Ye.unexpectedDirectiveArgumentErrorMessage)(mt.KEY,c));break}if(u.value.kind!==xe.Kind.STRING){o.push((0,Ye.invalidKeyDirectiveArgumentErrorMessage)(u.value.kind));break}r.add(u.value.value)}}o.length&&this.errors.push((0,Ye.invalidKeyDirectivesError)(i,o))}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=new Map;for(let r of t.implementedInterfaceTypeNames){let i=(0,rt.getOrThrowError)(this.parentDefinitionDataByTypeName,r,mt.PARENTS);if(i.kind!==xe.Kind.INTERFACE_TYPE_DEFINITION)throw(0,Ye.incompatibleParentKindFatalError)(r,xe.Kind.INTERFACE_TYPE_DEFINITION,i.kind);let o={invalidFieldImplementations:new Map,unimplementedFields:[]},s=!1;for(let[a,u]of i.fieldDataByFieldName){let c=!1,l=t.fieldDataByFieldName.get(a);if(!l){s=!0,o.unimplementedFields.push(a);continue}let d={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],originalResponseType:(0,sp.printTypeNode)(u.node.type),unimplementedArguments:new Set};(0,Cn.isTypeValidImplementation)(u.node.type,l.node.type,this.concreteTypeNamesByAbstractTypeName)||(s=!0,c=!0,d.implementedResponseType=(0,sp.printTypeNode)(l.node.type));let h=new Set;for(let[N,E]of u.argumentDataByArgumentName){h.add(N);let D=l.argumentDataByArgumentName.get(N);if(!D){s=!0,c=!0,d.unimplementedArguments.add(N);continue}let A=(0,sp.printTypeNode)(D.type),F=(0,sp.printTypeNode)(E.type);F!==A&&(s=!0,c=!0,d.invalidImplementedArguments.push({actualType:A,argumentName:N,expectedType:F}))}for(let[N,E]of l.argumentDataByArgumentName)h.has(N)||E.type.kind===xe.Kind.NON_NULL_TYPE&&(s=!0,c=!0,d.invalidAdditionalArguments.add(N));c&&o.invalidFieldImplementations.set(a,d)}s&&n.set(r,o)}n.size&&this.errors.push((0,Ye.unimplementedInterfaceFieldsError)(t.name,(0,rt.kindToTypeString)(t.kind),n))}handleOverrideDeclaration(t,n,r){let i=t.arguments[0];if(i.value.kind!==xe.Kind.STRING){r.push((0,Ye.invalidDirectiveArgumentTypeErrorMessage)(!0,mt.FROM,xe.Kind.STRING,i.value.kind));return}let o=i.value.value;if(o===this.subgraphName){r.push((0,Ye.equivalentSourceAndTargetOverrideErrorMessage)(o,n));return}let s=(0,rt.getValueOrDefault)(this.overridesByTargetSubgraphName,o,()=>new Map);(0,rt.getValueOrDefault)(s,this.renamedParentTypeName||this.originalParentTypeName,()=>new Set).add(this.childName)}extractEventDirectivesToConfiguration(t){if(t.directives)for(let n of t.directives){let r;switch(n.name.value){case mt.EVENTS_PUBLISH:{r="publish";break}case mt.EVENTS_REQUEST:{r="request";break}case mt.EVENTS_SUBSCRIBE:{r="subscribe";break}default:continue}let i,o;for(let a of n.arguments||[]){if(a.value.kind!==xe.Kind.STRING)throw new Error(`Event directive arguments must be strings, ${a.value.kind} found in argument ${a.name}`);switch(a.name.value){case mt.TOPIC:{if(i!==void 0)throw new Error("Event directives must have exactly one topic argument, found multiple");if(!a.value.value)throw new Error("Event directives must have a non-empty topic argument");i=a.value.value;break}case mt.SOURCE_ID:{if(o!==void 0)throw new Error("Event directives must have exactly one sourceID argument, found multiple");if(!a.value.value)throw new Error("Event directives must have a non-empty sourceID argument");o=a.value.value;break}default:throw new Error(`Unknown argument ${a.name.value} found in event directive`)}}if(!i)throw new Error("Event directives must have a topic argument");(0,rt.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push({type:r,fieldName:this.childName,topic:i,sourceId:o})}}normalize(t){(0,hv.upsertDirectiveAndSchemaDefinitions)(this,t),(0,hv.upsertParentsAndChildren)(this,t),(0,hv.consolidateAuthorizationDirectives)(this,t);for(let a of this.interfaceTypeNamesWithAuthorizationDirectives){let u=this.authorizationDataByParentTypeName.get(a);if(!u)continue;let c=this.concreteTypeNamesByAbstractTypeName.get(a);for(let l of c||[]){let d=(0,rt.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,rt.newAuthorizationData)(l));for(let[h,N]of u.fieldAuthorizationDataByFieldName)(0,rt.upsertFieldAuthorizationData)(d.fieldAuthorizationDataByFieldName,N)||this.invalidOrScopesHostPaths.add(`${l}.${h}`)}}for(let[a,u]of this.heirFieldAuthorizationDataByTypeName){let c=this.authorizationDataByParentTypeName.get(a);if(c)for(let l of u)(0,rt.mergeAuthorizationDataByAND)(c,l)||this.invalidOrScopesHostPaths.add(`${a}.${l.fieldName}`)}this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,Ye.orScopesLimitError)(rt.maxOrScopes,[...this.invalidOrScopesHostPaths]));let n=[];for(let a of $a.BASE_DIRECTIVE_DEFINITIONS)n.push(a);if(n.push($a.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let a of $a.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(a),this.directiveDefinitionByDirectiveName.set(a.name.value,a);n.push($a.SCOPE_SCALAR_DEFINITION)}for(let a of this.customDirectiveDefinitions.values())n.push(a);this.schemaDefinition.operationTypes.size>0&&n.push((0,Cn.getSchemaNodeByData)(this.schemaDefinition,this.errors,this.directiveDefinitionByDirectiveName));let r=new Map,i=new Set;for(let[a,u]of this.parentExtensionDataByTypeName){let c=this.entityContainerByTypeName.has(a),l=u.kind===xe.Kind.OBJECT_TYPE_EXTENSION&&u.renamedTypeName||a,d={fieldNames:new Set,isRootNode:c,typeName:l};this.configurationDataByParentTypeName.set(l,d),u.kind===xe.Kind.OBJECT_TYPE_EXTENSION&&(this.operationTypeNodeByTypeName.has(a)&&(d.isRootNode=!0,u.fieldDataByFieldName.delete(mt.SERVICE_FIELD),u.fieldDataByFieldName.delete(mt.ENTITIES_FIELD)),(0,Va.addNonExternalFieldsToSet)(u.fieldDataByFieldName,d.fieldNames));let h=this.parentDefinitionDataByTypeName.get(a);if(!h){u.kind!==xe.Kind.OBJECT_TYPE_EXTENSION?this.errors.push((0,Ye.noBaseTypeExtensionError)(a)):(this.validateInterfaceImplementations(u),r.set(a,u),n.push((0,Cn.getParentWithFieldsNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName)));continue}if(!(0,ja.areBaseAndExtensionKindsCompatible)(h.kind,u.kind,a)){this.errors.push((0,Ye.incompatibleExtensionError)(a,h.kind,u.kind));continue}switch(h.kind){case xe.Kind.ENUM_TYPE_DEFINITION:let N=u;for(let[F,Y]of N.enumValueDataByValueName){if(!h.enumValueDataByValueName.has(F)){h.enumValueDataByValueName.set(F,Y);continue}this.errors.push((0,Ye.duplicateEnumValueDefinitionError)(F,a))}n.push((0,Cn.getEnumNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName,N));break;case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:let E=u;for(let[F,Y]of E.inputValueDataByValueName){if(!h.inputValueDataByValueName.has(F)){h.inputValueDataByValueName.set(F,Y);continue}this.errors.push((0,Ye.duplicateFieldDefinitionError)(F,a))}n.push((0,Cn.getInputObjectNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName,E));break;case xe.Kind.INTERFACE_TYPE_DEFINITION:case xe.Kind.OBJECT_TYPE_DEFINITION:let D=u,A=this.operationTypeNodeByTypeName.get(a);A&&(d.isRootNode=!0,D.fieldDataByFieldName.delete(mt.SERVICE_FIELD),D.fieldDataByFieldName.delete(mt.ENTITIES_FIELD));for(let[F,Y]of D.fieldDataByFieldName){if(Y.argumentDataByArgumentName.size>0&&this.validateArguments(Y,`${a}.${F}`),h.fieldDataByFieldName.has(F)){this.errors.push((0,Ye.duplicateFieldDefinitionError)(F,a));continue}h.fieldDataByFieldName.set(F,Y),Y.argumentDataByArgumentName.has(mt.EXTERNAL)||d.fieldNames.add(F)}this.mergeUniqueInterfaces(D.implementedInterfaceTypeNames,h.implementedInterfaceTypeNames,a),this.validateInterfaceImplementations(h),n.push((0,Cn.getParentWithFieldsNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName,D)),h.fieldDataByFieldName.size<1&&!(0,Va.isNodeQuery)(a,A)&&this.errors.push((0,Ye.noFieldDefinitionsError)((0,rt.kindToTypeString)(h.kind),a)),(0,Va.addNonExternalFieldsToSet)(h.fieldDataByFieldName,d.fieldNames);break;case xe.Kind.SCALAR_TYPE_DEFINITION:n.push((0,Cn.getScalarNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,u));break;case xe.Kind.UNION_TYPE_DEFINITION:n.push((0,Cn.getUnionNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,u));break;default:throw(0,Ye.unexpectedKindFatalError)(a)}i.add(a)}for(let[a,u]of this.parentDefinitionDataByTypeName)if(!i.has(a))switch(u.kind){case xe.Kind.ENUM_TYPE_DEFINITION:n.push((0,Cn.getEnumNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:n.push((0,Cn.getInputObjectNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case xe.Kind.INTERFACE_TYPE_DEFINITION:case xe.Kind.OBJECT_TYPE_DEFINITION:let c=this.entityContainerByTypeName.has(a),l=this.operationTypeNodeByTypeName.get(a);if(l&&(u.fieldDataByFieldName.delete(mt.SERVICE_FIELD),u.fieldDataByFieldName.delete(mt.ENTITIES_FIELD)),this.parentsWithChildArguments.has(a)){if(u.kind!==xe.Kind.OBJECT_TYPE_DEFINITION&&u.kind!==xe.Kind.INTERFACE_TYPE_DEFINITION)continue;for(let[D,A]of u.fieldDataByFieldName)this.validateArguments(A,`${a}.${D}`)}let d=u.kind===xe.Kind.OBJECT_TYPE_DEFINITION&&u.renamedTypeName||a,h={fieldNames:new Set,isRootNode:c,typeName:d},N=this.entityInterfaces.get(a);N&&(N.concreteTypeNames=this.concreteTypeNamesByAbstractTypeName.get(a)||new Set,h.isInterfaceObject=N.isInterfaceObject,h.entityInterfaceConcreteTypeNames=N.concreteTypeNames);let E=this.eventsConfigurations.get(d);E&&(h.events=E),this.configurationDataByParentTypeName.set(d,h),(0,Va.addNonExternalFieldsToSet)(u.fieldDataByFieldName,h.fieldNames),this.validateInterfaceImplementations(u),n.push((0,Cn.getParentWithFieldsNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName)),u.fieldDataByFieldName.size<1&&!(0,Va.isNodeQuery)(a,l)&&this.errors.push((0,Ye.noFieldDefinitionsError)((0,rt.kindToTypeString)(u.kind),a));break;case xe.Kind.SCALAR_TYPE_DEFINITION:n.push((0,Cn.getScalarNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName));break;case xe.Kind.UNION_TYPE_DEFINITION:n.push((0,Cn.getUnionNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName));break;default:throw(0,Ye.unexpectedKindFatalError)(a)}for(let a of Object.values(xe.OperationTypeNode)){let u=this.schemaDefinition.operationTypes.get(a),c=(0,rt.getOrThrowError)(ja.operationTypeNodeToDefaultType,a,mt.OPERATION_TO_DEFAULT),l=u?(0,yv.getTypeNodeNamedTypeName)(u.type):c;if(l!==c&&(this.parentDefinitionDataByTypeName.has(c)||this.parentExtensionDataByTypeName.has(c))){this.errors.push((0,Ye.invalidRootTypeDefinitionError)(a,l,c));continue}let d=this.parentDefinitionDataByTypeName.get(l),h=this.parentExtensionDataByTypeName.get(l);if(u){if(!d&&!h){this.errors.push((0,Ye.undefinedTypeError)(l));continue}this.operationTypeNodeByTypeName.set(l,a)}if(!d&&!h)continue;let N=this.configurationDataByParentTypeName.get(c);N&&(N.isRootNode=!0,N.typeName=c);let E=[d,h];for(let D of E)if(D){if(D.kind!==xe.Kind.OBJECT_TYPE_DEFINITION&&D.kind!==xe.Kind.OBJECT_TYPE_EXTENSION){this.errors.push((0,Ye.operationDefinitionError)(l,a,D.kind));continue}for(let A of D.fieldDataByFieldName.values()){let F=(0,yv.getTypeNodeNamedTypeName)(A.node.type);!$a.BASE_SCALARS.has(F)&&!this.parentDefinitionDataByTypeName.has(F)&&!r.has(F)&&this.errors.push((0,Ye.undefinedTypeError)(F))}}}for(let a of this.referencedTypeNames){if(this.parentDefinitionDataByTypeName.has(a)||this.entityContainerByTypeName.has(a))continue;let u=this.parentExtensionDataByTypeName.get(a);(!u||u.kind!==xe.Kind.OBJECT_TYPE_EXTENSION)&&this.errors.push((0,Ye.undefinedTypeError)(a))}for(let[a,u]of this.fieldSetContainerByTypeName){let c=this.parentDefinitionDataByTypeName.get(a)||this.parentExtensionDataByTypeName.get(a);if(!c||c.kind!==xe.Kind.OBJECT_TYPE_DEFINITION&&c.kind!=xe.Kind.OBJECT_TYPE_EXTENSION&&c.kind!==xe.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==xe.Kind.INTERFACE_TYPE_EXTENSION){this.errors.push((0,Ye.undefinedObjectLikeParentError)(a));continue}(0,Va.validateAndAddDirectivesWithFieldSetToConfigurationData)(this,c,u)}let o=new Map;for(let a of this.directiveDefinitionByDirectiveName.values()){let u=(0,ja.extractExecutableDirectiveLocations)(a.locations,new Set);u.size<1||(0,Cn.addPersistedDirectiveDefinitionDataByNode)(o,a,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,u,this.subgraphName)}if(this.errors.length>0)return{errors:this.errors};let s={kind:xe.Kind.DOCUMENT,definitions:n};return{normalizationResult:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,configurationDataByParentTypeName:this.configurationDataByParentTypeName,entityContainerByTypeName:this.entityContainerByTypeName,entityInterfaces:this.entityInterfaces,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,parentExtensionDataByTypeName:r,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:o,subgraphAST:s,subgraphString:(0,xe.print)(s),schema:(0,$J.buildASTSchema)(s,{assumeValid:!0})}}}};zi.NormalizationFactory=ap;function KJ(e){let t=new Map,n=new Map,r=new Map,i=new Map,o=new Map,s=new Map,a=new Set,u=new Map,c=new Set,l=new Set,d=[],h=new Set,N=[],E=[];for(let F of e)F.name&&(0,jJ.recordSubgraphName)(F.name,c,l);let D=new Tv.MultiGraph;for(let F=0;Fnew Map),In=(0,rt.getValueOrDefault)(or,Q,()=>new Set(Ie));(0,rt.addIterableValuesToSet)(Ie,In)}for(let or of Ie){let In=`${Qt}.${or}`,_r=s.get(In);if(!_r){s.set(In,[J]);continue}_r.push(J),a.add(In)}}}}let A=[];if(h.size>0&&A.push((0,Ye.orScopesLimitError)(rt.maxOrScopes,[...h])),(d.length>0||l.size>0)&&A.push((0,Ye.invalidSubgraphNamesError)([...l],d)),a.size>0){let F=[];for(let Y of a){let J=(0,rt.getOrThrowError)(s,Y,"overrideSourceSubgraphNamesByFieldPath");F.push((0,Ye.duplicateOverriddenFieldErrorMessage)(Y,J))}A.push((0,Ye.duplicateOverriddenFieldsError)(F))}if(A.push(...E),A.length>0)return w({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityContainerByTypeName:r,errors:A,graph:D,internalSubgraphBySubgraphName:i},N.length>0?{warnings:N}:{});for(let[F,Y]of o){let J=(0,rt.getOrThrowError)(i,F,"internalSubgraphBySubgraphName");J.overriddenFieldNamesByParentTypeName=Y;for(let[Z,X]of Y){let _e=J.configurationDataByParentTypeName.get(Z);_e&&((0,rt.subtractSourceSetFromTargetSet)(X,_e.fieldNames),_e.fieldNames.size<1&&J.configurationDataByParentTypeName.delete(Z))}}return w({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityContainerByTypeName:r,graph:D,internalSubgraphBySubgraphName:i},N.length>0?{warnings:N}:{})}zi.batchNormalize=KJ});var Ev=R(Kh=>{"use strict";p();m();f();Object.defineProperty(Kh,"__esModule",{value:!0});Kh.createMultiGraphAndRenameRootTypes=void 0;var QJ=(ie(),ae(de)),qh=$r(),Tc=fo(),VL=jr();function YJ(e,t){let n,r=!1,i;(0,QJ.visit)(t.definitions,{FieldDefinition:{enter(o){let s=o.name.value;if(r&&(s===qh.SERVICE_FIELD||s===qh.ENTITIES_FIELD))return n.fieldDataByFieldName.delete(s),!1;let a=n.name,u=(0,Tc.getOrThrowError)(n.fieldDataByFieldName,s,`${a}.fieldDataByFieldName`);if(i!=null&&i.has(s))return u.isShareableBySubgraphName.delete(t.name),!1;let c=`${a}.${s}`;if(!e.graph.hasNode(n.name)||e.graphEdges.has(c))return!1;e.graphEdges.add(c);let l=e.entityContainersByTypeName.get(a);if(l&&!l.fieldNames.has(s))return!1;let d=e.concreteTypeNamesByAbstractTypeName.get(u.namedTypeName);if(d)for(let h of d)e.graph.addEdge(a,h);e.graph.hasNode(u.namedTypeName)&&e.graph.addEdge(a,u.namedTypeName)}},InterfaceTypeDefinition:{enter(o){let s=o.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(s))return!1;n=(0,Tc.getOrThrowError)(t.parentDefinitionDataByTypeName,s,"parentDefinitionDataByTypeName")},leave(){n=void 0}},ObjectTypeDefinition:{enter(o){let s=o.name.value,a=t.operationTypes.get(s),u=a?(0,Tc.getOrThrowError)(VL.operationTypeNodeToDefaultType,a,qh.OPERATION_TO_DEFAULT):s;if(n=(0,Tc.getOrThrowError)(t.parentDefinitionDataByTypeName,s,"parentDefinitionDataByTypeName"),r=n.isRootType,e.entityInterfaceFederationDataByTypeName.get(s))return;let c=e.entityContainersByTypeName.get(s);c&&!n.isEntity&&e.validateKeyFieldSetsForImplicitEntity(c),i=t.overriddenFieldNamesByParentTypeName.get(s),s!==u&&(n.name=u,t.parentDefinitionDataByTypeName.set(u,n),t.parentDefinitionDataByTypeName.delete(s))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(o){let s=o.name.value,a=t.operationTypes.get(s),u=a?(0,Tc.getOrThrowError)(VL.operationTypeNodeToDefaultType,a,qh.OPERATION_TO_DEFAULT):s;n=(0,Tc.getOrThrowError)(t.parentExtensionDataByTypeName,s,"parentDefinitionDataByTypeName"),r=n.isRootType,i=t.overriddenFieldNamesByParentTypeName.get(s),s!==u&&(n.name=u,t.parentExtensionDataByTypeName.set(u,n),t.parentExtensionDataByTypeName.delete(s))},leave(){n=void 0,r=!1,i=void 0}}})}Kh.createMultiGraphAndRenameRootTypes=YJ});var jL=R(Nc=>{"use strict";p();m();f();Object.defineProperty(Nc,"__esModule",{value:!0});Nc.federateSubgraphs=Nc.FederationFactory=void 0;var ke=(ie(),ae(de)),JJ=Ds(),gv=jr(),hn=di(),Fn=$r(),Je=fo(),up=jm(),Bn=Ss(),zJ=Nv(),$L=Yu(),Ct=Wd(),WJ=Ev(),Qh=class{constructor(t,n,r,i,o,s,a){S(this,"authorizationDataByParentTypeName");S(this,"areFieldsExternal",!1);S(this,"areFieldsShareable",!1);S(this,"concreteTypeNamesByAbstractTypeName");S(this,"fieldConfigurationByFieldPath",new Map);S(this,"namedInputValueTypeNames",new Set);S(this,"namedOutputTypeNames",new Set);S(this,"entityInterfaceFederationDataByTypeName");S(this,"executableDirectives",new Set);S(this,"parentTypeName","");S(this,"persistedDirectiveDefinitions",new Set([Fn.AUTHENTICATED,Fn.DEPRECATED,Fn.INACCESSIBLE,Fn.TAG,Fn.REQUIRES_SCOPES]));S(this,"currentSubgraphName","");S(this,"childName","");S(this,"entityContainersByTypeName");S(this,"errors",[]);S(this,"evaluatedObjectLikesBySubgraph",new Map);S(this,"graph");S(this,"graphEdges",new Set);S(this,"graphPaths",new Map);S(this,"invalidOrScopesHostPaths",new Set);S(this,"isCurrentParentEntity",!1);S(this,"isCurrentParentInterface",!1);S(this,"isCurrentSubgraphVersionTwo",!1);S(this,"isCurrentParentExtensionType",!1);S(this,"isParentRootType",!1);S(this,"isParentInputObject",!1);S(this,"outputFieldTypeNames",new Set);S(this,"parentDefinitionDataByTypeName",new Map);S(this,"objectExtensionDataByTypeName",new Map);S(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Fn.AUTHENTICATED,Bn.AUTHENTICATED_DEFINITION],[Fn.DEPRECATED,Bn.DEPRECATED_DEFINITION],[Fn.INACCESSIBLE,Bn.INACCESSIBLE_DEFINITION],[Fn.REQUIRES_SCOPES,Bn.REQUIRES_SCOPES_DEFINITION],[Fn.TAG,Bn.TAG_DEFINITION]]));S(this,"rootTypeNames",new Set([Fn.DEFAULT_MUTATION,Fn.DEFAULT_QUERY,Fn.DEFAULT_SUBSCRIPTION]));S(this,"internalSubgraphBySubgraphName");S(this,"shareableErrorTypeNames",new Map);S(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.entityContainersByTypeName=r,this.entityInterfaceFederationDataByTypeName=i,this.graph=o,this.internalSubgraphBySubgraphName=s,this.warnings=a||[]}getValidImplementedInterfaces(t){var i;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=new Map;for(let o of t.implementedInterfaceTypeNames){n.push((0,gv.stringToNamedTypeNode)(o));let s=this.parentDefinitionDataByTypeName.get(o);if(!s){this.errors.push((0,hn.undefinedTypeError)(o));continue}if(s.kind!==ke.Kind.INTERFACE_TYPE_DEFINITION)throw(0,hn.incompatibleParentKindFatalError)(o,ke.Kind.INTERFACE_TYPE_DEFINITION,s.kind);let a={invalidFieldImplementations:new Map,unimplementedFields:[]},u=!1;for(let[c,l]of s.fieldDataByFieldName){let d=!1,h=t.fieldDataByFieldName.get(c);if(!h){u=!0,a.unimplementedFields.push(c);continue}let N={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],originalResponseType:(0,up.printTypeNode)(l.node.type),unimplementedArguments:new Set};(0,Ct.isTypeValidImplementation)(l.node.type,h.node.type,this.concreteTypeNamesByAbstractTypeName)||(u=!0,d=!0,N.implementedResponseType=(0,up.printTypeNode)(h.node.type));let E=new Set;for(let[D,A]of l.argumentDataByArgumentName){let F=A.node;E.add(D);let Y=(i=h.argumentDataByArgumentName.get(D))==null?void 0:i.node;if(!Y){u=!0,d=!0,N.unimplementedArguments.add(D);continue}let J=(0,up.printTypeNode)(Y.type),Z=(0,up.printTypeNode)(F.type);Z!==J&&(u=!0,d=!0,N.invalidImplementedArguments.push({actualType:J,argumentName:D,expectedType:Z}))}for(let[D,A]of h.argumentDataByArgumentName){let F=A.node;E.has(D)||F.type.kind===ke.Kind.NON_NULL_TYPE&&(u=!0,d=!0,N.invalidAdditionalArguments.add(D))}d&&a.invalidFieldImplementations.set(c,N)}u&&r.set(o,a)}return r.size&&this.errors.push((0,hn.unimplementedInterfaceFieldsError)(t.node.name.value,(0,Je.kindToTypeString)(t.kind),r)),n}isFieldResolvableByEntityAncestor(t,n,r){if(!this.graph.hasNode(r))return!1;for(let i of t){let o=`${i}.${r}`;if(i!==r&&this.graphPaths.get(o))return!0;if(i===r){let s=(0,Je.doSetsHaveAnyOverlap)(n,(0,Je.getOrThrowError)(this.entityContainersByTypeName,i,Fn.ENTITIES).subgraphNames);return this.graphPaths.set(o,s),s}if((0,Je.hasSimplePath)(this.graph,i,r))return this.graphPaths.set(o,!0),!0;this.graphPaths.set(o,!1)}return!1}shouldEvaluateObjectLike(t,n){for(let r of t){let i=this.evaluatedObjectLikesBySubgraph.get(r);if(!(i&&i.has(n)))return!0}return!1}updateEvaluatedSubgraphOccurrences(t,n,r,i){let o=(0,Je.getAllMutualEntries)(t,n);if(o.size>0)for(let s of o){let a=this.evaluatedObjectLikesBySubgraph.get(s);a?a.add(i):this.evaluatedObjectLikesBySubgraph.set(s,new Set([i]))}for(let s of r){let a=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,s,"parentDefinitionDataByTypeName"),u=(0,Je.getAllMutualEntries)(t,a.subgraphNames),c=(0,Je.getAllMutualEntries)(u,n);for(let l of c){let d=this.evaluatedObjectLikesBySubgraph.get(l);d?d.add(i):this.evaluatedObjectLikesBySubgraph.set(l,new Set([i]))}}}evaluateResolvabilityOfObject(t,n,r,i,o,s=!1){let a=t.name;if(!i.has(a)){if(!this.shouldEvaluateObjectLike(n.subgraphs,a)){i.add(a);return}for(let[u,c]of t.fieldDataByFieldName){let l=c.namedTypeName;if(Fn.ROOT_TYPES.has(l)||i.has(l)||(0,Ct.isFieldExternalInAllMutualSubgraphs)(n.subgraphs,c))continue;this.updateEvaluatedSubgraphOccurrences(n.subgraphs,t.subgraphNames,o,a),i.add(a);let d=(0,Je.doSetsHaveAnyOverlap)(n.subgraphs,c.subgraphNames)||this.isFieldResolvableByEntityAncestor(o,c.subgraphNames,a),h=r+(s?" ":".")+u,N=this.entityContainersByTypeName.get(l);if(d){if(Bn.BASE_SCALARS.has(l))continue;let D=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,l,"parentDefinitionDataByTypeName");switch(D.kind){case ke.Kind.ENUM_TYPE_DEFINITION:case ke.Kind.SCALAR_TYPE_DEFINITION:continue;case ke.Kind.OBJECT_TYPE_DEFINITION:this.evaluateResolvabilityOfObject(D,n,h,i,N?[...o,l]:[...o]);continue;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:this.evaluateResolvabilityOfAbstractType(l,D.kind,n,h,i,N?[...o,l]:[...o]);continue;default:this.errors.push((0,hn.unexpectedObjectResponseType)(h,(0,Je.kindToTypeString)(D.kind)));continue}}if(Bn.BASE_SCALARS.has(l)){this.errors.push((0,hn.unresolvableFieldError)(n,u,[...c.subgraphNames],h,a));continue}let E=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,l,"parentDefinitionDataByTypeName");switch(E.kind){case ke.Kind.ENUM_TYPE_DEFINITION:case ke.Kind.SCALAR_TYPE_DEFINITION:this.errors.push((0,hn.unresolvableFieldError)(n,u,[...c.subgraphNames],h,a));continue;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:this.errors.push((0,hn.unresolvableFieldError)(n,u,[...c.subgraphNames],h+Fn.SELECTION_REPRESENTATION,a));continue;default:this.errors.push((0,hn.unexpectedObjectResponseType)(h,(0,Je.kindToTypeString)(E.kind)))}}}}evaluateResolvabilityOfAbstractType(t,n,r,i,o,s){if(o.has(t))return;o.add(t);let a=this.concreteTypeNamesByAbstractTypeName.get(t);if(!a){(0,hn.noConcreteTypesForAbstractTypeError)((0,Je.kindToTypeString)(n),t);return}for(let u of a){if(o.has(u))continue;let c=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,u,"parentDefinitionDataByTypeName");if(c.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)throw(0,hn.unexpectedParentKindErrorMessage)(u,"Object",(0,Je.kindToTypeString)(c.kind));if(!(0,Je.doSetsHaveAnyOverlap)(c.subgraphNames,r.subgraphs))continue;let l=this.entityContainersByTypeName.get(u);this.evaluateResolvabilityOfObject(c,r,i+" ... on "+u,o,l?[...s,u]:[...s],!0)}}validateKeyFieldSetsForImplicitEntity(t){let n=(0,Je.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),r=n.parentDefinitionDataByTypeName,i=n.parentExtensionDataByTypeName,o=r.get(t.typeName)||i.get(t.typeName);if(!o||o.kind!==ke.Kind.OBJECT_TYPE_DEFINITION&&o.kind!==ke.Kind.OBJECT_TYPE_EXTENSION)throw(0,hn.incompatibleParentKindFatalError)(t.typeName,ke.Kind.OBJECT_TYPE_DEFINITION,(o==null?void 0:o.kind)||ke.Kind.NULL);let s=(0,Je.getOrThrowError)(n.configurationDataByParentTypeName,t.typeName,"internalSubgraph.configurationDataMap"),a=new Set,u=[];for(let c of t.keyFieldSets){let{error:l,documentNode:d}=(0,gv.safeParse)("{"+c+"}");if(l||!d)continue;let h=[o],N=[],E=-1,D=!0,A=!0;(0,ke.visit)(d,{Argument:{enter(){return A=!1,ke.BREAK}},Field:{enter(F){let Y=h[E];if(D)return A=!1,ke.BREAK;let J=F.name.value,Z=Y.fieldDataByFieldName.get(J);if(!Z||Z.argumentDataByArgumentName.size||N[E].has(J))return A=!1,ke.BREAK;N[E].add(J),E===0&&a.add(J);let X=(0,JJ.getTypeNodeNamedTypeName)(Z.node.type);if(Bn.BASE_SCALARS.has(X))return;let _e=r.get(X)||i.get(X);if(!_e)return A=!1,ke.BREAK;if(_e.kind===ke.Kind.OBJECT_TYPE_DEFINITION||_e.kind===ke.Kind.OBJECT_TYPE_EXTENSION){D=!0,h.push(_e);return}if((0,gv.isKindAbstract)(_e.kind))return A=!1,ke.BREAK}},InlineFragment:{enter(){return A=!1,ke.BREAK}},SelectionSet:{enter(){if(!D||(E+=1,D=!1,E<0||E>=h.length))return A=!1,ke.BREAK;N.push(new Set)},leave(){if(D)return A=!1,ke.BREAK;E-=1,h.pop(),N.pop()}}}),A&&((0,Je.addIterableValuesToSet)(a,s.fieldNames),u.push({fieldName:"",selectionSet:(0,$L.getNormalizedFieldSet)(d),disableEntityResolver:!0}))}u.length>0&&(s.isRootNode=!0,s.keys=u)}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Ct.MergeMethod.CONSISTENT:Ct.MergeMethod.INTERSECTION:Ct.MergeMethod.UNION}federate(){let t=new Map,n=!1,r=0,i=!1;for(let d of this.internalSubgraphBySubgraphName.values()){r+=1,this.currentSubgraphName=d.name,i||(i=d.isVersionTwo),(0,WJ.createMultiGraphAndRenameRootTypes)(this,d);for(let h of d.parentDefinitionDataByTypeName.values())(0,Ct.upsertParentDefinitionData)(this.parentDefinitionDataByTypeName,h,this.persistedDirectiveDefinitionByDirectiveName,this.entityInterfaceFederationDataByTypeName,this.namedOutputTypeNames,this.namedInputValueTypeNames,d.name,this.errors);for(let h of d.parentExtensionDataByTypeName.values())(0,Ct.upsertObjectExtensionData)(this.objectExtensionDataByTypeName,h,this.persistedDirectiveDefinitionByDirectiveName,this.namedOutputTypeNames,this.namedInputValueTypeNames,this.errors);if(!n){if(!d.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let h of d.persistedDirectiveDefinitionDataByDirectiveName.values())(0,Ct.upsertPersistedDirectiveDefinitionData)(t,h,this.persistedDirectiveDefinitionByDirectiveName,this.namedInputValueTypeNames,r,this.errors);t.size||(n=!0)}}let o=i?[Bn.AUTHENTICATED_DEFINITION,Bn.DEPRECATED_DEFINITION,Bn.INACCESSIBLE_DEFINITION,Bn.REQUIRES_SCOPES_DEFINITION,Bn.TAG_DEFINITION,Bn.SCOPE_SCALAR_DEFINITION]:[Bn.DEPRECATED_DEFINITION,Bn.TAG_DEFINITION];for(let d of t.values())(0,Ct.addValidPersistedDirectiveDefinitionNodeByData)(o,d,this.persistedDirectiveDefinitionByDirectiveName,this.errors);for(let[d,h]of this.entityInterfaceFederationDataByTypeName){(0,Je.subtractSourceSetFromTargetSet)(h.interfaceFieldNames,h.interfaceObjectFieldNames);let N=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,d,"parentDefinitionDataByTypeName");if(N.kind===ke.Kind.INTERFACE_TYPE_DEFINITION)for(let E of h.interfaceObjectSubgraphs){let D=(0,Je.getOrThrowError)(this.internalSubgraphBySubgraphName,E,"internalSubgraphBySubgraphName").configurationDataByParentTypeName,A=this.concreteTypeNamesByAbstractTypeName.get(d);if(!A)continue;let F=(0,Je.getOrThrowError)(D,d,"configurationDataMap"),Y=F.keys;if(!Y)continue;F.entityInterfaceConcreteTypeNames=h.concreteTypeNames;let J=F.fieldNames,Z=this.authorizationDataByParentTypeName.get(h.typeName);for(let X of A){if(D.has(X))continue;if(Z){let Q=(0,Je.getValueOrDefault)(this.authorizationDataByParentTypeName,X,()=>(0,Je.newAuthorizationData)(X));for(let Ie of Z.fieldAuthorizationDataByFieldName.values())(0,Je.upsertFieldAuthorizationData)(Q.fieldAuthorizationDataByFieldName,Ie)||this.invalidOrScopesHostPaths.add(`${X}.${Ie.fieldName}`)}let _e=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,X,"parentDefinitionDataByTypeName");if(_e.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)continue;let ut=this.entityContainersByTypeName.get(X);ut&&ut.subgraphNames.add(E);let kt={fieldNames:J,isRootNode:!0,keys:Y,typeName:X};for(let Q of h.interfaceObjectFieldNames){if(_e.fieldDataByFieldName.get(Q))continue;let Qt=(0,Je.getOrThrowError)(N.fieldDataByFieldName,Q,`${d}.fieldDataByFieldName`);_e.fieldDataByFieldName.set(Q,w({},Qt))}D.set(X,kt)}}}this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,hn.orScopesLimitError)(Je.maxOrScopes,[...this.invalidOrScopesHostPaths]));for(let[d,h]of this.objectExtensionDataByTypeName)(0,Ct.upsertValidObjectExtensionData)(this.parentDefinitionDataByTypeName,h,this.persistedDirectiveDefinitionByDirectiveName,this.namedOutputTypeNames,this.namedInputValueTypeNames,this.errors,this.authorizationDataByParentTypeName.get(d));let s=[];for(let[d,h]of this.parentDefinitionDataByTypeName)switch(h.kind){case ke.Kind.ENUM_TYPE_DEFINITION:let N=[],E=this.getEnumValueMergeMethod(d);for(let Z of h.enumValueDataByValueName.values()){let X=(0,Ct.getNodeWithPersistedDirectivesByData)(Z,this.persistedDirectiveDefinitionByDirectiveName,this.errors);switch(E){case Ct.MergeMethod.CONSISTENT:h.appearances>Z.appearances&&this.errors.push((0,hn.incompatibleSharedEnumError)(d)),N.push(X);break;case Ct.MergeMethod.INTERSECTION:h.appearances===Z.appearances&&N.push(X);break;default:N.push(X);break}}h.node.values=N,o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors));break;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:let D=[],A=[];for(let[Z,X]of h.inputValueDataByValueName)h.subgraphNames.size===X.subgraphNames.size?A.push((0,Ct.getNodeWithPersistedDirectivesByInputValueData)(X,this.persistedDirectiveDefinitionByDirectiveName,this.errors)):(0,Ct.isTypeRequired)(X.type)&&D.push({inputValueName:Z,missingSubgraphs:(0,Je.getEntriesNotInHashSet)(h.subgraphNames,X.subgraphNames),requiredSubgraphs:[...X.requiredSubgraphNames]});if(D.length>0){this.errors.push((0,hn.invalidRequiredInputValueError)(Fn.INPUT_OBJECT,d,D,!1));break}h.node.fields=A,o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors));break;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:let F=[],Y=new Set,J=h.kind===ke.Kind.OBJECT_TYPE_DEFINITION;for(let[Z,X]of h.fieldDataByFieldName){(0,Ct.pushAuthorizationDirectives)(X,this.authorizationDataByParentTypeName.get(d));let _e=(0,Ct.getValidFieldArgumentNodes)(X,this.persistedDirectiveDefinitionByDirectiveName,this.fieldConfigurationByFieldPath,this.errors);J&&!(0,Ct.isShareabilityOfAllFieldInstancesValid)(X)&&Y.add(Z),!X.isInaccessible&&F.push((0,Ct.getNodeWithPersistedDirectivesByFieldData)(X,this.persistedDirectiveDefinitionByDirectiveName,_e,this.errors))}J&&Y.size>0&&this.errors.push((0,hn.invalidFieldShareabilityError)(h,Y)),h.node.fields=F,h.implementedInterfaceTypeNames.size>0?s.push(h):o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),F.length<1&&((0,$L.isNodeQuery)(d)?this.errors.push(hn.noQueryRootTypeError):this.errors.push((0,hn.allFieldDefinitionsAreInaccessibleError)((0,Je.kindToTypeString)(h.kind),d)));break;case ke.Kind.SCALAR_TYPE_DEFINITION:Bn.BASE_SCALARS.has(d)||o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors));break;case ke.Kind.UNION_TYPE_DEFINITION:h.node.types=(0,Je.mapToArrayOfValues)(h.memberByMemberTypeName),o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors));break}for(let d of s)d.node.interfaces=this.getValidImplementedInterfaces(d),o.push((0,Ct.getNodeWithPersistedDirectivesByData)(d,this.persistedDirectiveDefinitionByDirectiveName,this.errors));let a=this.parentDefinitionDataByTypeName.get(Fn.QUERY);if((!a||a.kind!==ke.Kind.OBJECT_TYPE_DEFINITION||a.fieldDataByFieldName.size<1)&&this.errors.push(hn.noQueryRootTypeError),this.errors.length>0)return{errors:this.errors};for(let d of Fn.ROOT_TYPES){let h=this.parentDefinitionDataByTypeName.get(d);if(!h||h.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)continue;if(this.errors.length>0)break;let N=new Set(Bn.BASE_SCALARS);for(let[E,D]of h.fieldDataByFieldName){let A=D.namedTypeName;if(N.has(A)||!this.shouldEvaluateObjectLike(D.subgraphNames,A))continue;let F=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,A,"parentDefinitionDataByTypeName"),Y=`${d}.${E}`,J={fieldName:E,fieldTypeNodeString:(0,up.printTypeNode)(D.node.type),path:Y,typeName:d,subgraphs:D.subgraphNames};switch(F.kind){case ke.Kind.ENUM_TYPE_DEFINITION:case ke.Kind.SCALAR_TYPE_DEFINITION:N.add(A);continue;case ke.Kind.OBJECT_TYPE_DEFINITION:this.evaluateResolvabilityOfObject(F,J,Y,new Set,this.entityContainersByTypeName.has(A)?[A]:[]);continue;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:this.evaluateResolvabilityOfAbstractType(A,F.kind,J,Y,new Set,this.entityContainersByTypeName.has(A)?[A]:[]);continue;default:this.errors.push((0,hn.unexpectedObjectResponseType)(Y,(0,Je.kindToTypeString)(F.kind)))}}}let u=this.warnings.length>0?this.warnings:void 0;if(this.errors.length>0)return{errors:this.errors,warnings:u};let c={kind:ke.Kind.DOCUMENT,definitions:o},l=new Map;for(let d of this.internalSubgraphBySubgraphName.values())l.set(d.name,{configurationDataMap:d.configurationDataByParentTypeName,schema:d.schema});for(let d of this.authorizationDataByParentTypeName.values())(0,Je.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,d);return{federationResult:{fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:l,federatedGraphAST:c,federatedGraphSchema:(0,ke.buildASTSchema)(c)},warnings:u}}};Nc.FederationFactory=Qh;function XJ(e){if(e.length<1)return{errors:[hn.minimumSubgraphRequirementError]};let{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityContainerByTypeName:r,errors:i,graph:o,internalSubgraphBySubgraphName:s,warnings:a}=(0,zJ.batchNormalize)(e);if(i)return{errors:i};let u=new Map,c=new Map,l=new Set;for(let[d,h]of s)for(let[N,E]of h.entityInterfaces){(0,Je.getValueOrDefault)(c,N,()=>[]).push({subgraphName:d,concreteTypeNames:E.concreteTypeNames||new Set});let A=u.get(N);if(!A){l.add(N),u.set(N,(0,Je.newEntityInterfaceFederationData)(E,d));continue}(0,Je.upsertEntityInterfaceFederationData)(A,E,d)&&l.delete(N)}for(let d of l)c.delete(d);return c.size>0?{errors:[(0,hn.undefinedEntityInterfaceImplementationsError)(c,u)]}:new Qh(t,n,r,u,o,s,a).federate()}Nc.federateSubgraphs=XJ});var qL=R(GL=>{"use strict";p();m();f();Object.defineProperty(GL,"__esModule",{value:!0})});var QL=R(KL=>{"use strict";p();m();f();Object.defineProperty(KL,"__esModule",{value:!0})});var JL=R(YL=>{"use strict";p();m();f();Object.defineProperty(YL,"__esModule",{value:!0})});var WL=R(zL=>{"use strict";p();m();f();Object.defineProperty(zL,"__esModule",{value:!0})});var XL=R(Xt=>{"use strict";p();m();f();var HJ=Xt&&Xt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(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){r===void 0&&(r=n),e[r]=t[n]}),Qn=Xt&&Xt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&HJ(t,e,n)};Object.defineProperty(Xt,"__esModule",{value:!0});Qn(jr(),Xt);Qn(di(),Xt);Qn(jL(),Xt);Qn(qL(),Xt);Qn(Ev(),Xt);Qn(Nv(),Xt);Qn(Yu(),Xt);Qn(ov(),Xt);Qn(QL(),Xt);Qn(Ds(),Xt);Qn(JL(),Xt);Qn(WL(),Xt);Qn(XI(),Xt);Qn(Wd(),Xt);Qn(zI(),Xt);Qn(fo(),Xt);Qn(WI(),Xt)});var $z={};Ya($z,{buildRouterConfiguration:()=>Vz,federateSubgraphs:()=>Bz});p();m();f();var Wv=Ap(XL());p();m();f();p();m();f();function Iv(e){if(!e)return e;let t=new URL(e),n=t.pathname;n.endsWith("/")&&(n=n.slice(0,-1));let r=t.port?`:${t.port}`:"";return`${t.protocol}//${t.hostname}${r}${n}`}p();m();f();p();m();f();var HL={};p();m();f();function ZL(e){return e!=null}p();m();f();p();m();f();ie();p();m();f();var eP;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}eP=function(t,n){return new e(t,n)}}else eP=AggregateError;function tP(e){return"errors"in e&&Array.isArray(e.errors)}var iP=3;function oP(e){return Yh(e,[])}function Yh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return ZJ(e,t);default:return String(e)}}function nP(e){return e instanceof x?e.toString():`${e.name}: ${e.message}; +If this subgraph has been recently deleted, remember to clean up unused @override directives that reference this subgraph.`}Uh.invalidOverrideTargetSubgraphNameWarning=DY});var HI=L(cc=>{"use strict";p();m();f();Object.defineProperty(cc,"__esModule",{value:!0});cc.getMostRestrictiveMergedTypeNode=cc.getLeastRestrictiveMergedTypeNode=void 0;var Kd=(ie(),ae(de)),OY=di(),AY=Ds(),YL=mo(),Ca;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Ca||(Ca={}));function JL(e,t,n,r){t=(0,AY.deepCopyTypeNode)(t,n);let i={kind:e.kind},o=Ca.NONE,s=i;for(let a=0;a{"use strict";p();m();f();Object.defineProperty(X,"__esModule",{value:!0});X.isTypeValidImplementation=X.MergeMethod=X.isFieldExternalInAllMutualSubgraphs=X.isShareabilityOfAllFieldInstancesValid=X.addValidPersistedDirectiveDefinitionNodeByData=X.getValidFieldArgumentNodes=X.getNodeWithPersistedDirectivesByInputValueData=X.getNodeWithPersistedDirectivesByFieldData=X.getNodeWithPersistedDirectivesByData=X.upsertValidObjectExtensionData=X.pushAuthorizationDirectives=X.upsertObjectExtensionData=X.upsertParentDefinitionData=X.removeInheritableDirectivesFromParentWithFieldsData=X.getUnionNodeByData=X.getSchemaNodeByData=X.getScalarNodeByData=X.getParentWithFieldsNodeByData=X.getInputObjectNodeByData=X.getEnumNodeByData=X.extractImplementedInterfaceTypeNames=X.convertKindForExtension=X.getRenamedRootTypeName=X.isTypeNameRootType=X.addUnionExtensionDataByNode=X.addUnionDefinitionDataByNode=X.extractUniqueUnionMembers=X.addScalarExtensionDataByNode=X.addScalarDefinitionDataByNode=X.upsertPersistedDirectiveDefinitionData=X.addPersistedDirectiveDefinitionDataByNode=X.addObjectDefinitionDataByNode=X.addInterfaceDefinitionDataByNode=X.addInputValueDataByNode=X.addInputObjectExtensionDataByNode=X.addInputObjectDefinitionDataByNode=X.addExtensionWithFieldsDataByNode=X.addFieldDataByNode=X.addInheritedDirectivesToFieldData=X.addEnumValueDataByNode=X.addEnumExtensionDataByNode=X.addEnumDefinitionDataByNode=X.isTypeRequired=X.extractArguments=X.extractDirectives=X.getDirectiveValidationErrors=X.getDefinedArgumentsForDirective=X.isNodeExternalOrShareable=void 0;var Oe=(ie(),ae(de)),fn=Ds(),ft=jr(),pt=di(),It=$r(),HL=HI(),zL=Yu(),Ut=fo(),Yd=mo(),LY=jm();function Qi(){return{deprecatedReason:"",directives:new Map,isDeprecated:!1,tags:new Map}}function XL(e,t,n){var i;let r={isExternal:n.has(It.EXTERNAL),isShareable:t||n.has(It.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let o of e.directives){let s=o.name.value;if(s===It.EXTERNAL){r.isExternal=!0;continue}s===It.SHAREABLE&&(r.isShareable=!0)}return r}X.isNodeExternalOrShareable=XL;function ZL(e,t,n,r,i){let o=e.arguments||[],s=e.name.value,a=new Set,u=new Set;for(let c of o){let l=c.name.value;if(a.has(l)){u.has(l)||(u.add(l),i.push((0,pt.duplicateDirectiveArgumentDefinitionErrorMessage)(s,r,l)));continue}if(!t.get(l)){i.push((0,pt.unexpectedDirectiveArgumentErrorMessage)(s,l));continue}a.add(l)}return a}X.getDefinedArgumentsForDirective=ZL;function eR(e,t,n,r,i,o,s=!1){var E,D,A;let a=e.name.value,u=r.get(a)||Yd.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(a),c=[];if(!u)return c.push((0,pt.undefinedDirectiveErrorMessage)(a,o)),c;let l=new Map,d=new Set;if((0,zL.getDirectiveDefinitionArgumentSets)(u.arguments||[],l,d),(0,zL.areNodeKindAndDirectiveLocationCompatible)(t,u,s)||c.push((0,pt.invalidDirectiveLocationErrorMessage)(o,s?Oe.Kind.ARGUMENT:t,a)),!u.repeatable&&n.get(a)){let F=i.get(o);F?F.has(a)||(F.add(a),c.push((0,pt.invalidRepeatedDirectiveErrorMessage)(a,o))):i.set(o,new Set([a]))}if(!((E=u.arguments)!=null&&E.length))return(D=e.arguments)!=null&&D.length&&c.push((0,pt.unexpectedDirectiveArgumentsErrorMessage)(e,o)),c;if(!((A=e.arguments)!=null&&A.length))return d.size>0&&c.push((0,pt.undefinedRequiredArgumentsErrorMessage)(a,o,[...d])),c;let h=ZL(e,l,d,o,c),N=(0,Ut.getEntriesNotInHashSet)(d,h);return N.length>0&&c.push((0,pt.undefinedRequiredArgumentsErrorMessage)(a,o,[...d],N)),c}X.getDirectiveValidationErrors=eR;function vi(e,t,n,r,i,o,s=!1){if(!e.directives)return t;let a=new Set;for(let u of e.directives){let c=eR(u,e.kind,t,r,i,o,s),l=u.name.value;if(c.length>0){n.push((0,pt.invalidDirectiveError)(l,o,c));continue}if(It.IGNORED_PARENT_DIRECTIVES.has(l))continue;if(l===It.KEY){let h=u.arguments[0].value.value;if(a.has(h))continue;a.add(h)}let d=t.get(l);d?d.push(u):t.set(l,[u])}return t}X.extractDirectives=vi;function RY(e,t,n,r,i,o,s,a,u){var N;if(!((N=t.arguments)!=null&&N.length))return e;let c=t.name.value,l=`${s}.${c}`,d=`${a}.${c}`;o.add(s);let h=new Set;for(let E of t.arguments){let D=E.name.value;if(e.has(D)){h.add(D);continue}ZI(e,E,r,i,`${l}(${D}: ...)`,u,n,`${d}(${D}: ...)`)}return h.size>0&&n.push((0,pt.duplicateArgumentsError)(l,[...h])),e}X.extractArguments=RY;function XI(e){return e.kind===Oe.Kind.NON_NULL_TYPE}X.isTypeRequired=XI;function tR(e,t){switch(e.kind){case Oe.Kind.LIST_TYPE:return t.kind===Oe.Kind.LIST||t.kind===Oe.Kind.NULL;case Oe.Kind.NAMED_TYPE:if(t.kind===Oe.Kind.NULL)return!0;switch(e.name.value){case It.BOOLEAN_SCALAR:return t.kind===Oe.Kind.BOOLEAN;case It.FLOAT_SCALAR:return t.kind===Oe.Kind.INT||t.kind===Oe.Kind.FLOAT;case It.INT_SCALAR:return t.kind===Oe.Kind.INT;case It.STRING_SCALAR:return t.kind===Oe.Kind.STRING;default:return!0}case Oe.Kind.NON_NULL_TYPE:return t.kind===Oe.Kind.NULL?!1:tR(e.type,t)}}function PY(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,Oe.print)(e.defaultValue),i=(0,Oe.print)(t.defaultValue);if(r!==i){n.push((0,pt.incompatibleInputValueDefaultValuesError)(`${e.isArgument?"argument":"input value"} "${e.name}"`,e.originalPath,[...t.subgraphNames],r,i));return}}function xY(e,t,n){let r=t.name.value;e.set(r,{appearances:1,directivesByDirectiveName:n,enumValueDataByValueName:new Map,kind:t.kind,node:(0,fn.getMutableEnumNode)(t),persistedDirectivesData:Qi(),name:r,description:(0,ft.formatDescription)(t.description)})}X.addEnumDefinitionDataByNode=xY;function kY(e,t,n){let r=t.name.value;e.set(r,{directivesByDirectiveName:n,enumValueDataByValueName:new Map,kind:t.kind,name:r})}X.addEnumExtensionDataByNode=kY;function MY(e,t,n,r,i,o){let s=t.name.value;e.set(s,{appearances:1,directivesByDirectiveName:vi(t,new Map,n,r,i,`${o}.${s}`),name:s,node:(0,fn.getMutableEnumValueNode)(t),parentTypeName:o,persistedDirectivesData:Qi(),description:(0,ft.formatDescription)(t.description)})}X.addEnumValueDataByNode=MY;function UY(e,t){for(let n of Yd.INHERITABLE_DIRECTIVE_NAMES)e.get(n)&&(0,Ut.getValueOrDefault)(t,n,()=>[(0,Ut.generateSimpleDirective)(n)]);return t}X.addInheritedDirectivesToFieldData=UY;function CY(e,t,n,r,i,o,s,a,u){let c=t.name.value,l=`${o}.${c}`,d=XL(t,!u,i),h={argumentDataByArgumentName:r,isExternalBySubgraphName:new Map([[a,d.isExternal]]),isInaccessible:i.has(It.INACCESSIBLE),isShareableBySubgraphName:new Map([[a,d.isShareable]]),node:(0,fn.getMutableFieldNode)(t,l),name:c,namedTypeName:(0,fn.getTypeNodeNamedTypeName)(t.type),originalParentTypeName:o,persistedDirectivesData:Qi(),renamedParentTypeName:s,subgraphNames:new Set([a]),type:(0,fn.getMutableTypeNode)(t.type,l),directivesByDirectiveName:i,description:(0,ft.formatDescription)(t.description)};return e.set(c,h),h}X.addFieldDataByNode=CY;function BY(e,t,n,r,i,o,s,a,u){let c=t.name.value,l=nR(t);switch(l){case Oe.Kind.INTERFACE_TYPE_EXTENSION:e.set(c,{directivesByDirectiveName:vi(t,new Map,n,r,i,c),fieldDataByFieldName:new Map,implementedInterfaceTypeNames:Qd(t,new Set,n),isEntity:o,kind:l,name:c});return;default:e.set(c,{directivesByDirectiveName:vi(t,new Map,n,r,i,c),fieldDataByFieldName:new Map,implementedInterfaceTypeNames:Qd(t,new Set,n),isEntity:o,isRootType:s,kind:l,name:c,node:(0,fn.getMutableObjectExtensionNode)(t),persistedDirectivesData:Qi(),renamedTypeName:u||c,subgraphNames:new Set([a])})}}X.addExtensionWithFieldsDataByNode=BY;function VY(e,t,n,r,i,o){let s=t.name.value;e.set(s,{directivesByDirectiveName:vi(t,new Map,o,n,r,s),inputValueDataByValueName:new Map,kind:t.kind,node:(0,fn.getMutableInputObjectNode)(t),persistedDirectivesData:Qi(),name:s,subgraphNames:new Set([i]),description:(0,ft.formatDescription)(t.description)})}X.addInputObjectDefinitionDataByNode=VY;function $Y(e,t,n,r,i){let o=t.name.value;e.set(o,{directivesByDirectiveName:vi(t,new Map,i,n,r,o),inputValueDataByValueName:new Map,kind:t.kind,name:o})}X.addInputObjectExtensionDataByNode=$Y;function ZI(e,t,n,r,i,o,s,a){let u=t.name.value,c=!!a;t.defaultValue&&!tR(t.type,t.defaultValue)&&s.push((0,pt.incompatibleInputValueDefaultValueTypeError)((c?"argument":"input field")+` "${u}"`,i,(0,LY.printTypeNode)(t.type),(0,Oe.print)(t.defaultValue))),e.set(u,{directivesByDirectiveName:vi(t,new Map,s,n,r,i,c),includeDefaultValue:!!t.defaultValue,isArgument:c,name:u,node:(0,fn.getMutableInputValueNode)(t,i),originalPath:i,persistedDirectivesData:Qi(),renamedPath:a||i,requiredSubgraphNames:new Set(XI(t.type)?[o]:[]),subgraphNames:new Set([o]),type:(0,fn.getMutableTypeNode)(t.type,i),defaultValue:t.defaultValue,description:(0,ft.formatDescription)(t.description)})}X.addInputValueDataByNode=ZI;function jY(e,t,n,r,i,o,s){let a=t.name.value;e.set(a,{directivesByDirectiveName:vi(t,new Map,n,r,i,a),fieldDataByFieldName:new Map,isEntity:o,implementedInterfaceTypeNames:Qd(t,new Set,n),kind:t.kind,node:(0,fn.getMutableInterfaceNode)(t),persistedDirectivesData:Qi(),subgraphNames:new Set([s]),name:a,description:(0,ft.formatDescription)(t.description)})}X.addInterfaceDefinitionDataByNode=jY;function GY(e,t,n,r,i,o,s,a,u){let c=t.name.value;e.set(c,{directivesByDirectiveName:vi(t,new Map,n,r,i,c),fieldDataByFieldName:new Map,isEntity:o,isRootType:s,implementedInterfaceTypeNames:Qd(t,new Set,n),kind:t.kind,name:c,node:(0,fn.getMutableObjectNode)(t),persistedDirectivesData:Qi(),renamedTypeName:u||c,subgraphNames:new Set([a]),description:(0,ft.formatDescription)(t.description)})}X.addObjectDefinitionDataByNode=GY;function qY(e,t,n,r,i,o,s){let a=t.name.value,u=new Map;for(let c of t.arguments||[]){let l=`@${a}(${c.name.value}: ...)`;ZI(u,c,r,i,l,s,n,l)}e.set(a,{argumentDataByArgumentName:u,executableLocations:o,name:a,repeatable:t.repeatable,subgraphNames:new Set([s]),description:(0,ft.formatDescription)(t.description)})}X.addPersistedDirectiveDefinitionDataByNode=qY;function KY(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function QY(e,t,n,r,i,o){let s=t.name,a=e.get(s);if(!a){if(i>1)return;let u=new Map;for(let c of t.argumentDataByArgumentName.values())r.add((0,fn.getTypeNodeNamedTypeName)(c.type)),Bh(u,c,n,o);e.set(s,{argumentDataByArgumentName:u,executableLocations:new Set(t.executableLocations),name:s,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(a.subgraphNames.size+1!==i){e.delete(s);return}if(KY(a,t.executableLocations),a.executableLocations.size<1){e.delete(s);return}for(let u of t.argumentDataByArgumentName.values())r.add((0,fn.getTypeNodeNamedTypeName)(u.type)),Bh(a.argumentDataByArgumentName,u,n,o);zd(a,t),a.repeatable&&(a.repeatable=t.repeatable),(0,Ut.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames)}X.upsertPersistedDirectiveDefinitionData=QY;function YY(e,t,n){let r=t.name.value;e.set(r,{directivesByDirectiveName:n,kind:t.kind,node:(0,fn.getMutableScalarNode)(t),persistedDirectivesData:Qi(),name:r,description:(0,ft.formatDescription)(t.description)})}X.addScalarDefinitionDataByNode=YY;function JY(e,t,n){let r=t.name.value;e.set(r,{directivesByDirectiveName:n,kind:t.kind,name:r})}X.addScalarExtensionDataByNode=JY;function ev(e,t,n,r,i,o){for(let s of e){let a=s.name.value;if(t.has(a)){n.push((0,pt.duplicateUnionMemberError)(a,r));continue}let u=i.get(r);u?u.add(a):i.set(r,new Set([a])),Yd.BASE_SCALARS.has(a)||o.add(a),t.set(a,s)}return t}X.extractUniqueUnionMembers=ev;function zY(e,t,n,r,i,o,s){var u;let a=t.name.value;if(!((u=t.types)!=null&&u.length)){n.push((0,pt.noDefinedUnionMembersError)(a));return}e.set(a,{directivesByDirectiveName:vi(t,new Map,n,r,i,a),kind:t.kind,memberByMemberTypeName:ev(t.types,new Map,n,a,o,s),node:(0,fn.getMutableUnionNode)(t),persistedDirectivesData:Qi(),name:a,description:(0,ft.formatDescription)(t.description)})}X.addUnionDefinitionDataByNode=zY;function WY(e,t,n,r,i,o,s){let a=t.name.value;e.set(a,{directivesByDirectiveName:vi(t,new Map,n,r,i,a),kind:t.kind,memberByMemberTypeName:ev(t.types,new Map,n,a,o,s),name:a})}X.addUnionExtensionDataByNode=WY;function HY(e,t){return It.ROOT_TYPES.has(e)||t.has(e)}X.isTypeNameRootType=HY;function XY(e,t){let n=t.get(e);if(!n)return e;switch(n){case Oe.OperationTypeNode.MUTATION:return It.MUTATION;case Oe.OperationTypeNode.SUBSCRIPTION:return It.SUBSCRIPTION;default:return It.QUERY}}X.getRenamedRootTypeName=XY;function nR(e){switch(e.kind){case Oe.Kind.INTERFACE_TYPE_DEFINITION:return Oe.Kind.INTERFACE_TYPE_EXTENSION;case Oe.Kind.OBJECT_TYPE_DEFINITION:return Oe.Kind.OBJECT_TYPE_EXTENSION;default:return e.kind}}X.convertKindForExtension=nR;function Qd(e,t,n){if(!e.interfaces)return t;let r=e.name.value;for(let i of e.interfaces){let o=i.name.value;if(n&&t.has(o)){n.push((0,pt.duplicateInterfaceError)(o,r));continue}t.add(o)}return t}X.extractImplementedInterfaceTypeNames=Qd;function Jd(e,t){if(t)for(let[n,r]of t.directivesByDirectiveName){let i=e.get(n);if(i){i.push(...r);continue}e.set(n,[...r])}}function ZY(e,t){let n=e.get(t.originalParentTypeName);if(!n)return;let r=n.fieldAuthorizationDataByFieldName.get(t.name);if(r){if(r.requiresAuthentication){let i=(0,Ut.generateSimpleDirective)(It.AUTHENTICATED);t.directivesByDirectiveName.set(It.AUTHENTICATED,[i])}if(r.requiredScopes.length>0){let i=(0,Ut.generateRequiresScopesDirective)(r.requiredScopes);t.directivesByDirectiveName.set(It.REQUIRES_SCOPES,[i])}}}function e2(e){for(let t of e.argumentDataByArgumentName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function tv(e,t){let n=[];for(let r of e.values()){if(r.node.kind===Oe.Kind.FIELD_DEFINITION){let i=r;ZY(t,i),e2(i)}for(let i of r.directivesByDirectiveName.values())r.node.directives.push(...i);n.push(r.node)}return n}function lc(e,t,n,r){let i=[];for(let[o,s]of e){let a=n.get(o)||Yd.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(o);if(!a)continue;if(!a.repeatable&&s.length>1){t.push((0,pt.invalidDirectiveError)(o,r,[(0,pt.invalidRepeatedDirectiveErrorMessage)(o,r)]));continue}if(o!==It.KEY){i.push(...s);continue}let u=[],c=new Set,l=[];for(let d of s){let h=d.arguments[0].value;if(h.kind!==Oe.Kind.STRING){l.push((0,pt.invalidKeyDirectiveArgumentErrorMessage)(h.kind));continue}let N=h.value;c.has(N)||(c.add(N),i.push(d),u.push(d))}e.set(o,u),l.length>0&&t.push((0,pt.invalidDirectiveError)(o,r,l))}return i}function t2(e,t,n){if(!n)return;let r=e.memberByMemberTypeName,i=n.memberByMemberTypeName,o=e.name;for(let[s,a]of i){if(!r.has(s)){r.set(s,a);continue}t.push((0,pt.duplicateUnionMemberExtensionError)(s,o))}}function n2(e,t,n,r,i){return Jd(e.directivesByDirectiveName,i),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node.values=tv(e.enumValueDataByValueName,r),e.node}X.getEnumNodeByData=n2;function r2(e,t,n,r,i){return Jd(e.directivesByDirectiveName,i),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node.fields=tv(e.inputValueDataByValueName,r),e.node}X.getInputObjectNodeByData=r2;function i2(e,t,n,r,i){return Jd(e.directivesByDirectiveName,i),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node.fields=tv(e.fieldDataByFieldName,r),e.node.interfaces=(0,ft.setToNamedTypeNodeArray)(e.implementedInterfaceTypeNames),e.node}X.getParentWithFieldsNodeByData=i2;function o2(e,t,n,r){return Jd(e.directivesByDirectiveName,r),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node}X.getScalarNodeByData=o2;function s2(e,t,n){return{description:e.description,directives:lc(e.directivesByDirectiveName,t,n,e.typeName),kind:e.kind,operationTypes:(0,Ut.mapToArrayOfValues)(e.operationTypes)}}X.getSchemaNodeByData=s2;function a2(e,t,n,r){return t2(e,t,r),Jd(e.directivesByDirectiveName,r),e.node.directives=lc(e.directivesByDirectiveName,t,n,e.name),e.node.types=(0,Ut.mapToArrayOfValues)(e.memberByMemberTypeName),e.node}X.getUnionNodeByData=a2;function u2(e){for(let t of Yd.INHERITABLE_DIRECTIVE_NAMES)e.directivesByDirectiveName.delete(t)}X.removeInheritableDirectivesFromParentWithFieldsData=u2;function zd(e,t){t.description&&(!e.description||e.description.value.length0&&e.persistedDirectivesData.directives.set(It.REQUIRES_SCOPES,[(0,Ut.generateRequiresScopesDirective)(n.requiredScopes)]))}X.pushAuthorizationDirectives=rR;function h2(e,t,n,r,i,o,s){let a=e.get(t.name);if(!a){if(t.isRootType){for(let u of t.fieldDataByFieldName.values())rR(u,s);e.set(t.name,{directivesByDirectiveName:t.directivesByDirectiveName,fieldDataByFieldName:t.fieldDataByFieldName,implementedInterfaceTypeNames:t.implementedInterfaceTypeNames,isRootType:!0,isEntity:!1,kind:Oe.Kind.OBJECT_TYPE_DEFINITION,name:t.name,node:{kind:Oe.Kind.OBJECT_TYPE_DEFINITION,name:(0,ft.stringToNameNode)(t.name)},persistedDirectivesData:t.persistedDirectivesData,renamedTypeName:t.renamedTypeName,subgraphNames:t.subgraphNames});return}o.push((0,pt.noBaseTypeExtensionError)(t.name));return}if(a.kind!==Oe.Kind.OBJECT_TYPE_DEFINITION)throw(0,pt.incompatibleParentKindFatalError)(a.name,Oe.Kind.OBJECT_TYPE_DEFINITION,a.kind);m2(a.persistedDirectivesData,t.persistedDirectivesData),(0,Ut.addIterableValuesToSet)(t.implementedInterfaceTypeNames,a.implementedInterfaceTypeNames);for(let u of t.fieldDataByFieldName.values())nv(a.fieldDataByFieldName,u,n,r,i,o)}X.upsertValidObjectExtensionData=h2;function y2(e){return{kind:Oe.Kind.DIRECTIVE,name:(0,ft.stringToNameNode)(It.DEPRECATED),arguments:[{kind:Oe.Kind.ARGUMENT,name:(0,ft.stringToNameNode)(It.REASON),value:{kind:Oe.Kind.STRING,value:e||It.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function T2(e,t,n,r){let i=[];for(let[o,s]of e){let a=t.get(o);if(a){if(s.length<2){i.push(...s);continue}if(!a.repeatable){r.push((0,pt.invalidRepeatedFederatedDirectiveErrorMessage)(o,n));continue}i.push(...s)}}return i}function rv(e,t,n){let r=[...e.persistedDirectivesData.tags.values()];return e.persistedDirectivesData.isDeprecated&&r.push(y2(e.persistedDirectivesData.deprecatedReason)),r.push(...T2(e.persistedDirectivesData.directives,t,e.name,n)),r}function N2(e,t,n){return e.node.name=(0,ft.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=rv(e,t,n),e.node}X.getNodeWithPersistedDirectivesByData=N2;function E2(e,t,n,r){return e.node.arguments=n,e.node.name=(0,ft.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=rv(e,t,r),e.node}X.getNodeWithPersistedDirectivesByFieldData=E2;function iv(e,t,n){return e.node.name=(0,ft.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=rv(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}X.getNodeWithPersistedDirectivesByInputValueData=iv;function g2(e,t,n,r){let i=[],o=[],s=[],a=`${e.renamedParentTypeName}.${e.name}`;for(let[u,c]of e.argumentDataByArgumentName)e.subgraphNames.size===c.subgraphNames.size?(o.push(u),i.push(iv(c,t,r))):XI(c.type)&&s.push({inputValueName:u,missingSubgraphs:(0,Ut.getEntriesNotInHashSet)(e.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return s.length>0?r.push((0,pt.invalidRequiredInputValueError)(It.FIELD,a,s)):o.length>0&&n.set(a,{argumentNames:o,fieldName:e.name,typeName:e.renamedParentTypeName}),i}X.getValidFieldArgumentNodes=g2;function I2(e,t,n,r,i){let o=[];for(let[s,a]of t.argumentDataByArgumentName){let u=(0,Ut.getEntriesNotInHashSet)(t.subgraphNames,a.subgraphNames);if(u.length>0){a.requiredSubgraphNames.size>0&&o.push({inputValueName:s,missingSubgraphs:u,requiredSubgraphs:[...a.requiredSubgraphNames]});continue}e.push(iv(a,n,r)),i&&i.add(s)}return o.length>0?(r.push((0,pt.invalidRequiredInputValueError)(It.DIRECTIVE_DEFINITION,`@${t.name}`,o)),!1):!0}function v2(e,t,n,r){let i=[];I2(i,t,n,r)&&e.push({arguments:i,kind:Oe.Kind.DIRECTIVE_DEFINITION,locations:(0,ft.setToNameNodeArray)(t.executableLocations),name:(0,ft.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}X.addValidPersistedDirectiveDefinitionNodeByData=v2;function _2(e){let t=0,n=0;for(let[r,i]of e.isShareableBySubgraphName)if(!e.isExternalBySubgraphName.get(r)){if(i){if(n)return!1;t+=1;continue}if(n+=1,t||n>1)return!1}return!0}X.isShareabilityOfAllFieldInstancesValid=_2;function b2(e,t){let n=(0,Ut.getAllMutualEntries)(e,t.subgraphNames);if(n.size<1)return!1;for(let r of n)if(!t.isExternalBySubgraphName.get(r))return!1;return!0}X.isFieldExternalInAllMutualSubgraphs=b2;var WL;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(WL||(X.MergeMethod=WL={}));function Ch(e,t,n){if(e.kind===Oe.Kind.NON_NULL_TYPE)return t.kind!==Oe.Kind.NON_NULL_TYPE?!1:Ch(e.type,t.type,n);if(t.kind===Oe.Kind.NON_NULL_TYPE)return Ch(e,t.type,n);switch(e.kind){case Oe.Kind.NAMED_TYPE:if(t.kind===Oe.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let o=n.get(r);return o?o.has(i):!1}return!1;default:return t.kind===Oe.Kind.LIST_TYPE?Ch(e.type,t.type,n):!1}}X.isTypeValidImplementation=Ch});var ov=L(Gs=>{"use strict";p();m();f();Object.defineProperty(Gs,"__esModule",{value:!0});Gs.consolidateAuthorizationDirectives=Gs.upsertParentsAndChildren=Gs.upsertDirectiveAndSchemaDefinitions=void 0;var at=(ie(),ae(de)),mn=di(),pc=mo(),Et=fo(),Ba=jr(),dc=Yu(),Kt=$r(),At=Wd(),Hd=Ds();function S2(e,t){let n=new Set,r=[];(0,at.visit)(t,{Directive:{enter(i){let o=i.name.value;if(pc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(o))return e.isSubgraphVersionTwo=!0,!1;if(pc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(o))return!1;e.referencedDirectiveNames.add(o)}},DirectiveDefinition:{enter(i){let o=i.name.value;return n.has(o)?(e.errors.push((0,mn.duplicateDirectiveDefinitionError)(o)),!1):(n.add(o),pc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(o)?(e.isSubgraphVersionTwo=!0,!1):(pc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(o)||(e.directiveDefinitionByDirectiveName.set(o,i),e.customDirectiveDefinitions.set(o,i)),!1))}},OperationTypeDefinition:{enter(i){let o=i.operation,s=e.schemaDefinition.operationTypes.get(o),a=(0,Hd.getTypeNodeNamedTypeName)(i.type);if(s)return(0,mn.duplicateOperationTypeDefinitionError)(o,a,(0,Hd.getTypeNodeNamedTypeName)(s.type)),!1;let u=e.operationTypeNodeByTypeName.get(a);return u?(e.errors.push((0,mn.invalidOperationTypeDefinitionError)(u,a,o)),!1):(e.operationTypeNodeByTypeName.set(a,o),e.schemaDefinition.operationTypes.set(o,i),!1)}},SchemaDefinition:{enter(i){r.push(i),e.schemaDefinition.description=i.description}},SchemaExtension:{enter(i){r.push(i)}}});for(let i of r)(0,At.extractDirectives)(i,e.schemaDefinition.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,Kt.SCHEMA)}Gs.upsertDirectiveAndSchemaDefinitions=S2;function D2(e,t){let n=!1;(0,at.visit)(t,{EnumTypeDefinition:{enter(r){if(e.originalParentTypeName=r.name.value,e.parentDefinitionDataByTypeName.has(e.originalParentTypeName))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),e.originalParentTypeName)),!1;e.lastParentNodeKind=r.kind;let i=e.extractDirectivesAndAuthorization(r,new Map);(0,At.addEnumDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},EnumTypeExtension:{enter(r){e.originalParentTypeName=r.name.value,e.lastParentNodeKind=r.kind,e.isCurrentParentExtension=!0;let i=e.parentExtensionDataByTypeName.get(e.originalParentTypeName);if(i){if(i.kind!==at.Kind.ENUM_TYPE_EXTENSION)return e.errors.push((0,mn.incompatibleExtensionKindsError)(r,i.kind)),!1;e.extractDirectivesAndAuthorization(r,i.directivesByDirectiveName);return}let o=e.extractDirectivesAndAuthorization(r,new Map);(0,At.addEnumExtensionDataByNode)(e.parentExtensionDataByTypeName,r,o)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL,e.isCurrentParentExtension=!1}},EnumValueDefinition:{enter(r){e.childName=r.name.value,e.lastChildNodeKind=r.kind;let i=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.EXTENSIONS):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENTS);if(i.kind!==at.Kind.ENUM_TYPE_DEFINITION&&i.kind!==at.Kind.ENUM_TYPE_EXTENSION)throw(0,mn.unexpectedKindFatalError)(e.childName);if(i.enumValueDataByValueName.has(e.childName)){let o=e.isCurrentParentExtension?(0,mn.duplicateValueExtensionError)("enum",e.originalParentTypeName,e.childName):(0,mn.duplicateEnumValueDefinitionError)(e.childName,e.originalParentTypeName);e.errors.push(o);return}(0,At.addEnumValueDataByNode)(i.enumValueDataByValueName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName)},leave(){e.childName="",e.lastChildNodeKind=at.Kind.NULL}},FieldDefinition:{enter(r){if(e.childName=r.name.value,n&&(e.extractEventDirectivesToConfiguration(r),e.childName===Kt.SERVICE_FIELD||e.childName===Kt.ENTITIES_FIELD))return!1;e.lastChildNodeKind=r.kind,e.lastChildNodeKind=r.kind;let i=(0,Hd.getTypeNodeNamedTypeName)(r.type);pc.BASE_SCALARS.has(i)||e.referencedTypeNames.add(i);let o=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.EXTENSIONS):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENTS);if(o.kind!==at.Kind.OBJECT_TYPE_DEFINITION&&o.kind!==at.Kind.OBJECT_TYPE_EXTENSION&&o.kind!==at.Kind.INTERFACE_TYPE_DEFINITION&&o.kind!==at.Kind.INTERFACE_TYPE_EXTENSION)throw(0,mn.unexpectedKindFatalError)(e.originalParentTypeName);if(o.fieldDataByFieldName.has(e.childName)){e.errors.push((0,mn.duplicateFieldDefinitionError)(e.childName,e.originalParentTypeName));return}let s=(0,At.extractArguments)(new Map,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.parentsWithChildArguments,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName),a=e.extractDirectivesAndAuthorization(r,(0,At.addInheritedDirectivesToFieldData)(o.directivesByDirectiveName,new Map)),u=(0,At.addFieldDataByNode)(o.fieldDataByFieldName,r,e.errors,s,a,e.originalParentTypeName,e.renamedParentTypeName||e.originalParentTypeName,e.subgraphName,e.isSubgraphVersionTwo),c=e.entityContainerByTypeName.get(e.originalParentTypeName);if(c){c.fieldNames.add(e.childName);let h=e.fieldSetContainerByTypeName.get(e.originalParentTypeName);if(h){(0,dc.extractFieldSetValue)(e.childName,h.requires,u.directivesByDirectiveName.get(Kt.REQUIRES)),(0,dc.extractFieldSetValue)(e.childName,h.provides,u.directivesByDirectiveName.get(Kt.PROVIDES));return}}let l=u.directivesByDirectiveName.get(Kt.PROVIDES);if(!l)return;let d=(0,Et.getValueOrDefault)(e.fieldSetContainerByTypeName,e.originalParentTypeName,dc.newFieldSetContainer);(0,dc.extractFieldSetValue)(e.childName,d.provides,l)},leave(){e.childName="",e.lastChildNodeKind=at.Kind.NULL}},InputObjectTypeDefinition:{enter(r){if(e.originalParentTypeName=r.name.value,e.parentDefinitionDataByTypeName.has(e.originalParentTypeName))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),e.originalParentTypeName)),!1;e.lastParentNodeKind=r.kind,(0,At.addInputObjectDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.subgraphName,e.errors)},leave(){e.lastParentNodeKind=at.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(r){e.originalParentTypeName=r.name.value,e.lastParentNodeKind=r.kind,e.isCurrentParentExtension=!0;let i=e.parentExtensionDataByTypeName.get(e.originalParentTypeName);if(i){if(i.kind!==at.Kind.INPUT_OBJECT_TYPE_EXTENSION)return e.errors.push((0,mn.incompatibleExtensionKindsError)(r,i.kind)),!1;(0,At.extractDirectives)(r,i.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName);return}(0,At.addInputObjectExtensionDataByNode)(e.parentExtensionDataByTypeName,r,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.errors)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL,e.isCurrentParentExtension=!1}},InputValueDefinition:{enter(r){let i=r.name.value;if(e.lastParentNodeKind!==at.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==at.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=i;return}e.childName=i,e.lastChildNodeKind=r.kind;let o=`${e.originalParentTypeName}.${i}`,s=(0,Hd.getTypeNodeNamedTypeName)(r.type);pc.BASE_SCALARS.has(s)||e.referencedTypeNames.add(s);let a=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.EXTENSIONS):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENTS);if(a.kind!==at.Kind.INPUT_OBJECT_TYPE_DEFINITION&&a.kind!==at.Kind.INPUT_OBJECT_TYPE_EXTENSION)throw(0,mn.unexpectedKindFatalError)(e.originalParentTypeName);if(a.inputValueDataByValueName.has(i)){e.errors.push((0,mn.duplicateValueExtensionError)("input",e.originalParentTypeName,i));return}(0,At.addInputValueDataByNode)(a.inputValueDataByValueName,r,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,o,e.subgraphName,e.errors)},leave(){e.argumentName="",e.lastChildNodeKind===at.Kind.INPUT_VALUE_DEFINITION&&(e.childName="",e.lastChildNodeKind=at.Kind.NULL)}},InterfaceTypeDefinition:{enter(r){var a;let i=r.name.value;if(e.originalParentTypeName=i,e.lastParentNodeKind=r.kind,(0,Ba.isNodeExtension)(r))return e.handleExtensionWithFields(r);if(e.parentDefinitionDataByTypeName.has(i))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),i)),!1;let o=(0,Ba.isObjectLikeNodeEntity)(r);if(o&&!e.graph.hasNode(i)&&e.graph.addNode(i),(0,At.addInterfaceDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,o,e.subgraphName),!o)return;e.entityInterfaces.set(i,{concreteTypeNames:new Set,interfaceFieldNames:new Set((a=r.fields)==null?void 0:a.map(u=>u.name.value)),interfaceObjectFieldNames:new Set,isInterfaceObject:!1,typeName:i}),(0,Et.upsertEntityContainerProperties)(e.entityContainerByTypeName,w({typeName:e.originalParentTypeName},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}));let s=(0,Et.getValueOrDefault)(e.fieldSetContainerByTypeName,i,dc.newFieldSetContainer);e.extractKeyFieldSets(r,s)},leave(){let r=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.PARENT_EXTENSION_DATA_MAP):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENT_DEFINITION_DATA_MAP);(0,At.removeInheritableDirectivesFromParentWithFieldsData)(r),e.isCurrentParentExtension=!1,e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},InterfaceTypeExtension:{enter(r){return e.originalParentTypeName=r.name.value,e.lastParentNodeKind=r.kind,e.handleExtensionWithFields(r)},leave(){(0,At.removeInheritableDirectivesFromParentWithFieldsData)((0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.PARENT_EXTENSION_DATA_MAP)),e.isCurrentParentExtension=!1,e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},ObjectTypeDefinition:{enter(r){if(e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.SERVICE_OBJECT)return!1;if(n=(0,At.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,At.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),e.graph.hasNode(e.renamedParentTypeName)||e.graph.addNode(e.renamedParentTypeName),e.lastParentNodeKind=r.kind,(0,Ba.addConcreteTypesForImplementedInterfaces)(r,e.concreteTypeNamesByAbstractTypeName),e.handleInterfaceObject(r),(0,Ba.isNodeExtension)(r))return e.handleExtensionWithFields(r,n);if(e.parentDefinitionDataByTypeName.has(e.originalParentTypeName))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),e.originalParentTypeName)),!1;let i=(0,Ba.isObjectLikeNodeEntity)(r);if((0,At.addObjectDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,i,n,e.subgraphName||"N/A",e.renamedParentTypeName),!i)return;let o=(0,Et.getValueOrDefault)(e.fieldSetContainerByTypeName,e.originalParentTypeName,dc.newFieldSetContainer);e.extractKeyFieldSets(r,o),(0,Et.upsertEntityContainerProperties)(e.entityContainerByTypeName,w({typeName:e.originalParentTypeName,keyFieldSets:o.keys},e.subgraphName?{subgraphNames:[e.subgraphName]}:{}))},leave(){let r=e.isCurrentParentExtension?(0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.PARENT_EXTENSION_DATA_MAP):(0,Et.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Kt.PARENT_DEFINITION_DATA_MAP);(0,At.removeInheritableDirectivesFromParentWithFieldsData)(r),n=!1,e.isCurrentParentExtension=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},ObjectTypeExtension:{enter(r){return e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.SERVICE_OBJECT?!1:(n=(0,At.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,At.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),e.graph.hasNode(e.renamedParentTypeName)||e.graph.addNode(e.renamedParentTypeName),e.lastParentNodeKind=r.kind,(0,Ba.addConcreteTypesForImplementedInterfaces)(r,e.concreteTypeNamesByAbstractTypeName),e.handleExtensionWithFields(r,n))},leave(){(0,At.removeInheritableDirectivesFromParentWithFieldsData)((0,Et.getOrThrowError)(e.parentExtensionDataByTypeName,e.originalParentTypeName,Kt.PARENT_EXTENSION_DATA_MAP)),n=!1,e.isCurrentParentExtension=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},ScalarTypeDefinition:{enter(r){let i=r.name.value;if(i===Kt.ANY_SCALAR)return!1;if(e.parentDefinitionDataByTypeName.get(i))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),i)),!1;e.originalParentTypeName=i,e.lastParentNodeKind=r.kind;let s=e.extractDirectivesAndAuthorization(r,new Map);(0,At.addScalarDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,s)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},ScalarTypeExtension:{enter(r){if(e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.ANY_SCALAR)return!1;e.lastParentNodeKind=r.kind;let i=e.parentExtensionDataByTypeName.get(e.originalParentTypeName);if(i)return i.kind!==at.Kind.SCALAR_TYPE_EXTENSION?(e.errors.push((0,mn.incompatibleExtensionKindsError)(r,i.kind)),!1):(e.extractDirectivesAndAuthorization(r,i.directivesByDirectiveName),!1);let o=e.extractDirectivesAndAuthorization(r,new Map);return(0,At.addScalarExtensionDataByNode)(e.parentExtensionDataByTypeName,r,o),!1},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},UnionTypeDefinition:{enter(r){if(e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.ENTITY_UNION)return!1;if(e.parentDefinitionDataByTypeName.get(e.originalParentTypeName))return e.errors.push((0,mn.duplicateTypeDefinitionError)((0,Et.kindToTypeString)(r.kind),e.originalParentTypeName)),!1;e.lastParentNodeKind=r.kind,(0,At.addUnionDefinitionDataByNode)(e.parentDefinitionDataByTypeName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.concreteTypeNamesByAbstractTypeName,e.referencedTypeNames)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}},UnionTypeExtension:{enter(r){var o;if(e.originalParentTypeName=r.name.value,e.originalParentTypeName===Kt.ENTITY_UNION)return!1;let i=e.parentExtensionDataByTypeName.get(e.originalParentTypeName);return(o=r.types)!=null&&o.length?(e.lastParentNodeKind=r.kind,(0,Ba.addConcreteTypesForUnion)(r,e.concreteTypeNamesByAbstractTypeName),i?i.kind!==at.Kind.UNION_TYPE_EXTENSION?(e.errors.push((0,mn.incompatibleExtensionKindsError)(r,i.kind)),!1):((0,At.extractDirectives)(r,i.directivesByDirectiveName,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.originalParentTypeName),(0,At.extractUniqueUnionMembers)(r.types,i.memberByMemberTypeName,e.errors,e.originalParentTypeName,e.concreteTypeNamesByAbstractTypeName,e.referencedTypeNames),!1):((0,At.addUnionExtensionDataByNode)(e.parentExtensionDataByTypeName,r,e.errors,e.directiveDefinitionByDirectiveName,e.handledRepeatedDirectivesByHostPath,e.concreteTypeNamesByAbstractTypeName,e.referencedTypeNames),!1)):(e.errors.push((0,mn.noDefinedUnionMembersError)(e.originalParentTypeName,!0)),!1)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=at.Kind.NULL}}})}Gs.upsertParentsAndChildren=D2;function O2(e,t){let n,r=!1;(0,at.visit)(t,{FieldDefinition:{enter(i){e.childName=i.name.value;let o=(0,Hd.getTypeNodeNamedTypeName)(i.type),s=e.leafTypeNamesWithAuthorizationDirectives.has(o);if((!n||!n.hasParentLevelAuthorization)&&!s)return!1;let a=e.renamedParentTypeName||e.originalParentTypeName;n||(n=(0,Et.setAndGetValue)(e.authorizationDataByParentTypeName,a,(0,Et.newAuthorizationData)(a)));let u=(0,Et.getValueOrDefault)(n.fieldAuthorizationDataByFieldName,e.childName,()=>(0,Et.newFieldAuthorizationData)(e.childName));if(!(0,Et.mergeAuthorizationDataByAND)(n,u))return e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1;if(!s)return!1;if(r)return(0,Et.getValueOrDefault)(e.heirFieldAuthorizationDataByTypeName,o,()=>[]).push(u),!1;let c=e.authorizationDataByParentTypeName.get(o);return c&&c.hasParentLevelAuthorization&&!(0,Et.mergeAuthorizationDataByAND)(c,u)&&e.invalidOrScopesHostPaths.add(`${e.originalParentTypeName}.${e.childName}`),!1},leave(){e.childName=""}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,n=e.getAuthorizationData(i),r=!0},leave(){e.originalParentTypeName="",n=void 0,r=!1}},ObjectTypeDefinition:{enter(i){let o=e.parentDefinitionDataByTypeName.get(i.name.value)||e.parentExtensionDataByTypeName.get(i.name.value);if(!o)return!1;e.originalParentTypeName=o.name,e.renamedParentTypeName=o.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}},ObjectTypeExtension:{enter(i){let o=e.parentDefinitionDataByTypeName.get(i.name.value)||e.parentExtensionDataByTypeName.get(i.name.value);if(!o)return!1;e.originalParentTypeName=o.name,e.renamedParentTypeName=o.renamedTypeName,n=e.getAuthorizationData(i)},leave(){e.originalParentTypeName="",e.renamedParentTypeName="",n=void 0}}})}Gs.consolidateAuthorizationDirectives=O2});function _t(){_t.init.call(this)}function Vh(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function fR(e){return e._maxListeners===void 0?_t.defaultMaxListeners:e._maxListeners}function aR(e,t,n,r){var i,o,s,a;if(Vh(n),(o=e._events)===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s=="function"?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=fR(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function A2(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function uR(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=A2.bind(r);return i.listener=n,r.wrapFn=i,i}function cR(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?function(o){for(var s=new Array(o.length),a=0;a{"use strict";p();m();f();fc=typeof Reflect=="object"?Reflect:null,iR=fc&&typeof fc.apply=="function"?fc.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};pR=fc&&typeof fc.ownKeys=="function"?fc.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};oR=Number.isNaN||function(e){return e!=e};dR=_t,_t.EventEmitter=_t,_t.prototype._events=void 0,_t.prototype._eventsCount=0,_t.prototype._maxListeners=void 0;sR=10;Object.defineProperty(_t,"defaultMaxListeners",{enumerable:!0,get:function(){return sR},set:function(e){if(typeof e!="number"||e<0||oR(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");sR=e}}),_t.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_t.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||oR(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},_t.prototype.getMaxListeners=function(){return fR(this)},_t.prototype.emit=function(e){for(var t=[],n=1;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(a===void 0)return!1;if(typeof a=="function")iR(a,this,t);else{var u=a.length,c=mR(a,u);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,i=o;break}if(i<0)return this;i===0?n.shift():function(a,u){for(;u+1=0;r--)this.removeListener(e,t[r]);return this},_t.prototype.listeners=function(e){return cR(this,e,!0)},_t.prototype.rawListeners=function(e){return cR(this,e,!1)},_t.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):lR.call(e,t)},_t.prototype.listenerCount=lR,_t.prototype.eventNames=function(){return this._eventsCount>0?pR(this._events):[]};xr=dR;xr.EventEmitter;xr.defaultMaxListeners;xr.init;xr.listenerCount;xr.EventEmitter;xr.defaultMaxListeners;xr.init;xr.listenerCount});var hR,QIe,YIe,JIe,zIe,WIe,yR=j(()=>{"use strict";p();m();f();sv();sv();xr.once=function(e,t){return new Promise((n,r)=>{function i(...s){o!==void 0&&e.removeListener("error",o),n(s)}let o;t!=="error"&&(o=s=>{e.removeListener(name,i),r(s)},e.once("error",o)),e.once(t,i)})};xr.on=function(e,t){let n=[],r=[],i=null,o=!1,s={next(){return ar(this,null,function*(){let l=n.shift();if(l)return createIterResult(l,!1);if(i){let d=Promise.reject(i);return i=null,d}return o?createIterResult(void 0,!0):new Promise((d,h)=>r.push({resolve:d,reject:h}))})},return(){return ar(this,null,function*(){e.removeListener(t,a),e.removeListener("error",u),o=!0;for(let l of r)l.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)})},throw(l){i=l,e.removeListener(t,a),e.removeListener("error",u)},[Symbol.asyncIterator](){return this}};return e.on(t,a),e.on("error",u),s;function a(...l){let d=r.shift();d?d.resolve(createIterResult(l,!1)):n.push(l)}function u(l){o=!0;let d=r.shift();d?d.reject(l):i=l,s.return()}};({EventEmitter:hR,defaultMaxListeners:QIe,init:YIe,listenerCount:JIe,on:zIe,once:WIe}=xr)});var $h=L((rve,TR)=>{"use strict";p();m();f();function Yi(e){if(typeof e!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=e}typeof Symbol!="undefined"&&(Yi.prototype[Symbol.iterator]=function(){return this});Yi.of=function(){var e=arguments,t=e.length,n=0;return new Yi(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};Yi.empty=function(){var e=new Yi(function(){return{done:!0}});return e};Yi.fromSequence=function(e){var t=0,n=e.length;return new Yi(function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}})};Yi.is=function(e){return e instanceof Yi?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};TR.exports=Yi});var NR=L(av=>{"use strict";p();m();f();av.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer!="undefined";av.SYMBOL_SUPPORT=typeof Symbol!="undefined"});var uv=L((dve,gR)=>{"use strict";p();m();f();var w2=$h(),ER=NR(),F2=ER.ARRAY_BUFFER_SUPPORT,L2=ER.SYMBOL_SUPPORT;function R2(e){return typeof e=="string"||Array.isArray(e)||F2&&ArrayBuffer.isView(e)?w2.fromSequence(e):typeof e!="object"||e===null?null:L2&&typeof e[Symbol.iterator]=="function"?e[Symbol.iterator]():typeof e.next=="function"?e:null}gR.exports=function(t){var n=R2(t);if(!n)throw new Error("obliterator: target is not iterable nor a valid iterator.");return n}});var vR=L((hve,IR)=>{"use strict";p();m();f();var P2=uv();IR.exports=function(t,n){for(var r=arguments.length>1?n:1/0,i=r!==1/0?new Array(r):[],o,s=0,a=P2(t);;){if(s===r)return i;if(o=a.next(),o.done)return s!==n&&(i.length=s),i;i[s++]=o.value}}});var bR=L((Eve,_R)=>{"use strict";p();m();f();var x2=$h(),k2=uv();_R.exports=function(){var t=arguments,n=null,r=-1;return new x2(function(){var o=null;do{if(n===null){if(r++,r>=t.length)return{done:!0};n=k2(t[r])}if(o=n.next(),o.done===!0){n=null;continue}break}while(!0);return o})}});var UR={};Ya(UR,{DirectedGraph:()=>tp,Graph:()=>wt,InvalidArgumentsGraphError:()=>re,MultiDirectedGraph:()=>ip,MultiGraph:()=>rp,MultiUndirectedGraph:()=>op,NotFoundGraphError:()=>ee,UndirectedGraph:()=>np,UsageGraphError:()=>Ae,default:()=>wt});function M2(){let e=arguments[0];for(let t=1,n=arguments.length;te++}function wR(e,t){this.key=e,this.attributes=t,this.clear()}function FR(e,t){this.key=e,this.attributes=t,this.clear()}function LR(e,t){this.key=e,this.attributes=t,this.clear()}function hc(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}function bo(e,t,n,r,i,o,s){let a,u,c,l;if(r=""+r,n===RR){if(a=e._nodes.get(r),!a)throw new ee(`Graph.${t}: could not find the "${r}" node in the graph.`);c=i,l=o}else if(n===xR){if(i=""+i,u=e._edges.get(i),!u)throw new ee(`Graph.${t}: could not find the "${i}" edge in the graph.`);let d=u.source.key,h=u.target.key;if(r===d)a=u.target;else if(r===h)a=u.source;else throw new ee(`Graph.${t}: the "${r}" node is not attached to the "${i}" edge (${d}, ${h}).`);c=o,l=s}else{if(u=e._edges.get(r),!u)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`);n===PR?a=u.source:a=u.target,c=i,l=o}return[a,c,l]}function B2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=bo(this,t,n,r,i,o);return s.attributes[a]}}function V2(e,t,n){e.prototype[t]=function(r,i){let[o]=bo(this,t,n,r,i);return o.attributes}}function $2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=bo(this,t,n,r,i,o);return s.attributes.hasOwnProperty(a)}}function j2(e,t,n){e.prototype[t]=function(r,i,o,s){let[a,u,c]=bo(this,t,n,r,i,o,s);return a.attributes[u]=c,this.emit("nodeAttributesUpdated",{key:a.key,type:"set",attributes:a.attributes,name:u}),this}}function G2(e,t,n){e.prototype[t]=function(r,i,o,s){let[a,u,c]=bo(this,t,n,r,i,o,s);if(typeof c!="function")throw new re(`Graph.${t}: updater should be a function.`);let l=a.attributes,d=c(l[u]);return l[u]=d,this.emit("nodeAttributesUpdated",{key:a.key,type:"set",attributes:a.attributes,name:u}),this}}function q2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=bo(this,t,n,r,i,o);return delete s.attributes[a],this.emit("nodeAttributesUpdated",{key:s.key,type:"remove",attributes:s.attributes,name:a}),this}}function K2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=bo(this,t,n,r,i,o);if(!Qn(a))throw new re(`Graph.${t}: provided attributes are not a plain object.`);return s.attributes=a,this.emit("nodeAttributesUpdated",{key:s.key,type:"replace",attributes:s.attributes}),this}}function Q2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=bo(this,t,n,r,i,o);if(!Qn(a))throw new re(`Graph.${t}: provided attributes are not a plain object.`);return wn(s.attributes,a),this.emit("nodeAttributesUpdated",{key:s.key,type:"merge",attributes:s.attributes,data:a}),this}}function Y2(e,t,n){e.prototype[t]=function(r,i,o){let[s,a]=bo(this,t,n,r,i,o);if(typeof a!="function")throw new re(`Graph.${t}: provided updater is not a function.`);return s.attributes=a(s.attributes),this.emit("nodeAttributesUpdated",{key:s.key,type:"update",attributes:s.attributes}),this}}function z2(e){J2.forEach(function({name:t,attacher:n}){n(e,t("Node"),RR),n(e,t("Source"),PR),n(e,t("Target"),C2),n(e,t("Opposite"),xR)})}function W2(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return o.attributes[i]}}function H2(e,t,n){e.prototype[t]=function(r){let i;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>1){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let o=""+r,s=""+arguments[1];if(i=ri(this,o,s,n),!i)throw new ee(`Graph.${t}: could not find an edge for the given path ("${o}" - "${s}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,i=this._edges.get(r),!i)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return i.attributes}}function X2(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return o.attributes.hasOwnProperty(i)}}function Z2(e,t,n){e.prototype[t]=function(r,i,o){let s;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=""+r,u=""+i;if(i=arguments[2],o=arguments[3],s=ri(this,a,u,n),!s)throw new ee(`Graph.${t}: could not find an edge for the given path ("${a}" - "${u}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,s=this._edges.get(r),!s)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return s.attributes[i]=o,this.emit("edgeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:i}),this}}function eJ(e,t,n){e.prototype[t]=function(r,i,o){let s;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>3){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let a=""+r,u=""+i;if(i=arguments[2],o=arguments[3],s=ri(this,a,u,n),!s)throw new ee(`Graph.${t}: could not find an edge for the given path ("${a}" - "${u}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,s=this._edges.get(r),!s)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof o!="function")throw new re(`Graph.${t}: updater should be a function.`);return s.attributes[i]=o(s.attributes[i]),this.emit("edgeAttributesUpdated",{key:s.key,type:"set",attributes:s.attributes,name:i}),this}}function tJ(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}return delete o.attributes[i],this.emit("edgeAttributesUpdated",{key:o.key,type:"remove",attributes:o.attributes,name:i}),this}}function nJ(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Qn(i))throw new re(`Graph.${t}: provided attributes are not a plain object.`);return o.attributes=i,this.emit("edgeAttributesUpdated",{key:o.key,type:"replace",attributes:o.attributes}),this}}function rJ(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(!Qn(i))throw new re(`Graph.${t}: provided attributes are not a plain object.`);return wn(o.attributes,i),this.emit("edgeAttributesUpdated",{key:o.key,type:"merge",attributes:o.attributes,data:i}),this}}function iJ(e,t,n){e.prototype[t]=function(r,i){let o;if(this.type!=="mixed"&&n!=="mixed"&&n!==this.type)throw new Ae(`Graph.${t}: cannot find this type of edges in your ${this.type} graph.`);if(arguments.length>2){if(this.multi)throw new Ae(`Graph.${t}: cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about.`);let s=""+r,a=""+i;if(i=arguments[2],o=ri(this,s,a,n),!o)throw new ee(`Graph.${t}: could not find an edge for the given path ("${s}" - "${a}").`)}else{if(n!=="mixed")throw new Ae(`Graph.${t}: calling this method with only a key (vs. a source and target) does not make sense since an edge with this key could have the other type.`);if(r=""+r,o=this._edges.get(r),!o)throw new ee(`Graph.${t}: could not find the "${r}" edge in the graph.`)}if(typeof i!="function")throw new re(`Graph.${t}: provided updater is not a function.`);return o.attributes=i(o.attributes),this.emit("edgeAttributesUpdated",{key:o.key,type:"update",attributes:o.attributes}),this}}function sJ(e){oJ.forEach(function({name:t,attacher:n}){n(e,t("Edge"),"mixed"),n(e,t("DirectedEdge"),"directed"),n(e,t("UndirectedEdge"),"undirected")})}function uJ(e,t,n,r){let i=!1;for(let o in t){if(o===r)continue;let s=t[o];if(i=n(s.key,s.attributes,s.source.key,s.target.key,s.source.attributes,s.target.attributes,s.undirected),e&&i)return s.key}}function cJ(e,t,n,r){let i,o,s,a=!1;for(let u in t)if(u!==r){i=t[u];do{if(o=i.source,s=i.target,a=n(i.key,i.attributes,o.key,s.key,o.attributes,s.attributes,i.undirected),e&&a)return i.key;i=i.next}while(i!==void 0)}}function cv(e,t){let n=Object.keys(e),r=n.length,i,o=0;return new kr.default(function(){do if(i)i=i.next;else{if(o>=r)return{done:!0};let a=n[o++];if(a===t){i=void 0;continue}i=e[a]}while(!i);return{done:!1,value:{edge:i.key,attributes:i.attributes,source:i.source.key,target:i.target.key,sourceAttributes:i.source.attributes,targetAttributes:i.target.attributes,undirected:i.undirected}}})}function lJ(e,t,n,r){let i=t[n];if(!i)return;let o=i.source,s=i.target;if(r(i.key,i.attributes,o.key,s.key,o.attributes,s.attributes,i.undirected)&&e)return i.key}function dJ(e,t,n,r){let i=t[n];if(!i)return;let o=!1;do{if(o=r(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected),e&&o)return i.key;i=i.next}while(i!==void 0)}function lv(e,t){let n=e[t];return n.next!==void 0?new kr.default(function(){if(!n)return{done:!0};let r={edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected};return n=n.next,{done:!1,value:r}}):kr.default.of({edge:n.key,attributes:n.attributes,source:n.source.key,target:n.target.key,sourceAttributes:n.source.attributes,targetAttributes:n.target.attributes,undirected:n.undirected})}function pJ(e,t){if(e.size===0)return[];if(t==="mixed"||t===e.type)return typeof Array.from=="function"?Array.from(e._edges.keys()):(0,dv.default)(e._edges.keys(),e._edges.size);let n=t==="undirected"?e.undirectedSize:e.directedSize,r=new Array(n),i=t==="undirected",o=e._edges.values(),s=0,a,u;for(;a=o.next(),a.done!==!0;)u=a.value,u.undirected===i&&(r[s++]=u.key);return r}function kR(e,t,n,r){if(t.size===0)return;let i=n!=="mixed"&&n!==t.type,o=n==="undirected",s,a,u=!1,c=t._edges.values();for(;s=c.next(),s.done!==!0;){if(a=s.value,i&&a.undirected!==o)continue;let{key:l,attributes:d,source:h,target:N}=a;if(u=r(l,d,h.key,N.key,h.attributes,N.attributes,a.undirected),e&&u)return l}}function fJ(e,t){if(e.size===0)return kr.default.empty();let n=t!=="mixed"&&t!==e.type,r=t==="undirected",i=e._edges.values();return new kr.default(function(){let s,a;for(;;){if(s=i.next(),s.done)return s;if(a=s.value,!(n&&a.undirected!==r))break}return{value:{edge:a.key,attributes:a.attributes,source:a.source.key,target:a.target.key,sourceAttributes:a.source.attributes,targetAttributes:a.target.attributes,undirected:a.undirected},done:!1}})}function pv(e,t,n,r,i,o){let s=t?cJ:uJ,a;if(n!=="undirected"&&(r!=="out"&&(a=s(e,i.in,o),e&&a)||r!=="in"&&(a=s(e,i.out,o,r?void 0:i.key),e&&a))||n!=="directed"&&(a=s(e,i.undirected,o),e&&a))return a}function mJ(e,t,n,r){let i=[];return pv(!1,e,t,n,r,function(o){i.push(o)}),i}function hJ(e,t,n){let r=kr.default.empty();return e!=="undirected"&&(t!=="out"&&typeof n.in!="undefined"&&(r=(0,Ji.default)(r,cv(n.in))),t!=="in"&&typeof n.out!="undefined"&&(r=(0,Ji.default)(r,cv(n.out,t?void 0:n.key)))),e!=="directed"&&typeof n.undirected!="undefined"&&(r=(0,Ji.default)(r,cv(n.undirected))),r}function fv(e,t,n,r,i,o,s){let a=n?dJ:lJ,u;if(t!=="undirected"&&(typeof i.in!="undefined"&&r!=="out"&&(u=a(e,i.in,o,s),e&&u)||typeof i.out!="undefined"&&r!=="in"&&(r||i.key!==o)&&(u=a(e,i.out,o,s),e&&u))||t!=="directed"&&typeof i.undirected!="undefined"&&(u=a(e,i.undirected,o,s),e&&u))return u}function yJ(e,t,n,r,i){let o=[];return fv(!1,e,t,n,r,i,function(s){o.push(s)}),o}function TJ(e,t,n,r){let i=kr.default.empty();return e!=="undirected"&&(typeof n.in!="undefined"&&t!=="out"&&r in n.in&&(i=(0,Ji.default)(i,lv(n.in,r))),typeof n.out!="undefined"&&t!=="in"&&r in n.out&&(t||n.key!==r)&&(i=(0,Ji.default)(i,lv(n.out,r)))),e!=="directed"&&typeof n.undirected!="undefined"&&r in n.undirected&&(i=(0,Ji.default)(i,lv(n.undirected,r))),i}function NJ(e,t){let{name:n,type:r,direction:i}=t;e.prototype[n]=function(o,s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];if(!arguments.length)return pJ(this,r);if(arguments.length===1){o=""+o;let a=this._nodes.get(o);if(typeof a=="undefined")throw new ee(`Graph.${n}: could not find the "${o}" node in the graph.`);return mJ(this.multi,r==="mixed"?this.type:r,i,a)}if(arguments.length===2){o=""+o,s=""+s;let a=this._nodes.get(o);if(!a)throw new ee(`Graph.${n}: could not find the "${o}" source node in the graph.`);if(!this._nodes.has(s))throw new ee(`Graph.${n}: could not find the "${s}" target node in the graph.`);return yJ(r,this.multi,i,a,s)}throw new re(`Graph.${n}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function EJ(e,t){let{name:n,type:r,direction:i}=t,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(c,l,d){if(!(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)){if(arguments.length===1)return d=c,kR(!1,this,r,d);if(arguments.length===2){c=""+c,d=l;let h=this._nodes.get(c);if(typeof h=="undefined")throw new ee(`Graph.${o}: could not find the "${c}" node in the graph.`);return pv(!1,this.multi,r==="mixed"?this.type:r,i,h,d)}if(arguments.length===3){c=""+c,l=""+l;let h=this._nodes.get(c);if(!h)throw new ee(`Graph.${o}: could not find the "${c}" source node in the graph.`);if(!this._nodes.has(l))throw new ee(`Graph.${o}: could not find the "${l}" target node in the graph.`);return fv(!1,r,this.multi,i,h,l,d)}throw new re(`Graph.${o}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)}};let s="map"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){let c=Array.prototype.slice.call(arguments),l=c.pop(),d;if(c.length===0){let h=0;r!=="directed"&&(h+=this.undirectedSize),r!=="undirected"&&(h+=this.directedSize),d=new Array(h);let N=0;c.push((E,D,A,F,Y,J,Z)=>{d[N++]=l(E,D,A,F,Y,J,Z)})}else d=[],c.push((h,N,E,D,A,F,Y)=>{d.push(l(h,N,E,D,A,F,Y))});return this[o].apply(this,c),d};let a="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){let c=Array.prototype.slice.call(arguments),l=c.pop(),d=[];return c.push((h,N,E,D,A,F,Y)=>{l(h,N,E,D,A,F,Y)&&d.push(h)}),this[o].apply(this,c),d};let u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){let c=Array.prototype.slice.call(arguments);if(c.length<2||c.length>4)throw new re(`Graph.${u}: invalid number of arguments (expecting 2, 3 or 4 and got ${c.length}).`);if(typeof c[c.length-1]=="function"&&typeof c[c.length-2]!="function")throw new re(`Graph.${u}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let l,d;c.length===2?(l=c[0],d=c[1],c=[]):c.length===3?(l=c[1],d=c[2],c=[c[0]]):c.length===4&&(l=c[2],d=c[3],c=[c[0],c[1]]);let h=d;return c.push((N,E,D,A,F,Y,J)=>{h=l(h,N,E,D,A,F,Y,J)}),this[o].apply(this,c),h}}function gJ(e,t){let{name:n,type:r,direction:i}=t,o="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(u,c,l){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return!1;if(arguments.length===1)return l=u,kR(!0,this,r,l);if(arguments.length===2){u=""+u,l=c;let d=this._nodes.get(u);if(typeof d=="undefined")throw new ee(`Graph.${o}: could not find the "${u}" node in the graph.`);return pv(!0,this.multi,r==="mixed"?this.type:r,i,d,l)}if(arguments.length===3){u=""+u,c=""+c;let d=this._nodes.get(u);if(!d)throw new ee(`Graph.${o}: could not find the "${u}" source node in the graph.`);if(!this._nodes.has(c))throw new ee(`Graph.${o}: could not find the "${c}" target node in the graph.`);return fv(!0,r,this.multi,i,d,c,l)}throw new re(`Graph.${o}: too many arguments (expecting 1, 2 or 3 and got ${arguments.length}).`)};let s="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[s]=function(){let u=Array.prototype.slice.call(arguments),c=u.pop();return u.push((d,h,N,E,D,A,F)=>c(d,h,N,E,D,A,F)),!!this[o].apply(this,u)};let a="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){let u=Array.prototype.slice.call(arguments),c=u.pop();return u.push((d,h,N,E,D,A,F)=>!c(d,h,N,E,D,A,F)),!this[o].apply(this,u)}}function IJ(e,t){let{name:n,type:r,direction:i}=t,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(s,a){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return kr.default.empty();if(!arguments.length)return fJ(this,r);if(arguments.length===1){s=""+s;let u=this._nodes.get(s);if(!u)throw new ee(`Graph.${o}: could not find the "${s}" node in the graph.`);return hJ(r,i,u)}if(arguments.length===2){s=""+s,a=""+a;let u=this._nodes.get(s);if(!u)throw new ee(`Graph.${o}: could not find the "${s}" source node in the graph.`);if(!this._nodes.has(a))throw new ee(`Graph.${o}: could not find the "${a}" target node in the graph.`);return TJ(r,i,u,a)}throw new re(`Graph.${o}: too many arguments (expecting 0, 1 or 2 and got ${arguments.length}).`)}}function vJ(e){aJ.forEach(t=>{NJ(e,t),EJ(e,t),gJ(e,t),IJ(e,t)})}function Gh(){this.A=null,this.B=null}function Xd(e,t,n,r,i){for(let o in r){let s=r[o],a=s.source,u=s.target,c=a===n?u:a;if(t&&t.has(c.key))continue;let l=i(c.key,c.attributes);if(e&&l)return c.key}}function mv(e,t,n,r,i){if(t!=="mixed"){if(t==="undirected")return Xd(e,null,r,r.undirected,i);if(typeof n=="string")return Xd(e,null,r,r[n],i)}let o=new Gh,s;if(t!=="undirected"){if(n!=="out"){if(s=Xd(e,null,r,r.in,i),e&&s)return s;o.wrap(r.in)}if(n!=="in"){if(s=Xd(e,o,r,r.out,i),e&&s)return s;o.wrap(r.out)}}if(t!=="directed"&&(s=Xd(e,o,r,r.undirected,i),e&&s))return s}function bJ(e,t,n){if(e!=="mixed"){if(e==="undirected")return Object.keys(n.undirected);if(typeof t=="string")return Object.keys(n[t])}let r=[];return mv(!1,e,t,n,function(i){r.push(i)}),r}function Zd(e,t,n){let r=Object.keys(n),i=r.length,o=0;return new kr.default(function(){let a=null;do{if(o>=i)return e&&e.wrap(n),{done:!0};let u=n[r[o++]],c=u.source,l=u.target;if(a=c===t?l:c,e&&e.has(a.key)){a=null;continue}}while(a===null);return{done:!1,value:{neighbor:a.key,attributes:a.attributes}}})}function SJ(e,t,n){if(e!=="mixed"){if(e==="undirected")return Zd(null,n,n.undirected);if(typeof t=="string")return Zd(null,n,n[t])}let r=kr.default.empty(),i=new Gh;return e!=="undirected"&&(t!=="out"&&(r=(0,Ji.default)(r,Zd(i,n,n.in))),t!=="in"&&(r=(0,Ji.default)(r,Zd(i,n,n.out)))),e!=="directed"&&(r=(0,Ji.default)(r,Zd(i,n,n.undirected))),r}function DJ(e,t){let{name:n,type:r,direction:i}=t;e.prototype[n]=function(o){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return[];o=""+o;let s=this._nodes.get(o);if(typeof s=="undefined")throw new ee(`Graph.${n}: could not find the "${o}" node in the graph.`);return bJ(r==="mixed"?this.type:r,i,s)}}function OJ(e,t){let{name:n,type:r,direction:i}=t,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(c,l){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;c=""+c;let d=this._nodes.get(c);if(typeof d=="undefined")throw new ee(`Graph.${o}: could not find the "${c}" node in the graph.`);mv(!1,r==="mixed"?this.type:r,i,d,l)};let s="map"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(c,l){let d=[];return this[o](c,(h,N)=>{d.push(l(h,N))}),d};let a="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(c,l){let d=[];return this[o](c,(h,N)=>{l(h,N)&&d.push(h)}),d};let u="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(c,l,d){if(arguments.length<3)throw new re(`Graph.${u}: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.`);let h=d;return this[o](c,(N,E)=>{h=l(h,N,E)}),h}}function AJ(e,t){let{name:n,type:r,direction:i}=t,o=n[0].toUpperCase()+n.slice(1,-1),s="find"+o;e.prototype[s]=function(c,l){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return;c=""+c;let d=this._nodes.get(c);if(typeof d=="undefined")throw new ee(`Graph.${s}: could not find the "${c}" node in the graph.`);return mv(!0,r==="mixed"?this.type:r,i,d,l)};let a="some"+o;e.prototype[a]=function(c,l){return!!this[s](c,l)};let u="every"+o;e.prototype[u]=function(c,l){return!this[s](c,(h,N)=>!l(h,N))}}function wJ(e,t){let{name:n,type:r,direction:i}=t,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(s){if(r!=="mixed"&&this.type!=="mixed"&&r!==this.type)return kr.default.empty();s=""+s;let a=this._nodes.get(s);if(typeof a=="undefined")throw new ee(`Graph.${o}: could not find the "${s}" node in the graph.`);return SJ(r==="mixed"?this.type:r,i,a)}}function FJ(e){_J.forEach(t=>{DJ(e,t),OJ(e,t),AJ(e,t),wJ(e,t)})}function jh(e,t,n,r,i){let o=r._nodes.values(),s=r.type,a,u,c,l,d,h,N;for(;a=o.next(),a.done!==!0;){let E=!1;if(u=a.value,s!=="undirected"){l=u.out;for(c in l){d=l[c];do{if(h=d.target,E=!0,N=i(u.key,h.key,u.attributes,h.attributes,d.key,d.attributes,d.undirected),e&&N)return d;d=d.next}while(d)}}if(s!=="directed"){l=u.undirected;for(c in l)if(!(t&&u.key>c)){d=l[c];do{if(h=d.target,h.key!==c&&(h=d.source),E=!0,N=i(u.key,h.key,u.attributes,h.attributes,d.key,d.attributes,d.undirected),e&&N)return d;d=d.next}while(d)}}if(n&&!E&&(N=i(u.key,null,u.attributes,null,null,null,null),e&&N))return null}}function LJ(e,t){let n={key:e};return AR(t.attributes)||(n.attributes=wn({},t.attributes)),n}function RJ(e,t,n){let r={key:t,source:n.source.key,target:n.target.key};return AR(n.attributes)||(r.attributes=wn({},n.attributes)),e==="mixed"&&n.undirected&&(r.undirected=!0),r}function PJ(e){if(!Qn(e))throw new re('Graph.import: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if(!("key"in e))throw new re("Graph.import: serialized node is missing its key.");if("attributes"in e&&(!Qn(e.attributes)||e.attributes===null))throw new re("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.")}function xJ(e){if(!Qn(e))throw new re('Graph.import: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if(!("source"in e))throw new re("Graph.import: serialized edge is missing its source.");if(!("target"in e))throw new re("Graph.import: serialized edge is missing its target.");if("attributes"in e&&(!Qn(e.attributes)||e.attributes===null))throw new re("Graph.import: invalid attributes. Attributes should be a plain object, null or omitted.");if("undirected"in e&&typeof e.undirected!="boolean")throw new re("Graph.import: invalid undirectedness information. Undirected should be boolean or omitted.")}function BJ(e,t,n){if(n&&!Qn(n))throw new re(`Graph.addNode: invalid attributes. Expecting an object but got "${n}"`);if(t=""+t,n=n||{},e._nodes.has(t))throw new Ae(`Graph.addNode: the "${t}" node already exist in the graph.`);let r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function OR(e,t,n){let r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function MR(e,t,n,r,i,o,s,a){if(!r&&e.type==="undirected")throw new Ae(`Graph.${t}: you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Ae(`Graph.${t}: you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead.`);if(a&&!Qn(a))throw new re(`Graph.${t}: invalid attributes. Expecting an object but got "${a}"`);if(o=""+o,s=""+s,a=a||{},!e.allowSelfLoops&&o===s)throw new Ae(`Graph.${t}: source & target are the same ("${o}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let u=e._nodes.get(o),c=e._nodes.get(s);if(!u)throw new ee(`Graph.${t}: source node "${o}" not found.`);if(!c)throw new ee(`Graph.${t}: target node "${s}" not found.`);let l={key:null,undirected:r,source:o,target:s,attributes:a};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Ae(`Graph.${t}: the "${i}" edge already exists in the graph.`);if(!e.multi&&(r?typeof u.undirected[s]!="undefined":typeof u.out[s]!="undefined"))throw new Ae(`Graph.${t}: an edge linking "${o}" to "${s}" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option.`);let d=new hc(r,i,u,c,a);e._edges.set(i,d);let h=o===s;return r?(u.undirectedDegree++,c.undirectedDegree++,h&&(u.undirectedLoops++,e._undirectedSelfLoopCount++)):(u.outDegree++,c.inDegree++,h&&(u.directedLoops++,e._directedSelfLoopCount++)),e.multi?d.attachMulti():d.attach(),r?e._undirectedSize++:e._directedSize++,l.key=i,e.emit("edgeAdded",l),i}function VJ(e,t,n,r,i,o,s,a,u){if(!r&&e.type==="undirected")throw new Ae(`Graph.${t}: you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead.`);if(r&&e.type==="directed")throw new Ae(`Graph.${t}: you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead.`);if(a){if(u){if(typeof a!="function")throw new re(`Graph.${t}: invalid updater function. Expecting a function but got "${a}"`)}else if(!Qn(a))throw new re(`Graph.${t}: invalid attributes. Expecting an object but got "${a}"`)}o=""+o,s=""+s;let c;if(u&&(c=a,a=void 0),!e.allowSelfLoops&&o===s)throw new Ae(`Graph.${t}: source & target are the same ("${o}"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false.`);let l=e._nodes.get(o),d=e._nodes.get(s),h,N;if(!n&&(h=e._edges.get(i),h)){if((h.source.key!==o||h.target.key!==s)&&(!r||h.source.key!==s||h.target.key!==o))throw new Ae(`Graph.${t}: inconsistency detected when attempting to merge the "${i}" edge with "${o}" source & "${s}" target vs. ("${h.source.key}", "${h.target.key}").`);N=h}if(!N&&!e.multi&&l&&(N=r?l.undirected[s]:l.out[s]),N){let Y=[N.key,!1,!1,!1];if(u?!c:!a)return Y;if(u){let J=N.attributes;N.attributes=c(J),e.emit("edgeAttributesUpdated",{type:"replace",key:N.key,attributes:N.attributes})}else wn(N.attributes,a),e.emit("edgeAttributesUpdated",{type:"merge",key:N.key,attributes:N.attributes,data:a});return Y}a=a||{},u&&c&&(a=c(a));let E={key:null,undirected:r,source:o,target:s,attributes:a};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new Ae(`Graph.${t}: the "${i}" edge already exists in the graph.`);let D=!1,A=!1;l||(l=OR(e,o,{}),D=!0,o===s&&(d=l,A=!0)),d||(d=OR(e,s,{}),A=!0),h=new hc(r,i,l,d,a),e._edges.set(i,h);let F=o===s;return r?(l.undirectedDegree++,d.undirectedDegree++,F&&(l.undirectedLoops++,e._undirectedSelfLoopCount++)):(l.outDegree++,d.inDegree++,F&&(l.directedLoops++,e._directedSelfLoopCount++)),e.multi?h.attachMulti():h.attach(),r?e._undirectedSize++:e._directedSize++,E.key=i,e.emit("edgeAdded",E),[i,!0,D,A]}function mc(e,t){e._edges.delete(t.key);let{source:n,target:r,attributes:i}=t,o=t.undirected,s=n===r;o?(n.undirectedDegree--,r.undirectedDegree--,s&&(n.undirectedLoops--,e._undirectedSelfLoopCount--)):(n.outDegree--,r.inDegree--,s&&(n.directedLoops--,e._directedSelfLoopCount--)),e.multi?t.detachMulti():t.detach(),o?e._undirectedSize--:e._directedSize--,e.emit("edgeDropped",{key:t.key,attributes:i,source:n.key,target:r.key,undirected:o})}function yc(e){e.from=function(t,n){let r=wn({},t.options,n),i=new e(r);return i.import(t),i}}var kr,dv,Ji,wn,ep,re,ee,Ae,RR,PR,C2,xR,J2,oJ,aJ,_J,kJ,MJ,DR,UJ,CJ,wt,tp,np,rp,ip,op,CR=j(()=>{"use strict";p();m();f();yR();kr=Ap($h()),dv=Ap(vR()),Ji=Ap(bR());wn=M2;typeof Object.assign=="function"&&(wn=Object.assign);ep=class extends Error{constructor(t){super(),this.name="GraphError",this.message=t}},re=class e extends ep{constructor(t){super(t),this.name="InvalidArgumentsGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e.prototype.constructor)}},ee=class e extends ep{constructor(t){super(t),this.name="NotFoundGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e.prototype.constructor)}},Ae=class e extends ep{constructor(t){super(t),this.name="UsageGraphError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e.prototype.constructor)}};wR.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.undirectedLoops=0,this.directedLoops=0,this.in={},this.out={},this.undirected={}};FR.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedLoops=0,this.in={},this.out={}};LR.prototype.clear=function(){this.undirectedDegree=0,this.undirectedLoops=0,this.undirected={}};hc.prototype.attach=function(){let e="out",t="in";this.undirected&&(e=t="undirected");let n=this.source.key,r=this.target.key;this.source[e][r]=this,!(this.undirected&&n===r)&&(this.target[t][n]=this)};hc.prototype.attachMulti=function(){let e="out",t="in",n=this.source.key,r=this.target.key;this.undirected&&(e=t="undirected");let i=this.source[e],o=i[r];if(typeof o=="undefined"){i[r]=this,this.undirected&&n===r||(this.target[t][n]=this);return}o.previous=this,this.next=o,i[r]=this,this.target[t][n]=this};hc.prototype.detach=function(){let e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),delete this.source[n][t],delete this.target[r][e]};hc.prototype.detachMulti=function(){let e=this.source.key,t=this.target.key,n="out",r="in";this.undirected&&(n=r="undirected"),this.previous===void 0?this.next===void 0?(delete this.source[n][t],delete this.target[r][e]):(this.next.previous=void 0,this.source[n][t]=this.next,this.target[r][e]=this.next):(this.previous.next=this.next,this.next!==void 0&&(this.next.previous=this.previous))};RR=0,PR=1,C2=2,xR=3;J2=[{name:e=>`get${e}Attribute`,attacher:B2},{name:e=>`get${e}Attributes`,attacher:V2},{name:e=>`has${e}Attribute`,attacher:$2},{name:e=>`set${e}Attribute`,attacher:j2},{name:e=>`update${e}Attribute`,attacher:G2},{name:e=>`remove${e}Attribute`,attacher:q2},{name:e=>`replace${e}Attributes`,attacher:K2},{name:e=>`merge${e}Attributes`,attacher:Q2},{name:e=>`update${e}Attributes`,attacher:Y2}];oJ=[{name:e=>`get${e}Attribute`,attacher:W2},{name:e=>`get${e}Attributes`,attacher:H2},{name:e=>`has${e}Attribute`,attacher:X2},{name:e=>`set${e}Attribute`,attacher:Z2},{name:e=>`update${e}Attribute`,attacher:eJ},{name:e=>`remove${e}Attribute`,attacher:tJ},{name:e=>`replace${e}Attributes`,attacher:nJ},{name:e=>`merge${e}Attributes`,attacher:rJ},{name:e=>`update${e}Attributes`,attacher:iJ}];aJ=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];_J=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];Gh.prototype.wrap=function(e){this.A===null?this.A=e:this.B===null&&(this.B=e)};Gh.prototype.has=function(e){return this.A!==null&&e in this.A||this.B!==null&&e in this.B};kJ=U2(),MJ=new Set(["directed","undirected","mixed"]),DR=new Set(["domain","_events","_eventsCount","_maxListeners"]),UJ=[{name:e=>`${e}Edge`,generateKey:!0},{name:e=>`${e}DirectedEdge`,generateKey:!0,type:"directed"},{name:e=>`${e}UndirectedEdge`,generateKey:!0,type:"undirected"},{name:e=>`${e}EdgeWithKey`},{name:e=>`${e}DirectedEdgeWithKey`,type:"directed"},{name:e=>`${e}UndirectedEdgeWithKey`,type:"undirected"}],CJ={allowSelfLoops:!0,multi:!1,type:"mixed"};wt=class e extends hR{constructor(t){if(super(),t=wn({},CJ,t),typeof t.multi!="boolean")throw new re(`Graph.constructor: invalid 'multi' option. Expecting a boolean but got "${t.multi}".`);if(!MJ.has(t.type))throw new re(`Graph.constructor: invalid 'type' option. Should be one of "mixed", "directed" or "undirected" but got "${t.type}".`);if(typeof t.allowSelfLoops!="boolean")throw new re(`Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got "${t.allowSelfLoops}".`);let n=t.type==="mixed"?wR:t.type==="directed"?FR:LR;ni(this,"NodeDataClass",n);let r="geid_"+kJ()+"_",i=0,o=()=>{let s;do s=r+i++;while(this._edges.has(s));return s};ni(this,"_attributes",{}),ni(this,"_nodes",new Map),ni(this,"_edges",new Map),ni(this,"_directedSize",0),ni(this,"_undirectedSize",0),ni(this,"_directedSelfLoopCount",0),ni(this,"_undirectedSelfLoopCount",0),ni(this,"_edgeKeyGenerator",o),ni(this,"_options",t),DR.forEach(s=>ni(this,s,this[s])),_i(this,"order",()=>this._nodes.size),_i(this,"size",()=>this._edges.size),_i(this,"directedSize",()=>this._directedSize),_i(this,"undirectedSize",()=>this._undirectedSize),_i(this,"selfLoopCount",()=>this._directedSelfLoopCount+this._undirectedSelfLoopCount),_i(this,"directedSelfLoopCount",()=>this._directedSelfLoopCount),_i(this,"undirectedSelfLoopCount",()=>this._undirectedSelfLoopCount),_i(this,"multi",this._options.multi),_i(this,"type",this._options.type),_i(this,"allowSelfLoops",this._options.allowSelfLoops),_i(this,"implementation",()=>"graphology")}_resetInstanceCounters(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0}hasNode(t){return this._nodes.has(""+t)}hasDirectedEdge(t,n){if(this.type==="undirected")return!1;if(arguments.length===1){let r=""+t,i=this._edges.get(r);return!!i&&!i.undirected}else if(arguments.length===2){t=""+t,n=""+n;let r=this._nodes.get(t);return r?r.out.hasOwnProperty(n):!1}throw new re(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasUndirectedEdge(t,n){if(this.type==="directed")return!1;if(arguments.length===1){let r=""+t,i=this._edges.get(r);return!!i&&i.undirected}else if(arguments.length===2){t=""+t,n=""+n;let r=this._nodes.get(t);return r?r.undirected.hasOwnProperty(n):!1}throw new re(`Graph.hasDirectedEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}hasEdge(t,n){if(arguments.length===1){let r=""+t;return this._edges.has(r)}else if(arguments.length===2){t=""+t,n=""+n;let r=this._nodes.get(t);return r?typeof r.out!="undefined"&&r.out.hasOwnProperty(n)||typeof r.undirected!="undefined"&&r.undirected.hasOwnProperty(n):!1}throw new re(`Graph.hasEdge: invalid arity (${arguments.length}, instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target.`)}directedEdge(t,n){if(this.type==="undirected")return;if(t=""+t,n=""+n,this.multi)throw new Ae("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");let r=this._nodes.get(t);if(!r)throw new ee(`Graph.directedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ee(`Graph.directedEdge: could not find the "${n}" target node in the graph.`);let i=r.out&&r.out[n]||void 0;if(i)return i.key}undirectedEdge(t,n){if(this.type==="directed")return;if(t=""+t,n=""+n,this.multi)throw new Ae("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");let r=this._nodes.get(t);if(!r)throw new ee(`Graph.undirectedEdge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ee(`Graph.undirectedEdge: could not find the "${n}" target node in the graph.`);let i=r.undirected&&r.undirected[n]||void 0;if(i)return i.key}edge(t,n){if(this.multi)throw new Ae("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.edge: could not find the "${t}" source node in the graph.`);if(!this._nodes.has(n))throw new ee(`Graph.edge: could not find the "${n}" target node in the graph.`);let i=r.out&&r.out[n]||r.undirected&&r.undirected[n]||void 0;if(i)return i.key}areDirectedNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areDirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in||n in r.out}areOutNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areOutNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.out}areInNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areInNeighbors: could not find the "${t}" node in the graph.`);return this.type==="undirected"?!1:n in r.in}areUndirectedNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areUndirectedNeighbors: could not find the "${t}" node in the graph.`);return this.type==="directed"?!1:n in r.undirected}areNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&(n in r.in||n in r.out)||this.type!=="directed"&&n in r.undirected}areInboundNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areInboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.in||this.type!=="directed"&&n in r.undirected}areOutboundNeighbors(t,n){t=""+t,n=""+n;let r=this._nodes.get(t);if(!r)throw new ee(`Graph.areOutboundNeighbors: could not find the "${t}" node in the graph.`);return this.type!=="undirected"&&n in r.out||this.type!=="directed"&&n in r.undirected}inDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.inDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree}outDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.outDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree}directedDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.directedDegree: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree}undirectedDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.undirectedDegree: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree}inboundDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.inboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree),r}outboundDegree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.outboundDegree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.outDegree),r}degree(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.degree: could not find the "${t}" node in the graph.`);let r=0;return this.type!=="directed"&&(r+=n.undirectedDegree),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree),r}inDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.inDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree-n.directedLoops}outDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.outDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.outDegree-n.directedLoops}directedDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.directedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="undirected"?0:n.inDegree+n.outDegree-n.directedLoops*2}undirectedDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.undirectedDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);return this.type==="directed"?0:n.undirectedDegree-n.undirectedLoops*2}inboundDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.inboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree,i+=n.directedLoops),r-i}outboundDegreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.outboundDegreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.outDegree,i+=n.directedLoops),r-i}degreeWithoutSelfLoops(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.degreeWithoutSelfLoops: could not find the "${t}" node in the graph.`);let r=0,i=0;return this.type!=="directed"&&(r+=n.undirectedDegree,i+=n.undirectedLoops*2),this.type!=="undirected"&&(r+=n.inDegree+n.outDegree,i+=n.directedLoops*2),r-i}source(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.source: could not find the "${t}" edge in the graph.`);return n.source.key}target(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.target: could not find the "${t}" edge in the graph.`);return n.target.key}extremities(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.extremities: could not find the "${t}" edge in the graph.`);return[n.source.key,n.target.key]}opposite(t,n){t=""+t,n=""+n;let r=this._edges.get(n);if(!r)throw new ee(`Graph.opposite: could not find the "${n}" edge in the graph.`);let i=r.source.key,o=r.target.key;if(t===i)return o;if(t===o)return i;throw new ee(`Graph.opposite: the "${t}" node is not attached to the "${n}" edge (${i}, ${o}).`)}hasExtremity(t,n){t=""+t,n=""+n;let r=this._edges.get(t);if(!r)throw new ee(`Graph.hasExtremity: could not find the "${t}" edge in the graph.`);return r.source.key===n||r.target.key===n}isUndirected(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.isUndirected: could not find the "${t}" edge in the graph.`);return n.undirected}isDirected(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.isDirected: could not find the "${t}" edge in the graph.`);return!n.undirected}isSelfLoop(t){t=""+t;let n=this._edges.get(t);if(!n)throw new ee(`Graph.isSelfLoop: could not find the "${t}" edge in the graph.`);return n.source===n.target}addNode(t,n){return BJ(this,t,n).key}mergeNode(t,n){if(n&&!Qn(n))throw new re(`Graph.mergeNode: invalid attributes. Expecting an object but got "${n}"`);t=""+t,n=n||{};let r=this._nodes.get(t);return r?(n&&(wn(r.attributes,n),this.emit("nodeAttributesUpdated",{type:"merge",key:t,attributes:r.attributes,data:n})),[t,!1]):(r=new this.NodeDataClass(t,n),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:n}),[t,!0])}updateNode(t,n){if(n&&typeof n!="function")throw new re(`Graph.updateNode: invalid updater function. Expecting a function but got "${n}"`);t=""+t;let r=this._nodes.get(t);if(r){if(n){let o=r.attributes;r.attributes=n(o),this.emit("nodeAttributesUpdated",{type:"replace",key:t,attributes:r.attributes})}return[t,!1]}let i=n?n({}):{};return r=new this.NodeDataClass(t,i),this._nodes.set(t,r),this.emit("nodeAdded",{key:t,attributes:i}),[t,!0]}dropNode(t){t=""+t;let n=this._nodes.get(t);if(!n)throw new ee(`Graph.dropNode: could not find the "${t}" node in the graph.`);let r;if(this.type!=="undirected"){for(let i in n.out){r=n.out[i];do mc(this,r),r=r.next;while(r)}for(let i in n.in){r=n.in[i];do mc(this,r),r=r.next;while(r)}}if(this.type!=="directed")for(let i in n.undirected){r=n.undirected[i];do mc(this,r),r=r.next;while(r)}this._nodes.delete(t),this.emit("nodeDropped",{key:t,attributes:n.attributes})}dropEdge(t){let n;if(arguments.length>1){let r=""+arguments[0],i=""+arguments[1];if(n=ri(this,r,i,this.type),!n)throw new ee(`Graph.dropEdge: could not find the "${r}" -> "${i}" edge in the graph.`)}else if(t=""+t,n=this._edges.get(t),!n)throw new ee(`Graph.dropEdge: could not find the "${t}" edge in the graph.`);return mc(this,n),this}dropDirectedEdge(t,n){if(arguments.length<2)throw new Ae("Graph.dropDirectedEdge: it does not make sense to try and drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Ae("Graph.dropDirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");t=""+t,n=""+n;let r=ri(this,t,n,"directed");if(!r)throw new ee(`Graph.dropDirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return mc(this,r),this}dropUndirectedEdge(t,n){if(arguments.length<2)throw new Ae("Graph.dropUndirectedEdge: it does not make sense to drop a directed edge by key. What if the edge with this key is undirected? Use #.dropEdge for this purpose instead.");if(this.multi)throw new Ae("Graph.dropUndirectedEdge: cannot use a {source,target} combo when dropping an edge in a MultiGraph since we cannot infer the one you want to delete as there could be multiple ones.");let r=ri(this,t,n,"undirected");if(!r)throw new ee(`Graph.dropUndirectedEdge: could not find a "${t}" -> "${n}" edge in the graph.`);return mc(this,r),this}clear(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")}clearEdges(){let t=this._nodes.values(),n;for(;n=t.next(),n.done!==!0;)n.value.clear();this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")}getAttribute(t){return this._attributes[t]}getAttributes(){return this._attributes}hasAttribute(t){return this._attributes.hasOwnProperty(t)}setAttribute(t,n){return this._attributes[t]=n,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}updateAttribute(t,n){if(typeof n!="function")throw new re("Graph.updateAttribute: updater should be a function.");let r=this._attributes[t];return this._attributes[t]=n(r),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:t}),this}removeAttribute(t){return delete this._attributes[t],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:t}),this}replaceAttributes(t){if(!Qn(t))throw new re("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=t,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this}mergeAttributes(t){if(!Qn(t))throw new re("Graph.mergeAttributes: provided attributes are not a plain object.");return wn(this._attributes,t),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:t}),this}updateAttributes(t){if(typeof t!="function")throw new re("Graph.updateAttributes: provided updater is not a function.");return this._attributes=t(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this}updateEachNodeAttributes(t,n){if(typeof t!="function")throw new re("Graph.updateEachNodeAttributes: expecting an updater function.");if(n&&!SR(n))throw new re("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");let r=this._nodes.values(),i,o;for(;i=r.next(),i.done!==!0;)o=i.value,o.attributes=t(o.key,o.attributes);this.emit("eachNodeAttributesUpdated",{hints:n||null})}updateEachEdgeAttributes(t,n){if(typeof t!="function")throw new re("Graph.updateEachEdgeAttributes: expecting an updater function.");if(n&&!SR(n))throw new re("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");let r=this._edges.values(),i,o,s,a;for(;i=r.next(),i.done!==!0;)o=i.value,s=o.source,a=o.target,o.attributes=t(o.key,o.attributes,s.key,a.key,s.attributes,a.attributes,o.undirected);this.emit("eachEdgeAttributesUpdated",{hints:n||null})}forEachAdjacencyEntry(t){if(typeof t!="function")throw new re("Graph.forEachAdjacencyEntry: expecting a callback.");jh(!1,!1,!1,this,t)}forEachAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new re("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");jh(!1,!1,!0,this,t)}forEachAssymetricAdjacencyEntry(t){if(typeof t!="function")throw new re("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");jh(!1,!0,!1,this,t)}forEachAssymetricAdjacencyEntryWithOrphans(t){if(typeof t!="function")throw new re("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");jh(!1,!0,!0,this,t)}nodes(){return typeof Array.from=="function"?Array.from(this._nodes.keys()):(0,dv.default)(this._nodes.keys(),this._nodes.size)}forEachNode(t){if(typeof t!="function")throw new re("Graph.forEachNode: expecting a callback.");let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)}findNode(t){if(typeof t!="function")throw new re("Graph.findNode: expecting a callback.");let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return i.key}mapNodes(t){if(typeof t!="function")throw new re("Graph.mapNode: expecting a callback.");let n=this._nodes.values(),r,i,o=new Array(this.order),s=0;for(;r=n.next(),r.done!==!0;)i=r.value,o[s++]=t(i.key,i.attributes);return o}someNode(t){if(typeof t!="function")throw new re("Graph.someNode: expecting a callback.");let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,t(i.key,i.attributes))return!0;return!1}everyNode(t){if(typeof t!="function")throw new re("Graph.everyNode: expecting a callback.");let n=this._nodes.values(),r,i;for(;r=n.next(),r.done!==!0;)if(i=r.value,!t(i.key,i.attributes))return!1;return!0}filterNodes(t){if(typeof t!="function")throw new re("Graph.filterNodes: expecting a callback.");let n=this._nodes.values(),r,i,o=[];for(;r=n.next(),r.done!==!0;)i=r.value,t(i.key,i.attributes)&&o.push(i.key);return o}reduceNodes(t,n){if(typeof t!="function")throw new re("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new re("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");let r=n,i=this._nodes.values(),o,s;for(;o=i.next(),o.done!==!0;)s=o.value,r=t(r,s.key,s.attributes);return r}nodeEntries(){let t=this._nodes.values();return new kr.default(()=>{let n=t.next();if(n.done)return n;let r=n.value;return{value:{node:r.key,attributes:r.attributes},done:!1}})}export(){let t=new Array(this._nodes.size),n=0;this._nodes.forEach((i,o)=>{t[n++]=LJ(o,i)});let r=new Array(this._edges.size);return n=0,this._edges.forEach((i,o)=>{r[n++]=RJ(this.type,o,i)}),{options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops},attributes:this.getAttributes(),nodes:t,edges:r}}import(t,n=!1){if(t instanceof e)return t.forEachNode((u,c)=>{n?this.mergeNode(u,c):this.addNode(u,c)}),t.forEachEdge((u,c,l,d,h,N,E)=>{n?E?this.mergeUndirectedEdgeWithKey(u,l,d,c):this.mergeDirectedEdgeWithKey(u,l,d,c):E?this.addUndirectedEdgeWithKey(u,l,d,c):this.addDirectedEdgeWithKey(u,l,d,c)}),this;if(!Qn(t))throw new re("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(t.attributes){if(!Qn(t.attributes))throw new re("Graph.import: invalid attributes. Expecting a plain object.");n?this.mergeAttributes(t.attributes):this.replaceAttributes(t.attributes)}let r,i,o,s,a;if(t.nodes){if(o=t.nodes,!Array.isArray(o))throw new re("Graph.import: invalid nodes. Expecting an array.");for(r=0,i=o.length;r{let o=wn({},r.attributes);r=new n.NodeDataClass(i,o),n._nodes.set(i,r)}),n}copy(t){if(t=t||{},typeof t.type=="string"&&t.type!==this.type&&t.type!=="mixed")throw new Ae(`Graph.copy: cannot create an incompatible copy from "${this.type}" type to "${t.type}" because this would mean losing information about the current graph.`);if(typeof t.multi=="boolean"&&t.multi!==this.multi&&t.multi!==!0)throw new Ae("Graph.copy: cannot create an incompatible copy by downgrading a multi graph to a simple one because this would mean losing information about the current graph.");if(typeof t.allowSelfLoops=="boolean"&&t.allowSelfLoops!==this.allowSelfLoops&&t.allowSelfLoops!==!0)throw new Ae("Graph.copy: cannot create an incompatible copy from a graph allowing self loops to one that does not because this would mean losing information about the current graph.");let n=this.emptyCopy(t),r=this._edges.values(),i,o;for(;i=r.next(),i.done!==!0;)o=i.value,MR(n,"copy",!1,o.undirected,o.key,o.source.key,o.target.key,wn({},o.attributes));return n}toJSON(){return this.export()}toString(){return"[object Graph]"}inspect(){let t={};this._nodes.forEach((o,s)=>{t[s]=o.attributes});let n={},r={};this._edges.forEach((o,s)=>{let a=o.undirected?"--":"->",u="",c=o.source.key,l=o.target.key,d;o.undirected&&c>l&&(d=c,c=l,l=d);let h=`(${c})${a}(${l})`;s.startsWith("geid_")?this.multi&&(typeof r[h]=="undefined"?r[h]=0:r[h]++,u+=`${r[h]}. `):u+=`[${s}]: `,u+=h,n[u]=o.attributes});let i={};for(let o in this)this.hasOwnProperty(o)&&!DR.has(o)&&typeof this[o]!="function"&&typeof o!="symbol"&&(i[o]=this[o]);return i.attributes=this._attributes,i.nodes=t,i.edges=n,ni(i,"constructor",this.constructor),i}};typeof Symbol!="undefined"&&(wt.prototype[Symbol.for("nodejs.util.inspect.custom")]=wt.prototype.inspect);UJ.forEach(e=>{["add","merge","update"].forEach(t=>{let n=e.name(t),r=t==="add"?MR:VJ;e.generateKey?wt.prototype[n]=function(i,o,s){return r(this,n,!0,(e.type||this.type)==="undirected",null,i,o,s,t==="update")}:wt.prototype[n]=function(i,o,s,a){return r(this,n,!1,(e.type||this.type)==="undirected",i,o,s,a,t==="update")}})});z2(wt);sJ(wt);vJ(wt);FJ(wt);tp=class extends wt{constructor(t){let n=wn({type:"directed"},t);if("multi"in n&&n.multi!==!1)throw new re("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="directed")throw new re('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}},np=class extends wt{constructor(t){let n=wn({type:"undirected"},t);if("multi"in n&&n.multi!==!1)throw new re("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if(n.type!=="undirected")throw new re('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}},rp=class extends wt{constructor(t){let n=wn({multi:!0},t);if("multi"in n&&n.multi!==!0)throw new re("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");super(n)}},ip=class extends wt{constructor(t){let n=wn({type:"directed",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new re("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="directed")throw new re('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}},op=class extends wt{constructor(t){let n=wn({type:"undirected",multi:!0},t);if("multi"in n&&n.multi!==!0)throw new re("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if(n.type!=="undirected")throw new re('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');super(n)}};yc(wt);yc(tp);yc(np);yc(rp);yc(ip);yc(op);wt.Graph=wt;wt.DirectedGraph=tp;wt.UndirectedGraph=np;wt.MultiGraph=rp;wt.MultiDirectedGraph=ip;wt.MultiUndirectedGraph=op;wt.InvalidArgumentsGraphError=re;wt.NotFoundGraphError=ee;wt.UsageGraphError=Ae});var Nv=L(zi=>{"use strict";p();m();f();Object.defineProperty(zi,"__esModule",{value:!0});zi.batchNormalize=zi.NormalizationFactory=zi.normalizeSubgraph=zi.normalizeSubgraphFromString=void 0;var xe=(ie(),ae(de)),ja=jr(),Va=Yu(),$a=mo(),rt=fo(),Ye=di(),mt=$r(),$J=QL(),sp=jm(),jJ=zI(),GJ=WI(),hv=ov(),Cn=Wd(),Tv=(CR(),ae(UR)),yv=Ds();function qJ(e){let{error:t,documentNode:n}=(0,ja.safeParse)(e);return t||!n?{errors:[(0,Ye.subgraphInvalidSyntaxError)(t)]}:new ap(new Tv.MultiGraph).normalize(n)}zi.normalizeSubgraphFromString=qJ;function BR(e,t,n){return new ap(t||new Tv.MultiGraph,n).normalize(e)}zi.normalizeSubgraph=BR;var ap=class{constructor(t,n){S(this,"argumentName","");S(this,"authorizationDataByParentTypeName",new Map);S(this,"childName","");S(this,"concreteTypeNamesByAbstractTypeName",new Map);S(this,"configurationDataByParentTypeName",new Map);S(this,"customDirectiveDefinitions",new Map);S(this,"directiveDefinitionByDirectiveName",new Map);S(this,"errors",[]);S(this,"entityContainerByTypeName",new Map);S(this,"entityInterfaces",new Map);S(this,"graph");S(this,"parentExtensionDataByTypeName",new Map);S(this,"interfaceTypeNamesWithAuthorizationDirectives",new Set);S(this,"isCurrentParentExtension",!1);S(this,"isSubgraphVersionTwo",!1);S(this,"fieldSetContainerByTypeName",new Map);S(this,"heirFieldAuthorizationDataByTypeName",new Map);S(this,"handledRepeatedDirectivesByHostPath",new Map);S(this,"lastParentNodeKind",xe.Kind.NULL);S(this,"lastChildNodeKind",xe.Kind.NULL);S(this,"leafTypeNamesWithAuthorizationDirectives",new Set);S(this,"keyFieldNamesByParentTypeName",new Map);S(this,"operationTypeNodeByTypeName",new Map);S(this,"originalTypeNameByRenamedTypeName",new Map);S(this,"parentDefinitionDataByTypeName",new Map);S(this,"originalParentTypeName","");S(this,"parentsWithChildArguments",new Set);S(this,"eventsConfigurations",new Map);S(this,"overridesByTargetSubgraphName",new Map);S(this,"invalidOrScopesHostPaths",new Set);S(this,"schemaDefinition");S(this,"referencedDirectiveNames",new Set);S(this,"referencedTypeNames",new Set);S(this,"renamedParentTypeName","");S(this,"warnings",[]);S(this,"subgraphName");for(let[r,i]of $a.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.graph=t,this.subgraphName=n||mt.N_A,this.schemaDefinition={directivesByDirectiveName:new Map,kind:xe.Kind.SCHEMA_DEFINITION,typeName:mt.SCHEMA,operationTypes:new Map}}validateInputNamedType(t){if($a.BASE_SCALARS.has(t))return{hasUnhandledError:!1,typeString:""};let n=this.parentDefinitionDataByTypeName.get(t);if(!n)return this.errors.push((0,Ye.undefinedTypeError)(t)),{hasUnhandledError:!1,typeString:""};switch(n.kind){case xe.Kind.ENUM_TYPE_DEFINITION:case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:case xe.Kind.SCALAR_TYPE_DEFINITION:return{hasUnhandledError:!1,typeString:""};default:return{hasUnhandledError:!0,typeString:(0,rt.kindToTypeString)(n.kind)}}}validateArguments(t,n){let r=[];for(let[i,o]of t.argumentDataByArgumentName){let s=(0,yv.getTypeNodeNamedTypeName)(o.type),{hasUnhandledError:a,typeString:u}=this.validateInputNamedType(s);a&&r.push({argumentName:i,namedType:s,typeString:u,typeName:(0,sp.printTypeNode)(o.type)})}r.length>0&&this.errors.push((0,Ye.invalidArgumentsError)(n,r))}getAuthorizationData(t){let n=this.renamedParentTypeName||this.originalParentTypeName,r=this.authorizationDataByParentTypeName.get(n);if((0,rt.resetAuthorizationData)(r),!t.directives)return r;let i=!1,o=[];for(let c of t.directives){let l=c.name.value;if(l===mt.AUTHENTICATED){if(i)return;i=!0;continue}if(l===mt.REQUIRES_SCOPES){if(o.length>0)return;o.push(c)}}if(!i&&o.length<1||((0,rt.isNodeKindInterface)(t.kind)&&this.interfaceTypeNamesWithAuthorizationDirectives.add(n),r||(r=(0,rt.setAndGetValue)(this.authorizationDataByParentTypeName,this.renamedParentTypeName||this.originalParentTypeName,(0,rt.newAuthorizationData)(n))),r.hasParentLevelAuthorization=!0,r.requiresAuthentication=i,o.length!==1))return r;let s=o[0];if(!s.arguments||s.arguments.length!==1)return;let a=s.arguments[0];if(a.name.value!==mt.SCOPES||a.value.kind!==xe.Kind.LIST)return;let u=a.value.values;if(u.length<1)return r;if(u.length>rt.maxOrScopes){this.invalidOrScopesHostPaths.add(this.originalParentTypeName);return}for(let c of u){if(c.kind!==xe.Kind.LIST)return;let l=new Set;for(let d of c.values){if(d.kind!==xe.Kind.STRING)return;l.add(d.value)}l.size&&r.requiredScopes.push(l)}return r}extractDirectivesAndAuthorization(t,n){if(!t.directives)return n;let r=this.childName?`${this.originalParentTypeName}.${this.childName}`:this.originalParentTypeName,i=[];for(let u of t.directives){let c=(0,Cn.getDirectiveValidationErrors)(u,t.kind,n,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,r),l=u.name.value;if(c.length>0){this.errors.push((0,Ye.invalidDirectiveError)(l,r,c));continue}if(l===mt.EXTENDS)continue;if(l===mt.OVERRIDE){this.handleOverrideDeclaration(u,r,c),c.length>0&&this.errors.push((0,Ye.invalidDirectiveError)(l,r,c));continue}if(l===mt.AUTHENTICATED||l===mt.REQUIRES_SCOPES){i.push(u);continue}let d=n.get(l);d&&d.push(u),n.set(l,[u])}if(i.length<1)return n;let o=this.renamedParentTypeName||this.originalParentTypeName;t.kind!==xe.Kind.FIELD_DEFINITION&&this.leafTypeNamesWithAuthorizationDirectives.add(o);let s=(0,rt.getValueOrDefault)(this.authorizationDataByParentTypeName,o,()=>(0,rt.newAuthorizationData)(o)),a=(0,rt.getAuthorizationDataToUpdate)(s,t,this.childName);for(let u of i){if(u.name.value===mt.AUTHENTICATED){a.requiresAuthentication=!0;continue}let l=u.arguments[0].value.values;if(l.length>rt.maxOrScopes){this.invalidOrScopesHostPaths.add(r);continue}for(let d of l){let h=new Set;for(let N of d.values)h.add(N.value);h.size&&a.requiredScopes.push(h)}}return n}mergeUniqueInterfaces(t,n,r){for(let i of t){if(!n.has(i)){n.add(i);continue}this.errors.push((0,Ye.duplicateInterfaceExtensionError)(i,r))}}handleInterfaceObject(t){var r;if(!(0,ja.isNodeInterfaceObject)(t))return;let n=t.name.value;this.entityInterfaces.has(n)||this.entityInterfaces.set(n,{interfaceObjectFieldNames:new Set((r=t.fields)==null?void 0:r.map(i=>i.name.value)),interfaceFieldNames:new Set,isInterfaceObject:!0,typeName:n})}handleExtensionWithFields(t,n=!1){this.isCurrentParentExtension=!0;let r=this.parentExtensionDataByTypeName.get(this.originalParentTypeName),i=(0,Cn.convertKindForExtension)(t);if(r){if(r.kind!==i)return this.errors.push((0,Ye.incompatibleExtensionKindsError)(t,r.kind)),!1;(0,Cn.extractDirectives)(t,r.directivesByDirectiveName,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,this.originalParentTypeName),(0,ja.extractInterfaces)(t,r.implementedInterfaceTypeNames,this.errors);return}let o=(0,ja.isObjectLikeNodeEntity)(t);if((0,Cn.addExtensionWithFieldsDataByNode)(this.parentExtensionDataByTypeName,t,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,o,n,this.subgraphName,this.renamedParentTypeName),t.kind===xe.Kind.INTERFACE_TYPE_DEFINITION||t.kind===xe.Kind.INTERFACE_TYPE_EXTENSION||!o)return;let s=(0,rt.getValueOrDefault)(this.fieldSetContainerByTypeName,this.originalParentTypeName,Va.newFieldSetContainer);this.extractKeyFieldSets(t,s),(0,rt.upsertEntityContainerProperties)(this.entityContainerByTypeName,w({typeName:this.originalParentTypeName,keyFieldSets:s.keys},this.subgraphName?{subgraphNames:[this.subgraphName]}:{}))}extractKeyFieldSets(t,n){var s;let r=n.keys,i=t.name.value;if(!((s=t.directives)!=null&&s.length)){this.errors.push((0,Ye.expectedEntityError)(i));return}let o=[];for(let a of t.directives)if(a.name.value===mt.KEY){if(!a.arguments||a.arguments.length<1){o.push((0,Ye.undefinedRequiredArgumentsErrorMessage)(mt.KEY,i,[mt.FIELDS]));continue}for(let u of a.arguments){let c=u.name.value;if(u.name.value===mt.RESOLVABLE){u.value.kind===xe.Kind.BOOLEAN&&!u.value.value&&(n.disableEntityResolver=!0);continue}if(u.name.value!==mt.FIELDS){o.push((0,Ye.unexpectedDirectiveArgumentErrorMessage)(mt.KEY,c));break}if(u.value.kind!==xe.Kind.STRING){o.push((0,Ye.invalidKeyDirectiveArgumentErrorMessage)(u.value.kind));break}r.add(u.value.value)}}o.length&&this.errors.push((0,Ye.invalidKeyDirectivesError)(i,o))}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=new Map;for(let r of t.implementedInterfaceTypeNames){let i=(0,rt.getOrThrowError)(this.parentDefinitionDataByTypeName,r,mt.PARENTS);if(i.kind!==xe.Kind.INTERFACE_TYPE_DEFINITION)throw(0,Ye.incompatibleParentKindFatalError)(r,xe.Kind.INTERFACE_TYPE_DEFINITION,i.kind);let o={invalidFieldImplementations:new Map,unimplementedFields:[]},s=!1;for(let[a,u]of i.fieldDataByFieldName){let c=!1,l=t.fieldDataByFieldName.get(a);if(!l){s=!0,o.unimplementedFields.push(a);continue}let d={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],originalResponseType:(0,sp.printTypeNode)(u.node.type),unimplementedArguments:new Set};(0,Cn.isTypeValidImplementation)(u.node.type,l.node.type,this.concreteTypeNamesByAbstractTypeName)||(s=!0,c=!0,d.implementedResponseType=(0,sp.printTypeNode)(l.node.type));let h=new Set;for(let[N,E]of u.argumentDataByArgumentName){h.add(N);let D=l.argumentDataByArgumentName.get(N);if(!D){s=!0,c=!0,d.unimplementedArguments.add(N);continue}let A=(0,sp.printTypeNode)(D.type),F=(0,sp.printTypeNode)(E.type);F!==A&&(s=!0,c=!0,d.invalidImplementedArguments.push({actualType:A,argumentName:N,expectedType:F}))}for(let[N,E]of l.argumentDataByArgumentName)h.has(N)||E.type.kind===xe.Kind.NON_NULL_TYPE&&(s=!0,c=!0,d.invalidAdditionalArguments.add(N));c&&o.invalidFieldImplementations.set(a,d)}s&&n.set(r,o)}n.size&&this.errors.push((0,Ye.unimplementedInterfaceFieldsError)(t.name,(0,rt.kindToTypeString)(t.kind),n))}handleOverrideDeclaration(t,n,r){let i=t.arguments[0];if(i.value.kind!==xe.Kind.STRING){r.push((0,Ye.invalidDirectiveArgumentTypeErrorMessage)(!0,mt.FROM,xe.Kind.STRING,i.value.kind));return}let o=i.value.value;if(o===this.subgraphName){r.push((0,Ye.equivalentSourceAndTargetOverrideErrorMessage)(o,n));return}let s=(0,rt.getValueOrDefault)(this.overridesByTargetSubgraphName,o,()=>new Map);(0,rt.getValueOrDefault)(s,this.renamedParentTypeName||this.originalParentTypeName,()=>new Set).add(this.childName)}extractEventDirectivesToConfiguration(t){if(t.directives)for(let n of t.directives){let r;switch(n.name.value){case mt.EVENTS_PUBLISH:{r="publish";break}case mt.EVENTS_REQUEST:{r="request";break}case mt.EVENTS_SUBSCRIBE:{r="subscribe";break}default:continue}let i,o;for(let a of n.arguments||[]){if(a.value.kind!==xe.Kind.STRING)throw new Error(`Event directive arguments must be strings, ${a.value.kind} found in argument ${a.name}`);switch(a.name.value){case mt.TOPIC:{if(i!==void 0)throw new Error("Event directives must have exactly one topic argument, found multiple");if(!a.value.value)throw new Error("Event directives must have a non-empty topic argument");i=a.value.value;break}case mt.SOURCE_ID:{if(o!==void 0)throw new Error("Event directives must have exactly one sourceID argument, found multiple");if(!a.value.value)throw new Error("Event directives must have a non-empty sourceID argument");o=a.value.value;break}default:throw new Error(`Unknown argument ${a.name.value} found in event directive`)}}if(!i)throw new Error("Event directives must have a topic argument");(0,rt.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push({type:r,fieldName:this.childName,topic:i,sourceId:o})}}normalize(t){(0,hv.upsertDirectiveAndSchemaDefinitions)(this,t),(0,hv.upsertParentsAndChildren)(this,t),(0,hv.consolidateAuthorizationDirectives)(this,t);for(let a of this.interfaceTypeNamesWithAuthorizationDirectives){let u=this.authorizationDataByParentTypeName.get(a);if(!u)continue;let c=this.concreteTypeNamesByAbstractTypeName.get(a);for(let l of c||[]){let d=(0,rt.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,rt.newAuthorizationData)(l));for(let[h,N]of u.fieldAuthorizationDataByFieldName)(0,rt.upsertFieldAuthorizationData)(d.fieldAuthorizationDataByFieldName,N)||this.invalidOrScopesHostPaths.add(`${l}.${h}`)}}for(let[a,u]of this.heirFieldAuthorizationDataByTypeName){let c=this.authorizationDataByParentTypeName.get(a);if(c)for(let l of u)(0,rt.mergeAuthorizationDataByAND)(c,l)||this.invalidOrScopesHostPaths.add(`${a}.${l.fieldName}`)}this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,Ye.orScopesLimitError)(rt.maxOrScopes,[...this.invalidOrScopesHostPaths]));let n=[];for(let a of $a.BASE_DIRECTIVE_DEFINITIONS)n.push(a);if(n.push($a.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let a of $a.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(a),this.directiveDefinitionByDirectiveName.set(a.name.value,a);n.push($a.SCOPE_SCALAR_DEFINITION)}for(let a of this.customDirectiveDefinitions.values())n.push(a);this.schemaDefinition.operationTypes.size>0&&n.push((0,Cn.getSchemaNodeByData)(this.schemaDefinition,this.errors,this.directiveDefinitionByDirectiveName));let r=new Map,i=new Set;for(let[a,u]of this.parentExtensionDataByTypeName){let c=this.entityContainerByTypeName.has(a),l=u.kind===xe.Kind.OBJECT_TYPE_EXTENSION&&u.renamedTypeName||a,d={fieldNames:new Set,isRootNode:c,typeName:l};this.configurationDataByParentTypeName.set(l,d),u.kind===xe.Kind.OBJECT_TYPE_EXTENSION&&(this.operationTypeNodeByTypeName.has(a)&&(d.isRootNode=!0,u.fieldDataByFieldName.delete(mt.SERVICE_FIELD),u.fieldDataByFieldName.delete(mt.ENTITIES_FIELD)),(0,Va.addNonExternalFieldsToSet)(u.fieldDataByFieldName,d.fieldNames));let h=this.parentDefinitionDataByTypeName.get(a);if(!h){u.kind!==xe.Kind.OBJECT_TYPE_EXTENSION?this.errors.push((0,Ye.noBaseTypeExtensionError)(a)):(this.validateInterfaceImplementations(u),r.set(a,u),n.push((0,Cn.getParentWithFieldsNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName)));continue}if(!(0,ja.areBaseAndExtensionKindsCompatible)(h.kind,u.kind,a)){this.errors.push((0,Ye.incompatibleExtensionError)(a,h.kind,u.kind));continue}switch(h.kind){case xe.Kind.ENUM_TYPE_DEFINITION:let N=u;for(let[F,Y]of N.enumValueDataByValueName){if(!h.enumValueDataByValueName.has(F)){h.enumValueDataByValueName.set(F,Y);continue}this.errors.push((0,Ye.duplicateEnumValueDefinitionError)(F,a))}n.push((0,Cn.getEnumNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName,N));break;case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:let E=u;for(let[F,Y]of E.inputValueDataByValueName){if(!h.inputValueDataByValueName.has(F)){h.inputValueDataByValueName.set(F,Y);continue}this.errors.push((0,Ye.duplicateFieldDefinitionError)(F,a))}n.push((0,Cn.getInputObjectNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName,E));break;case xe.Kind.INTERFACE_TYPE_DEFINITION:case xe.Kind.OBJECT_TYPE_DEFINITION:let D=u,A=this.operationTypeNodeByTypeName.get(a);A&&(d.isRootNode=!0,D.fieldDataByFieldName.delete(mt.SERVICE_FIELD),D.fieldDataByFieldName.delete(mt.ENTITIES_FIELD));for(let[F,Y]of D.fieldDataByFieldName){if(Y.argumentDataByArgumentName.size>0&&this.validateArguments(Y,`${a}.${F}`),h.fieldDataByFieldName.has(F)){this.errors.push((0,Ye.duplicateFieldDefinitionError)(F,a));continue}h.fieldDataByFieldName.set(F,Y),Y.argumentDataByArgumentName.has(mt.EXTERNAL)||d.fieldNames.add(F)}this.mergeUniqueInterfaces(D.implementedInterfaceTypeNames,h.implementedInterfaceTypeNames,a),this.validateInterfaceImplementations(h),n.push((0,Cn.getParentWithFieldsNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName,D)),h.fieldDataByFieldName.size<1&&!(0,Va.isNodeQuery)(a,A)&&this.errors.push((0,Ye.noFieldDefinitionsError)((0,rt.kindToTypeString)(h.kind),a)),(0,Va.addNonExternalFieldsToSet)(h.fieldDataByFieldName,d.fieldNames);break;case xe.Kind.SCALAR_TYPE_DEFINITION:n.push((0,Cn.getScalarNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,u));break;case xe.Kind.UNION_TYPE_DEFINITION:n.push((0,Cn.getUnionNodeByData)(h,this.errors,this.directiveDefinitionByDirectiveName,u));break;default:throw(0,Ye.unexpectedKindFatalError)(a)}i.add(a)}for(let[a,u]of this.parentDefinitionDataByTypeName)if(!i.has(a))switch(u.kind){case xe.Kind.ENUM_TYPE_DEFINITION:n.push((0,Cn.getEnumNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case xe.Kind.INPUT_OBJECT_TYPE_DEFINITION:n.push((0,Cn.getInputObjectNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName));break;case xe.Kind.INTERFACE_TYPE_DEFINITION:case xe.Kind.OBJECT_TYPE_DEFINITION:let c=this.entityContainerByTypeName.has(a),l=this.operationTypeNodeByTypeName.get(a);if(l&&(u.fieldDataByFieldName.delete(mt.SERVICE_FIELD),u.fieldDataByFieldName.delete(mt.ENTITIES_FIELD)),this.parentsWithChildArguments.has(a)){if(u.kind!==xe.Kind.OBJECT_TYPE_DEFINITION&&u.kind!==xe.Kind.INTERFACE_TYPE_DEFINITION)continue;for(let[D,A]of u.fieldDataByFieldName)this.validateArguments(A,`${a}.${D}`)}let d=u.kind===xe.Kind.OBJECT_TYPE_DEFINITION&&u.renamedTypeName||a,h={fieldNames:new Set,isRootNode:c,typeName:d},N=this.entityInterfaces.get(a);N&&(N.concreteTypeNames=this.concreteTypeNamesByAbstractTypeName.get(a)||new Set,h.isInterfaceObject=N.isInterfaceObject,h.entityInterfaceConcreteTypeNames=N.concreteTypeNames);let E=this.eventsConfigurations.get(d);E&&(h.events=E),this.configurationDataByParentTypeName.set(d,h),(0,Va.addNonExternalFieldsToSet)(u.fieldDataByFieldName,h.fieldNames),this.validateInterfaceImplementations(u),n.push((0,Cn.getParentWithFieldsNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName,this.authorizationDataByParentTypeName)),u.fieldDataByFieldName.size<1&&!(0,Va.isNodeQuery)(a,l)&&this.errors.push((0,Ye.noFieldDefinitionsError)((0,rt.kindToTypeString)(u.kind),a));break;case xe.Kind.SCALAR_TYPE_DEFINITION:n.push((0,Cn.getScalarNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName));break;case xe.Kind.UNION_TYPE_DEFINITION:n.push((0,Cn.getUnionNodeByData)(u,this.errors,this.directiveDefinitionByDirectiveName));break;default:throw(0,Ye.unexpectedKindFatalError)(a)}for(let a of Object.values(xe.OperationTypeNode)){let u=this.schemaDefinition.operationTypes.get(a),c=(0,rt.getOrThrowError)(ja.operationTypeNodeToDefaultType,a,mt.OPERATION_TO_DEFAULT),l=u?(0,yv.getTypeNodeNamedTypeName)(u.type):c;if(l!==c&&(this.parentDefinitionDataByTypeName.has(c)||this.parentExtensionDataByTypeName.has(c))){this.errors.push((0,Ye.invalidRootTypeDefinitionError)(a,l,c));continue}let d=this.parentDefinitionDataByTypeName.get(l),h=this.parentExtensionDataByTypeName.get(l);if(u){if(!d&&!h){this.errors.push((0,Ye.undefinedTypeError)(l));continue}this.operationTypeNodeByTypeName.set(l,a)}if(!d&&!h)continue;let N=this.configurationDataByParentTypeName.get(c);N&&(N.isRootNode=!0,N.typeName=c);let E=[d,h];for(let D of E)if(D){if(D.kind!==xe.Kind.OBJECT_TYPE_DEFINITION&&D.kind!==xe.Kind.OBJECT_TYPE_EXTENSION){this.errors.push((0,Ye.operationDefinitionError)(l,a,D.kind));continue}for(let A of D.fieldDataByFieldName.values()){let F=(0,yv.getTypeNodeNamedTypeName)(A.node.type);!$a.BASE_SCALARS.has(F)&&!this.parentDefinitionDataByTypeName.has(F)&&!r.has(F)&&this.errors.push((0,Ye.undefinedTypeError)(F))}}}for(let a of this.referencedTypeNames){if(this.parentDefinitionDataByTypeName.has(a)||this.entityContainerByTypeName.has(a))continue;let u=this.parentExtensionDataByTypeName.get(a);(!u||u.kind!==xe.Kind.OBJECT_TYPE_EXTENSION)&&this.errors.push((0,Ye.undefinedTypeError)(a))}for(let[a,u]of this.fieldSetContainerByTypeName){let c=this.parentDefinitionDataByTypeName.get(a)||this.parentExtensionDataByTypeName.get(a);if(!c||c.kind!==xe.Kind.OBJECT_TYPE_DEFINITION&&c.kind!=xe.Kind.OBJECT_TYPE_EXTENSION&&c.kind!==xe.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==xe.Kind.INTERFACE_TYPE_EXTENSION){this.errors.push((0,Ye.undefinedObjectLikeParentError)(a));continue}(0,Va.validateAndAddDirectivesWithFieldSetToConfigurationData)(this,c,u)}let o=new Map;for(let a of this.directiveDefinitionByDirectiveName.values()){let u=(0,ja.extractExecutableDirectiveLocations)(a.locations,new Set);u.size<1||(0,Cn.addPersistedDirectiveDefinitionDataByNode)(o,a,this.errors,this.directiveDefinitionByDirectiveName,this.handledRepeatedDirectivesByHostPath,u,this.subgraphName)}if(this.errors.length>0)return{errors:this.errors};let s={kind:xe.Kind.DOCUMENT,definitions:n};return{normalizationResult:{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,configurationDataByParentTypeName:this.configurationDataByParentTypeName,entityContainerByTypeName:this.entityContainerByTypeName,entityInterfaces:this.entityInterfaces,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,parentExtensionDataByTypeName:r,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:o,subgraphAST:s,subgraphString:(0,xe.print)(s),schema:(0,$J.buildASTSchema)(s,{assumeValid:!0})}}}};zi.NormalizationFactory=ap;function KJ(e){let t=new Map,n=new Map,r=new Map,i=new Map,o=new Map,s=new Map,a=new Set,u=new Map,c=new Set,l=new Set,d=[],h=new Set,N=[],E=[];for(let F of e)F.name&&(0,jJ.recordSubgraphName)(F.name,c,l);let D=new Tv.MultiGraph;for(let F=0;Fnew Map),In=(0,rt.getValueOrDefault)(or,Q,()=>new Set(Ie));(0,rt.addIterableValuesToSet)(Ie,In)}for(let or of Ie){let In=`${Yt}.${or}`,_r=s.get(In);if(!_r){s.set(In,[J]);continue}_r.push(J),a.add(In)}}}}let A=[];if(h.size>0&&A.push((0,Ye.orScopesLimitError)(rt.maxOrScopes,[...h])),(d.length>0||l.size>0)&&A.push((0,Ye.invalidSubgraphNamesError)([...l],d)),a.size>0){let F=[];for(let Y of a){let J=(0,rt.getOrThrowError)(s,Y,"overrideSourceSubgraphNamesByFieldPath");F.push((0,Ye.duplicateOverriddenFieldErrorMessage)(Y,J))}A.push((0,Ye.duplicateOverriddenFieldsError)(F))}if(A.push(...E),A.length>0)return w({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityContainerByTypeName:r,errors:A,graph:D,internalSubgraphBySubgraphName:i},N.length>0?{warnings:N}:{});for(let[F,Y]of o){let J=(0,rt.getOrThrowError)(i,F,"internalSubgraphBySubgraphName");J.overriddenFieldNamesByParentTypeName=Y;for(let[Z,H]of Y){let _e=J.configurationDataByParentTypeName.get(Z);_e&&((0,rt.subtractSourceSetFromTargetSet)(H,_e.fieldNames),_e.fieldNames.size<1&&J.configurationDataByParentTypeName.delete(Z))}}return w({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityContainerByTypeName:r,graph:D,internalSubgraphBySubgraphName:i},N.length>0?{warnings:N}:{})}zi.batchNormalize=KJ});var Ev=L(Kh=>{"use strict";p();m();f();Object.defineProperty(Kh,"__esModule",{value:!0});Kh.createMultiGraphAndRenameRootTypes=void 0;var QJ=(ie(),ae(de)),qh=$r(),Tc=fo(),VR=jr();function YJ(e,t){let n,r=!1,i;(0,QJ.visit)(t.definitions,{FieldDefinition:{enter(o){let s=o.name.value;if(r&&(s===qh.SERVICE_FIELD||s===qh.ENTITIES_FIELD))return n.fieldDataByFieldName.delete(s),!1;let a=n.name,u=(0,Tc.getOrThrowError)(n.fieldDataByFieldName,s,`${a}.fieldDataByFieldName`);if(i!=null&&i.has(s))return u.isShareableBySubgraphName.delete(t.name),!1;let c=`${a}.${s}`;if(!e.graph.hasNode(n.name)||e.graphEdges.has(c))return!1;e.graphEdges.add(c);let l=e.entityContainersByTypeName.get(a);if(l&&!l.fieldNames.has(s))return!1;let d=e.concreteTypeNamesByAbstractTypeName.get(u.namedTypeName);if(d)for(let h of d)e.graph.addEdge(a,h);e.graph.hasNode(u.namedTypeName)&&e.graph.addEdge(a,u.namedTypeName)}},InterfaceTypeDefinition:{enter(o){let s=o.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(s))return!1;n=(0,Tc.getOrThrowError)(t.parentDefinitionDataByTypeName,s,"parentDefinitionDataByTypeName")},leave(){n=void 0}},ObjectTypeDefinition:{enter(o){let s=o.name.value,a=t.operationTypes.get(s),u=a?(0,Tc.getOrThrowError)(VR.operationTypeNodeToDefaultType,a,qh.OPERATION_TO_DEFAULT):s;if(n=(0,Tc.getOrThrowError)(t.parentDefinitionDataByTypeName,s,"parentDefinitionDataByTypeName"),r=n.isRootType,e.entityInterfaceFederationDataByTypeName.get(s))return;let c=e.entityContainersByTypeName.get(s);c&&!n.isEntity&&e.validateKeyFieldSetsForImplicitEntity(c),i=t.overriddenFieldNamesByParentTypeName.get(s),s!==u&&(n.name=u,t.parentDefinitionDataByTypeName.set(u,n),t.parentDefinitionDataByTypeName.delete(s))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(o){let s=o.name.value,a=t.operationTypes.get(s),u=a?(0,Tc.getOrThrowError)(VR.operationTypeNodeToDefaultType,a,qh.OPERATION_TO_DEFAULT):s;n=(0,Tc.getOrThrowError)(t.parentExtensionDataByTypeName,s,"parentDefinitionDataByTypeName"),r=n.isRootType,i=t.overriddenFieldNamesByParentTypeName.get(s),s!==u&&(n.name=u,t.parentExtensionDataByTypeName.set(u,n),t.parentExtensionDataByTypeName.delete(s))},leave(){n=void 0,r=!1,i=void 0}}})}Kh.createMultiGraphAndRenameRootTypes=YJ});var jR=L(Nc=>{"use strict";p();m();f();Object.defineProperty(Nc,"__esModule",{value:!0});Nc.federateSubgraphs=Nc.FederationFactory=void 0;var ke=(ie(),ae(de)),JJ=Ds(),gv=jr(),hn=di(),Fn=$r(),Je=fo(),up=jm(),Bn=mo(),zJ=Nv(),$R=Yu(),Ct=Wd(),WJ=Ev(),Qh=class{constructor(t,n,r,i,o,s,a){S(this,"authorizationDataByParentTypeName");S(this,"areFieldsExternal",!1);S(this,"areFieldsShareable",!1);S(this,"concreteTypeNamesByAbstractTypeName");S(this,"fieldConfigurationByFieldPath",new Map);S(this,"namedInputValueTypeNames",new Set);S(this,"namedOutputTypeNames",new Set);S(this,"entityInterfaceFederationDataByTypeName");S(this,"executableDirectives",new Set);S(this,"parentTypeName","");S(this,"persistedDirectiveDefinitions",new Set([Fn.AUTHENTICATED,Fn.DEPRECATED,Fn.INACCESSIBLE,Fn.TAG,Fn.REQUIRES_SCOPES]));S(this,"currentSubgraphName","");S(this,"childName","");S(this,"entityContainersByTypeName");S(this,"errors",[]);S(this,"evaluatedObjectLikesBySubgraph",new Map);S(this,"graph");S(this,"graphEdges",new Set);S(this,"graphPaths",new Map);S(this,"invalidOrScopesHostPaths",new Set);S(this,"isCurrentParentEntity",!1);S(this,"isCurrentParentInterface",!1);S(this,"isCurrentSubgraphVersionTwo",!1);S(this,"isCurrentParentExtensionType",!1);S(this,"isParentRootType",!1);S(this,"isParentInputObject",!1);S(this,"outputFieldTypeNames",new Set);S(this,"parentDefinitionDataByTypeName",new Map);S(this,"objectExtensionDataByTypeName",new Map);S(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Fn.AUTHENTICATED,Bn.AUTHENTICATED_DEFINITION],[Fn.DEPRECATED,Bn.DEPRECATED_DEFINITION],[Fn.INACCESSIBLE,Bn.INACCESSIBLE_DEFINITION],[Fn.REQUIRES_SCOPES,Bn.REQUIRES_SCOPES_DEFINITION],[Fn.TAG,Bn.TAG_DEFINITION]]));S(this,"rootTypeNames",new Set([Fn.DEFAULT_MUTATION,Fn.DEFAULT_QUERY,Fn.DEFAULT_SUBSCRIPTION]));S(this,"internalSubgraphBySubgraphName");S(this,"shareableErrorTypeNames",new Map);S(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.entityContainersByTypeName=r,this.entityInterfaceFederationDataByTypeName=i,this.graph=o,this.internalSubgraphBySubgraphName=s,this.warnings=a||[]}getValidImplementedInterfaces(t){var i;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=new Map;for(let o of t.implementedInterfaceTypeNames){n.push((0,gv.stringToNamedTypeNode)(o));let s=this.parentDefinitionDataByTypeName.get(o);if(!s){this.errors.push((0,hn.undefinedTypeError)(o));continue}if(s.kind!==ke.Kind.INTERFACE_TYPE_DEFINITION)throw(0,hn.incompatibleParentKindFatalError)(o,ke.Kind.INTERFACE_TYPE_DEFINITION,s.kind);let a={invalidFieldImplementations:new Map,unimplementedFields:[]},u=!1;for(let[c,l]of s.fieldDataByFieldName){let d=!1,h=t.fieldDataByFieldName.get(c);if(!h){u=!0,a.unimplementedFields.push(c);continue}let N={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],originalResponseType:(0,up.printTypeNode)(l.node.type),unimplementedArguments:new Set};(0,Ct.isTypeValidImplementation)(l.node.type,h.node.type,this.concreteTypeNamesByAbstractTypeName)||(u=!0,d=!0,N.implementedResponseType=(0,up.printTypeNode)(h.node.type));let E=new Set;for(let[D,A]of l.argumentDataByArgumentName){let F=A.node;E.add(D);let Y=(i=h.argumentDataByArgumentName.get(D))==null?void 0:i.node;if(!Y){u=!0,d=!0,N.unimplementedArguments.add(D);continue}let J=(0,up.printTypeNode)(Y.type),Z=(0,up.printTypeNode)(F.type);Z!==J&&(u=!0,d=!0,N.invalidImplementedArguments.push({actualType:J,argumentName:D,expectedType:Z}))}for(let[D,A]of h.argumentDataByArgumentName){let F=A.node;E.has(D)||F.type.kind===ke.Kind.NON_NULL_TYPE&&(u=!0,d=!0,N.invalidAdditionalArguments.add(D))}d&&a.invalidFieldImplementations.set(c,N)}u&&r.set(o,a)}return r.size&&this.errors.push((0,hn.unimplementedInterfaceFieldsError)(t.node.name.value,(0,Je.kindToTypeString)(t.kind),r)),n}isFieldResolvableByEntityAncestor(t,n,r){if(!this.graph.hasNode(r))return!1;for(let i of t){let o=`${i}.${r}`;if(i!==r&&this.graphPaths.get(o))return!0;if(i===r){let s=(0,Je.doSetsHaveAnyOverlap)(n,(0,Je.getOrThrowError)(this.entityContainersByTypeName,i,Fn.ENTITIES).subgraphNames);return this.graphPaths.set(o,s),s}if((0,Je.hasSimplePath)(this.graph,i,r))return this.graphPaths.set(o,!0),!0;this.graphPaths.set(o,!1)}return!1}shouldEvaluateObjectLike(t,n){for(let r of t){let i=this.evaluatedObjectLikesBySubgraph.get(r);if(!(i&&i.has(n)))return!0}return!1}updateEvaluatedSubgraphOccurrences(t,n,r,i){let o=(0,Je.getAllMutualEntries)(t,n);if(o.size>0)for(let s of o){let a=this.evaluatedObjectLikesBySubgraph.get(s);a?a.add(i):this.evaluatedObjectLikesBySubgraph.set(s,new Set([i]))}for(let s of r){let a=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,s,"parentDefinitionDataByTypeName"),u=(0,Je.getAllMutualEntries)(t,a.subgraphNames),c=(0,Je.getAllMutualEntries)(u,n);for(let l of c){let d=this.evaluatedObjectLikesBySubgraph.get(l);d?d.add(i):this.evaluatedObjectLikesBySubgraph.set(l,new Set([i]))}}}evaluateResolvabilityOfObject(t,n,r,i,o,s=!1){let a=t.name;if(!i.has(a)){if(!this.shouldEvaluateObjectLike(n.subgraphs,a)){i.add(a);return}for(let[u,c]of t.fieldDataByFieldName){let l=c.namedTypeName;if(Fn.ROOT_TYPES.has(l)||i.has(l)||(0,Ct.isFieldExternalInAllMutualSubgraphs)(n.subgraphs,c))continue;this.updateEvaluatedSubgraphOccurrences(n.subgraphs,t.subgraphNames,o,a),i.add(a);let d=(0,Je.doSetsHaveAnyOverlap)(n.subgraphs,c.subgraphNames)||this.isFieldResolvableByEntityAncestor(o,c.subgraphNames,a),h=r+(s?" ":".")+u,N=this.entityContainersByTypeName.get(l);if(d){if(Bn.BASE_SCALARS.has(l))continue;let D=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,l,"parentDefinitionDataByTypeName");switch(D.kind){case ke.Kind.ENUM_TYPE_DEFINITION:case ke.Kind.SCALAR_TYPE_DEFINITION:continue;case ke.Kind.OBJECT_TYPE_DEFINITION:this.evaluateResolvabilityOfObject(D,n,h,i,N?[...o,l]:[...o]);continue;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:this.evaluateResolvabilityOfAbstractType(l,D.kind,n,h,i,N?[...o,l]:[...o]);continue;default:this.errors.push((0,hn.unexpectedObjectResponseType)(h,(0,Je.kindToTypeString)(D.kind)));continue}}if(Bn.BASE_SCALARS.has(l)){this.errors.push((0,hn.unresolvableFieldError)(n,u,[...c.subgraphNames],h,a));continue}let E=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,l,"parentDefinitionDataByTypeName");switch(E.kind){case ke.Kind.ENUM_TYPE_DEFINITION:case ke.Kind.SCALAR_TYPE_DEFINITION:this.errors.push((0,hn.unresolvableFieldError)(n,u,[...c.subgraphNames],h,a));continue;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:this.errors.push((0,hn.unresolvableFieldError)(n,u,[...c.subgraphNames],h+Fn.SELECTION_REPRESENTATION,a));continue;default:this.errors.push((0,hn.unexpectedObjectResponseType)(h,(0,Je.kindToTypeString)(E.kind)))}}}}evaluateResolvabilityOfAbstractType(t,n,r,i,o,s){if(o.has(t))return;o.add(t);let a=this.concreteTypeNamesByAbstractTypeName.get(t);if(!a){(0,hn.noConcreteTypesForAbstractTypeError)((0,Je.kindToTypeString)(n),t);return}for(let u of a){if(o.has(u))continue;let c=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,u,"parentDefinitionDataByTypeName");if(c.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)throw(0,hn.unexpectedParentKindErrorMessage)(u,"Object",(0,Je.kindToTypeString)(c.kind));if(!(0,Je.doSetsHaveAnyOverlap)(c.subgraphNames,r.subgraphs))continue;let l=this.entityContainersByTypeName.get(u);this.evaluateResolvabilityOfObject(c,r,i+" ... on "+u,o,l?[...s,u]:[...s],!0)}}validateKeyFieldSetsForImplicitEntity(t){let n=(0,Je.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),r=n.parentDefinitionDataByTypeName,i=n.parentExtensionDataByTypeName,o=r.get(t.typeName)||i.get(t.typeName);if(!o||o.kind!==ke.Kind.OBJECT_TYPE_DEFINITION&&o.kind!==ke.Kind.OBJECT_TYPE_EXTENSION)throw(0,hn.incompatibleParentKindFatalError)(t.typeName,ke.Kind.OBJECT_TYPE_DEFINITION,(o==null?void 0:o.kind)||ke.Kind.NULL);let s=(0,Je.getOrThrowError)(n.configurationDataByParentTypeName,t.typeName,"internalSubgraph.configurationDataMap"),a=new Set,u=[];for(let c of t.keyFieldSets){let{error:l,documentNode:d}=(0,gv.safeParse)("{"+c+"}");if(l||!d)continue;let h=[o],N=[],E=-1,D=!0,A=!0;(0,ke.visit)(d,{Argument:{enter(){return A=!1,ke.BREAK}},Field:{enter(F){let Y=h[E];if(D)return A=!1,ke.BREAK;let J=F.name.value,Z=Y.fieldDataByFieldName.get(J);if(!Z||Z.argumentDataByArgumentName.size||N[E].has(J))return A=!1,ke.BREAK;N[E].add(J),E===0&&a.add(J);let H=(0,JJ.getTypeNodeNamedTypeName)(Z.node.type);if(Bn.BASE_SCALARS.has(H))return;let _e=r.get(H)||i.get(H);if(!_e)return A=!1,ke.BREAK;if(_e.kind===ke.Kind.OBJECT_TYPE_DEFINITION||_e.kind===ke.Kind.OBJECT_TYPE_EXTENSION){D=!0,h.push(_e);return}if((0,gv.isKindAbstract)(_e.kind))return A=!1,ke.BREAK}},InlineFragment:{enter(){return A=!1,ke.BREAK}},SelectionSet:{enter(){if(!D||(E+=1,D=!1,E<0||E>=h.length))return A=!1,ke.BREAK;N.push(new Set)},leave(){if(D)return A=!1,ke.BREAK;E-=1,h.pop(),N.pop()}}}),A&&((0,Je.addIterableValuesToSet)(a,s.fieldNames),u.push({fieldName:"",selectionSet:(0,$R.getNormalizedFieldSet)(d),disableEntityResolver:!0}))}u.length>0&&(s.isRootNode=!0,s.keys=u)}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?Ct.MergeMethod.CONSISTENT:Ct.MergeMethod.INTERSECTION:Ct.MergeMethod.UNION}federate(){let t=new Map,n=!1,r=0,i=!1;for(let d of this.internalSubgraphBySubgraphName.values()){r+=1,this.currentSubgraphName=d.name,i||(i=d.isVersionTwo),(0,WJ.createMultiGraphAndRenameRootTypes)(this,d);for(let h of d.parentDefinitionDataByTypeName.values())(0,Ct.upsertParentDefinitionData)(this.parentDefinitionDataByTypeName,h,this.persistedDirectiveDefinitionByDirectiveName,this.entityInterfaceFederationDataByTypeName,this.namedOutputTypeNames,this.namedInputValueTypeNames,d.name,this.errors);for(let h of d.parentExtensionDataByTypeName.values())(0,Ct.upsertObjectExtensionData)(this.objectExtensionDataByTypeName,h,this.persistedDirectiveDefinitionByDirectiveName,this.namedOutputTypeNames,this.namedInputValueTypeNames,this.errors);if(!n){if(!d.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let h of d.persistedDirectiveDefinitionDataByDirectiveName.values())(0,Ct.upsertPersistedDirectiveDefinitionData)(t,h,this.persistedDirectiveDefinitionByDirectiveName,this.namedInputValueTypeNames,r,this.errors);t.size||(n=!0)}}let o=i?[Bn.AUTHENTICATED_DEFINITION,Bn.DEPRECATED_DEFINITION,Bn.INACCESSIBLE_DEFINITION,Bn.REQUIRES_SCOPES_DEFINITION,Bn.TAG_DEFINITION,Bn.SCOPE_SCALAR_DEFINITION]:[Bn.DEPRECATED_DEFINITION,Bn.TAG_DEFINITION];for(let d of t.values())(0,Ct.addValidPersistedDirectiveDefinitionNodeByData)(o,d,this.persistedDirectiveDefinitionByDirectiveName,this.errors);for(let[d,h]of this.entityInterfaceFederationDataByTypeName){(0,Je.subtractSourceSetFromTargetSet)(h.interfaceFieldNames,h.interfaceObjectFieldNames);let N=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,d,"parentDefinitionDataByTypeName");if(N.kind===ke.Kind.INTERFACE_TYPE_DEFINITION)for(let E of h.interfaceObjectSubgraphs){let D=(0,Je.getOrThrowError)(this.internalSubgraphBySubgraphName,E,"internalSubgraphBySubgraphName").configurationDataByParentTypeName,A=this.concreteTypeNamesByAbstractTypeName.get(d);if(!A)continue;let F=(0,Je.getOrThrowError)(D,d,"configurationDataMap"),Y=F.keys;if(!Y)continue;F.entityInterfaceConcreteTypeNames=h.concreteTypeNames;let J=F.fieldNames,Z=this.authorizationDataByParentTypeName.get(h.typeName);for(let H of A){if(D.has(H))continue;if(Z){let Q=(0,Je.getValueOrDefault)(this.authorizationDataByParentTypeName,H,()=>(0,Je.newAuthorizationData)(H));for(let Ie of Z.fieldAuthorizationDataByFieldName.values())(0,Je.upsertFieldAuthorizationData)(Q.fieldAuthorizationDataByFieldName,Ie)||this.invalidOrScopesHostPaths.add(`${H}.${Ie.fieldName}`)}let _e=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,H,"parentDefinitionDataByTypeName");if(_e.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)continue;let ut=this.entityContainersByTypeName.get(H);ut&&ut.subgraphNames.add(E);let kt={fieldNames:J,isRootNode:!0,keys:Y,typeName:H};for(let Q of h.interfaceObjectFieldNames){if(_e.fieldDataByFieldName.get(Q))continue;let Yt=(0,Je.getOrThrowError)(N.fieldDataByFieldName,Q,`${d}.fieldDataByFieldName`);_e.fieldDataByFieldName.set(Q,w({},Yt))}D.set(H,kt)}}}this.invalidOrScopesHostPaths.size>0&&this.errors.push((0,hn.orScopesLimitError)(Je.maxOrScopes,[...this.invalidOrScopesHostPaths]));for(let[d,h]of this.objectExtensionDataByTypeName)(0,Ct.upsertValidObjectExtensionData)(this.parentDefinitionDataByTypeName,h,this.persistedDirectiveDefinitionByDirectiveName,this.namedOutputTypeNames,this.namedInputValueTypeNames,this.errors,this.authorizationDataByParentTypeName.get(d));let s=[];for(let[d,h]of this.parentDefinitionDataByTypeName)switch(h.kind){case ke.Kind.ENUM_TYPE_DEFINITION:let N=[],E=this.getEnumValueMergeMethod(d);for(let Z of h.enumValueDataByValueName.values()){let H=(0,Ct.getNodeWithPersistedDirectivesByData)(Z,this.persistedDirectiveDefinitionByDirectiveName,this.errors);switch(E){case Ct.MergeMethod.CONSISTENT:h.appearances>Z.appearances&&this.errors.push((0,hn.incompatibleSharedEnumError)(d)),N.push(H);break;case Ct.MergeMethod.INTERSECTION:h.appearances===Z.appearances&&N.push(H);break;default:N.push(H);break}}h.node.values=N,o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors));break;case ke.Kind.INPUT_OBJECT_TYPE_DEFINITION:let D=[],A=[];for(let[Z,H]of h.inputValueDataByValueName)h.subgraphNames.size===H.subgraphNames.size?A.push((0,Ct.getNodeWithPersistedDirectivesByInputValueData)(H,this.persistedDirectiveDefinitionByDirectiveName,this.errors)):(0,Ct.isTypeRequired)(H.type)&&D.push({inputValueName:Z,missingSubgraphs:(0,Je.getEntriesNotInHashSet)(h.subgraphNames,H.subgraphNames),requiredSubgraphs:[...H.requiredSubgraphNames]});if(D.length>0){this.errors.push((0,hn.invalidRequiredInputValueError)(Fn.INPUT_OBJECT,d,D,!1));break}h.node.fields=A,o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors));break;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.OBJECT_TYPE_DEFINITION:let F=[],Y=new Set,J=h.kind===ke.Kind.OBJECT_TYPE_DEFINITION;for(let[Z,H]of h.fieldDataByFieldName){(0,Ct.pushAuthorizationDirectives)(H,this.authorizationDataByParentTypeName.get(d));let _e=(0,Ct.getValidFieldArgumentNodes)(H,this.persistedDirectiveDefinitionByDirectiveName,this.fieldConfigurationByFieldPath,this.errors);J&&!(0,Ct.isShareabilityOfAllFieldInstancesValid)(H)&&Y.add(Z),!H.isInaccessible&&F.push((0,Ct.getNodeWithPersistedDirectivesByFieldData)(H,this.persistedDirectiveDefinitionByDirectiveName,_e,this.errors))}J&&Y.size>0&&this.errors.push((0,hn.invalidFieldShareabilityError)(h,Y)),h.node.fields=F,h.implementedInterfaceTypeNames.size>0?s.push(h):o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),F.length<1&&((0,$R.isNodeQuery)(d)?this.errors.push(hn.noQueryRootTypeError):this.errors.push((0,hn.allFieldDefinitionsAreInaccessibleError)((0,Je.kindToTypeString)(h.kind),d)));break;case ke.Kind.SCALAR_TYPE_DEFINITION:Bn.BASE_SCALARS.has(d)||o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors));break;case ke.Kind.UNION_TYPE_DEFINITION:h.node.types=(0,Je.mapToArrayOfValues)(h.memberByMemberTypeName),o.push((0,Ct.getNodeWithPersistedDirectivesByData)(h,this.persistedDirectiveDefinitionByDirectiveName,this.errors));break}for(let d of s)d.node.interfaces=this.getValidImplementedInterfaces(d),o.push((0,Ct.getNodeWithPersistedDirectivesByData)(d,this.persistedDirectiveDefinitionByDirectiveName,this.errors));let a=this.parentDefinitionDataByTypeName.get(Fn.QUERY);if((!a||a.kind!==ke.Kind.OBJECT_TYPE_DEFINITION||a.fieldDataByFieldName.size<1)&&this.errors.push(hn.noQueryRootTypeError),this.errors.length>0)return{errors:this.errors};for(let d of Fn.ROOT_TYPES){let h=this.parentDefinitionDataByTypeName.get(d);if(!h||h.kind!==ke.Kind.OBJECT_TYPE_DEFINITION)continue;if(this.errors.length>0)break;let N=new Set(Bn.BASE_SCALARS);for(let[E,D]of h.fieldDataByFieldName){let A=D.namedTypeName;if(N.has(A)||!this.shouldEvaluateObjectLike(D.subgraphNames,A))continue;let F=(0,Je.getOrThrowError)(this.parentDefinitionDataByTypeName,A,"parentDefinitionDataByTypeName"),Y=`${d}.${E}`,J={fieldName:E,fieldTypeNodeString:(0,up.printTypeNode)(D.node.type),path:Y,typeName:d,subgraphs:D.subgraphNames};switch(F.kind){case ke.Kind.ENUM_TYPE_DEFINITION:case ke.Kind.SCALAR_TYPE_DEFINITION:N.add(A);continue;case ke.Kind.OBJECT_TYPE_DEFINITION:this.evaluateResolvabilityOfObject(F,J,Y,new Set,this.entityContainersByTypeName.has(A)?[A]:[]);continue;case ke.Kind.INTERFACE_TYPE_DEFINITION:case ke.Kind.UNION_TYPE_DEFINITION:this.evaluateResolvabilityOfAbstractType(A,F.kind,J,Y,new Set,this.entityContainersByTypeName.has(A)?[A]:[]);continue;default:this.errors.push((0,hn.unexpectedObjectResponseType)(Y,(0,Je.kindToTypeString)(F.kind)))}}}let u=this.warnings.length>0?this.warnings:void 0;if(this.errors.length>0)return{errors:this.errors,warnings:u};let c={kind:ke.Kind.DOCUMENT,definitions:o},l=new Map;for(let d of this.internalSubgraphBySubgraphName.values())l.set(d.name,{configurationDataMap:d.configurationDataByParentTypeName,schema:d.schema});for(let d of this.authorizationDataByParentTypeName.values())(0,Je.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldPath,d);return{federationResult:{fieldConfigurations:Array.from(this.fieldConfigurationByFieldPath.values()),subgraphConfigBySubgraphName:l,federatedGraphAST:c,federatedGraphSchema:(0,ke.buildASTSchema)(c)},warnings:u}}};Nc.FederationFactory=Qh;function HJ(e){if(e.length<1)return{errors:[hn.minimumSubgraphRequirementError]};let{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityContainerByTypeName:r,errors:i,graph:o,internalSubgraphBySubgraphName:s,warnings:a}=(0,zJ.batchNormalize)(e);if(i)return{errors:i};let u=new Map,c=new Map,l=new Set;for(let[d,h]of s)for(let[N,E]of h.entityInterfaces){(0,Je.getValueOrDefault)(c,N,()=>[]).push({subgraphName:d,concreteTypeNames:E.concreteTypeNames||new Set});let A=u.get(N);if(!A){l.add(N),u.set(N,(0,Je.newEntityInterfaceFederationData)(E,d));continue}(0,Je.upsertEntityInterfaceFederationData)(A,E,d)&&l.delete(N)}for(let d of l)c.delete(d);return c.size>0?{errors:[(0,hn.undefinedEntityInterfaceImplementationsError)(c,u)]}:new Qh(t,n,r,u,o,s,a).federate()}Nc.federateSubgraphs=HJ});var qR=L(GR=>{"use strict";p();m();f();Object.defineProperty(GR,"__esModule",{value:!0})});var QR=L(KR=>{"use strict";p();m();f();Object.defineProperty(KR,"__esModule",{value:!0})});var JR=L(YR=>{"use strict";p();m();f();Object.defineProperty(YR,"__esModule",{value:!0})});var WR=L(zR=>{"use strict";p();m();f();Object.defineProperty(zR,"__esModule",{value:!0})});var HR=L(Qt=>{"use strict";p();m();f();var XJ=Qt&&Qt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(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){r===void 0&&(r=n),e[r]=t[n]}),Vn=Qt&&Qt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&XJ(t,e,n)};Object.defineProperty(Qt,"__esModule",{value:!0});Vn(jr(),Qt);Vn(di(),Qt);Vn(jR(),Qt);Vn(qR(),Qt);Vn(Ev(),Qt);Vn(Nv(),Qt);Vn(Yu(),Qt);Vn(ov(),Qt);Vn(QR(),Qt);Vn(Ds(),Qt);Vn(JR(),Qt);Vn(WR(),Qt);Vn(HI(),Qt);Vn(Wd(),Qt);Vn(zI(),Qt);Vn(fo(),Qt);Vn(mo(),Qt);Vn(WI(),Qt)});var $z={};Ya($z,{buildRouterConfiguration:()=>Vz,federateSubgraphs:()=>Bz});p();m();f();var Wv=Ap(HR());p();m();f();p();m();f();function Iv(e){if(!e)return e;let t=new URL(e),n=t.pathname;n.endsWith("/")&&(n=n.slice(0,-1));let r=t.port?`:${t.port}`:"";return`${t.protocol}//${t.hostname}${r}${n}`}p();m();f();p();m();f();var XR={};p();m();f();function ZR(e){return e!=null}p();m();f();p();m();f();ie();p();m();f();var eP;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}eP=function(t,n){return new e(t,n)}}else eP=AggregateError;function tP(e){return"errors"in e&&Array.isArray(e.errors)}var iP=3;function oP(e){return Yh(e,[])}function Yh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return ZJ(e,t);default:return String(e)}}function nP(e){return e instanceof x?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function ZJ(e,t){if(e===null)return"null";if(e instanceof Error)return tP(e)?nP(e)+` -`+rP(e.errors,t):nP(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(ez(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Yh(r,n)}else if(Array.isArray(e))return rP(e,n);return tz(e,n)}function ez(e){return typeof e.toJSON=="function"}function tz(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>iP?"["+nz(e)+"]":"{ "+n.map(([i,o])=>i+": "+Yh(o,t)).join(", ")+" }"}function rP(e,t){if(e.length===0)return"[]";if(t.length>iP)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}p();m();f();ie();p();m();f();ie();function Wi(e){if(ye(e)){let t=Wi(e.ofType);if(t.kind===_.NON_NULL_TYPE)throw new Error(`Invalid type node ${oP(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:_.NON_NULL_TYPE,type:t}}else if(qe(e))return{kind:_.LIST_TYPE,type:Wi(e.ofType)};return{kind:_.NAMED_TYPE,name:{kind:_.NAME,value:e.name}}}p();m();f();ie();function zh(e){if(e===null)return{kind:_.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=zh(n);r!=null&&t.push(r)}return{kind:_.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=zh(r);i&&t.push({kind:_.OBJECT_FIELD,name:{kind:_.NAME,value:n},value:i})}return{kind:_.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:_.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return rz.test(t)?{kind:_.INT,value:t}:{kind:_.FLOAT,value:t}}if(typeof e=="string")return{kind:_.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var rz=/^-?(?:0|[1-9][0-9]*)$/;p();m();f();p();m();f();function Wh(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let o=e(r);return t.set(r,o),o}return i}}var z_e=Wh(function(t){let n=iz(t);return new Set([...n].map(r=>r.name))}),iz=Wh(function(t){let n=vv(t);return new Set(n.values())}),vv=Wh(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let o=t.getSubscriptionType();return o&&n.set("subscription",o),n});function oz(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=sz(e,n),o=i!=null?[i]:[],s=e.getDirectives();for(let a of s)Is(a)||o.push(az(a,e,n));for(let a in r){let u=r[a],c=ci(u),l=er(u);if(!(c||l))if(De(u))o.push(uz(u,e,n));else if(Me(u))o.push(cz(u,e,n));else if(lt(u))o.push(lz(u,e,n));else if(Ue(u))o.push(dz(u,e,n));else if(it(u))o.push(pz(u,e,n));else if(Jt(u))o.push(fz(u,e,n));else throw new Error(`Unknown type ${u}.`)}return{kind:_.DOCUMENT,definitions:o}}function sP(e,t={}){let n=oz(e,t);return $e(n)}function sz(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),o=[];if(e.astNode!=null&&o.push(e.astNode),e.extensionASTNodes!=null)for(let l of e.extensionASTNodes)o.push(l);for(let l of o)if(l.operationTypes)for(let d of l.operationTypes)i.set(d.operation,d);let s=vv(e);for(let[l,d]of i){let h=s.get(l);if(h!=null){let N=Wi(h);d!=null?d.type=N:i.set(l,{kind:_.OPERATION_TYPE_DEFINITION,operation:l,type:N})}}let a=[...i.values()].filter(ZL),u=Ec(e,e,t);if(!a.length&&!u.length)return null;let c={kind:a!=null?_.SCHEMA_DEFINITION:_.SCHEMA_EXTENSION,operationTypes:a,directives:u};return c.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:_.STRING,value:e.description,block:!0}:void 0,c}function az(e,t,n){var r,i,o,s;return{kind:_.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description}:void 0,name:{kind:_.NAME,value:e.name},arguments:(o=e.args)===null||o===void 0?void 0:o.map(a=>aP(a,t,n)),repeatable:e.isRepeatable,locations:((s=e.locations)===null||s===void 0?void 0:s.map(a=>({kind:_.NAME,value:a})))||[]}}function Ec(e,t,n){let r=Jh(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let o;if(r!=null)o=_v(t,r);else{o=[];for(let s of i)s.directives&&o.push(...s.directives)}return o}function Hh(e,t,n){var r,i;let o=[],s=null,a=Jh(e,n),u;return a!=null?u=_v(t,a):u=(r=e.astNode)===null||r===void 0?void 0:r.directives,u!=null&&(o=u.filter(c=>c.name.value!=="deprecated"),e.deprecationReason!=null&&(s=(i=u.filter(c=>c.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&s==null&&(s=yz(e.deprecationReason)),s==null?o:[s].concat(o)}function aP(e,t,n){var r,i,o;return{kind:_.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},type:Wi(e.type),defaultValue:e.defaultValue!==void 0&&(o=qn(e.defaultValue,e.type))!==null&&o!==void 0?o:void 0,directives:Hh(e,t,n)}}function uz(e,t,n){var r,i;return{kind:_.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>uP(o,t,n)),interfaces:Object.values(e.getInterfaces()).map(o=>Wi(o)),directives:Ec(e,t,n)}}function cz(e,t,n){var r,i;let o={kind:_.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>uP(s,t,n)),directives:Ec(e,t,n)};return"getInterfaces"in e&&(o.interfaces=Object.values(e.getInterfaces()).map(s=>Wi(s))),o}function lz(e,t,n){var r,i;return{kind:_.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},directives:Ec(e,t,n),types:e.getTypes().map(o=>Wi(o))}}function dz(e,t,n){var r,i;return{kind:_.INPUT_OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>mz(o,t,n)),directives:Ec(e,t,n)}}function pz(e,t,n){var r,i;return{kind:_.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},values:Object.values(e.getValues()).map(o=>hz(o,t,n)),directives:Ec(e,t,n)}}function fz(e,t,n){var r,i,o;let s=Jh(e,n),a=s?_v(t,s):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],u=e.specifiedByUrl||e.specifiedByURL;if(u&&!a.some(c=>c.name.value==="specifiedBy")){let c={url:u};a.push(Xh("specifiedBy",c))}return{kind:_.SCALAR_TYPE_DEFINITION,description:(o=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&o!==void 0?o:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},directives:a}}function uP(e,t,n){var r,i;return{kind:_.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},arguments:e.args.map(o=>aP(o,t,n)),type:Wi(e.type),directives:Hh(e,t,n)}}function mz(e,t,n){var r,i,o;return{kind:_.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},type:Wi(e.type),directives:Hh(e,t,n),defaultValue:(o=qn(e.defaultValue,e.type))!==null&&o!==void 0?o:void 0}}function hz(e,t,n){var r,i;return{kind:_.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},directives:Hh(e,t,n)}}function yz(e){return Xh("deprecated",{reason:e},Fi)}function Xh(e,t,n){let r=[];if(n!=null)for(let i of n.args){let o=i.name,s=t[o];if(s!==void 0){let a=qn(s,i.type);a&&r.push({kind:_.ARGUMENT,name:{kind:_.NAME,value:o},value:a})}}else for(let i in t){let o=t[i],s=zh(o);s&&r.push({kind:_.ARGUMENT,name:{kind:_.NAME,value:i},value:s})}return{kind:_.DIRECTIVE,name:{kind:_.NAME,value:e},arguments:r}}function _v(e,t){let n=[];for(let r in t){let i=t[r],o=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let s of i)n.push(Xh(r,s,o));else n.push(Xh(r,i,o))}return n}ie();p();m();f();p();m();f();p();m();f();p();m();f();p();m();f();p();m();f();function gn(e,t){if(!e)throw new Error(t)}var Tz=34028234663852886e22,Nz=-34028234663852886e22,Ez=4294967295,gz=2147483647,Iz=-2147483648;function gc(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>gz||eEz||e<0)throw new Error("invalid uint 32: "+e)}function Zh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Tz||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function Sv(e,t,n){let r=Object.create(null),i=Object.create(null),o=[];for(let s of t){let a=pP(s);o.push(a),r[s.name]=a,i[s.no]=a}return{typeName:e,values:o,findName(s){return r[s]},findNumber(s){return i[s]}}}function dP(e,t,n){let r={};for(let i of t){let o=pP(i);r[o.localName]=o.no,r[o.no]=o.localName}return bv(r,e,t,n),r}function pP(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}p();m();f();p();m();f();var Le=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,o=i.makeReadOptions(n);return i.readMessage(this,o.readerFactory(t),t.byteLength,o),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,o=i.makeReadOptions(n);return i.readMessage(r,t,o,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),o=i.writerFactory();return r.writeMessage(this,o,i),o.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function fP(e,t,n,r){var i;let o=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),s={[o]:function(a){e.util.initFields(this),e.util.initPartial(a,this)}}[o];return Object.setPrototypeOf(s.prototype,new Le),Object.assign(s,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(a,u){return new s().fromBinary(a,u)},fromJson(a,u){return new s().fromJson(a,u)},fromJsonString(a,u){return new s().fromJsonString(a,u)},equals(a,u){return e.util.equals(s,a,u)}}),s}function mP(e,t,n,r){return{syntax:e,json:t,bin:n,util:r,makeMessageType(i,o,s){return fP(this,i,o,s)},makeEnum:dP,makeEnumType:Sv,getEnumType:lP}}p();m();f();p();m();f();var z;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(z||(z={}));var Xi;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Xi||(Xi={}));p();m();f();p();m();f();p();m();f();function yP(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>o,a=!(!(s>>>7)&&t==0),u=(a?s|128:s)&255;if(n.push(u),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let o=3;o<31;o=o+7){let s=t>>>o,a=!!(s>>>7),u=(a?s|128:s)&255;if(n.push(u),!a)return}n.push(t>>>31&1)}}var ey=4294967296;function Dv(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function o(s,a){let u=Number(e.slice(s,a));i*=n,r=r*n+u,r>=ey&&(i=i+(r/ey|0),r=r%ey)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?NP(r,i):Av(r,i)}function TP(e,t){let n=Av(e,t),r=n.hi&2147483648;r&&(n=NP(n.lo,n.hi));let i=Ov(n.lo,n.hi);return r?"-"+i:i}function Ov(e,t){if({lo:e,hi:t}=vz(e,t),t<=2097151)return String(ey*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,o=n+r*6777216+i*6710656,s=r+i*8147497,a=i*2,u=1e7;return o>=u&&(s+=Math.floor(o/u),o%=u),s>=u&&(a+=Math.floor(s/u),s%=u),a.toString()+hP(s)+hP(o)}function vz(e,t){return{lo:e>>>0,hi:t>>>0}}function Av(e,t){return{lo:e|0,hi:t|0}}function NP(e,t){return t=~t,e?e=~e+1:t+=1,Av(e,t)}var hP=e=>{let t=String(e);return"0000000".slice(t.length)+t};function wv(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function EP(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}p();m();f();function _z(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof g!="object"||typeof g.env!="object"||g.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),o=BigInt("9223372036854775807"),s=BigInt("0"),a=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(u){let c=typeof u=="bigint"?u:BigInt(u);if(c>o||ca||cgn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>gn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),Dv(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),Dv(i)},dec(i,o){return TP(i,o)},uDec(i,o){return Ov(i,o)}}}var Ht=_z();var Zt;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(Zt||(Zt={}));var ny=class{constructor(t){this.stack=[],this.textEncoder=t!=null?t:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let i=0;i>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(cp(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return gc(t),wv(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){Zh(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){cp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){gc(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return gc(t),t=(t<<1^t>>31)>>>0,wv(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Ht.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Ht.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Ht.enc(t);return ty(n.lo,n.hi,this.buf),this}sint64(t){let n=Ht.enc(t),r=n.hi>>31,i=n.lo<<1^r,o=(n.hi<<1|n.lo>>>31)^r;return ty(i,o,this.buf),this}uint64(t){let n=Ht.uEnc(t);return ty(n.lo,n.hi,this.buf),this}},ry=class{constructor(t,n){this.varint64=yP,this.uint32=EP,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case Zt.Varint:for(;this.buf[this.pos++]&128;);break;case Zt.Bit64:this.pos+=4;case Zt.Bit32:this.pos+=4;break;case Zt.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Zt.StartGroup:let i;for(;(i=this.tag()[1])!==Zt.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Ht.dec(...this.varint64())}uint64(){return Ht.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Ht.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ht.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ht.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};p();m();f();function lp(e,t){return t instanceof Le||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var rSe={"google.protobuf.DoubleValue":z.DOUBLE,"google.protobuf.FloatValue":z.FLOAT,"google.protobuf.Int64Value":z.INT64,"google.protobuf.UInt64Value":z.UINT64,"google.protobuf.Int32Value":z.INT32,"google.protobuf.UInt32Value":z.UINT32,"google.protobuf.BoolValue":z.BOOL,"google.protobuf.StringValue":z.STRING,"google.protobuf.BytesValue":z.BYTES};p();m();f();function bo(e,t,n){if(t===n)return!0;if(e==z.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;rnew ry(e)},IP={writeUnknownFields:!0,writerFactory:()=>new ny};function bz(e){return e?Object.assign(Object.assign({},gP),e):gP}function Sz(e){return e?Object.assign(Object.assign({},IP),e):IP}function vP(){return{makeReadOptions:bz,makeWriteOptions:Sz,listUnknownFields(e){var t;return(t=e[Ic])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Ic]},writeUnknownFields(e,t){let r=e[Ic];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[Ic])||(i[Ic]=[]),i[Ic].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r){let i=e.getType(),o=n===void 0?t.len:t.pos+n;for(;t.pos0&&(N=Oz),l){let F=c[d];if(a==Zt.LengthDelimited&&h!=z.STRING&&h!=z.BYTES){let Y=t.uint32()+t.pos;for(;t.pos>4,s=o,i=2;break;case 2:n[r++]=(s&15)<<4|(o&60)>>2,s=o,i=3;break;case 3:n[r++]=(s&3)<<6|o,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let o=0;o>2],i=(r&3)<<4,n=1;break;case 1:t+=So[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=So[i|r>>6],t+=So[r&63],n=0;break}return n&&(t+=So[i],t+="=",n==1&&(t+="=")),t}};var DP={ignoreUnknownFields:!1},OP={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Az(e){return e?Object.assign(Object.assign({},DP),e):DP}function wz(e){return e?Object.assign(Object.assign({},OP),e):OP}function wP(e){let t=e(Fz,AP);return{makeReadOptions:Az,makeWriteOptions:wz,readMessage(n,r,i,o){if(r==null||Array.isArray(r)||typeof r!="object")throw new Error(`cannot decode message ${n.typeName} from JSON: ${this.debug(r)}`);o=o!=null?o:new n;let s={};for(let[a,u]of Object.entries(r)){let c=n.fields.findJsonName(a);if(!c){if(!i.ignoreUnknownFields)throw new Error(`cannot decode message ${n.typeName} from JSON: key "${a}" is unknown`);continue}let l=c.localName,d=o;if(c.oneof){if(u===null&&c.kind=="scalar")continue;let h=s[c.oneof.localName];if(h)throw new Error(`cannot decode message ${n.typeName} from JSON: multiple keys for oneof "${c.oneof.name}" present: "${h}", "${a}"`);s[c.oneof.localName]=a,d=d[c.oneof.localName]={case:l},l="value"}if(c.repeated){if(u===null)continue;if(!Array.isArray(u))throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`);let h=d[l];for(let N of u){if(N===null)throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(N)}`);let E;switch(c.kind){case"message":E=c.T.fromJson(N,i);break;case"enum":if(E=Lv(c.T,N,i.ignoreUnknownFields),E===void 0)continue;break;case"scalar":try{E=pp(c.T,N,c.L)}catch(D){let A=`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(N)}`;throw D instanceof Error&&D.message.length>0&&(A+=`: ${D.message}`),new Error(A)}break}h.push(E)}}else if(c.kind=="map"){if(u===null)continue;if(Array.isArray(u)||typeof u!="object")throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`);let h=d[l];for(let[N,E]of Object.entries(u)){if(E===null)throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: map value null`);let D;switch(c.V.kind){case"message":D=c.V.T.fromJson(E,i);break;case"enum":if(D=Lv(c.V.T,E,i.ignoreUnknownFields),D===void 0)continue;break;case"scalar":try{D=pp(c.V.T,E,Xi.BIGINT)}catch(A){let F=`cannot decode map value for field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`;throw A instanceof Error&&A.message.length>0&&(F+=`: ${A.message}`),new Error(F)}break}try{h[pp(c.K,c.K==z.BOOL?N=="true"?!0:N=="false"?!1:N:N,Xi.BIGINT).toString()]=D}catch(A){let F=`cannot decode map key for field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`;throw A instanceof Error&&A.message.length>0&&(F+=`: ${A.message}`),new Error(F)}}}else switch(c.kind){case"message":let h=c.T;if(u===null&&h.typeName!="google.protobuf.Value"){if(c.oneof)throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: null is invalid for oneof field "${a}"`);continue}d[l]instanceof Le?d[l].fromJson(u,i):(d[l]=h.fromJson(u,i),h.fieldWrapper&&!c.oneof&&(d[l]=h.fieldWrapper.unwrapField(d[l])));break;case"enum":let N=Lv(c.T,u,i.ignoreUnknownFields);N!==void 0&&(d[l]=N);break;case"scalar":try{d[l]=pp(c.T,u,c.L)}catch(E){let D=`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`;throw E instanceof Error&&E.message.length>0&&(D+=`: ${E.message}`),new Error(D)}break}}return o},writeMessage(n,r){let i=n.getType(),o={},s;try{for(let a of i.fields.byMember()){let u;if(a.kind=="oneof"){let c=n[a.localName];if(c.value===void 0)continue;if(s=a.findField(c.case),!s)throw"oneof case not found: "+c.case;u=t(s,c.value,r)}else s=a,u=t(s,n[s.localName],r);u!==void 0&&(o[r.useProtoFieldName?s.name:s.jsonName]=u)}}catch(a){let u=s?`cannot encode field ${i.typeName}.${s.name} to JSON`:`cannot encode message ${i.typeName} to JSON`,c=a instanceof Error?a.message:String(a);throw new Error(u+(c.length>0?`: ${c}`:""))}return o},readScalar:pp,writeScalar:AP,debug:FP}}function FP(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function pp(e,t,n){switch(e){case z.DOUBLE:case z.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let r=Number(t);if(Number.isNaN(r)||!Number.isFinite(r))break;return e==z.FLOAT&&Zh(r),r;case z.INT32:case z.FIXED32:case z.SFIXED32:case z.SINT32:case z.UINT32:if(t===null)return 0;let i;if(typeof t=="number"?i=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(i=Number(t)),i===void 0)break;return e==z.UINT32?cp(i):gc(i),i;case z.INT64:case z.SFIXED64:case z.SINT64:if(t===null)return Ht.zero;if(typeof t!="number"&&typeof t!="string")break;let o=Ht.parse(t);return n?o.toString():o;case z.FIXED64:case z.UINT64:if(t===null)return Ht.zero;if(typeof t!="number"&&typeof t!="string")break;let s=Ht.uParse(t);return n?s.toString():s;case z.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case z.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch(a){throw new Error("invalid UTF8")}return t;case z.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return Rv.dec(t)}throw new Error}function Lv(e,t,n){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let r=e.findName(t);if(r||n)return r==null?void 0:r.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${FP(t)}`)}function Fz(e,t,n,r){var i;if(t===void 0)return t;if(t===0&&!n)return;if(r)return t;if(e.typeName=="google.protobuf.NullValue")return null;let o=e.findNumber(t);return(i=o==null?void 0:o.name)!==null&&i!==void 0?i:t}function AP(e,t,n){if(t!==void 0)switch(e){case z.INT32:case z.SFIXED32:case z.SINT32:case z.FIXED32:case z.UINT32:return gn(typeof t=="number"),t!=0||n?t:void 0;case z.FLOAT:case z.DOUBLE:return gn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||n?t:void 0;case z.STRING:return gn(typeof t=="string"),t.length>0||n?t:void 0;case z.BOOL:return gn(typeof t=="boolean"),t||n?t:void 0;case z.UINT64:case z.FIXED64:case z.INT64:case z.SFIXED64:case z.SINT64:return gn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),n||t!=0?t.toString(10):void 0;case z.BYTES:return gn(t instanceof Uint8Array),n||t.byteLength>0?Rv.enc(t):void 0}}function RP(){return wP((e,t)=>function(r,i,o){if(r.kind=="map"){let s={};switch(r.V.kind){case"scalar":for(let[u,c]of Object.entries(i)){let l=t(r.V.T,c,!0);gn(l!==void 0),s[u.toString()]=l}break;case"message":for(let[u,c]of Object.entries(i))s[u.toString()]=c.toJson(o);break;case"enum":let a=r.V.T;for(let[u,c]of Object.entries(i)){gn(c===void 0||typeof c=="number");let l=e(a,c,!0,o.enumAsInteger);gn(l!==void 0),s[u.toString()]=l}break}return o.emitDefaultValues||Object.keys(s).length>0?s:void 0}else if(r.repeated){let s=[];switch(r.kind){case"scalar":for(let a=0;a0?s:void 0}else switch(r.kind){case"scalar":return t(r.T,i,!!r.oneof||r.opt||o.emitDefaultValues);case"enum":return e(r.T,i,!!r.oneof||r.opt||o.emitDefaultValues,o.enumAsInteger);case"message":return i!==void 0?lp(r.T,i).toJson(o):void 0}})}p();m();f();function LP(){return{setEnumType:bv,initPartial(e,t){if(e===void 0)return;let n=t.getType();for(let r of n.fields.byMember()){let i=r.localName,o=t,s=e;if(s[i]!==void 0)switch(r.kind){case"oneof":let a=s[i].case;if(a===void 0)continue;let u=r.findField(a),c=s[i].value;u&&u.kind=="message"&&!(c instanceof u.T)?c=new u.T(c):u&&u.kind==="scalar"&&u.T===z.BYTES&&(c=fp(c)),o[i]={case:a,value:c};break;case"scalar":case"enum":let l=s[i];r.T===z.BYTES&&(l=r.repeated?l.map(fp):fp(l)),o[i]=l;break;case"map":switch(r.V.kind){case"scalar":case"enum":if(r.V.T===z.BYTES)for(let[N,E]of Object.entries(s[i]))o[i][N]=fp(E);else Object.assign(o[i],s[i]);break;case"message":let h=r.V.T;for(let N of Object.keys(s[i])){let E=s[i][N];h.fieldWrapper||(E=new h(E)),o[i][N]=E}break}break;case"message":let d=r.T;if(r.repeated)o[i]=s[i].map(h=>h instanceof d?h:new d(h));else if(s[i]!==void 0){let h=s[i];d.fieldWrapper?d.typeName==="google.protobuf.BytesValue"?o[i]=fp(h):o[i]=h:o[i]=h instanceof d?h:new d(h)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],o=n[r.localName];if(r.repeated){if(i.length!==o.length)return!1;switch(r.kind){case"message":return i.every((s,a)=>r.T.equals(s,o[a]));case"scalar":return i.every((s,a)=>bo(r.T,s,o[a]));case"enum":return i.every((s,a)=>bo(z.INT32,s,o[a]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,o);case"enum":return bo(z.INT32,i,o);case"scalar":return bo(r.T,i,o);case"oneof":if(i.case!==o.case)return!1;let s=r.findField(i.case);if(s===void 0)return!0;switch(s.kind){case"message":return s.T.equals(i.value,o.value);case"enum":return bo(z.INT32,i.value,o.value);case"scalar":return bo(s.T,i.value,o.value)}throw new Error(`oneof cannot contain ${s.kind}`);case"map":let a=Object.keys(i).concat(Object.keys(o));switch(r.V.kind){case"message":let u=r.V.T;return a.every(l=>u.equals(i[l],o[l]));case"enum":return a.every(l=>bo(z.INT32,i[l],o[l]));case"scalar":let c=r.V.T;return a.every(l=>bo(c,i[l],o[l]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let o=e[i.localName],s;if(i.repeated)s=o.map(uy);else if(i.kind=="map"){s=r[i.localName];for(let[a,u]of Object.entries(o))s[a]=uy(u)}else i.kind=="oneof"?s=i.findField(o.case)?{case:o.case,value:uy(o.value)}:{case:void 0}:s=uy(o);r[i.localName]=s}return n}}}function uy(e){if(e===void 0)return e;if(e instanceof Le)return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function fp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}p();m();f();var cy=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};p();m();f();p();m();f();function Pv(e,t){let n=kP(e);return t?n:xz(Pz(n))}function PP(e){return Pv(e,!1)}var xP=kP;function kP(e){let t=!1,n=[];for(let r=0;r`${e}$`,Pz=e=>Lz.has(e)?MP(e):e,xz=e=>Rz.has(e)?MP(e):e;var ly=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=PP(t)}addField(t){gn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;n[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var kv=Oo,Ao=class Ao extends Le{constructor(n){super();S(this,"engineConfig");S(this,"version","");S(this,"subgraphs",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ao,n,r)}};S(Ao,"runtime",C),S(Ao,"typeName","wg.cosmo.node.v1.RouterConfig"),S(Ao,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:hp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:kv,repeated:!0}]));var mp=Ao,wo=class wo extends Le{constructor(n){super();S(this,"code",_c.OK);S(this,"details");C.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(wo,n,r)}};S(wo,"runtime",C),S(wo,"typeName","wg.cosmo.node.v1.Response"),S(wo,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:C.getEnumType(_c)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var dy=wo,Fo=class Fo extends Le{constructor(n){super();S(this,"code",0);S(this,"message","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Fo,n,r)}};S(Fo,"runtime",C),S(Fo,"typeName","wg.cosmo.node.v1.ResponseStatus"),S(Fo,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var UP=Fo,Ro=class Ro extends Le{constructor(n){super();S(this,"graphName","");S(this,"version");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ro,n,r)}};S(Ro,"runtime",C),S(Ro,"typeName","wg.cosmo.node.v1.GetConfigRequest"),S(Ro,"fields",C.util.newFieldList(()=>[{no:1,name:"graph_name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9,opt:!0}]));var CP=Ro,Lo=class Lo extends Le{constructor(n){super();S(this,"response");S(this,"config");C.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Lo,n,r)}};S(Lo,"runtime",C),S(Lo,"typeName","wg.cosmo.node.v1.GetConfigResponse"),S(Lo,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:dy},{no:2,name:"config",kind:"message",T:mp,opt:!0}]));var BP=Lo,Po=class Po extends Le{constructor(n){super();S(this,"accountLimits");S(this,"graphPublicKey","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Po,n,r)}};S(Po,"runtime",C),S(Po,"typeName","wg.cosmo.node.v1.RegistrationInfo"),S(Po,"fields",C.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:Uv},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var Mv=Po,xo=class xo extends Le{constructor(n){super();S(this,"traceSamplingRate",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new xo().fromBinary(n,r)}static fromJson(n,r){return new xo().fromJson(n,r)}static fromJsonString(n,r){return new xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(xo,n,r)}};S(xo,"runtime",C),S(xo,"typeName","wg.cosmo.node.v1.AccountLimits"),S(xo,"fields",C.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var Uv=xo,ko=class ko extends Le{constructor(t){super(),C.util.initPartial(t,this)}static fromBinary(t,n){return new ko().fromBinary(t,n)}static fromJson(t,n){return new ko().fromJson(t,n)}static fromJsonString(t,n){return new ko().fromJsonString(t,n)}static equals(t,n){return C.util.equals(ko,t,n)}};S(ko,"runtime",C),S(ko,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),S(ko,"fields",C.util.newFieldList(()=>[]));var VP=ko,Mo=class Mo extends Le{constructor(n){super();S(this,"response");S(this,"registrationInfo");C.util.initPartial(n,this)}static fromBinary(n,r){return new Mo().fromBinary(n,r)}static fromJson(n,r){return new Mo().fromJson(n,r)}static fromJsonString(n,r){return new Mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Mo,n,r)}};S(Mo,"runtime",C),S(Mo,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),S(Mo,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:dy},{no:2,name:"registrationInfo",kind:"message",T:Mv,opt:!0}]));var $P=Mo,Uo=class Uo extends Le{constructor(n){super();S(this,"defaultFlushInterval",Ht.zero);S(this,"datasourceConfigurations",[]);S(this,"fieldConfigurations",[]);S(this,"graphqlSchema","");S(this,"typeConfigurations",[]);S(this,"stringStorage",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new Uo().fromBinary(n,r)}static fromJson(n,r){return new Uo().fromJson(n,r)}static fromJsonString(n,r){return new Uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Uo,n,r)}};S(Uo,"runtime",C),S(Uo,"typeName","wg.cosmo.node.v1.EngineConfiguration"),S(Uo,"fields",C.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:yp,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:gp,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:Cv,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}}]));var hp=Uo,Co=class Co extends Le{constructor(n){super();S(this,"kind",qs.STATIC);S(this,"rootNodes",[]);S(this,"childNodes",[]);S(this,"overrideFieldPathFromAlias",!1);S(this,"customGraphql");S(this,"customStatic");S(this,"directives",[]);S(this,"requestTimeoutSeconds",Ht.zero);S(this,"id","");S(this,"keys",[]);S(this,"provides",[]);S(this,"requires",[]);S(this,"customEvents");S(this,"entityInterfaces",[]);S(this,"interfaceObjects",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Co,n,r)}};S(Co,"runtime",C),S(Co,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),S(Co,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(qs)},{no:2,name:"root_nodes",kind:"message",T:bc,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:bc,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:Ip},{no:6,name:"custom_static",kind:"message",T:Vv},{no:7,name:"directives",kind:"message",T:$v,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:Ga,repeated:!0},{no:11,name:"provides",kind:"message",T:Ga,repeated:!0},{no:12,name:"requires",kind:"message",T:Ga,repeated:!0},{no:13,name:"custom_events",kind:"message",T:_p},{no:14,name:"entity_interfaces",kind:"message",T:Sc,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:Sc,repeated:!0}]));var yp=Co,Bo=class Bo extends Le{constructor(n){super();S(this,"name","");S(this,"sourceType",qa.OBJECT_FIELD);C.util.initPartial(n,this)}static fromBinary(n,r){return new Bo().fromBinary(n,r)}static fromJson(n,r){return new Bo().fromJson(n,r)}static fromJsonString(n,r){return new Bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Bo,n,r)}};S(Bo,"runtime",C),S(Bo,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),S(Bo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:C.getEnumType(qa)}]));var Tp=Bo,Vo=class Vo extends Le{constructor(n){super();S(this,"requiredAndScopes",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Vo().fromBinary(n,r)}static fromJson(n,r){return new Vo().fromJson(n,r)}static fromJsonString(n,r){return new Vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Vo,n,r)}};S(Vo,"runtime",C),S(Vo,"typeName","wg.cosmo.node.v1.Scopes"),S(Vo,"fields",C.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Np=Vo,$o=class $o extends Le{constructor(n){super();S(this,"requiresAuthentication",!1);S(this,"requiredOrScopes",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new $o().fromBinary(n,r)}static fromJson(n,r){return new $o().fromJson(n,r)}static fromJsonString(n,r){return new $o().fromJsonString(n,r)}static equals(n,r){return C.util.equals($o,n,r)}};S($o,"runtime",C),S($o,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),S($o,"fields",C.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Np,repeated:!0}]));var Ep=$o,jo=class jo extends Le{constructor(n){super();S(this,"typeName","");S(this,"fieldName","");S(this,"argumentsConfiguration",[]);S(this,"authorizationConfiguration");C.util.initPartial(n,this)}static fromBinary(n,r){return new jo().fromBinary(n,r)}static fromJson(n,r){return new jo().fromJson(n,r)}static fromJsonString(n,r){return new jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(jo,n,r)}};S(jo,"runtime",C),S(jo,"typeName","wg.cosmo.node.v1.FieldConfiguration"),S(jo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:Tp,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Ep}]));var gp=jo,Go=class Go extends Le{constructor(n){super();S(this,"typeName","");S(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Go().fromBinary(n,r)}static fromJson(n,r){return new Go().fromJson(n,r)}static fromJsonString(n,r){return new Go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Go,n,r)}};S(Go,"runtime",C),S(Go,"typeName","wg.cosmo.node.v1.TypeConfiguration"),S(Go,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Cv=Go,qo=class qo extends Le{constructor(n){super();S(this,"typeName","");S(this,"fieldNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new qo().fromBinary(n,r)}static fromJson(n,r){return new qo().fromJson(n,r)}static fromJsonString(n,r){return new qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(qo,n,r)}};S(qo,"runtime",C),S(qo,"typeName","wg.cosmo.node.v1.TypeField"),S(qo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0}]));var bc=qo,Ko=class Ko extends Le{constructor(n){super();S(this,"typeName","");S(this,"fieldName","");S(this,"selectionSet","");S(this,"disableEntityResolver",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ko().fromBinary(n,r)}static fromJson(n,r){return new Ko().fromJson(n,r)}static fromJsonString(n,r){return new Ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ko,n,r)}};S(Ko,"runtime",C),S(Ko,"typeName","wg.cosmo.node.v1.RequiredField"),S(Ko,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8}]));var Ga=Ko,Qo=class Qo extends Le{constructor(n){super();S(this,"interfaceTypeName","");S(this,"concreteTypeNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Qo().fromBinary(n,r)}static fromJson(n,r){return new Qo().fromJson(n,r)}static fromJsonString(n,r){return new Qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qo,n,r)}};S(Qo,"runtime",C),S(Qo,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),S(Qo,"fields",C.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var Sc=Qo,Yo=class Yo extends Le{constructor(n){super();S(this,"url");S(this,"method",Ka.GET);S(this,"header",{});S(this,"body");S(this,"query",[]);S(this,"urlEncodeBody",!1);S(this,"mtls");S(this,"baseUrl");S(this,"path");S(this,"httpProxyUrl");C.util.initPartial(n,this)}static fromBinary(n,r){return new Yo().fromBinary(n,r)}static fromJson(n,r){return new Yo().fromJson(n,r)}static fromJsonString(n,r){return new Yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Yo,n,r)}};S(Yo,"runtime",C),S(Yo,"typeName","wg.cosmo.node.v1.FetchConfiguration"),S(Yo,"fields",C.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:hr},{no:2,name:"method",kind:"enum",T:C.getEnumType(Ka)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:Gv}},{no:4,name:"body",kind:"message",T:hr},{no:5,name:"query",kind:"message",T:jv,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:qv},{no:9,name:"base_url",kind:"message",T:hr},{no:10,name:"path",kind:"message",T:hr},{no:11,name:"http_proxy_url",kind:"message",T:hr,opt:!0}]));var Bv=Yo,Jo=class Jo extends Le{constructor(n){super();S(this,"statusCode",Ht.zero);S(this,"typeName","");S(this,"injectStatusCodeIntoBody",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new Jo().fromBinary(n,r)}static fromJson(n,r){return new Jo().fromJson(n,r)}static fromJsonString(n,r){return new Jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Jo,n,r)}};S(Jo,"runtime",C),S(Jo,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),S(Jo,"fields",C.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var jP=Jo,zo=class zo extends Le{constructor(n){super();S(this,"fetch");S(this,"subscription");S(this,"federation");S(this,"upstreamSchema");S(this,"customScalarTypeFields",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new zo().fromBinary(n,r)}static fromJson(n,r){return new zo().fromJson(n,r)}static fromJsonString(n,r){return new zo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(zo,n,r)}};S(zo,"runtime",C),S(zo,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),S(zo,"fields",C.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:Bv},{no:2,name:"subscription",kind:"message",T:Kv},{no:3,name:"federation",kind:"message",T:Qv},{no:4,name:"upstream_schema",kind:"message",T:bp},{no:6,name:"custom_scalar_type_fields",kind:"message",T:Yv,repeated:!0}]));var Ip=zo,Wo=class Wo extends Le{constructor(n){super();S(this,"type",us.PUBLISH);S(this,"typeName","");S(this,"fieldName","");S(this,"topic","");S(this,"sourceId","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Wo().fromBinary(n,r)}static fromJson(n,r){return new Wo().fromJson(n,r)}static fromJsonString(n,r){return new Wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Wo,n,r)}};S(Wo,"runtime",C),S(Wo,"typeName","wg.cosmo.node.v1.EventConfiguration"),S(Wo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(us)},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"field_name",kind:"scalar",T:9},{no:4,name:"topic",kind:"scalar",T:9},{no:5,name:"source_id",kind:"scalar",T:9}]));var vp=Wo,Xo=class Xo extends Le{constructor(n){super();S(this,"events",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Xo().fromBinary(n,r)}static fromJson(n,r){return new Xo().fromJson(n,r)}static fromJsonString(n,r){return new Xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Xo,n,r)}};S(Xo,"runtime",C),S(Xo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Events"),S(Xo,"fields",C.util.newFieldList(()=>[{no:1,name:"events",kind:"message",T:vp,repeated:!0}]));var _p=Xo,Ho=class Ho extends Le{constructor(n){super();S(this,"data");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ho().fromBinary(n,r)}static fromJson(n,r){return new Ho().fromJson(n,r)}static fromJsonString(n,r){return new Ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ho,n,r)}};S(Ho,"runtime",C),S(Ho,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),S(Ho,"fields",C.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:hr}]));var Vv=Ho,Zo=class Zo extends Le{constructor(n){super();S(this,"kind",Ks.STATIC_CONFIGURATION_VARIABLE);S(this,"staticVariableContent","");S(this,"environmentVariableName","");S(this,"environmentVariableDefaultValue","");S(this,"placeholderVariableName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Zo().fromBinary(n,r)}static fromJson(n,r){return new Zo().fromJson(n,r)}static fromJsonString(n,r){return new Zo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Zo,n,r)}};S(Zo,"runtime",C),S(Zo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),S(Zo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Ks)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var hr=Zo,es=class es extends Le{constructor(n){super();S(this,"directiveName","");S(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new es().fromBinary(n,r)}static fromJson(n,r){return new es().fromJson(n,r)}static fromJsonString(n,r){return new es().fromJsonString(n,r)}static equals(n,r){return C.util.equals(es,n,r)}};S(es,"runtime",C),S(es,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),S(es,"fields",C.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var $v=es,ts=class ts extends Le{constructor(n){super();S(this,"name","");S(this,"value","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ts().fromBinary(n,r)}static fromJson(n,r){return new ts().fromJson(n,r)}static fromJsonString(n,r){return new ts().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ts,n,r)}};S(ts,"runtime",C),S(ts,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),S(ts,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var jv=ts,ns=class ns extends Le{constructor(n){super();S(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ns().fromBinary(n,r)}static fromJson(n,r){return new ns().fromJson(n,r)}static fromJsonString(n,r){return new ns().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ns,n,r)}};S(ns,"runtime",C),S(ns,"typeName","wg.cosmo.node.v1.HTTPHeader"),S(ns,"fields",C.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:hr,repeated:!0}]));var Gv=ns,rs=class rs extends Le{constructor(n){super();S(this,"key");S(this,"cert");S(this,"insecureSkipVerify",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new rs().fromBinary(n,r)}static fromJson(n,r){return new rs().fromJson(n,r)}static fromJsonString(n,r){return new rs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(rs,n,r)}};S(rs,"runtime",C),S(rs,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),S(rs,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:hr},{no:2,name:"cert",kind:"message",T:hr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var qv=rs,is=class is extends Le{constructor(n){super();S(this,"enabled",!1);S(this,"url");S(this,"useSSE");S(this,"protocol");C.util.initPartial(n,this)}static fromBinary(n,r){return new is().fromBinary(n,r)}static fromJson(n,r){return new is().fromJson(n,r)}static fromJsonString(n,r){return new is().fromJsonString(n,r)}static equals(n,r){return C.util.equals(is,n,r)}};S(is,"runtime",C),S(is,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),S(is,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:hr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:C.getEnumType(Do),opt:!0}]));var Kv=is,os=class os extends Le{constructor(n){super();S(this,"enabled",!1);S(this,"serviceSdl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new os().fromBinary(n,r)}static fromJson(n,r){return new os().fromJson(n,r)}static fromJsonString(n,r){return new os().fromJsonString(n,r)}static equals(n,r){return C.util.equals(os,n,r)}};S(os,"runtime",C),S(os,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),S(os,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var Qv=os,ss=class ss extends Le{constructor(n){super();S(this,"key","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ss().fromBinary(n,r)}static fromJson(n,r){return new ss().fromJson(n,r)}static fromJsonString(n,r){return new ss().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ss,n,r)}};S(ss,"runtime",C),S(ss,"typeName","wg.cosmo.node.v1.InternedString"),S(ss,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var bp=ss,as=class as extends Le{constructor(n){super();S(this,"typeName","");S(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new as().fromBinary(n,r)}static fromJson(n,r){return new as().fromJson(n,r)}static fromJsonString(n,r){return new as().fromJsonString(n,r)}static equals(n,r){return C.util.equals(as,n,r)}};S(as,"runtime",C),S(as,"typeName","wg.cosmo.node.v1.SingleTypeField"),S(as,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var Yv=as;p();m();f();function Jv(e,t,n){if(e)for(let r of e)t.push(new Ga(w({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{})))}function Mz(e){switch(e){case"publish":return us.PUBLISH;case"request":return us.REQUEST;case"subscribe":return us.SUBSCRIBE}throw new Error(`Unknown event type ${e}`)}function GP(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:[],requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,o=[...r.fieldNames],s=new bc({typeName:i,fieldNames:o});if(r.isRootNode?t.rootNodes.push(s):t.childNodes.push(s),r.entityInterfaceConcreteTypeNames){let a=new Sc({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(a):t.entityInterfaces.push(a)}Jv(r.keys,t.keys,i),Jv(r.provides,t.provides,i),Jv(r.requires,t.requires,i);for(let a of(n=r.events)!=null?n:[])t.events.push(new vp({type:Mz(a.type),typeName:i,fieldName:a.fieldName,topic:a.topic}))}return t}function qP(e){var n;let t=[];for(let r of e){let i=r.argumentNames.map(u=>new Tp({name:u,sourceType:qa.FIELD_ARGUMENT})),o=new gp({argumentsConfiguration:i,fieldName:r.fieldName,typeName:r.typeName}),s=((n=r.requiredScopes)==null?void 0:n.map(u=>new Np({requiredAndScopes:u})))||[],a=s.length>0;(r.requiresAuthentication||a)&&(o.authorizationConfiguration=new Ep({requiresAuthentication:r.requiresAuthentication||a,requiredOrScopes:s})),t.push(o)}return t}p();m();f();function zv(e){return new Error(`Normalization failed to return a ${e}.`)}var Uz=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new bp({key:n})},Cz=e=>{switch(e){case"ws":return Do.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Do.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Do.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}throw new Error(`Unsupported subscription protocol '${e}'`)},KP=function(e){var n;let t=new hp({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let r of e.subgraphs){if(!r.configurationDataMap)throw zv("ConfigurationDataMap");if(!r.schema)throw zv("GraphQLSchema");let i=Uz(t,sP(Ql(r.schema))),{childNodes:o,entityInterfaces:s,events:a,interfaceObjects:u,keys:c,provides:l,requires:d,rootNodes:h}=GP(r.configurationDataMap),N=Cz(r.subscriptionProtocol),E,D,A;if(a.length>0){E=qs.PUBSUB,A=new _p({events:a});let Y=X=>["Query","Mutation","Subscription"].includes(X.typeName),J=0,Z=0;for(;J({id:r.id,name:r.name,routingUrl:r.url}))})};ie();function QP(e){let t;try{t=oi(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function Bz(e){let{federationResult:t,errors:n}=(0,Wv.federateSubgraphs)(e.map(QP));if(n&&n.length>0)throw new Error(`could not federate schema: ${n.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:$e(t.federatedGraphAST)}}function Vz(e){let t=(0,Wv.federateSubgraphs)(e.map(QP));if(t.errors&&t.errors.length>0)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);if(t.federationResult===void 0)throw new Error("could not federate subgraphs");return KP({fieldConfigurations:t.federationResult.fieldConfigurations,federatedSDL:Yl(t.federationResult.federatedGraphSchema),schemaVersionId:"",subgraphs:e.map((r,i)=>{var u,c;let o=t.federationResult.subgraphConfigBySubgraphName.get(r.name),s=o==null?void 0:o.schema,a=o==null?void 0:o.configurationDataMap;return{id:`${i}`,name:r.name,url:Iv(r.url),sdl:r.schema,subscriptionUrl:Iv((u=r.subscription_url)!=null?u:r.url),subscriptionProtocol:(c=r.subscription_protocol)!=null?c:"ws",schema:s,configurationDataMap:a}})}).toJsonString()}return ae($z);})(); +`+rP(e.errors,t):nP(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(ez(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Yh(r,n)}else if(Array.isArray(e))return rP(e,n);return tz(e,n)}function ez(e){return typeof e.toJSON=="function"}function tz(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>iP?"["+nz(e)+"]":"{ "+n.map(([i,o])=>i+": "+Yh(o,t)).join(", ")+" }"}function rP(e,t){if(e.length===0)return"[]";if(t.length>iP)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}p();m();f();ie();p();m();f();ie();function Wi(e){if(ye(e)){let t=Wi(e.ofType);if(t.kind===_.NON_NULL_TYPE)throw new Error(`Invalid type node ${oP(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:_.NON_NULL_TYPE,type:t}}else if(Ke(e))return{kind:_.LIST_TYPE,type:Wi(e.ofType)};return{kind:_.NAMED_TYPE,name:{kind:_.NAME,value:e.name}}}p();m();f();ie();function zh(e){if(e===null)return{kind:_.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=zh(n);r!=null&&t.push(r)}return{kind:_.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=zh(r);i&&t.push({kind:_.OBJECT_FIELD,name:{kind:_.NAME,value:n},value:i})}return{kind:_.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:_.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return rz.test(t)?{kind:_.INT,value:t}:{kind:_.FLOAT,value:t}}if(typeof e=="string")return{kind:_.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var rz=/^-?(?:0|[1-9][0-9]*)$/;p();m();f();p();m();f();function Wh(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let o=e(r);return t.set(r,o),o}return i}}var z_e=Wh(function(t){let n=iz(t);return new Set([...n].map(r=>r.name))}),iz=Wh(function(t){let n=vv(t);return new Set(n.values())}),vv=Wh(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let o=t.getSubscriptionType();return o&&n.set("subscription",o),n});function oz(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=sz(e,n),o=i!=null?[i]:[],s=e.getDirectives();for(let a of s)vs(a)||o.push(az(a,e,n));for(let a in r){let u=r[a],c=ci(u),l=er(u);if(!(c||l))if(De(u))o.push(uz(u,e,n));else if(Me(u))o.push(cz(u,e,n));else if(lt(u))o.push(lz(u,e,n));else if(Ue(u))o.push(dz(u,e,n));else if(it(u))o.push(pz(u,e,n));else if(zt(u))o.push(fz(u,e,n));else throw new Error(`Unknown type ${u}.`)}return{kind:_.DOCUMENT,definitions:o}}function sP(e,t={}){let n=oz(e,t);return $e(n)}function sz(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),o=[];if(e.astNode!=null&&o.push(e.astNode),e.extensionASTNodes!=null)for(let l of e.extensionASTNodes)o.push(l);for(let l of o)if(l.operationTypes)for(let d of l.operationTypes)i.set(d.operation,d);let s=vv(e);for(let[l,d]of i){let h=s.get(l);if(h!=null){let N=Wi(h);d!=null?d.type=N:i.set(l,{kind:_.OPERATION_TYPE_DEFINITION,operation:l,type:N})}}let a=[...i.values()].filter(ZR),u=Ec(e,e,t);if(!a.length&&!u.length)return null;let c={kind:a!=null?_.SCHEMA_DEFINITION:_.SCHEMA_EXTENSION,operationTypes:a,directives:u};return c.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:_.STRING,value:e.description,block:!0}:void 0,c}function az(e,t,n){var r,i,o,s;return{kind:_.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description}:void 0,name:{kind:_.NAME,value:e.name},arguments:(o=e.args)===null||o===void 0?void 0:o.map(a=>aP(a,t,n)),repeatable:e.isRepeatable,locations:((s=e.locations)===null||s===void 0?void 0:s.map(a=>({kind:_.NAME,value:a})))||[]}}function Ec(e,t,n){let r=Jh(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let o;if(r!=null)o=_v(t,r);else{o=[];for(let s of i)s.directives&&o.push(...s.directives)}return o}function Xh(e,t,n){var r,i;let o=[],s=null,a=Jh(e,n),u;return a!=null?u=_v(t,a):u=(r=e.astNode)===null||r===void 0?void 0:r.directives,u!=null&&(o=u.filter(c=>c.name.value!=="deprecated"),e.deprecationReason!=null&&(s=(i=u.filter(c=>c.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&s==null&&(s=yz(e.deprecationReason)),s==null?o:[s].concat(o)}function aP(e,t,n){var r,i,o;return{kind:_.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},type:Wi(e.type),defaultValue:e.defaultValue!==void 0&&(o=Kn(e.defaultValue,e.type))!==null&&o!==void 0?o:void 0,directives:Xh(e,t,n)}}function uz(e,t,n){var r,i;return{kind:_.OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>uP(o,t,n)),interfaces:Object.values(e.getInterfaces()).map(o=>Wi(o)),directives:Ec(e,t,n)}}function cz(e,t,n){var r,i;let o={kind:_.INTERFACE_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},fields:Object.values(e.getFields()).map(s=>uP(s,t,n)),directives:Ec(e,t,n)};return"getInterfaces"in e&&(o.interfaces=Object.values(e.getInterfaces()).map(s=>Wi(s))),o}function lz(e,t,n){var r,i;return{kind:_.UNION_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},directives:Ec(e,t,n),types:e.getTypes().map(o=>Wi(o))}}function dz(e,t,n){var r,i;return{kind:_.INPUT_OBJECT_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>mz(o,t,n)),directives:Ec(e,t,n)}}function pz(e,t,n){var r,i;return{kind:_.ENUM_TYPE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},values:Object.values(e.getValues()).map(o=>hz(o,t,n)),directives:Ec(e,t,n)}}function fz(e,t,n){var r,i,o;let s=Jh(e,n),a=s?_v(t,s):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],u=e.specifiedByUrl||e.specifiedByURL;if(u&&!a.some(c=>c.name.value==="specifiedBy")){let c={url:u};a.push(Hh("specifiedBy",c))}return{kind:_.SCALAR_TYPE_DEFINITION,description:(o=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&o!==void 0?o:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},directives:a}}function uP(e,t,n){var r,i;return{kind:_.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},arguments:e.args.map(o=>aP(o,t,n)),type:Wi(e.type),directives:Xh(e,t,n)}}function mz(e,t,n){var r,i,o;return{kind:_.INPUT_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},type:Wi(e.type),directives:Xh(e,t,n),defaultValue:(o=Kn(e.defaultValue,e.type))!==null&&o!==void 0?o:void 0}}function hz(e,t,n){var r,i;return{kind:_.ENUM_VALUE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:_.STRING,value:e.description,block:!0}:void 0,name:{kind:_.NAME,value:e.name},directives:Xh(e,t,n)}}function yz(e){return Hh("deprecated",{reason:e},Fi)}function Hh(e,t,n){let r=[];if(n!=null)for(let i of n.args){let o=i.name,s=t[o];if(s!==void 0){let a=Kn(s,i.type);a&&r.push({kind:_.ARGUMENT,name:{kind:_.NAME,value:o},value:a})}}else for(let i in t){let o=t[i],s=zh(o);s&&r.push({kind:_.ARGUMENT,name:{kind:_.NAME,value:i},value:s})}return{kind:_.DIRECTIVE,name:{kind:_.NAME,value:e},arguments:r}}function _v(e,t){let n=[];for(let r in t){let i=t[r],o=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let s of i)n.push(Hh(r,s,o));else n.push(Hh(r,i,o))}return n}ie();p();m();f();p();m();f();p();m();f();p();m();f();p();m();f();p();m();f();function gn(e,t){if(!e)throw new Error(t)}var Tz=34028234663852886e22,Nz=-34028234663852886e22,Ez=4294967295,gz=2147483647,Iz=-2147483648;function gc(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>gz||eEz||e<0)throw new Error("invalid uint 32: "+e)}function Zh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Tz||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function Sv(e,t,n){let r=Object.create(null),i=Object.create(null),o=[];for(let s of t){let a=pP(s);o.push(a),r[s.name]=a,i[s.no]=a}return{typeName:e,values:o,findName(s){return r[s]},findNumber(s){return i[s]}}}function dP(e,t,n){let r={};for(let i of t){let o=pP(i);r[o.localName]=o.no,r[o.no]=o.localName}return bv(r,e,t,n),r}function pP(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}p();m();f();p();m();f();var Re=class{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){let r=this.getType(),i=r.runtime.bin,o=i.makeReadOptions(n);return i.readMessage(this,o.readerFactory(t),t.byteLength,o),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,o=i.makeReadOptions(n);return i.readMessage(r,t,o,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(i){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${i instanceof Error?i.message:String(i)}`)}return this.fromJson(r,n)}toBinary(t){let n=this.getType(),r=n.runtime.bin,i=r.makeWriteOptions(t),o=i.writerFactory();return r.writeMessage(this,o,i),o.finish()}toJson(t){let n=this.getType(),r=n.runtime.json,i=r.makeWriteOptions(t);return r.writeMessage(this,i)}toJsonString(t){var n;let r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}};function fP(e,t,n,r){var i;let o=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),s={[o]:function(a){e.util.initFields(this),e.util.initPartial(a,this)}}[o];return Object.setPrototypeOf(s.prototype,new Re),Object.assign(s,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(a,u){return new s().fromBinary(a,u)},fromJson(a,u){return new s().fromJson(a,u)},fromJsonString(a,u){return new s().fromJsonString(a,u)},equals(a,u){return e.util.equals(s,a,u)}}),s}function mP(e,t,n,r){return{syntax:e,json:t,bin:n,util:r,makeMessageType(i,o,s){return fP(this,i,o,s)},makeEnum:dP,makeEnumType:Sv,getEnumType:lP}}p();m();f();p();m();f();var z;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(z||(z={}));var Hi;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Hi||(Hi={}));p();m();f();p();m();f();p();m();f();function yP(){let e=0,t=0;for(let r=0;r<28;r+=7){let i=this.buf[this.pos++];if(e|=(i&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let i=this.buf[this.pos++];if(t|=(i&127)<>>o,a=!(!(s>>>7)&&t==0),u=(a?s|128:s)&255;if(n.push(u),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let o=3;o<31;o=o+7){let s=t>>>o,a=!!(s>>>7),u=(a?s|128:s)&255;if(n.push(u),!a)return}n.push(t>>>31&1)}}var ey=4294967296;function Dv(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function o(s,a){let u=Number(e.slice(s,a));i*=n,r=r*n+u,r>=ey&&(i=i+(r/ey|0),r=r%ey)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?NP(r,i):Av(r,i)}function TP(e,t){let n=Av(e,t),r=n.hi&2147483648;r&&(n=NP(n.lo,n.hi));let i=Ov(n.lo,n.hi);return r?"-"+i:i}function Ov(e,t){if({lo:e,hi:t}=vz(e,t),t<=2097151)return String(ey*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,o=n+r*6777216+i*6710656,s=r+i*8147497,a=i*2,u=1e7;return o>=u&&(s+=Math.floor(o/u),o%=u),s>=u&&(a+=Math.floor(s/u),s%=u),a.toString()+hP(s)+hP(o)}function vz(e,t){return{lo:e>>>0,hi:t>>>0}}function Av(e,t){return{lo:e|0,hi:t|0}}function NP(e,t){return t=~t,e?e=~e+1:t+=1,Av(e,t)}var hP=e=>{let t=String(e);return"0000000".slice(t.length)+t};function wv(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function EP(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}p();m();f();function _z(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof g!="object"||typeof g.env!="object"||g.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),o=BigInt("9223372036854775807"),s=BigInt("0"),a=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(u){let c=typeof u=="bigint"?u:BigInt(u);if(c>o||ca||cgn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>gn(/^[0-9]+$/.test(i),`uint64 invalid: ${i}`);return{zero:"0",supported:!1,parse(i){return typeof i!="string"&&(i=i.toString()),n(i),i},uParse(i){return typeof i!="string"&&(i=i.toString()),r(i),i},enc(i){return typeof i!="string"&&(i=i.toString()),n(i),Dv(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),Dv(i)},dec(i,o){return TP(i,o)},uDec(i,o){return Ov(i,o)}}}var Xt=_z();var Zt;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(Zt||(Zt={}));var ny=class{constructor(t){this.stack=[],this.textEncoder=t!=null?t:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let i=0;i>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(cp(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return gc(t),wv(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){Zh(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){cp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){gc(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return gc(t),t=(t<<1^t>>31)>>>0,wv(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Xt.enc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Xt.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Xt.enc(t);return ty(n.lo,n.hi,this.buf),this}sint64(t){let n=Xt.enc(t),r=n.hi>>31,i=n.lo<<1^r,o=(n.hi<<1|n.lo>>>31)^r;return ty(i,o,this.buf),this}uint64(t){let n=Xt.uEnc(t);return ty(n.lo,n.hi,this.buf),this}},ry=class{constructor(t,n){this.varint64=yP,this.uint32=EP,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n!=null?n:new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case Zt.Varint:for(;this.buf[this.pos++]&128;);break;case Zt.Bit64:this.pos+=4;case Zt.Bit32:this.pos+=4;break;case Zt.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Zt.StartGroup:let i;for(;(i=this.tag()[1])!==Zt.EndGroup;)this.skip(i);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Xt.dec(...this.varint64())}uint64(){return Xt.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Xt.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Xt.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Xt.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}};p();m();f();function lp(e,t){return t instanceof Re||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var rSe={"google.protobuf.DoubleValue":z.DOUBLE,"google.protobuf.FloatValue":z.FLOAT,"google.protobuf.Int64Value":z.INT64,"google.protobuf.UInt64Value":z.UINT64,"google.protobuf.Int32Value":z.INT32,"google.protobuf.UInt32Value":z.UINT32,"google.protobuf.BoolValue":z.BOOL,"google.protobuf.StringValue":z.STRING,"google.protobuf.BytesValue":z.BYTES};p();m();f();function So(e,t,n){if(t===n)return!0;if(e==z.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;rnew ry(e)},IP={writeUnknownFields:!0,writerFactory:()=>new ny};function bz(e){return e?Object.assign(Object.assign({},gP),e):gP}function Sz(e){return e?Object.assign(Object.assign({},IP),e):IP}function vP(){return{makeReadOptions:bz,makeWriteOptions:Sz,listUnknownFields(e){var t;return(t=e[Ic])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Ic]},writeUnknownFields(e,t){let r=e[Ic];if(r)for(let i of r)t.tag(i.no,i.wireType).raw(i.data)},onUnknownField(e,t,n,r){let i=e;Array.isArray(i[Ic])||(i[Ic]=[]),i[Ic].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r){let i=e.getType(),o=n===void 0?t.len:t.pos+n;for(;t.pos0&&(N=Oz),l){let F=c[d];if(a==Zt.LengthDelimited&&h!=z.STRING&&h!=z.BYTES){let Y=t.uint32()+t.pos;for(;t.pos>4,s=o,i=2;break;case 2:n[r++]=(s&15)<<4|(o&60)>>2,s=o,i=3;break;case 3:n[r++]=(s&3)<<6|o,i=0;break}}if(i==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,i=0;for(let o=0;o>2],i=(r&3)<<4,n=1;break;case 1:t+=Do[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Do[i|r>>6],t+=Do[r&63],n=0;break}return n&&(t+=Do[i],t+="=",n==1&&(t+="=")),t}};var DP={ignoreUnknownFields:!1},OP={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Az(e){return e?Object.assign(Object.assign({},DP),e):DP}function wz(e){return e?Object.assign(Object.assign({},OP),e):OP}function wP(e){let t=e(Fz,AP);return{makeReadOptions:Az,makeWriteOptions:wz,readMessage(n,r,i,o){if(r==null||Array.isArray(r)||typeof r!="object")throw new Error(`cannot decode message ${n.typeName} from JSON: ${this.debug(r)}`);o=o!=null?o:new n;let s={};for(let[a,u]of Object.entries(r)){let c=n.fields.findJsonName(a);if(!c){if(!i.ignoreUnknownFields)throw new Error(`cannot decode message ${n.typeName} from JSON: key "${a}" is unknown`);continue}let l=c.localName,d=o;if(c.oneof){if(u===null&&c.kind=="scalar")continue;let h=s[c.oneof.localName];if(h)throw new Error(`cannot decode message ${n.typeName} from JSON: multiple keys for oneof "${c.oneof.name}" present: "${h}", "${a}"`);s[c.oneof.localName]=a,d=d[c.oneof.localName]={case:l},l="value"}if(c.repeated){if(u===null)continue;if(!Array.isArray(u))throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`);let h=d[l];for(let N of u){if(N===null)throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(N)}`);let E;switch(c.kind){case"message":E=c.T.fromJson(N,i);break;case"enum":if(E=Rv(c.T,N,i.ignoreUnknownFields),E===void 0)continue;break;case"scalar":try{E=pp(c.T,N,c.L)}catch(D){let A=`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(N)}`;throw D instanceof Error&&D.message.length>0&&(A+=`: ${D.message}`),new Error(A)}break}h.push(E)}}else if(c.kind=="map"){if(u===null)continue;if(Array.isArray(u)||typeof u!="object")throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`);let h=d[l];for(let[N,E]of Object.entries(u)){if(E===null)throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: map value null`);let D;switch(c.V.kind){case"message":D=c.V.T.fromJson(E,i);break;case"enum":if(D=Rv(c.V.T,E,i.ignoreUnknownFields),D===void 0)continue;break;case"scalar":try{D=pp(c.V.T,E,Hi.BIGINT)}catch(A){let F=`cannot decode map value for field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`;throw A instanceof Error&&A.message.length>0&&(F+=`: ${A.message}`),new Error(F)}break}try{h[pp(c.K,c.K==z.BOOL?N=="true"?!0:N=="false"?!1:N:N,Hi.BIGINT).toString()]=D}catch(A){let F=`cannot decode map key for field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`;throw A instanceof Error&&A.message.length>0&&(F+=`: ${A.message}`),new Error(F)}}}else switch(c.kind){case"message":let h=c.T;if(u===null&&h.typeName!="google.protobuf.Value"){if(c.oneof)throw new Error(`cannot decode field ${n.typeName}.${c.name} from JSON: null is invalid for oneof field "${a}"`);continue}d[l]instanceof Re?d[l].fromJson(u,i):(d[l]=h.fromJson(u,i),h.fieldWrapper&&!c.oneof&&(d[l]=h.fieldWrapper.unwrapField(d[l])));break;case"enum":let N=Rv(c.T,u,i.ignoreUnknownFields);N!==void 0&&(d[l]=N);break;case"scalar":try{d[l]=pp(c.T,u,c.L)}catch(E){let D=`cannot decode field ${n.typeName}.${c.name} from JSON: ${this.debug(u)}`;throw E instanceof Error&&E.message.length>0&&(D+=`: ${E.message}`),new Error(D)}break}}return o},writeMessage(n,r){let i=n.getType(),o={},s;try{for(let a of i.fields.byMember()){let u;if(a.kind=="oneof"){let c=n[a.localName];if(c.value===void 0)continue;if(s=a.findField(c.case),!s)throw"oneof case not found: "+c.case;u=t(s,c.value,r)}else s=a,u=t(s,n[s.localName],r);u!==void 0&&(o[r.useProtoFieldName?s.name:s.jsonName]=u)}}catch(a){let u=s?`cannot encode field ${i.typeName}.${s.name} to JSON`:`cannot encode message ${i.typeName} to JSON`,c=a instanceof Error?a.message:String(a);throw new Error(u+(c.length>0?`: ${c}`:""))}return o},readScalar:pp,writeScalar:AP,debug:FP}}function FP(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function pp(e,t,n){switch(e){case z.DOUBLE:case z.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;let r=Number(t);if(Number.isNaN(r)||!Number.isFinite(r))break;return e==z.FLOAT&&Zh(r),r;case z.INT32:case z.FIXED32:case z.SFIXED32:case z.SINT32:case z.UINT32:if(t===null)return 0;let i;if(typeof t=="number"?i=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(i=Number(t)),i===void 0)break;return e==z.UINT32?cp(i):gc(i),i;case z.INT64:case z.SFIXED64:case z.SINT64:if(t===null)return Xt.zero;if(typeof t!="number"&&typeof t!="string")break;let o=Xt.parse(t);return n?o.toString():o;case z.FIXED64:case z.UINT64:if(t===null)return Xt.zero;if(typeof t!="number"&&typeof t!="string")break;let s=Xt.uParse(t);return n?s.toString():s;case z.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case z.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch(a){throw new Error("invalid UTF8")}return t;case z.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return Lv.dec(t)}throw new Error}function Rv(e,t,n){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let r=e.findName(t);if(r||n)return r==null?void 0:r.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${FP(t)}`)}function Fz(e,t,n,r){var i;if(t===void 0)return t;if(t===0&&!n)return;if(r)return t;if(e.typeName=="google.protobuf.NullValue")return null;let o=e.findNumber(t);return(i=o==null?void 0:o.name)!==null&&i!==void 0?i:t}function AP(e,t,n){if(t!==void 0)switch(e){case z.INT32:case z.SFIXED32:case z.SINT32:case z.FIXED32:case z.UINT32:return gn(typeof t=="number"),t!=0||n?t:void 0;case z.FLOAT:case z.DOUBLE:return gn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||n?t:void 0;case z.STRING:return gn(typeof t=="string"),t.length>0||n?t:void 0;case z.BOOL:return gn(typeof t=="boolean"),t||n?t:void 0;case z.UINT64:case z.FIXED64:case z.INT64:case z.SFIXED64:case z.SINT64:return gn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),n||t!=0?t.toString(10):void 0;case z.BYTES:return gn(t instanceof Uint8Array),n||t.byteLength>0?Lv.enc(t):void 0}}function LP(){return wP((e,t)=>function(r,i,o){if(r.kind=="map"){let s={};switch(r.V.kind){case"scalar":for(let[u,c]of Object.entries(i)){let l=t(r.V.T,c,!0);gn(l!==void 0),s[u.toString()]=l}break;case"message":for(let[u,c]of Object.entries(i))s[u.toString()]=c.toJson(o);break;case"enum":let a=r.V.T;for(let[u,c]of Object.entries(i)){gn(c===void 0||typeof c=="number");let l=e(a,c,!0,o.enumAsInteger);gn(l!==void 0),s[u.toString()]=l}break}return o.emitDefaultValues||Object.keys(s).length>0?s:void 0}else if(r.repeated){let s=[];switch(r.kind){case"scalar":for(let a=0;a0?s:void 0}else switch(r.kind){case"scalar":return t(r.T,i,!!r.oneof||r.opt||o.emitDefaultValues);case"enum":return e(r.T,i,!!r.oneof||r.opt||o.emitDefaultValues,o.enumAsInteger);case"message":return i!==void 0?lp(r.T,i).toJson(o):void 0}})}p();m();f();function RP(){return{setEnumType:bv,initPartial(e,t){if(e===void 0)return;let n=t.getType();for(let r of n.fields.byMember()){let i=r.localName,o=t,s=e;if(s[i]!==void 0)switch(r.kind){case"oneof":let a=s[i].case;if(a===void 0)continue;let u=r.findField(a),c=s[i].value;u&&u.kind=="message"&&!(c instanceof u.T)?c=new u.T(c):u&&u.kind==="scalar"&&u.T===z.BYTES&&(c=fp(c)),o[i]={case:a,value:c};break;case"scalar":case"enum":let l=s[i];r.T===z.BYTES&&(l=r.repeated?l.map(fp):fp(l)),o[i]=l;break;case"map":switch(r.V.kind){case"scalar":case"enum":if(r.V.T===z.BYTES)for(let[N,E]of Object.entries(s[i]))o[i][N]=fp(E);else Object.assign(o[i],s[i]);break;case"message":let h=r.V.T;for(let N of Object.keys(s[i])){let E=s[i][N];h.fieldWrapper||(E=new h(E)),o[i][N]=E}break}break;case"message":let d=r.T;if(r.repeated)o[i]=s[i].map(h=>h instanceof d?h:new d(h));else if(s[i]!==void 0){let h=s[i];d.fieldWrapper?d.typeName==="google.protobuf.BytesValue"?o[i]=fp(h):o[i]=h:o[i]=h instanceof d?h:new d(h)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],o=n[r.localName];if(r.repeated){if(i.length!==o.length)return!1;switch(r.kind){case"message":return i.every((s,a)=>r.T.equals(s,o[a]));case"scalar":return i.every((s,a)=>So(r.T,s,o[a]));case"enum":return i.every((s,a)=>So(z.INT32,s,o[a]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,o);case"enum":return So(z.INT32,i,o);case"scalar":return So(r.T,i,o);case"oneof":if(i.case!==o.case)return!1;let s=r.findField(i.case);if(s===void 0)return!0;switch(s.kind){case"message":return s.T.equals(i.value,o.value);case"enum":return So(z.INT32,i.value,o.value);case"scalar":return So(s.T,i.value,o.value)}throw new Error(`oneof cannot contain ${s.kind}`);case"map":let a=Object.keys(i).concat(Object.keys(o));switch(r.V.kind){case"message":let u=r.V.T;return a.every(l=>u.equals(i[l],o[l]));case"enum":return a.every(l=>So(z.INT32,i[l],o[l]));case"scalar":let c=r.V.T;return a.every(l=>So(c,i[l],o[l]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let o=e[i.localName],s;if(i.repeated)s=o.map(uy);else if(i.kind=="map"){s=r[i.localName];for(let[a,u]of Object.entries(o))s[a]=uy(u)}else i.kind=="oneof"?s=i.findField(o.case)?{case:o.case,value:uy(o.value)}:{case:void 0}:s=uy(o);r[i.localName]=s}return n}}}function uy(e){if(e===void 0)return e;if(e instanceof Re)return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function fp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}p();m();f();var cy=class{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){let n={};for(let r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){let n={};for(let r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];let t=this.members,n;for(let r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}};p();m();f();p();m();f();function Pv(e,t){let n=kP(e);return t?n:xz(Pz(n))}function PP(e){return Pv(e,!1)}var xP=kP;function kP(e){let t=!1,n=[];for(let r=0;r`${e}$`,Pz=e=>Rz.has(e)?MP(e):e,xz=e=>Lz.has(e)?MP(e):e;var ly=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=PP(t)}addField(t){gn(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;n[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"routing_url",kind:"scalar",T:9}]));var kv=Ao,wo=class wo extends Re{constructor(n){super();S(this,"engineConfig");S(this,"version","");S(this,"subgraphs",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(wo,n,r)}};S(wo,"runtime",C),S(wo,"typeName","wg.cosmo.node.v1.RouterConfig"),S(wo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:hp},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:kv,repeated:!0}]));var mp=wo,Fo=class Fo extends Re{constructor(n){super();S(this,"code",_c.OK);S(this,"details");C.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Fo,n,r)}};S(Fo,"runtime",C),S(Fo,"typeName","wg.cosmo.node.v1.Response"),S(Fo,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:C.getEnumType(_c)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var dy=Fo,Lo=class Lo extends Re{constructor(n){super();S(this,"code",0);S(this,"message","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Lo,n,r)}};S(Lo,"runtime",C),S(Lo,"typeName","wg.cosmo.node.v1.ResponseStatus"),S(Lo,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var UP=Lo,Ro=class Ro extends Re{constructor(n){super();S(this,"graphName","");S(this,"version");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ro,n,r)}};S(Ro,"runtime",C),S(Ro,"typeName","wg.cosmo.node.v1.GetConfigRequest"),S(Ro,"fields",C.util.newFieldList(()=>[{no:1,name:"graph_name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9,opt:!0}]));var CP=Ro,Po=class Po extends Re{constructor(n){super();S(this,"response");S(this,"config");C.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Po,n,r)}};S(Po,"runtime",C),S(Po,"typeName","wg.cosmo.node.v1.GetConfigResponse"),S(Po,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:dy},{no:2,name:"config",kind:"message",T:mp,opt:!0}]));var BP=Po,xo=class xo extends Re{constructor(n){super();S(this,"accountLimits");S(this,"graphPublicKey","");C.util.initPartial(n,this)}static fromBinary(n,r){return new xo().fromBinary(n,r)}static fromJson(n,r){return new xo().fromJson(n,r)}static fromJsonString(n,r){return new xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(xo,n,r)}};S(xo,"runtime",C),S(xo,"typeName","wg.cosmo.node.v1.RegistrationInfo"),S(xo,"fields",C.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:Uv},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var Mv=xo,ko=class ko extends Re{constructor(n){super();S(this,"traceSamplingRate",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new ko().fromBinary(n,r)}static fromJson(n,r){return new ko().fromJson(n,r)}static fromJsonString(n,r){return new ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ko,n,r)}};S(ko,"runtime",C),S(ko,"typeName","wg.cosmo.node.v1.AccountLimits"),S(ko,"fields",C.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var Uv=ko,Mo=class Mo extends Re{constructor(t){super(),C.util.initPartial(t,this)}static fromBinary(t,n){return new Mo().fromBinary(t,n)}static fromJson(t,n){return new Mo().fromJson(t,n)}static fromJsonString(t,n){return new Mo().fromJsonString(t,n)}static equals(t,n){return C.util.equals(Mo,t,n)}};S(Mo,"runtime",C),S(Mo,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),S(Mo,"fields",C.util.newFieldList(()=>[]));var VP=Mo,Uo=class Uo extends Re{constructor(n){super();S(this,"response");S(this,"registrationInfo");C.util.initPartial(n,this)}static fromBinary(n,r){return new Uo().fromBinary(n,r)}static fromJson(n,r){return new Uo().fromJson(n,r)}static fromJsonString(n,r){return new Uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Uo,n,r)}};S(Uo,"runtime",C),S(Uo,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),S(Uo,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:dy},{no:2,name:"registrationInfo",kind:"message",T:Mv,opt:!0}]));var $P=Uo,Co=class Co extends Re{constructor(n){super();S(this,"defaultFlushInterval",Xt.zero);S(this,"datasourceConfigurations",[]);S(this,"fieldConfigurations",[]);S(this,"graphqlSchema","");S(this,"typeConfigurations",[]);S(this,"stringStorage",{});C.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Co,n,r)}};S(Co,"runtime",C),S(Co,"typeName","wg.cosmo.node.v1.EngineConfiguration"),S(Co,"fields",C.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:yp,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:gp,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:Cv,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}}]));var hp=Co,Bo=class Bo extends Re{constructor(n){super();S(this,"kind",qs.STATIC);S(this,"rootNodes",[]);S(this,"childNodes",[]);S(this,"overrideFieldPathFromAlias",!1);S(this,"customGraphql");S(this,"customStatic");S(this,"directives",[]);S(this,"requestTimeoutSeconds",Xt.zero);S(this,"id","");S(this,"keys",[]);S(this,"provides",[]);S(this,"requires",[]);S(this,"customEvents");S(this,"entityInterfaces",[]);S(this,"interfaceObjects",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Bo().fromBinary(n,r)}static fromJson(n,r){return new Bo().fromJson(n,r)}static fromJsonString(n,r){return new Bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Bo,n,r)}};S(Bo,"runtime",C),S(Bo,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),S(Bo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(qs)},{no:2,name:"root_nodes",kind:"message",T:bc,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:bc,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:Ip},{no:6,name:"custom_static",kind:"message",T:Vv},{no:7,name:"directives",kind:"message",T:$v,repeated:!0},{no:8,name:"request_timeout_seconds",kind:"scalar",T:3},{no:9,name:"id",kind:"scalar",T:9},{no:10,name:"keys",kind:"message",T:Ga,repeated:!0},{no:11,name:"provides",kind:"message",T:Ga,repeated:!0},{no:12,name:"requires",kind:"message",T:Ga,repeated:!0},{no:13,name:"custom_events",kind:"message",T:_p},{no:14,name:"entity_interfaces",kind:"message",T:Sc,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:Sc,repeated:!0}]));var yp=Bo,Vo=class Vo extends Re{constructor(n){super();S(this,"name","");S(this,"sourceType",qa.OBJECT_FIELD);C.util.initPartial(n,this)}static fromBinary(n,r){return new Vo().fromBinary(n,r)}static fromJson(n,r){return new Vo().fromJson(n,r)}static fromJsonString(n,r){return new Vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Vo,n,r)}};S(Vo,"runtime",C),S(Vo,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),S(Vo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:C.getEnumType(qa)}]));var Tp=Vo,$o=class $o extends Re{constructor(n){super();S(this,"requiredAndScopes",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new $o().fromBinary(n,r)}static fromJson(n,r){return new $o().fromJson(n,r)}static fromJsonString(n,r){return new $o().fromJsonString(n,r)}static equals(n,r){return C.util.equals($o,n,r)}};S($o,"runtime",C),S($o,"typeName","wg.cosmo.node.v1.Scopes"),S($o,"fields",C.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Np=$o,jo=class jo extends Re{constructor(n){super();S(this,"requiresAuthentication",!1);S(this,"requiredOrScopes",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new jo().fromBinary(n,r)}static fromJson(n,r){return new jo().fromJson(n,r)}static fromJsonString(n,r){return new jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(jo,n,r)}};S(jo,"runtime",C),S(jo,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),S(jo,"fields",C.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Np,repeated:!0}]));var Ep=jo,Go=class Go extends Re{constructor(n){super();S(this,"typeName","");S(this,"fieldName","");S(this,"argumentsConfiguration",[]);S(this,"authorizationConfiguration");C.util.initPartial(n,this)}static fromBinary(n,r){return new Go().fromBinary(n,r)}static fromJson(n,r){return new Go().fromJson(n,r)}static fromJsonString(n,r){return new Go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Go,n,r)}};S(Go,"runtime",C),S(Go,"typeName","wg.cosmo.node.v1.FieldConfiguration"),S(Go,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:Tp,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Ep}]));var gp=Go,qo=class qo extends Re{constructor(n){super();S(this,"typeName","");S(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new qo().fromBinary(n,r)}static fromJson(n,r){return new qo().fromJson(n,r)}static fromJsonString(n,r){return new qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(qo,n,r)}};S(qo,"runtime",C),S(qo,"typeName","wg.cosmo.node.v1.TypeConfiguration"),S(qo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Cv=qo,Ko=class Ko extends Re{constructor(n){super();S(this,"typeName","");S(this,"fieldNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ko().fromBinary(n,r)}static fromJson(n,r){return new Ko().fromJson(n,r)}static fromJsonString(n,r){return new Ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ko,n,r)}};S(Ko,"runtime",C),S(Ko,"typeName","wg.cosmo.node.v1.TypeField"),S(Ko,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0}]));var bc=Ko,Qo=class Qo extends Re{constructor(n){super();S(this,"typeName","");S(this,"fieldName","");S(this,"selectionSet","");S(this,"disableEntityResolver",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new Qo().fromBinary(n,r)}static fromJson(n,r){return new Qo().fromJson(n,r)}static fromJsonString(n,r){return new Qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qo,n,r)}};S(Qo,"runtime",C),S(Qo,"typeName","wg.cosmo.node.v1.RequiredField"),S(Qo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8}]));var Ga=Qo,Yo=class Yo extends Re{constructor(n){super();S(this,"interfaceTypeName","");S(this,"concreteTypeNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Yo().fromBinary(n,r)}static fromJson(n,r){return new Yo().fromJson(n,r)}static fromJsonString(n,r){return new Yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Yo,n,r)}};S(Yo,"runtime",C),S(Yo,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),S(Yo,"fields",C.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var Sc=Yo,Jo=class Jo extends Re{constructor(n){super();S(this,"url");S(this,"method",Ka.GET);S(this,"header",{});S(this,"body");S(this,"query",[]);S(this,"urlEncodeBody",!1);S(this,"mtls");S(this,"baseUrl");S(this,"path");S(this,"httpProxyUrl");C.util.initPartial(n,this)}static fromBinary(n,r){return new Jo().fromBinary(n,r)}static fromJson(n,r){return new Jo().fromJson(n,r)}static fromJsonString(n,r){return new Jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Jo,n,r)}};S(Jo,"runtime",C),S(Jo,"typeName","wg.cosmo.node.v1.FetchConfiguration"),S(Jo,"fields",C.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:hr},{no:2,name:"method",kind:"enum",T:C.getEnumType(Ka)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:Gv}},{no:4,name:"body",kind:"message",T:hr},{no:5,name:"query",kind:"message",T:jv,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:qv},{no:9,name:"base_url",kind:"message",T:hr},{no:10,name:"path",kind:"message",T:hr},{no:11,name:"http_proxy_url",kind:"message",T:hr,opt:!0}]));var Bv=Jo,zo=class zo extends Re{constructor(n){super();S(this,"statusCode",Xt.zero);S(this,"typeName","");S(this,"injectStatusCodeIntoBody",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new zo().fromBinary(n,r)}static fromJson(n,r){return new zo().fromJson(n,r)}static fromJsonString(n,r){return new zo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(zo,n,r)}};S(zo,"runtime",C),S(zo,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),S(zo,"fields",C.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var jP=zo,Wo=class Wo extends Re{constructor(n){super();S(this,"fetch");S(this,"subscription");S(this,"federation");S(this,"upstreamSchema");S(this,"customScalarTypeFields",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Wo().fromBinary(n,r)}static fromJson(n,r){return new Wo().fromJson(n,r)}static fromJsonString(n,r){return new Wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Wo,n,r)}};S(Wo,"runtime",C),S(Wo,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),S(Wo,"fields",C.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:Bv},{no:2,name:"subscription",kind:"message",T:Kv},{no:3,name:"federation",kind:"message",T:Qv},{no:4,name:"upstream_schema",kind:"message",T:bp},{no:6,name:"custom_scalar_type_fields",kind:"message",T:Yv,repeated:!0}]));var Ip=Wo,Ho=class Ho extends Re{constructor(n){super();S(this,"type",cs.PUBLISH);S(this,"typeName","");S(this,"fieldName","");S(this,"topic","");S(this,"sourceId","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ho().fromBinary(n,r)}static fromJson(n,r){return new Ho().fromJson(n,r)}static fromJsonString(n,r){return new Ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ho,n,r)}};S(Ho,"runtime",C),S(Ho,"typeName","wg.cosmo.node.v1.EventConfiguration"),S(Ho,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(cs)},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"field_name",kind:"scalar",T:9},{no:4,name:"topic",kind:"scalar",T:9},{no:5,name:"source_id",kind:"scalar",T:9}]));var vp=Ho,Xo=class Xo extends Re{constructor(n){super();S(this,"events",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Xo().fromBinary(n,r)}static fromJson(n,r){return new Xo().fromJson(n,r)}static fromJsonString(n,r){return new Xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Xo,n,r)}};S(Xo,"runtime",C),S(Xo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Events"),S(Xo,"fields",C.util.newFieldList(()=>[{no:1,name:"events",kind:"message",T:vp,repeated:!0}]));var _p=Xo,Zo=class Zo extends Re{constructor(n){super();S(this,"data");C.util.initPartial(n,this)}static fromBinary(n,r){return new Zo().fromBinary(n,r)}static fromJson(n,r){return new Zo().fromJson(n,r)}static fromJsonString(n,r){return new Zo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Zo,n,r)}};S(Zo,"runtime",C),S(Zo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),S(Zo,"fields",C.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:hr}]));var Vv=Zo,es=class es extends Re{constructor(n){super();S(this,"kind",Ks.STATIC_CONFIGURATION_VARIABLE);S(this,"staticVariableContent","");S(this,"environmentVariableName","");S(this,"environmentVariableDefaultValue","");S(this,"placeholderVariableName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new es().fromBinary(n,r)}static fromJson(n,r){return new es().fromJson(n,r)}static fromJsonString(n,r){return new es().fromJsonString(n,r)}static equals(n,r){return C.util.equals(es,n,r)}};S(es,"runtime",C),S(es,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),S(es,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Ks)},{no:2,name:"static_variable_content",kind:"scalar",T:9},{no:3,name:"environment_variable_name",kind:"scalar",T:9},{no:4,name:"environment_variable_default_value",kind:"scalar",T:9},{no:5,name:"placeholder_variable_name",kind:"scalar",T:9}]));var hr=es,ts=class ts extends Re{constructor(n){super();S(this,"directiveName","");S(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ts().fromBinary(n,r)}static fromJson(n,r){return new ts().fromJson(n,r)}static fromJsonString(n,r){return new ts().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ts,n,r)}};S(ts,"runtime",C),S(ts,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),S(ts,"fields",C.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var $v=ts,ns=class ns extends Re{constructor(n){super();S(this,"name","");S(this,"value","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ns().fromBinary(n,r)}static fromJson(n,r){return new ns().fromJson(n,r)}static fromJsonString(n,r){return new ns().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ns,n,r)}};S(ns,"runtime",C),S(ns,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),S(ns,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var jv=ns,rs=class rs extends Re{constructor(n){super();S(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new rs().fromBinary(n,r)}static fromJson(n,r){return new rs().fromJson(n,r)}static fromJsonString(n,r){return new rs().fromJsonString(n,r)}static equals(n,r){return C.util.equals(rs,n,r)}};S(rs,"runtime",C),S(rs,"typeName","wg.cosmo.node.v1.HTTPHeader"),S(rs,"fields",C.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:hr,repeated:!0}]));var Gv=rs,is=class is extends Re{constructor(n){super();S(this,"key");S(this,"cert");S(this,"insecureSkipVerify",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new is().fromBinary(n,r)}static fromJson(n,r){return new is().fromJson(n,r)}static fromJsonString(n,r){return new is().fromJsonString(n,r)}static equals(n,r){return C.util.equals(is,n,r)}};S(is,"runtime",C),S(is,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),S(is,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:hr},{no:2,name:"cert",kind:"message",T:hr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var qv=is,os=class os extends Re{constructor(n){super();S(this,"enabled",!1);S(this,"url");S(this,"useSSE");S(this,"protocol");C.util.initPartial(n,this)}static fromBinary(n,r){return new os().fromBinary(n,r)}static fromJson(n,r){return new os().fromJson(n,r)}static fromJsonString(n,r){return new os().fromJsonString(n,r)}static equals(n,r){return C.util.equals(os,n,r)}};S(os,"runtime",C),S(os,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),S(os,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:hr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:C.getEnumType(Oo),opt:!0}]));var Kv=os,ss=class ss extends Re{constructor(n){super();S(this,"enabled",!1);S(this,"serviceSdl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ss().fromBinary(n,r)}static fromJson(n,r){return new ss().fromJson(n,r)}static fromJsonString(n,r){return new ss().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ss,n,r)}};S(ss,"runtime",C),S(ss,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),S(ss,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var Qv=ss,as=class as extends Re{constructor(n){super();S(this,"key","");C.util.initPartial(n,this)}static fromBinary(n,r){return new as().fromBinary(n,r)}static fromJson(n,r){return new as().fromJson(n,r)}static fromJsonString(n,r){return new as().fromJsonString(n,r)}static equals(n,r){return C.util.equals(as,n,r)}};S(as,"runtime",C),S(as,"typeName","wg.cosmo.node.v1.InternedString"),S(as,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var bp=as,us=class us extends Re{constructor(n){super();S(this,"typeName","");S(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new us().fromBinary(n,r)}static fromJson(n,r){return new us().fromJson(n,r)}static fromJsonString(n,r){return new us().fromJsonString(n,r)}static equals(n,r){return C.util.equals(us,n,r)}};S(us,"runtime",C),S(us,"typeName","wg.cosmo.node.v1.SingleTypeField"),S(us,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var Yv=us;p();m();f();function Jv(e,t,n){if(e)for(let r of e)t.push(new Ga(w({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{})))}function Mz(e){switch(e){case"publish":return cs.PUBLISH;case"request":return cs.REQUEST;case"subscribe":return cs.SUBSCRIBE}throw new Error(`Unknown event type ${e}`)}function GP(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:[],requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,o=[...r.fieldNames],s=new bc({typeName:i,fieldNames:o});if(r.isRootNode?t.rootNodes.push(s):t.childNodes.push(s),r.entityInterfaceConcreteTypeNames){let a=new Sc({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(a):t.entityInterfaces.push(a)}Jv(r.keys,t.keys,i),Jv(r.provides,t.provides,i),Jv(r.requires,t.requires,i);for(let a of(n=r.events)!=null?n:[])t.events.push(new vp({type:Mz(a.type),typeName:i,fieldName:a.fieldName,topic:a.topic}))}return t}function qP(e){var n;let t=[];for(let r of e){let i=r.argumentNames.map(u=>new Tp({name:u,sourceType:qa.FIELD_ARGUMENT})),o=new gp({argumentsConfiguration:i,fieldName:r.fieldName,typeName:r.typeName}),s=((n=r.requiredScopes)==null?void 0:n.map(u=>new Np({requiredAndScopes:u})))||[],a=s.length>0;(r.requiresAuthentication||a)&&(o.authorizationConfiguration=new Ep({requiresAuthentication:r.requiresAuthentication||a,requiredOrScopes:s})),t.push(o)}return t}p();m();f();function zv(e){return new Error(`Normalization failed to return a ${e}.`)}var Uz=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new bp({key:n})},Cz=e=>{switch(e){case"ws":return Oo.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return Oo.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return Oo.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}throw new Error(`Unsupported subscription protocol '${e}'`)},KP=function(e){var n;let t=new hp({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let r of e.subgraphs){if(!r.configurationDataMap)throw zv("ConfigurationDataMap");if(!r.schema)throw zv("GraphQLSchema");let i=Uz(t,sP(Ql(r.schema))),{childNodes:o,entityInterfaces:s,events:a,interfaceObjects:u,keys:c,provides:l,requires:d,rootNodes:h}=GP(r.configurationDataMap),N=Cz(r.subscriptionProtocol),E,D,A;if(a.length>0){E=qs.PUBSUB,A=new _p({events:a});let Y=H=>["Query","Mutation","Subscription"].includes(H.typeName),J=0,Z=0;for(;J({id:r.id,name:r.name,routingUrl:r.url}))})};ie();function QP(e){let t;try{t=oi(e.schema)}catch(n){throw new Error(`could not parse schema for Graph ${e.name}: ${n}`)}return{definitions:t,name:e.name,url:e.url}}function Bz(e){let{federationResult:t,errors:n}=(0,Wv.federateSubgraphs)(e.map(QP));if(n&&n.length>0)throw new Error(`could not federate schema: ${n.map(r=>r.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:$e(t.federatedGraphAST)}}function Vz(e){let t=(0,Wv.federateSubgraphs)(e.map(QP));if(t.errors&&t.errors.length>0)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);if(t.federationResult===void 0)throw new Error("could not federate subgraphs");return KP({fieldConfigurations:t.federationResult.fieldConfigurations,federatedSDL:Yl(t.federationResult.federatedGraphSchema),schemaVersionId:"",subgraphs:e.map((r,i)=>{var u,c;let o=t.federationResult.subgraphConfigBySubgraphName.get(r.name),s=o==null?void 0:o.schema,a=o==null?void 0:o.configurationDataMap;return{id:`${i}`,name:r.name,url:Iv(r.url),sdl:r.schema,subscriptionUrl:Iv((u=r.subscription_url)!=null?u:r.url),subscriptionProtocol:(c=r.subscription_protocol)!=null?c:"ws",schema:s,configurationDataMap:a}})}).toJsonString()}return ae($z);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition/src/index.ts b/composition/src/index.ts index d086a5db1d..00f650d495 100644 --- a/composition/src/index.ts +++ b/composition/src/index.ts @@ -14,4 +14,5 @@ export * from './schema-building/type-merging'; export * from './schema-building/utils'; export * from './subgraph/subgraph'; export * from './utils/utils'; +export * from './utils/constants'; export * from './warnings/warnings'; diff --git a/composition/src/utils/constants.ts b/composition/src/utils/constants.ts index 5ca15ba3fb..101c0da162 100644 --- a/composition/src/utils/constants.ts +++ b/composition/src/utils/constants.ts @@ -510,3 +510,27 @@ export const SCOPE_SCALAR_DEFINITION: MutableScalarNode = { export const MAXIMUM_TYPE_NESTING = 30; export const INHERITABLE_DIRECTIVE_NAMES = [EXTERNAL, SHAREABLE]; + +export const baseDirectives = ` + directive @deprecated(reason: String = "No longer supported") on ARGUMENT_DEFINITION | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION + directive @extends on INTERFACE | OBJECT + directive @external on FIELD_DEFINITION | OBJECT + directive @eventsPublish(topic: String!, sourceID: String) on FIELD_DEFINITION + directive @eventsRequest(topic: String!, sourceID: String) on FIELD_DEFINITION + directive @eventsSubscribe(topic: String!, sourceID: String) on FIELD_DEFINITION + directive @key(fields: openfed__FieldSet!, resolvable: Boolean = true) repeatable on INTERFACE | OBJECT + directive @provides(fields: openfed__FieldSet!) on FIELD_DEFINITION + directive @requires(fields: openfed__FieldSet!) on FIELD_DEFINITION + directive @specifiedBy(url: String!) on SCALAR + directive @tag(name: String!) repeatable on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION + directive @authenticated on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR + directive @composeDirective(name: String!) repeatable on SCHEMA + directive @inaccessible on ARGUMENT_DEFINITION | ENUM | ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | INPUT_OBJECT | INTERFACE | OBJECT | SCALAR | UNION + directive @interfaceObject on OBJECT + directive @link(url: String!, as: String, for: String, import: [String]) repeatable on SCHEMA + directive @override(from: String!) on FIELD_DEFINITION + directive @requiresScopes(scopes: [[openfed__Scope!]!]!) on ENUM | FIELD_DEFINITION | INTERFACE | OBJECT | SCALAR + directive @shareable on FIELD_DEFINITION | OBJECT + scalar openfed__FieldSet + scalar openfed__Scope +`; diff --git a/connect/src/wg/cosmo/platform/v1/platform-PlatformService_connectquery.ts b/connect/src/wg/cosmo/platform/v1/platform-PlatformService_connectquery.ts index 29ba8c5e95..79a383cd8f 100644 --- a/connect/src/wg/cosmo/platform/v1/platform-PlatformService_connectquery.ts +++ b/connect/src/wg/cosmo/platform/v1/platform-PlatformService_connectquery.ts @@ -5,7 +5,7 @@ /* eslint-disable */ // @ts-nocheck -import { AcceptOrDeclineInvitationRequest, AcceptOrDeclineInvitationResponse, AddReadmeRequest, AddReadmeResponse, AddSubgraphMemberRequest, AddSubgraphMemberResponse, CheckFederatedGraphRequest, CheckFederatedGraphResponse, CheckSubgraphSchemaRequest, CheckSubgraphSchemaResponse, CreateAPIKeyRequest, CreateAPIKeyResponse, CreateBillingPortalSessionRequest, CreateBillingPortalSessionResponse, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreateDiscussionRequest, CreateDiscussionResponse, CreateFederatedGraphRequest, CreateFederatedGraphResponse, CreateFederatedGraphTokenRequest, CreateFederatedGraphTokenResponse, CreateFederatedSubgraphRequest, CreateFederatedSubgraphResponse, CreateIntegrationRequest, CreateIntegrationResponse, CreateNamespaceRequest, CreateNamespaceResponse, CreateOIDCProviderRequest, CreateOIDCProviderResponse, CreateOperationIgnoreAllOverrideRequest, CreateOperationIgnoreAllOverrideResponse, CreateOperationOverridesRequest, CreateOperationOverridesResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateOrganizationWebhookConfigRequest, CreateOrganizationWebhookConfigResponse, DeleteAPIKeyRequest, DeleteAPIKeyResponse, DeleteDiscussionCommentRequest, DeleteDiscussionCommentResponse, DeleteFederatedGraphRequest, DeleteFederatedGraphResponse, DeleteFederatedSubgraphRequest, DeleteFederatedSubgraphResponse, DeleteIntegrationRequest, DeleteIntegrationResponse, DeleteNamespaceRequest, DeleteNamespaceResponse, DeleteOIDCProviderRequest, DeleteOIDCProviderResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteOrganizationWebhookConfigRequest, DeleteOrganizationWebhookConfigResponse, DeleteRouterTokenRequest, DeleteRouterTokenResponse, FixSubgraphSchemaRequest, FixSubgraphSchemaResponse, ForceCheckSuccessRequest, ForceCheckSuccessResponse, GenerateRouterTokenRequest, GenerateRouterTokenResponse, GetAllDiscussionsRequest, GetAllDiscussionsResponse, GetAllOverridesRequest, GetAllOverridesResponse, GetAnalyticsViewRequest, GetAnalyticsViewResponse, GetAPIKeysRequest, GetAPIKeysResponse, GetAuditLogsRequest, GetAuditLogsResponse, GetBillingPlansRequest, GetBillingPlansResponse, GetChangelogBySchemaVersionRequest, GetChangelogBySchemaVersionResponse, GetCheckOperationsRequest, GetCheckOperationsResponse, GetChecksByFederatedGraphNameRequest, GetChecksByFederatedGraphNameResponse, GetCheckSummaryRequest, GetCheckSummaryResponse, GetClientsRequest, GetClientsResponse, GetCompositionDetailsRequest, GetCompositionDetailsResponse, GetCompositionsRequest, GetCompositionsResponse, GetConfigRequest, GetDashboardAnalyticsViewRequest, GetDashboardAnalyticsViewResponse, GetDiscussionRequest, GetDiscussionResponse, GetDiscussionSchemasRequest, GetDiscussionSchemasResponse, GetFederatedGraphByNameRequest, GetFederatedGraphByNameResponse, GetFederatedGraphChangelogRequest, GetFederatedGraphChangelogResponse, GetFederatedGraphsBySubgraphLabelsRequest, GetFederatedGraphsBySubgraphLabelsResponse, GetFederatedGraphSDLByNameRequest, GetFederatedGraphSDLByNameResponse, GetFederatedGraphsRequest, GetFederatedGraphsResponse, GetFieldUsageRequest, GetFieldUsageResponse, GetGraphMetricsRequest, GetGraphMetricsResponse, GetInvitationsRequest, GetInvitationsResponse, GetLatestSubgraphSDLRequest, GetLatestSubgraphSDLResponse, GetMetricsErrorRateRequest, GetMetricsErrorRateResponse, GetNamespacesRequest, GetNamespacesResponse, GetOIDCProviderRequest, GetOIDCProviderResponse, GetOperationContentRequest, GetOperationContentResponse, GetOperationOverridesRequest, GetOperationOverridesResponse, GetOrganizationIntegrationsRequest, GetOrganizationIntegrationsResponse, GetOrganizationMembersRequest, GetOrganizationMembersResponse, GetOrganizationRequestsCountRequest, GetOrganizationRequestsCountResponse, GetOrganizationWebhookConfigsRequest, GetOrganizationWebhookConfigsResponse, GetOrganizationWebhookMetaRequest, GetOrganizationWebhookMetaResponse, GetPersistedOperationsRequest, GetPersistedOperationsResponse, GetRoutersRequest, GetRoutersResponse, GetRouterTokensRequest, GetRouterTokensResponse, GetSdlBySchemaVersionRequest, GetSdlBySchemaVersionResponse, GetSubgraphByNameRequest, GetSubgraphByNameResponse, GetSubgraphMembersRequest, GetSubgraphMembersResponse, GetSubgraphMetricsErrorRateRequest, GetSubgraphMetricsErrorRateResponse, GetSubgraphMetricsRequest, GetSubgraphMetricsResponse, GetSubgraphSDLFromLatestCompositionRequest, GetSubgraphSDLFromLatestCompositionResponse, GetSubgraphsRequest, GetSubgraphsResponse, GetTraceRequest, GetTraceResponse, GetUserAccessibleResourcesRequest, GetUserAccessibleResourcesResponse, InviteUserRequest, InviteUserResponse, IsGitHubAppInstalledRequest, IsGitHubAppInstalledResponse, LeaveOrganizationRequest, LeaveOrganizationResponse, MigrateFromApolloRequest, MigrateFromApolloResponse, MoveGraphRequest, MoveGraphResponse, PublishFederatedSubgraphRequest, PublishFederatedSubgraphResponse, PublishPersistedOperationsRequest, PublishPersistedOperationsResponse, RemoveInvitationRequest, RemoveInvitationResponse, RemoveOperationIgnoreAllOverrideRequest, RemoveOperationIgnoreAllOverrideResponse, RemoveOperationOverridesRequest, RemoveOperationOverridesResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, RemoveSubgraphMemberRequest, RemoveSubgraphMemberResponse, RenameNamespaceRequest, RenameNamespaceResponse, ReplyToDiscussionRequest, ReplyToDiscussionResponse, SetDiscussionResolutionRequest, SetDiscussionResolutionResponse, UpdateAISettingsRequest, UpdateAISettingsResponse, UpdateDiscussionCommentRequest, UpdateDiscussionCommentResponse, UpdateFederatedGraphRequest, UpdateFederatedGraphResponse, UpdateIntegrationConfigRequest, UpdateIntegrationConfigResponse, UpdateOrganizationDetailsRequest, UpdateOrganizationDetailsResponse, UpdateOrganizationWebhookConfigRequest, UpdateOrganizationWebhookConfigResponse, UpdateOrgMemberRoleRequest, UpdateOrgMemberRoleResponse, UpdateRBACSettingsRequest, UpdateRBACSettingsResponse, UpdateSubgraphRequest, UpdateSubgraphResponse, UpgradePlanRequest, UpgradePlanResponse, WhoAmIRequest, WhoAmIResponse } from "./platform_pb.js"; +import { AcceptOrDeclineInvitationRequest, AcceptOrDeclineInvitationResponse, AddReadmeRequest, AddReadmeResponse, AddSubgraphMemberRequest, AddSubgraphMemberResponse, CheckFederatedGraphRequest, CheckFederatedGraphResponse, CheckSubgraphSchemaRequest, CheckSubgraphSchemaResponse, ConfigureNamespaceLintConfigRequest, ConfigureNamespaceLintConfigResponse, CreateAPIKeyRequest, CreateAPIKeyResponse, CreateBillingPortalSessionRequest, CreateBillingPortalSessionResponse, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreateDiscussionRequest, CreateDiscussionResponse, CreateFederatedGraphRequest, CreateFederatedGraphResponse, CreateFederatedGraphTokenRequest, CreateFederatedGraphTokenResponse, CreateFederatedSubgraphRequest, CreateFederatedSubgraphResponse, CreateIntegrationRequest, CreateIntegrationResponse, CreateNamespaceRequest, CreateNamespaceResponse, CreateOIDCProviderRequest, CreateOIDCProviderResponse, CreateOperationIgnoreAllOverrideRequest, CreateOperationIgnoreAllOverrideResponse, CreateOperationOverridesRequest, CreateOperationOverridesResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateOrganizationWebhookConfigRequest, CreateOrganizationWebhookConfigResponse, DeleteAPIKeyRequest, DeleteAPIKeyResponse, DeleteDiscussionCommentRequest, DeleteDiscussionCommentResponse, DeleteFederatedGraphRequest, DeleteFederatedGraphResponse, DeleteFederatedSubgraphRequest, DeleteFederatedSubgraphResponse, DeleteIntegrationRequest, DeleteIntegrationResponse, DeleteNamespaceRequest, DeleteNamespaceResponse, DeleteOIDCProviderRequest, DeleteOIDCProviderResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteOrganizationWebhookConfigRequest, DeleteOrganizationWebhookConfigResponse, DeleteRouterTokenRequest, DeleteRouterTokenResponse, EnableLintingForTheNamespaceRequest, EnableLintingForTheNamespaceResponse, FixSubgraphSchemaRequest, FixSubgraphSchemaResponse, ForceCheckSuccessRequest, ForceCheckSuccessResponse, GenerateRouterTokenRequest, GenerateRouterTokenResponse, GetAllDiscussionsRequest, GetAllDiscussionsResponse, GetAllOverridesRequest, GetAllOverridesResponse, GetAnalyticsViewRequest, GetAnalyticsViewResponse, GetAPIKeysRequest, GetAPIKeysResponse, GetAuditLogsRequest, GetAuditLogsResponse, GetBillingPlansRequest, GetBillingPlansResponse, GetChangelogBySchemaVersionRequest, GetChangelogBySchemaVersionResponse, GetCheckOperationsRequest, GetCheckOperationsResponse, GetChecksByFederatedGraphNameRequest, GetChecksByFederatedGraphNameResponse, GetCheckSummaryRequest, GetCheckSummaryResponse, GetClientsRequest, GetClientsResponse, GetCompositionDetailsRequest, GetCompositionDetailsResponse, GetCompositionsRequest, GetCompositionsResponse, GetConfigRequest, GetDashboardAnalyticsViewRequest, GetDashboardAnalyticsViewResponse, GetDiscussionRequest, GetDiscussionResponse, GetDiscussionSchemasRequest, GetDiscussionSchemasResponse, GetFederatedGraphByNameRequest, GetFederatedGraphByNameResponse, GetFederatedGraphChangelogRequest, GetFederatedGraphChangelogResponse, GetFederatedGraphsBySubgraphLabelsRequest, GetFederatedGraphsBySubgraphLabelsResponse, GetFederatedGraphSDLByNameRequest, GetFederatedGraphSDLByNameResponse, GetFederatedGraphsRequest, GetFederatedGraphsResponse, GetFieldUsageRequest, GetFieldUsageResponse, GetGraphMetricsRequest, GetGraphMetricsResponse, GetInvitationsRequest, GetInvitationsResponse, GetLatestSubgraphSDLRequest, GetLatestSubgraphSDLResponse, GetMetricsErrorRateRequest, GetMetricsErrorRateResponse, GetNamespaceLintConfigRequest, GetNamespaceLintConfigResponse, GetNamespacesRequest, GetNamespacesResponse, GetOIDCProviderRequest, GetOIDCProviderResponse, GetOperationContentRequest, GetOperationContentResponse, GetOperationOverridesRequest, GetOperationOverridesResponse, GetOrganizationIntegrationsRequest, GetOrganizationIntegrationsResponse, GetOrganizationMembersRequest, GetOrganizationMembersResponse, GetOrganizationRequestsCountRequest, GetOrganizationRequestsCountResponse, GetOrganizationWebhookConfigsRequest, GetOrganizationWebhookConfigsResponse, GetOrganizationWebhookMetaRequest, GetOrganizationWebhookMetaResponse, GetPersistedOperationsRequest, GetPersistedOperationsResponse, GetRoutersRequest, GetRoutersResponse, GetRouterTokensRequest, GetRouterTokensResponse, GetSdlBySchemaVersionRequest, GetSdlBySchemaVersionResponse, GetSubgraphByNameRequest, GetSubgraphByNameResponse, GetSubgraphMembersRequest, GetSubgraphMembersResponse, GetSubgraphMetricsErrorRateRequest, GetSubgraphMetricsErrorRateResponse, GetSubgraphMetricsRequest, GetSubgraphMetricsResponse, GetSubgraphSDLFromLatestCompositionRequest, GetSubgraphSDLFromLatestCompositionResponse, GetSubgraphsRequest, GetSubgraphsResponse, GetTraceRequest, GetTraceResponse, GetUserAccessibleResourcesRequest, GetUserAccessibleResourcesResponse, InviteUserRequest, InviteUserResponse, IsGitHubAppInstalledRequest, IsGitHubAppInstalledResponse, LeaveOrganizationRequest, LeaveOrganizationResponse, MigrateFromApolloRequest, MigrateFromApolloResponse, MoveGraphRequest, MoveGraphResponse, PublishFederatedSubgraphRequest, PublishFederatedSubgraphResponse, PublishPersistedOperationsRequest, PublishPersistedOperationsResponse, RemoveInvitationRequest, RemoveInvitationResponse, RemoveOperationIgnoreAllOverrideRequest, RemoveOperationIgnoreAllOverrideResponse, RemoveOperationOverridesRequest, RemoveOperationOverridesResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, RemoveSubgraphMemberRequest, RemoveSubgraphMemberResponse, RenameNamespaceRequest, RenameNamespaceResponse, ReplyToDiscussionRequest, ReplyToDiscussionResponse, SetDiscussionResolutionRequest, SetDiscussionResolutionResponse, UpdateAISettingsRequest, UpdateAISettingsResponse, UpdateDiscussionCommentRequest, UpdateDiscussionCommentResponse, UpdateFederatedGraphRequest, UpdateFederatedGraphResponse, UpdateIntegrationConfigRequest, UpdateIntegrationConfigResponse, UpdateOrganizationDetailsRequest, UpdateOrganizationDetailsResponse, UpdateOrganizationWebhookConfigRequest, UpdateOrganizationWebhookConfigResponse, UpdateOrgMemberRoleRequest, UpdateOrgMemberRoleResponse, UpdateRBACSettingsRequest, UpdateRBACSettingsResponse, UpdateSubgraphRequest, UpdateSubgraphResponse, UpgradePlanRequest, UpgradePlanResponse, WhoAmIRequest, WhoAmIResponse } from "./platform_pb.js"; import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf"; import { GetConfigResponse } from "../../node/v1/node_pb.js"; import { createQueryService, createUnaryHooks, UnaryFunctionsWithHooks } from "@connectrpc/connect-query"; @@ -1128,6 +1128,39 @@ export const PlatformService = { O: CreateOrganizationResponse, kind: MethodKind.Unary, }, + /** + * EnableLintingForTheNamespace enables the lint check for the namespace passed. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.EnableLintingForTheNamespace + */ + enableLintingForTheNamespace: { + name: "EnableLintingForTheNamespace", + I: EnableLintingForTheNamespaceRequest, + O: EnableLintingForTheNamespaceResponse, + kind: MethodKind.Unary, + }, + /** + * ConfigureNamespaceLintConfig configures the lint config of the organization. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.ConfigureNamespaceLintConfig + */ + configureNamespaceLintConfig: { + name: "ConfigureNamespaceLintConfig", + I: ConfigureNamespaceLintConfigRequest, + O: ConfigureNamespaceLintConfigResponse, + kind: MethodKind.Unary, + }, + /** + * GetNamespaceLintConfig returns the lint config of the organization. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetNamespaceLintConfig + */ + getNamespaceLintConfig: { + name: "GetNamespaceLintConfig", + I: GetNamespaceLintConfigRequest, + O: GetNamespaceLintConfigResponse, + kind: MethodKind.Unary, + }, /** * * Billing @@ -1871,6 +1904,27 @@ export const getOrganizationRequestsCount: UnaryFunctionsWithHooks = { ...$queryService.createOrganization, ...createUnaryHooks($queryService.createOrganization)}; +/** + * EnableLintingForTheNamespace enables the lint check for the namespace passed. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.EnableLintingForTheNamespace + */ +export const enableLintingForTheNamespace: UnaryFunctionsWithHooks = { ...$queryService.enableLintingForTheNamespace, ...createUnaryHooks($queryService.enableLintingForTheNamespace)}; + +/** + * ConfigureNamespaceLintConfig configures the lint config of the organization. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.ConfigureNamespaceLintConfig + */ +export const configureNamespaceLintConfig: UnaryFunctionsWithHooks = { ...$queryService.configureNamespaceLintConfig, ...createUnaryHooks($queryService.configureNamespaceLintConfig)}; + +/** + * GetNamespaceLintConfig returns the lint config of the organization. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetNamespaceLintConfig + */ +export const getNamespaceLintConfig: UnaryFunctionsWithHooks = { ...$queryService.getNamespaceLintConfig, ...createUnaryHooks($queryService.getNamespaceLintConfig)}; + /** * * Billing diff --git a/connect/src/wg/cosmo/platform/v1/platform_connect.ts b/connect/src/wg/cosmo/platform/v1/platform_connect.ts index ef7f71cec5..add51d5700 100644 --- a/connect/src/wg/cosmo/platform/v1/platform_connect.ts +++ b/connect/src/wg/cosmo/platform/v1/platform_connect.ts @@ -5,7 +5,7 @@ /* eslint-disable */ // @ts-nocheck -import { AcceptOrDeclineInvitationRequest, AcceptOrDeclineInvitationResponse, AddReadmeRequest, AddReadmeResponse, AddSubgraphMemberRequest, AddSubgraphMemberResponse, CheckFederatedGraphRequest, CheckFederatedGraphResponse, CheckSubgraphSchemaRequest, CheckSubgraphSchemaResponse, CreateAPIKeyRequest, CreateAPIKeyResponse, CreateBillingPortalSessionRequest, CreateBillingPortalSessionResponse, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreateDiscussionRequest, CreateDiscussionResponse, CreateFederatedGraphRequest, CreateFederatedGraphResponse, CreateFederatedGraphTokenRequest, CreateFederatedGraphTokenResponse, CreateFederatedSubgraphRequest, CreateFederatedSubgraphResponse, CreateIntegrationRequest, CreateIntegrationResponse, CreateNamespaceRequest, CreateNamespaceResponse, CreateOIDCProviderRequest, CreateOIDCProviderResponse, CreateOperationIgnoreAllOverrideRequest, CreateOperationIgnoreAllOverrideResponse, CreateOperationOverridesRequest, CreateOperationOverridesResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateOrganizationWebhookConfigRequest, CreateOrganizationWebhookConfigResponse, DeleteAPIKeyRequest, DeleteAPIKeyResponse, DeleteDiscussionCommentRequest, DeleteDiscussionCommentResponse, DeleteFederatedGraphRequest, DeleteFederatedGraphResponse, DeleteFederatedSubgraphRequest, DeleteFederatedSubgraphResponse, DeleteIntegrationRequest, DeleteIntegrationResponse, DeleteNamespaceRequest, DeleteNamespaceResponse, DeleteOIDCProviderRequest, DeleteOIDCProviderResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteOrganizationWebhookConfigRequest, DeleteOrganizationWebhookConfigResponse, DeleteRouterTokenRequest, DeleteRouterTokenResponse, FixSubgraphSchemaRequest, FixSubgraphSchemaResponse, ForceCheckSuccessRequest, ForceCheckSuccessResponse, GenerateRouterTokenRequest, GenerateRouterTokenResponse, GetAllDiscussionsRequest, GetAllDiscussionsResponse, GetAllOverridesRequest, GetAllOverridesResponse, GetAnalyticsViewRequest, GetAnalyticsViewResponse, GetAPIKeysRequest, GetAPIKeysResponse, GetAuditLogsRequest, GetAuditLogsResponse, GetBillingPlansRequest, GetBillingPlansResponse, GetChangelogBySchemaVersionRequest, GetChangelogBySchemaVersionResponse, GetCheckOperationsRequest, GetCheckOperationsResponse, GetChecksByFederatedGraphNameRequest, GetChecksByFederatedGraphNameResponse, GetCheckSummaryRequest, GetCheckSummaryResponse, GetClientsRequest, GetClientsResponse, GetCompositionDetailsRequest, GetCompositionDetailsResponse, GetCompositionsRequest, GetCompositionsResponse, GetConfigRequest, GetDashboardAnalyticsViewRequest, GetDashboardAnalyticsViewResponse, GetDiscussionRequest, GetDiscussionResponse, GetDiscussionSchemasRequest, GetDiscussionSchemasResponse, GetFederatedGraphByNameRequest, GetFederatedGraphByNameResponse, GetFederatedGraphChangelogRequest, GetFederatedGraphChangelogResponse, GetFederatedGraphsBySubgraphLabelsRequest, GetFederatedGraphsBySubgraphLabelsResponse, GetFederatedGraphSDLByNameRequest, GetFederatedGraphSDLByNameResponse, GetFederatedGraphsRequest, GetFederatedGraphsResponse, GetFieldUsageRequest, GetFieldUsageResponse, GetGraphMetricsRequest, GetGraphMetricsResponse, GetInvitationsRequest, GetInvitationsResponse, GetLatestSubgraphSDLRequest, GetLatestSubgraphSDLResponse, GetMetricsErrorRateRequest, GetMetricsErrorRateResponse, GetNamespacesRequest, GetNamespacesResponse, GetOIDCProviderRequest, GetOIDCProviderResponse, GetOperationContentRequest, GetOperationContentResponse, GetOperationOverridesRequest, GetOperationOverridesResponse, GetOrganizationIntegrationsRequest, GetOrganizationIntegrationsResponse, GetOrganizationMembersRequest, GetOrganizationMembersResponse, GetOrganizationRequestsCountRequest, GetOrganizationRequestsCountResponse, GetOrganizationWebhookConfigsRequest, GetOrganizationWebhookConfigsResponse, GetOrganizationWebhookMetaRequest, GetOrganizationWebhookMetaResponse, GetPersistedOperationsRequest, GetPersistedOperationsResponse, GetRoutersRequest, GetRoutersResponse, GetRouterTokensRequest, GetRouterTokensResponse, GetSdlBySchemaVersionRequest, GetSdlBySchemaVersionResponse, GetSubgraphByNameRequest, GetSubgraphByNameResponse, GetSubgraphMembersRequest, GetSubgraphMembersResponse, GetSubgraphMetricsErrorRateRequest, GetSubgraphMetricsErrorRateResponse, GetSubgraphMetricsRequest, GetSubgraphMetricsResponse, GetSubgraphSDLFromLatestCompositionRequest, GetSubgraphSDLFromLatestCompositionResponse, GetSubgraphsRequest, GetSubgraphsResponse, GetTraceRequest, GetTraceResponse, GetUserAccessibleResourcesRequest, GetUserAccessibleResourcesResponse, InviteUserRequest, InviteUserResponse, IsGitHubAppInstalledRequest, IsGitHubAppInstalledResponse, LeaveOrganizationRequest, LeaveOrganizationResponse, MigrateFromApolloRequest, MigrateFromApolloResponse, MoveGraphRequest, MoveGraphResponse, PublishFederatedSubgraphRequest, PublishFederatedSubgraphResponse, PublishPersistedOperationsRequest, PublishPersistedOperationsResponse, RemoveInvitationRequest, RemoveInvitationResponse, RemoveOperationIgnoreAllOverrideRequest, RemoveOperationIgnoreAllOverrideResponse, RemoveOperationOverridesRequest, RemoveOperationOverridesResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, RemoveSubgraphMemberRequest, RemoveSubgraphMemberResponse, RenameNamespaceRequest, RenameNamespaceResponse, ReplyToDiscussionRequest, ReplyToDiscussionResponse, SetDiscussionResolutionRequest, SetDiscussionResolutionResponse, UpdateAISettingsRequest, UpdateAISettingsResponse, UpdateDiscussionCommentRequest, UpdateDiscussionCommentResponse, UpdateFederatedGraphRequest, UpdateFederatedGraphResponse, UpdateIntegrationConfigRequest, UpdateIntegrationConfigResponse, UpdateOrganizationDetailsRequest, UpdateOrganizationDetailsResponse, UpdateOrganizationWebhookConfigRequest, UpdateOrganizationWebhookConfigResponse, UpdateOrgMemberRoleRequest, UpdateOrgMemberRoleResponse, UpdateRBACSettingsRequest, UpdateRBACSettingsResponse, UpdateSubgraphRequest, UpdateSubgraphResponse, UpgradePlanRequest, UpgradePlanResponse, WhoAmIRequest, WhoAmIResponse } from "./platform_pb.js"; +import { AcceptOrDeclineInvitationRequest, AcceptOrDeclineInvitationResponse, AddReadmeRequest, AddReadmeResponse, AddSubgraphMemberRequest, AddSubgraphMemberResponse, CheckFederatedGraphRequest, CheckFederatedGraphResponse, CheckSubgraphSchemaRequest, CheckSubgraphSchemaResponse, ConfigureNamespaceLintConfigRequest, ConfigureNamespaceLintConfigResponse, CreateAPIKeyRequest, CreateAPIKeyResponse, CreateBillingPortalSessionRequest, CreateBillingPortalSessionResponse, CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, CreateDiscussionRequest, CreateDiscussionResponse, CreateFederatedGraphRequest, CreateFederatedGraphResponse, CreateFederatedGraphTokenRequest, CreateFederatedGraphTokenResponse, CreateFederatedSubgraphRequest, CreateFederatedSubgraphResponse, CreateIntegrationRequest, CreateIntegrationResponse, CreateNamespaceRequest, CreateNamespaceResponse, CreateOIDCProviderRequest, CreateOIDCProviderResponse, CreateOperationIgnoreAllOverrideRequest, CreateOperationIgnoreAllOverrideResponse, CreateOperationOverridesRequest, CreateOperationOverridesResponse, CreateOrganizationRequest, CreateOrganizationResponse, CreateOrganizationWebhookConfigRequest, CreateOrganizationWebhookConfigResponse, DeleteAPIKeyRequest, DeleteAPIKeyResponse, DeleteDiscussionCommentRequest, DeleteDiscussionCommentResponse, DeleteFederatedGraphRequest, DeleteFederatedGraphResponse, DeleteFederatedSubgraphRequest, DeleteFederatedSubgraphResponse, DeleteIntegrationRequest, DeleteIntegrationResponse, DeleteNamespaceRequest, DeleteNamespaceResponse, DeleteOIDCProviderRequest, DeleteOIDCProviderResponse, DeleteOrganizationRequest, DeleteOrganizationResponse, DeleteOrganizationWebhookConfigRequest, DeleteOrganizationWebhookConfigResponse, DeleteRouterTokenRequest, DeleteRouterTokenResponse, EnableLintingForTheNamespaceRequest, EnableLintingForTheNamespaceResponse, FixSubgraphSchemaRequest, FixSubgraphSchemaResponse, ForceCheckSuccessRequest, ForceCheckSuccessResponse, GenerateRouterTokenRequest, GenerateRouterTokenResponse, GetAllDiscussionsRequest, GetAllDiscussionsResponse, GetAllOverridesRequest, GetAllOverridesResponse, GetAnalyticsViewRequest, GetAnalyticsViewResponse, GetAPIKeysRequest, GetAPIKeysResponse, GetAuditLogsRequest, GetAuditLogsResponse, GetBillingPlansRequest, GetBillingPlansResponse, GetChangelogBySchemaVersionRequest, GetChangelogBySchemaVersionResponse, GetCheckOperationsRequest, GetCheckOperationsResponse, GetChecksByFederatedGraphNameRequest, GetChecksByFederatedGraphNameResponse, GetCheckSummaryRequest, GetCheckSummaryResponse, GetClientsRequest, GetClientsResponse, GetCompositionDetailsRequest, GetCompositionDetailsResponse, GetCompositionsRequest, GetCompositionsResponse, GetConfigRequest, GetDashboardAnalyticsViewRequest, GetDashboardAnalyticsViewResponse, GetDiscussionRequest, GetDiscussionResponse, GetDiscussionSchemasRequest, GetDiscussionSchemasResponse, GetFederatedGraphByNameRequest, GetFederatedGraphByNameResponse, GetFederatedGraphChangelogRequest, GetFederatedGraphChangelogResponse, GetFederatedGraphsBySubgraphLabelsRequest, GetFederatedGraphsBySubgraphLabelsResponse, GetFederatedGraphSDLByNameRequest, GetFederatedGraphSDLByNameResponse, GetFederatedGraphsRequest, GetFederatedGraphsResponse, GetFieldUsageRequest, GetFieldUsageResponse, GetGraphMetricsRequest, GetGraphMetricsResponse, GetInvitationsRequest, GetInvitationsResponse, GetLatestSubgraphSDLRequest, GetLatestSubgraphSDLResponse, GetMetricsErrorRateRequest, GetMetricsErrorRateResponse, GetNamespaceLintConfigRequest, GetNamespaceLintConfigResponse, GetNamespacesRequest, GetNamespacesResponse, GetOIDCProviderRequest, GetOIDCProviderResponse, GetOperationContentRequest, GetOperationContentResponse, GetOperationOverridesRequest, GetOperationOverridesResponse, GetOrganizationIntegrationsRequest, GetOrganizationIntegrationsResponse, GetOrganizationMembersRequest, GetOrganizationMembersResponse, GetOrganizationRequestsCountRequest, GetOrganizationRequestsCountResponse, GetOrganizationWebhookConfigsRequest, GetOrganizationWebhookConfigsResponse, GetOrganizationWebhookMetaRequest, GetOrganizationWebhookMetaResponse, GetPersistedOperationsRequest, GetPersistedOperationsResponse, GetRoutersRequest, GetRoutersResponse, GetRouterTokensRequest, GetRouterTokensResponse, GetSdlBySchemaVersionRequest, GetSdlBySchemaVersionResponse, GetSubgraphByNameRequest, GetSubgraphByNameResponse, GetSubgraphMembersRequest, GetSubgraphMembersResponse, GetSubgraphMetricsErrorRateRequest, GetSubgraphMetricsErrorRateResponse, GetSubgraphMetricsRequest, GetSubgraphMetricsResponse, GetSubgraphSDLFromLatestCompositionRequest, GetSubgraphSDLFromLatestCompositionResponse, GetSubgraphsRequest, GetSubgraphsResponse, GetTraceRequest, GetTraceResponse, GetUserAccessibleResourcesRequest, GetUserAccessibleResourcesResponse, InviteUserRequest, InviteUserResponse, IsGitHubAppInstalledRequest, IsGitHubAppInstalledResponse, LeaveOrganizationRequest, LeaveOrganizationResponse, MigrateFromApolloRequest, MigrateFromApolloResponse, MoveGraphRequest, MoveGraphResponse, PublishFederatedSubgraphRequest, PublishFederatedSubgraphResponse, PublishPersistedOperationsRequest, PublishPersistedOperationsResponse, RemoveInvitationRequest, RemoveInvitationResponse, RemoveOperationIgnoreAllOverrideRequest, RemoveOperationIgnoreAllOverrideResponse, RemoveOperationOverridesRequest, RemoveOperationOverridesResponse, RemoveOrganizationMemberRequest, RemoveOrganizationMemberResponse, RemoveSubgraphMemberRequest, RemoveSubgraphMemberResponse, RenameNamespaceRequest, RenameNamespaceResponse, ReplyToDiscussionRequest, ReplyToDiscussionResponse, SetDiscussionResolutionRequest, SetDiscussionResolutionResponse, UpdateAISettingsRequest, UpdateAISettingsResponse, UpdateDiscussionCommentRequest, UpdateDiscussionCommentResponse, UpdateFederatedGraphRequest, UpdateFederatedGraphResponse, UpdateIntegrationConfigRequest, UpdateIntegrationConfigResponse, UpdateOrganizationDetailsRequest, UpdateOrganizationDetailsResponse, UpdateOrganizationWebhookConfigRequest, UpdateOrganizationWebhookConfigResponse, UpdateOrgMemberRoleRequest, UpdateOrgMemberRoleResponse, UpdateRBACSettingsRequest, UpdateRBACSettingsResponse, UpdateSubgraphRequest, UpdateSubgraphResponse, UpgradePlanRequest, UpgradePlanResponse, WhoAmIRequest, WhoAmIResponse } from "./platform_pb.js"; import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf"; import { GetConfigResponse } from "../../node/v1/node_pb.js"; @@ -1125,6 +1125,39 @@ export const PlatformService = { O: CreateOrganizationResponse, kind: MethodKind.Unary, }, + /** + * EnableLintingForTheNamespace enables the lint check for the namespace passed. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.EnableLintingForTheNamespace + */ + enableLintingForTheNamespace: { + name: "EnableLintingForTheNamespace", + I: EnableLintingForTheNamespaceRequest, + O: EnableLintingForTheNamespaceResponse, + kind: MethodKind.Unary, + }, + /** + * ConfigureNamespaceLintConfig configures the lint config of the organization. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.ConfigureNamespaceLintConfig + */ + configureNamespaceLintConfig: { + name: "ConfigureNamespaceLintConfig", + I: ConfigureNamespaceLintConfigRequest, + O: ConfigureNamespaceLintConfigResponse, + kind: MethodKind.Unary, + }, + /** + * GetNamespaceLintConfig returns the lint config of the organization. + * + * @generated from rpc wg.cosmo.platform.v1.PlatformService.GetNamespaceLintConfig + */ + getNamespaceLintConfig: { + name: "GetNamespaceLintConfig", + I: GetNamespaceLintConfigRequest, + O: GetNamespaceLintConfigResponse, + kind: MethodKind.Unary, + }, /** * * Billing diff --git a/connect/src/wg/cosmo/platform/v1/platform_pb.ts b/connect/src/wg/cosmo/platform/v1/platform_pb.ts index 84cfaad055..1d530c594f 100644 --- a/connect/src/wg/cosmo/platform/v1/platform_pb.ts +++ b/connect/src/wg/cosmo/platform/v1/platform_pb.ts @@ -10,6 +10,26 @@ import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { EnumStatusCode, GraphQLSubscriptionProtocol } from "../../common/common_pb.js"; import { EventMeta } from "../../notifications/events_pb.js"; +/** + * @generated from enum wg.cosmo.platform.v1.LintSeverity + */ +export enum LintSeverity { + /** + * @generated from enum value: warn = 0; + */ + warn = 0, + + /** + * @generated from enum value: error = 1; + */ + error = 1, +} +// Retrieve enum metadata with: proto3.getEnumType(LintSeverity) +proto3.util.setEnumType(LintSeverity, "wg.cosmo.platform.v1.LintSeverity", [ + { no: 0, name: "warn" }, + { no: 1, name: "error" }, +]); + /** * @generated from enum wg.cosmo.platform.v1.AnalyticsViewGroupName */ @@ -1194,6 +1214,116 @@ export class CheckedFederatedGraphs extends Message { } } +/** + * @generated from message wg.cosmo.platform.v1.LintLocation + */ +export class LintLocation extends Message { + /** + * @generated from field: uint32 line = 1; + */ + line = 0; + + /** + * @generated from field: uint32 column = 2; + */ + column = 0; + + /** + * @generated from field: optional uint32 endLine = 3; + */ + endLine?: number; + + /** + * @generated from field: optional uint32 endColumn = 4; + */ + endColumn?: number; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.LintLocation"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "line", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 2, name: "column", kind: "scalar", T: 13 /* ScalarType.UINT32 */ }, + { no: 3, name: "endLine", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, + { no: 4, name: "endColumn", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LintLocation { + return new LintLocation().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LintLocation { + return new LintLocation().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LintLocation { + return new LintLocation().fromJsonString(jsonString, options); + } + + static equals(a: LintLocation | PlainMessage | undefined, b: LintLocation | PlainMessage | undefined): boolean { + return proto3.util.equals(LintLocation, a, b); + } +} + +/** + * @generated from message wg.cosmo.platform.v1.LintIssue + */ +export class LintIssue extends Message { + /** + * @generated from field: optional string lintRuleType = 1; + */ + lintRuleType?: string; + + /** + * @generated from field: wg.cosmo.platform.v1.LintSeverity severity = 2; + */ + severity = LintSeverity.warn; + + /** + * @generated from field: string message = 3; + */ + message = ""; + + /** + * @generated from field: wg.cosmo.platform.v1.LintLocation issueLocation = 4; + */ + issueLocation?: LintLocation; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.LintIssue"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "lintRuleType", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true }, + { no: 2, name: "severity", kind: "enum", T: proto3.getEnumType(LintSeverity) }, + { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 4, name: "issueLocation", kind: "message", T: LintLocation }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LintIssue { + return new LintIssue().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LintIssue { + return new LintIssue().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LintIssue { + return new LintIssue().fromJsonString(jsonString, options); + } + + static equals(a: LintIssue | PlainMessage | undefined, b: LintIssue | PlainMessage | undefined): boolean { + return proto3.util.equals(LintIssue, a, b); + } +} + /** * @generated from message wg.cosmo.platform.v1.CheckSubgraphSchemaResponse */ @@ -1236,6 +1366,16 @@ export class CheckSubgraphSchemaResponse extends Message) { super(); proto3.util.initPartial(data, this); @@ -1251,6 +1391,8 @@ export class CheckSubgraphSchemaResponse extends Message): CheckSubgraphSchemaResponse { @@ -2548,6 +2690,11 @@ export class SchemaCheck extends Message { */ ghDetails?: SchemaCheckGhDetails; + /** + * @generated from field: bool hasLintErrors = 11; + */ + hasLintErrors = false; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -2566,6 +2713,7 @@ export class SchemaCheck extends Message { { no: 8, name: "isForcedSuccess", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 9, name: "isDeleted", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 10, name: "ghDetails", kind: "message", T: SchemaCheckGhDetails, opt: true }, + { no: 11, name: "hasLintErrors", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SchemaCheck { @@ -2826,6 +2974,11 @@ export class GetCheckSummaryResponse extends Message { */ trafficCheckDays = 0; + /** + * @generated from field: repeated wg.cosmo.platform.v1.LintIssue lintIssues = 9; + */ + lintIssues: LintIssue[] = []; + constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); @@ -2841,6 +2994,7 @@ export class GetCheckSummaryResponse extends Message { { no: 6, name: "changes", kind: "message", T: SchemaChange, repeated: true }, { no: 7, name: "compositionErrors", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 8, name: "traffic_check_days", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, + { no: 9, name: "lintIssues", kind: "message", T: LintIssue, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): GetCheckSummaryResponse { @@ -14046,3 +14200,292 @@ export class MoveGraphResponse extends Message { } } +/** + * @generated from message wg.cosmo.platform.v1.GetNamespaceLintConfigRequest + */ +export class GetNamespaceLintConfigRequest extends Message { + /** + * @generated from field: string namespace = 1; + */ + namespace = ""; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.GetNamespaceLintConfigRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNamespaceLintConfigRequest { + return new GetNamespaceLintConfigRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNamespaceLintConfigRequest { + return new GetNamespaceLintConfigRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNamespaceLintConfigRequest { + return new GetNamespaceLintConfigRequest().fromJsonString(jsonString, options); + } + + static equals(a: GetNamespaceLintConfigRequest | PlainMessage | undefined, b: GetNamespaceLintConfigRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNamespaceLintConfigRequest, a, b); + } +} + +/** + * @generated from message wg.cosmo.platform.v1.GetNamespaceLintConfigResponse + */ +export class GetNamespaceLintConfigResponse extends Message { + /** + * @generated from field: wg.cosmo.platform.v1.Response response = 1; + */ + response?: Response; + + /** + * @generated from field: bool linterEnabled = 2; + */ + linterEnabled = false; + + /** + * @generated from field: repeated wg.cosmo.platform.v1.LintConfig configs = 3; + */ + configs: LintConfig[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.GetNamespaceLintConfigResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "response", kind: "message", T: Response }, + { no: 2, name: "linterEnabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + { no: 3, name: "configs", kind: "message", T: LintConfig, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): GetNamespaceLintConfigResponse { + return new GetNamespaceLintConfigResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): GetNamespaceLintConfigResponse { + return new GetNamespaceLintConfigResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): GetNamespaceLintConfigResponse { + return new GetNamespaceLintConfigResponse().fromJsonString(jsonString, options); + } + + static equals(a: GetNamespaceLintConfigResponse | PlainMessage | undefined, b: GetNamespaceLintConfigResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(GetNamespaceLintConfigResponse, a, b); + } +} + +/** + * @generated from message wg.cosmo.platform.v1.EnableLintingForTheNamespaceRequest + */ +export class EnableLintingForTheNamespaceRequest extends Message { + /** + * @generated from field: string namespace = 1; + */ + namespace = ""; + + /** + * @generated from field: bool enableLinting = 2; + */ + enableLinting = false; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.EnableLintingForTheNamespaceRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "enableLinting", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EnableLintingForTheNamespaceRequest { + return new EnableLintingForTheNamespaceRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EnableLintingForTheNamespaceRequest { + return new EnableLintingForTheNamespaceRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EnableLintingForTheNamespaceRequest { + return new EnableLintingForTheNamespaceRequest().fromJsonString(jsonString, options); + } + + static equals(a: EnableLintingForTheNamespaceRequest | PlainMessage | undefined, b: EnableLintingForTheNamespaceRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(EnableLintingForTheNamespaceRequest, a, b); + } +} + +/** + * @generated from message wg.cosmo.platform.v1.EnableLintingForTheNamespaceResponse + */ +export class EnableLintingForTheNamespaceResponse extends Message { + /** + * @generated from field: wg.cosmo.platform.v1.Response response = 1; + */ + response?: Response; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.EnableLintingForTheNamespaceResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "response", kind: "message", T: Response }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): EnableLintingForTheNamespaceResponse { + return new EnableLintingForTheNamespaceResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): EnableLintingForTheNamespaceResponse { + return new EnableLintingForTheNamespaceResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): EnableLintingForTheNamespaceResponse { + return new EnableLintingForTheNamespaceResponse().fromJsonString(jsonString, options); + } + + static equals(a: EnableLintingForTheNamespaceResponse | PlainMessage | undefined, b: EnableLintingForTheNamespaceResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(EnableLintingForTheNamespaceResponse, a, b); + } +} + +/** + * @generated from message wg.cosmo.platform.v1.LintConfig + */ +export class LintConfig extends Message { + /** + * @generated from field: string ruleName = 1; + */ + ruleName = ""; + + /** + * @generated from field: wg.cosmo.platform.v1.LintSeverity severityLevel = 2; + */ + severityLevel = LintSeverity.warn; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.LintConfig"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "ruleName", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "severityLevel", kind: "enum", T: proto3.getEnumType(LintSeverity) }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): LintConfig { + return new LintConfig().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): LintConfig { + return new LintConfig().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): LintConfig { + return new LintConfig().fromJsonString(jsonString, options); + } + + static equals(a: LintConfig | PlainMessage | undefined, b: LintConfig | PlainMessage | undefined): boolean { + return proto3.util.equals(LintConfig, a, b); + } +} + +/** + * @generated from message wg.cosmo.platform.v1.ConfigureNamespaceLintConfigRequest + */ +export class ConfigureNamespaceLintConfigRequest extends Message { + /** + * @generated from field: string namespace = 1; + */ + namespace = ""; + + /** + * @generated from field: repeated wg.cosmo.platform.v1.LintConfig configs = 2; + */ + configs: LintConfig[] = []; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.ConfigureNamespaceLintConfigRequest"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ }, + { no: 2, name: "configs", kind: "message", T: LintConfig, repeated: true }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConfigureNamespaceLintConfigRequest { + return new ConfigureNamespaceLintConfigRequest().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConfigureNamespaceLintConfigRequest { + return new ConfigureNamespaceLintConfigRequest().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConfigureNamespaceLintConfigRequest { + return new ConfigureNamespaceLintConfigRequest().fromJsonString(jsonString, options); + } + + static equals(a: ConfigureNamespaceLintConfigRequest | PlainMessage | undefined, b: ConfigureNamespaceLintConfigRequest | PlainMessage | undefined): boolean { + return proto3.util.equals(ConfigureNamespaceLintConfigRequest, a, b); + } +} + +/** + * @generated from message wg.cosmo.platform.v1.ConfigureNamespaceLintConfigResponse + */ +export class ConfigureNamespaceLintConfigResponse extends Message { + /** + * @generated from field: wg.cosmo.platform.v1.Response response = 1; + */ + response?: Response; + + constructor(data?: PartialMessage) { + super(); + proto3.util.initPartial(data, this); + } + + static readonly runtime: typeof proto3 = proto3; + static readonly typeName = "wg.cosmo.platform.v1.ConfigureNamespaceLintConfigResponse"; + static readonly fields: FieldList = proto3.util.newFieldList(() => [ + { no: 1, name: "response", kind: "message", T: Response }, + ]); + + static fromBinary(bytes: Uint8Array, options?: Partial): ConfigureNamespaceLintConfigResponse { + return new ConfigureNamespaceLintConfigResponse().fromBinary(bytes, options); + } + + static fromJson(jsonValue: JsonValue, options?: Partial): ConfigureNamespaceLintConfigResponse { + return new ConfigureNamespaceLintConfigResponse().fromJson(jsonValue, options); + } + + static fromJsonString(jsonString: string, options?: Partial): ConfigureNamespaceLintConfigResponse { + return new ConfigureNamespaceLintConfigResponse().fromJsonString(jsonString, options); + } + + static equals(a: ConfigureNamespaceLintConfigResponse | PlainMessage | undefined, b: ConfigureNamespaceLintConfigResponse | PlainMessage | undefined): boolean { + return proto3.util.equals(ConfigureNamespaceLintConfigResponse, a, b); + } +} + diff --git a/controlplane/migrations/0081_ambitious_exiles.sql b/controlplane/migrations/0081_ambitious_exiles.sql new file mode 100644 index 0000000000..bba9b003ed --- /dev/null +++ b/controlplane/migrations/0081_ambitious_exiles.sql @@ -0,0 +1,42 @@ +DO $$ BEGIN + CREATE TYPE "lint_rules" AS ENUM('FIELD_NAMES_SHOULD_BE_CAMEL_CASE', 'TYPE_NAMES_SHOULD_BE_PASCAL_CASE', 'SHOULD_NOT_HAVE_TYPE_PREFIX', 'SHOULD_NOT_HAVE_TYPE_SUFFIX', 'SHOULD_NOT_HAVE_INPUT_PREFIX', 'SHOULD_HAVE_INPUT_SUFFIX', 'SHOULD_NOT_HAVE_ENUM_PREFIX', 'SHOULD_NOT_HAVE_ENUM_SUFFIX', 'SHOULD_NOT_HAVE_INTERFACE_PREFIX', 'SHOULD_NOT_HAVE_INTERFACE_SUFFIX', 'ENUM_VALUES_SHOULD_BE_UPPER_CASE', 'ORDER_FIELDS', 'ORDER_ENUM_VALUES', 'ORDER_DEFINITIONS', 'ALL_TYPES_REQUIRE_DESCRIPTION', 'DISALLOW_CASE_INSENSITIVE_ENUM_VALUES', 'NO_TYPENAME_PREFIX_IN_TYPE_FIELDS', 'REQUIRE_DEPRECATION_REASON', 'REQUIRE_DEPRECATION_DATE'); +EXCEPTION + WHEN duplicate_object THEN null; +END $$; +--> statement-breakpoint +DO $$ BEGIN + CREATE TYPE "lint_severity" AS ENUM('warn', 'error'); +EXCEPTION + WHEN duplicate_object THEN null; +END $$; +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "namespace_lint_check_config" ( + "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, + "namespace_id" uuid NOT NULL, + "lint_rule" "lint_rules" NOT NULL, + "severity_level" "lint_severity" NOT NULL, + "created_at" timestamp with time zone DEFAULT now() NOT NULL +); +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "schema_check_lint_action" ( + "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, + "schema_check_id" uuid NOT NULL, + "message" text, + "is_error" boolean DEFAULT false, + "location" json NOT NULL, + "created_at" timestamp with time zone DEFAULT now() NOT NULL +); +--> statement-breakpoint +ALTER TABLE "namespaces" ADD COLUMN "enable_linting" boolean DEFAULT false NOT NULL;--> statement-breakpoint +ALTER TABLE "schema_checks" ADD COLUMN "has_lint_errors" boolean DEFAULT false;--> statement-breakpoint +DO $$ BEGIN + ALTER TABLE "namespace_lint_check_config" ADD CONSTRAINT "namespace_lint_check_config_namespace_id_namespaces_id_fk" FOREIGN KEY ("namespace_id") REFERENCES "namespaces"("id") ON DELETE cascade ON UPDATE no action; +EXCEPTION + WHEN duplicate_object THEN null; +END $$; +--> statement-breakpoint +DO $$ BEGIN + ALTER TABLE "schema_check_lint_action" ADD CONSTRAINT "schema_check_lint_action_schema_check_id_schema_checks_id_fk" FOREIGN KEY ("schema_check_id") REFERENCES "schema_checks"("id") ON DELETE cascade ON UPDATE no action; +EXCEPTION + WHEN duplicate_object THEN null; +END $$; diff --git a/controlplane/migrations/0082_gorgeous_sleeper.sql b/controlplane/migrations/0082_gorgeous_sleeper.sql new file mode 100644 index 0000000000..47358132eb --- /dev/null +++ b/controlplane/migrations/0082_gorgeous_sleeper.sql @@ -0,0 +1 @@ +ALTER TABLE "schema_check_lint_action" ADD COLUMN "lint_rule_type" "lint_rules"; \ No newline at end of file diff --git a/controlplane/migrations/meta/0081_snapshot.json b/controlplane/migrations/meta/0081_snapshot.json new file mode 100644 index 0000000000..77d0f038bc --- /dev/null +++ b/controlplane/migrations/meta/0081_snapshot.json @@ -0,0 +1,3705 @@ +{ + "id": "dfc325d2-53af-404e-a2a5-dd4c6376e2e5", + "prevId": "86c179ca-210c-4daf-bb9e-ed052b5aec34", + "version": "5", + "dialect": "pg", + "tables": { + "api_key_resources": { + "name": "api_key_resources", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "api_key_id": { + "name": "api_key_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "api_key_resources_api_key_id_api_keys_id_fk": { + "name": "api_key_resources_api_key_id_api_keys_id_fk", + "tableFrom": "api_key_resources", + "tableTo": "api_keys", + "columnsFrom": [ + "api_key_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "api_key_resources_target_id_targets_id_fk": { + "name": "api_key_resources_target_id_targets_id_fk", + "tableFrom": "api_key_resources", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "api_keys": { + "name": "api_keys", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "key": { + "name": "key", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "last_used_at": { + "name": "last_used_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "apikey_name_idx": { + "name": "apikey_name_idx", + "columns": [ + "name", + "organization_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "api_keys_user_id_users_id_fk": { + "name": "api_keys_user_id_users_id_fk", + "tableFrom": "api_keys", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "api_keys_organization_id_organizations_id_fk": { + "name": "api_keys_organization_id_organizations_id_fk", + "tableFrom": "api_keys", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "api_keys_key_unique": { + "name": "api_keys_key_unique", + "nullsNotDistinct": false, + "columns": [ + "key" + ] + } + } + }, + "audit_logs": { + "name": "audit_logs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "action": { + "name": "action", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "audit_action": { + "name": "audit_action", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "auditable_type": { + "name": "auditable_type", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "auditable_display_name": { + "name": "auditable_display_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "target_type": { + "name": "target_type", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "target_display_name": { + "name": "target_display_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "target_namespace_id": { + "name": "target_namespace_id", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "target_namespace": { + "name": "target_namespace", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "actor_id": { + "name": "actor_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "actor_display_name": { + "name": "actor_display_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "actor_type": { + "name": "actor_type", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "audit_logs_organization_id_organizations_id_fk": { + "name": "audit_logs_organization_id_organizations_id_fk", + "tableFrom": "audit_logs", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "billing_plans": { + "name": "billing_plans", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "active": { + "name": "active", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "price": { + "name": "price", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "features": { + "name": "features", + "type": "json", + "primaryKey": false, + "notNull": true + }, + "stripe_price_id": { + "name": "stripe_price_id", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "weight": { + "name": "weight", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "billing_subscriptions": { + "name": "billing_subscriptions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "metadata": { + "name": "metadata", + "type": "json", + "primaryKey": false, + "notNull": true + }, + "status": { + "name": "status", + "type": "status", + "primaryKey": false, + "notNull": true + }, + "price_id": { + "name": "price_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "quantity": { + "name": "quantity", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "cancel_at_period_end": { + "name": "cancel_at_period_end", + "type": "boolean", + "primaryKey": false, + "notNull": true + }, + "cancel_at": { + "name": "cancel_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "canceled_at": { + "name": "canceled_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "current_period_start": { + "name": "current_period_start", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "current_period_end": { + "name": "current_period_end", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "ended_at": { + "name": "ended_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "trial_start": { + "name": "trial_start", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "trial_end": { + "name": "trial_end", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "billing_subscriptions_organization_id_organizations_id_fk": { + "name": "billing_subscriptions_organization_id_organizations_id_fk", + "tableFrom": "billing_subscriptions", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "discussion_thread": { + "name": "discussion_thread", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "discussion_id": { + "name": "discussion_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "content_markdown": { + "name": "content_markdown", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "content_json": { + "name": "content_json", + "type": "json", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "created_by_id": { + "name": "created_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "is_deleted": { + "name": "is_deleted", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "discussion_thread_discussion_id_discussions_id_fk": { + "name": "discussion_thread_discussion_id_discussions_id_fk", + "tableFrom": "discussion_thread", + "tableTo": "discussions", + "columnsFrom": [ + "discussion_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "discussion_thread_created_by_id_users_id_fk": { + "name": "discussion_thread_created_by_id_users_id_fk", + "tableFrom": "discussion_thread", + "tableTo": "users", + "columnsFrom": [ + "created_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "discussions": { + "name": "discussions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "reference_line": { + "name": "reference_line", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "is_resolved": { + "name": "is_resolved", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "discussions_target_id_targets_id_fk": { + "name": "discussions_target_id_targets_id_fk", + "tableFrom": "discussions", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "discussions_schema_version_id_schema_versions_id_fk": { + "name": "discussions_schema_version_id_schema_versions_id_fk", + "tableFrom": "discussions", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "federated_graph_clients": { + "name": "federated_graph_clients", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "created_by_id": { + "name": "created_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "updated_by_id": { + "name": "updated_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "federated_graph_clients_federated_graph_id_federated_graphs_id_fk": { + "name": "federated_graph_clients_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "federated_graph_clients", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_clients_created_by_id_users_id_fk": { + "name": "federated_graph_clients_created_by_id_users_id_fk", + "tableFrom": "federated_graph_clients", + "tableTo": "users", + "columnsFrom": [ + "created_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_clients_updated_by_id_users_id_fk": { + "name": "federated_graph_clients_updated_by_id_users_id_fk", + "tableFrom": "federated_graph_clients", + "tableTo": "users", + "columnsFrom": [ + "updated_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "federated_graph_client_name": { + "name": "federated_graph_client_name", + "nullsNotDistinct": false, + "columns": [ + "federated_graph_id", + "name" + ] + } + } + }, + "federated_graph_persisted_operations": { + "name": "federated_graph_persisted_operations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "client_id": { + "name": "client_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "operation_id": { + "name": "operation_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "file_path": { + "name": "file_path", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "operation_names": { + "name": "operation_names", + "type": "text[]", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "operation_content": { + "name": "operation_content", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_by_id": { + "name": "created_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "updated_by_id": { + "name": "updated_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "federated_graph_persisted_operations_federated_graph_id_federated_graphs_id_fk": { + "name": "federated_graph_persisted_operations_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "federated_graph_persisted_operations", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_persisted_operations_client_id_federated_graph_clients_id_fk": { + "name": "federated_graph_persisted_operations_client_id_federated_graph_clients_id_fk", + "tableFrom": "federated_graph_persisted_operations", + "tableTo": "federated_graph_clients", + "columnsFrom": [ + "client_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_persisted_operations_created_by_id_users_id_fk": { + "name": "federated_graph_persisted_operations_created_by_id_users_id_fk", + "tableFrom": "federated_graph_persisted_operations", + "tableTo": "users", + "columnsFrom": [ + "created_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_persisted_operations_updated_by_id_users_id_fk": { + "name": "federated_graph_persisted_operations_updated_by_id_users_id_fk", + "tableFrom": "federated_graph_persisted_operations", + "tableTo": "users", + "columnsFrom": [ + "updated_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "federated_graph_persisted_operations_file_path_unique": { + "name": "federated_graph_persisted_operations_file_path_unique", + "nullsNotDistinct": false, + "columns": [ + "file_path" + ] + }, + "federated_graph_operation_id": { + "name": "federated_graph_operation_id", + "nullsNotDistinct": false, + "columns": [ + "federated_graph_id", + "client_id", + "operation_id" + ] + } + } + }, + "federated_graphs": { + "name": "federated_graphs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "routing_url": { + "name": "routing_url", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "composed_schema_version_id": { + "name": "composed_schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "router_config_path": { + "name": "router_config_path", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "federated_graphs_target_id_targets_id_fk": { + "name": "federated_graphs_target_id_targets_id_fk", + "tableFrom": "federated_graphs", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graphs_composed_schema_version_id_schema_versions_id_fk": { + "name": "federated_graphs_composed_schema_version_id_schema_versions_id_fk", + "tableFrom": "federated_graphs", + "tableTo": "schema_versions", + "columnsFrom": [ + "composed_schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "git_installations": { + "name": "git_installations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "type": { + "name": "type", + "type": "git_installation_type", + "primaryKey": false, + "notNull": true + }, + "provider_account_id": { + "name": "provider_account_id", + "type": "bigint", + "primaryKey": false, + "notNull": true + }, + "provider_installation_id": { + "name": "provider_installation_id", + "type": "bigint", + "primaryKey": false, + "notNull": true + }, + "provider_name": { + "name": "provider_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "oauth_token": { + "name": "oauth_token", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "graph_api_tokens": { + "name": "graph_api_tokens", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "last_used_at": { + "name": "last_used_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "graphApiToken_name_idx": { + "name": "graphApiToken_name_idx", + "columns": [ + "name", + "federated_graph_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "graph_api_tokens_organization_id_organizations_id_fk": { + "name": "graph_api_tokens_organization_id_organizations_id_fk", + "tableFrom": "graph_api_tokens", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_api_tokens_federated_graph_id_federated_graphs_id_fk": { + "name": "graph_api_tokens_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "graph_api_tokens", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_api_tokens_created_by_users_id_fk": { + "name": "graph_api_tokens_created_by_users_id_fk", + "tableFrom": "graph_api_tokens", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "graph_api_tokens_token_unique": { + "name": "graph_api_tokens_token_unique", + "nullsNotDistinct": false, + "columns": [ + "token" + ] + } + } + }, + "graph_composition_subgraphs": { + "name": "graph_composition_subgraphs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "graph_composition_id": { + "name": "graph_composition_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "graph_composition_subgraphs_graph_composition_id_graph_compositions_id_fk": { + "name": "graph_composition_subgraphs_graph_composition_id_graph_compositions_id_fk", + "tableFrom": "graph_composition_subgraphs", + "tableTo": "graph_compositions", + "columnsFrom": [ + "graph_composition_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_composition_subgraphs_schema_version_id_schema_versions_id_fk": { + "name": "graph_composition_subgraphs_schema_version_id_schema_versions_id_fk", + "tableFrom": "graph_composition_subgraphs", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "graph_compositions": { + "name": "graph_compositions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "is_composable": { + "name": "is_composable", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "composition_errors": { + "name": "composition_errors", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "router_config": { + "name": "router_config", + "type": "jsonb", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "graph_compositions_schema_version_id_schema_versions_id_fk": { + "name": "graph_compositions_schema_version_id_schema_versions_id_fk", + "tableFrom": "graph_compositions", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_compositions_created_by_users_id_fk": { + "name": "graph_compositions_created_by_users_id_fk", + "tableFrom": "graph_compositions", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "graph_request_keys": { + "name": "graph_request_keys", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "privateKey": { + "name": "privateKey", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "publicKey": { + "name": "publicKey", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "graph_request_keys_organization_id_organizations_id_fk": { + "name": "graph_request_keys_organization_id_organizations_id_fk", + "tableFrom": "graph_request_keys", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_request_keys_federated_graph_id_federated_graphs_id_fk": { + "name": "graph_request_keys_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "graph_request_keys", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "graph_request_keys_federated_graph_id_unique": { + "name": "graph_request_keys_federated_graph_id_unique", + "nullsNotDistinct": false, + "columns": [ + "federated_graph_id" + ] + }, + "graph_request_keys_privateKey_unique": { + "name": "graph_request_keys_privateKey_unique", + "nullsNotDistinct": false, + "columns": [ + "privateKey" + ] + }, + "graph_request_keys_publicKey_unique": { + "name": "graph_request_keys_publicKey_unique", + "nullsNotDistinct": false, + "columns": [ + "publicKey" + ] + } + } + }, + "namespace_lint_check_config": { + "name": "namespace_lint_check_config", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "namespace_id": { + "name": "namespace_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "lint_rule": { + "name": "lint_rule", + "type": "lint_rules", + "primaryKey": false, + "notNull": true + }, + "severity_level": { + "name": "severity_level", + "type": "lint_severity", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "namespace_lint_check_config_namespace_id_namespaces_id_fk": { + "name": "namespace_lint_check_config_namespace_id_namespaces_id_fk", + "tableFrom": "namespace_lint_check_config", + "tableTo": "namespaces", + "columnsFrom": [ + "namespace_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "namespaces": { + "name": "namespaces", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "enable_linting": { + "name": "enable_linting", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "namespaces_organization_id_organizations_id_fk": { + "name": "namespaces_organization_id_organizations_id_fk", + "tableFrom": "namespaces", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "namespaces_created_by_users_id_fk": { + "name": "namespaces_created_by_users_id_fk", + "tableFrom": "namespaces", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "unique_name": { + "name": "unique_name", + "nullsNotDistinct": false, + "columns": [ + "name", + "organization_id" + ] + } + } + }, + "oidc_providers": { + "name": "oidc_providers", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "alias": { + "name": "alias", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "endpoint": { + "name": "endpoint", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "oidc_providers_organization_id_organizations_id_fk": { + "name": "oidc_providers_organization_id_organizations_id_fk", + "tableFrom": "oidc_providers", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "oidc_providers_alias_unique": { + "name": "oidc_providers_alias_unique", + "nullsNotDistinct": false, + "columns": [ + "alias" + ] + } + } + }, + "operation_change_overrides": { + "name": "operation_change_overrides", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "namespace_id": { + "name": "namespace_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "change_type": { + "name": "change_type", + "type": "schema_change_type", + "primaryKey": false, + "notNull": true + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "hash_change_idx": { + "name": "hash_change_idx", + "columns": [ + "hash", + "namespace_id", + "change_type", + "path" + ], + "isUnique": true + } + }, + "foreignKeys": { + "operation_change_overrides_created_by_users_id_fk": { + "name": "operation_change_overrides_created_by_users_id_fk", + "tableFrom": "operation_change_overrides", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "operation_ignore_all_overrides": { + "name": "operation_ignore_all_overrides", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "namespace_id": { + "name": "namespace_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "hash_namespace_ignore_idx": { + "name": "hash_namespace_ignore_idx", + "columns": [ + "hash", + "namespace_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "operation_ignore_all_overrides_created_by_users_id_fk": { + "name": "operation_ignore_all_overrides_created_by_users_id_fk", + "tableFrom": "operation_ignore_all_overrides", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_billing": { + "name": "organization_billing", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "plan": { + "name": "plan", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "stripe_customer_id": { + "name": "stripe_customer_id", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "organization_billing_idx": { + "name": "organization_billing_idx", + "columns": [ + "organization_id" + ], + "isUnique": true + }, + "organization_billing_stripe_idx": { + "name": "organization_billing_stripe_idx", + "columns": [ + "stripe_customer_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_billing_organization_id_organizations_id_fk": { + "name": "organization_billing_organization_id_organizations_id_fk", + "tableFrom": "organization_billing", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_features": { + "name": "organization_features", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "feature": { + "name": "feature", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "enabled": { + "name": "enabled", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": true + }, + "limit": { + "name": "limit", + "type": "real", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "organization_feature_idx": { + "name": "organization_feature_idx", + "columns": [ + "organization_id", + "feature" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_features_organization_id_organizations_id_fk": { + "name": "organization_features_organization_id_organizations_id_fk", + "tableFrom": "organization_features", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_integrations": { + "name": "organization_integrations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "events": { + "name": "events", + "type": "text[]", + "primaryKey": false, + "notNull": false + }, + "type": { + "name": "type", + "type": "integration_type", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "organization_integration_idx": { + "name": "organization_integration_idx", + "columns": [ + "organization_id", + "name" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_integrations_organization_id_organizations_id_fk": { + "name": "organization_integrations_organization_id_organizations_id_fk", + "tableFrom": "organization_integrations", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_invitations": { + "name": "organization_invitations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "invited_by": { + "name": "invited_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "accepted": { + "name": "accepted", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "organization_invitations_organization_id_organizations_id_fk": { + "name": "organization_invitations_organization_id_organizations_id_fk", + "tableFrom": "organization_invitations", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "organization_invitations_user_id_users_id_fk": { + "name": "organization_invitations_user_id_users_id_fk", + "tableFrom": "organization_invitations", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "organization_invitations_invited_by_users_id_fk": { + "name": "organization_invitations_invited_by_users_id_fk", + "tableFrom": "organization_invitations", + "tableTo": "users", + "columnsFrom": [ + "invited_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_member_roles": { + "name": "organization_member_roles", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_member_id": { + "name": "organization_member_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "role": { + "name": "role", + "type": "member_role", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "organization_member_role_idx": { + "name": "organization_member_role_idx", + "columns": [ + "organization_member_id", + "role" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_member_roles_organization_member_id_organization_members_id_fk": { + "name": "organization_member_roles_organization_member_id_organization_members_id_fk", + "tableFrom": "organization_member_roles", + "tableTo": "organization_members", + "columnsFrom": [ + "organization_member_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_webhook_configs": { + "name": "organization_webhook_configs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "endpoint": { + "name": "endpoint", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "key": { + "name": "key", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "events": { + "name": "events", + "type": "text[]", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "organization_webhook_configs_organization_id_organizations_id_fk": { + "name": "organization_webhook_configs_organization_id_organizations_id_fk", + "tableFrom": "organization_webhook_configs", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organizations": { + "name": "organizations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "invite_code": { + "name": "invite_code", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "organizations_user_id_users_id_fk": { + "name": "organizations_user_id_users_id_fk", + "tableFrom": "organizations", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "organizations_slug_unique": { + "name": "organizations_slug_unique", + "nullsNotDistinct": false, + "columns": [ + "slug" + ] + } + } + }, + "organization_members": { + "name": "organization_members", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "organization_member_idx": { + "name": "organization_member_idx", + "columns": [ + "id" + ], + "isUnique": true + }, + "unique_organization_member_idx": { + "name": "unique_organization_member_idx", + "columns": [ + "user_id", + "organization_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_members_user_id_users_id_fk": { + "name": "organization_members_user_id_users_id_fk", + "tableFrom": "organization_members", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "organization_members_organization_id_organizations_id_fk": { + "name": "organization_members_organization_id_organizations_id_fk", + "tableFrom": "organization_members", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_change_action": { + "name": "schema_check_change_action", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_check_id": { + "name": "schema_check_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "change_type": { + "name": "change_type", + "type": "schema_change_type", + "primaryKey": false, + "notNull": false + }, + "change_message": { + "name": "change_message", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "is_breaking": { + "name": "is_breaking", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_change_action_schema_check_id_schema_checks_id_fk": { + "name": "schema_check_change_action_schema_check_id_schema_checks_id_fk", + "tableFrom": "schema_check_change_action", + "tableTo": "schema_checks", + "columnsFrom": [ + "schema_check_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_change_operation_usage": { + "name": "schema_check_change_operation_usage", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_check_change_action_id": { + "name": "schema_check_change_action_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "first_seen_at": { + "name": "first_seen_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "last_seen_at": { + "name": "last_seen_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "is_safe_override": { + "name": "is_safe_override", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_change_operation_usage_schema_check_change_action_id_schema_check_change_action_id_fk": { + "name": "schema_check_change_operation_usage_schema_check_change_action_id_schema_check_change_action_id_fk", + "tableFrom": "schema_check_change_operation_usage", + "tableTo": "schema_check_change_action", + "columnsFrom": [ + "schema_check_change_action_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "schema_check_change_operation_usage_federated_graph_id_federated_graphs_id_fk": { + "name": "schema_check_change_operation_usage_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "schema_check_change_operation_usage", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_composition": { + "name": "schema_check_composition", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_check_id": { + "name": "schema_check_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "composition_errors": { + "name": "composition_errors", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "composed_schema_sdl": { + "name": "composed_schema_sdl", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_composition_schema_check_id_schema_checks_id_fk": { + "name": "schema_check_composition_schema_check_id_schema_checks_id_fk", + "tableFrom": "schema_check_composition", + "tableTo": "schema_checks", + "columnsFrom": [ + "schema_check_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "schema_check_composition_target_id_targets_id_fk": { + "name": "schema_check_composition_target_id_targets_id_fk", + "tableFrom": "schema_check_composition", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_federated_graphs": { + "name": "schema_check_federated_graphs", + "schema": "", + "columns": { + "check_id": { + "name": "check_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "traffic_check_days": { + "name": "traffic_check_days", + "type": "integer", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_federated_graphs_check_id_schema_checks_id_fk": { + "name": "schema_check_federated_graphs_check_id_schema_checks_id_fk", + "tableFrom": "schema_check_federated_graphs", + "tableTo": "schema_checks", + "columnsFrom": [ + "check_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "schema_check_federated_graphs_federated_graph_id_federated_graphs_id_fk": { + "name": "schema_check_federated_graphs_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "schema_check_federated_graphs", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_lint_action": { + "name": "schema_check_lint_action", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_check_id": { + "name": "schema_check_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "is_error": { + "name": "is_error", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "location": { + "name": "location", + "type": "json", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_lint_action_schema_check_id_schema_checks_id_fk": { + "name": "schema_check_lint_action_schema_check_id_schema_checks_id_fk", + "tableFrom": "schema_check_lint_action", + "tableTo": "schema_checks", + "columnsFrom": [ + "schema_check_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_checks": { + "name": "schema_checks", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "is_composable": { + "name": "is_composable", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "is_deleted": { + "name": "is_deleted", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "has_breaking_changes": { + "name": "has_breaking_changes", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "has_lint_errors": { + "name": "has_lint_errors", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "has_client_traffic": { + "name": "has_client_traffic", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "proposed_subgraph_schema_sdl": { + "name": "proposed_subgraph_schema_sdl", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "gh_details": { + "name": "gh_details", + "type": "json", + "primaryKey": false, + "notNull": false + }, + "forced_success": { + "name": "forced_success", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "schema_checks_target_id_targets_id_fk": { + "name": "schema_checks_target_id_targets_id_fk", + "tableFrom": "schema_checks", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_versions": { + "name": "schema_versions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "schema_sdl": { + "name": "schema_sdl", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_versions_target_id_targets_id_fk": { + "name": "schema_versions_target_id_targets_id_fk", + "tableFrom": "schema_versions", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_version_change_action": { + "name": "schema_version_change_action", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "change_type": { + "name": "change_type", + "type": "schema_change_type", + "primaryKey": false, + "notNull": true + }, + "change_message": { + "name": "change_message", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_version_change_action_schema_version_id_schema_versions_id_fk": { + "name": "schema_version_change_action_schema_version_id_schema_versions_id_fk", + "tableFrom": "schema_version_change_action", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "sessions": { + "name": "sessions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "refresh_token": { + "name": "refresh_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "id_token": { + "name": "id_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "sessions_user_id_users_id_fk": { + "name": "sessions_user_id_users_id_fk", + "tableFrom": "sessions", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "sessions_user_id_unique": { + "name": "sessions_user_id_unique", + "nullsNotDistinct": false, + "columns": [ + "user_id" + ] + } + } + }, + "slack_installations": { + "name": "slack_installations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "slack_organization_id": { + "name": "slack_organization_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slack_organization_name": { + "name": "slack_organization_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slack_channel_id": { + "name": "slack_channel_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slack_channel_name": { + "name": "slack_channel_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slack_user_id": { + "name": "slack_user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "slack_installations_idx": { + "name": "slack_installations_idx", + "columns": [ + "organization_id", + "slack_organization_id", + "slack_channel_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "slack_installations_organization_id_organizations_id_fk": { + "name": "slack_installations_organization_id_organizations_id_fk", + "tableFrom": "slack_installations", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "slack_integration_configs": { + "name": "slack_integration_configs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "integration_id": { + "name": "integration_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "endpoint": { + "name": "endpoint", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "slack_integration_configs_integration_id_organization_integrations_id_fk": { + "name": "slack_integration_configs_integration_id_organization_integrations_id_fk", + "tableFrom": "slack_integration_configs", + "tableTo": "organization_integrations", + "columnsFrom": [ + "integration_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "slack_schema_update_event_configs": { + "name": "slack_schema_update_event_configs", + "schema": "", + "columns": { + "slack_integration_config_id": { + "name": "slack_integration_config_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "slack_schema_update_event_configs_slack_integration_config_id_slack_integration_configs_id_fk": { + "name": "slack_schema_update_event_configs_slack_integration_config_id_slack_integration_configs_id_fk", + "tableFrom": "slack_schema_update_event_configs", + "tableTo": "slack_integration_configs", + "columnsFrom": [ + "slack_integration_config_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "slack_schema_update_event_configs_federated_graph_id_federated_graphs_id_fk": { + "name": "slack_schema_update_event_configs_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "slack_schema_update_event_configs", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "subgraph_members": { + "name": "subgraph_members", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "subgraph_id": { + "name": "subgraph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "unique_subgraph_member_idx": { + "name": "unique_subgraph_member_idx", + "columns": [ + "user_id", + "subgraph_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "subgraph_members_user_id_users_id_fk": { + "name": "subgraph_members_user_id_users_id_fk", + "tableFrom": "subgraph_members", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "subgraph_members_subgraph_id_subgraphs_id_fk": { + "name": "subgraph_members_subgraph_id_subgraphs_id_fk", + "tableFrom": "subgraph_members", + "tableTo": "subgraphs", + "columnsFrom": [ + "subgraph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "subgraphs": { + "name": "subgraphs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "routing_url": { + "name": "routing_url", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "subscription_url": { + "name": "subscription_url", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "subscription_protocol": { + "name": "subscription_protocol", + "type": "subscription_protocol", + "primaryKey": false, + "notNull": true, + "default": "'ws'" + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "subgraphs_schema_version_id_schema_versions_id_fk": { + "name": "subgraphs_schema_version_id_schema_versions_id_fk", + "tableFrom": "subgraphs", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "subgraphs_target_id_targets_id_fk": { + "name": "subgraphs_target_id_targets_id_fk", + "tableFrom": "subgraphs", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "federated_subgraphs": { + "name": "federated_subgraphs", + "schema": "", + "columns": { + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "subgraph_id": { + "name": "subgraph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "federated_subgraphs_federated_graph_id_federated_graphs_id_fk": { + "name": "federated_subgraphs_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "federated_subgraphs", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_subgraphs_subgraph_id_subgraphs_id_fk": { + "name": "federated_subgraphs_subgraph_id_subgraphs_id_fk", + "tableFrom": "federated_subgraphs", + "tableTo": "subgraphs", + "columnsFrom": [ + "subgraph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": { + "federated_subgraphs_federated_graph_id_subgraph_id_pk": { + "name": "federated_subgraphs_federated_graph_id_subgraph_id_pk", + "columns": [ + "federated_graph_id", + "subgraph_id" + ] + } + }, + "uniqueConstraints": {} + }, + "target_label_matchers": { + "name": "target_label_matchers", + "schema": "", + "columns": { + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "label_matcher": { + "name": "label_matcher", + "type": "text[]", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "target_label_matchers_target_id_targets_id_fk": { + "name": "target_label_matchers_target_id_targets_id_fk", + "tableFrom": "target_label_matchers", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "targets": { + "name": "targets", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "type": { + "name": "type", + "type": "target_type", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "labels": { + "name": "labels", + "type": "text[]", + "primaryKey": false, + "notNull": false + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "readme": { + "name": "readme", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "namespace_id": { + "name": "namespace_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "organization_name_idx": { + "name": "organization_name_idx", + "columns": [ + "organization_id", + "type", + "name", + "namespace_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "targets_organization_id_organizations_id_fk": { + "name": "targets_organization_id_organizations_id_fk", + "tableFrom": "targets", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "targets_created_by_users_id_fk": { + "name": "targets_created_by_users_id_fk", + "tableFrom": "targets", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "targets_namespace_id_namespaces_id_fk": { + "name": "targets_namespace_id_namespaces_id_fk", + "tableFrom": "targets", + "tableTo": "namespaces", + "columnsFrom": [ + "namespace_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "users": { + "name": "users", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "users_email_unique": { + "name": "users_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + } + }, + "webhook_graph_schema_update": { + "name": "webhook_graph_schema_update", + "schema": "", + "columns": { + "webhook_id": { + "name": "webhook_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "webhook_graph_schema_update_webhook_id_organization_webhook_configs_id_fk": { + "name": "webhook_graph_schema_update_webhook_id_organization_webhook_configs_id_fk", + "tableFrom": "webhook_graph_schema_update", + "tableTo": "organization_webhook_configs", + "columnsFrom": [ + "webhook_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "webhook_graph_schema_update_federated_graph_id_federated_graphs_id_fk": { + "name": "webhook_graph_schema_update_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "webhook_graph_schema_update", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": { + "webhook_graph_schema_update_webhook_id_federated_graph_id_pk": { + "name": "webhook_graph_schema_update_webhook_id_federated_graph_id_pk", + "columns": [ + "webhook_id", + "federated_graph_id" + ] + } + }, + "uniqueConstraints": {} + } + }, + "enums": { + "git_installation_type": { + "name": "git_installation_type", + "values": { + "PERSONAL": "PERSONAL", + "ORGANIZATION": "ORGANIZATION" + } + }, + "integration_type": { + "name": "integration_type", + "values": { + "slack": "slack" + } + }, + "lint_rules": { + "name": "lint_rules", + "values": { + "FIELD_NAMES_SHOULD_BE_CAMEL_CASE": "FIELD_NAMES_SHOULD_BE_CAMEL_CASE", + "TYPE_NAMES_SHOULD_BE_PASCAL_CASE": "TYPE_NAMES_SHOULD_BE_PASCAL_CASE", + "SHOULD_NOT_HAVE_TYPE_PREFIX": "SHOULD_NOT_HAVE_TYPE_PREFIX", + "SHOULD_NOT_HAVE_TYPE_SUFFIX": "SHOULD_NOT_HAVE_TYPE_SUFFIX", + "SHOULD_NOT_HAVE_INPUT_PREFIX": "SHOULD_NOT_HAVE_INPUT_PREFIX", + "SHOULD_HAVE_INPUT_SUFFIX": "SHOULD_HAVE_INPUT_SUFFIX", + "SHOULD_NOT_HAVE_ENUM_PREFIX": "SHOULD_NOT_HAVE_ENUM_PREFIX", + "SHOULD_NOT_HAVE_ENUM_SUFFIX": "SHOULD_NOT_HAVE_ENUM_SUFFIX", + "SHOULD_NOT_HAVE_INTERFACE_PREFIX": "SHOULD_NOT_HAVE_INTERFACE_PREFIX", + "SHOULD_NOT_HAVE_INTERFACE_SUFFIX": "SHOULD_NOT_HAVE_INTERFACE_SUFFIX", + "ENUM_VALUES_SHOULD_BE_UPPER_CASE": "ENUM_VALUES_SHOULD_BE_UPPER_CASE", + "ORDER_FIELDS": "ORDER_FIELDS", + "ORDER_ENUM_VALUES": "ORDER_ENUM_VALUES", + "ORDER_DEFINITIONS": "ORDER_DEFINITIONS", + "ALL_TYPES_REQUIRE_DESCRIPTION": "ALL_TYPES_REQUIRE_DESCRIPTION", + "DISALLOW_CASE_INSENSITIVE_ENUM_VALUES": "DISALLOW_CASE_INSENSITIVE_ENUM_VALUES", + "NO_TYPENAME_PREFIX_IN_TYPE_FIELDS": "NO_TYPENAME_PREFIX_IN_TYPE_FIELDS", + "REQUIRE_DEPRECATION_REASON": "REQUIRE_DEPRECATION_REASON", + "REQUIRE_DEPRECATION_DATE": "REQUIRE_DEPRECATION_DATE" + } + }, + "lint_severity": { + "name": "lint_severity", + "values": { + "warn": "warn", + "error": "error" + } + }, + "member_role": { + "name": "member_role", + "values": { + "admin": "admin", + "developer": "developer", + "viewer": "viewer" + } + }, + "schema_change_type": { + "name": "schema_change_type", + "values": { + "FIELD_ARGUMENT_DESCRIPTION_CHANGED": "FIELD_ARGUMENT_DESCRIPTION_CHANGED", + "FIELD_ARGUMENT_DEFAULT_CHANGED": "FIELD_ARGUMENT_DEFAULT_CHANGED", + "FIELD_ARGUMENT_TYPE_CHANGED": "FIELD_ARGUMENT_TYPE_CHANGED", + "DIRECTIVE_REMOVED": "DIRECTIVE_REMOVED", + "DIRECTIVE_ADDED": "DIRECTIVE_ADDED", + "DIRECTIVE_DESCRIPTION_CHANGED": "DIRECTIVE_DESCRIPTION_CHANGED", + "DIRECTIVE_LOCATION_ADDED": "DIRECTIVE_LOCATION_ADDED", + "DIRECTIVE_LOCATION_REMOVED": "DIRECTIVE_LOCATION_REMOVED", + "DIRECTIVE_ARGUMENT_ADDED": "DIRECTIVE_ARGUMENT_ADDED", + "DIRECTIVE_ARGUMENT_REMOVED": "DIRECTIVE_ARGUMENT_REMOVED", + "DIRECTIVE_ARGUMENT_DESCRIPTION_CHANGED": "DIRECTIVE_ARGUMENT_DESCRIPTION_CHANGED", + "DIRECTIVE_ARGUMENT_DEFAULT_VALUE_CHANGED": "DIRECTIVE_ARGUMENT_DEFAULT_VALUE_CHANGED", + "DIRECTIVE_ARGUMENT_TYPE_CHANGED": "DIRECTIVE_ARGUMENT_TYPE_CHANGED", + "ENUM_VALUE_REMOVED": "ENUM_VALUE_REMOVED", + "ENUM_VALUE_ADDED": "ENUM_VALUE_ADDED", + "ENUM_VALUE_DESCRIPTION_CHANGED": "ENUM_VALUE_DESCRIPTION_CHANGED", + "ENUM_VALUE_DEPRECATION_REASON_CHANGED": "ENUM_VALUE_DEPRECATION_REASON_CHANGED", + "ENUM_VALUE_DEPRECATION_REASON_ADDED": "ENUM_VALUE_DEPRECATION_REASON_ADDED", + "ENUM_VALUE_DEPRECATION_REASON_REMOVED": "ENUM_VALUE_DEPRECATION_REASON_REMOVED", + "FIELD_REMOVED": "FIELD_REMOVED", + "FIELD_ADDED": "FIELD_ADDED", + "FIELD_DESCRIPTION_CHANGED": "FIELD_DESCRIPTION_CHANGED", + "FIELD_DESCRIPTION_ADDED": "FIELD_DESCRIPTION_ADDED", + "FIELD_DESCRIPTION_REMOVED": "FIELD_DESCRIPTION_REMOVED", + "FIELD_DEPRECATION_ADDED": "FIELD_DEPRECATION_ADDED", + "FIELD_DEPRECATION_REMOVED": "FIELD_DEPRECATION_REMOVED", + "FIELD_DEPRECATION_REASON_CHANGED": "FIELD_DEPRECATION_REASON_CHANGED", + "FIELD_DEPRECATION_REASON_ADDED": "FIELD_DEPRECATION_REASON_ADDED", + "FIELD_DEPRECATION_REASON_REMOVED": "FIELD_DEPRECATION_REASON_REMOVED", + "FIELD_TYPE_CHANGED": "FIELD_TYPE_CHANGED", + "FIELD_ARGUMENT_ADDED": "FIELD_ARGUMENT_ADDED", + "FIELD_ARGUMENT_REMOVED": "FIELD_ARGUMENT_REMOVED", + "INPUT_FIELD_REMOVED": "INPUT_FIELD_REMOVED", + "INPUT_FIELD_ADDED": "INPUT_FIELD_ADDED", + "INPUT_FIELD_DESCRIPTION_ADDED": "INPUT_FIELD_DESCRIPTION_ADDED", + "INPUT_FIELD_DESCRIPTION_REMOVED": "INPUT_FIELD_DESCRIPTION_REMOVED", + "INPUT_FIELD_DESCRIPTION_CHANGED": "INPUT_FIELD_DESCRIPTION_CHANGED", + "INPUT_FIELD_DEFAULT_VALUE_CHANGED": "INPUT_FIELD_DEFAULT_VALUE_CHANGED", + "INPUT_FIELD_TYPE_CHANGED": "INPUT_FIELD_TYPE_CHANGED", + "OBJECT_TYPE_INTERFACE_ADDED": "OBJECT_TYPE_INTERFACE_ADDED", + "OBJECT_TYPE_INTERFACE_REMOVED": "OBJECT_TYPE_INTERFACE_REMOVED", + "SCHEMA_QUERY_TYPE_CHANGED": "SCHEMA_QUERY_TYPE_CHANGED", + "SCHEMA_MUTATION_TYPE_CHANGED": "SCHEMA_MUTATION_TYPE_CHANGED", + "SCHEMA_SUBSCRIPTION_TYPE_CHANGED": "SCHEMA_SUBSCRIPTION_TYPE_CHANGED", + "TYPE_REMOVED": "TYPE_REMOVED", + "TYPE_ADDED": "TYPE_ADDED", + "TYPE_KIND_CHANGED": "TYPE_KIND_CHANGED", + "TYPE_DESCRIPTION_CHANGED": "TYPE_DESCRIPTION_CHANGED", + "TYPE_DESCRIPTION_REMOVED": "TYPE_DESCRIPTION_REMOVED", + "TYPE_DESCRIPTION_ADDED": "TYPE_DESCRIPTION_ADDED", + "UNION_MEMBER_REMOVED": "UNION_MEMBER_REMOVED", + "UNION_MEMBER_ADDED": "UNION_MEMBER_ADDED" + } + }, + "subscription_protocol": { + "name": "subscription_protocol", + "values": { + "ws": "ws", + "sse": "sse", + "sse_post": "sse_post" + } + }, + "status": { + "name": "status", + "values": { + "incomplete": "incomplete", + "incomplete_expired": "incomplete_expired", + "trialing": "trialing", + "active": "active", + "past_due": "past_due", + "canceled": "canceled", + "unpaid": "unpaid", + "paused": "paused" + } + }, + "target_type": { + "name": "target_type", + "values": { + "federated": "federated", + "subgraph": "subgraph", + "graph": "graph" + } + } + }, + "schemas": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/controlplane/migrations/meta/0082_snapshot.json b/controlplane/migrations/meta/0082_snapshot.json new file mode 100644 index 0000000000..a2482c628a --- /dev/null +++ b/controlplane/migrations/meta/0082_snapshot.json @@ -0,0 +1,3711 @@ +{ + "id": "9516e493-e237-4cc9-916e-5dc7af7c8376", + "prevId": "dfc325d2-53af-404e-a2a5-dd4c6376e2e5", + "version": "5", + "dialect": "pg", + "tables": { + "api_key_resources": { + "name": "api_key_resources", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "api_key_id": { + "name": "api_key_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "api_key_resources_api_key_id_api_keys_id_fk": { + "name": "api_key_resources_api_key_id_api_keys_id_fk", + "tableFrom": "api_key_resources", + "tableTo": "api_keys", + "columnsFrom": [ + "api_key_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "api_key_resources_target_id_targets_id_fk": { + "name": "api_key_resources_target_id_targets_id_fk", + "tableFrom": "api_key_resources", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "api_keys": { + "name": "api_keys", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "key": { + "name": "key", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "last_used_at": { + "name": "last_used_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "apikey_name_idx": { + "name": "apikey_name_idx", + "columns": [ + "name", + "organization_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "api_keys_user_id_users_id_fk": { + "name": "api_keys_user_id_users_id_fk", + "tableFrom": "api_keys", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "api_keys_organization_id_organizations_id_fk": { + "name": "api_keys_organization_id_organizations_id_fk", + "tableFrom": "api_keys", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "api_keys_key_unique": { + "name": "api_keys_key_unique", + "nullsNotDistinct": false, + "columns": [ + "key" + ] + } + } + }, + "audit_logs": { + "name": "audit_logs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "action": { + "name": "action", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "audit_action": { + "name": "audit_action", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "auditable_type": { + "name": "auditable_type", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "auditable_display_name": { + "name": "auditable_display_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "target_type": { + "name": "target_type", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "target_display_name": { + "name": "target_display_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "target_namespace_id": { + "name": "target_namespace_id", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "target_namespace": { + "name": "target_namespace", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "actor_id": { + "name": "actor_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "actor_display_name": { + "name": "actor_display_name", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "actor_type": { + "name": "actor_type", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "audit_logs_organization_id_organizations_id_fk": { + "name": "audit_logs_organization_id_organizations_id_fk", + "tableFrom": "audit_logs", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "billing_plans": { + "name": "billing_plans", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "active": { + "name": "active", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "price": { + "name": "price", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "features": { + "name": "features", + "type": "json", + "primaryKey": false, + "notNull": true + }, + "stripe_price_id": { + "name": "stripe_price_id", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "weight": { + "name": "weight", + "type": "integer", + "primaryKey": false, + "notNull": true, + "default": 0 + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "billing_subscriptions": { + "name": "billing_subscriptions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "metadata": { + "name": "metadata", + "type": "json", + "primaryKey": false, + "notNull": true + }, + "status": { + "name": "status", + "type": "status", + "primaryKey": false, + "notNull": true + }, + "price_id": { + "name": "price_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "quantity": { + "name": "quantity", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "cancel_at_period_end": { + "name": "cancel_at_period_end", + "type": "boolean", + "primaryKey": false, + "notNull": true + }, + "cancel_at": { + "name": "cancel_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "canceled_at": { + "name": "canceled_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "current_period_start": { + "name": "current_period_start", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "current_period_end": { + "name": "current_period_end", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "ended_at": { + "name": "ended_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "trial_start": { + "name": "trial_start", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "trial_end": { + "name": "trial_end", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "billing_subscriptions_organization_id_organizations_id_fk": { + "name": "billing_subscriptions_organization_id_organizations_id_fk", + "tableFrom": "billing_subscriptions", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "discussion_thread": { + "name": "discussion_thread", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "discussion_id": { + "name": "discussion_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "content_markdown": { + "name": "content_markdown", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "content_json": { + "name": "content_json", + "type": "json", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "created_by_id": { + "name": "created_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "is_deleted": { + "name": "is_deleted", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "discussion_thread_discussion_id_discussions_id_fk": { + "name": "discussion_thread_discussion_id_discussions_id_fk", + "tableFrom": "discussion_thread", + "tableTo": "discussions", + "columnsFrom": [ + "discussion_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "discussion_thread_created_by_id_users_id_fk": { + "name": "discussion_thread_created_by_id_users_id_fk", + "tableFrom": "discussion_thread", + "tableTo": "users", + "columnsFrom": [ + "created_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "discussions": { + "name": "discussions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "reference_line": { + "name": "reference_line", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "is_resolved": { + "name": "is_resolved", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "discussions_target_id_targets_id_fk": { + "name": "discussions_target_id_targets_id_fk", + "tableFrom": "discussions", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "discussions_schema_version_id_schema_versions_id_fk": { + "name": "discussions_schema_version_id_schema_versions_id_fk", + "tableFrom": "discussions", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "federated_graph_clients": { + "name": "federated_graph_clients", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "created_by_id": { + "name": "created_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "updated_by_id": { + "name": "updated_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "federated_graph_clients_federated_graph_id_federated_graphs_id_fk": { + "name": "federated_graph_clients_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "federated_graph_clients", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_clients_created_by_id_users_id_fk": { + "name": "federated_graph_clients_created_by_id_users_id_fk", + "tableFrom": "federated_graph_clients", + "tableTo": "users", + "columnsFrom": [ + "created_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_clients_updated_by_id_users_id_fk": { + "name": "federated_graph_clients_updated_by_id_users_id_fk", + "tableFrom": "federated_graph_clients", + "tableTo": "users", + "columnsFrom": [ + "updated_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "federated_graph_client_name": { + "name": "federated_graph_client_name", + "nullsNotDistinct": false, + "columns": [ + "federated_graph_id", + "name" + ] + } + } + }, + "federated_graph_persisted_operations": { + "name": "federated_graph_persisted_operations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "client_id": { + "name": "client_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "operation_id": { + "name": "operation_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "file_path": { + "name": "file_path", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "operation_names": { + "name": "operation_names", + "type": "text[]", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "operation_content": { + "name": "operation_content", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_by_id": { + "name": "created_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "updated_by_id": { + "name": "updated_by_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "federated_graph_persisted_operations_federated_graph_id_federated_graphs_id_fk": { + "name": "federated_graph_persisted_operations_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "federated_graph_persisted_operations", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_persisted_operations_client_id_federated_graph_clients_id_fk": { + "name": "federated_graph_persisted_operations_client_id_federated_graph_clients_id_fk", + "tableFrom": "federated_graph_persisted_operations", + "tableTo": "federated_graph_clients", + "columnsFrom": [ + "client_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_persisted_operations_created_by_id_users_id_fk": { + "name": "federated_graph_persisted_operations_created_by_id_users_id_fk", + "tableFrom": "federated_graph_persisted_operations", + "tableTo": "users", + "columnsFrom": [ + "created_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graph_persisted_operations_updated_by_id_users_id_fk": { + "name": "federated_graph_persisted_operations_updated_by_id_users_id_fk", + "tableFrom": "federated_graph_persisted_operations", + "tableTo": "users", + "columnsFrom": [ + "updated_by_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "federated_graph_persisted_operations_file_path_unique": { + "name": "federated_graph_persisted_operations_file_path_unique", + "nullsNotDistinct": false, + "columns": [ + "file_path" + ] + }, + "federated_graph_operation_id": { + "name": "federated_graph_operation_id", + "nullsNotDistinct": false, + "columns": [ + "federated_graph_id", + "client_id", + "operation_id" + ] + } + } + }, + "federated_graphs": { + "name": "federated_graphs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "routing_url": { + "name": "routing_url", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "composed_schema_version_id": { + "name": "composed_schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "router_config_path": { + "name": "router_config_path", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "federated_graphs_target_id_targets_id_fk": { + "name": "federated_graphs_target_id_targets_id_fk", + "tableFrom": "federated_graphs", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_graphs_composed_schema_version_id_schema_versions_id_fk": { + "name": "federated_graphs_composed_schema_version_id_schema_versions_id_fk", + "tableFrom": "federated_graphs", + "tableTo": "schema_versions", + "columnsFrom": [ + "composed_schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "git_installations": { + "name": "git_installations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "type": { + "name": "type", + "type": "git_installation_type", + "primaryKey": false, + "notNull": true + }, + "provider_account_id": { + "name": "provider_account_id", + "type": "bigint", + "primaryKey": false, + "notNull": true + }, + "provider_installation_id": { + "name": "provider_installation_id", + "type": "bigint", + "primaryKey": false, + "notNull": true + }, + "provider_name": { + "name": "provider_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "oauth_token": { + "name": "oauth_token", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "graph_api_tokens": { + "name": "graph_api_tokens", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "token": { + "name": "token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "last_used_at": { + "name": "last_used_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "graphApiToken_name_idx": { + "name": "graphApiToken_name_idx", + "columns": [ + "name", + "federated_graph_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "graph_api_tokens_organization_id_organizations_id_fk": { + "name": "graph_api_tokens_organization_id_organizations_id_fk", + "tableFrom": "graph_api_tokens", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_api_tokens_federated_graph_id_federated_graphs_id_fk": { + "name": "graph_api_tokens_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "graph_api_tokens", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_api_tokens_created_by_users_id_fk": { + "name": "graph_api_tokens_created_by_users_id_fk", + "tableFrom": "graph_api_tokens", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "graph_api_tokens_token_unique": { + "name": "graph_api_tokens_token_unique", + "nullsNotDistinct": false, + "columns": [ + "token" + ] + } + } + }, + "graph_composition_subgraphs": { + "name": "graph_composition_subgraphs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "graph_composition_id": { + "name": "graph_composition_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "graph_composition_subgraphs_graph_composition_id_graph_compositions_id_fk": { + "name": "graph_composition_subgraphs_graph_composition_id_graph_compositions_id_fk", + "tableFrom": "graph_composition_subgraphs", + "tableTo": "graph_compositions", + "columnsFrom": [ + "graph_composition_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_composition_subgraphs_schema_version_id_schema_versions_id_fk": { + "name": "graph_composition_subgraphs_schema_version_id_schema_versions_id_fk", + "tableFrom": "graph_composition_subgraphs", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "graph_compositions": { + "name": "graph_compositions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "is_composable": { + "name": "is_composable", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "composition_errors": { + "name": "composition_errors", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "router_config": { + "name": "router_config", + "type": "jsonb", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "graph_compositions_schema_version_id_schema_versions_id_fk": { + "name": "graph_compositions_schema_version_id_schema_versions_id_fk", + "tableFrom": "graph_compositions", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_compositions_created_by_users_id_fk": { + "name": "graph_compositions_created_by_users_id_fk", + "tableFrom": "graph_compositions", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "graph_request_keys": { + "name": "graph_request_keys", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "privateKey": { + "name": "privateKey", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "publicKey": { + "name": "publicKey", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "graph_request_keys_organization_id_organizations_id_fk": { + "name": "graph_request_keys_organization_id_organizations_id_fk", + "tableFrom": "graph_request_keys", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "graph_request_keys_federated_graph_id_federated_graphs_id_fk": { + "name": "graph_request_keys_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "graph_request_keys", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "graph_request_keys_federated_graph_id_unique": { + "name": "graph_request_keys_federated_graph_id_unique", + "nullsNotDistinct": false, + "columns": [ + "federated_graph_id" + ] + }, + "graph_request_keys_privateKey_unique": { + "name": "graph_request_keys_privateKey_unique", + "nullsNotDistinct": false, + "columns": [ + "privateKey" + ] + }, + "graph_request_keys_publicKey_unique": { + "name": "graph_request_keys_publicKey_unique", + "nullsNotDistinct": false, + "columns": [ + "publicKey" + ] + } + } + }, + "namespace_lint_check_config": { + "name": "namespace_lint_check_config", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "namespace_id": { + "name": "namespace_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "lint_rule": { + "name": "lint_rule", + "type": "lint_rules", + "primaryKey": false, + "notNull": true + }, + "severity_level": { + "name": "severity_level", + "type": "lint_severity", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "namespace_lint_check_config_namespace_id_namespaces_id_fk": { + "name": "namespace_lint_check_config_namespace_id_namespaces_id_fk", + "tableFrom": "namespace_lint_check_config", + "tableTo": "namespaces", + "columnsFrom": [ + "namespace_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "namespaces": { + "name": "namespaces", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "enable_linting": { + "name": "enable_linting", + "type": "boolean", + "primaryKey": false, + "notNull": true, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "namespaces_organization_id_organizations_id_fk": { + "name": "namespaces_organization_id_organizations_id_fk", + "tableFrom": "namespaces", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "namespaces_created_by_users_id_fk": { + "name": "namespaces_created_by_users_id_fk", + "tableFrom": "namespaces", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "unique_name": { + "name": "unique_name", + "nullsNotDistinct": false, + "columns": [ + "name", + "organization_id" + ] + } + } + }, + "oidc_providers": { + "name": "oidc_providers", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "alias": { + "name": "alias", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "endpoint": { + "name": "endpoint", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "oidc_providers_organization_id_organizations_id_fk": { + "name": "oidc_providers_organization_id_organizations_id_fk", + "tableFrom": "oidc_providers", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "oidc_providers_alias_unique": { + "name": "oidc_providers_alias_unique", + "nullsNotDistinct": false, + "columns": [ + "alias" + ] + } + } + }, + "operation_change_overrides": { + "name": "operation_change_overrides", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "namespace_id": { + "name": "namespace_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "change_type": { + "name": "change_type", + "type": "schema_change_type", + "primaryKey": false, + "notNull": true + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "hash_change_idx": { + "name": "hash_change_idx", + "columns": [ + "hash", + "namespace_id", + "change_type", + "path" + ], + "isUnique": true + } + }, + "foreignKeys": { + "operation_change_overrides_created_by_users_id_fk": { + "name": "operation_change_overrides_created_by_users_id_fk", + "tableFrom": "operation_change_overrides", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "operation_ignore_all_overrides": { + "name": "operation_ignore_all_overrides", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "namespace_id": { + "name": "namespace_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "hash_namespace_ignore_idx": { + "name": "hash_namespace_ignore_idx", + "columns": [ + "hash", + "namespace_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "operation_ignore_all_overrides_created_by_users_id_fk": { + "name": "operation_ignore_all_overrides_created_by_users_id_fk", + "tableFrom": "operation_ignore_all_overrides", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_billing": { + "name": "organization_billing", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "plan": { + "name": "plan", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "stripe_customer_id": { + "name": "stripe_customer_id", + "type": "text", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "organization_billing_idx": { + "name": "organization_billing_idx", + "columns": [ + "organization_id" + ], + "isUnique": true + }, + "organization_billing_stripe_idx": { + "name": "organization_billing_stripe_idx", + "columns": [ + "stripe_customer_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_billing_organization_id_organizations_id_fk": { + "name": "organization_billing_organization_id_organizations_id_fk", + "tableFrom": "organization_billing", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_features": { + "name": "organization_features", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "feature": { + "name": "feature", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "enabled": { + "name": "enabled", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": true + }, + "limit": { + "name": "limit", + "type": "real", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "organization_feature_idx": { + "name": "organization_feature_idx", + "columns": [ + "organization_id", + "feature" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_features_organization_id_organizations_id_fk": { + "name": "organization_features_organization_id_organizations_id_fk", + "tableFrom": "organization_features", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_integrations": { + "name": "organization_integrations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "events": { + "name": "events", + "type": "text[]", + "primaryKey": false, + "notNull": false + }, + "type": { + "name": "type", + "type": "integration_type", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "organization_integration_idx": { + "name": "organization_integration_idx", + "columns": [ + "organization_id", + "name" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_integrations_organization_id_organizations_id_fk": { + "name": "organization_integrations_organization_id_organizations_id_fk", + "tableFrom": "organization_integrations", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_invitations": { + "name": "organization_invitations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "invited_by": { + "name": "invited_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "accepted": { + "name": "accepted", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "organization_invitations_organization_id_organizations_id_fk": { + "name": "organization_invitations_organization_id_organizations_id_fk", + "tableFrom": "organization_invitations", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "organization_invitations_user_id_users_id_fk": { + "name": "organization_invitations_user_id_users_id_fk", + "tableFrom": "organization_invitations", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "organization_invitations_invited_by_users_id_fk": { + "name": "organization_invitations_invited_by_users_id_fk", + "tableFrom": "organization_invitations", + "tableTo": "users", + "columnsFrom": [ + "invited_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_member_roles": { + "name": "organization_member_roles", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_member_id": { + "name": "organization_member_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "role": { + "name": "role", + "type": "member_role", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "organization_member_role_idx": { + "name": "organization_member_role_idx", + "columns": [ + "organization_member_id", + "role" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_member_roles_organization_member_id_organization_members_id_fk": { + "name": "organization_member_roles_organization_member_id_organization_members_id_fk", + "tableFrom": "organization_member_roles", + "tableTo": "organization_members", + "columnsFrom": [ + "organization_member_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organization_webhook_configs": { + "name": "organization_webhook_configs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "endpoint": { + "name": "endpoint", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "key": { + "name": "key", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "events": { + "name": "events", + "type": "text[]", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "organization_webhook_configs_organization_id_organizations_id_fk": { + "name": "organization_webhook_configs_organization_id_organizations_id_fk", + "tableFrom": "organization_webhook_configs", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "organizations": { + "name": "organizations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "invite_code": { + "name": "invite_code", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "organizations_user_id_users_id_fk": { + "name": "organizations_user_id_users_id_fk", + "tableFrom": "organizations", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "organizations_slug_unique": { + "name": "organizations_slug_unique", + "nullsNotDistinct": false, + "columns": [ + "slug" + ] + } + } + }, + "organization_members": { + "name": "organization_members", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "organization_member_idx": { + "name": "organization_member_idx", + "columns": [ + "id" + ], + "isUnique": true + }, + "unique_organization_member_idx": { + "name": "unique_organization_member_idx", + "columns": [ + "user_id", + "organization_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "organization_members_user_id_users_id_fk": { + "name": "organization_members_user_id_users_id_fk", + "tableFrom": "organization_members", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "organization_members_organization_id_organizations_id_fk": { + "name": "organization_members_organization_id_organizations_id_fk", + "tableFrom": "organization_members", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_change_action": { + "name": "schema_check_change_action", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_check_id": { + "name": "schema_check_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "change_type": { + "name": "change_type", + "type": "schema_change_type", + "primaryKey": false, + "notNull": false + }, + "change_message": { + "name": "change_message", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "is_breaking": { + "name": "is_breaking", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_change_action_schema_check_id_schema_checks_id_fk": { + "name": "schema_check_change_action_schema_check_id_schema_checks_id_fk", + "tableFrom": "schema_check_change_action", + "tableTo": "schema_checks", + "columnsFrom": [ + "schema_check_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_change_operation_usage": { + "name": "schema_check_change_operation_usage", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_check_change_action_id": { + "name": "schema_check_change_action_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "type": { + "name": "type", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "first_seen_at": { + "name": "first_seen_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "last_seen_at": { + "name": "last_seen_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "is_safe_override": { + "name": "is_safe_override", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_change_operation_usage_schema_check_change_action_id_schema_check_change_action_id_fk": { + "name": "schema_check_change_operation_usage_schema_check_change_action_id_schema_check_change_action_id_fk", + "tableFrom": "schema_check_change_operation_usage", + "tableTo": "schema_check_change_action", + "columnsFrom": [ + "schema_check_change_action_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "schema_check_change_operation_usage_federated_graph_id_federated_graphs_id_fk": { + "name": "schema_check_change_operation_usage_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "schema_check_change_operation_usage", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_composition": { + "name": "schema_check_composition", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_check_id": { + "name": "schema_check_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "composition_errors": { + "name": "composition_errors", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "composed_schema_sdl": { + "name": "composed_schema_sdl", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_composition_schema_check_id_schema_checks_id_fk": { + "name": "schema_check_composition_schema_check_id_schema_checks_id_fk", + "tableFrom": "schema_check_composition", + "tableTo": "schema_checks", + "columnsFrom": [ + "schema_check_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "schema_check_composition_target_id_targets_id_fk": { + "name": "schema_check_composition_target_id_targets_id_fk", + "tableFrom": "schema_check_composition", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_federated_graphs": { + "name": "schema_check_federated_graphs", + "schema": "", + "columns": { + "check_id": { + "name": "check_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "traffic_check_days": { + "name": "traffic_check_days", + "type": "integer", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_federated_graphs_check_id_schema_checks_id_fk": { + "name": "schema_check_federated_graphs_check_id_schema_checks_id_fk", + "tableFrom": "schema_check_federated_graphs", + "tableTo": "schema_checks", + "columnsFrom": [ + "check_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "schema_check_federated_graphs_federated_graph_id_federated_graphs_id_fk": { + "name": "schema_check_federated_graphs_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "schema_check_federated_graphs", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_check_lint_action": { + "name": "schema_check_lint_action", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_check_id": { + "name": "schema_check_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "lint_rule_type": { + "name": "lint_rule_type", + "type": "lint_rules", + "primaryKey": false, + "notNull": false + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "is_error": { + "name": "is_error", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "location": { + "name": "location", + "type": "json", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_check_lint_action_schema_check_id_schema_checks_id_fk": { + "name": "schema_check_lint_action_schema_check_id_schema_checks_id_fk", + "tableFrom": "schema_check_lint_action", + "tableTo": "schema_checks", + "columnsFrom": [ + "schema_check_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_checks": { + "name": "schema_checks", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "is_composable": { + "name": "is_composable", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "is_deleted": { + "name": "is_deleted", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "has_breaking_changes": { + "name": "has_breaking_changes", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "has_lint_errors": { + "name": "has_lint_errors", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "has_client_traffic": { + "name": "has_client_traffic", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "proposed_subgraph_schema_sdl": { + "name": "proposed_subgraph_schema_sdl", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "gh_details": { + "name": "gh_details", + "type": "json", + "primaryKey": false, + "notNull": false + }, + "forced_success": { + "name": "forced_success", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + } + }, + "indexes": {}, + "foreignKeys": { + "schema_checks_target_id_targets_id_fk": { + "name": "schema_checks_target_id_targets_id_fk", + "tableFrom": "schema_checks", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_versions": { + "name": "schema_versions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "schema_sdl": { + "name": "schema_sdl", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_versions_target_id_targets_id_fk": { + "name": "schema_versions_target_id_targets_id_fk", + "tableFrom": "schema_versions", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "schema_version_change_action": { + "name": "schema_version_change_action", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "change_type": { + "name": "change_type", + "type": "schema_change_type", + "primaryKey": false, + "notNull": true + }, + "change_message": { + "name": "change_message", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": { + "schema_version_change_action_schema_version_id_schema_versions_id_fk": { + "name": "schema_version_change_action_schema_version_id_schema_versions_id_fk", + "tableFrom": "schema_version_change_action", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "sessions": { + "name": "sessions", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "refresh_token": { + "name": "refresh_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "id_token": { + "name": "id_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "expires_at": { + "name": "expires_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "sessions_user_id_users_id_fk": { + "name": "sessions_user_id_users_id_fk", + "tableFrom": "sessions", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "sessions_user_id_unique": { + "name": "sessions_user_id_unique", + "nullsNotDistinct": false, + "columns": [ + "user_id" + ] + } + } + }, + "slack_installations": { + "name": "slack_installations", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "slack_organization_id": { + "name": "slack_organization_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slack_organization_name": { + "name": "slack_organization_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slack_channel_id": { + "name": "slack_channel_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slack_channel_name": { + "name": "slack_channel_name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "slack_user_id": { + "name": "slack_user_id", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "access_token": { + "name": "access_token", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "updated_at": { + "name": "updated_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": false + } + }, + "indexes": { + "slack_installations_idx": { + "name": "slack_installations_idx", + "columns": [ + "organization_id", + "slack_organization_id", + "slack_channel_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "slack_installations_organization_id_organizations_id_fk": { + "name": "slack_installations_organization_id_organizations_id_fk", + "tableFrom": "slack_installations", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "slack_integration_configs": { + "name": "slack_integration_configs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "integration_id": { + "name": "integration_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "endpoint": { + "name": "endpoint", + "type": "text", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "slack_integration_configs_integration_id_organization_integrations_id_fk": { + "name": "slack_integration_configs_integration_id_organization_integrations_id_fk", + "tableFrom": "slack_integration_configs", + "tableTo": "organization_integrations", + "columnsFrom": [ + "integration_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "slack_schema_update_event_configs": { + "name": "slack_schema_update_event_configs", + "schema": "", + "columns": { + "slack_integration_config_id": { + "name": "slack_integration_config_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "slack_schema_update_event_configs_slack_integration_config_id_slack_integration_configs_id_fk": { + "name": "slack_schema_update_event_configs_slack_integration_config_id_slack_integration_configs_id_fk", + "tableFrom": "slack_schema_update_event_configs", + "tableTo": "slack_integration_configs", + "columnsFrom": [ + "slack_integration_config_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "slack_schema_update_event_configs_federated_graph_id_federated_graphs_id_fk": { + "name": "slack_schema_update_event_configs_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "slack_schema_update_event_configs", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "subgraph_members": { + "name": "subgraph_members", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "user_id": { + "name": "user_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "subgraph_id": { + "name": "subgraph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": { + "unique_subgraph_member_idx": { + "name": "unique_subgraph_member_idx", + "columns": [ + "user_id", + "subgraph_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "subgraph_members_user_id_users_id_fk": { + "name": "subgraph_members_user_id_users_id_fk", + "tableFrom": "subgraph_members", + "tableTo": "users", + "columnsFrom": [ + "user_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "subgraph_members_subgraph_id_subgraphs_id_fk": { + "name": "subgraph_members_subgraph_id_subgraphs_id_fk", + "tableFrom": "subgraph_members", + "tableTo": "subgraphs", + "columnsFrom": [ + "subgraph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "subgraphs": { + "name": "subgraphs", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "routing_url": { + "name": "routing_url", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "subscription_url": { + "name": "subscription_url", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "subscription_protocol": { + "name": "subscription_protocol", + "type": "subscription_protocol", + "primaryKey": false, + "notNull": true, + "default": "'ws'" + }, + "schema_version_id": { + "name": "schema_version_id", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "subgraphs_schema_version_id_schema_versions_id_fk": { + "name": "subgraphs_schema_version_id_schema_versions_id_fk", + "tableFrom": "subgraphs", + "tableTo": "schema_versions", + "columnsFrom": [ + "schema_version_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "subgraphs_target_id_targets_id_fk": { + "name": "subgraphs_target_id_targets_id_fk", + "tableFrom": "subgraphs", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "federated_subgraphs": { + "name": "federated_subgraphs", + "schema": "", + "columns": { + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "subgraph_id": { + "name": "subgraph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "federated_subgraphs_federated_graph_id_federated_graphs_id_fk": { + "name": "federated_subgraphs_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "federated_subgraphs", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "federated_subgraphs_subgraph_id_subgraphs_id_fk": { + "name": "federated_subgraphs_subgraph_id_subgraphs_id_fk", + "tableFrom": "federated_subgraphs", + "tableTo": "subgraphs", + "columnsFrom": [ + "subgraph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": { + "federated_subgraphs_federated_graph_id_subgraph_id_pk": { + "name": "federated_subgraphs_federated_graph_id_subgraph_id_pk", + "columns": [ + "federated_graph_id", + "subgraph_id" + ] + } + }, + "uniqueConstraints": {} + }, + "target_label_matchers": { + "name": "target_label_matchers", + "schema": "", + "columns": { + "target_id": { + "name": "target_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "label_matcher": { + "name": "label_matcher", + "type": "text[]", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "target_label_matchers_target_id_targets_id_fk": { + "name": "target_label_matchers_target_id_targets_id_fk", + "tableFrom": "target_label_matchers", + "tableTo": "targets", + "columnsFrom": [ + "target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "targets": { + "name": "targets", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true, + "default": "gen_random_uuid()" + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "type": { + "name": "type", + "type": "target_type", + "primaryKey": false, + "notNull": false + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + }, + "labels": { + "name": "labels", + "type": "text[]", + "primaryKey": false, + "notNull": false + }, + "organization_id": { + "name": "organization_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "created_by": { + "name": "created_by", + "type": "uuid", + "primaryKey": false, + "notNull": false + }, + "readme": { + "name": "readme", + "type": "text", + "primaryKey": false, + "notNull": false + }, + "namespace_id": { + "name": "namespace_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": { + "organization_name_idx": { + "name": "organization_name_idx", + "columns": [ + "organization_id", + "type", + "name", + "namespace_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "targets_organization_id_organizations_id_fk": { + "name": "targets_organization_id_organizations_id_fk", + "tableFrom": "targets", + "tableTo": "organizations", + "columnsFrom": [ + "organization_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "targets_created_by_users_id_fk": { + "name": "targets_created_by_users_id_fk", + "tableFrom": "targets", + "tableTo": "users", + "columnsFrom": [ + "created_by" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "targets_namespace_id_namespaces_id_fk": { + "name": "targets_namespace_id_namespaces_id_fk", + "tableFrom": "targets", + "tableTo": "namespaces", + "columnsFrom": [ + "namespace_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "users": { + "name": "users", + "schema": "", + "columns": { + "id": { + "name": "id", + "type": "uuid", + "primaryKey": true, + "notNull": true + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true + }, + "created_at": { + "name": "created_at", + "type": "timestamp with time zone", + "primaryKey": false, + "notNull": true, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "users_email_unique": { + "name": "users_email_unique", + "nullsNotDistinct": false, + "columns": [ + "email" + ] + } + } + }, + "webhook_graph_schema_update": { + "name": "webhook_graph_schema_update", + "schema": "", + "columns": { + "webhook_id": { + "name": "webhook_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + }, + "federated_graph_id": { + "name": "federated_graph_id", + "type": "uuid", + "primaryKey": false, + "notNull": true + } + }, + "indexes": {}, + "foreignKeys": { + "webhook_graph_schema_update_webhook_id_organization_webhook_configs_id_fk": { + "name": "webhook_graph_schema_update_webhook_id_organization_webhook_configs_id_fk", + "tableFrom": "webhook_graph_schema_update", + "tableTo": "organization_webhook_configs", + "columnsFrom": [ + "webhook_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "webhook_graph_schema_update_federated_graph_id_federated_graphs_id_fk": { + "name": "webhook_graph_schema_update_federated_graph_id_federated_graphs_id_fk", + "tableFrom": "webhook_graph_schema_update", + "tableTo": "federated_graphs", + "columnsFrom": [ + "federated_graph_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": { + "webhook_graph_schema_update_webhook_id_federated_graph_id_pk": { + "name": "webhook_graph_schema_update_webhook_id_federated_graph_id_pk", + "columns": [ + "webhook_id", + "federated_graph_id" + ] + } + }, + "uniqueConstraints": {} + } + }, + "enums": { + "git_installation_type": { + "name": "git_installation_type", + "values": { + "PERSONAL": "PERSONAL", + "ORGANIZATION": "ORGANIZATION" + } + }, + "integration_type": { + "name": "integration_type", + "values": { + "slack": "slack" + } + }, + "lint_rules": { + "name": "lint_rules", + "values": { + "FIELD_NAMES_SHOULD_BE_CAMEL_CASE": "FIELD_NAMES_SHOULD_BE_CAMEL_CASE", + "TYPE_NAMES_SHOULD_BE_PASCAL_CASE": "TYPE_NAMES_SHOULD_BE_PASCAL_CASE", + "SHOULD_NOT_HAVE_TYPE_PREFIX": "SHOULD_NOT_HAVE_TYPE_PREFIX", + "SHOULD_NOT_HAVE_TYPE_SUFFIX": "SHOULD_NOT_HAVE_TYPE_SUFFIX", + "SHOULD_NOT_HAVE_INPUT_PREFIX": "SHOULD_NOT_HAVE_INPUT_PREFIX", + "SHOULD_HAVE_INPUT_SUFFIX": "SHOULD_HAVE_INPUT_SUFFIX", + "SHOULD_NOT_HAVE_ENUM_PREFIX": "SHOULD_NOT_HAVE_ENUM_PREFIX", + "SHOULD_NOT_HAVE_ENUM_SUFFIX": "SHOULD_NOT_HAVE_ENUM_SUFFIX", + "SHOULD_NOT_HAVE_INTERFACE_PREFIX": "SHOULD_NOT_HAVE_INTERFACE_PREFIX", + "SHOULD_NOT_HAVE_INTERFACE_SUFFIX": "SHOULD_NOT_HAVE_INTERFACE_SUFFIX", + "ENUM_VALUES_SHOULD_BE_UPPER_CASE": "ENUM_VALUES_SHOULD_BE_UPPER_CASE", + "ORDER_FIELDS": "ORDER_FIELDS", + "ORDER_ENUM_VALUES": "ORDER_ENUM_VALUES", + "ORDER_DEFINITIONS": "ORDER_DEFINITIONS", + "ALL_TYPES_REQUIRE_DESCRIPTION": "ALL_TYPES_REQUIRE_DESCRIPTION", + "DISALLOW_CASE_INSENSITIVE_ENUM_VALUES": "DISALLOW_CASE_INSENSITIVE_ENUM_VALUES", + "NO_TYPENAME_PREFIX_IN_TYPE_FIELDS": "NO_TYPENAME_PREFIX_IN_TYPE_FIELDS", + "REQUIRE_DEPRECATION_REASON": "REQUIRE_DEPRECATION_REASON", + "REQUIRE_DEPRECATION_DATE": "REQUIRE_DEPRECATION_DATE" + } + }, + "lint_severity": { + "name": "lint_severity", + "values": { + "warn": "warn", + "error": "error" + } + }, + "member_role": { + "name": "member_role", + "values": { + "admin": "admin", + "developer": "developer", + "viewer": "viewer" + } + }, + "schema_change_type": { + "name": "schema_change_type", + "values": { + "FIELD_ARGUMENT_DESCRIPTION_CHANGED": "FIELD_ARGUMENT_DESCRIPTION_CHANGED", + "FIELD_ARGUMENT_DEFAULT_CHANGED": "FIELD_ARGUMENT_DEFAULT_CHANGED", + "FIELD_ARGUMENT_TYPE_CHANGED": "FIELD_ARGUMENT_TYPE_CHANGED", + "DIRECTIVE_REMOVED": "DIRECTIVE_REMOVED", + "DIRECTIVE_ADDED": "DIRECTIVE_ADDED", + "DIRECTIVE_DESCRIPTION_CHANGED": "DIRECTIVE_DESCRIPTION_CHANGED", + "DIRECTIVE_LOCATION_ADDED": "DIRECTIVE_LOCATION_ADDED", + "DIRECTIVE_LOCATION_REMOVED": "DIRECTIVE_LOCATION_REMOVED", + "DIRECTIVE_ARGUMENT_ADDED": "DIRECTIVE_ARGUMENT_ADDED", + "DIRECTIVE_ARGUMENT_REMOVED": "DIRECTIVE_ARGUMENT_REMOVED", + "DIRECTIVE_ARGUMENT_DESCRIPTION_CHANGED": "DIRECTIVE_ARGUMENT_DESCRIPTION_CHANGED", + "DIRECTIVE_ARGUMENT_DEFAULT_VALUE_CHANGED": "DIRECTIVE_ARGUMENT_DEFAULT_VALUE_CHANGED", + "DIRECTIVE_ARGUMENT_TYPE_CHANGED": "DIRECTIVE_ARGUMENT_TYPE_CHANGED", + "ENUM_VALUE_REMOVED": "ENUM_VALUE_REMOVED", + "ENUM_VALUE_ADDED": "ENUM_VALUE_ADDED", + "ENUM_VALUE_DESCRIPTION_CHANGED": "ENUM_VALUE_DESCRIPTION_CHANGED", + "ENUM_VALUE_DEPRECATION_REASON_CHANGED": "ENUM_VALUE_DEPRECATION_REASON_CHANGED", + "ENUM_VALUE_DEPRECATION_REASON_ADDED": "ENUM_VALUE_DEPRECATION_REASON_ADDED", + "ENUM_VALUE_DEPRECATION_REASON_REMOVED": "ENUM_VALUE_DEPRECATION_REASON_REMOVED", + "FIELD_REMOVED": "FIELD_REMOVED", + "FIELD_ADDED": "FIELD_ADDED", + "FIELD_DESCRIPTION_CHANGED": "FIELD_DESCRIPTION_CHANGED", + "FIELD_DESCRIPTION_ADDED": "FIELD_DESCRIPTION_ADDED", + "FIELD_DESCRIPTION_REMOVED": "FIELD_DESCRIPTION_REMOVED", + "FIELD_DEPRECATION_ADDED": "FIELD_DEPRECATION_ADDED", + "FIELD_DEPRECATION_REMOVED": "FIELD_DEPRECATION_REMOVED", + "FIELD_DEPRECATION_REASON_CHANGED": "FIELD_DEPRECATION_REASON_CHANGED", + "FIELD_DEPRECATION_REASON_ADDED": "FIELD_DEPRECATION_REASON_ADDED", + "FIELD_DEPRECATION_REASON_REMOVED": "FIELD_DEPRECATION_REASON_REMOVED", + "FIELD_TYPE_CHANGED": "FIELD_TYPE_CHANGED", + "FIELD_ARGUMENT_ADDED": "FIELD_ARGUMENT_ADDED", + "FIELD_ARGUMENT_REMOVED": "FIELD_ARGUMENT_REMOVED", + "INPUT_FIELD_REMOVED": "INPUT_FIELD_REMOVED", + "INPUT_FIELD_ADDED": "INPUT_FIELD_ADDED", + "INPUT_FIELD_DESCRIPTION_ADDED": "INPUT_FIELD_DESCRIPTION_ADDED", + "INPUT_FIELD_DESCRIPTION_REMOVED": "INPUT_FIELD_DESCRIPTION_REMOVED", + "INPUT_FIELD_DESCRIPTION_CHANGED": "INPUT_FIELD_DESCRIPTION_CHANGED", + "INPUT_FIELD_DEFAULT_VALUE_CHANGED": "INPUT_FIELD_DEFAULT_VALUE_CHANGED", + "INPUT_FIELD_TYPE_CHANGED": "INPUT_FIELD_TYPE_CHANGED", + "OBJECT_TYPE_INTERFACE_ADDED": "OBJECT_TYPE_INTERFACE_ADDED", + "OBJECT_TYPE_INTERFACE_REMOVED": "OBJECT_TYPE_INTERFACE_REMOVED", + "SCHEMA_QUERY_TYPE_CHANGED": "SCHEMA_QUERY_TYPE_CHANGED", + "SCHEMA_MUTATION_TYPE_CHANGED": "SCHEMA_MUTATION_TYPE_CHANGED", + "SCHEMA_SUBSCRIPTION_TYPE_CHANGED": "SCHEMA_SUBSCRIPTION_TYPE_CHANGED", + "TYPE_REMOVED": "TYPE_REMOVED", + "TYPE_ADDED": "TYPE_ADDED", + "TYPE_KIND_CHANGED": "TYPE_KIND_CHANGED", + "TYPE_DESCRIPTION_CHANGED": "TYPE_DESCRIPTION_CHANGED", + "TYPE_DESCRIPTION_REMOVED": "TYPE_DESCRIPTION_REMOVED", + "TYPE_DESCRIPTION_ADDED": "TYPE_DESCRIPTION_ADDED", + "UNION_MEMBER_REMOVED": "UNION_MEMBER_REMOVED", + "UNION_MEMBER_ADDED": "UNION_MEMBER_ADDED" + } + }, + "subscription_protocol": { + "name": "subscription_protocol", + "values": { + "ws": "ws", + "sse": "sse", + "sse_post": "sse_post" + } + }, + "status": { + "name": "status", + "values": { + "incomplete": "incomplete", + "incomplete_expired": "incomplete_expired", + "trialing": "trialing", + "active": "active", + "past_due": "past_due", + "canceled": "canceled", + "unpaid": "unpaid", + "paused": "paused" + } + }, + "target_type": { + "name": "target_type", + "values": { + "federated": "federated", + "subgraph": "subgraph", + "graph": "graph" + } + } + }, + "schemas": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/controlplane/migrations/meta/_journal.json b/controlplane/migrations/meta/_journal.json index 3e123547ef..a9e551512c 100644 --- a/controlplane/migrations/meta/_journal.json +++ b/controlplane/migrations/meta/_journal.json @@ -568,6 +568,20 @@ "when": 1708283616058, "tag": "0080_large_night_nurse", "breakpoints": true + }, + { + "idx": 81, + "version": "5", + "when": 1709676926593, + "tag": "0081_ambitious_exiles", + "breakpoints": true + }, + { + "idx": 82, + "version": "5", + "when": 1709739595103, + "tag": "0082_gorgeous_sleeper", + "breakpoints": true } ] } \ No newline at end of file diff --git a/controlplane/package.json b/controlplane/package.json index 94c6a0d1ba..6123e31e66 100644 --- a/controlplane/package.json +++ b/controlplane/package.json @@ -85,8 +85,10 @@ "@bufbuild/protobuf": "^1.4.1", "@bufbuild/protoc-gen-es": "^1.4.1", "@connectrpc/protoc-gen-connect-es": "^1.1.3", + "@graphql-eslint/eslint-plugin": "^3.20.1", "@types/cookie": "^0.6.0", "@types/ejs": "^3.1.5", + "@types/eslint": "^8.56.2", "@types/lodash": "^4.14.202", "@types/node": "^18.19.21", "@types/nodemailer": "^6.4.14", diff --git a/controlplane/src/core/bufservices/PlatformService.ts b/controlplane/src/core/bufservices/PlatformService.ts index 0e885a2918..1a1d97ca93 100644 --- a/controlplane/src/core/bufservices/PlatformService.ts +++ b/controlplane/src/core/bufservices/PlatformService.ts @@ -13,6 +13,7 @@ import { CheckFederatedGraphResponse, CheckSubgraphSchemaResponse, CompositionError, + ConfigureNamespaceLintConfigResponse, CreateAPIKeyResponse, CreateBillingPortalSessionResponse, CreateCheckoutSessionResponse, @@ -37,6 +38,7 @@ import { DeleteOIDCProviderResponse, DeleteOrganizationResponse, DeleteRouterTokenResponse, + EnableLintingForTheNamespaceResponse, FixSubgraphSchemaResponse, ForceCheckSuccessResponse, GenerateRouterTokenResponse, @@ -58,12 +60,15 @@ import { GetDiscussionSchemasResponse, GetFederatedGraphByNameResponse, GetFederatedGraphChangelogResponse, + GetFederatedGraphSDLByNameResponse, GetFederatedGraphsBySubgraphLabelsResponse, GetFederatedGraphsResponse, GetFieldUsageResponse, GetGraphMetricsResponse, GetInvitationsResponse, + GetLatestSubgraphSDLResponse, GetMetricsErrorRateResponse, + GetNamespaceLintConfigResponse, GetNamespacesResponse, GetOIDCProviderResponse, GetOperationContentResponse, @@ -75,17 +80,21 @@ import { GetOrganizationWebhookMetaResponse, GetPersistedOperationsResponse, GetRouterTokensResponse, + GetRoutersResponse, GetSdlBySchemaVersionResponse, GetSubgraphByNameResponse, GetSubgraphMembersResponse, GetSubgraphMetricsErrorRateResponse, GetSubgraphMetricsResponse, + GetSubgraphSDLFromLatestCompositionResponse, GetSubgraphsResponse, GetTraceResponse, GetUserAccessibleResourcesResponse, InviteUserResponse, IsGitHubAppInstalledResponse, LeaveOrganizationResponse, + LintConfig, + LintSeverity, MigrateFromApolloResponse, MoveGraphResponse, PublishFederatedSubgraphResponse, @@ -99,6 +108,7 @@ import { RenameNamespaceResponse, ReplyToDiscussionResponse, RequestSeriesItem, + Router, SetDiscussionResolutionResponse, UpdateAISettingsResponse, UpdateDiscussionCommentResponse, @@ -111,30 +121,27 @@ import { UpdateSubgraphResponse, UpgradePlanResponse, WhoAmIResponse, - GetRoutersResponse, - Router, - GetLatestSubgraphSDLResponse, - GetSubgraphSDLFromLatestCompositionResponse, - GetFederatedGraphSDLByNameResponse, } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb'; import { isValidUrl } from '@wundergraph/cosmo-shared'; import { subHours } from 'date-fns'; +import { FastifyBaseLogger } from 'fastify'; import { DocumentNode, buildASTSchema, parse } from 'graphql'; import { validate } from 'graphql/validation/index.js'; import { uid } from 'uid'; -import { FastifyBaseLogger } from 'fastify'; import { DateRange, FederatedGraphDTO, GraphApiKeyJwtPayload, GraphCompositionDTO, PublishedOperationData, + SchemaLintIssues, SubgraphDTO, UpdatedPersistedOperation, } from '../../types/index.js'; import { Composer } from '../composition/composer.js'; import { buildSchema, composeSubgraphs } from '../composition/composition.js'; import { getDiffBetweenGraphs } from '../composition/schemaCheck.js'; +import { schemaLintCheck } from '../composition/schemaLint.js'; import { signJwt } from '../crypto/jwt.js'; import { PublicError } from '../errors/errors.js'; import { OpenAIGraphql } from '../openai-graphql/index.js'; @@ -151,6 +158,7 @@ import { OperationsRepository } from '../repositories/OperationsRepository.js'; import { OrganizationInvitationRepository } from '../repositories/OrganizationInvitationRepository.js'; import { OrganizationRepository } from '../repositories/OrganizationRepository.js'; import { SchemaCheckRepository } from '../repositories/SchemaCheckRepository.js'; +import { SchemaLintRepository } from '../repositories/SchemaLintRepository.js'; import { SubgraphRepository } from '../repositories/SubgraphRepository.js'; import { TargetRepository } from '../repositories/TargetRepository.js'; import { UserRepository } from '../repositories/UserRepository.js'; @@ -158,6 +166,7 @@ import { AnalyticsDashboardViewRepository } from '../repositories/analytics/Anal import { AnalyticsRequestViewRepository } from '../repositories/analytics/AnalyticsRequestViewRepository.js'; import { MetricsRepository } from '../repositories/analytics/MetricsRepository.js'; import { MonthlyRequestViewRepository } from '../repositories/analytics/MonthlyRequestViewRepository.js'; +import { RouterMetricsRepository } from '../repositories/analytics/RouterMetricsRepository.js'; import { SubgraphMetricsRepository } from '../repositories/analytics/SubgraphMetricsRepository.js'; import { TraceRepository } from '../repositories/analytics/TraceRepository.js'; import { UsageRepository } from '../repositories/analytics/UsageRepository.js'; @@ -189,7 +198,6 @@ import { validateDateRanges, } from '../util.js'; import { FederatedGraphSchemaUpdate, OrganizationWebhookService } from '../webhooks/OrganizationWebhookService.js'; -import { RouterMetricsRepository } from '../repositories/analytics/RouterMetricsRepository.js'; export default function (opts: RouterOptions): Partial> { return { @@ -1017,8 +1025,10 @@ export default function (opts: RouterOptions): Partial 0) { + lintIssues = await schemaLintCheck({ + schema: newSchemaSDL, + rulesInput: lintConfigs, + }); + } + } + + await schemaLintRepo.addSchemaCheckLintIssues({ + schemaCheckId: schemaCheckID, + lintIssues: [...lintIssues.warnings, ...lintIssues.errors], + }); + + // Update the overall schema check with the results + await schemaCheckRepo.update({ + schemaCheckID, + hasClientTraffic, + hasBreakingChanges, + hasLintErrors: lintIssues.errors.length > 0, + }); + return { response: { code: EnumStatusCode.OK, @@ -1224,6 +1276,8 @@ export default function (opts: RouterOptions): Partial { + let logger = getLogger(ctx, opts.logger); + + return handleError>(ctx, logger, async () => { + const authContext = await opts.authenticator.authenticate(ctx.requestHeader); + logger = enrichLogger(ctx, logger, authContext); + + const namespaceRepo = new NamespaceRepository(opts.db, authContext.organizationId); + const namespace = await namespaceRepo.byName(req.namespace); + if (!namespace) { + return { + response: { + code: EnumStatusCode.ERR_NOT_FOUND, + details: `Namespace '${req.namespace}' not found`, + }, + }; + } + + await namespaceRepo.toggleEnableLinting({ name: req.namespace, enableLinting: req.enableLinting }); + + return { + response: { + code: EnumStatusCode.OK, + }, + }; + }); + }, + + configureNamespaceLintConfig: (req, ctx) => { + let logger = getLogger(ctx, opts.logger); + + return handleError>(ctx, logger, async () => { + const authContext = await opts.authenticator.authenticate(ctx.requestHeader); + logger = enrichLogger(ctx, logger, authContext); + + const schemaLintRepo = new SchemaLintRepository(opts.db); + const namespaceRepo = new NamespaceRepository(opts.db, authContext.organizationId); + + const namespace = await namespaceRepo.byName(req.namespace); + if (!namespace) { + return { + response: { + code: EnumStatusCode.ERR_NOT_FOUND, + details: `Namespace '${req.namespace}' not found`, + }, + configs: [], + }; + } + + await schemaLintRepo.configureNamespaceLintConfig({ + namespaceId: namespace.id, + lintConfigs: req.configs, + }); + + return { + response: { + code: EnumStatusCode.OK, + }, + }; + }); + }, + /* Queries */ @@ -5697,6 +5813,7 @@ export default function (opts: RouterOptions): Partial { + let logger = getLogger(ctx, opts.logger); + + return handleError>(ctx, logger, async () => { + const authContext = await opts.authenticator.authenticate(ctx.requestHeader); + logger = enrichLogger(ctx, logger, authContext); + + const schemaLintRepo = new SchemaLintRepository(opts.db); + const namespaceRepo = new NamespaceRepository(opts.db, authContext.organizationId); + + const namespace = await namespaceRepo.byName(req.namespace); + if (!namespace) { + return { + response: { + code: EnumStatusCode.ERR_NOT_FOUND, + details: `Namespace '${req.namespace}' not found`, + }, + configs: [], + linterEnabled: false, + }; + } + + const orgLintConfigs = await schemaLintRepo.getNamespaceLintConfig(namespace.id); + + return { + response: { + code: EnumStatusCode.OK, + }, + configs: orgLintConfigs.map((l) => { + return { + ruleName: l.ruleName, + severityLevel: l.severity === 'error' ? LintSeverity.error : LintSeverity.warn, + } as LintConfig; + }), + linterEnabled: namespace.enableLinting, + }; + }); + }, }; } diff --git a/controlplane/src/core/composition/schemaLint.ts b/controlplane/src/core/composition/schemaLint.ts new file mode 100644 index 0000000000..b678faab3e --- /dev/null +++ b/controlplane/src/core/composition/schemaLint.ts @@ -0,0 +1,217 @@ +import { Linter } from 'eslint'; +import { parseForESLint, rules } from '@graphql-eslint/eslint-plugin'; +import { LintSeverity } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb'; +import { baseDirectives } from '@wundergraph/composition'; +import { LintIssueResult, RulesConfig, SchemaLintDTO, SchemaLintIssues, LintRules } from '../../types/index.js'; +import { LintRuleEnum } from '../../db/models.js'; + +const getRuleModule = (rule: LintRuleEnum) => { + switch (rule) { + case 'FIELD_NAMES_SHOULD_BE_CAMEL_CASE': + case 'TYPE_NAMES_SHOULD_BE_PASCAL_CASE': + case 'SHOULD_NOT_HAVE_TYPE_PREFIX': + case 'SHOULD_NOT_HAVE_TYPE_SUFFIX': + case 'SHOULD_NOT_HAVE_INPUT_PREFIX': + case 'SHOULD_HAVE_INPUT_SUFFIX': + case 'SHOULD_NOT_HAVE_ENUM_PREFIX': + case 'SHOULD_NOT_HAVE_ENUM_SUFFIX': + case 'SHOULD_NOT_HAVE_INTERFACE_PREFIX': + case 'SHOULD_NOT_HAVE_INTERFACE_SUFFIX': + case 'ENUM_VALUES_SHOULD_BE_UPPER_CASE': { + return rules['naming-convention']; + } + case 'DISALLOW_CASE_INSENSITIVE_ENUM_VALUES': { + return rules['no-case-insensitive-enum-values-duplicates']; + } + case 'NO_TYPENAME_PREFIX_IN_TYPE_FIELDS': { + return rules['no-typename-prefix']; + } + case 'ORDER_FIELDS': + case 'ORDER_ENUM_VALUES': + case 'ORDER_DEFINITIONS': { + return rules.alphabetize; + } + case 'ALL_TYPES_REQUIRE_DESCRIPTION': { + return rules['require-description']; + } + case 'REQUIRE_DEPRECATION_REASON': { + return rules['require-deprecation-reason']; + } + case 'REQUIRE_DEPRECATION_DATE': { + return rules['require-deprecation-date']; + } + default: { + throw new Error(`Rule ${rule} doesnt exist`); + } + } +}; + +export const createRulesConfig = (rules: SchemaLintDTO[]) => { + const rulesConfig: RulesConfig = {}; + for (const rule of rules) { + const ruleName = rule.ruleName; + switch (ruleName) { + case 'FIELD_NAMES_SHOULD_BE_CAMEL_CASE': { + rulesConfig[ruleName] = [rule.severity, { FieldDefinition: { style: 'camelCase' } }]; + break; + } + case 'TYPE_NAMES_SHOULD_BE_PASCAL_CASE': { + rulesConfig[ruleName] = [rule.severity, { ObjectTypeDefinition: { style: 'PascalCase' } }]; + break; + } + case 'SHOULD_NOT_HAVE_TYPE_PREFIX': { + rulesConfig[ruleName] = [rule.severity, { ObjectTypeDefinition: { forbiddenPrefixes: ['Type', 'type'] } }]; + break; + } + case 'SHOULD_NOT_HAVE_TYPE_SUFFIX': { + rulesConfig[ruleName] = [rule.severity, { ObjectTypeDefinition: { forbiddenSuffixes: ['Type', 'type'] } }]; + break; + } + case 'SHOULD_NOT_HAVE_INPUT_PREFIX': { + rulesConfig[ruleName] = [ + rule.severity, + { InputObjectTypeDefinition: { forbiddenPrefixes: ['Input', 'input'] } }, + ]; + break; + } + case 'SHOULD_HAVE_INPUT_SUFFIX': { + rulesConfig[ruleName] = [rule.severity, { InputObjectTypeDefinition: { requiredSuffixes: ['Input'] } }]; + break; + } + case 'SHOULD_NOT_HAVE_ENUM_PREFIX': { + rulesConfig[ruleName] = [ + rule.severity, + { EnumTypeDefinition: { forbiddenPrefixes: ['Enum', 'enum', 'ENUM'] } }, + ]; + break; + } + case 'SHOULD_NOT_HAVE_ENUM_SUFFIX': { + rulesConfig[ruleName] = [rule.severity, { EnumTypeDefinition: { forbiddenSuffixes: ['Enum', 'enum'] } }]; + break; + } + case 'SHOULD_NOT_HAVE_INTERFACE_PREFIX': { + rulesConfig[ruleName] = [ + rule.severity, + { InterfaceTypeDefinition: { forbiddenPrefixes: ['Interface', 'interface'] } }, + ]; + break; + } + case 'SHOULD_NOT_HAVE_INTERFACE_SUFFIX': { + rulesConfig[ruleName] = [ + rule.severity, + { InterfaceTypeDefinition: { forbiddenSuffixes: ['Interface', 'interface'] } }, + ]; + break; + } + case 'ENUM_VALUES_SHOULD_BE_UPPER_CASE': { + rulesConfig[ruleName] = [rule.severity, { EnumValueDefinition: { style: 'UPPER_CASE' } }]; + break; + } + case 'DISALLOW_CASE_INSENSITIVE_ENUM_VALUES': { + rulesConfig[ruleName] = [rule.severity]; + break; + } + case 'NO_TYPENAME_PREFIX_IN_TYPE_FIELDS': { + rulesConfig[ruleName] = [rule.severity]; + break; + } + case 'REQUIRE_DEPRECATION_REASON': { + rulesConfig[ruleName] = [rule.severity]; + break; + } + case 'REQUIRE_DEPRECATION_DATE': { + rulesConfig[ruleName] = [rule.severity]; + break; + } + case 'ORDER_FIELDS': { + rulesConfig[ruleName] = [ + rule.severity, + { fields: ['ObjectTypeDefinition', 'InterfaceTypeDefinition', 'InputObjectTypeDefinition'] }, + ]; + break; + } + case 'ORDER_ENUM_VALUES': { + rulesConfig[ruleName] = [rule.severity, { values: ['EnumTypeDefinition'] }]; + break; + } + case 'ORDER_DEFINITIONS': { + rulesConfig[ruleName] = [rule.severity, { definitions: true }]; + break; + } + case 'ALL_TYPES_REQUIRE_DESCRIPTION': { + rulesConfig[ruleName] = [rule.severity, { types: true }]; + break; + } + default: { + throw new Error(`Rule ${rule} doesnt exist`); + } + } + } + return rulesConfig; +}; + +export const schemaLintCheck = ({ + schema, + rulesInput, +}: { + schema: string; + rulesInput: SchemaLintDTO[]; +}): SchemaLintIssues => { + const rulesConfig: RulesConfig = createRulesConfig(rulesInput); + + const linter = new Linter(); + linter.defineParser('@graphql-eslint/eslint-plugin', { parseForESLint }); + + for (const ruleName of Object.keys(LintRules)) { + const ruleModule = getRuleModule(ruleName as LintRuleEnum); + if (ruleModule) { + linter.defineRule(ruleName, ruleModule as any); + } + } + + const lintIssues = linter.verify( + schema, + { + parser: '@graphql-eslint/eslint-plugin', + parserOptions: { schema: baseDirectives + schema }, + rules: rulesConfig, + }, + 'schema.graphql', + ); + + const lintWarnings: LintIssueResult[] = []; + const lintErrors: LintIssueResult[] = []; + + for (const i of lintIssues) { + if (i.severity === 1) { + lintWarnings.push({ + lintRuleType: (i.ruleId as LintRuleEnum) || undefined, + severity: LintSeverity.warn, + message: i.message, + issueLocation: { + line: i.line, + column: i.column, + endLine: i.endLine, + endColumn: i.endColumn, + }, + }); + } else if (i.severity === 2) { + lintErrors.push({ + lintRuleType: (i.ruleId as LintRuleEnum) || undefined, + severity: LintSeverity.error, + message: i.message, + issueLocation: { + line: i.line, + column: i.column, + endLine: i.endLine, + endColumn: i.endColumn, + }, + }); + } + } + + return { + warnings: lintWarnings, + errors: lintErrors, + }; +}; diff --git a/controlplane/src/core/repositories/NamespaceRepository.ts b/controlplane/src/core/repositories/NamespaceRepository.ts index 1a8251a473..c69f5f036a 100644 --- a/controlplane/src/core/repositories/NamespaceRepository.ts +++ b/controlplane/src/core/repositories/NamespaceRepository.ts @@ -68,4 +68,13 @@ export class NamespaceRepository { where: eq(schema.namespaces.organizationId, this.organizationId), }); } + + public async toggleEnableLinting(data: { name: string; enableLinting: boolean }) { + await this.db + .update(schema.namespaces) + .set({ + enableLinting: data.enableLinting, + }) + .where(and(eq(schema.namespaces.name, data.name), eq(schema.namespaces.organizationId, this.organizationId))); + } } diff --git a/controlplane/src/core/repositories/SchemaCheckRepository.ts b/controlplane/src/core/repositories/SchemaCheckRepository.ts index c80fb4f63c..4dc0d9677d 100644 --- a/controlplane/src/core/repositories/SchemaCheckRepository.ts +++ b/controlplane/src/core/repositories/SchemaCheckRepository.ts @@ -41,6 +41,7 @@ export class SchemaCheckRepository { isComposable?: boolean; hasClientTraffic?: boolean; hasBreakingChanges?: boolean; + hasLintErrors?: boolean; }): Promise { const updatedSchemaCheck = await this.db .update(schemaChecks) @@ -48,6 +49,7 @@ export class SchemaCheckRepository { isComposable: data.isComposable, hasBreakingChanges: data.hasBreakingChanges, hasClientTraffic: data.hasClientTraffic, + hasLintErrors: data.hasLintErrors, }) .where(eq(schemaChecks.id, data.schemaCheckID)) .returning() diff --git a/controlplane/src/core/repositories/SchemaLintRepository.ts b/controlplane/src/core/repositories/SchemaLintRepository.ts new file mode 100644 index 0000000000..b618da7fc8 --- /dev/null +++ b/controlplane/src/core/repositories/SchemaLintRepository.ts @@ -0,0 +1,95 @@ +import { eq } from 'drizzle-orm'; +import { PostgresJsDatabase } from 'drizzle-orm/postgres-js'; +import { LintConfig, LintSeverity } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb'; +import * as schema from '../../db/schema.js'; +import { namespaceLintCheckConfig, schemaCheckLintAction } from '../../db/schema.js'; +import { SchemaLintDTO, LintSeverityLevel, LintIssueResult } from '../../types/index.js'; +import { LintRuleEnum } from '../../db/models.js'; + +export class SchemaLintRepository { + constructor(private db: PostgresJsDatabase) {} + + public async getNamespaceLintConfig(namespaceId: string): Promise { + const orgLintConfigs = await this.db + .select({ + lintRule: namespaceLintCheckConfig.lintRule, + severityLevel: namespaceLintCheckConfig.severityLevel, + }) + .from(namespaceLintCheckConfig) + .where(eq(namespaceLintCheckConfig.namespaceId, namespaceId)) + .execute(); + + return orgLintConfigs.map((l) => { + return { + ruleName: l.lintRule as LintRuleEnum, + severity: l.severityLevel as LintSeverityLevel, + } as SchemaLintDTO; + }); + } + + public async configureNamespaceLintConfig({ + namespaceId, + lintConfigs, + }: { + namespaceId: string; + lintConfigs: LintConfig[]; + }) { + await this.db.delete(namespaceLintCheckConfig).where(eq(namespaceLintCheckConfig.namespaceId, namespaceId)); + + if (lintConfigs.length > 0) { + await this.db.insert(namespaceLintCheckConfig).values( + lintConfigs.map((l) => { + return { + namespaceId, + lintRule: l.ruleName as LintRuleEnum, + severityLevel: + l.severityLevel === LintSeverity.error ? ('error' as LintSeverityLevel) : ('warn' as LintSeverityLevel), + }; + }), + ); + } + } + + public async addSchemaCheckLintIssues({ + schemaCheckId, + lintIssues, + }: { + schemaCheckId: string; + lintIssues: LintIssueResult[]; + }) { + if (lintIssues.length > 0) { + await this.db.insert(schemaCheckLintAction).values( + lintIssues.map((l) => { + return { + lintRuleType: l.lintRuleType || null, + schemaCheckId, + message: l.message, + location: l.issueLocation, + isError: l.severity === LintSeverity.error, + }; + }), + ); + } + } + + public async getSchemaCheckLintIsssues({ schemaCheckId }: { schemaCheckId: string }): Promise { + const lintIssues = await this.db + .select({ + message: schemaCheckLintAction.message, + location: schemaCheckLintAction.location, + isError: schemaCheckLintAction.isError, + lintRuleType: schemaCheckLintAction.lintRuleType, + }) + .from(schemaCheckLintAction) + .where(eq(schemaCheckLintAction.schemaCheckId, schemaCheckId)); + + return lintIssues.map((l) => { + return { + lintRuleType: l.lintRuleType || undefined, + issueLocation: l.location, + message: l.message, + severity: l.isError ? LintSeverity.error : LintSeverity.warn, + } as LintIssueResult; + }); + } +} diff --git a/controlplane/src/core/repositories/SubgraphRepository.ts b/controlplane/src/core/repositories/SubgraphRepository.ts index c02615753a..a0c73d9b79 100644 --- a/controlplane/src/core/repositories/SubgraphRepository.ts +++ b/controlplane/src/core/repositories/SubgraphRepository.ts @@ -664,6 +664,7 @@ export class SubgraphRepository { hasClientTraffic: true, forcedSuccess: true, ghDetails: true, + hasLintErrors: true, }, limit, offset, @@ -699,6 +700,7 @@ export class SubgraphRepository { checkRunId: c.ghDetails.checkRunId, } : undefined, + hasLintErrors: c.hasLintErrors ?? false, })), checksCount, }; @@ -798,6 +800,7 @@ export class SubgraphRepository { checkRunId: check.ghDetails.checkRunId, } : undefined, + hasLintErrors: check.hasLintErrors ?? false, }; } diff --git a/controlplane/src/db/models.ts b/controlplane/src/db/models.ts index ff312d7d47..aa7b4216c9 100644 --- a/controlplane/src/db/models.ts +++ b/controlplane/src/db/models.ts @@ -2,6 +2,7 @@ import { billingPlans, billingSubscriptions, federatedGraphs, + lintRulesEnum, memberRoleEnum, organizationFeatures, schemaCheckChangeAction, @@ -19,6 +20,7 @@ export type NewOrganizationFeature = typeof organizationFeatures.$inferInsert; export type NewBillingSubscription = typeof billingSubscriptions.$inferInsert; export type NewBillingPlan = typeof billingPlans.$inferInsert; export type MemberRole = (typeof memberRoleEnum.enumValues)[number]; +export type LintRuleEnum = (typeof lintRulesEnum.enumValues)[number]; export type AuditableType = | 'organization' diff --git a/controlplane/src/db/schema.ts b/controlplane/src/db/schema.ts index d842504f24..7a9321449b 100644 --- a/controlplane/src/db/schema.ts +++ b/controlplane/src/db/schema.ts @@ -241,6 +241,7 @@ export const namespaces = pgTable( createdBy: uuid('created_by').references(() => users.id, { onDelete: 'set null', }), + enableLinting: boolean('enable_linting').default(false).notNull(), }, (t) => { return { @@ -442,6 +443,7 @@ export const schemaChecks = pgTable('schema_checks', { isComposable: boolean('is_composable').default(false), isDeleted: boolean('is_deleted').default(false), hasBreakingChanges: boolean('has_breaking_changes').default(false), + hasLintErrors: boolean('has_lint_errors').default(false), hasClientTraffic: boolean('has_client_traffic').default(false), proposedSubgraphSchemaSDL: text('proposed_subgraph_schema_sdl'), createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(), @@ -1200,3 +1202,64 @@ export const discussionThreadRelations = relations(discussionThread, ({ one }) = references: [discussions.id], }), })); + +export const lintRulesEnum = pgEnum('lint_rules', [ + 'FIELD_NAMES_SHOULD_BE_CAMEL_CASE', + 'TYPE_NAMES_SHOULD_BE_PASCAL_CASE', + 'SHOULD_NOT_HAVE_TYPE_PREFIX', + 'SHOULD_NOT_HAVE_TYPE_SUFFIX', + 'SHOULD_NOT_HAVE_INPUT_PREFIX', + 'SHOULD_HAVE_INPUT_SUFFIX', + 'SHOULD_NOT_HAVE_ENUM_PREFIX', + 'SHOULD_NOT_HAVE_ENUM_SUFFIX', + 'SHOULD_NOT_HAVE_INTERFACE_PREFIX', + 'SHOULD_NOT_HAVE_INTERFACE_SUFFIX', + 'ENUM_VALUES_SHOULD_BE_UPPER_CASE', + 'ORDER_FIELDS', + 'ORDER_ENUM_VALUES', + 'ORDER_DEFINITIONS', + 'ALL_TYPES_REQUIRE_DESCRIPTION', + 'DISALLOW_CASE_INSENSITIVE_ENUM_VALUES', + 'NO_TYPENAME_PREFIX_IN_TYPE_FIELDS', + 'REQUIRE_DEPRECATION_REASON', + 'REQUIRE_DEPRECATION_DATE', +] as const); + +export const lintSeverityEnum = pgEnum('lint_severity', ['warn', 'error'] as const); + +export const namespaceLintCheckConfig = pgTable('namespace_lint_check_config', { + id: uuid('id').notNull().primaryKey().defaultRandom(), + namespaceId: uuid('namespace_id') + .notNull() + .references(() => namespaces.id, { + onDelete: 'cascade', + }), + lintRule: lintRulesEnum('lint_rule').notNull(), + severityLevel: lintSeverityEnum('severity_level').notNull(), + createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(), +}); + +export const namespaceLintCheckConfigRelations = relations(namespaceLintCheckConfig, ({ one }) => ({ + namespace: one(namespaces), +})); + +export const schemaCheckLintAction = pgTable('schema_check_lint_action', { + id: uuid('id').primaryKey().defaultRandom(), + schemaCheckId: uuid('schema_check_id') + .notNull() + .references(() => schemaChecks.id, { + onDelete: 'cascade', + }), + lintRuleType: lintRulesEnum('lint_rule_type'), + message: text('message'), + isError: boolean('is_error').default(false), + location: customJson<{ line: number; column: number; endLine?: number; endColumn?: number }>('location').notNull(), + createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(), +}); + +export const schemaCheckLintActionRelations = relations(schemaCheckLintAction, ({ one }) => ({ + check: one(schemaChecks, { + fields: [schemaCheckLintAction.schemaCheckId], + references: [schemaChecks.id], + }), +})); diff --git a/controlplane/src/types/index.ts b/controlplane/src/types/index.ts index 43ba89865e..9596005ad0 100644 --- a/controlplane/src/types/index.ts +++ b/controlplane/src/types/index.ts @@ -1,4 +1,6 @@ +import { LintSeverity } from '@wundergraph/cosmo-connect/dist/platform/v1/platform_pb'; import { JWTPayload } from 'jose'; +import { LintRuleEnum } from '../db/models.js'; export type FeatureIds = | 'users' @@ -107,6 +109,7 @@ export interface SchemaCheckDTO { repositorySlug: string; checkRunId: number; }; + hasLintErrors: boolean; } export interface SchemaCheckSummaryDTO extends SchemaCheckDTO { @@ -443,3 +446,60 @@ export type TimeFilters = { granule: string; dateRange: DateRange; }; + +type LintRuleType = Record; + +// when the rules are changed, it has to be changed in the constants.ts file in the studio to maintain consistency. +export const LintRules: LintRuleType = { + FIELD_NAMES_SHOULD_BE_CAMEL_CASE: 'FIELD_NAMES_SHOULD_BE_CAMEL_CASE', + TYPE_NAMES_SHOULD_BE_PASCAL_CASE: 'TYPE_NAMES_SHOULD_BE_PASCAL_CASE', + SHOULD_NOT_HAVE_TYPE_PREFIX: 'SHOULD_NOT_HAVE_TYPE_PREFIX', + SHOULD_NOT_HAVE_TYPE_SUFFIX: 'SHOULD_NOT_HAVE_TYPE_SUFFIX', + SHOULD_NOT_HAVE_INPUT_PREFIX: 'SHOULD_NOT_HAVE_INPUT_PREFIX', + SHOULD_HAVE_INPUT_SUFFIX: 'SHOULD_HAVE_INPUT_SUFFIX', + SHOULD_NOT_HAVE_ENUM_PREFIX: 'SHOULD_NOT_HAVE_ENUM_PREFIX', + SHOULD_NOT_HAVE_ENUM_SUFFIX: 'SHOULD_NOT_HAVE_ENUM_SUFFIX', + SHOULD_NOT_HAVE_INTERFACE_PREFIX: 'SHOULD_NOT_HAVE_INTERFACE_PREFIX', + SHOULD_NOT_HAVE_INTERFACE_SUFFIX: 'SHOULD_NOT_HAVE_INTERFACE_SUFFIX', + ENUM_VALUES_SHOULD_BE_UPPER_CASE: 'ENUM_VALUES_SHOULD_BE_UPPER_CASE', + ORDER_FIELDS: 'ORDER_FIELDS', + ORDER_ENUM_VALUES: 'ORDER_ENUM_VALUES', + ORDER_DEFINITIONS: 'ORDER_DEFINITIONS', + ALL_TYPES_REQUIRE_DESCRIPTION: 'ALL_TYPES_REQUIRE_DESCRIPTION', + DISALLOW_CASE_INSENSITIVE_ENUM_VALUES: 'DISALLOW_CASE_INSENSITIVE_ENUM_VALUES', + NO_TYPENAME_PREFIX_IN_TYPE_FIELDS: 'NO_TYPENAME_PREFIX_IN_TYPE_FIELDS', + REQUIRE_DEPRECATION_REASON: 'REQUIRE_DEPRECATION_REASON', + REQUIRE_DEPRECATION_DATE: 'REQUIRE_DEPRECATION_DATE', +}; + +export type Severity = 1 | 2; +export type LintSeverityLevel = 'warn' | 'error'; +export type RuleLevel = Severity | LintSeverityLevel; +export type RuleLevelAndOptions = Prepend, RuleLevel>; +export type RuleEntry = RuleLevel | RuleLevelAndOptions; + +export interface RulesConfig { + [rule: string]: RuleEntry; +} + +export interface LintIssueResult { + lintRuleType: LintRuleEnum | undefined; + severity: LintSeverity; + message: string; + issueLocation: { + line: number; + column: number; + endLine?: number; + endColumn?: number; + }; +} + +export interface SchemaLintDTO { + severity: LintSeverityLevel; + ruleName: LintRuleEnum; +} + +export interface SchemaLintIssues { + warnings: LintIssueResult[]; + errors: LintIssueResult[]; +} diff --git a/controlplane/test/lint.test.ts b/controlplane/test/lint.test.ts new file mode 100644 index 0000000000..7c96ccfb81 --- /dev/null +++ b/controlplane/test/lint.test.ts @@ -0,0 +1,331 @@ +import { describe, expect, test } from 'vitest'; +import { createRulesConfig, schemaLintCheck } from '../src/core/composition/schemaLint.js'; +import { LintRules, LintSeverityLevel } from '../src/types/index.js'; +import { LintRuleEnum } from '../src/db/models.js'; + +describe('Linter Tests', (ctx) => { + test('Should test schema linting', (testContext) => { + const schema = ` +type Query{ + a: String +} + +type Mutation { + addFact(fact: String!): String! +} + +enum ProductNamesenum { + VALUE + Value + ENGINE + FINANCE + HUMAN_RESOURCES + MARKETING + SDK +} + +type Employee_A @authenticated { + id: Int! +} + +input InputA{ + a: String +} +`; + + const lintRules: { severity: LintSeverityLevel; ruleName: LintRuleEnum }[] = [ + { severity: 'warn', ruleName: LintRules.TYPE_NAMES_SHOULD_BE_PASCAL_CASE }, + { severity: 'warn', ruleName: LintRules.SHOULD_NOT_HAVE_INPUT_PREFIX }, + { severity: 'warn', ruleName: LintRules.DISALLOW_CASE_INSENSITIVE_ENUM_VALUES }, + { severity: 'warn', ruleName: LintRules.ENUM_VALUES_SHOULD_BE_UPPER_CASE }, + { severity: 'error', ruleName: LintRules.FIELD_NAMES_SHOULD_BE_CAMEL_CASE }, + { severity: 'error', ruleName: LintRules.SHOULD_NOT_HAVE_TYPE_PREFIX }, + { severity: 'error', ruleName: LintRules.SHOULD_NOT_HAVE_TYPE_SUFFIX }, + { severity: 'error', ruleName: LintRules.SHOULD_HAVE_INPUT_SUFFIX }, + ]; + + const lintIssues = schemaLintCheck({ schema, rulesInput: lintRules }); + + expect(lintIssues.warnings.length).toBe(4); + expect(lintIssues.errors.length).toBe(1); + expect(lintIssues.warnings).toStrictEqual([ + { + lintRuleType: 'DISALLOW_CASE_INSENSITIVE_ENUM_VALUES', + severity: 0, + message: 'Unexpected case-insensitive enum values duplicates for enum value "Value" in enum "ProductNamesenum"', + issueLocation: { line: 12, column: 3, endLine: 12, endColumn: 8 }, + }, + { + lintRuleType: 'ENUM_VALUES_SHOULD_BE_UPPER_CASE', + severity: 0, + message: 'Enumeration value "Value" should be in UPPER_CASE format', + issueLocation: { line: 12, column: 3, endLine: 12, endColumn: 8 }, + }, + { + lintRuleType: 'TYPE_NAMES_SHOULD_BE_PASCAL_CASE', + severity: 0, + message: 'Type "Employee_A" should be in PascalCase format', + issueLocation: { line: 20, column: 6, endLine: 20, endColumn: 16 }, + }, + { + lintRuleType: 'SHOULD_NOT_HAVE_INPUT_PREFIX', + severity: 0, + message: 'Input type "InputA" should not have "Input" prefix', + issueLocation: { line: 24, column: 7, endLine: 24, endColumn: 13 }, + }, + ]); + expect(lintIssues.errors).toStrictEqual([ + { + lintRuleType: 'SHOULD_HAVE_INPUT_SUFFIX', + severity: 1, + message: 'Input type "InputA" should have one of the following suffixes: Input', + issueLocation: { line: 24, column: 7, endLine: 24, endColumn: 13 }, + }, + ]); + }); + + test('Should test enum lint rules', (testContext) => { + const schema = ` +enum ProductNamesEnum { + VALUE + Value + ENGINE + FINANCE + HUMAN_RESOURCES + MARKETING + SDK +} +`; + + const rules: { severity: LintSeverityLevel; ruleName: LintRuleEnum }[] = [ + { severity: 'warn', ruleName: LintRules.ENUM_VALUES_SHOULD_BE_UPPER_CASE }, + { severity: 'warn', ruleName: LintRules.DISALLOW_CASE_INSENSITIVE_ENUM_VALUES }, + { severity: 'warn', ruleName: LintRules.SHOULD_NOT_HAVE_ENUM_SUFFIX }, + ]; + + const lintIssues = schemaLintCheck({ schema, rulesInput: rules }); + + expect(lintIssues.warnings.length).toBe(3); + expect(lintIssues.warnings).toStrictEqual([ + { + lintRuleType: 'SHOULD_NOT_HAVE_ENUM_SUFFIX', + severity: 0, + message: 'Enumerator "ProductNamesEnum" should not have "Enum" suffix', + issueLocation: { line: 2, column: 6, endLine: 2, endColumn: 22 }, + }, + { + lintRuleType: 'DISALLOW_CASE_INSENSITIVE_ENUM_VALUES', + severity: 0, + message: 'Unexpected case-insensitive enum values duplicates for enum value "Value" in enum "ProductNamesEnum"', + issueLocation: { line: 4, column: 3, endLine: 4, endColumn: 8 }, + }, + { + lintRuleType: 'ENUM_VALUES_SHOULD_BE_UPPER_CASE', + severity: 0, + message: 'Enumeration value "Value" should be in UPPER_CASE format', + issueLocation: { line: 4, column: 3, endLine: 4, endColumn: 8 }, + }, + ]); + }); + + test('Should test alphabetical sort lint rules', (testContext) => { + const schema = `type B{ + b: String + a: String +} +type A{ + b: String + a: String +} +enum ProductNamesEnum { + VALUE + ENGINE + FINANCE + HUMAN_RESOURCES + MARKETING + SDK +} +`; + + const rules: { severity: LintSeverityLevel; ruleName: LintRuleEnum }[] = [ + { severity: 'warn', ruleName: LintRules.ORDER_DEFINITIONS }, + { severity: 'warn', ruleName: LintRules.ORDER_FIELDS }, + { severity: 'warn', ruleName: LintRules.ORDER_ENUM_VALUES }, + ]; + + const lintIssues = schemaLintCheck({ schema, rulesInput: rules }); + expect(lintIssues.warnings.length).toBe(4); + expect(lintIssues.warnings).toStrictEqual([ + { + lintRuleType: 'ORDER_FIELDS', + severity: 0, + message: 'field "a" should be before field "b"', + issueLocation: { line: 3, column: 3, endLine: 3, endColumn: 4 }, + }, + { + lintRuleType: 'ORDER_DEFINITIONS', + severity: 0, + message: 'type "A" should be before type "B"', + issueLocation: { line: 5, column: 6, endLine: 5, endColumn: 7 }, + }, + { + lintRuleType: 'ORDER_FIELDS', + severity: 0, + message: 'field "a" should be before field "b"', + issueLocation: { line: 7, column: 3, endLine: 7, endColumn: 4 }, + }, + { + lintRuleType: 'ORDER_ENUM_VALUES', + severity: 0, + message: 'enum value "ENGINE" should be before enum value "VALUE"', + issueLocation: { line: 11, column: 3, endLine: 11, endColumn: 9 }, + }, + ]); + }); + + test('Should test deprecated directive lint rules', (testContext) => { + const schema = `type B{ + b: String @deprecated + a: String +} +`; + + const rules: { severity: LintSeverityLevel; ruleName: LintRuleEnum }[] = [ + { severity: 'warn', ruleName: LintRules.REQUIRE_DEPRECATION_DATE }, + { severity: 'warn', ruleName: LintRules.REQUIRE_DEPRECATION_REASON }, + ]; + const lintIssues = schemaLintCheck({ schema, rulesInput: rules }); + expect(lintIssues.warnings.length).toBe(2); + expect(lintIssues.warnings).toStrictEqual([ + { + lintRuleType: 'REQUIRE_DEPRECATION_DATE', + severity: 0, + message: 'Directive "@deprecated" must have a deletion date for field "b" in type "B"', + issueLocation: { line: 2, column: 14, endLine: 2, endColumn: 24 }, + }, + { + lintRuleType: 'REQUIRE_DEPRECATION_REASON', + severity: 0, + message: 'Deprecation reason is required for field "b" in type "B".', + issueLocation: { line: 2, column: 14, endLine: 2, endColumn: 24 }, + }, + ]); + }); + + test('Should test description lint rules', (testContext) => { + const schema = `type B{ + b: String + a: String +} +`; + + const rules: { severity: LintSeverityLevel; ruleName: LintRuleEnum }[] = [ + { severity: 'warn', ruleName: LintRules.ALL_TYPES_REQUIRE_DESCRIPTION }, + ]; + const lintIssues = schemaLintCheck({ schema, rulesInput: rules }); + expect(lintIssues.warnings.length).toBe(1); + expect(lintIssues.warnings).toStrictEqual([ + { + lintRuleType: 'ALL_TYPES_REQUIRE_DESCRIPTION', + severity: 0, + message: 'Description is required for type "B"', + issueLocation: { line: 1, column: 6, endLine: 1, endColumn: 7 }, + }, + ]); + }); + + test('Should test field name lint rules', (testContext) => { + const schema = `type User{ + userId: String + first_name: String +} +`; + + const rules: { severity: LintSeverityLevel; ruleName: LintRuleEnum }[] = [ + { severity: 'warn', ruleName: LintRules.NO_TYPENAME_PREFIX_IN_TYPE_FIELDS }, + { severity: 'warn', ruleName: LintRules.FIELD_NAMES_SHOULD_BE_CAMEL_CASE }, + ]; + const lintIssues = schemaLintCheck({ schema, rulesInput: rules }); + expect(lintIssues.warnings.length).toBe(2); + expect(lintIssues.warnings).toStrictEqual([ + { + lintRuleType: 'NO_TYPENAME_PREFIX_IN_TYPE_FIELDS', + severity: 0, + message: 'Field "userId" starts with the name of the parent type "User"', + issueLocation: { line: 2, column: 3, endLine: 2, endColumn: 9 }, + }, + { + lintRuleType: 'FIELD_NAMES_SHOULD_BE_CAMEL_CASE', + severity: 0, + message: 'Field "first_name" should be in camelCase format', + issueLocation: { line: 3, column: 3, endLine: 3, endColumn: 13 }, + }, + ]); + }); + + test('Should test input lint rules', (testContext) => { + const schema = `input User{ + id: String + firstName: String +} + +input InputUser{ + id: String + firstName: String +} +`; + + const rules: { severity: LintSeverityLevel; ruleName: LintRuleEnum }[] = [ + { severity: 'warn', ruleName: LintRules.SHOULD_HAVE_INPUT_SUFFIX }, + { severity: 'warn', ruleName: LintRules.SHOULD_NOT_HAVE_INPUT_PREFIX }, + ]; + const lintIssues = schemaLintCheck({ schema, rulesInput: rules }); + expect(lintIssues.warnings.length).toBe(3); + expect(lintIssues.warnings).toStrictEqual([ + { + lintRuleType: 'SHOULD_HAVE_INPUT_SUFFIX', + severity: 0, + message: 'Input type "User" should have one of the following suffixes: Input', + issueLocation: { line: 1, column: 7, endLine: 1, endColumn: 11 }, + }, + { + lintRuleType: 'SHOULD_HAVE_INPUT_SUFFIX', + severity: 0, + message: 'Input type "InputUser" should have one of the following suffixes: Input', + issueLocation: { line: 6, column: 7, endLine: 6, endColumn: 16 }, + }, + { + lintRuleType: 'SHOULD_NOT_HAVE_INPUT_PREFIX', + severity: 0, + message: 'Input type "InputUser" should not have "Input" prefix', + issueLocation: { line: 6, column: 7, endLine: 6, endColumn: 16 }, + }, + ]); + }); + + test('Should test creating rules config', (testContext) => { + const rules: { severity: LintSeverityLevel; ruleName: LintRuleEnum }[] = [ + { severity: 'warn', ruleName: LintRules.TYPE_NAMES_SHOULD_BE_PASCAL_CASE }, + { severity: 'warn', ruleName: LintRules.SHOULD_NOT_HAVE_INPUT_PREFIX }, + { severity: 'warn', ruleName: LintRules.DISALLOW_CASE_INSENSITIVE_ENUM_VALUES }, + { severity: 'warn', ruleName: LintRules.ENUM_VALUES_SHOULD_BE_UPPER_CASE }, + { severity: 'error', ruleName: LintRules.FIELD_NAMES_SHOULD_BE_CAMEL_CASE }, + { severity: 'error', ruleName: LintRules.SHOULD_NOT_HAVE_TYPE_PREFIX }, + { severity: 'error', ruleName: LintRules.SHOULD_NOT_HAVE_TYPE_SUFFIX }, + { severity: 'error', ruleName: LintRules.SHOULD_HAVE_INPUT_SUFFIX }, + ]; + + const rulesConfig = createRulesConfig(rules); + + expect(rulesConfig).toStrictEqual({ + TYPE_NAMES_SHOULD_BE_PASCAL_CASE: ['warn', { ObjectTypeDefinition: { style: 'PascalCase' } }], + SHOULD_NOT_HAVE_INPUT_PREFIX: ['warn', { InputObjectTypeDefinition: { forbiddenPrefixes: ['Input', 'input'] } }], + DISALLOW_CASE_INSENSITIVE_ENUM_VALUES: ['warn'], + ENUM_VALUES_SHOULD_BE_UPPER_CASE: ['warn', { EnumValueDefinition: { style: 'UPPER_CASE' } }], + FIELD_NAMES_SHOULD_BE_CAMEL_CASE: ['error', { FieldDefinition: { style: 'camelCase' } }], + SHOULD_NOT_HAVE_TYPE_PREFIX: ['error', { ObjectTypeDefinition: { forbiddenPrefixes: ['Type', 'type'] } }], + SHOULD_NOT_HAVE_TYPE_SUFFIX: ['error', { ObjectTypeDefinition: { forbiddenSuffixes: ['Type', 'type'] } }], + SHOULD_HAVE_INPUT_SUFFIX: ['error', { InputObjectTypeDefinition: { requiredSuffixes: ['Input'] } }], + }); + }); +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 66efa61449..ba3d5749a7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -445,12 +445,18 @@ importers: '@connectrpc/protoc-gen-connect-es': specifier: ^1.1.3 version: 1.1.3(@bufbuild/protoc-gen-es@1.4.1)(@connectrpc/connect@1.1.3) + '@graphql-eslint/eslint-plugin': + specifier: ^3.20.1 + version: 3.20.1(@babel/core@7.23.7)(@types/node@18.19.21)(graphql@16.7.1) '@types/cookie': specifier: ^0.6.0 version: 0.6.0 '@types/ejs': specifier: ^3.1.5 version: 3.1.5 + '@types/eslint': + specifier: ^8.56.2 + version: 8.56.2 '@types/lodash': specifier: ^4.14.202 version: 4.14.202 @@ -883,6 +889,15 @@ packages: '@jridgewell/gen-mapping': 0.3.3 '@jridgewell/trace-mapping': 0.3.18 + /@ardatan/sync-fetch@0.0.1: + resolution: {integrity: sha512-xhlTqH0m31mnsG0tIP4ETgfSB6gXDaYYsUWTrlUV93fFQPI9dd8hE0Ot6MHLCtqgB32hwJAC3YZMWlXZw7AleA==} + engines: {node: '>=14'} + dependencies: + node-fetch: 2.6.13 + transitivePeerDependencies: + - encoding + dev: true + /@asamuzakjp/dom-selector@2.0.2: resolution: {integrity: sha512-x1KXOatwofR6ZAYzXRBL5wrdV0vwNxlTCK9NCuLqAzQYARqGcvFwiJA6A1ERuh+dgeA4Dxm3JBYictIes+SqUQ==} dependencies: @@ -2027,6 +2042,7 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/highlight': 7.22.5 + dev: true /@babel/code-frame@7.23.5: resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==} @@ -2162,6 +2178,7 @@ packages: '@babel/helper-validator-identifier': 7.22.20 chalk: 2.4.2 js-tokens: 4.0.0 + dev: true /@babel/highlight@7.23.4: resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} @@ -2178,6 +2195,16 @@ packages: dependencies: '@babel/types': 7.23.6 + /@babel/plugin-syntax-import-assertions@7.23.3(@babel/core@7.23.7): + resolution: {integrity: sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': 7.23.7 + '@babel/helper-plugin-utils': 7.22.5 + dev: true + /@babel/plugin-transform-react-jsx-self@7.23.3(@babel/core@7.23.7): resolution: {integrity: sha512-qXRvbeKDSfwnlJnanVRp0SfuWE5DQhwQr5xtLBzp56Wabyo+4CMosF6Kfp+eOD/4FYpql64XVJ2W0pVLlJZxOQ==} engines: {node: '>=6.9.0'} @@ -2348,7 +2375,7 @@ packages: peerDependencies: '@chakra-ui/system': '>=2.0.0' framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/descendant': 3.1.0(react@18.2.0) '@chakra-ui/icon': 3.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) @@ -2366,7 +2393,7 @@ packages: resolution: {integrity: sha512-jHg4LYMRNOJH830ViLuicjb3F+v6iriE/2G5T+Sd0Hna04nukNJ1MxUmBPE+vI22me2dIflfelu2v9wdB6Pojw==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/icon': 3.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -2384,7 +2411,7 @@ packages: resolution: {integrity: sha512-8gKSyLfygnaotbJbDMHDiJoF38OHXUYVme4gGxZ1fLnQEdPVEaIWfH+NndIjOM0z8S+YEFnT9KyGMUtvPrBk3g==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/image': 2.1.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-children-utils': 2.0.6(react@18.2.0) @@ -2398,7 +2425,7 @@ packages: resolution: {integrity: sha512-4cWCG24flYBxjruRi4RJREWTGF74L/KzI2CognAW/d/zWR0CjiScuJhf37Am3LFbCySP6WSoyBOtTIoTA4yLEA==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-children-utils': 2.0.6(react@18.2.0) '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -2417,7 +2444,7 @@ packages: resolution: {integrity: sha512-95CplwlRKmmUXkdEp/21VkEWgnwcx2TOBG6NfYlsuLBDHSLlo5FKIiE2oSi4zXc4TLcopGcWPNcm/NDaSC5pvA==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-context': 2.1.0(react@18.2.0) '@chakra-ui/react-use-merge-refs': 2.1.0(react@18.2.0) @@ -2431,7 +2458,7 @@ packages: resolution: {integrity: sha512-xUB/k5MURj4CtPAhdSoXZidUbm8j3hci9vnc+eZJVDqhDOShNlD6QeniQNRPRys4lWAQLCbFcrwL29C8naDi6g==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/shared-utils': 2.0.5 '@chakra-ui/system': 2.6.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) @@ -2442,7 +2469,7 @@ packages: resolution: {integrity: sha512-85g38JIXMEv6M+AcyIGLh7igNtfpAN6KGQFYxY9tBj0eWvWk4NKQxvqqyVta0bSAyIl1rixNIIezNpNWk2iO4g==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/form-control': 2.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -2462,7 +2489,7 @@ packages: /@chakra-ui/clickable@2.1.0(react@18.2.0): resolution: {integrity: sha512-flRA/ClPUGPYabu+/GLREZVZr9j2uyyazCAUHAdrTUEdDYCr31SVGhgh7dgKdtq23bOvAQJpIJjw/0Bs0WvbXw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-merge-refs': 2.1.0(react@18.2.0) '@chakra-ui/shared-utils': 2.0.5 @@ -2473,7 +2500,7 @@ packages: resolution: {integrity: sha512-gnpENKOanKexswSVpVz7ojZEALl2x5qjLYNqSQGbxz+aP9sOXPfUS56ebyBrre7T7exuWGiFeRwnM0oVeGPaiw==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/icon': 3.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/system': 2.6.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) @@ -2483,7 +2510,7 @@ packages: /@chakra-ui/color-mode@2.2.0(react@18.2.0): resolution: {integrity: sha512-niTEA8PALtMWRI9wJ4LL0CSBDo8NBfLNp4GD6/0hstcm3IlbBHTVKxN6HwSaoNYfphDQLxCjT4yG+0BJA5tFpg==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-safe-layout-effect': 2.1.0(react@18.2.0) react: 18.2.0 @@ -2493,7 +2520,7 @@ packages: resolution: {integrity: sha512-gVrRDyXFdMd8E7rulL0SKeoljkLQiPITFnsyMO8EFHNZ+AHt5wK4LIguYVEq88APqAGZGfHFWXr79RYrNiE3Mg==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/system': 2.6.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) react: 18.2.0 @@ -2502,7 +2529,7 @@ packages: /@chakra-ui/counter@2.1.0(react@18.2.0): resolution: {integrity: sha512-s6hZAEcWT5zzjNz2JIWUBzRubo9la/oof1W7EKZVVfPYHERnl5e16FmBC79Yfq8p09LQ+aqFKm/etYoJMMgghw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/number-utils': 2.0.7 '@chakra-ui/react-use-callback-ref': 2.1.0(react@18.2.0) @@ -2514,7 +2541,7 @@ packages: resolution: {integrity: sha512-cQwwBy5O0jzvl0K7PLTLgp8ijqLPKyuEMiDXwYzl95seD3AoeuoCLyzZcJtVqaUZ573PiBdAbY/IlZcwDOItWg==} peerDependencies: '@emotion/react': '>=10.0.35' - react: 18.2.0 + react: '>=18' dependencies: '@emotion/react': 11.11.1(@types/react@18.2.14)(react@18.2.0) react: 18.2.0 @@ -2523,7 +2550,7 @@ packages: /@chakra-ui/descendant@3.1.0(react@18.2.0): resolution: {integrity: sha512-VxCIAir08g5w27klLyi7PVo8BxhW4tgU/lxQyujkmi4zx7hT9ZdrcQLAted/dAa+aSIZ14S1oV0Q9lGjsAdxUQ==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-context': 2.1.0(react@18.2.0) '@chakra-ui/react-use-merge-refs': 2.1.0(react@18.2.0) @@ -2538,7 +2565,7 @@ packages: resolution: {integrity: sha512-j2JLrUL9wgg4YA6jLlbU88370eCRyor7DZQD9lzpY95tSOXpTljeg3uF9eOmDnCs6fxp3zDWIfkgMm/ExhcGTg==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-context': 2.1.0(react@18.2.0) '@chakra-ui/react-types': 2.0.7(react@18.2.0) @@ -2560,7 +2587,7 @@ packages: /@chakra-ui/focus-lock@2.1.0(@types/react@18.2.14)(react@18.2.0): resolution: {integrity: sha512-EmGx4PhWGjm4dpjRqM4Aa+rCWBxP+Rq8Uc/nAVnD4YVqkEhBkrPTpui2lnjsuxqNaZ24fIAZ10cF1hlpemte/w==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/dom-utils': 2.1.0 react: 18.2.0 @@ -2573,7 +2600,7 @@ packages: resolution: {integrity: sha512-wehLC1t4fafCVJ2RvJQT2jyqsAwX7KymmiGqBu7nQoQz8ApTkGABWpo/QwDh3F/dBLrouHDoOvGmYTqft3Mirw==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/icon': 3.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -2587,7 +2614,7 @@ packages: /@chakra-ui/hooks@2.2.1(react@18.2.0): resolution: {integrity: sha512-RQbTnzl6b1tBjbDPf9zGRo9rf/pQMholsOudTxjy4i9GfTfz6kgp5ValGjQm2z7ng6Z31N1cnjZ1AlSzQ//ZfQ==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-utils': 2.0.12(react@18.2.0) '@chakra-ui/utils': 2.0.15 @@ -2600,7 +2627,7 @@ packages: resolution: {integrity: sha512-xxjGLvlX2Ys4H0iHrI16t74rG9EBcpFvJ3Y3B7KMQTrnW34Kf7Da/UC8J67Gtx85mTHW020ml85SVPKORWNNKQ==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/shared-utils': 2.0.5 '@chakra-ui/system': 2.6.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) @@ -2611,7 +2638,7 @@ packages: resolution: {integrity: sha512-bskumBYKLiLMySIWDGcz0+D9Th0jPvmX6xnRMs4o92tT3Od/bW26lahmV2a2Op2ItXeCmRMY+XxJH5Gy1i46VA==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-safe-layout-effect': 2.1.0(react@18.2.0) '@chakra-ui/shared-utils': 2.0.5 @@ -2623,7 +2650,7 @@ packages: resolution: {integrity: sha512-GiBbb3EqAA8Ph43yGa6Mc+kUPjh4Spmxp1Pkelr8qtudpc3p2PJOOebLpd90mcqw8UePPa+l6YhhPtp6o0irhw==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/form-control': 2.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/object-utils': 2.1.0 @@ -2638,7 +2665,7 @@ packages: resolution: {integrity: sha512-nXuZ6WRbq0WdgnRgLw+QuxWAHuhDtVX8ElWqcTK+cSMFg/52eVP47czYBE5F35YhnoW2XBwfNoNgZ7+e8Z01Rg==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/breakpoint-utils': 2.0.8 '@chakra-ui/icon': 3.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) @@ -2657,7 +2684,7 @@ packages: /@chakra-ui/live-region@2.1.0(react@18.2.0): resolution: {integrity: sha512-ZOxFXwtaLIsXjqnszYYrVuswBhnIHHP+XIgK1vC6DePKtyK590Wg+0J0slDwThUAd4MSSIUa/nNX84x1GMphWw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -2666,7 +2693,7 @@ packages: resolution: {integrity: sha512-IsTGgFLoICVoPRp9ykOgqmdMotJG0CnPsKvGQeSFOB/dZfIujdVb14TYxDU4+MURXry1MhJ7LzZhv+Ml7cr8/g==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/breakpoint-utils': 2.0.8 '@chakra-ui/react-env': 3.1.0(react@18.2.0) @@ -2680,7 +2707,7 @@ packages: peerDependencies: '@chakra-ui/system': '>=2.0.0' framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/clickable': 2.1.0(react@18.2.0) '@chakra-ui/descendant': 3.1.0(react@18.2.0) @@ -2707,7 +2734,7 @@ packages: peerDependencies: '@chakra-ui/system': '>=2.0.0' framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' react-dom: '>=18' dependencies: '@chakra-ui/close-button': 2.1.1(@chakra-ui/system@2.6.2)(react@18.2.0) @@ -2732,7 +2759,7 @@ packages: resolution: {integrity: sha512-pfOdX02sqUN0qC2ysuvgVDiws7xZ20XDIlcNhva55Jgm095xjm8eVdIBfNm3SFbSUNxyXvLTW/YQanX74tKmuA==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/counter': 2.1.0(react@18.2.0) '@chakra-ui/form-control': 2.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) @@ -2762,7 +2789,7 @@ packages: resolution: {integrity: sha512-x4vBqLStDxJFMt+jdAHHS8jbh294O53CPQJoL4g228P513rHylV/uPscYUHrVJXRxsHfRztQO9k45jjTYaPRMw==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/descendant': 3.1.0(react@18.2.0) '@chakra-ui/react-children-utils': 2.0.6(react@18.2.0) @@ -2779,7 +2806,7 @@ packages: peerDependencies: '@chakra-ui/system': '>=2.0.0' framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/close-button': 2.1.1(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/lazy-utils': 2.0.5 @@ -2800,7 +2827,7 @@ packages: /@chakra-ui/popper@3.1.0(react@18.2.0): resolution: {integrity: sha512-ciDdpdYbeFG7og6/6J8lkTFxsSvwTdMLFkpVylAF6VNC22jssiWfquj2eyD4rJnzkRFPvIWJq8hvbfhsm+AjSg==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-types': 2.0.7(react@18.2.0) '@chakra-ui/react-use-merge-refs': 2.1.0(react@18.2.0) @@ -2811,7 +2838,7 @@ packages: /@chakra-ui/portal@2.1.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-9q9KWf6SArEcIq1gGofNcFPSWEyl+MfJjEUg/un1SMlQjaROOh3zYr+6JAwvcORiX7tyHosnmWC3d3wI2aPSQg==} peerDependencies: - react: 18.2.0 + react: '>=18' react-dom: '>=18' dependencies: '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -2824,7 +2851,7 @@ packages: resolution: {integrity: sha512-qUXuKbuhN60EzDD9mHR7B67D7p/ZqNS2Aze4Pbl1qGGZfulPW0PY8Rof32qDtttDQBkzQIzFGE8d9QpAemToIQ==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-context': 2.1.0(react@18.2.0) '@chakra-ui/system': 2.6.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) @@ -2836,7 +2863,7 @@ packages: peerDependencies: '@emotion/react': ^11.0.0 '@emotion/styled': ^11.0.0 - react: 18.2.0 + react: '>=18' react-dom: '>=18' dependencies: '@chakra-ui/css-reset': 2.3.0(@emotion/react@11.11.1)(react@18.2.0) @@ -2854,7 +2881,7 @@ packages: resolution: {integrity: sha512-n10M46wJrMGbonaghvSRnZ9ToTv/q76Szz284gv4QUWvyljQACcGrXIONUnQ3BIwbOfkRqSk7Xl/JgZtVfll+w==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/form-control': 2.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -2869,7 +2896,7 @@ packages: /@chakra-ui/react-children-utils@2.0.6(react@18.2.0): resolution: {integrity: sha512-QVR2RC7QsOsbWwEnq9YduhpqSFnZGvjjGREV8ygKi8ADhXh93C8azLECCUVgRJF2Wc+So1fgxmjLcbZfY2VmBA==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -2877,7 +2904,7 @@ packages: /@chakra-ui/react-context@2.1.0(react@18.2.0): resolution: {integrity: sha512-iahyStvzQ4AOwKwdPReLGfDesGG+vWJfEsn0X/NoGph/SkN+HXtv2sCfYFFR9k7bb+Kvc6YfpLlSuLvKMHi2+w==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -2885,7 +2912,7 @@ packages: /@chakra-ui/react-env@3.1.0(react@18.2.0): resolution: {integrity: sha512-Vr96GV2LNBth3+IKzr/rq1IcnkXv+MLmwjQH6C8BRtn3sNskgDFD5vLkVXcEhagzZMCh8FR3V/bzZPojBOyNhw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-safe-layout-effect': 2.1.0(react@18.2.0) react: 18.2.0 @@ -2894,7 +2921,7 @@ packages: /@chakra-ui/react-types@2.0.7(react@18.2.0): resolution: {integrity: sha512-12zv2qIZ8EHwiytggtGvo4iLT0APris7T0qaAWqzpUGS0cdUtR8W+V1BJ5Ocq+7tA6dzQ/7+w5hmXih61TuhWQ==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -2902,7 +2929,7 @@ packages: /@chakra-ui/react-use-animation-state@2.1.0(react@18.2.0): resolution: {integrity: sha512-CFZkQU3gmDBwhqy0vC1ryf90BVHxVN8cTLpSyCpdmExUEtSEInSCGMydj2fvn7QXsz/za8JNdO2xxgJwxpLMtg==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/dom-utils': 2.1.0 '@chakra-ui/react-use-event-listener': 2.1.0(react@18.2.0) @@ -2912,7 +2939,7 @@ packages: /@chakra-ui/react-use-callback-ref@2.1.0(react@18.2.0): resolution: {integrity: sha512-efnJrBtGDa4YaxDzDE90EnKD3Vkh5a1t3w7PhnRQmsphLy3g2UieasoKTlT2Hn118TwDjIv5ZjHJW6HbzXA9wQ==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -2920,7 +2947,7 @@ packages: /@chakra-ui/react-use-controllable-state@2.1.0(react@18.2.0): resolution: {integrity: sha512-QR/8fKNokxZUs4PfxjXuwl0fj/d71WPrmLJvEpCTkHjnzu7LnYvzoe2wB867IdooQJL0G1zBxl0Dq+6W1P3jpg==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-callback-ref': 2.1.0(react@18.2.0) react: 18.2.0 @@ -2929,7 +2956,7 @@ packages: /@chakra-ui/react-use-disclosure@2.1.0(react@18.2.0): resolution: {integrity: sha512-Ax4pmxA9LBGMyEZJhhUZobg9C0t3qFE4jVF1tGBsrLDcdBeLR9fwOogIPY9Hf0/wqSlAryAimICbr5hkpa5GSw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-callback-ref': 2.1.0(react@18.2.0) react: 18.2.0 @@ -2938,7 +2965,7 @@ packages: /@chakra-ui/react-use-event-listener@2.1.0(react@18.2.0): resolution: {integrity: sha512-U5greryDLS8ISP69DKDsYcsXRtAdnTQT+jjIlRYZ49K/XhUR/AqVZCK5BkR1spTDmO9H8SPhgeNKI70ODuDU/Q==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-callback-ref': 2.1.0(react@18.2.0) react: 18.2.0 @@ -2947,7 +2974,7 @@ packages: /@chakra-ui/react-use-focus-effect@2.1.0(react@18.2.0): resolution: {integrity: sha512-xzVboNy7J64xveLcxTIJ3jv+lUJKDwRM7Szwn9tNzUIPD94O3qwjV7DDCUzN2490nSYDF4OBMt/wuDBtaR3kUQ==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/dom-utils': 2.1.0 '@chakra-ui/react-use-event-listener': 2.1.0(react@18.2.0) @@ -2959,7 +2986,7 @@ packages: /@chakra-ui/react-use-focus-on-pointer-down@2.1.0(react@18.2.0): resolution: {integrity: sha512-2jzrUZ+aiCG/cfanrolsnSMDykCAbv9EK/4iUyZno6BYb3vziucmvgKuoXbMPAzWNtwUwtuMhkby8rc61Ue+Lg==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-event-listener': 2.1.0(react@18.2.0) react: 18.2.0 @@ -2968,7 +2995,7 @@ packages: /@chakra-ui/react-use-interval@2.1.0(react@18.2.0): resolution: {integrity: sha512-8iWj+I/+A0J08pgEXP1J1flcvhLBHkk0ln7ZvGIyXiEyM6XagOTJpwNhiu+Bmk59t3HoV/VyvyJTa+44sEApuw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-callback-ref': 2.1.0(react@18.2.0) react: 18.2.0 @@ -2977,7 +3004,7 @@ packages: /@chakra-ui/react-use-latest-ref@2.1.0(react@18.2.0): resolution: {integrity: sha512-m0kxuIYqoYB0va9Z2aW4xP/5b7BzlDeWwyXCH6QpT2PpW3/281L3hLCm1G0eOUcdVlayqrQqOeD6Mglq+5/xoQ==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -2985,7 +3012,7 @@ packages: /@chakra-ui/react-use-merge-refs@2.1.0(react@18.2.0): resolution: {integrity: sha512-lERa6AWF1cjEtWSGjxWTaSMvneccnAVH4V4ozh8SYiN9fSPZLlSG3kNxfNzdFvMEhM7dnP60vynF7WjGdTgQbQ==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -2993,7 +3020,7 @@ packages: /@chakra-ui/react-use-outside-click@2.2.0(react@18.2.0): resolution: {integrity: sha512-PNX+s/JEaMneijbgAM4iFL+f3m1ga9+6QK0E5Yh4s8KZJQ/bLwZzdhMz8J/+mL+XEXQ5J0N8ivZN28B82N1kNw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-callback-ref': 2.1.0(react@18.2.0) react: 18.2.0 @@ -3002,7 +3029,7 @@ packages: /@chakra-ui/react-use-pan-event@2.1.0(react@18.2.0): resolution: {integrity: sha512-xmL2qOHiXqfcj0q7ZK5s9UjTh4Gz0/gL9jcWPA6GVf+A0Od5imEDa/Vz+533yQKWiNSm1QGrIj0eJAokc7O4fg==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/event-utils': 2.0.8 '@chakra-ui/react-use-latest-ref': 2.1.0(react@18.2.0) @@ -3013,7 +3040,7 @@ packages: /@chakra-ui/react-use-previous@2.1.0(react@18.2.0): resolution: {integrity: sha512-pjxGwue1hX8AFcmjZ2XfrQtIJgqbTF3Qs1Dy3d1krC77dEsiCUbQ9GzOBfDc8pfd60DrB5N2tg5JyHbypqh0Sg==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -3021,7 +3048,7 @@ packages: /@chakra-ui/react-use-safe-layout-effect@2.1.0(react@18.2.0): resolution: {integrity: sha512-Knbrrx/bcPwVS1TorFdzrK/zWA8yuU/eaXDkNj24IrKoRlQrSBFarcgAEzlCHtzuhufP3OULPkELTzz91b0tCw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -3029,7 +3056,7 @@ packages: /@chakra-ui/react-use-size@2.1.0(react@18.2.0): resolution: {integrity: sha512-tbLqrQhbnqOjzTaMlYytp7wY8BW1JpL78iG7Ru1DlV4EWGiAmXFGvtnEt9HftU0NJ0aJyjgymkxfVGI55/1Z4A==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@zag-js/element-size': 0.10.5 react: 18.2.0 @@ -3038,7 +3065,7 @@ packages: /@chakra-ui/react-use-timeout@2.1.0(react@18.2.0): resolution: {integrity: sha512-cFN0sobKMM9hXUhyCofx3/Mjlzah6ADaEl/AXl5Y+GawB5rgedgAcu2ErAgarEkwvsKdP6c68CKjQ9dmTQlJxQ==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-use-callback-ref': 2.1.0(react@18.2.0) react: 18.2.0 @@ -3047,7 +3074,7 @@ packages: /@chakra-ui/react-use-update-effect@2.1.0(react@18.2.0): resolution: {integrity: sha512-ND4Q23tETaR2Qd3zwCKYOOS1dfssojPLJMLvUtUbW5M9uW1ejYWgGUobeAiOVfSplownG8QYMmHTP86p/v0lbA==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: react: 18.2.0 dev: false @@ -3055,7 +3082,7 @@ packages: /@chakra-ui/react-utils@2.0.12(react@18.2.0): resolution: {integrity: sha512-GbSfVb283+YA3kA8w8xWmzbjNWk14uhNpntnipHCftBibl0lxtQ9YqMFQLwuFOO0U2gYVocszqqDWX+XNKq9hw==} peerDependencies: - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/utils': 2.0.15 react: 18.2.0 @@ -3067,7 +3094,7 @@ packages: '@emotion/react': ^11.0.0 '@emotion/styled': ^11.0.0 framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' react-dom: '>=18' dependencies: '@chakra-ui/accordion': 2.3.1(@chakra-ui/system@2.6.2)(framer-motion@11.0.3)(react@18.2.0) @@ -3136,7 +3163,7 @@ packages: resolution: {integrity: sha512-ZwCb7LqKCVLJhru3DXvKXpZ7Pbu1TDZ7N0PdQ0Zj1oyVLJyrpef1u9HR5u0amOpqcH++Ugt0f5JSmirjNlctjA==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/form-control': 2.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/shared-utils': 2.0.5 @@ -3152,7 +3179,7 @@ packages: resolution: {integrity: sha512-JNRuMPpdZGd6zFVKjVQ0iusu3tXAdI29n4ZENYwAJEMf/fN0l12sVeirOxkJ7oEL0yOx2AgEYFSKdbcAgfUsAQ==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/media-query': 3.3.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-use-previous': 2.1.0(react@18.2.0) @@ -3165,7 +3192,7 @@ packages: resolution: {integrity: sha512-Hk+FG+vadBSH0/7hwp9LJnLjkO0RPGnx7gBJWI4/SpoJf3e4tZlWYtwGj0toYY4aGKl93jVghuwGbDBEMoHDug==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/system': 2.6.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) react: 18.2.0 @@ -3175,7 +3202,7 @@ packages: resolution: {integrity: sha512-lUOBcLMCnFZiA/s2NONXhELJh6sY5WtbRykPtclGfynqqOo47lwWJx+VP7xaeuhDOPcWSSecWc9Y1BfPOCz9cQ==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/number-utils': 2.0.7 '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -3195,7 +3222,7 @@ packages: resolution: {integrity: sha512-hczbnoXt+MMv/d3gE+hjQhmkzLiKuoTo42YhUG7Bs9OSv2lg1fZHW1fGNRFP3wTi6OIbD044U1P9HK+AOgFH3g==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/shared-utils': 2.0.5 '@chakra-ui/system': 2.6.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) @@ -3206,7 +3233,7 @@ packages: resolution: {integrity: sha512-LDn0d/LXQNbAn2KaR3F1zivsZCewY4Jsy1qShmfBMKwn6rI8yVlbvu6SiA3OpHS0FhxbsZxQI6HefEoIgtqY6Q==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/icon': 3.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -3219,7 +3246,7 @@ packages: resolution: {integrity: sha512-ky77lZbW60zYkSXhYz7kbItUpAQfEdycT0Q4bkHLxfqbuiGMf8OmgZOQkOB9uM4v0zPwy2HXhe0vq4Dd0xa55Q==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/icon': 3.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -3241,7 +3268,7 @@ packages: peerDependencies: '@chakra-ui/system': '>=2.0.0' framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/checkbox': 2.3.2(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/shared-utils': 2.0.5 @@ -3255,7 +3282,7 @@ packages: peerDependencies: '@emotion/react': ^11.0.0 '@emotion/styled': ^11.0.0 - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/color-mode': 2.2.0(react@18.2.0) '@chakra-ui/object-utils': 2.1.0 @@ -3273,7 +3300,7 @@ packages: resolution: {integrity: sha512-o5OrjoHCh5uCLdiUb0Oc0vq9rIAeHSIRScc2ExTC9Qg/uVZl2ygLrjToCaKfaaKl1oQexIeAcZDKvPG8tVkHyQ==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/react-context': 2.1.0(react@18.2.0) '@chakra-ui/shared-utils': 2.0.5 @@ -3285,7 +3312,7 @@ packages: resolution: {integrity: sha512-6Mlclp8L9lqXmsGWF5q5gmemZXOiOYuh0SGT/7PgJVNPz3LXREXlXg2an4MBUD8W5oTkduCX+3KTMCwRrVrDYw==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/clickable': 2.1.0(react@18.2.0) '@chakra-ui/descendant': 3.1.0(react@18.2.0) @@ -3304,7 +3331,7 @@ packages: resolution: {integrity: sha512-Bdel79Dv86Hnge2PKOU+t8H28nm/7Y3cKd4Kfk9k3lOpUh4+nkSGe58dhRzht59lEqa4N9waCgQiBdkydjvBXQ==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/icon': 3.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/react-context': 2.1.0(react@18.2.0) @@ -3316,7 +3343,7 @@ packages: resolution: {integrity: sha512-ip7tvklVCZUb2fOHDb23qPy/Fr2mzDOGdkrpbNi50hDCiV4hFX02jdQJdi3ydHZUyVgZVBKPOJ+lT9i7sKA2wA==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/form-control': 2.2.0(@chakra-ui/system@2.6.2)(react@18.2.0) '@chakra-ui/shared-utils': 2.0.5 @@ -3360,7 +3387,7 @@ packages: peerDependencies: '@chakra-ui/system': 2.6.2 framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' react-dom: '>=18' dependencies: '@chakra-ui/alert': 2.2.2(@chakra-ui/system@2.6.2)(react@18.2.0) @@ -3383,7 +3410,7 @@ packages: peerDependencies: '@chakra-ui/system': '>=2.0.0' framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' react-dom: '>=18' dependencies: '@chakra-ui/dom-utils': 2.1.0 @@ -3404,7 +3431,7 @@ packages: resolution: {integrity: sha512-orkT6T/Dt+/+kVwJNy7zwJ+U2xAZ3EU7M3XCs45RBvUnZDr/u9vdmaM/3D/rOpmQJWgQBwKPJleUXrYWUagEDQ==} peerDependencies: framer-motion: '>=4.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/shared-utils': 2.0.5 framer-motion: 11.0.3(react-dom@18.2.0)(react@18.2.0) @@ -3424,7 +3451,7 @@ packages: resolution: {integrity: sha512-KmKDg01SrQ7VbTD3+cPWf/UfpF5MSwm3v7MWi0n5t8HnnadT13MF0MJCDSXbBWnzLv1ZKJ6zlyAOeARWX+DpjQ==} peerDependencies: '@chakra-ui/system': '>=2.0.0' - react: 18.2.0 + react: '>=18' dependencies: '@chakra-ui/system': 2.6.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(react@18.2.0) react: 18.2.0 @@ -3661,7 +3688,7 @@ packages: '@bufbuild/protobuf': ^1.3.3 '@connectrpc/connect': ^1.1.2 '@tanstack/react-query': ^5.0.0 - react: 18.2.0 + react: ^18.2.0 react-dom: ^18.2.0 dependencies: '@bufbuild/protobuf': 1.4.1 @@ -3796,7 +3823,7 @@ packages: resolution: {integrity: sha512-5mlW1DquU5HaxjLkfkGN1GA/fvVGdyHURRiX/0FHl2cfIfRxSOfmxEH5YS43edp0OldZrZ+dkBKbngxcNCdZvA==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: '>=16.8.0' peerDependenciesMeta: '@types/react': optional: true @@ -3832,7 +3859,7 @@ packages: peerDependencies: '@emotion/react': ^11.0.0-rc.0 '@types/react': '*' - react: 18.2.0 + react: '>=16.8.0' peerDependenciesMeta: '@types/react': optional: true @@ -3855,7 +3882,7 @@ packages: /@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@18.2.0): resolution: {integrity: sha512-jT/qyKZ9rzLErtrjGgdkMBn2OP8wl0G3sQlBb3YPryvKHsjvINUhVaPFfP+fpBcOkmrVOVEEHQFJ7nbj2TH2gw==} peerDependencies: - react: 18.2.0 + react: '>=16.8.0' dependencies: react: 18.2.0 dev: false @@ -4850,7 +4877,7 @@ packages: /@floating-ui/react-dom@2.0.1(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-rZtAmSht4Lry6gdhAJDrCp/6rKN7++JnL1/Anbr/DdeyYXQPxvg/ivrbYvJulbRf4vL8b212suwMM2lxbv+RQA==} peerDependencies: - react: 18.2.0 + react: '>=16.8.0' react-dom: '>=16.8.0' dependencies: '@floating-ui/dom': 1.4.5 @@ -4862,8 +4889,8 @@ packages: resolution: {integrity: sha512-9j+kg2UjtLZD5EBmGjeWHkoVVxtbShYg2DzbUVebibnZYZM/iMBEF4vaccXJIAm5KaomIPLx0aoNs4LbODyc3Q==} peerDependencies: '@graphiql/react': ^0.20.2 - graphql: 16.7.1 - react: 18.2.0 + graphql: ^15.5.0 || ^16.0.0 + react: ^16.8.0 || ^17 || ^18 react-dom: ^16.8.0 || ^17 || ^18 dependencies: '@graphiql/react': 0.20.2(@codemirror/language@6.0.0)(@types/node@20.3.1)(@types/react-dom@18.2.6)(@types/react@18.2.14)(graphql-ws@5.14.1)(graphql@16.7.1)(react-dom@18.2.0)(react@18.2.0) @@ -4876,8 +4903,8 @@ packages: /@graphiql/react@0.20.2(@codemirror/language@6.0.0)(@types/node@20.3.1)(@types/react-dom@18.2.6)(@types/react@18.2.14)(graphql-ws@5.14.1)(graphql@16.7.1)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-/crAUlM+4iVHyNHVdiZjsTEqfMXBHfjEvrMwCwTVig6YXmCAVuaxqkD7NlDtrrPQArLGkABmf1Nw7ObRpby5lg==} peerDependencies: - graphql: 16.7.1 - react: 18.2.0 + graphql: ^15.5.0 || ^16.0.0 + react: ^16.8.0 || ^17 || ^18 react-dom: ^16.8.0 || ^17 || ^18 dependencies: '@graphiql/toolkit': 0.9.1(@types/node@20.3.1)(graphql-ws@5.14.1)(graphql@16.7.1) @@ -4909,7 +4936,7 @@ packages: /@graphiql/toolkit@0.9.1(@types/node@20.3.1)(graphql-ws@5.14.1)(graphql@16.7.1): resolution: {integrity: sha512-LVt9pdk0830so50ZnU2Znb2rclcoWznG8r8asqAENzV0U1FM1kuY0sdPpc/rBc9MmmNgnB6A+WZzDhq6dbhTHA==} peerDependencies: - graphql: 16.7.1 + graphql: ^15.5.0 || ^16.0.0 graphql-ws: '>= 4.5.0' peerDependenciesMeta: graphql-ws: @@ -4923,11 +4950,39 @@ packages: - '@types/node' dev: false + /@graphql-eslint/eslint-plugin@3.20.1(@babel/core@7.23.7)(@types/node@18.19.21)(graphql@16.7.1): + resolution: {integrity: sha512-RbwVlz1gcYG62sECR1u0XqMh8w5e5XMCCZoMvPQ3nJzEBCTfXLGX727GBoRmSvY1x4gJmqNZ1lsOX7lZY14RIw==} + engines: {node: '>=12'} + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + dependencies: + '@babel/code-frame': 7.23.5 + '@graphql-tools/code-file-loader': 7.3.23(@babel/core@7.23.7)(graphql@16.7.1) + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.23.7)(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + chalk: 4.1.2 + debug: 4.3.4 + fast-glob: 3.3.1 + graphql: 16.7.1 + graphql-config: 4.5.0(@types/node@18.19.21)(graphql@16.7.1) + graphql-depth-limit: 1.1.0(graphql@16.7.1) + lodash.lowercase: 4.3.0 + tslib: 2.6.2 + transitivePeerDependencies: + - '@babel/core' + - '@types/node' + - bufferutil + - cosmiconfig-toml-loader + - encoding + - supports-color + - utf-8-validate + dev: true + /@graphql-inspector/core@5.0.2(graphql@16.7.1): resolution: {integrity: sha512-pXHPCggwLmgi5NACPPV4qyf2xW/sQONnu6ZqCAid3k/S2APmVYN4Z3OvxvLA12NFhzby5Sz5K4fRsId43cK8ww==} engines: {node: '>=16.0.0'} peerDependencies: - graphql: 16.7.1 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 dependencies: dependency-graph: 0.11.0 graphql: 16.7.1 @@ -4935,21 +4990,203 @@ packages: tslib: 2.6.2 dev: false + /@graphql-tools/batch-execute@8.5.22(graphql@16.7.1): + resolution: {integrity: sha512-hcV1JaY6NJQFQEwCKrYhpfLK8frSXDbtNMoTur98u10Cmecy1zrqNKSqhEyGetpgHxaJRqszGzKeI3RuroDN6A==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + dataloader: 2.2.2 + graphql: 16.7.1 + tslib: 2.6.2 + value-or-promise: 1.0.12 + dev: true + + /@graphql-tools/code-file-loader@7.3.23(@babel/core@7.23.7)(graphql@16.7.1): + resolution: {integrity: sha512-8Wt1rTtyTEs0p47uzsPJ1vAtfAx0jmxPifiNdmo9EOCuUPyQGEbMaik/YkqZ7QUFIEYEQu+Vgfo8tElwOPtx5Q==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/graphql-tag-pluck': 7.5.2(@babel/core@7.23.7)(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + globby: 11.1.0 + graphql: 16.7.1 + tslib: 2.6.2 + unixify: 1.0.0 + transitivePeerDependencies: + - '@babel/core' + - supports-color + dev: true + + /@graphql-tools/delegate@9.0.35(graphql@16.7.1): + resolution: {integrity: sha512-jwPu8NJbzRRMqi4Vp/5QX1vIUeUPpWmlQpOkXQD2r1X45YsVceyUUBnktCrlJlDB4jPRVy7JQGwmYo3KFiOBMA==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/batch-execute': 8.5.22(graphql@16.7.1) + '@graphql-tools/executor': 0.0.20(graphql@16.7.1) + '@graphql-tools/schema': 9.0.19(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + dataloader: 2.2.2 + graphql: 16.7.1 + tslib: 2.6.2 + value-or-promise: 1.0.12 + dev: true + + /@graphql-tools/executor-graphql-ws@0.0.14(graphql@16.7.1): + resolution: {integrity: sha512-P2nlkAsPZKLIXImFhj0YTtny5NQVGSsKnhi7PzXiaHSXc6KkzqbWZHKvikD4PObanqg+7IO58rKFpGXP7eeO+w==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@repeaterjs/repeater': 3.0.4 + '@types/ws': 8.5.10 + graphql: 16.7.1 + graphql-ws: 5.12.1(graphql@16.7.1) + isomorphic-ws: 5.0.0(ws@8.13.0) + tslib: 2.6.2 + ws: 8.13.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + dev: true + + /@graphql-tools/executor-http@0.1.10(@types/node@18.19.21)(graphql@16.7.1): + resolution: {integrity: sha512-hnAfbKv0/lb9s31LhWzawQ5hghBfHS+gYWtqxME6Rl0Aufq9GltiiLBcl7OVVOnkLF0KhwgbYP1mB5VKmgTGpg==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@repeaterjs/repeater': 3.0.5 + '@whatwg-node/fetch': 0.8.8 + dset: 3.1.3 + extract-files: 11.0.0 + graphql: 16.7.1 + meros: 1.3.0(@types/node@18.19.21) + tslib: 2.6.2 + value-or-promise: 1.0.12 + transitivePeerDependencies: + - '@types/node' + dev: true + + /@graphql-tools/executor-legacy-ws@0.0.11(graphql@16.7.1): + resolution: {integrity: sha512-4ai+NnxlNfvIQ4c70hWFvOZlSUN8lt7yc+ZsrwtNFbFPH/EroIzFMapAxM9zwyv9bH38AdO3TQxZ5zNxgBdvUw==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@types/ws': 8.5.10 + graphql: 16.7.1 + isomorphic-ws: 5.0.0(ws@8.13.0) + tslib: 2.6.2 + ws: 8.13.0 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + dev: true + + /@graphql-tools/executor@0.0.20(graphql@16.7.1): + resolution: {integrity: sha512-GdvNc4vszmfeGvUqlcaH1FjBoguvMYzxAfT6tDd4/LgwymepHhinqLNA5otqwVLW+JETcDaK7xGENzFomuE6TA==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-typed-document-node/core': 3.2.0(graphql@16.7.1) + '@repeaterjs/repeater': 3.0.5 + graphql: 16.7.1 + tslib: 2.6.2 + value-or-promise: 1.0.12 + dev: true + + /@graphql-tools/graphql-file-loader@7.5.17(graphql@16.7.1): + resolution: {integrity: sha512-hVwwxPf41zOYgm4gdaZILCYnKB9Zap7Ys9OhY1hbwuAuC4MMNY9GpUjoTU3CQc3zUiPoYStyRtUGkHSJZ3HxBw==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/import': 6.7.18(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + globby: 11.1.0 + graphql: 16.7.1 + tslib: 2.6.2 + unixify: 1.0.0 + dev: true + + /@graphql-tools/graphql-tag-pluck@7.5.2(@babel/core@7.23.7)(graphql@16.7.1): + resolution: {integrity: sha512-RW+H8FqOOLQw0BPXaahYepVSRjuOHw+7IL8Opaa5G5uYGOBxoXR7DceyQ7BcpMgktAOOmpDNQ2WtcboChOJSRA==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@babel/parser': 7.23.6 + '@babel/plugin-syntax-import-assertions': 7.23.3(@babel/core@7.23.7) + '@babel/traverse': 7.23.7 + '@babel/types': 7.23.6 + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + graphql: 16.7.1 + tslib: 2.6.2 + transitivePeerDependencies: + - '@babel/core' + - supports-color + dev: true + + /@graphql-tools/import@6.7.18(graphql@16.7.1): + resolution: {integrity: sha512-XQDdyZTp+FYmT7as3xRWH/x8dx0QZA2WZqfMF5EWb36a0PiH7WwlRQYIdyYXj8YCLpiWkeBXgBRHmMnwEYR8iQ==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + graphql: 16.7.1 + resolve-from: 5.0.0 + tslib: 2.6.2 + dev: true + + /@graphql-tools/json-file-loader@7.4.18(graphql@16.7.1): + resolution: {integrity: sha512-AJ1b6Y1wiVgkwsxT5dELXhIVUPs/u3VZ8/0/oOtpcoyO/vAeM5rOvvWegzicOOnQw8G45fgBRMkkRfeuwVt6+w==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + globby: 11.1.0 + graphql: 16.7.1 + tslib: 2.6.2 + unixify: 1.0.0 + dev: true + + /@graphql-tools/load@7.8.14(graphql@16.7.1): + resolution: {integrity: sha512-ASQvP+snHMYm+FhIaLxxFgVdRaM0vrN9wW2BKInQpktwWTXVyk+yP5nQUCEGmn0RTdlPKrffBaigxepkEAJPrg==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/schema': 9.0.19(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + graphql: 16.7.1 + p-limit: 3.1.0 + tslib: 2.6.2 + dev: true + /@graphql-tools/merge@8.3.1(graphql@16.7.1): resolution: {integrity: sha512-BMm99mqdNZbEYeTPK3it9r9S6rsZsQKtlqJsSBknAclXq2pGEfOxjcIZi+kBSkHZKPKCRrYDd5vY0+rUmIHVLg==} peerDependencies: - graphql: 16.7.1 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@graphql-tools/utils': 8.9.0(graphql@16.7.1) graphql: 16.7.1 tslib: 2.6.2 - dev: false + + /@graphql-tools/merge@8.4.2(graphql@16.7.1): + resolution: {integrity: sha512-XbrHAaj8yDuINph+sAfuq3QCZ/tKblrTLOpirK0+CAgNlZUCHs0Fa+xtMUURgwCVThLle1AF7svJCxFizygLsw==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + graphql: 16.7.1 + tslib: 2.6.2 + dev: true /@graphql-tools/merge@9.0.0(graphql@16.7.1): resolution: {integrity: sha512-J7/xqjkGTTwOJmaJQJ2C+VDBDOWJL3lKrHJN4yMaRLAJH3PosB7GiPRaSDZdErs0+F77sH2MKs2haMMkywzx7Q==} engines: {node: '>=16.0.0'} peerDependencies: - graphql: 16.7.1 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@graphql-tools/utils': 10.1.0(graphql@16.7.1) graphql: 16.7.1 @@ -4960,7 +5197,7 @@ packages: resolution: {integrity: sha512-kf3qOXMFcMs2f/S8Y3A8fm/2w+GaHAkfr3Gnhh2LOug/JgpY/ywgFVxO3jOeSpSEdoYcDKLcXVjMigNbY4AdQg==} engines: {node: '>=16.0.0'} peerDependencies: - graphql: 16.7.1 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@graphql-tools/merge': 9.0.0(graphql@16.7.1) '@graphql-tools/utils': 10.1.0(graphql@16.7.1) @@ -4972,7 +5209,7 @@ packages: /@graphql-tools/schema@8.5.1(graphql@16.7.1): resolution: {integrity: sha512-0Esilsh0P/qYcB5DKQpiKeQs/jevzIadNTaT0jeWklPMwNbT7yMX4EqZany7mbeRRlSRwMzNzL5olyFdffHBZg==} peerDependencies: - graphql: 16.7.1 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@graphql-tools/merge': 8.3.1(graphql@16.7.1) '@graphql-tools/utils': 8.9.0(graphql@16.7.1) @@ -4981,11 +5218,49 @@ packages: value-or-promise: 1.0.11 dev: false + /@graphql-tools/schema@9.0.19(graphql@16.7.1): + resolution: {integrity: sha512-oBRPoNBtCkk0zbUsyP4GaIzCt8C0aCI4ycIRUL67KK5pOHljKLBBtGT+Jr6hkzA74C8Gco8bpZPe7aWFjiaK2w==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/merge': 8.4.2(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + graphql: 16.7.1 + tslib: 2.6.2 + value-or-promise: 1.0.12 + dev: true + + /@graphql-tools/url-loader@7.17.18(@types/node@18.19.21)(graphql@16.7.1): + resolution: {integrity: sha512-ear0CiyTj04jCVAxi7TvgbnGDIN2HgqzXzwsfcqiVg9cvjT40NcMlZ2P1lZDgqMkZ9oyLTV8Bw6j+SyG6A+xPw==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@ardatan/sync-fetch': 0.0.1 + '@graphql-tools/delegate': 9.0.35(graphql@16.7.1) + '@graphql-tools/executor-graphql-ws': 0.0.14(graphql@16.7.1) + '@graphql-tools/executor-http': 0.1.10(@types/node@18.19.21)(graphql@16.7.1) + '@graphql-tools/executor-legacy-ws': 0.0.11(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + '@graphql-tools/wrap': 9.4.2(graphql@16.7.1) + '@types/ws': 8.5.10 + '@whatwg-node/fetch': 0.8.8 + graphql: 16.7.1 + isomorphic-ws: 5.0.0(ws@8.16.0) + tslib: 2.6.2 + value-or-promise: 1.0.12 + ws: 8.16.0 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - encoding + - utf-8-validate + dev: true + /@graphql-tools/utils@10.1.0(graphql@16.7.1): resolution: {integrity: sha512-wLPqhgeZ9BZJPRoaQbsDN/CtJDPd/L4qmmtPkjI3NuYJ39x+Eqz1Sh34EAGMuDh+xlOHqBwHczkZUpoK9tvzjw==} engines: {node: '>=16.0.0'} peerDependencies: - graphql: 16.7.1 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.7.1) cross-inspect: 1.0.0 @@ -4997,35 +5272,45 @@ packages: /@graphql-tools/utils@8.9.0(graphql@16.7.1): resolution: {integrity: sha512-pjJIWH0XOVnYGXCqej8g/u/tsfV4LvLlj0eATKQu5zwnxd/TiTHq7Cg313qUPTFFHZ3PP5wJ15chYVtLDwaymg==} peerDependencies: - graphql: 16.7.1 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: graphql: 16.7.1 tslib: 2.6.2 - dev: false /@graphql-tools/utils@9.2.1(graphql@16.7.1): resolution: {integrity: sha512-WUw506Ql6xzmOORlriNrD6Ugx+HjVgYxt9KCXD9mHAak+eaXSwuGGPyE60hy9xaDEoXKBsG7SkG69ybitaVl6A==} peerDependencies: - graphql: 16.7.1 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.7.1) graphql: 16.7.1 tslib: 2.6.1 - dev: false + + /@graphql-tools/wrap@9.4.2(graphql@16.7.1): + resolution: {integrity: sha512-DFcd9r51lmcEKn0JW43CWkkI2D6T9XI1juW/Yo86i04v43O9w2/k4/nx2XTJv4Yv+iXwUw7Ok81PGltwGJSDSA==} + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + dependencies: + '@graphql-tools/delegate': 9.0.35(graphql@16.7.1) + '@graphql-tools/schema': 9.0.19(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + graphql: 16.7.1 + tslib: 2.6.2 + value-or-promise: 1.0.12 + dev: true /@graphql-typed-document-node/core@3.2.0(graphql@16.7.1): resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==} peerDependencies: - graphql: 16.7.1 + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 dependencies: graphql: 16.7.1 - dev: false /@headlessui/react@1.7.15(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-OTO0XtoRQ6JPB1cKNFYBZv2Q0JMqMGNhYP1CjPvcJvjz8YGokz8oAj89HIYZGN0gZzn/4kk9iUpmMF4Q21Gsqw==} engines: {node: '>=10'} peerDependencies: - react: 18.2.0 + react: ^16 || ^17 || ^18 react-dom: ^16 || ^17 || ^18 dependencies: client-only: 0.0.1 @@ -5036,7 +5321,7 @@ packages: /@heroicons/react@2.0.18(react@18.2.0): resolution: {integrity: sha512-7TyMjRrZZMBPa+/5Y8lN0iyvUU/01PeMGX2+RE7cQWpEUIcb4QotzUObFkJDejj/HUH4qjP/eQ0gzzKs2f+6Yw==} peerDependencies: - react: 18.2.0 + react: '>= 16' dependencies: react: 18.2.0 dev: false @@ -5406,7 +5691,7 @@ packages: engines: {node: '>=14.7.0'} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: '*' peerDependenciesMeta: '@types/react': optional: true @@ -5424,7 +5709,7 @@ packages: peerDependencies: '@markdoc/markdoc': '*' next: '*' - react: 18.2.0 + react: '*' dependencies: '@markdoc/markdoc': 0.4.0(@types/react@18.2.14)(react@18.2.0) js-yaml: 4.1.0 @@ -5445,7 +5730,7 @@ packages: resolution: {integrity: sha512-RFkU9/i7cN2bsq/iTkurMWOEErmYcY6JiQI3Jn+WeR/FGISH8JbHERjpS9oRuSOPvDMJI0Z8nJeKkbOs9sBYQw==} peerDependencies: monaco-editor: '>= 0.25.0 < 1' - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: '@monaco-editor/loader': 1.4.0(monaco-editor@0.45.0) @@ -6232,6 +6517,32 @@ packages: aggregate-error: 3.1.0 dev: false + /@peculiar/asn1-schema@2.3.8: + resolution: {integrity: sha512-ULB1XqHKx1WBU/tTFIA+uARuRoBVZ4pNdOA878RDrRbBfBGcSzi5HBkdScC6ZbHn8z7L8gmKCgPC1LHRrP46tA==} + dependencies: + asn1js: 3.0.5 + pvtsutils: 1.3.5 + tslib: 2.6.2 + dev: true + + /@peculiar/json-schema@1.1.12: + resolution: {integrity: sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==} + engines: {node: '>=8.0.0'} + dependencies: + tslib: 2.6.2 + dev: true + + /@peculiar/webcrypto@1.4.5: + resolution: {integrity: sha512-oDk93QCDGdxFRM8382Zdminzs44dg3M2+E5Np+JWkpqLDyJC9DviMh8F8mEJkYuUcUOGA5jHO5AJJ10MFWdbZw==} + engines: {node: '>=10.12.0'} + dependencies: + '@peculiar/asn1-schema': 2.3.8 + '@peculiar/json-schema': 1.1.12 + pvtsutils: 1.3.5 + tslib: 2.6.2 + webcrypto-core: 1.7.8 + dev: true + /@pkgjs/parseargs@0.11.0: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -6278,7 +6589,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6307,7 +6618,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6333,7 +6644,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6354,7 +6665,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6378,7 +6689,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6406,7 +6717,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6434,7 +6745,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6456,7 +6767,7 @@ packages: /@radix-ui/react-compose-refs@1.0.0(react@18.2.0): resolution: {integrity: sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 react: 18.2.0 @@ -6466,7 +6777,7 @@ packages: resolution: {integrity: sha512-fDSBgd44FKHa1FRMU59qBMPFcl2PZE+2nmqunj+BWFyYYjnhIDWL2ItDs3rrbJDQOtzt5nIebLCQc4QRfz6LJw==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -6479,7 +6790,7 @@ packages: /@radix-ui/react-context@1.0.0(react@18.2.0): resolution: {integrity: sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 react: 18.2.0 @@ -6489,7 +6800,7 @@ packages: resolution: {integrity: sha512-ebbrdFoYTcuZ0v4wG5tedGnp9tzcV8awzsxYph7gXUyvnNLuTIcCk1q17JEbnVhXAKG9oX3KtchwiMIAYp9NLg==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -6502,7 +6813,7 @@ packages: /@radix-ui/react-dialog@1.0.0(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-Yn9YU+QlHYLWwV1XfKiqnGVpWYWk6MeBVM6x/bcoyPvxgjQGoeT35482viLPctTMWoMw0PoHgqfSox7Ig+957Q==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 @@ -6531,7 +6842,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6565,7 +6876,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6598,7 +6909,7 @@ packages: resolution: {integrity: sha512-RXcvnXgyvYvBEOhCBuddKecVkoMiI10Jcm5cTI7abJRAHYfFxeu+FBQs/DvdxSYucxR5mna0dNsL6QFlds5TMA==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -6611,7 +6922,7 @@ packages: /@radix-ui/react-dismissable-layer@1.0.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-n7kDRfx+LB1zLueRDvZ1Pd0bxdJWDUZNQ/GWoxDn2prnuJKRdxsjulejX/ePkOsLi2tTm6P24mDqlMSgQpsT6g==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 @@ -6629,7 +6940,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6654,7 +6965,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6679,7 +6990,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6704,7 +7015,7 @@ packages: /@radix-ui/react-focus-guards@1.0.0(react@18.2.0): resolution: {integrity: sha512-UagjDk4ijOAnGu4WMUPj9ahi7/zJJqNZ9ZAiGPp7waUWJO0O1aWXi/udPphI0IUjvrhBsZJGSN66dR2dsueLWQ==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 react: 18.2.0 @@ -6714,7 +7025,7 @@ packages: resolution: {integrity: sha512-Rect2dWbQ8waGzhMavsIbmSVCgYxkXLxxR3ZvCX79JOglzdEy4JXMb98lq4hPxUbLr77nP0UOGf4rcMU+s1pUA==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -6727,7 +7038,7 @@ packages: /@radix-ui/react-focus-scope@1.0.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-C4SWtsULLGf/2L4oGeIHlvWQx7Rf+7cX/vKOAD2dXW0A1b5QXwi3wWeaEgW+wn+SEVrraMUk05vLU9fZZz5HbQ==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 @@ -6743,7 +7054,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6766,7 +7077,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6789,7 +7100,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6816,7 +7127,7 @@ packages: /@radix-ui/react-icons@1.3.0(react@18.2.0): resolution: {integrity: sha512-jQxj/0LKgp+j9BiTXz3O3sgs26RNet2iLWmsPyRz2SIcR4q/4SbazXfnYwbAr+vLYKSfc7qxzyGQA1HLlYiuNw==} peerDependencies: - react: 18.2.0 + react: ^16.x || ^17.x || ^18.x dependencies: react: 18.2.0 dev: false @@ -6824,7 +7135,7 @@ packages: /@radix-ui/react-id@1.0.0(react@18.2.0): resolution: {integrity: sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 '@radix-ui/react-use-layout-effect': 1.0.0(react@18.2.0) @@ -6835,7 +7146,7 @@ packages: resolution: {integrity: sha512-tI7sT/kqYp8p96yGWY1OAnLHrqDgzHefRBKQ2YAkBS5ja7QLcZ9Z/uY7bEjPUatf8RomoXM8/1sMj1IJaE5UzQ==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -6851,7 +7162,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6872,7 +7183,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6910,7 +7221,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6945,7 +7256,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -6975,7 +7286,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7003,7 +7314,7 @@ packages: /@radix-ui/react-portal@1.0.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-a8qyFO/Xb99d8wQdu4o7qnigNjTPG123uADNecz0eX4usnQEj7o+cG4ZX4zkqq98NYekT7UoEQIjxBNWIFuqTA==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 @@ -7017,7 +7328,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7038,7 +7349,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7057,7 +7368,7 @@ packages: /@radix-ui/react-presence@1.0.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-A+6XEvN01NfVWiKu38ybawfHsBjWum42MRPnEuqPsBZ4eV7e/7K321B5VgYMPv3Xx5An6o1/l9ZuDBgmcmWK3w==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 @@ -7072,7 +7383,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7092,7 +7403,7 @@ packages: /@radix-ui/react-primitive@1.0.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-EyXe6mnRlHZ8b6f4ilTDrXmkLShICIuOTTj0GX4w1rp+wSxf3+TD05u1UOITC8VsJ2a9nwHvdXtOXEOl0Cw/zQ==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 @@ -7106,7 +7417,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7127,7 +7438,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7156,7 +7467,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7185,7 +7496,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7226,7 +7537,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7247,7 +7558,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7276,7 +7587,7 @@ packages: /@radix-ui/react-slot@1.0.0(react@18.2.0): resolution: {integrity: sha512-3mrKauI/tWXo1Ll+gN5dHcxDPdm/Df1ufcDLCecn+pnCIVcdWE7CujXo8QaXOWRJyZyQWWbpB8eFwHzWXlv5mQ==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) @@ -7287,7 +7598,7 @@ packages: resolution: {integrity: sha512-YeTpuq4deV+6DusvVUW4ivBgnkHwECUu0BiN43L5UCDFgdhsRUWAghhTF5MbvNTPzmiFOx90asDSUjWuCNapwg==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -7303,7 +7614,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7330,7 +7641,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7358,7 +7669,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7390,7 +7701,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7413,7 +7724,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7443,7 +7754,7 @@ packages: /@radix-ui/react-use-callback-ref@1.0.0(react@18.2.0): resolution: {integrity: sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 react: 18.2.0 @@ -7453,7 +7764,7 @@ packages: resolution: {integrity: sha512-D94LjX4Sp0xJFVaoQOd3OO9k7tpBYNOXdVhkltUbGv2Qb9OXdrg/CpsjlZv7ia14Sylv398LswWBVVu5nqKzAQ==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -7466,7 +7777,7 @@ packages: /@radix-ui/react-use-controllable-state@1.0.0(react@18.2.0): resolution: {integrity: sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 '@radix-ui/react-use-callback-ref': 1.0.0(react@18.2.0) @@ -7477,7 +7788,7 @@ packages: resolution: {integrity: sha512-Svl5GY5FQeN758fWKrjM6Qb7asvXeiZltlT4U2gVfl8Gx5UAv2sMR0LWo8yhsIZh2oQ0eFdZ59aoOOMV7b47VA==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -7491,7 +7802,7 @@ packages: /@radix-ui/react-use-escape-keydown@1.0.0(react@18.2.0): resolution: {integrity: sha512-JwfBCUIfhXRxKExgIqGa4CQsiMemo1Xt0W/B4ei3fpzpvPENKpMKQ8mZSB6Acj3ebrAEgi2xiQvcI1PAAodvyg==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 '@radix-ui/react-use-callback-ref': 1.0.0(react@18.2.0) @@ -7502,7 +7813,7 @@ packages: resolution: {integrity: sha512-vyL82j40hcFicA+M4Ex7hVkB9vHgSse1ZWomAqV2Je3RleKGO5iM8KMOEtfoSB0PnIelMd2lATjTGMYqN5ylTg==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -7516,7 +7827,7 @@ packages: /@radix-ui/react-use-layout-effect@1.0.0(react@18.2.0): resolution: {integrity: sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==} peerDependencies: - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 dependencies: '@babel/runtime': 7.23.4 react: 18.2.0 @@ -7526,7 +7837,7 @@ packages: resolution: {integrity: sha512-v/5RegiJWYdoCvMnITBkNNx6bCj20fiaJnWtRkU18yITptraXjffz5Qbn05uOiQnOvi+dbkznkoaMltz1GnszQ==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -7540,7 +7851,7 @@ packages: resolution: {integrity: sha512-cV5La9DPwiQ7S0gf/0qiD6YgNqM5Fk97Kdrlc5yBcrF3jyEZQwm7vYFqMo4IfeHgJXsRaMvLABFtd0OVEmZhDw==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -7554,7 +7865,7 @@ packages: resolution: {integrity: sha512-Cq5DLuSiuYVKNU8orzJMbl15TXilTnJKUCltMVQg53BQOF1/C5toAaGrowkgksdBQ9H+SRL23g0HDmg9tvmxXw==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -7569,7 +7880,7 @@ packages: resolution: {integrity: sha512-ibay+VqrgcaI6veAojjofPATwledXiSmX+C0KrBk/xgpX9rBzPV3OsfwlhQdUOFbh+LKQorLYT+xTXW9V8yd0g==} peerDependencies: '@types/react': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': optional: true @@ -7585,7 +7896,7 @@ packages: peerDependencies: '@types/react': '*' '@types/react-dom': '*' - react: 18.2.0 + react: ^16.8 || ^17.0 || ^18.0 react-dom: ^16.8 || ^17.0 || ^18.0 peerDependenciesMeta: '@types/react': @@ -7610,7 +7921,7 @@ packages: /@reactflow/background@11.3.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-KOy24lz9HpaBlx5KGcpQRsbMRWWkZdFyRxFq5RfPy6BnxDx0GFZ2o2igKKVutuo2bgCQdhaqzipcOUHlEAvnbQ==} peerDependencies: - react: 18.2.0 + react: '>=17' react-dom: '>=17' dependencies: '@reactflow/core': 11.9.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0) @@ -7626,7 +7937,7 @@ packages: /@reactflow/controls@11.2.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-VuDxm9l0B4esXzRpzKRqH7Sc1Szj+KBV1bsswaOQWDbLlGKRtIZMXjdQ9BwBf+PMJD4ANrmnGEdHxFTL6NUpbg==} peerDependencies: - react: 18.2.0 + react: '>=17' react-dom: '>=17' dependencies: '@reactflow/core': 11.9.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0) @@ -7642,7 +7953,7 @@ packages: /@reactflow/core@11.9.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-/tiE8sPShzeWFnshvi8hc1lbp1C5PLgAFl94JQdBstq94uOBTpdoI//1MN4a+fGp1xwAUP7P0IcLuWqIDZgrZg==} peerDependencies: - react: 18.2.0 + react: '>=17' react-dom: '>=17' dependencies: '@types/d3': 7.4.0 @@ -7664,7 +7975,7 @@ packages: /@reactflow/minimap@11.7.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-GqhJ0AoNhYf/GXI7JlWOR4THvi1nEcyo6sL6pGupJu8Ve1b8rpcTKNh4mXIerl8x0oRF8ajGvpIvh4R6rEtLoQ==} peerDependencies: - react: 18.2.0 + react: '>=17' react-dom: '>=17' dependencies: '@reactflow/core': 11.9.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0) @@ -7684,7 +7995,7 @@ packages: /@reactflow/node-resizer@2.2.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-p8fqfEtMdXVAEdAT74GVpMeIm2v2t92LObKPFvIbOaA11vmcp+jSt45y2mPD6CxP6snzEVHXigYmGZNiujDtlQ==} peerDependencies: - react: 18.2.0 + react: '>=17' react-dom: '>=17' dependencies: '@reactflow/core': 11.9.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0) @@ -7702,7 +8013,7 @@ packages: /@reactflow/node-toolbar@1.3.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-s8gP07HClKDidsBSrcljoK600cdVLLBK1gNK0bSVpCk3hBVKUkEGESwMf7VwpZ1oxhM3859R3pz++7lUrbmF3w==} peerDependencies: - react: 18.2.0 + react: '>=17' react-dom: '>=17' dependencies: '@reactflow/core': 11.9.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0) @@ -7743,6 +8054,14 @@ packages: type-fest: 2.19.0 dev: false + /@repeaterjs/repeater@3.0.4: + resolution: {integrity: sha512-AW8PKd6iX3vAZ0vA43nOUOnbq/X5ihgU+mSXXqunMkeQADGiqw/PY0JNeYtD5sr0PAy51YPgAPbDoeapv9r8WA==} + dev: true + + /@repeaterjs/repeater@3.0.5: + resolution: {integrity: sha512-l3YHBLAol6d/IKnB9LhpD0cEZWAoe3eFKUyTYWmFmCO2Q/WOckxLQAUyMZWwZV2M/m3+4vgRoaolFqaII82/TA==} + dev: true + /@rollup/rollup-android-arm-eabi@4.9.5: resolution: {integrity: sha512-idWaG8xeSRCfRq9KpRysDHJ/rEHBEXcHuJ82XY0yYFIWnLMjZv9vF/7DOq8djQ2n3Lk6+3qfSH8AqlmHlmi1MA==} cpu: [arm] @@ -7858,7 +8177,7 @@ packages: '@emotion/react': ^11 '@emotion/styled': ^11 framer-motion: '>=5.5.0' - react: 18.2.0 + react: '>=18' react-dom: '>=18' dependencies: '@chakra-ui/react': 2.8.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.14)(framer-motion@11.0.3)(react-dom@18.2.0)(react@18.2.0) @@ -7880,7 +8199,7 @@ packages: resolution: {integrity: sha512-b6n/jYKac796U0NQOyPjtyhCq5Qy6n8+2dhNGghZF0NO+6qcxMGOZld8c6kRVvMxjjKbR7nTaqOBpf2p7JN24A==} peerDependencies: '@chakra-ui/react': '>=2.4.6' - react: 18.2.0 + react: '>=18.0.0' dependencies: '@chakra-ui/react': 2.8.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.14)(framer-motion@11.0.3)(react-dom@18.2.0)(react@18.2.0) '@chakra-ui/utils': 2.0.15 @@ -7892,7 +8211,7 @@ packages: peerDependencies: '@chakra-ui/react': '>=2.4.6' '@chakra-ui/system': '>=2.3.8' - react: 18.2.0 + react: '>=18.0.0' dependencies: '@chakra-ui/anatomy': 2.2.2 '@chakra-ui/react': 2.8.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.14)(framer-motion@11.0.3)(react-dom@18.2.0)(react@18.2.0) @@ -7909,7 +8228,7 @@ packages: '@emotion/react': '>=11.0.0' '@emotion/styled': '>=11.0.0' framer-motion: '>=6.0.0' - react: 18.2.0 + react: '>=18.0.0' react-dom: '>=18.0.0' dependencies: '@chakra-ui/react': 2.8.2(@emotion/react@11.11.1)(@emotion/styled@11.11.0)(@types/react@18.2.14)(framer-motion@11.0.3)(react-dom@18.2.0)(react@18.2.0) @@ -8901,7 +9220,7 @@ packages: /@tanstack/react-query@5.4.3(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-4aSOrRNa6yEmf7mws5QPTVMn8Lp7L38tFoTZ0c1ZmhIvbr8GIA0WT7X5N3yz/nuK8hUtjw9cAzBr4BPDZZ+tzA==} peerDependencies: - react: 18.2.0 + react: ^18.0.0 react-dom: ^18.0.0 react-native: '*' peerDependenciesMeta: @@ -8918,7 +9237,7 @@ packages: resolution: {integrity: sha512-Ng9rdm3JPoSCi6cVZvANsYnF+UoGVRxflMb270tVj0+LjeT/ZtZ9ckxF6oLPLcKesza6VKBqtdF9mQ+vaz24Aw==} engines: {node: '>=12'} peerDependencies: - react: 18.2.0 + react: '>=16' react-dom: '>=16' dependencies: '@tanstack/table-core': 8.9.3 @@ -8929,7 +9248,7 @@ packages: /@tanstack/react-virtual@3.0.1(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-IFOFuRUTaiM/yibty9qQ9BfycQnYXIDHGP2+cU+0LrFFGNhVxCXSQnaY6wkX8uJVteFEBjUondX0Hmpp7TNcag==} peerDependencies: - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: '@tanstack/virtual-core': 3.0.0 @@ -8964,7 +9283,7 @@ packages: resolution: {integrity: sha512-z4p7DVBTPjKM5qDZ0t5ZjzkpSNb+fZy1u6bzO7kk8oeGagpPCAtgh4cx1syrfp7a+QWkM021jGqjJaxJJnXAZg==} engines: {node: '>=14'} peerDependencies: - react: 18.2.0 + react: ^18.0.0 react-dom: ^18.0.0 dependencies: '@babel/runtime': 7.23.4 @@ -9196,7 +9515,7 @@ packages: peerDependencies: '@tiptap/core': ^2.0.0 '@tiptap/pm': ^2.0.0 - react: 18.2.0 + react: ^17.0.0 || ^18.0.0 react-dom: ^17.0.0 || ^18.0.0 dependencies: '@tiptap/core': 2.1.13(@tiptap/pm@2.1.13) @@ -9545,19 +9864,21 @@ packages: resolution: {integrity: sha512-nv+GSx77ZtXiJzwKdsASqi+YQ5Z7vwHsTP0JY2SiQgjGckkBRKZnk8nIM+7oUZ1VCtuTz0+By4qVR7fqzp/Dfg==} dev: true + /@types/eslint@8.56.2: + resolution: {integrity: sha512-uQDwm1wFHmbBbCZCqAlq6Do9LYwByNZHWzXppSnay9SuwJ+VRbjkbLABer54kcPnMSlG6Fdiy2yaFXm/z9Z5gw==} + dependencies: + '@types/estree': 1.0.5 + '@types/json-schema': 7.0.12 + dev: true + /@types/estree-jsx@1.0.3: resolution: {integrity: sha512-pvQ+TKeRHeiUGRhvYwRrQ/ISnohKkSJR14fT2yqyZ4e9K5vqc7hrtY2Y1Dw0ZwAzQ6DQsxsaCUuSIIi8v0Cq6w==} dependencies: - '@types/estree': 1.0.2 - dev: false - - /@types/estree@1.0.2: - resolution: {integrity: sha512-VeiPZ9MMwXjO32/Xu7+OwflfmeoRwkE/qzndw42gGtgJwZopBnzy2gD//NN1+go1mADzkDcqf/KnFRSjTJ8xJA==} + '@types/estree': 1.0.5 dev: false /@types/estree@1.0.5: resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} - dev: true /@types/geojson@7946.0.10: resolution: {integrity: sha512-Nmh0K3iWQJzniTuPRcJn5hxXkfB1T1pgB89SBig5PlJQU5yocazeu4jATJlaA0GYFKWMqDdvYemoSnF2pXgLVA==} @@ -9742,7 +10063,7 @@ packages: /@types/tern@0.23.5: resolution: {integrity: sha512-POau56wDk3TQ0mQ0qG7XDzv96U5whSENZ9lC0htDvEH+9YUREo+J2U+apWcVRgR2UydEE70JXZo44goG+akTNQ==} dependencies: - '@types/estree': 1.0.2 + '@types/estree': 1.0.5 dev: false /@types/throttle-debounce@2.1.0: @@ -9767,6 +10088,12 @@ packages: resolution: {integrity: sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==} dev: true + /@types/ws@8.5.10: + resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} + dependencies: + '@types/node': 20.9.0 + dev: true + /@typescript-eslint/eslint-plugin@5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.52.0)(typescript@5.2.2): resolution: {integrity: sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -10311,6 +10638,30 @@ packages: pretty-format: 29.7.0 dev: true + /@whatwg-node/events@0.0.3: + resolution: {integrity: sha512-IqnKIDWfXBJkvy/k6tzskWTc2NK3LcqHlb+KHGCrjOCH4jfQckRX0NAiIcC/vIqQkzLYw2r2CTSwAxcrtcD6lA==} + dev: true + + /@whatwg-node/fetch@0.8.8: + resolution: {integrity: sha512-CdcjGC2vdKhc13KKxgsc6/616BQ7ooDIgPeTuAiE8qfCnS0mGzcfCOoZXypQSz73nxI+GWc7ZReIAVhxoE1KCg==} + dependencies: + '@peculiar/webcrypto': 1.4.5 + '@whatwg-node/node-fetch': 0.3.6 + busboy: 1.6.0 + urlpattern-polyfill: 8.0.2 + web-streams-polyfill: 3.2.1 + dev: true + + /@whatwg-node/node-fetch@0.3.6: + resolution: {integrity: sha512-w9wKgDO4C95qnXZRwZTfCmLWqyRnooGjcIwG0wADWjw9/HN0p7dtvtgSvItZtUyNteEvgTrd8QojNEqV6DAGTA==} + dependencies: + '@whatwg-node/events': 0.0.3 + busboy: 1.6.0 + fast-querystring: 1.1.2 + fast-url-parser: 1.1.3 + tslib: 2.6.2 + dev: true + /@zag-js/dom-query@0.16.0: resolution: {integrity: sha512-Oqhd6+biWyKnhKwFFuZrrf6lxBz2tX2pRQe6grUnYwO6HJ8BcbqZomy2lpOdr+3itlaUqx+Ywj5E5ZZDr/LBfQ==} dev: false @@ -10626,6 +10977,15 @@ packages: engines: {node: '>=0.10.0'} dev: true + /asn1js@3.0.5: + resolution: {integrity: sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==} + engines: {node: '>=12.0.0'} + dependencies: + pvtsutils: 1.3.5 + pvutils: 1.1.3 + tslib: 2.6.2 + dev: true + /assertion-error@1.1.0: resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} @@ -10933,7 +11293,6 @@ packages: engines: {node: '>=10.16.0'} dependencies: streamsearch: 1.1.0 - dev: false /byte-size@8.1.1: resolution: {integrity: sha512-tUkzZWK0M/qdoLEqikxBWe4kumyuwjl3HO6zHTr4yEI23EojPtLYXdG1+AQY7MN0cGyNDvEaJ8wiYQm6P2bPxg==} @@ -11358,7 +11717,7 @@ packages: /cmdk@0.2.0(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-JQpKvEOb86SnvMZbYaFKYhvzFntWBeSZdyii0rZPhKJj9uwJBxu4DaVYDrRN7r3mPop56oPhRw+JYWTKs66TYw==} peerDependencies: - react: 18.2.0 + react: ^18.0.0 react-dom: ^18.0.0 dependencies: '@radix-ui/react-dialog': 1.0.0(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0) @@ -11374,7 +11733,7 @@ packages: peerDependencies: '@codemirror/language': 6.0.0 codemirror: ^5.65.3 - graphql: 16.7.1 + graphql: ^15.5.0 || ^16.0.0 dependencies: '@codemirror/language': 6.0.0 '@types/codemirror': 0.0.90 @@ -11680,6 +12039,16 @@ packages: yaml: 1.10.2 dev: false + /cosmiconfig@8.0.0: + resolution: {integrity: sha512-da1EafcpH6b/TD8vDRaWV7xFINlHlF6zKsGwS1TsuVJTZRkquaS5HTMq7uq6h31619QjbsYl21gVDOm32KM1vQ==} + engines: {node: '>=14'} + dependencies: + import-fresh: 3.3.0 + js-yaml: 4.1.0 + parse-json: 5.2.0 + path-type: 4.0.0 + dev: true + /cosmiconfig@8.2.0: resolution: {integrity: sha512-3rTMnFJA1tCOPwRxtgF4wd7Ab2qvDbL8jX+3smjIbS4HlZBagTlpERbdN7iAbWlrfxE3M8c27kTwTawQ7st+OQ==} engines: {node: '>=14'} @@ -11930,6 +12299,10 @@ packages: whatwg-url: 14.0.0 dev: true + /dataloader@2.2.2: + resolution: {integrity: sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g==} + dev: true + /date-fns-tz@2.0.0(date-fns@2.30.0): resolution: {integrity: sha512-OAtcLdB9vxSXTWHdT8b398ARImVwQMyjfYGkKD2zaGpHseG2UPHbHjXELReErZFxWdSLph3c2zOaaTyHfOhERQ==} peerDependencies: @@ -12396,7 +12769,7 @@ packages: mysql2: '>=2' pg: '>=8' postgres: '>=3' - react: 18.2.0 + react: '>=18' sql.js: '>=1' sqlite3: '>=5' peerDependenciesMeta: @@ -12452,7 +12825,6 @@ packages: /dset@3.1.3: resolution: {integrity: sha512-20TuZZHCEZ2O71q9/+8BwKwZ0QtD9D8ObhrihJPr+vLLYlSuAU3/zL4cSlgbfeoGHTjCSJBa7NGcrF9/Bx/WJQ==} engines: {node: '>=4'} - dev: false /duplexer@0.1.2: resolution: {integrity: sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==} @@ -14176,6 +14548,11 @@ packages: iconv-lite: 0.4.24 tmp: 0.0.33 + /extract-files@11.0.0: + resolution: {integrity: sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ==} + engines: {node: ^12.20 || >= 14.13} + dev: true + /fast-content-type-parse@1.1.0: resolution: {integrity: sha512-fBHHqSTFLVnR61C+gltJuE5GkVQMV0S2nqUO8TJ+5Z3qAKG8vAx4FKai1s5jq/inV1+sREynIWSuQ6HgoSXpDQ==} dev: false @@ -14186,7 +14563,6 @@ packages: /fast-decode-uri-component@1.0.1: resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==} - dev: false /fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} @@ -14241,7 +14617,6 @@ packages: resolution: {integrity: sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==} dependencies: fast-decode-uri-component: 1.0.1 - dev: false /fast-redact@3.2.0: resolution: {integrity: sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw==} @@ -14256,6 +14631,12 @@ packages: resolution: {integrity: sha512-cIusKBIt/R/oI6z/1nyfe2FvGKVTohVRfvkOhvx0nCEW+xf5NoCXjAHcWp93uOUBchzYcsvPlrapAdX1uW+YGg==} dev: false + /fast-url-parser@1.1.3: + resolution: {integrity: sha512-5jOCVXADYNuRkKFzNJ0dCCewsZiYo0dz8QNYljkOpFC6r2U4OBmKtvm/Tsuh4w1YYdDqDb31a8TVhBJ2OJKdqQ==} + dependencies: + punycode: 1.4.1 + dev: true + /fast-xml-parser@4.2.5: resolution: {integrity: sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==} hasBin: true @@ -14498,7 +14879,7 @@ packages: /framer-motion@11.0.3(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-6x2poQpIWBdbZwLd73w6cKZ1I9IEPIU94C6/Swp1Zt3LJ+sB5bPe1E2wC6EH5hSISXNkMJ4afH7AdwS7MrtkWw==} peerDependencies: - react: 18.2.0 + react: ^18.0.0 react-dom: ^18.0.0 peerDependenciesMeta: react: @@ -14516,7 +14897,7 @@ packages: /framer-motion@6.5.1(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-o1BGqqposwi7cgDrtg0dNONhkmPsUFDaLcKXigzuTFC5x58mE8iyTazxSudFzmT6MEyJKfjjU8ItoMe3W+3fiw==} peerDependencies: - react: 18.2.0 + react: '>=16.8 || ^17.0.0 || ^18.0.0' react-dom: '>=16.8 || ^17.0.0 || ^18.0.0' dependencies: '@motionone/dom': 10.12.0 @@ -14906,8 +15287,8 @@ packages: /graphiql-explorer@0.9.0(graphql@16.7.1)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-fZC/wsuatqiQDO2otchxriFO0LaWIo/ovF/CQJ1yOudmY0P7pzDiP+l9CEHUiWbizk3e99x6DQG4XG1VxA+d6A==} peerDependencies: - graphql: 16.7.1 - react: 18.2.0 + graphql: ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 + react: ^15.6.0 || ^16.0.0 react-dom: ^15.6.0 || ^16.0.0 dependencies: graphql: 16.7.1 @@ -14918,8 +15299,8 @@ packages: /graphiql@3.0.10(@codemirror/language@6.0.0)(@types/node@20.3.1)(@types/react-dom@18.2.6)(@types/react@18.2.14)(graphql-ws@5.14.1)(graphql@16.7.1)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-xgRFCg0mgIyca8keWkmBFA3knh9exDg53SxqFh96ewoMWYLeziqc0xIGFe2L/As8Aw1u5pFZcW913HwX3IXztw==} peerDependencies: - graphql: 16.7.1 - react: 18.2.0 + graphql: ^15.5.0 || ^16.0.0 + react: ^16.8.0 || ^17 || ^18 react-dom: ^16.8.0 || ^17 || ^18 dependencies: '@graphiql/react': 0.20.2(@codemirror/language@6.0.0)(@types/node@20.3.1)(@types/react-dom@18.2.6)(@types/react@18.2.14)(graphql-ws@5.14.1)(graphql@16.7.1)(react-dom@18.2.0)(react@18.2.0) @@ -14975,22 +15356,70 @@ packages: obliterator: 2.0.4 dev: false + /graphql-config@4.5.0(@types/node@18.19.21)(graphql@16.7.1): + resolution: {integrity: sha512-x6D0/cftpLUJ0Ch1e5sj1TZn6Wcxx4oMfmhaG9shM0DKajA9iR+j1z86GSTQ19fShbGvrSSvbIQsHku6aQ6BBw==} + engines: {node: '>= 10.0.0'} + peerDependencies: + cosmiconfig-toml-loader: ^1.0.0 + graphql: ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 + peerDependenciesMeta: + cosmiconfig-toml-loader: + optional: true + dependencies: + '@graphql-tools/graphql-file-loader': 7.5.17(graphql@16.7.1) + '@graphql-tools/json-file-loader': 7.4.18(graphql@16.7.1) + '@graphql-tools/load': 7.8.14(graphql@16.7.1) + '@graphql-tools/merge': 8.3.1(graphql@16.7.1) + '@graphql-tools/url-loader': 7.17.18(@types/node@18.19.21)(graphql@16.7.1) + '@graphql-tools/utils': 9.2.1(graphql@16.7.1) + cosmiconfig: 8.0.0 + graphql: 16.7.1 + jiti: 1.17.1 + minimatch: 4.2.3 + string-env-interpolation: 1.0.1 + tslib: 2.6.2 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - encoding + - utf-8-validate + dev: true + + /graphql-depth-limit@1.1.0(graphql@16.7.1): + resolution: {integrity: sha512-+3B2BaG8qQ8E18kzk9yiSdAa75i/hnnOwgSeAxVJctGQPvmeiLtqKOYF6HETCyRjiF7Xfsyal0HbLlxCQkgkrw==} + engines: {node: '>=6.0.0'} + peerDependencies: + graphql: '*' + dependencies: + arrify: 1.0.1 + graphql: 16.7.1 + dev: true + /graphql-language-service@5.2.0(graphql@16.7.1): resolution: {integrity: sha512-o/ZgTS0pBxWm3hSF4+6GwiV1//DxzoLWEbS38+jqpzzy1d/QXBidwQuVYTOksclbtOJZ3KR/tZ8fi/tI6VpVMg==} hasBin: true peerDependencies: - graphql: 16.7.1 + graphql: ^15.5.0 || ^16.0.0 dependencies: graphql: 16.7.1 nullthrows: 1.1.1 vscode-languageserver-types: 3.17.3 dev: false + /graphql-ws@5.12.1(graphql@16.7.1): + resolution: {integrity: sha512-umt4f5NnMK46ChM2coO36PTFhHouBrK9stWWBczERguwYrGnPNxJ9dimU6IyOBfOkC6Izhkg4H8+F51W/8CYDg==} + engines: {node: '>=10'} + peerDependencies: + graphql: '>=0.11 <=16' + dependencies: + graphql: 16.7.1 + dev: true + /graphql-ws@5.14.1(graphql@16.7.1): resolution: {integrity: sha512-aqkls1espsygP1PfkAuuLIV96IbztQ6EaADse97pw8wRIMT3+AL/OYfS8V2iCRkc0gzckitoDRGCQEdnySggiA==} engines: {node: '>=10'} peerDependencies: - graphql: 16.7.1 + graphql: '>=0.11 <=16' dependencies: graphql: 16.7.1 dev: false @@ -14998,7 +15427,6 @@ packages: /graphql@16.7.1: resolution: {integrity: sha512-DRYR9tf+UGU0KOsMcKAlXeFfX89UiiIZ0dRU3mR0yJfu6OjZqUcp68NnFLnqQU5RexygFoDy1EW+ccOYcPfmHg==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} - dev: false /handlebars@4.7.8: resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} @@ -15115,7 +15543,7 @@ packages: /hast-util-to-jsx-runtime@2.3.0: resolution: {integrity: sha512-H/y0+IWPdsLLS738P8tDnrQ8Z+dj12zQQ6WC11TIM21C8WFVoIxcqWXf2H3hiTVZjF1AWqoimGwrTWecWrnmRQ==} dependencies: - '@types/estree': 1.0.2 + '@types/estree': 1.0.5 '@types/hast': 3.0.3 '@types/unist': 3.0.2 comma-separated-tokens: 2.0.3 @@ -15829,6 +16257,22 @@ packages: resolution: {integrity: sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==} engines: {node: '>=0.10.0'} + /isomorphic-ws@5.0.0(ws@8.13.0): + resolution: {integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==} + peerDependencies: + ws: '*' + dependencies: + ws: 8.13.0 + dev: true + + /isomorphic-ws@5.0.0(ws@8.16.0): + resolution: {integrity: sha512-muId7Zzn9ywDsyXgTIafTry2sV3nySZeUDe6YedVd1Hvuuep5AsIlqK+XefWpYTyJG5e503F2xIuT2lcU6rCSw==} + peerDependencies: + ws: '*' + dependencies: + ws: 8.16.0 + dev: true + /jackspeak@2.3.0: resolution: {integrity: sha512-uKmsITSsF4rUWQHzqaRUuyAir3fZfW3f202Ee34lz/gZCi970CPZwyQXLGNgWJvvZbvFyzeyGq0+4fcG/mBKZg==} engines: {node: '>=14'} @@ -15849,6 +16293,11 @@ packages: minimatch: 3.1.2 dev: false + /jiti@1.17.1: + resolution: {integrity: sha512-NZIITw8uZQFuzQimqjUxIrIcEdxYDFIe/0xYfIlVXTkiBjjyBEvgasj5bb0/cHtPRD/NziPbT312sFrkI5ALpw==} + hasBin: true + dev: true + /jiti@1.19.1: resolution: {integrity: sha512-oVhqoRDaBXf7sjkll95LHVS6Myyyb1zaunVwk4Z0+WPSW4gjS0pl01zYKHScTuyEhQsFxV5L4DR5r+YqSyqyyg==} hasBin: true @@ -16301,6 +16750,10 @@ packages: resolution: {integrity: sha512-N8XRTIMMqqDgSy4VLKPnJ/+hpGZN+PHQiJnSenYqPaVV/NCqEogTnAdZLQiGKhxX+JCs8waWq2t1XHWKOmlY8g==} dev: true + /lodash.lowercase@4.3.0: + resolution: {integrity: sha512-UcvP1IZYyDKyEL64mmrwoA1AbFu5ahojhTtkOUr1K9dbuxzS9ev8i4TxMMGCqRC9TE8uDaSoufNAXxRPNTseVA==} + dev: true + /lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} dev: true @@ -16818,6 +17271,18 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} + /meros@1.3.0(@types/node@18.19.21): + resolution: {integrity: sha512-2BNGOimxEz5hmjUG2FwoxCt5HN7BXdaWyFqEwxPTrJzVdABtrL4TiHTcsWSFAxPQ/tOnEaQEJh3qWq71QRMY+w==} + engines: {node: '>=13'} + peerDependencies: + '@types/node': '>=13' + peerDependenciesMeta: + '@types/node': + optional: true + dependencies: + '@types/node': 18.19.21 + dev: true + /meros@1.3.0(@types/node@20.3.1): resolution: {integrity: sha512-2BNGOimxEz5hmjUG2FwoxCt5HN7BXdaWyFqEwxPTrJzVdABtrL4TiHTcsWSFAxPQ/tOnEaQEJh3qWq71QRMY+w==} engines: {node: '>=13'} @@ -17112,6 +17577,13 @@ packages: dependencies: brace-expansion: 1.1.11 + /minimatch@4.2.3: + resolution: {integrity: sha512-lIUdtK5hdofgCTu3aT0sOaHsYR37viUuIc0rwnnDXImbwFRcumyLMeZaM0t0I/fgxS6s6JMfu0rLD1Wz9pv1ng==} + engines: {node: '>=10'} + dependencies: + brace-expansion: 1.1.11 + dev: true + /minimatch@5.1.6: resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} engines: {node: '>=10'} @@ -17261,7 +17733,7 @@ packages: /monaco-graphql@1.4.0(graphql@16.7.1)(monaco-editor@0.45.0)(prettier@3.2.4): resolution: {integrity: sha512-+AoCVFkifSPtGpdLsqJM+uZ2dDeRB4QTHLgIZIj1QB9o8VrnInXeI2C8QnKuON0b2PVEPdu8fEQ/jSuNJFDAOg==} peerDependencies: - graphql: 16.7.1 + graphql: ^15.5.0 || ^16.0.0 monaco-editor: '>= 0.20.0 < 1' prettier: ^2.8.0 || ^3.0.0 dependencies: @@ -17349,7 +17821,7 @@ packages: resolution: {integrity: sha512-B+AKNfYNIzh0vqQQKqQItTS8evEouKD7H5Hj3kmuPERwddR2TxvDSFZuTj6T7Jfn1oyeUyJMydPl1Bkxkh0W7A==} peerDependencies: next: '*' - react: 18.2.0 + react: '*' react-dom: '*' dependencies: next: 14.1.0(@babel/core@7.23.7)(react-dom@18.2.0)(react@18.2.0) @@ -17367,7 +17839,7 @@ packages: hasBin: true peerDependencies: '@opentelemetry/api': ^1.1.0 - react: 18.2.0 + react: ^18.2.0 react-dom: ^18.2.0 sass: ^1.3.0 peerDependenciesMeta: @@ -17523,6 +17995,13 @@ packages: validate-npm-package-license: 3.0.4 dev: true + /normalize-path@2.1.1: + resolution: {integrity: sha512-3pKJwH184Xo/lnH6oyP1q2pMd7HcypqqmRs91/6/i2CGtWwIKGCkOOMTm/zXbgTEWHw1uNpNi/igc3ePOYHb6w==} + engines: {node: '>=0.10.0'} + dependencies: + remove-trailing-separator: 1.1.0 + dev: true + /normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} @@ -18014,7 +18493,7 @@ packages: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': 7.22.5 + '@babel/code-frame': 7.23.5 error-ex: 1.3.2 json-parse-even-better-errors: 2.3.1 lines-and-columns: 1.2.4 @@ -18023,7 +18502,7 @@ packages: resolution: {integrity: sha512-ihtdrgbqdONYD156Ap6qTcaGcGdkdAxodO1wLqQ/j7HP1u2sFYppINiq4jyC8F+Nm+4fVufylCV00QmkTHkSUg==} engines: {node: '>=16'} dependencies: - '@babel/code-frame': 7.22.5 + '@babel/code-frame': 7.23.5 error-ex: 1.3.2 json-parse-even-better-errors: 3.0.0 lines-and-columns: 2.0.3 @@ -18487,7 +18966,7 @@ packages: /prism-react-renderer@2.0.6(react@18.2.0): resolution: {integrity: sha512-ERzmAI5UvrcTw5ivfEG20/dYClAsC84eSED5p9X3oKpm0xPV4A5clFK1mp7lPIdKmbLnQYsPTGiOI7WS6gWigw==} peerDependencies: - react: 18.2.0 + react: '>=16.0.0' dependencies: '@types/prismjs': 1.26.3 clsx: 1.2.1 @@ -18742,6 +19221,10 @@ packages: engines: {node: '>=6'} dev: false + /punycode@1.4.1: + resolution: {integrity: sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==} + dev: true + /punycode@2.3.0: resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==} engines: {node: '>=6'} @@ -18751,6 +19234,17 @@ packages: engines: {node: '>=6'} dev: true + /pvtsutils@1.3.5: + resolution: {integrity: sha512-ARvb14YB9Nm2Xi6nBq1ZX6dAM0FsJnuk+31aUp4TrcZEdKUlSqOqsxJHUPJDNE3qiIp+iUPEIeR6Je/tgV7zsA==} + dependencies: + tslib: 2.6.2 + dev: true + + /pvutils@1.1.3: + resolution: {integrity: sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==} + engines: {node: '>=6.0.0'} + dev: true + /q@1.5.1: resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} engines: {node: '>=0.6.0', teleport: '>=0.2.0'} @@ -18797,7 +19291,7 @@ packages: /react-clientside-effect@1.2.6(react@18.2.0): resolution: {integrity: sha512-XGGGRQAKY+q25Lz9a/4EPqom7WRjz3z9R2k4jhVKA/puQFH/5Nt27vFZYql4m4NVNdUvX8PS3O7r/Zzm7cjUlg==} peerDependencies: - react: 18.2.0 + react: ^15.3.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 dependencies: '@babel/runtime': 7.23.4 react: 18.2.0 @@ -18806,7 +19300,7 @@ packages: /react-cookie@6.1.1(react@18.2.0): resolution: {integrity: sha512-fuFRpf8LH6SfmVMowDUIRywJF5jAUDUWrm0EI5VdXfTl5bPcJ7B0zWbuYpT0Tvikx7Gs18MlvAT+P+744dUz2g==} peerDependencies: - react: 18.2.0 + react: '>= 16.3.0' dependencies: '@types/hoist-non-react-statics': 3.3.5 hoist-non-react-statics: 3.3.2 @@ -18818,7 +19312,7 @@ packages: resolution: {integrity: sha512-+9t0HyClbCqw1IhYbpWecjsiaftCeRN5cdhsi9v06YdimwyMR2yYHWcgVn3URwtN/txhqKpEZB6UX1fHpvK76w==} peerDependencies: date-fns: 2.0.0-alpha.7 || >=2.0.0 - react: 18.2.0 + react: ^0.14 || ^15.0.0-rc || >=15.0 dependencies: classnames: 2.3.2 date-fns: 2.30.0 @@ -18832,7 +19326,7 @@ packages: resolution: {integrity: sha512-QIC3uOuyGGbtypbd5QEggsCSqVaPNu8kzUWquZ7JjW9fuWB9yv7WyixKmnaFelTLXFdq7h7zU6n/aBleBqe/dA==} peerDependencies: date-fns: ^2.28.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: date-fns: 2.30.0 react: 18.2.0 @@ -18841,7 +19335,7 @@ packages: /react-dom@18.2.0(react@18.2.0): resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} peerDependencies: - react: 18.2.0 + react: ^18.2.0 dependencies: loose-envify: 1.4.0 react: 18.2.0 @@ -18855,7 +19349,7 @@ packages: resolution: {integrity: sha512-h6vrdgUbsH2HeD5I7I3Cx1PPrmwGuKYICS+kB9m+32X/9xHRrAbxgvaBpG7BFBN9h3tO+C3qX1QAVESmi4CiIA==} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: '@types/react': optional: true @@ -18874,7 +19368,7 @@ packages: resolution: {integrity: sha512-6dWoFJwycbuFfw/iKMcl+RdAOAOHDiF11KWYhNDRN/OkUt+Di5qsZHwA0OwsVnu9y135gkHpTw9DJA+WzCeR9w==} engines: {node: '>=12.22.0'} peerDependencies: - react: 18.2.0 + react: ^16.8.0 || ^17 || ^18 dependencies: react: 18.2.0 dev: false @@ -18882,7 +19376,7 @@ packages: /react-icons@5.0.1(react@18.2.0): resolution: {integrity: sha512-WqLZJ4bLzlhmsvme6iFdgO8gfZP17rfjYEJ2m9RsZjZ+cc4k1hTzknEz63YS1MeT50kVzoa1Nz36f4BEx+Wigw==} peerDependencies: - react: 18.2.0 + react: '*' dependencies: react: 18.2.0 dev: false @@ -18904,7 +19398,7 @@ packages: /react-list@0.8.17(react@18.2.0): resolution: {integrity: sha512-pgmzGi0G5uGrdHzMhgO7KR1wx5ZXVvI3SsJUmkblSAKtewIhMwbQiMuQiTE83ozo04BQJbe0r3WIWzSO0dR1xg==} peerDependencies: - react: 18.2.0 + react: 0.14 || 15 - 18 dependencies: prop-types: 15.8.1 react: 18.2.0 @@ -18914,7 +19408,7 @@ packages: resolution: {integrity: sha512-186Gw/vF1uRkydbsOIkcGXw7aHq0sZOCRFFjGrr7b9+nVZg4UfA4enXCaxm4fUzecU38sWfrNDitGhshuU7rdg==} peerDependencies: '@types/react': '>=18' - react: 18.2.0 + react: '>=18' dependencies: '@types/hast': 3.0.3 '@types/react': 18.2.14 @@ -18935,7 +19429,7 @@ packages: /react-move-hook@0.1.2(react@18.2.0): resolution: {integrity: sha512-kl3CCIbvu8BgqKZ1FGNyfUtS0x2cAMf1DMrooBFZ5hbtVPD6z9Q855LhzbgRnsPBa830ryIh+RFJegmkentv+Q==} peerDependencies: - react: 18.2.0 + react: '>=16.8' dependencies: react: 18.2.0 dev: false @@ -18950,7 +19444,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: '@types/react': optional: true @@ -18966,7 +19460,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: '@types/react': optional: true @@ -18985,7 +19479,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: '@types/react': optional: true @@ -19004,7 +19498,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: '@types/react': optional: true @@ -19021,7 +19515,7 @@ packages: /react-resizable-panels@1.0.5(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-OP0whNQCko+f4BgoptGaeIc7StBRyeMeJ+8r/7rXACBDf9W5EcMWuM32hfqPDMenS2HFy/eZVi/r8XqK+ZIEag==} peerDependencies: - react: 18.2.0 + react: ^16.14.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.14.0 || ^17.0.0 || ^18.0.0 dependencies: react: 18.2.0 @@ -19032,7 +19526,7 @@ packages: resolution: {integrity: sha512-BMP2Ad42tD60h0JW6BFaib+RJuV5dsXJK9Baxiv/HlNFjvRLqA9xrNKxVWnUIZPQfzUwGXIlU/dSYLU+54YGQA==} peerDependencies: prop-types: ^15.6.0 - react: 18.2.0 + react: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 react-dom: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 dependencies: fast-equals: 5.0.1 @@ -19047,7 +19541,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: '@types/react': optional: true @@ -19062,7 +19556,7 @@ packages: /react-transition-group@2.9.0(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-+HzNTCHpeQyl4MJ/bdE0u6XRMe9+XG/+aL4mCxVN4DnPBQ0/5bfHWPDuOZUzYdMj94daZaZdCCc1Dzt9R/xSSg==} peerDependencies: - react: 18.2.0 + react: '>=15.0.0' react-dom: '>=15.0.0' dependencies: dom-helpers: 3.4.0 @@ -19082,7 +19576,7 @@ packages: /reactflow@11.9.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0): resolution: {integrity: sha512-hARhGVX9rcZhtRWsjBszDpF0EefsYhCzrRCk12CsB2oqWJZPLQD4OYh5eQygr9Yi3M/i+3+rcNyPs9IsFzU5iQ==} peerDependencies: - react: 18.2.0 + react: '>=17' react-dom: '>=17' dependencies: '@reactflow/background': 11.3.2(@types/react@18.2.14)(react-dom@18.2.0)(react@18.2.0) @@ -19242,7 +19736,7 @@ packages: engines: {node: '>=14'} peerDependencies: prop-types: ^15.6.0 - react: 18.2.0 + react: ^16.0.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 dependencies: clsx: 2.1.0 @@ -19378,6 +19872,10 @@ packages: unified: 11.0.4 dev: false + /remove-trailing-separator@1.1.0: + resolution: {integrity: sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw==} + dev: true + /require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -19952,13 +20450,16 @@ packages: /streamsearch@1.1.0: resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} engines: {node: '>=10.0.0'} - dev: false /string-argv@0.3.2: resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} engines: {node: '>=0.6.19'} dev: true + /string-env-interpolation@1.0.1: + resolution: {integrity: sha512-78lwMoCcn0nNu8LszbP1UA7g55OeE4v7rCeWnM5B453rnNr4aq+5it3FEYtZrSEiMvHZOZ9Jlqb0OD0M2VInqg==} + dev: true + /string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -20142,7 +20643,7 @@ packages: peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: 18.2.0 + react: '>= 16.8.0 || 17.x.x || ^18.0.0-0' peerDependenciesMeta: '@babel/core': optional: true @@ -20981,6 +21482,13 @@ packages: engines: {node: '>= 10.0.0'} dev: true + /unixify@1.0.0: + resolution: {integrity: sha512-6bc58dPYhCMHHuwxldQxO3RRNZ4eCogZ/st++0+fcC1nr0jiGUtAdBJ2qzmLQWSxbtz42pWt4QQMiZ9HvZf5cg==} + engines: {node: '>=0.10.0'} + dependencies: + normalize-path: 2.1.1 + dev: true + /unpipe@1.0.0: resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} engines: {node: '>= 0.8'} @@ -21045,12 +21553,16 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: false + /urlpattern-polyfill@8.0.2: + resolution: {integrity: sha512-Qp95D4TPJl1kC9SKigDcqgyM2VDVO4RiJc2d4qe5GrYm+zbIQCWWKAFaJNQ4BhdFeDGwBmAxqJBwWSJDb9T3BQ==} + dev: true + /use-callback-ref@1.3.0(@types/react@18.2.14)(react@18.2.0): resolution: {integrity: sha512-3FT9PRuRdbB9HfXhEq35u4oZkvpJ5kuYbpqhCfmiZyReuRgpnhDlbr2ZEnnuS0RrJAPn6l23xjFg9kpDM+Ms7w==} engines: {node: '>=10'} peerDependencies: '@types/react': ^16.8.0 || ^17.0.0 || ^18.0.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: '@types/react': optional: true @@ -21064,7 +21576,7 @@ packages: resolution: {integrity: sha512-kbeNVZ9Zkc0RFGpfMN3MNfaKNvcLNyxOAAd9O4CBZ+kCBXXscn9s/4I+8ytUER4RDpEYs5+O6Rs4PqiZ+rHr5Q==} engines: {node: '>=10', npm: '>=6'} peerDependencies: - react: 18.2.0 + react: '>=16.13' dependencies: '@babel/runtime': 7.22.6 dequal: 2.0.3 @@ -21076,7 +21588,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': ^16.9.0 || ^17.0.0 || ^18.0.0 - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 peerDependenciesMeta: '@types/react': optional: true @@ -21090,7 +21602,7 @@ packages: /use-sync-external-store@1.2.0(react@18.2.0): resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} peerDependencies: - react: 18.2.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: react: 18.2.0 dev: false @@ -21132,7 +21644,6 @@ packages: /value-or-promise@1.0.12: resolution: {integrity: sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==} engines: {node: '>=12'} - dev: false /vfile-location@5.0.2: resolution: {integrity: sha512-NXPYyxyBSH7zB5U6+3uDdd6Nybz6o6/od9rk8bp9H8GR3L+cm/fC0uUTbqBmUTnMCUDslAGBOIKNfvvb+gGlDg==} @@ -21673,6 +22184,16 @@ packages: engines: {node: '>= 14'} dev: false + /webcrypto-core@1.7.8: + resolution: {integrity: sha512-eBR98r9nQXTqXt/yDRtInszPMjTaSAMJAFDg2AHsgrnczawT1asx9YNBX6k5p+MekbPF4+s/UJJrr88zsTqkSg==} + dependencies: + '@peculiar/asn1-schema': 2.3.8 + '@peculiar/json-schema': 1.1.12 + asn1js: 3.0.5 + pvtsutils: 1.3.5 + tslib: 2.6.2 + dev: true + /webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} @@ -21866,6 +22387,19 @@ packages: write-json-file: 5.0.0 dev: true + /ws@8.13.0: + resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} + engines: {node: '>=10.0.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: '>=5.0.2' + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + /ws@8.16.0: resolution: {integrity: sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==} engines: {node: '>=10.0.0'} @@ -21984,7 +22518,7 @@ packages: peerDependencies: '@types/react': '>=16.8' immer: '>=9.0' - react: 18.2.0 + react: '>=16.8' peerDependenciesMeta: '@types/react': optional: true diff --git a/proto/wg/cosmo/platform/v1/platform.proto b/proto/wg/cosmo/platform/v1/platform.proto index eea1af362d..1e3bba102a 100644 --- a/proto/wg/cosmo/platform/v1/platform.proto +++ b/proto/wg/cosmo/platform/v1/platform.proto @@ -143,6 +143,25 @@ message CheckedFederatedGraphs { string organization_slug = 4; } +enum LintSeverity { + warn = 0; + error = 1; +} + +message LintLocation{ + uint32 line = 1; + uint32 column = 2; + optional uint32 endLine = 3; + optional uint32 endColumn = 4; +} + +message LintIssue{ + optional string lintRuleType = 1; + LintSeverity severity = 2; + string message = 3; + LintLocation issueLocation = 4; +} + message CheckSubgraphSchemaResponse { Response response = 1; repeated SchemaChange breakingChanges = 2; @@ -153,6 +172,8 @@ message CheckSubgraphSchemaResponse { CheckOperationUsageStats operationUsageStats = 5; string check_id = 6; repeated CheckedFederatedGraphs checked_federated_graphs = 7; + repeated LintIssue lintWarnings = 8; + repeated LintIssue lintErrors = 9; } message FixSubgraphSchemaResponse { @@ -318,6 +339,7 @@ message SchemaCheck { bool isForcedSuccess = 8; bool isDeleted = 9; optional SchemaCheckGhDetails ghDetails = 10; + bool hasLintErrors = 11; } message SchemaCheckGhDetails { @@ -358,6 +380,7 @@ message GetCheckSummaryResponse { repeated SchemaChange changes = 6; repeated string compositionErrors = 7; int32 traffic_check_days = 8; + repeated LintIssue lintIssues = 9; } message GetCheckOperationsRequest { @@ -1768,6 +1791,39 @@ message MoveGraphResponse { repeated CompositionError compositionErrors = 2; } +message GetNamespaceLintConfigRequest { + string namespace = 1; +} + +message GetNamespaceLintConfigResponse { + Response response = 1; + bool linterEnabled = 2; + repeated LintConfig configs = 3; +} + +message EnableLintingForTheNamespaceRequest { + string namespace = 1; + bool enableLinting = 2; +} + +message EnableLintingForTheNamespaceResponse { + Response response = 1; +} + +message LintConfig { + string ruleName = 1; + LintSeverity severityLevel = 2; +} + +message ConfigureNamespaceLintConfigRequest { + string namespace = 1; + repeated LintConfig configs = 2; +} + +message ConfigureNamespaceLintConfigResponse { + Response response = 1; +} + service PlatformService { // Namespaces rpc CreateNamespace(CreateNamespaceRequest) returns (CreateNamespaceResponse) {} @@ -1998,6 +2054,13 @@ service PlatformService { rpc CreateOrganization(CreateOrganizationRequest) returns (CreateOrganizationResponse) {} + // EnableLintingForTheNamespace enables the lint check for the namespace passed. + rpc EnableLintingForTheNamespace(EnableLintingForTheNamespaceRequest) returns (EnableLintingForTheNamespaceResponse) {} + // ConfigureNamespaceLintConfig configures the lint config of the organization. + rpc ConfigureNamespaceLintConfig(ConfigureNamespaceLintConfigRequest) returns (ConfigureNamespaceLintConfigResponse) {} + // GetNamespaceLintConfig returns the lint config of the organization. + rpc GetNamespaceLintConfig(GetNamespaceLintConfigRequest) returns (GetNamespaceLintConfigResponse) {} + // // Billing //----------------------------------------------------------------------------------------------------------------------------- diff --git a/studio/src/__tests__/lint-page.test.ts b/studio/src/__tests__/lint-page.test.ts new file mode 100644 index 0000000000..b3a658106c --- /dev/null +++ b/studio/src/__tests__/lint-page.test.ts @@ -0,0 +1,80 @@ +import { countLintConfigsByCategory } from "../lib/utils"; +import { + LintConfig, + LintSeverity, +} from "@wundergraph/cosmo-connect/dist/platform/v1/platform_pb"; +import { expect, test } from "vitest"; + +test("return the correct types with deprecated fields or args", async () => { + const lintIssues = [ + { + ruleName: "FIELD_NAMES_SHOULD_BE_CAMEL_CASE", + severityLevel: LintSeverity.error, + }, + { + ruleName: "TYPE_NAMES_SHOULD_BE_PASCAL_CASE", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "SHOULD_NOT_HAVE_TYPE_PREFIX", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "SHOULD_NOT_HAVE_TYPE_SUFFIX", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "SHOULD_NOT_HAVE_INPUT_PREFIX", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "SHOULD_HAVE_INPUT_SUFFIX", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "SHOULD_NOT_HAVE_ENUM_PREFIX", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "SHOULD_NOT_HAVE_ENUM_SUFFIX", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "SHOULD_NOT_HAVE_INTERFACE_PREFIX", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "SHOULD_NOT_HAVE_INTERFACE_SUFFIX", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "ENUM_VALUES_SHOULD_BE_UPPER_CASE", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "DISALLOW_CASE_INSENSITIVE_ENUM_VALUES", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "NO_TYPENAME_PREFIX_IN_TYPE_FIELDS", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "REQUIRE_DEPRECATION_REASON", + severityLevel: LintSeverity.warn, + }, + { + ruleName: "REQUIRE_DEPRECATION_DATE", + severityLevel: LintSeverity.warn, + }, + ]; + const countByCategory = countLintConfigsByCategory( + lintIssues as LintConfig[], + ); + + expect(countByCategory).not.toBeNull(); + expect(countByCategory.length).toBe(3); + expect(countByCategory[0]).toBe(11); + expect(countByCategory[1]).toBe(0); + expect(countByCategory[2]).toBe(4); +}); diff --git a/studio/src/components/check-badge-icon.tsx b/studio/src/components/check-badge-icon.tsx index 24e396c359..4b8866040c 100644 --- a/studio/src/components/check-badge-icon.tsx +++ b/studio/src/components/check-badge-icon.tsx @@ -5,8 +5,9 @@ const isCheckSuccessful = ( isComposable: boolean, isBreaking: boolean, hasClientTraffic: boolean, + hasLintErrors: boolean, ) => { - return isComposable && (!isBreaking || (isBreaking && !hasClientTraffic)); + return isComposable && (!isBreaking || (isBreaking && !hasClientTraffic)) && !hasLintErrors; }; const getCheckBadge = (successful: boolean, isForced: boolean) => { diff --git a/studio/src/components/checks/lint-issues-table.tsx b/studio/src/components/checks/lint-issues-table.tsx new file mode 100644 index 0000000000..3c2765cc64 --- /dev/null +++ b/studio/src/components/checks/lint-issues-table.tsx @@ -0,0 +1,117 @@ +import { cn } from "@/lib/utils"; +import { CheckCircleIcon } from "@heroicons/react/24/outline"; +import { Cross1Icon, EyeOpenIcon } from "@radix-ui/react-icons"; +import { + LintIssue, + LintSeverity, +} from "@wundergraph/cosmo-connect/dist/platform/v1/platform_pb"; +import Link from "next/link"; +import { useRouter } from "next/router"; +import { CiWarning } from "react-icons/ci"; +import { EmptyState } from "../empty-state"; +import { Button } from "../ui/button"; +import { + Table, + TableBody, + TableCaption, + TableCell, + TableHead, + TableHeader, + TableRow, + TableWrapper, +} from "../ui/table"; +import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip"; + +export const LintIssuesTable = ({ + lintIssues, + caption, +}: { + lintIssues: LintIssue[]; + caption?: React.ReactNode; +}) => { + const router = useRouter(); + + if (lintIssues.length === 0) { + return ( + } + title="Lint Check Successful" + description="There are no lint issues in the proposed schema." + /> + ); + } + return ( + + + + + Severity + Message + + + + + {lintIssues.map((l, i) => ( + + +
+ {l.severity === LintSeverity.error ? ( + + ) : ( + + )} +
+ {l.lintRuleType || "-"} +
+
+
+ {l.message} + +
+ + + + + View Issue in Schema + +
+
+
+ ))} +
+ {caption && {caption}} +
+
+ ); +}; diff --git a/studio/src/components/code-viewer.tsx b/studio/src/components/code-viewer.tsx index 1e2affdfe1..04272a1e5c 100644 --- a/studio/src/components/code-viewer.tsx +++ b/studio/src/components/code-viewer.tsx @@ -5,10 +5,18 @@ import { ClipboardCopyIcon, DownloadIcon } from "@radix-ui/react-icons"; import copy from "copy-to-clipboard"; import Link from "next/link"; import { useRouter } from "next/router"; -import { Highlight, themes } from "prism-react-renderer"; +import { + Highlight, + LineInputProps, + LineOutputProps, + Token, + TokenInputProps, + TokenOutputProps, + themes, +} from "prism-react-renderer"; import { Button } from "./ui/button"; import { useToast } from "./ui/use-toast"; -import { useEffect, useState } from "react"; +import { CSSProperties, useEffect, useRef, useState } from "react"; import graphQLPlugin from "prettier/plugins/graphql"; import babelPlugin from "prettier/plugins/babel"; import estreePlugin from "prettier/plugins/estree"; @@ -16,6 +24,8 @@ import * as prettier from "prettier/standalone"; import * as Prism from "prismjs"; import "prismjs/components/prism-json"; import "prismjs/components/prism-graphql"; +import { useVirtualizer } from "@tanstack/react-virtual"; +import { useScrollIntoView } from "./schema/sdl-viewer"; export const CodeViewerActions = ({ code, diff --git a/studio/src/components/layout/dashboard-layout.tsx b/studio/src/components/layout/dashboard-layout.tsx index 15e32e9c2a..3bcd5f1755 100644 --- a/studio/src/components/layout/dashboard-layout.tsx +++ b/studio/src/components/layout/dashboard-layout.tsx @@ -31,6 +31,7 @@ import { useQuery } from "@tanstack/react-query"; import { getBillingPlans } from "@wundergraph/cosmo-connect/dist/platform/v1/platform-PlatformService_connectquery"; import { AiOutlineAudit } from "react-icons/ai"; import { UserContext } from "@/components/app-provider"; +import { MdOutlinePolicy } from "react-icons/md"; export const StarBanner = ({ setDisableStarBanner, @@ -109,6 +110,11 @@ export const DashboardLayout = ({ children }: LayoutProps) => { title: "Subgraphs", href: basePath + "/subgraphs", icon: , + }, + { + title: "Lint Policy", + href: basePath + "/lint-policy", + icon: , separator: true, }, { diff --git a/studio/src/components/schema/sdl-viewer-monaco.tsx b/studio/src/components/schema/sdl-viewer-monaco.tsx index 47858548bc..ff6facd4d2 100644 --- a/studio/src/components/schema/sdl-viewer-monaco.tsx +++ b/studio/src/components/schema/sdl-viewer-monaco.tsx @@ -8,14 +8,35 @@ import estreePlugin from "prettier/plugins/estree"; import graphQLPlugin from "prettier/plugins/graphql"; import * as prettier from "prettier/standalone"; +export interface DecorationCollection { + range: { + startLineNumber: number; + endLineNumber: number; + startColumn: number; + endColumn: number; + }; + options: { + hoverMessage?: { + value: string; + }; + className?: string; + inlineClassName?: string; + isWholeLine: boolean; + }; +} + export const SDLViewerMonaco = ({ schema, newSchema, line, + decorationCollections, + disablePrettier, }: { schema: string; newSchema?: string; line?: number; + decorationCollections?: DecorationCollection[]; + disablePrettier?: boolean; }) => { const selectedTheme = useResolvedTheme(); @@ -23,6 +44,11 @@ export const SDLViewerMonaco = ({ const [newContent, setNewContent] = useState(""); useEffect(() => { + if (!schema) return; + if (disablePrettier) { + setContent(schema); + return; + } const set = async (source: string, setter: (val: string) => void) => { try { const res = await prettier.format(source, { @@ -35,14 +61,12 @@ export const SDLViewerMonaco = ({ } }; - if (schema) { - set(schema, setContent); - } + set(schema, setContent); if (newSchema) { set(newSchema, setNewContent); } - }, [schema, newSchema]); + }, [schema, newSchema, disablePrettier]); const monaco = useMonaco(); @@ -119,26 +143,26 @@ export const SDLViewerMonaco = ({ if (selectedTheme === "dark") { monaco.editor.setTheme("wg-dark"); } + const decorations: DecorationCollection[] = decorationCollections || []; if (line) { - editor.createDecorationsCollection([ - { - range: { - startLineNumber: line, - endLineNumber: line, - startColumn: 1, - endColumn: 1, - }, - options: { - isWholeLine: true, - className: "bg-green-500 bg-opacity-40 w-full h-32 z-50", - }, + decorations.push({ + range: { + startLineNumber: line, + endLineNumber: line, + startColumn: 1, + endColumn: 1, + }, + options: { + isWholeLine: true, + className: "bg-green-500 bg-opacity-40 w-full h-32 z-25", }, - ]); + }); - const y = editor.getTopForLineNumber(line); + const y = editor.getTopForLineNumber(line-5); editor.setScrollPosition({ scrollTop: y - 10 }); } + editor.createDecorationsCollection(decorations); }} /> ); diff --git a/studio/src/components/schema/sdl-viewer.tsx b/studio/src/components/schema/sdl-viewer.tsx index 35ad91f44c..b5390dbd8c 100644 --- a/studio/src/components/schema/sdl-viewer.tsx +++ b/studio/src/components/schema/sdl-viewer.tsx @@ -178,7 +178,7 @@ const LineActions = ({ ); }; -const useScrollIntoView = ( +export const useScrollIntoView = ( virtualizer: Virtualizer, lineNo: number, ) => { @@ -187,8 +187,7 @@ const useScrollIntoView = ( useEffect(() => { const t = setTimeout(() => { if (!isMounted && lineNo) { - virtualizer.scrollToIndex(81); - console.log("done"); + virtualizer.scrollToIndex(lineNo + 5); setIsMounted(true); } }, 500); diff --git a/studio/src/components/subgraphs-table.tsx b/studio/src/components/subgraphs-table.tsx index 159b252b2d..17a754149c 100644 --- a/studio/src/components/subgraphs-table.tsx +++ b/studio/src/components/subgraphs-table.tsx @@ -3,10 +3,10 @@ import { useFeature } from "@/hooks/use-feature"; import { useHasFeature } from "@/hooks/use-has-feature"; import { useUser } from "@/hooks/use-user"; import { docsBaseURL } from "@/lib/constants"; +import { cn } from "@/lib/utils"; import { ChartBarIcon, - CommandLineIcon, - EyeIcon, + CommandLineIcon } from "@heroicons/react/24/outline"; import { InfoCircledIcon } from "@radix-ui/react-icons"; import { useMutation, useQuery } from "@tanstack/react-query"; @@ -56,12 +56,9 @@ import { import { Tooltip, TooltipContent, - TooltipProvider, - TooltipTrigger, + TooltipTrigger } from "./ui/tooltip"; import { useToast } from "./ui/use-toast"; -import { cn } from "@/lib/utils"; -import { PiAsterisk } from "react-icons/pi"; export const Empty = ({ graph }: { graph?: FederatedGraph }) => { const router = useRouter(); diff --git a/studio/src/lib/constants.ts b/studio/src/lib/constants.ts index b233469367..8ec9b403d0 100644 --- a/studio/src/lib/constants.ts +++ b/studio/src/lib/constants.ts @@ -1,3 +1,107 @@ export const docsBaseURL = "https://cosmo-docs.wundergraph.com"; export const calURL = "https://cal.com/stefan-avram-wundergraph/wundergraph-introduction"; +export const lintCategories = [ + { + title: "Naming Convention", + description: + "Configure these rules to enforce naming convention across this namespace's schemas.", + rules: [ + { + name: "FIELD_NAMES_SHOULD_BE_CAMEL_CASE", + description: "Field names should always use camelCase.", + }, + { + name: "TYPE_NAMES_SHOULD_BE_PASCAL_CASE", + description: "Type names should always use PascalCase.", + }, + { + name: "SHOULD_NOT_HAVE_TYPE_PREFIX", + description: "A type's name should never be prefixed with 'Type'.", + }, + { + name: "SHOULD_NOT_HAVE_TYPE_SUFFIX", + description: "A type's name should never be suffixed with 'Type'.", + }, + { + name: "SHOULD_NOT_HAVE_INPUT_PREFIX", + description: "An input's name should never be prefixed with 'Input'.", + }, + { + name: "SHOULD_HAVE_INPUT_SUFFIX", + description: "An input's name should always be suffixed with 'Input'.", + }, + { + name: "SHOULD_NOT_HAVE_ENUM_PREFIX", + description: "An enum's name should never be prefixed with 'Enum'.", + }, + { + name: "SHOULD_NOT_HAVE_ENUM_SUFFIX", + description: "An enum's name should never be suffixed with 'Enum'.", + }, + { + name: "SHOULD_NOT_HAVE_INTERFACE_PREFIX", + description: + "An interface type's name should never be prefixed with 'Interface'.", + }, + { + name: "SHOULD_NOT_HAVE_INTERFACE_SUFFIX", + description: + "An interface type's name should never be suffixed with 'Interface'.", + }, + { + name: "ENUM_VALUES_SHOULD_BE_UPPER_CASE", + description: "Enum values should always use UPPER_CASE.", + }, + ], + }, + { + title: "Alphabetical Sort", + description: + "Configure these rules to enforce the arrangement of types, fields... in the schema.", + rules: [ + { + name: "ORDER_FIELDS", + description: "Should sort all the fields in alphabetical order.", + }, + { + name: "ORDER_ENUM_VALUES", + description: "Should sort all the enum values in alphabetical order.", + }, + { + name: "ORDER_DEFINITIONS", + description: "Should sort all the definitions in alphabetical order.", + }, + ], + }, + { + title: "Others", + description: + "Configure these rules to define conventions throughout our schema.", + rules: [ + { + name: "ALL_TYPES_REQUIRE_DESCRIPTION", + description: + "Should describe all the type definitions with a description.", + }, + { + name: "DISALLOW_CASE_INSENSITIVE_ENUM_VALUES", + description: + "Enum values should eliminate duplicates by disallowing case insensitivity.", + }, + { + name: "NO_TYPENAME_PREFIX_IN_TYPE_FIELDS", + description: "Field names should not be prefixed with its type's name.", + }, + { + name: "REQUIRE_DEPRECATION_REASON", + description: "Should provide the reason on @deprecated directive.", + }, + { + name: "REQUIRE_DEPRECATION_DATE", + description: + "Should provide the deletion date on @deprecated directive.", + }, + ], + }, +]; diff --git a/studio/src/lib/utils.ts b/studio/src/lib/utils.ts index 4c61b20155..bd2532063e 100644 --- a/studio/src/lib/utils.ts +++ b/studio/src/lib/utils.ts @@ -1,5 +1,7 @@ +import { LintConfig } from "@wundergraph/cosmo-connect/dist/platform/v1/platform_pb"; import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; +import { lintCategories } from "./constants"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); @@ -36,3 +38,29 @@ export const getHighestPriorityRole = ({ } return "viewer"; }; + +export const countLintConfigsByCategory = (lintConfigs: LintConfig[]) => { + let countNamingConventionRules = 0; + let countAlphabeticalSortRules = 0; + let countOtherRules = 0; + + const namingConventionRules = lintCategories[0].rules.map((l) => l.name); + const alphabeticalSortRules = lintCategories[1].rules.map((l) => l.name); + const otherRules = lintCategories[2].rules.map((l) => l.name); + + for (const l of lintConfigs) { + if (namingConventionRules.includes(l.ruleName)) { + countNamingConventionRules += 1; + } else if (alphabeticalSortRules.includes(l.ruleName)) { + countAlphabeticalSortRules += 1; + } else if (otherRules.includes(l.ruleName)) { + countOtherRules += 1; + } + } + + return [ + countNamingConventionRules, + countAlphabeticalSortRules, + countOtherRules, + ]; +}; \ No newline at end of file diff --git a/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/[checkId]/index.tsx b/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/[checkId]/index.tsx index 901460c244..dc2904bf0b 100644 --- a/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/[checkId]/index.tsx +++ b/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/[checkId]/index.tsx @@ -5,8 +5,9 @@ import { isCheckSuccessful, } from "@/components/check-badge-icon"; import { ChangesTable } from "@/components/checks/changes-table"; +import { LintIssuesTable } from "@/components/checks/lint-issues-table"; import { CheckOperations } from "@/components/checks/operations"; -import { CodeViewer, CodeViewerActions } from "@/components/code-viewer"; +import { CodeViewerActions } from "@/components/code-viewer"; import { EmptyState } from "@/components/empty-state"; import { InfoTooltip } from "@/components/info-tooltip"; import { @@ -14,6 +15,10 @@ import { GraphPageLayout, getGraphLayout, } from "@/components/layout/graph-layout"; +import { + DecorationCollection, + SDLViewerMonaco, +} from "@/components/schema/sdl-viewer-monaco"; import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { AlertDialog, @@ -56,7 +61,10 @@ import { getCheckSummary, getFederatedGraphs, } from "@wundergraph/cosmo-connect/dist/platform/v1/platform-PlatformService_connectquery"; -import { GetCheckSummaryResponse } from "@wundergraph/cosmo-connect/dist/platform/v1/platform_pb"; +import { + GetCheckSummaryResponse, + LintIssue, +} from "@wundergraph/cosmo-connect/dist/platform/v1/platform_pb"; import { formatDistanceToNow, subDays } from "date-fns"; import { useRouter } from "next/router"; import React, { useContext, useMemo } from "react"; @@ -173,6 +181,34 @@ const CheckOverviewPage: NextPageWithLayout = () => { ); }; +const getDecorationCollection = ( + lintIssues: LintIssue[], +): DecorationCollection[] => { + const decorationCollection: DecorationCollection[] = []; + + for (const l of lintIssues) { + if (!l.issueLocation) continue; + decorationCollection.push({ + range: { + startLineNumber: l.issueLocation.line, + endLineNumber: l.issueLocation.endLine || l.issueLocation.line, + startColumn: l.issueLocation.column, + endColumn: l.issueLocation.endColumn || l.issueLocation.column, + }, + options: { + hoverMessage: { + value: `${l.message}. (Rule: ${l.lintRuleType ? l.lintRuleType : ""})`, + }, + inlineClassName: + "underline decoration-red-500 decoration-wavy cursor-pointer z-50", + isWholeLine: l.issueLocation.endLine === undefined, + }, + }); + } + + return decorationCollection; +}; + const CheckDetails = ({ data, refetch, @@ -189,6 +225,7 @@ const CheckDetails = ({ const slug = router.query.slug as string; const id = router.query.checkId as string; const tab = router.query.tab as string; + const hash = router.asPath.split("#")?.[1]; const { data: allGraphsData } = useQuery(getFederatedGraphs.useQuery()); @@ -243,6 +280,7 @@ const CheckDetails = ({ data.check.isComposable, data.check.isBreaking, data.check.hasClientTraffic, + data.check.hasLintErrors, ); const currentAffectedGraph = data.affectedGraphs.find( @@ -368,6 +406,17 @@ const CheckDetails = ({ based on real usage data. + + + {getCheckIcon(!data.check.hasLintErrors)} + Lint Errors + + Describes if the proposed schema contains linting errors. + + @@ -526,6 +575,26 @@ const CheckDetails = ({ Operations + + + + Lint Issues + {data.lintIssues.length ? ( + + {data.lintIssues.length} + + ) : null} + + {!data.check.isDeleted && ( + + +
- +
diff --git a/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/index.tsx b/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/index.tsx index a509bcaa76..7a5963fa92 100644 --- a/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/index.tsx +++ b/studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/index.tsx @@ -20,13 +20,6 @@ import { Button } from "@/components/ui/button"; import { CLI } from "@/components/ui/cli"; import { Loader } from "@/components/ui/loader"; import { Pagination } from "@/components/ui/pagination"; -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue, -} from "@/components/ui/select"; import { Table, TableBody, @@ -44,7 +37,6 @@ import { } from "@/components/ui/tooltip"; import { useFeatureLimit } from "@/hooks/use-feature-limit"; import { useSessionStorage } from "@/hooks/use-session-storage"; -import { useUser } from "@/hooks/use-user"; import { docsBaseURL } from "@/lib/constants"; import { formatDateTime } from "@/lib/format-date"; import { createDateRange } from "@/lib/insights-helpers"; @@ -53,26 +45,14 @@ import { CommandLineIcon, ExclamationTriangleIcon, } from "@heroicons/react/24/outline"; -import { - ChevronLeftIcon, - ChevronRightIcon, - DoubleArrowLeftIcon, - DoubleArrowRightIcon, - GitHubLogoIcon, -} from "@radix-ui/react-icons"; +import { GitHubLogoIcon } from "@radix-ui/react-icons"; import { useQuery } from "@tanstack/react-query"; import { EnumStatusCode } from "@wundergraph/cosmo-connect/dist/common/common_pb"; import { getChecksByFederatedGraphName } from "@wundergraph/cosmo-connect/dist/platform/v1/platform-PlatformService_connectquery"; -import { - endOfDay, - formatDistanceToNow, - formatISO, - startOfDay, - subDays, -} from "date-fns"; +import { formatDistanceToNow, formatISO } from "date-fns"; import Link from "next/link"; import { useRouter } from "next/router"; -import { useCallback, useContext } from "react"; +import { useContext } from "react"; const ChecksPage: NextPageWithLayout = () => { const router = useRouter(); @@ -172,11 +152,13 @@ const ChecksPage: NextPageWithLayout = () => { subgraphName, timestamp, ghDetails, + hasLintErrors, }) => { const isSuccessful = isCheckSuccessful( isComposable, isBreaking, hasClientTraffic, + hasLintErrors, ); const path = `${router.asPath.split("?")[0]}/${id}`; @@ -230,6 +212,10 @@ const ChecksPage: NextPageWithLayout = () => { {getCheckIcon(!hasClientTraffic)}{" "} Operations + + {getCheckIcon(!hasLintErrors)}{" "} + Lint Errors + diff --git a/studio/src/pages/[organizationSlug]/lint-policy.tsx b/studio/src/pages/[organizationSlug]/lint-policy.tsx new file mode 100644 index 0000000000..d824b35f6f --- /dev/null +++ b/studio/src/pages/[organizationSlug]/lint-policy.tsx @@ -0,0 +1,367 @@ +import { UserContext } from "@/components/app-provider"; +import { NamespaceSelector } from "@/components/dashboard/NamespaceSelector"; +import { EmptyState } from "@/components/empty-state"; +import { getDashboardLayout } from "@/components/layout/dashboard-layout"; +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from "@/components/ui/accordion"; +import { Badge } from "@/components/ui/badge"; +import { Button } from "@/components/ui/button"; +import { Checkbox } from "@/components/ui/checkbox"; +import { Loader } from "@/components/ui/loader"; +import { + Select, + SelectContent, + SelectGroup, + SelectItem, + SelectLabel, + SelectTrigger, + SelectValue, +} from "@/components/ui/select"; +import { Switch } from "@/components/ui/switch"; +import { useToast } from "@/components/ui/use-toast"; +import { useLocalStorage } from "@/hooks/use-local-storage"; +import { docsBaseURL, lintCategories } from "@/lib/constants"; +import { NextPageWithLayout } from "@/lib/page"; +import { cn, countLintConfigsByCategory } from "@/lib/utils"; +import { ExclamationTriangleIcon } from "@radix-ui/react-icons"; +import { useMutation, useQuery } from "@tanstack/react-query"; +import { EnumStatusCode } from "@wundergraph/cosmo-connect/dist/common/common_pb"; +import { + configureNamespaceLintConfig, + enableLintingForTheNamespace, + getNamespaceLintConfig, +} from "@wundergraph/cosmo-connect/dist/platform/v1/platform-PlatformService_connectquery"; +import { + LintConfig, + LintSeverity, +} from "@wundergraph/cosmo-connect/dist/platform/v1/platform_pb"; +import Link from "next/link"; +import { useContext, useEffect, useState } from "react"; + + +const SeverityDropdown = ({ + onChange, + value, +}: { + onChange: (value: string) => void; + value: "error" | "warn"; +}) => { + return ( +
+ +
+ ); +}; + +const LintPolicyPage: NextPageWithLayout = () => { + const user = useContext(UserContext); + const [namespace] = useLocalStorage("namespace", "default"); + const { data, isLoading, refetch, error } = useQuery({ + ...getNamespaceLintConfig.useQuery({ + namespace, + }), + queryKey: [ + user?.currentOrganization.slug || "", + "GetNamespaceLintConfig", + { namespace }, + ], + }); + const { mutate: configureLintRules, isPending: isConfiguring } = useMutation( + configureNamespaceLintConfig.useMutation(), + ); + + const { mutate } = useMutation(enableLintingForTheNamespace.useMutation()); + + const { toast } = useToast(); + + const [linterEnabled, setLinterEnabled] = useState(false); + const [selectedLintRules, setSelectedLintRules] = useState([]); + const [countByCategory, setCountByCategory] = useState(); + + useEffect(() => { + if (!data) return; + setSelectedLintRules(data.configs); + setLinterEnabled(data.linterEnabled); + setCountByCategory(countLintConfigsByCategory(data.configs)); + }, [data]); + + if (isLoading) return ; + if (error || data?.response?.code !== EnumStatusCode.OK) + return ( + } + title="Could not retrieve the lint config of the namesapce" + description={ + data?.response?.details || error?.message || "Please try again" + } + actions={} + /> + ); + + return ( +
+
+
+ Enable Linter +

+ Run the lint check on all the check operations of this namespace. +

+
+
+ { + setLinterEnabled(checked); + mutate( + { + namespace, + enableLinting: checked, + }, + { + onSuccess: (d) => { + if (d.response?.code === EnumStatusCode.OK) { + toast({ + description: checked + ? "Linter enabled successfully." + : "Linter disabled successfully", + duration: 3000, + }); + } else if (d.response?.details) { + toast({ + description: d.response.details, + duration: 3000, + }); + } + refetch(); + }, + onError: (error) => { + toast({ + description: checked + ? "Could not enable the linter. Please try again." + : "Could not disable the linter. Please try again.", + duration: 3000, + }); + }, + }, + ); + }} + /> +
+
+
+
+
+ Lint Rules +

+ {data.linterEnabled + ? "Configure the linter rules and its severity levels for the lint check performed during each check operation of this namespace." + : "Enable the linter to configure the lint rules."}{" "} + + Learn more + +

+
+ +
+
+ + {lintCategories.map((lintCategory, index) => { + return ( + + +
+
+ {lintCategory.title} + {countByCategory && ( + + {`${countByCategory[index]} of ${lintCategory.rules.length}`} + + )} +
+ + {lintCategory.description} + +
+
+ +
+ {lintCategory.rules.map((rule, index) => { + return ( +
+
+ l.ruleName === rule.name, + )} + onCheckedChange={(checked) => { + if (checked) { + setSelectedLintRules([ + ...selectedLintRules, + { + ruleName: rule.name, + severityLevel: LintSeverity.warn, + } as LintConfig, + ]); + } else { + setSelectedLintRules( + selectedLintRules.filter( + (l) => l.ruleName !== rule.name, + ), + ); + } + }} + /> +
+ + + {rule.description} + +
+
+ + l.ruleName === rule.name, + )?.severityLevel === LintSeverity.error + ? "error" + : "warn" + } + onChange={(value) => { + setSelectedLintRules( + selectedLintRules.map((l) => { + if (l.ruleName === rule.name) { + return { + ...l, + severityLevel: + value === "error" + ? LintSeverity.error + : LintSeverity.warn, + } as LintConfig; + } else { + return l; + } + }), + ); + }} + /> +
+ ); + })} +
+
+
+ ); + })} +
+
+
+
+
+ ); +}; + +LintPolicyPage.getLayout = (page) => { + return getDashboardLayout( + page, + "Lint Policy", + "Configure the rules used for linting the subgraphs of the namespace.", + undefined, + undefined, + [], + ); +}; + +export default LintPolicyPage;