diff --git a/composition-go/index.global.js b/composition-go/index.global.js index 66013c8461..a6909072a4 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -11,8 +11,8 @@ class URL { } } } -"use strict";var shim=(()=>{var WY=Object.create;var yd=Object.defineProperty,XY=Object.defineProperties,ZY=Object.getOwnPropertyDescriptor,eJ=Object.getOwnPropertyDescriptors,tJ=Object.getOwnPropertyNames,bA=Object.getOwnPropertySymbols,nJ=Object.getPrototypeOf,AA=Object.prototype.hasOwnProperty,rJ=Object.prototype.propertyIsEnumerable;var nn=Math.pow,yy=(e,t,n)=>t in e?yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))AA.call(t,n)&&yy(e,n,t[n]);if(bA)for(var n of bA(t))rJ.call(t,n)&&yy(e,n,t[n]);return e},Y=(e,t)=>XY(e,eJ(t));var wu=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),am=(e,t)=>{for(var n in t)yd(e,n,{get:t[n],enumerable:!0})},RA=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tJ(t))!AA.call(e,i)&&i!==n&&yd(e,i,{get:()=>t[i],enumerable:!(r=ZY(t,i))||r.enumerable});return e};var ss=(e,t,n)=>(n=e!=null?WY(nJ(e)):{},RA(t||!e||!e.__esModule?yd(n,"default",{value:e,enumerable:!0}):n,e)),sm=e=>RA(yd({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(yy(e,typeof t!="symbol"?t+"":t,n),n);var vi=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(p){i(p)}},o=l=>{try{c(n.throw(l))}catch(p){i(p)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=wu(()=>{"use strict"});var O={};am(O,{_debugEnd:()=>ER,_debugProcess:()=>TR,_events:()=>LR,_eventsCount:()=>CR,_exiting:()=>WA,_fatalExceptions:()=>pR,_getActiveHandles:()=>tR,_getActiveRequests:()=>eR,_kill:()=>rR,_linkedBinding:()=>HA,_maxListeners:()=>wR,_preload_modules:()=>RR,_rawDebug:()=>YA,_startProfilerIdleNotifier:()=>hR,_stopProfilerIdleNotifier:()=>yR,_tickCallback:()=>NR,abort:()=>vR,addListener:()=>BR,allowedNodeEnvironmentFlags:()=>cR,arch:()=>CA,argv:()=>kA,argv0:()=>AR,assert:()=>lR,binding:()=>jA,chdir:()=>$A,config:()=>XA,cpuUsage:()=>cm,cwd:()=>GA,debugPort:()=>bR,default:()=>GR,dlopen:()=>ZA,domain:()=>zA,emit:()=>qR,emitWarning:()=>VA,env:()=>UA,execArgv:()=>MA,execPath:()=>DR,exit:()=>oR,features:()=>dR,hasUncaughtExceptionCaptureCallback:()=>mR,hrtime:()=>um,kill:()=>sR,listeners:()=>KR,memoryUsage:()=>aR,moduleLoadList:()=>JA,nextTick:()=>FA,off:()=>kR,on:()=>us,once:()=>UR,openStdin:()=>uR,pid:()=>SR,platform:()=>BA,ppid:()=>OR,prependListener:()=>VR,prependOnceListener:()=>jR,reallyExit:()=>nR,release:()=>QA,removeAllListeners:()=>xR,removeListener:()=>MR,resourceUsage:()=>iR,setSourceMapsEnabled:()=>PR,setUncaughtExceptionCaptureCallback:()=>fR,stderr:()=>gR,stdin:()=>_R,stdout:()=>IR,title:()=>LA,umask:()=>KA,uptime:()=>FR,version:()=>xA,versions:()=>qA});function _y(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function iJ(){!Qc||!Lu||(Qc=!1,Lu.length?os=Lu.concat(os):om=-1,os.length&&PA())}function PA(){if(!Qc){var e=setTimeout(iJ,0);Qc=!0;for(var t=os.length;t;){for(Lu=os,os=[];++om1)for(var n=1;n{"use strict";m();T();N();os=[],Qc=!1,om=-1;wA.prototype.run=function(){this.fun.apply(null,this.array)};LA="browser",CA="x64",BA="browser",UA={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},kA=["/usr/bin/node"],MA=[],xA="v16.8.0",qA={},VA=function(e,t){console.warn((t?t+": ":"")+e)},jA=function(e){_y("binding")},KA=function(e){return 0},GA=function(){return"/"},$A=function(e){},QA={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};YA=hr,JA=[];zA={},WA=!1,XA={};nR=hr,rR=hr,cm=function(){return{}},iR=cm,aR=cm,sR=hr,oR=hr,uR=hr,cR={};dR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},pR=hr,fR=hr;NR=hr,TR=hr,ER=hr,hR=hr,yR=hr,IR=void 0,gR=void 0,_R=void 0,vR=hr,SR=2,OR=1,DR="/bin/usr/node",bR=9229,AR="node",RR=[],PR=hr,Yo={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Yo.now===void 0&&(Iy=Date.now(),Yo.timing&&Yo.timing.navigationStart&&(Iy=Yo.timing.navigationStart),Yo.now=()=>Date.now()-Iy);gy=1e9;um.bigint=function(e){var t=um(e);return typeof BigInt=="undefined"?t[0]*gy+t[1]:BigInt(t[0]*gy)+BigInt(t[1])};wR=10,LR={},CR=0;BR=us,UR=us,kR=us,MR=us,xR=us,qR=hr,VR=us,jR=us;GR={version:xA,versions:qA,arch:CA,platform:BA,release:QA,_rawDebug:YA,moduleLoadList:JA,binding:jA,_linkedBinding:HA,_events:LR,_eventsCount:CR,_maxListeners:wR,on:us,addListener:BR,once:UR,off:kR,removeListener:MR,removeAllListeners:xR,emit:qR,prependListener:VR,prependOnceListener:jR,listeners:KR,domain:zA,_exiting:WA,config:XA,dlopen:ZA,uptime:FR,_getActiveRequests:eR,_getActiveHandles:tR,reallyExit:nR,_kill:rR,cpuUsage:cm,resourceUsage:iR,memoryUsage:aR,kill:sR,exit:oR,openStdin:uR,allowedNodeEnvironmentFlags:cR,assert:lR,features:dR,_fatalExceptions:pR,setUncaughtExceptionCaptureCallback:fR,hasUncaughtExceptionCaptureCallback:mR,emitWarning:VA,nextTick:FA,_tickCallback:NR,_debugProcess:TR,_debugEnd:ER,_startProfilerIdleNotifier:hR,_stopProfilerIdleNotifier:yR,stdout:IR,stdin:_R,stderr:gR,abort:vR,umask:KA,chdir:$A,cwd:GA,env:UA,title:LA,argv:kA,execArgv:MA,pid:SR,ppid:OR,execPath:DR,debugPort:bR,hrtime:um,argv0:AR,_preload_modules:RR,setSourceMapsEnabled:PR}});var N=wu(()=>{"use strict";$R()});function aJ(){if(QR)return Id;QR=!0,Id.byteLength=c,Id.toByteArray=p,Id.fromByteArray=g;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var M=v.indexOf("=");M===-1&&(M=P);var K=M===P?0:4-M%4;return[M,K]}function c(v){var P=o(v),M=P[0],K=P[1];return(M+K)*3/4-K}function l(v,P,M){return(P+M)*3/4-M}function p(v){var P,M=o(v),K=M[0],G=M[1],Z=new n(l(v,K,G)),W=0,Te=G>0?K-4:K,fe;for(fe=0;fe>16&255,Z[W++]=P>>8&255,Z[W++]=P&255;return G===2&&(P=t[v.charCodeAt(fe)]<<2|t[v.charCodeAt(fe+1)]>>4,Z[W++]=P&255),G===1&&(P=t[v.charCodeAt(fe)]<<10|t[v.charCodeAt(fe+1)]<<4|t[v.charCodeAt(fe+2)]>>2,Z[W++]=P>>8&255,Z[W++]=P&255),Z}function f(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function y(v,P,M){for(var K,G=[],Z=P;ZTe?Te:W+Z));return K===1?(P=v[M-1],G.push(e[P>>2]+e[P<<4&63]+"==")):K===2&&(P=(v[M-2]<<8)+v[M-1],G.push(e[P>>10]+e[P>>4&63]+e[P<<2&63]+"=")),G.join("")}return Id}function sJ(){if(YR)return lm;YR=!0;return lm.read=function(e,t,n,r,i){var a,o,c=i*8-r-1,l=(1<>1,f=-7,y=n?i-1:0,g=n?-1:1,v=e[t+y];for(y+=g,a=v&(1<<-f)-1,v>>=-f,f+=c;f>0;a=a*256+e[t+y],y+=g,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;f>0;o=o*256+e[t+y],y+=g,f-=8);if(a===0)a=1-p;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-p}return(v?-1:1)*o*Math.pow(2,a-r)},lm.write=function(e,t,n,r,i,a){var o,c,l,p=a*8-i-1,f=(1<>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,P=r?1:-1,M=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=g/l:t+=g*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=f?(c=0,o=f):o+y>=1?(c=(t*l-1)*Math.pow(2,i),o=o+y):(c=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=c&255,v+=P,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=P,o/=256,p-=8);e[n+v-P]|=M*128},lm}function oJ(){if(JR)return Cu;JR=!0;let e=aJ(),t=sJ(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Cu.Buffer=o,Cu.SlowBuffer=G,Cu.INSPECT_MAX_BYTES=50;let r=2147483647;Cu.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.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 A=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(A,h),A.foo()===42}catch(A){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(A){if(A>r)throw new RangeError('The value "'+A+'" is invalid for option "size"');let h=new Uint8Array(A);return Object.setPrototypeOf(h,o.prototype),h}function o(A,h,I){if(typeof A=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(A)}return c(A,h,I)}o.poolSize=8192;function c(A,h,I){if(typeof A=="string")return y(A,h);if(ArrayBuffer.isView(A))return v(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(xt(A,ArrayBuffer)||A&&xt(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xt(A,SharedArrayBuffer)||A&&xt(A.buffer,SharedArrayBuffer)))return P(A,h,I);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=A.valueOf&&A.valueOf();if(C!=null&&C!==A)return o.from(C,h,I);let $=M(A);if($)return $;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return o.from(A[Symbol.toPrimitive]("string"),h,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}o.from=function(A,h,I){return c(A,h,I)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function p(A,h,I){return l(A),A<=0?a(A):h!==void 0?typeof I=="string"?a(A).fill(h,I):a(A).fill(h):a(A)}o.alloc=function(A,h,I){return p(A,h,I)};function f(A){return l(A),a(A<0?0:K(A)|0)}o.allocUnsafe=function(A){return f(A)},o.allocUnsafeSlow=function(A){return f(A)};function y(A,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);let I=Z(A,h)|0,C=a(I),$=C.write(A,h);return $!==I&&(C=C.slice(0,$)),C}function g(A){let h=A.length<0?0:K(A.length)|0,I=a(h);for(let C=0;C=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return A|0}function G(A){return+A!=A&&(A=0),o.alloc(+A)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,I){if(xt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),xt(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),!o.isBuffer(h)||!o.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===I)return 0;let C=h.length,$=I.length;for(let ne=0,le=Math.min(C,$);ne$.length?(o.isBuffer(le)||(le=o.from(le)),le.copy($,ne)):Uint8Array.prototype.set.call($,le,ne);else if(o.isBuffer(le))le.copy($,ne);else throw new TypeError('"list" argument must be an Array of Buffers');ne+=le.length}return $};function Z(A,h){if(o.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||xt(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let I=A.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&I===0)return 0;let $=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return za(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I*2;case"hex":return I>>>1;case"base64":return pr(A).length;default:if($)return C?-1:za(A).length;h=(""+h).toLowerCase(),$=!0}}o.byteLength=Z;function W(A,h,I){let C=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((I===void 0||I>this.length)&&(I=this.length),I<=0)||(I>>>=0,h>>>=0,I<=h))return"";for(A||(A="utf8");;)switch(A){case"hex":return Rr(this,h,I);case"utf8":case"utf-8":return Wt(this,h,I);case"ascii":return dn(this,h,I);case"latin1":case"binary":return Ar(this,h,I);case"base64":return zt(this,h,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Un(this,h,I);default:if(C)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function Te(A,h,I){let C=A[h];A[h]=A[I],A[I]=C}o.prototype.swap16=function(){let h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;II&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,I,C,$,ne){if(xt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(I===void 0&&(I=0),C===void 0&&(C=h?h.length:0),$===void 0&&($=0),ne===void 0&&(ne=this.length),I<0||C>h.length||$<0||ne>this.length)throw new RangeError("out of range index");if($>=ne&&I>=C)return 0;if($>=ne)return-1;if(I>=C)return 1;if(I>>>=0,C>>>=0,$>>>=0,ne>>>=0,this===h)return 0;let le=ne-$,pt=C-I,pn=Math.min(le,pt),tn=this.slice($,ne),hn=h.slice(I,C);for(let Xt=0;Xt2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,fr(I)&&(I=$?0:A.length-1),I<0&&(I=A.length+I),I>=A.length){if($)return-1;I=A.length-1}else if(I<0)if($)I=0;else return-1;if(typeof h=="string"&&(h=o.from(h,C)),o.isBuffer(h))return h.length===0?-1:we(A,h,I,C,$);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(A,h,I):Uint8Array.prototype.lastIndexOf.call(A,h,I):we(A,[h],I,C,$);throw new TypeError("val must be string, number or Buffer")}function we(A,h,I,C,$){let ne=1,le=A.length,pt=h.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(A.length<2||h.length<2)return-1;ne=2,le/=2,pt/=2,I/=2}function pn(hn,Xt){return ne===1?hn[Xt]:hn.readUInt16BE(Xt*ne)}let tn;if($){let hn=-1;for(tn=I;tnle&&(I=le-pt),tn=I;tn>=0;tn--){let hn=!0;for(let Xt=0;Xt$&&(C=$)):C=$;let ne=h.length;C>ne/2&&(C=ne/2);let le;for(le=0;le>>0,isFinite(C)?(C=C>>>0,$===void 0&&($="utf8")):($=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ne=this.length-I;if((C===void 0||C>ne)&&(C=ne),h.length>0&&(C<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let le=!1;for(;;)switch($){case"hex":return je(this,h,I,C);case"utf8":case"utf-8":return it(this,h,I,C);case"ascii":case"latin1":case"binary":return ee(this,h,I,C);case"base64":return ve(this,h,I,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,h,I,C);default:if(le)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),le=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zt(A,h,I){return h===0&&I===A.length?e.fromByteArray(A):e.fromByteArray(A.slice(h,I))}function Wt(A,h,I){I=Math.min(A.length,I);let C=[],$=h;for(;$239?4:ne>223?3:ne>191?2:1;if($+pt<=I){let pn,tn,hn,Xt;switch(pt){case 1:ne<128&&(le=ne);break;case 2:pn=A[$+1],(pn&192)===128&&(Xt=(ne&31)<<6|pn&63,Xt>127&&(le=Xt));break;case 3:pn=A[$+1],tn=A[$+2],(pn&192)===128&&(tn&192)===128&&(Xt=(ne&15)<<12|(pn&63)<<6|tn&63,Xt>2047&&(Xt<55296||Xt>57343)&&(le=Xt));break;case 4:pn=A[$+1],tn=A[$+2],hn=A[$+3],(pn&192)===128&&(tn&192)===128&&(hn&192)===128&&(Xt=(ne&15)<<18|(pn&63)<<12|(tn&63)<<6|hn&63,Xt>65535&&Xt<1114112&&(le=Xt))}}le===null?(le=65533,pt=1):le>65535&&(le-=65536,C.push(le>>>10&1023|55296),le=56320|le&1023),C.push(le),$+=pt}return Vt(C)}let Dn=4096;function Vt(A){let h=A.length;if(h<=Dn)return String.fromCharCode.apply(String,A);let I="",C=0;for(;CC)&&(I=C);let $="";for(let ne=h;neC&&(h=C),I<0?(I+=C,I<0&&(I=0)):I>C&&(I=C),II)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,I,C){h=h>>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h],ne=1,le=0;for(;++le>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h+--I],ne=1;for(;I>0&&(ne*=256);)$+=this[h+--I]*ne;return $},o.prototype.readUint8=o.prototype.readUInt8=function(h,I){return h=h>>>0,I||$t(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,I){return h=h>>>0,I||$t(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,I){return h=h>>>0,I||$t(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=ya(function(h){h=h>>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&bt(h,this.length-8);let $=I+this[++h]*nn(2,8)+this[++h]*nn(2,16)+this[++h]*nn(2,24),ne=this[++h]+this[++h]*nn(2,8)+this[++h]*nn(2,16)+C*nn(2,24);return BigInt($)+(BigInt(ne)<>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&bt(h,this.length-8);let $=I*nn(2,24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+this[++h],ne=this[++h]*nn(2,24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+C;return(BigInt($)<>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h],ne=1,le=0;for(;++le=ne&&($-=Math.pow(2,8*I)),$},o.prototype.readIntBE=function(h,I,C){h=h>>>0,I=I>>>0,C||$t(h,I,this.length);let $=I,ne=1,le=this[h+--$];for(;$>0&&(ne*=256);)le+=this[h+--$]*ne;return ne*=128,le>=ne&&(le-=Math.pow(2,8*I)),le},o.prototype.readInt8=function(h,I){return h=h>>>0,I||$t(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,I){h=h>>>0,I||$t(h,2,this.length);let C=this[h]|this[h+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(h,I){h=h>>>0,I||$t(h,2,this.length);let C=this[h+1]|this[h]<<8;return C&32768?C|4294901760:C},o.prototype.readInt32LE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=ya(function(h){h=h>>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&bt(h,this.length-8);let $=this[h+4]+this[h+5]*nn(2,8)+this[h+6]*nn(2,16)+(C<<24);return(BigInt($)<>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&bt(h,this.length-8);let $=(I<<24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+this[++h];return(BigInt($)<>>0,I||$t(h,4,this.length),t.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),t.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,I){return h=h>>>0,I||$t(h,8,this.length),t.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,I){return h=h>>>0,I||$t(h,8,this.length),t.read(this,h,!1,52,8)};function bn(A,h,I,C,$,ne){if(!o.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>$||hA.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,I,C,$){if(h=+h,I=I>>>0,C=C>>>0,!$){let pt=Math.pow(2,8*C)-1;bn(this,h,I,C,pt,0)}let ne=1,le=0;for(this[I]=h&255;++le>>0,C=C>>>0,!$){let pt=Math.pow(2,8*C)-1;bn(this,h,I,C,pt,0)}let ne=C-1,le=1;for(this[I+ne]=h&255;--ne>=0&&(le*=256);)this[I+ne]=h/le&255;return I+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,1,255,0),this[I]=h&255,I+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,65535,0),this[I]=h&255,this[I+1]=h>>>8,I+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,65535,0),this[I]=h>>>8,this[I+1]=h&255,I+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,4294967295,0),this[I+3]=h>>>24,this[I+2]=h>>>16,this[I+1]=h>>>8,this[I]=h&255,I+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,4294967295,0),this[I]=h>>>24,this[I+1]=h>>>16,this[I+2]=h>>>8,this[I+3]=h&255,I+4};function oe(A,h,I,C,$){Lt(h,C,$,A,I,7);let ne=Number(h&BigInt(4294967295));A[I++]=ne,ne=ne>>8,A[I++]=ne,ne=ne>>8,A[I++]=ne,ne=ne>>8,A[I++]=ne;let le=Number(h>>BigInt(32)&BigInt(4294967295));return A[I++]=le,le=le>>8,A[I++]=le,le=le>>8,A[I++]=le,le=le>>8,A[I++]=le,I}function De(A,h,I,C,$){Lt(h,C,$,A,I,7);let ne=Number(h&BigInt(4294967295));A[I+7]=ne,ne=ne>>8,A[I+6]=ne,ne=ne>>8,A[I+5]=ne,ne=ne>>8,A[I+4]=ne;let le=Number(h>>BigInt(32)&BigInt(4294967295));return A[I+3]=le,le=le>>8,A[I+2]=le,le=le>>8,A[I+1]=le,le=le>>8,A[I]=le,I+8}o.prototype.writeBigUInt64LE=ya(function(h,I=0){return oe(this,h,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ya(function(h,I=0){return De(this,h,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,I,C,$){if(h=+h,I=I>>>0,!$){let pn=Math.pow(2,8*C-1);bn(this,h,I,C,pn-1,-pn)}let ne=0,le=1,pt=0;for(this[I]=h&255;++ne>0)-pt&255;return I+C},o.prototype.writeIntBE=function(h,I,C,$){if(h=+h,I=I>>>0,!$){let pn=Math.pow(2,8*C-1);bn(this,h,I,C,pn-1,-pn)}let ne=C-1,le=1,pt=0;for(this[I+ne]=h&255;--ne>=0&&(le*=256);)h<0&&pt===0&&this[I+ne+1]!==0&&(pt=1),this[I+ne]=(h/le>>0)-pt&255;return I+C},o.prototype.writeInt8=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,1,127,-128),h<0&&(h=255+h+1),this[I]=h&255,I+1},o.prototype.writeInt16LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,32767,-32768),this[I]=h&255,this[I+1]=h>>>8,I+2},o.prototype.writeInt16BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,32767,-32768),this[I]=h>>>8,this[I+1]=h&255,I+2},o.prototype.writeInt32LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,2147483647,-2147483648),this[I]=h&255,this[I+1]=h>>>8,this[I+2]=h>>>16,this[I+3]=h>>>24,I+4},o.prototype.writeInt32BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[I]=h>>>24,this[I+1]=h>>>16,this[I+2]=h>>>8,this[I+3]=h&255,I+4},o.prototype.writeBigInt64LE=ya(function(h,I=0){return oe(this,h,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ya(function(h,I=0){return De(this,h,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(A,h,I,C,$,ne){if(I+C>A.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function Le(A,h,I,C,$){return h=+h,I=I>>>0,$||_e(A,h,I,4),t.write(A,h,I,C,23,4),I+4}o.prototype.writeFloatLE=function(h,I,C){return Le(this,h,I,!0,C)},o.prototype.writeFloatBE=function(h,I,C){return Le(this,h,I,!1,C)};function _t(A,h,I,C,$){return h=+h,I=I>>>0,$||_e(A,h,I,8),t.write(A,h,I,C,52,8),I+8}o.prototype.writeDoubleLE=function(h,I,C){return _t(this,h,I,!0,C)},o.prototype.writeDoubleBE=function(h,I,C){return _t(this,h,I,!1,C)},o.prototype.copy=function(h,I,C,$){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(C||(C=0),!$&&$!==0&&($=this.length),I>=h.length&&(I=h.length),I||(I=0),$>0&&$=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),h.length-I<$-C&&($=h.length-I+C);let ne=$-C;return this===h&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(I,C,$):Uint8Array.prototype.set.call(h,this.subarray(C,$),I),ne},o.prototype.fill=function(h,I,C,$){if(typeof h=="string"){if(typeof I=="string"?($=I,I=0,C=this.length):typeof C=="string"&&($=C,C=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!o.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(h.length===1){let le=h.charCodeAt(0);($==="utf8"&&le<128||$==="latin1")&&(h=le)}}else typeof h=="number"?h=h&255:typeof h=="boolean"&&(h=Number(h));if(I<0||this.length>>0,C=C===void 0?this.length:C>>>0,h||(h=0);let ne;if(typeof h=="number")for(ne=I;nenn(2,32)?$=xe(String(I)):typeof I=="bigint"&&($=String(I),(I>nn(BigInt(2),BigInt(32))||I<-nn(BigInt(2),BigInt(32)))&&($=xe($)),$+="n"),C+=` It must be ${h}. Received ${$}`,C},RangeError);function xe(A){let h="",I=A.length,C=A[0]==="-"?1:0;for(;I>=C+4;I-=3)h=`_${A.slice(I-3,I)}${h}`;return`${A.slice(0,I)}${h}`}function Qe(A,h,I){et(h,"offset"),(A[h]===void 0||A[h+I]===void 0)&&bt(h,A.length-(I+1))}function Lt(A,h,I,C,$,ne){if(A>I||A3?h===0||h===BigInt(0)?pt=`>= 0${le} and < 2${le} ** ${(ne+1)*8}${le}`:pt=`>= -(2${le} ** ${(ne+1)*8-1}${le}) and < 2 ** ${(ne+1)*8-1}${le}`:pt=`>= ${h}${le} and <= ${I}${le}`,new J.ERR_OUT_OF_RANGE("value",pt,A)}Qe(C,$,ne)}function et(A,h){if(typeof A!="number")throw new J.ERR_INVALID_ARG_TYPE(h,"number",A)}function bt(A,h,I){throw Math.floor(A)!==A?(et(A,I),new J.ERR_OUT_OF_RANGE(I||"offset","an integer",A)):h<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE(I||"offset",`>= ${I?1:0} and <= ${h}`,A)}let Ha=/[^+/0-9A-Za-z-_]/g;function xr(A){if(A=A.split("=")[0],A=A.trim().replace(Ha,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function za(A,h){h=h||1/0;let I,C=A.length,$=null,ne=[];for(let le=0;le55295&&I<57344){if(!$){if(I>56319){(h-=3)>-1&&ne.push(239,191,189);continue}else if(le+1===C){(h-=3)>-1&&ne.push(239,191,189);continue}$=I;continue}if(I<56320){(h-=3)>-1&&ne.push(239,191,189),$=I;continue}I=($-55296<<10|I-56320)+65536}else $&&(h-=3)>-1&&ne.push(239,191,189);if($=null,I<128){if((h-=1)<0)break;ne.push(I)}else if(I<2048){if((h-=2)<0)break;ne.push(I>>6|192,I&63|128)}else if(I<65536){if((h-=3)<0)break;ne.push(I>>12|224,I>>6&63|128,I&63|128)}else if(I<1114112){if((h-=4)<0)break;ne.push(I>>18|240,I>>12&63|128,I>>6&63|128,I&63|128)}else throw new Error("Invalid code point")}return ne}function wc(A){let h=[];for(let I=0;I>8,$=I%256,ne.push($),ne.push(C);return ne}function pr(A){return e.toByteArray(xr(A))}function ni(A,h,I,C){let $;for($=0;$=h.length||$>=A.length);++$)h[$+I]=A[$];return $}function xt(A,h){return A instanceof h||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===h.name}function fr(A){return A!==A}let gu=function(){let A="0123456789abcdef",h=new Array(256);for(let I=0;I<16;++I){let C=I*16;for(let $=0;$<16;++$)h[C+$]=A[I]+A[$]}return h}();function ya(A){return typeof BigInt=="undefined"?_u:A}function _u(){throw new Error("BigInt not supported")}return Cu}var Id,QR,lm,YR,Cu,JR,Bu,D,Ode,Dde,HR=wu(()=>{"use strict";m();T();N();Id={},QR=!1;lm={},YR=!1;Cu={},JR=!1;Bu=oJ();Bu.Buffer;Bu.SlowBuffer;Bu.INSPECT_MAX_BYTES;Bu.kMaxLength;D=Bu.Buffer,Ode=Bu.INSPECT_MAX_BYTES,Dde=Bu.kMaxLength});var T=wu(()=>{"use strict";HR()});var zR=w(Yc=>{"use strict";m();T();N();Object.defineProperty(Yc,"__esModule",{value:!0});Yc.versionInfo=Yc.version=void 0;var uJ="16.9.0";Yc.version=uJ;var cJ=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});Yc.versionInfo=cJ});var Lr=w(vy=>{"use strict";m();T();N();Object.defineProperty(vy,"__esModule",{value:!0});vy.devAssert=lJ;function lJ(e,t){if(!!!e)throw new Error(t)}});var dm=w(Sy=>{"use strict";m();T();N();Object.defineProperty(Sy,"__esModule",{value:!0});Sy.isPromise=dJ;function dJ(e){return typeof(e==null?void 0:e.then)=="function"}});var va=w(Oy=>{"use strict";m();T();N();Object.defineProperty(Oy,"__esModule",{value:!0});Oy.isObjectLike=pJ;function pJ(e){return typeof e=="object"&&e!==null}});var yr=w(Dy=>{"use strict";m();T();N();Object.defineProperty(Dy,"__esModule",{value:!0});Dy.invariant=fJ;function fJ(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var pm=w(by=>{"use strict";m();T();N();Object.defineProperty(by,"__esModule",{value:!0});by.getLocation=TJ;var mJ=yr(),NJ=/\r\n|[\n\r]/g;function TJ(e,t){let n=0,r=1;for(let i of e.body.matchAll(NJ)){if(typeof i.index=="number"||(0,mJ.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var Ay=w(fm=>{"use strict";m();T();N();Object.defineProperty(fm,"__esModule",{value:!0});fm.printLocation=hJ;fm.printSourceLocation=XR;var EJ=pm();function hJ(e){return XR(e.source,(0,EJ.getLocation)(e.source,e.start))}function XR(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,c=t.line===1?n:0,l=t.column+c,p=`${e.name}:${o}:${l} -`,f=r.split(/\r\n|[\n\r]/g),y=f[i];if(y.length>120){let g=Math.floor(l/80),v=l%80,P=[];for(let M=0;M["|",M]),["|","^".padStart(v)],["|",P[g+1]]])}return p+WR([[`${o-1} |`,f[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,f[i+1]]])}function WR(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(` +"use strict";var shim=(()=>{var WY=Object.create;var yd=Object.defineProperty,XY=Object.defineProperties,ZY=Object.getOwnPropertyDescriptor,eJ=Object.getOwnPropertyDescriptors,tJ=Object.getOwnPropertyNames,bA=Object.getOwnPropertySymbols,nJ=Object.getPrototypeOf,AA=Object.prototype.hasOwnProperty,rJ=Object.prototype.propertyIsEnumerable;var nn=Math.pow,yy=(e,t,n)=>t in e?yd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))AA.call(t,n)&&yy(e,n,t[n]);if(bA)for(var n of bA(t))rJ.call(t,n)&&yy(e,n,t[n]);return e},Y=(e,t)=>XY(e,eJ(t));var wu=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),am=(e,t)=>{for(var n in t)yd(e,n,{get:t[n],enumerable:!0})},RA=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of tJ(t))!AA.call(e,i)&&i!==n&&yd(e,i,{get:()=>t[i],enumerable:!(r=ZY(t,i))||r.enumerable});return e};var ss=(e,t,n)=>(n=e!=null?WY(nJ(e)):{},RA(t||!e||!e.__esModule?yd(n,"default",{value:e,enumerable:!0}):n,e)),sm=e=>RA(yd({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(yy(e,typeof t!="symbol"?t+"":t,n),n);var vi=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(p){i(p)}},o=l=>{try{c(n.throw(l))}catch(p){i(p)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=wu(()=>{"use strict"});var O={};am(O,{_debugEnd:()=>ER,_debugProcess:()=>TR,_events:()=>LR,_eventsCount:()=>CR,_exiting:()=>WA,_fatalExceptions:()=>pR,_getActiveHandles:()=>tR,_getActiveRequests:()=>eR,_kill:()=>rR,_linkedBinding:()=>HA,_maxListeners:()=>wR,_preload_modules:()=>RR,_rawDebug:()=>YA,_startProfilerIdleNotifier:()=>hR,_stopProfilerIdleNotifier:()=>yR,_tickCallback:()=>NR,abort:()=>vR,addListener:()=>BR,allowedNodeEnvironmentFlags:()=>cR,arch:()=>CA,argv:()=>kA,argv0:()=>AR,assert:()=>lR,binding:()=>jA,chdir:()=>$A,config:()=>XA,cpuUsage:()=>cm,cwd:()=>GA,debugPort:()=>bR,default:()=>GR,dlopen:()=>ZA,domain:()=>zA,emit:()=>qR,emitWarning:()=>VA,env:()=>UA,execArgv:()=>MA,execPath:()=>DR,exit:()=>oR,features:()=>dR,hasUncaughtExceptionCaptureCallback:()=>mR,hrtime:()=>um,kill:()=>sR,listeners:()=>KR,memoryUsage:()=>aR,moduleLoadList:()=>JA,nextTick:()=>FA,off:()=>kR,on:()=>us,once:()=>UR,openStdin:()=>uR,pid:()=>SR,platform:()=>BA,ppid:()=>OR,prependListener:()=>VR,prependOnceListener:()=>jR,reallyExit:()=>nR,release:()=>QA,removeAllListeners:()=>xR,removeListener:()=>MR,resourceUsage:()=>iR,setSourceMapsEnabled:()=>PR,setUncaughtExceptionCaptureCallback:()=>fR,stderr:()=>gR,stdin:()=>_R,stdout:()=>IR,title:()=>LA,umask:()=>KA,uptime:()=>FR,version:()=>xA,versions:()=>qA});function _y(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function iJ(){!Qc||!Lu||(Qc=!1,Lu.length?os=Lu.concat(os):om=-1,os.length&&PA())}function PA(){if(!Qc){var e=setTimeout(iJ,0);Qc=!0;for(var t=os.length;t;){for(Lu=os,os=[];++om1)for(var n=1;n{"use strict";m();T();N();os=[],Qc=!1,om=-1;wA.prototype.run=function(){this.fun.apply(null,this.array)};LA="browser",CA="x64",BA="browser",UA={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},kA=["/usr/bin/node"],MA=[],xA="v16.8.0",qA={},VA=function(e,t){console.warn((t?t+": ":"")+e)},jA=function(e){_y("binding")},KA=function(e){return 0},GA=function(){return"/"},$A=function(e){},QA={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};YA=hr,JA=[];zA={},WA=!1,XA={};nR=hr,rR=hr,cm=function(){return{}},iR=cm,aR=cm,sR=hr,oR=hr,uR=hr,cR={};dR={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},pR=hr,fR=hr;NR=hr,TR=hr,ER=hr,hR=hr,yR=hr,IR=void 0,gR=void 0,_R=void 0,vR=hr,SR=2,OR=1,DR="/bin/usr/node",bR=9229,AR="node",RR=[],PR=hr,Yo={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};Yo.now===void 0&&(Iy=Date.now(),Yo.timing&&Yo.timing.navigationStart&&(Iy=Yo.timing.navigationStart),Yo.now=()=>Date.now()-Iy);gy=1e9;um.bigint=function(e){var t=um(e);return typeof BigInt=="undefined"?t[0]*gy+t[1]:BigInt(t[0]*gy)+BigInt(t[1])};wR=10,LR={},CR=0;BR=us,UR=us,kR=us,MR=us,xR=us,qR=hr,VR=us,jR=us;GR={version:xA,versions:qA,arch:CA,platform:BA,release:QA,_rawDebug:YA,moduleLoadList:JA,binding:jA,_linkedBinding:HA,_events:LR,_eventsCount:CR,_maxListeners:wR,on:us,addListener:BR,once:UR,off:kR,removeListener:MR,removeAllListeners:xR,emit:qR,prependListener:VR,prependOnceListener:jR,listeners:KR,domain:zA,_exiting:WA,config:XA,dlopen:ZA,uptime:FR,_getActiveRequests:eR,_getActiveHandles:tR,reallyExit:nR,_kill:rR,cpuUsage:cm,resourceUsage:iR,memoryUsage:aR,kill:sR,exit:oR,openStdin:uR,allowedNodeEnvironmentFlags:cR,assert:lR,features:dR,_fatalExceptions:pR,setUncaughtExceptionCaptureCallback:fR,hasUncaughtExceptionCaptureCallback:mR,emitWarning:VA,nextTick:FA,_tickCallback:NR,_debugProcess:TR,_debugEnd:ER,_startProfilerIdleNotifier:hR,_stopProfilerIdleNotifier:yR,stdout:IR,stdin:_R,stderr:gR,abort:vR,umask:KA,chdir:$A,cwd:GA,env:UA,title:LA,argv:kA,execArgv:MA,pid:SR,ppid:OR,execPath:DR,debugPort:bR,hrtime:um,argv0:AR,_preload_modules:RR,setSourceMapsEnabled:PR}});var N=wu(()=>{"use strict";$R()});function aJ(){if(QR)return Id;QR=!0,Id.byteLength=c,Id.toByteArray=p,Id.fromByteArray=g;for(var e=[],t=[],n=typeof Uint8Array!="undefined"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=r.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var k=v.indexOf("=");k===-1&&(k=P);var K=k===P?0:4-k%4;return[k,K]}function c(v){var P=o(v),k=P[0],K=P[1];return(k+K)*3/4-K}function l(v,P,k){return(P+k)*3/4-k}function p(v){var P,k=o(v),K=k[0],G=k[1],Z=new n(l(v,K,G)),W=0,Te=G>0?K-4:K,fe;for(fe=0;fe>16&255,Z[W++]=P>>8&255,Z[W++]=P&255;return G===2&&(P=t[v.charCodeAt(fe)]<<2|t[v.charCodeAt(fe+1)]>>4,Z[W++]=P&255),G===1&&(P=t[v.charCodeAt(fe)]<<10|t[v.charCodeAt(fe+1)]<<4|t[v.charCodeAt(fe+2)]>>2,Z[W++]=P>>8&255,Z[W++]=P&255),Z}function f(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function y(v,P,k){for(var K,G=[],Z=P;ZTe?Te:W+Z));return K===1?(P=v[k-1],G.push(e[P>>2]+e[P<<4&63]+"==")):K===2&&(P=(v[k-2]<<8)+v[k-1],G.push(e[P>>10]+e[P>>4&63]+e[P<<2&63]+"=")),G.join("")}return Id}function sJ(){if(YR)return lm;YR=!0;return lm.read=function(e,t,n,r,i){var a,o,c=i*8-r-1,l=(1<>1,f=-7,y=n?i-1:0,g=n?-1:1,v=e[t+y];for(y+=g,a=v&(1<<-f)-1,v>>=-f,f+=c;f>0;a=a*256+e[t+y],y+=g,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;f>0;o=o*256+e[t+y],y+=g,f-=8);if(a===0)a=1-p;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-p}return(v?-1:1)*o*Math.pow(2,a-r)},lm.write=function(e,t,n,r,i,a){var o,c,l,p=a*8-i-1,f=(1<>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,P=r?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+y>=1?t+=g/l:t+=g*Math.pow(2,1-y),t*l>=2&&(o++,l/=2),o+y>=f?(c=0,o=f):o+y>=1?(c=(t*l-1)*Math.pow(2,i),o=o+y):(c=t*Math.pow(2,y-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=c&255,v+=P,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=P,o/=256,p-=8);e[n+v-P]|=k*128},lm}function oJ(){if(JR)return Cu;JR=!0;let e=aJ(),t=sJ(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Cu.Buffer=o,Cu.SlowBuffer=G,Cu.INSPECT_MAX_BYTES=50;let r=2147483647;Cu.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=i(),!o.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 A=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(A,h),A.foo()===42}catch(A){return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(A){if(A>r)throw new RangeError('The value "'+A+'" is invalid for option "size"');let h=new Uint8Array(A);return Object.setPrototypeOf(h,o.prototype),h}function o(A,h,I){if(typeof A=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(A)}return c(A,h,I)}o.poolSize=8192;function c(A,h,I){if(typeof A=="string")return y(A,h);if(ArrayBuffer.isView(A))return v(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(xt(A,ArrayBuffer)||A&&xt(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xt(A,SharedArrayBuffer)||A&&xt(A.buffer,SharedArrayBuffer)))return P(A,h,I);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let C=A.valueOf&&A.valueOf();if(C!=null&&C!==A)return o.from(C,h,I);let $=k(A);if($)return $;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return o.from(A[Symbol.toPrimitive]("string"),h,I);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}o.from=function(A,h,I){return c(A,h,I)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function p(A,h,I){return l(A),A<=0?a(A):h!==void 0?typeof I=="string"?a(A).fill(h,I):a(A).fill(h):a(A)}o.alloc=function(A,h,I){return p(A,h,I)};function f(A){return l(A),a(A<0?0:K(A)|0)}o.allocUnsafe=function(A){return f(A)},o.allocUnsafeSlow=function(A){return f(A)};function y(A,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);let I=Z(A,h)|0,C=a(I),$=C.write(A,h);return $!==I&&(C=C.slice(0,$)),C}function g(A){let h=A.length<0?0:K(A.length)|0,I=a(h);for(let C=0;C=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return A|0}function G(A){return+A!=A&&(A=0),o.alloc(+A)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,I){if(xt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),xt(I,Uint8Array)&&(I=o.from(I,I.offset,I.byteLength)),!o.isBuffer(h)||!o.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===I)return 0;let C=h.length,$=I.length;for(let re=0,le=Math.min(C,$);re$.length?(o.isBuffer(le)||(le=o.from(le)),le.copy($,re)):Uint8Array.prototype.set.call($,le,re);else if(o.isBuffer(le))le.copy($,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=le.length}return $};function Z(A,h){if(o.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||xt(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let I=A.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&I===0)return 0;let $=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":return za(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I*2;case"hex":return I>>>1;case"base64":return pr(A).length;default:if($)return C?-1:za(A).length;h=(""+h).toLowerCase(),$=!0}}o.byteLength=Z;function W(A,h,I){let C=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((I===void 0||I>this.length)&&(I=this.length),I<=0)||(I>>>=0,h>>>=0,I<=h))return"";for(A||(A="utf8");;)switch(A){case"hex":return Rr(this,h,I);case"utf8":case"utf-8":return Wt(this,h,I);case"ascii":return dn(this,h,I);case"latin1":case"binary":return Ar(this,h,I);case"base64":return zt(this,h,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Un(this,h,I);default:if(C)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function Te(A,h,I){let C=A[h];A[h]=A[I],A[I]=C}o.prototype.swap16=function(){let h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let I=0;II&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,I,C,$,re){if(xt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),!o.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(I===void 0&&(I=0),C===void 0&&(C=h?h.length:0),$===void 0&&($=0),re===void 0&&(re=this.length),I<0||C>h.length||$<0||re>this.length)throw new RangeError("out of range index");if($>=re&&I>=C)return 0;if($>=re)return-1;if(I>=C)return 1;if(I>>>=0,C>>>=0,$>>>=0,re>>>=0,this===h)return 0;let le=re-$,pt=C-I,pn=Math.min(le,pt),tn=this.slice($,re),hn=h.slice(I,C);for(let Xt=0;Xt2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,fr(I)&&(I=$?0:A.length-1),I<0&&(I=A.length+I),I>=A.length){if($)return-1;I=A.length-1}else if(I<0)if($)I=0;else return-1;if(typeof h=="string"&&(h=o.from(h,C)),o.isBuffer(h))return h.length===0?-1:we(A,h,I,C,$);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?$?Uint8Array.prototype.indexOf.call(A,h,I):Uint8Array.prototype.lastIndexOf.call(A,h,I):we(A,[h],I,C,$);throw new TypeError("val must be string, number or Buffer")}function we(A,h,I,C,$){let re=1,le=A.length,pt=h.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(A.length<2||h.length<2)return-1;re=2,le/=2,pt/=2,I/=2}function pn(hn,Xt){return re===1?hn[Xt]:hn.readUInt16BE(Xt*re)}let tn;if($){let hn=-1;for(tn=I;tnle&&(I=le-pt),tn=I;tn>=0;tn--){let hn=!0;for(let Xt=0;Xt$&&(C=$)):C=$;let re=h.length;C>re/2&&(C=re/2);let le;for(le=0;le>>0,isFinite(C)?(C=C>>>0,$===void 0&&($="utf8")):($=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let re=this.length-I;if((C===void 0||C>re)&&(C=re),h.length>0&&(C<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");$||($="utf8");let le=!1;for(;;)switch($){case"hex":return Ve(this,h,I,C);case"utf8":case"utf-8":return it(this,h,I,C);case"ascii":case"latin1":case"binary":return ee(this,h,I,C);case"base64":return ve(this,h,I,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gt(this,h,I,C);default:if(le)throw new TypeError("Unknown encoding: "+$);$=(""+$).toLowerCase(),le=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function zt(A,h,I){return h===0&&I===A.length?e.fromByteArray(A):e.fromByteArray(A.slice(h,I))}function Wt(A,h,I){I=Math.min(A.length,I);let C=[],$=h;for(;$239?4:re>223?3:re>191?2:1;if($+pt<=I){let pn,tn,hn,Xt;switch(pt){case 1:re<128&&(le=re);break;case 2:pn=A[$+1],(pn&192)===128&&(Xt=(re&31)<<6|pn&63,Xt>127&&(le=Xt));break;case 3:pn=A[$+1],tn=A[$+2],(pn&192)===128&&(tn&192)===128&&(Xt=(re&15)<<12|(pn&63)<<6|tn&63,Xt>2047&&(Xt<55296||Xt>57343)&&(le=Xt));break;case 4:pn=A[$+1],tn=A[$+2],hn=A[$+3],(pn&192)===128&&(tn&192)===128&&(hn&192)===128&&(Xt=(re&15)<<18|(pn&63)<<12|(tn&63)<<6|hn&63,Xt>65535&&Xt<1114112&&(le=Xt))}}le===null?(le=65533,pt=1):le>65535&&(le-=65536,C.push(le>>>10&1023|55296),le=56320|le&1023),C.push(le),$+=pt}return Vt(C)}let Dn=4096;function Vt(A){let h=A.length;if(h<=Dn)return String.fromCharCode.apply(String,A);let I="",C=0;for(;CC)&&(I=C);let $="";for(let re=h;reC&&(h=C),I<0?(I+=C,I<0&&(I=0)):I>C&&(I=C),II)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,I,C){h=h>>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h],re=1,le=0;for(;++le>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h+--I],re=1;for(;I>0&&(re*=256);)$+=this[h+--I]*re;return $},o.prototype.readUint8=o.prototype.readUInt8=function(h,I){return h=h>>>0,I||$t(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,I){return h=h>>>0,I||$t(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,I){return h=h>>>0,I||$t(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=ya(function(h){h=h>>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&bt(h,this.length-8);let $=I+this[++h]*nn(2,8)+this[++h]*nn(2,16)+this[++h]*nn(2,24),re=this[++h]+this[++h]*nn(2,8)+this[++h]*nn(2,16)+C*nn(2,24);return BigInt($)+(BigInt(re)<>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&bt(h,this.length-8);let $=I*nn(2,24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+this[++h],re=this[++h]*nn(2,24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+C;return(BigInt($)<>>0,I=I>>>0,C||$t(h,I,this.length);let $=this[h],re=1,le=0;for(;++le=re&&($-=Math.pow(2,8*I)),$},o.prototype.readIntBE=function(h,I,C){h=h>>>0,I=I>>>0,C||$t(h,I,this.length);let $=I,re=1,le=this[h+--$];for(;$>0&&(re*=256);)le+=this[h+--$]*re;return re*=128,le>=re&&(le-=Math.pow(2,8*I)),le},o.prototype.readInt8=function(h,I){return h=h>>>0,I||$t(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,I){h=h>>>0,I||$t(h,2,this.length);let C=this[h]|this[h+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(h,I){h=h>>>0,I||$t(h,2,this.length);let C=this[h+1]|this[h]<<8;return C&32768?C|4294901760:C},o.prototype.readInt32LE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=ya(function(h){h=h>>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&bt(h,this.length-8);let $=this[h+4]+this[h+5]*nn(2,8)+this[h+6]*nn(2,16)+(C<<24);return(BigInt($)<>>0,et(h,"offset");let I=this[h],C=this[h+7];(I===void 0||C===void 0)&&bt(h,this.length-8);let $=(I<<24)+this[++h]*nn(2,16)+this[++h]*nn(2,8)+this[++h];return(BigInt($)<>>0,I||$t(h,4,this.length),t.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,I){return h=h>>>0,I||$t(h,4,this.length),t.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,I){return h=h>>>0,I||$t(h,8,this.length),t.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,I){return h=h>>>0,I||$t(h,8,this.length),t.read(this,h,!1,52,8)};function bn(A,h,I,C,$,re){if(!o.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>$||hA.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,I,C,$){if(h=+h,I=I>>>0,C=C>>>0,!$){let pt=Math.pow(2,8*C)-1;bn(this,h,I,C,pt,0)}let re=1,le=0;for(this[I]=h&255;++le>>0,C=C>>>0,!$){let pt=Math.pow(2,8*C)-1;bn(this,h,I,C,pt,0)}let re=C-1,le=1;for(this[I+re]=h&255;--re>=0&&(le*=256);)this[I+re]=h/le&255;return I+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,1,255,0),this[I]=h&255,I+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,65535,0),this[I]=h&255,this[I+1]=h>>>8,I+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,65535,0),this[I]=h>>>8,this[I+1]=h&255,I+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,4294967295,0),this[I+3]=h>>>24,this[I+2]=h>>>16,this[I+1]=h>>>8,this[I]=h&255,I+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,4294967295,0),this[I]=h>>>24,this[I+1]=h>>>16,this[I+2]=h>>>8,this[I+3]=h&255,I+4};function oe(A,h,I,C,$){Lt(h,C,$,A,I,7);let re=Number(h&BigInt(4294967295));A[I++]=re,re=re>>8,A[I++]=re,re=re>>8,A[I++]=re,re=re>>8,A[I++]=re;let le=Number(h>>BigInt(32)&BigInt(4294967295));return A[I++]=le,le=le>>8,A[I++]=le,le=le>>8,A[I++]=le,le=le>>8,A[I++]=le,I}function De(A,h,I,C,$){Lt(h,C,$,A,I,7);let re=Number(h&BigInt(4294967295));A[I+7]=re,re=re>>8,A[I+6]=re,re=re>>8,A[I+5]=re,re=re>>8,A[I+4]=re;let le=Number(h>>BigInt(32)&BigInt(4294967295));return A[I+3]=le,le=le>>8,A[I+2]=le,le=le>>8,A[I+1]=le,le=le>>8,A[I]=le,I+8}o.prototype.writeBigUInt64LE=ya(function(h,I=0){return oe(this,h,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ya(function(h,I=0){return De(this,h,I,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,I,C,$){if(h=+h,I=I>>>0,!$){let pn=Math.pow(2,8*C-1);bn(this,h,I,C,pn-1,-pn)}let re=0,le=1,pt=0;for(this[I]=h&255;++re>0)-pt&255;return I+C},o.prototype.writeIntBE=function(h,I,C,$){if(h=+h,I=I>>>0,!$){let pn=Math.pow(2,8*C-1);bn(this,h,I,C,pn-1,-pn)}let re=C-1,le=1,pt=0;for(this[I+re]=h&255;--re>=0&&(le*=256);)h<0&&pt===0&&this[I+re+1]!==0&&(pt=1),this[I+re]=(h/le>>0)-pt&255;return I+C},o.prototype.writeInt8=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,1,127,-128),h<0&&(h=255+h+1),this[I]=h&255,I+1},o.prototype.writeInt16LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,32767,-32768),this[I]=h&255,this[I+1]=h>>>8,I+2},o.prototype.writeInt16BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,2,32767,-32768),this[I]=h>>>8,this[I+1]=h&255,I+2},o.prototype.writeInt32LE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,2147483647,-2147483648),this[I]=h&255,this[I+1]=h>>>8,this[I+2]=h>>>16,this[I+3]=h>>>24,I+4},o.prototype.writeInt32BE=function(h,I,C){return h=+h,I=I>>>0,C||bn(this,h,I,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[I]=h>>>24,this[I+1]=h>>>16,this[I+2]=h>>>8,this[I+3]=h&255,I+4},o.prototype.writeBigInt64LE=ya(function(h,I=0){return oe(this,h,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ya(function(h,I=0){return De(this,h,I,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function _e(A,h,I,C,$,re){if(I+C>A.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function Le(A,h,I,C,$){return h=+h,I=I>>>0,$||_e(A,h,I,4),t.write(A,h,I,C,23,4),I+4}o.prototype.writeFloatLE=function(h,I,C){return Le(this,h,I,!0,C)},o.prototype.writeFloatBE=function(h,I,C){return Le(this,h,I,!1,C)};function _t(A,h,I,C,$){return h=+h,I=I>>>0,$||_e(A,h,I,8),t.write(A,h,I,C,52,8),I+8}o.prototype.writeDoubleLE=function(h,I,C){return _t(this,h,I,!0,C)},o.prototype.writeDoubleBE=function(h,I,C){return _t(this,h,I,!1,C)},o.prototype.copy=function(h,I,C,$){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(C||(C=0),!$&&$!==0&&($=this.length),I>=h.length&&(I=h.length),I||(I=0),$>0&&$=this.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("sourceEnd out of bounds");$>this.length&&($=this.length),h.length-I<$-C&&($=h.length-I+C);let re=$-C;return this===h&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(I,C,$):Uint8Array.prototype.set.call(h,this.subarray(C,$),I),re},o.prototype.fill=function(h,I,C,$){if(typeof h=="string"){if(typeof I=="string"?($=I,I=0,C=this.length):typeof C=="string"&&($=C,C=this.length),$!==void 0&&typeof $!="string")throw new TypeError("encoding must be a string");if(typeof $=="string"&&!o.isEncoding($))throw new TypeError("Unknown encoding: "+$);if(h.length===1){let le=h.charCodeAt(0);($==="utf8"&&le<128||$==="latin1")&&(h=le)}}else typeof h=="number"?h=h&255:typeof h=="boolean"&&(h=Number(h));if(I<0||this.length>>0,C=C===void 0?this.length:C>>>0,h||(h=0);let re;if(typeof h=="number")for(re=I;renn(2,32)?$=xe(String(I)):typeof I=="bigint"&&($=String(I),(I>nn(BigInt(2),BigInt(32))||I<-nn(BigInt(2),BigInt(32)))&&($=xe($)),$+="n"),C+=` It must be ${h}. Received ${$}`,C},RangeError);function xe(A){let h="",I=A.length,C=A[0]==="-"?1:0;for(;I>=C+4;I-=3)h=`_${A.slice(I-3,I)}${h}`;return`${A.slice(0,I)}${h}`}function Qe(A,h,I){et(h,"offset"),(A[h]===void 0||A[h+I]===void 0)&&bt(h,A.length-(I+1))}function Lt(A,h,I,C,$,re){if(A>I||A3?h===0||h===BigInt(0)?pt=`>= 0${le} and < 2${le} ** ${(re+1)*8}${le}`:pt=`>= -(2${le} ** ${(re+1)*8-1}${le}) and < 2 ** ${(re+1)*8-1}${le}`:pt=`>= ${h}${le} and <= ${I}${le}`,new J.ERR_OUT_OF_RANGE("value",pt,A)}Qe(C,$,re)}function et(A,h){if(typeof A!="number")throw new J.ERR_INVALID_ARG_TYPE(h,"number",A)}function bt(A,h,I){throw Math.floor(A)!==A?(et(A,I),new J.ERR_OUT_OF_RANGE(I||"offset","an integer",A)):h<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE(I||"offset",`>= ${I?1:0} and <= ${h}`,A)}let Ha=/[^+/0-9A-Za-z-_]/g;function xr(A){if(A=A.split("=")[0],A=A.trim().replace(Ha,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function za(A,h){h=h||1/0;let I,C=A.length,$=null,re=[];for(let le=0;le55295&&I<57344){if(!$){if(I>56319){(h-=3)>-1&&re.push(239,191,189);continue}else if(le+1===C){(h-=3)>-1&&re.push(239,191,189);continue}$=I;continue}if(I<56320){(h-=3)>-1&&re.push(239,191,189),$=I;continue}I=($-55296<<10|I-56320)+65536}else $&&(h-=3)>-1&&re.push(239,191,189);if($=null,I<128){if((h-=1)<0)break;re.push(I)}else if(I<2048){if((h-=2)<0)break;re.push(I>>6|192,I&63|128)}else if(I<65536){if((h-=3)<0)break;re.push(I>>12|224,I>>6&63|128,I&63|128)}else if(I<1114112){if((h-=4)<0)break;re.push(I>>18|240,I>>12&63|128,I>>6&63|128,I&63|128)}else throw new Error("Invalid code point")}return re}function wc(A){let h=[];for(let I=0;I>8,$=I%256,re.push($),re.push(C);return re}function pr(A){return e.toByteArray(xr(A))}function ni(A,h,I,C){let $;for($=0;$=h.length||$>=A.length);++$)h[$+I]=A[$];return $}function xt(A,h){return A instanceof h||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===h.name}function fr(A){return A!==A}let gu=function(){let A="0123456789abcdef",h=new Array(256);for(let I=0;I<16;++I){let C=I*16;for(let $=0;$<16;++$)h[C+$]=A[I]+A[$]}return h}();function ya(A){return typeof BigInt=="undefined"?_u:A}function _u(){throw new Error("BigInt not supported")}return Cu}var Id,QR,lm,YR,Cu,JR,Bu,D,Ode,Dde,HR=wu(()=>{"use strict";m();T();N();Id={},QR=!1;lm={},YR=!1;Cu={},JR=!1;Bu=oJ();Bu.Buffer;Bu.SlowBuffer;Bu.INSPECT_MAX_BYTES;Bu.kMaxLength;D=Bu.Buffer,Ode=Bu.INSPECT_MAX_BYTES,Dde=Bu.kMaxLength});var T=wu(()=>{"use strict";HR()});var zR=w(Yc=>{"use strict";m();T();N();Object.defineProperty(Yc,"__esModule",{value:!0});Yc.versionInfo=Yc.version=void 0;var uJ="16.9.0";Yc.version=uJ;var cJ=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});Yc.versionInfo=cJ});var Lr=w(vy=>{"use strict";m();T();N();Object.defineProperty(vy,"__esModule",{value:!0});vy.devAssert=lJ;function lJ(e,t){if(!!!e)throw new Error(t)}});var dm=w(Sy=>{"use strict";m();T();N();Object.defineProperty(Sy,"__esModule",{value:!0});Sy.isPromise=dJ;function dJ(e){return typeof(e==null?void 0:e.then)=="function"}});var va=w(Oy=>{"use strict";m();T();N();Object.defineProperty(Oy,"__esModule",{value:!0});Oy.isObjectLike=pJ;function pJ(e){return typeof e=="object"&&e!==null}});var yr=w(Dy=>{"use strict";m();T();N();Object.defineProperty(Dy,"__esModule",{value:!0});Dy.invariant=fJ;function fJ(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var pm=w(by=>{"use strict";m();T();N();Object.defineProperty(by,"__esModule",{value:!0});by.getLocation=TJ;var mJ=yr(),NJ=/\r\n|[\n\r]/g;function TJ(e,t){let n=0,r=1;for(let i of e.body.matchAll(NJ)){if(typeof i.index=="number"||(0,mJ.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var Ay=w(fm=>{"use strict";m();T();N();Object.defineProperty(fm,"__esModule",{value:!0});fm.printLocation=hJ;fm.printSourceLocation=XR;var EJ=pm();function hJ(e){return XR(e.source,(0,EJ.getLocation)(e.source,e.start))}function XR(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,c=t.line===1?n:0,l=t.column+c,p=`${e.name}:${o}:${l} +`,f=r.split(/\r\n|[\n\r]/g),y=f[i];if(y.length>120){let g=Math.floor(l/80),v=l%80,P=[];for(let k=0;k["|",k]),["|","^".padStart(v)],["|",P[g+1]]])}return p+WR([[`${o-1} |`,f[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,f[i+1]]])}function WR(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 He=w(Jc=>{"use strict";m();T();N();Object.defineProperty(Jc,"__esModule",{value:!0});Jc.GraphQLError=void 0;Jc.formatError=_J;Jc.printError=gJ;var yJ=va(),ZR=pm(),eP=Ay();function IJ(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 Ry=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:c,positions:l,path:p,originalError:f,extensions:y}=IJ(n);super(t),this.name="GraphQLError",this.path=p!=null?p:void 0,this.originalError=f!=null?f:void 0,this.nodes=tP(Array.isArray(o)?o:o?[o]:void 0);let g=tP((r=this.nodes)===null||r===void 0?void 0:r.map(P=>P.loc).filter(P=>P!=null));this.source=c!=null?c:g==null||(i=g[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:g==null?void 0:g.map(P=>P.start),this.locations=l&&c?l.map(P=>(0,ZR.getLocation)(c,P)):g==null?void 0:g.map(P=>(0,ZR.getLocation)(P.source,P.start));let v=(0,yJ.isObjectLike)(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(a=y!=null?y:v)!==null&&a!==void 0?a: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}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.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,eP.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` @@ -32,7 +32,7 @@ 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};ym.instanceOf=e3});var gm=w(Pd=>{"use strict";m();T();N();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.Source=void 0;Pd.isSource=r3;var jy=Lr(),t3=Yt(),n3=Rd(),Im=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,jy.devAssert)(!1,`Body must be a string. Received: ${(0,t3.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,jy.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,jy.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Pd.Source=Im;function r3(e){return(0,n3.instanceOf)(e,Im)}});var Wc=w(Jo=>{"use strict";m();T();N();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.Parser=void 0;Jo.parse=a3;Jo.parseConstValue=o3;Jo.parseType=u3;Jo.parseValue=s3;var xu=mm(),Fd=Sa(),i3=Hc(),at=Rt(),lP=Em(),cP=gm(),Se=Dd();function a3(e,t){return new qu(e,t).parseDocument()}function s3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function o3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function u3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var qu=class{constructor(t,n={}){let r=(0,cP.isSource)(t)?t:new cP.Source(t);this._lexer=new lP.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:at.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:at.Kind.DOCUMENT,definitions:this.many(Se.TokenKind.SOF,this.parseDefinition,Se.TokenKind.EOF)})}parseDefinition(){if(this.peek(Se.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Se.TokenKind.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(0,xu.syntaxError)(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(Se.TokenKind.BRACE_L))return this.node(t,{kind:at.Kind.OPERATION_DEFINITION,operation:Fd.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(Se.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:at.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Se.TokenKind.NAME);switch(t.value){case"query":return Fd.OperationTypeNode.QUERY;case"mutation":return Fd.OperationTypeNode.MUTATION;case"subscription":return Fd.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseVariableDefinition,Se.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:at.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Se.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Se.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Se.TokenKind.DOLLAR),this.node(t,{kind:at.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:at.Kind.SELECTION_SET,selections:this.many(Se.TokenKind.BRACE_L,this.parseSelection,Se.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Se.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(Se.TokenKind.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:at.Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Se.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Se.TokenKind.PAREN_L,n,Se.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:at.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Se.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(Se.TokenKind.NAME)?this.node(t,{kind:at.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:at.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:at.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:at.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 Se.TokenKind.BRACKET_L:return this.parseList(t);case Se.TokenKind.BRACE_L:return this.parseObject(t);case Se.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:at.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:at.Kind.FLOAT,value:n.value});case Se.TokenKind.STRING:case Se.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Se.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:at.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:at.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:at.Kind.NULL});default:return this.node(n,{kind:at.Kind.ENUM,value:n.value})}case Se.TokenKind.DOLLAR:if(t)if(this.expectToken(Se.TokenKind.DOLLAR),this._lexer.token.kind===Se.TokenKind.NAME){let r=this._lexer.token.value;throw(0,xu.syntaxError)(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:at.Kind.STRING,value:t.value,block:t.kind===Se.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:at.Kind.LIST,values:this.any(Se.TokenKind.BRACKET_L,n,Se.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:at.Kind.OBJECT,fields:this.any(Se.TokenKind.BRACE_L,n,Se.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:at.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(Se.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(Se.TokenKind.AT),this.node(n,{kind:at.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(Se.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(Se.TokenKind.BRACKET_R),n=this.node(t,{kind:at.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:at.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:at.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Se.TokenKind.STRING)||this.peek(Se.TokenKind.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(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);return this.node(t,{kind:at.Kind.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(Se.TokenKind.COLON);let r=this.parseNamedType();return this.node(t,{kind:at.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:at.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(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:at.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Se.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseFieldDefinition,Se.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Se.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:at.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseInputValueDef,Se.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Se.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(Se.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:at.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:at.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:at.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Se.TokenKind.EQUALS)?this.delimitedMany(Se.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:at.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseEnumValueDefinition,Se.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:at.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(0,xu.syntaxError)(this._lexer.source,this._lexer.token.start,`${_m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:at.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseInputValueDef,Se.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Se.TokenKind.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(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:at.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:at.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(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}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:at.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:at.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:at.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(Se.TokenKind.AT);let r=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:at.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Se.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(i3.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Fd.Location(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(0,xu.syntaxError)(this._lexer.source,n.start,`Expected ${dP(t)}, found ${_m(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===Se.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,xu.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${_m(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===Se.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return(0,xu.syntaxError)(this._lexer.source,n.start,`Unexpected ${_m(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!==Se.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,xu.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};Jo.Parser=qu;function _m(e){let t=e.value;return dP(e.kind)+(t!=null?` "${t}"`:"")}function dP(e){return(0,lP.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var Ho=w(Ky=>{"use strict";m();T();N();Object.defineProperty(Ky,"__esModule",{value:!0});Ky.didYouMean=l3;var c3=5;function l3(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let a=r.map(l=>`"${l}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}let o=a.slice(0,c3),c=o.pop();return i+o.join(", ")+", or "+c+"?"}});var pP=w(Gy=>{"use strict";m();T();N();Object.defineProperty(Gy,"__esModule",{value:!0});Gy.identityFunc=d3;function d3(e){return e}});var zo=w($y=>{"use strict";m();T();N();Object.defineProperty($y,"__esModule",{value:!0});$y.keyMap=p3;function p3(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var wd=w(Qy=>{"use strict";m();T();N();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.keyValMap=f3;function f3(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var Jy=w(Yy=>{"use strict";m();T();N();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.mapValue=m3;function m3(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var Ld=w(zy=>{"use strict";m();T();N();Object.defineProperty(zy,"__esModule",{value:!0});zy.naturalCompare=N3;function N3(e,t){let n=0,r=0;for(;n0);let c=0;do++r,c=c*10+a-Hy,a=t.charCodeAt(r);while(vm(a)&&c>0);if(oc)return 1}else{if(ia)return 1;++n,++r}}return e.length-t.length}var Hy=48,T3=57;function vm(e){return!isNaN(e)&&Hy<=e&&e<=T3}});var Wo=w(Xy=>{"use strict";m();T();N();Object.defineProperty(Xy,"__esModule",{value:!0});Xy.suggestionList=h3;var E3=Ld();function h3(e,t){let n=Object.create(null),r=new Wy(e),i=Math.floor(e.length*.4)+1;for(let a of t){let o=r.measure(a,i);o!==void 0&&(n[a]=o)}return Object.keys(n).sort((a,o)=>{let c=n[a]-n[o];return c!==0?c:(0,E3.naturalCompare)(a,o)})}var Wy=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=fP(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=fP(r),a=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let f=0;f<=c;f++)l[0][f]=f;for(let f=1;f<=o;f++){let y=l[(f-1)%3],g=l[f%3],v=g[0]=f;for(let P=1;P<=c;P++){let M=i[f-1]===a[P-1]?0:1,K=Math.min(y[P]+1,g[P-1]+1,y[P-1]+M);if(f>1&&P>1&&i[f-1]===a[P-2]&&i[f-2]===a[P-1]){let G=l[(f-2)%3][P-2];K=Math.min(K,G+1)}Kn)return}let p=l[o%3][c];return p<=n?p:void 0}};function fP(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();N();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.toObjMap=y3;function y3(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 mP=w(eI=>{"use strict";m();T();N();Object.defineProperty(eI,"__esModule",{value:!0});eI.printString=I3;function I3(e){return`"${e.replace(g3,_3)}"`}var g3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function _3(e){return v3[e.charCodeAt(0)]}var v3=["\\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 Vu=w(Xo=>{"use strict";m();T();N();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.BREAK=void 0;Xo.getEnterLeaveForKind=Om;Xo.getVisitFn=A3;Xo.visit=D3;Xo.visitInParallel=b3;var S3=Lr(),O3=Yt(),tI=Sa(),NP=Rt(),Xc=Object.freeze({});Xo.BREAK=Xc;function D3(e,t,n=tI.QueryDocumentKeys){let r=new Map;for(let G of Object.values(NP.Kind))r.set(G,Om(t,G));let i,a=Array.isArray(e),o=[e],c=-1,l=[],p=e,f,y,g=[],v=[];do{c++;let G=c===o.length,Z=G&&l.length!==0;if(G){if(f=v.length===0?void 0:g[g.length-1],p=y,y=v.pop(),Z)if(a){p=p.slice();let Te=0;for(let[fe,we]of l){let je=fe-Te;we===null?(p.splice(je,1),Te++):p[je]=we}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(let[Te,fe]of l)p[Te]=fe}c=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(y){if(f=a?c:o[c],p=y[f],p==null)continue;g.push(f)}let W;if(!Array.isArray(p)){var P,M;(0,tI.isNode)(p)||(0,S3.devAssert)(!1,`Invalid AST Node: ${(0,O3.inspect)(p)}.`);let Te=G?(P=r.get(p.kind))===null||P===void 0?void 0:P.leave:(M=r.get(p.kind))===null||M===void 0?void 0:M.enter;if(W=Te==null?void 0:Te.call(t,p,f,y,g,v),W===Xc)break;if(W===!1){if(!G){g.pop();continue}}else if(W!==void 0&&(l.push([f,W]),!G))if((0,tI.isNode)(W))p=W;else{g.pop();continue}}if(W===void 0&&Z&&l.push([f,p]),G)g.pop();else{var K;i={inArray:a,index:c,keys:o,edits:l,prev:i},a=Array.isArray(p),o=a?p:(K=n[p.kind])!==null&&K!==void 0?K:[],c=-1,l=[],y&&v.push(y),y=p}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function b3(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(NP.Kind)){let i=!1,a=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();N();Object.defineProperty(nI,"__esModule",{value:!0});nI.print=w3;var R3=Sd(),P3=mP(),F3=Vu();function w3(e){return(0,F3.visit)(e,C3)}var L3=80,C3={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qe(e.definitions,` +spurious results.`)}}return!1};ym.instanceOf=e3});var gm=w(Pd=>{"use strict";m();T();N();Object.defineProperty(Pd,"__esModule",{value:!0});Pd.Source=void 0;Pd.isSource=r3;var jy=Lr(),t3=Yt(),n3=Rd(),Im=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,jy.devAssert)(!1,`Body must be a string. Received: ${(0,t3.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,jy.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,jy.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Pd.Source=Im;function r3(e){return(0,n3.instanceOf)(e,Im)}});var Wc=w(Jo=>{"use strict";m();T();N();Object.defineProperty(Jo,"__esModule",{value:!0});Jo.Parser=void 0;Jo.parse=a3;Jo.parseConstValue=o3;Jo.parseType=u3;Jo.parseValue=s3;var xu=mm(),Fd=Sa(),i3=Hc(),at=Rt(),lP=Em(),cP=gm(),Se=Dd();function a3(e,t){return new qu(e,t).parseDocument()}function s3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function o3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function u3(e,t){let n=new qu(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var qu=class{constructor(t,n={}){let r=(0,cP.isSource)(t)?t:new cP.Source(t);this._lexer=new lP.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:at.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:at.Kind.DOCUMENT,definitions:this.many(Se.TokenKind.SOF,this.parseDefinition,Se.TokenKind.EOF)})}parseDefinition(){if(this.peek(Se.TokenKind.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Se.TokenKind.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(0,xu.syntaxError)(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(Se.TokenKind.BRACE_L))return this.node(t,{kind:at.Kind.OPERATION_DEFINITION,operation:Fd.OperationTypeNode.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),r;return this.peek(Se.TokenKind.NAME)&&(r=this.parseName()),this.node(t,{kind:at.Kind.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(Se.TokenKind.NAME);switch(t.value){case"query":return Fd.OperationTypeNode.QUERY;case"mutation":return Fd.OperationTypeNode.MUTATION;case"subscription":return Fd.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseVariableDefinition,Se.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:at.Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Se.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Se.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(Se.TokenKind.DOLLAR),this.node(t,{kind:at.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:at.Kind.SELECTION_SET,selections:this.many(Se.TokenKind.BRACE_L,this.parseSelection,Se.TokenKind.BRACE_R)})}parseSelection(){return this.peek(Se.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),r,i;return this.expectOptionalToken(Se.TokenKind.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:at.Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Se.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Se.TokenKind.PAREN_L,n,Se.TokenKind.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:at.Kind.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(Se.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(Se.TokenKind.NAME)?this.node(t,{kind:at.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:at.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:at.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:at.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 Se.TokenKind.BRACKET_L:return this.parseList(t);case Se.TokenKind.BRACE_L:return this.parseObject(t);case Se.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:at.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:at.Kind.FLOAT,value:n.value});case Se.TokenKind.STRING:case Se.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case Se.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:at.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:at.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:at.Kind.NULL});default:return this.node(n,{kind:at.Kind.ENUM,value:n.value})}case Se.TokenKind.DOLLAR:if(t)if(this.expectToken(Se.TokenKind.DOLLAR),this._lexer.token.kind===Se.TokenKind.NAME){let r=this._lexer.token.value;throw(0,xu.syntaxError)(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:at.Kind.STRING,value:t.value,block:t.kind===Se.TokenKind.BLOCK_STRING})}parseList(t){let n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:at.Kind.LIST,values:this.any(Se.TokenKind.BRACKET_L,n,Se.TokenKind.BRACKET_R)})}parseObject(t){let n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:at.Kind.OBJECT,fields:this.any(Se.TokenKind.BRACE_L,n,Se.TokenKind.BRACE_R)})}parseObjectField(t){let n=this._lexer.token,r=this.parseName();return this.expectToken(Se.TokenKind.COLON),this.node(n,{kind:at.Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){let n=[];for(;this.peek(Se.TokenKind.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){let n=this._lexer.token;return this.expectToken(Se.TokenKind.AT),this.node(n,{kind:at.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){let t=this._lexer.token,n;if(this.expectOptionalToken(Se.TokenKind.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(Se.TokenKind.BRACKET_R),n=this.node(t,{kind:at.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:at.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:at.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Se.TokenKind.STRING)||this.peek(Se.TokenKind.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(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);return this.node(t,{kind:at.Kind.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){let t=this._lexer.token,n=this.parseOperationType();this.expectToken(Se.TokenKind.COLON);let r=this.parseNamedType();return this.node(t,{kind:at.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:at.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(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:at.Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Se.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseFieldDefinition,Se.TokenKind.BRACE_R)}parseFieldDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Se.TokenKind.COLON);let a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(t,{kind:at.Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(Se.TokenKind.PAREN_L,this.parseInputValueDef,Se.TokenKind.PAREN_R)}parseInputValueDef(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Se.TokenKind.COLON);let i=this.parseTypeReference(),a;this.expectOptionalToken(Se.TokenKind.EQUALS)&&(a=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:at.Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(t,{kind:at.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(t,{kind:at.Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(Se.TokenKind.EQUALS)?this.delimitedMany(Se.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(t,{kind:at.Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseEnumValueDefinition,Se.TokenKind.BRACE_R)}parseEnumValueDefinition(){let t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:at.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(0,xu.syntaxError)(this._lexer.source,this._lexer.token.start,`${_m(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(t,{kind:at.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(Se.TokenKind.BRACE_L,this.parseInputValueDef,Se.TokenKind.BRACE_R)}parseTypeSystemExtension(){let t=this._lexer.lookahead();if(t.kind===Se.TokenKind.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(Se.TokenKind.BRACE_L,this.parseOperationTypeDefinition,Se.TokenKind.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:at.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:at.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(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}parseInterfaceTypeExtension(){let t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(t,{kind:at.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a})}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:at.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:at.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:at.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(Se.TokenKind.AT);let r=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(t,{kind:at.Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(Se.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(i3.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Fd.Location(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(0,xu.syntaxError)(this._lexer.source,n.start,`Expected ${dP(t)}, found ${_m(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){let n=this._lexer.token;if(n.kind===Se.TokenKind.NAME&&n.value===t)this.advanceLexer();else throw(0,xu.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${_m(n)}.`)}expectOptionalKeyword(t){let n=this._lexer.token;return n.kind===Se.TokenKind.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){let n=t!=null?t:this._lexer.token;return(0,xu.syntaxError)(this._lexer.source,n.start,`Unexpected ${_m(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!==Se.TokenKind.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw(0,xu.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};Jo.Parser=qu;function _m(e){let t=e.value;return dP(e.kind)+(t!=null?` "${t}"`:"")}function dP(e){return(0,lP.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var Ho=w(Ky=>{"use strict";m();T();N();Object.defineProperty(Ky,"__esModule",{value:!0});Ky.didYouMean=l3;var c3=5;function l3(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let a=r.map(l=>`"${l}"`);switch(a.length){case 0:return"";case 1:return i+a[0]+"?";case 2:return i+a[0]+" or "+a[1]+"?"}let o=a.slice(0,c3),c=o.pop();return i+o.join(", ")+", or "+c+"?"}});var pP=w(Gy=>{"use strict";m();T();N();Object.defineProperty(Gy,"__esModule",{value:!0});Gy.identityFunc=d3;function d3(e){return e}});var zo=w($y=>{"use strict";m();T();N();Object.defineProperty($y,"__esModule",{value:!0});$y.keyMap=p3;function p3(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var wd=w(Qy=>{"use strict";m();T();N();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.keyValMap=f3;function f3(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var Jy=w(Yy=>{"use strict";m();T();N();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.mapValue=m3;function m3(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var Ld=w(zy=>{"use strict";m();T();N();Object.defineProperty(zy,"__esModule",{value:!0});zy.naturalCompare=N3;function N3(e,t){let n=0,r=0;for(;n0);let c=0;do++r,c=c*10+a-Hy,a=t.charCodeAt(r);while(vm(a)&&c>0);if(oc)return 1}else{if(ia)return 1;++n,++r}}return e.length-t.length}var Hy=48,T3=57;function vm(e){return!isNaN(e)&&Hy<=e&&e<=T3}});var Wo=w(Xy=>{"use strict";m();T();N();Object.defineProperty(Xy,"__esModule",{value:!0});Xy.suggestionList=h3;var E3=Ld();function h3(e,t){let n=Object.create(null),r=new Wy(e),i=Math.floor(e.length*.4)+1;for(let a of t){let o=r.measure(a,i);o!==void 0&&(n[a]=o)}return Object.keys(n).sort((a,o)=>{let c=n[a]-n[o];return c!==0?c:(0,E3.naturalCompare)(a,o)})}var Wy=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=fP(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=fP(r),a=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let f=0;f<=c;f++)l[0][f]=f;for(let f=1;f<=o;f++){let y=l[(f-1)%3],g=l[f%3],v=g[0]=f;for(let P=1;P<=c;P++){let k=i[f-1]===a[P-1]?0:1,K=Math.min(y[P]+1,g[P-1]+1,y[P-1]+k);if(f>1&&P>1&&i[f-1]===a[P-2]&&i[f-2]===a[P-1]){let G=l[(f-2)%3][P-2];K=Math.min(K,G+1)}Kn)return}let p=l[o%3][c];return p<=n?p:void 0}};function fP(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();N();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.toObjMap=y3;function y3(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 mP=w(eI=>{"use strict";m();T();N();Object.defineProperty(eI,"__esModule",{value:!0});eI.printString=I3;function I3(e){return`"${e.replace(g3,_3)}"`}var g3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function _3(e){return v3[e.charCodeAt(0)]}var v3=["\\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 Vu=w(Xo=>{"use strict";m();T();N();Object.defineProperty(Xo,"__esModule",{value:!0});Xo.BREAK=void 0;Xo.getEnterLeaveForKind=Om;Xo.getVisitFn=A3;Xo.visit=D3;Xo.visitInParallel=b3;var S3=Lr(),O3=Yt(),tI=Sa(),NP=Rt(),Xc=Object.freeze({});Xo.BREAK=Xc;function D3(e,t,n=tI.QueryDocumentKeys){let r=new Map;for(let G of Object.values(NP.Kind))r.set(G,Om(t,G));let i,a=Array.isArray(e),o=[e],c=-1,l=[],p=e,f,y,g=[],v=[];do{c++;let G=c===o.length,Z=G&&l.length!==0;if(G){if(f=v.length===0?void 0:g[g.length-1],p=y,y=v.pop(),Z)if(a){p=p.slice();let Te=0;for(let[fe,we]of l){let Ve=fe-Te;we===null?(p.splice(Ve,1),Te++):p[Ve]=we}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(let[Te,fe]of l)p[Te]=fe}c=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(y){if(f=a?c:o[c],p=y[f],p==null)continue;g.push(f)}let W;if(!Array.isArray(p)){var P,k;(0,tI.isNode)(p)||(0,S3.devAssert)(!1,`Invalid AST Node: ${(0,O3.inspect)(p)}.`);let Te=G?(P=r.get(p.kind))===null||P===void 0?void 0:P.leave:(k=r.get(p.kind))===null||k===void 0?void 0:k.enter;if(W=Te==null?void 0:Te.call(t,p,f,y,g,v),W===Xc)break;if(W===!1){if(!G){g.pop();continue}}else if(W!==void 0&&(l.push([f,W]),!G))if((0,tI.isNode)(W))p=W;else{g.pop();continue}}if(W===void 0&&Z&&l.push([f,p]),G)g.pop();else{var K;i={inArray:a,index:c,keys:o,edits:l,prev:i},a=Array.isArray(p),o=a?p:(K=n[p.kind])!==null&&K!==void 0?K:[],c=-1,l=[],y&&v.push(y),y=p}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function b3(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(NP.Kind)){let i=!1,a=new Array(e.length).fill(void 0),o=new Array(e.length).fill(void 0);for(let l=0;l{"use strict";m();T();N();Object.defineProperty(nI,"__esModule",{value:!0});nI.print=w3;var R3=Sd(),P3=mP(),F3=Vu();function w3(e){return(0,F3.visit)(e,C3)}var L3=80,C3={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qe(e.definitions,` `)},OperationDefinition:{leave(e){let t=Ot("(",qe(e.variableDefinitions,", "),")"),n=qe([e.operation,qe([e.name,t]),qe(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+Ot(" = ",n)+Ot(" ",qe(r," "))},SelectionSet:{leave:({selections:e})=>zi(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=Ot("",e,": ")+t,o=a+Ot("(",qe(n,", "),")");return o.length>L3&&(o=a+Ot(`( `,Dm(qe(n,` @@ -59,15 +59,15 @@ spurious results.`)}}return!1};ym.instanceOf=e3});var gm=w(Pd=>{"use strict";m() `)),` }`)}function Ot(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Dm(e){return Ot(" ",e.replace(/\n/g,` `))}function TP(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}});var aI=w(iI=>{"use strict";m();T();N();Object.defineProperty(iI,"__esModule",{value:!0});iI.valueFromASTUntyped=rI;var B3=wd(),cs=Rt();function rI(e,t){switch(e.kind){case cs.Kind.NULL:return null;case cs.Kind.INT:return parseInt(e.value,10);case cs.Kind.FLOAT:return parseFloat(e.value);case cs.Kind.STRING:case cs.Kind.ENUM:case cs.Kind.BOOLEAN:return e.value;case cs.Kind.LIST:return e.values.map(n=>rI(n,t));case cs.Kind.OBJECT:return(0,B3.keyValMap)(e.fields,n=>n.name.value,n=>rI(n.value,t));case cs.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var Cd=w(Am=>{"use strict";m();T();N();Object.defineProperty(Am,"__esModule",{value:!0});Am.assertEnumValueName=U3;Am.assertName=yP;var EP=Lr(),bm=He(),hP=Nm();function yP(e){if(e!=null||(0,EP.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,EP.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new bm.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();N();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.GraphQLUnionType=Ge.GraphQLScalarType=Ge.GraphQLObjectType=Ge.GraphQLNonNull=Ge.GraphQLList=Ge.GraphQLInterfaceType=Ge.GraphQLInputObjectType=Ge.GraphQLEnumType=void 0;Ge.argsToArgsConfig=wP;Ge.assertAbstractType=nH;Ge.assertCompositeType=tH;Ge.assertEnumType=J3;Ge.assertInputObjectType=H3;Ge.assertInputType=X3;Ge.assertInterfaceType=Q3;Ge.assertLeafType=eH;Ge.assertListType=z3;Ge.assertNamedType=sH;Ge.assertNonNullType=W3;Ge.assertNullableType=iH;Ge.assertObjectType=$3;Ge.assertOutputType=Z3;Ge.assertScalarType=G3;Ge.assertType=K3;Ge.assertUnionType=Y3;Ge.assertWrappingType=rH;Ge.defineArguments=PP;Ge.getNamedType=oH;Ge.getNullableType=aH;Ge.isAbstractType=DP;Ge.isCompositeType=OP;Ge.isEnumType=$u;Ge.isInputObjectType=Ud;Ge.isInputType=sI;Ge.isInterfaceType=Ku;Ge.isLeafType=SP;Ge.isListType=qm;Ge.isNamedType=bP;Ge.isNonNullType=eu;Ge.isNullableType=uI;Ge.isObjectType=el;Ge.isOutputType=oI;Ge.isRequiredArgument=uH;Ge.isRequiredInputField=dH;Ge.isScalarType=ju;Ge.isType=xm;Ge.isUnionType=Gu;Ge.isWrappingType=kd;Ge.resolveObjMapThunk=lI;Ge.resolveReadonlyArrayThunk=cI;var sr=Lr(),k3=Ho(),IP=pP(),un=Yt(),Zo=Rd(),M3=va(),x3=zo(),vP=wd(),Mm=Jy(),q3=Wo(),Oa=Sm(),Bd=He(),V3=Rt(),gP=ci(),j3=aI(),Da=Cd();function xm(e){return ju(e)||el(e)||Ku(e)||Gu(e)||$u(e)||Ud(e)||qm(e)||eu(e)}function K3(e){if(!xm(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL type.`);return e}function ju(e){return(0,Zo.instanceOf)(e,wm)}function G3(e){if(!ju(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Scalar type.`);return e}function el(e){return(0,Zo.instanceOf)(e,Lm)}function $3(e){if(!el(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Object type.`);return e}function Ku(e){return(0,Zo.instanceOf)(e,Cm)}function Q3(e){if(!Ku(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Interface type.`);return e}function Gu(e){return(0,Zo.instanceOf)(e,Bm)}function Y3(e){if(!Gu(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Union type.`);return e}function $u(e){return(0,Zo.instanceOf)(e,Um)}function J3(e){if(!$u(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Enum type.`);return e}function Ud(e){return(0,Zo.instanceOf)(e,km)}function H3(e){if(!Ud(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Input Object type.`);return e}function qm(e){return(0,Zo.instanceOf)(e,Pm)}function z3(e){if(!qm(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL List type.`);return e}function eu(e){return(0,Zo.instanceOf)(e,Fm)}function W3(e){if(!eu(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function sI(e){return ju(e)||$u(e)||Ud(e)||kd(e)&&sI(e.ofType)}function X3(e){if(!sI(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL input type.`);return e}function oI(e){return ju(e)||el(e)||Ku(e)||Gu(e)||$u(e)||kd(e)&&oI(e.ofType)}function Z3(e){if(!oI(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL output type.`);return e}function SP(e){return ju(e)||$u(e)}function eH(e){if(!SP(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL leaf type.`);return e}function OP(e){return el(e)||Ku(e)||Gu(e)}function tH(e){if(!OP(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL composite type.`);return e}function DP(e){return Ku(e)||Gu(e)}function nH(e){if(!DP(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL abstract type.`);return e}var Pm=class{constructor(t){xm(t)||(0,sr.devAssert)(!1,`Expected ${(0,un.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Ge.GraphQLList=Pm;var Fm=class{constructor(t){uI(t)||(0,sr.devAssert)(!1,`Expected ${(0,un.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()}};Ge.GraphQLNonNull=Fm;function kd(e){return qm(e)||eu(e)}function rH(e){if(!kd(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL wrapping type.`);return e}function uI(e){return xm(e)&&!eu(e)}function iH(e){if(!uI(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL nullable type.`);return e}function aH(e){if(e)return eu(e)?e.ofType:e}function bP(e){return ju(e)||el(e)||Ku(e)||Gu(e)||$u(e)||Ud(e)}function sH(e){if(!bP(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL named type.`);return e}function oH(e){if(e){let t=e;for(;kd(t);)t=t.ofType;return t}}function cI(e){return typeof e=="function"?e():e}function lI(e){return typeof e=="function"?e():e}var wm=class{constructor(t){var n,r,i,a;let o=(n=t.parseValue)!==null&&n!==void 0?n:IP.identityFunc;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:IP.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,l)=>o((0,j3.valueFromASTUntyped)(c,l)),this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(a=t.extensionASTNodes)!==null&&a!==void 0?a:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,sr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,un.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,sr.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,sr.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()}};Ge.GraphQLScalarType=wm;var Lm=class{constructor(t){var n;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>RP(t),this._interfaces=()=>AP(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,un.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:FP(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLObjectType=Lm;function AP(e){var t;let n=cI((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,sr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function RP(e){let t=lI(e.fields);return Zc(t)||(0,sr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Mm.mapValue)(t,(n,r)=>{var i;Zc(n)||(0,sr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,sr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,un.inspect)(n.resolve)}.`);let a=(i=n.args)!==null&&i!==void 0?i:{};return Zc(a)||(0,sr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Da.assertName)(r),description:n.description,type:n.type,args:PP(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Oa.toObjMap)(n.extensions),astNode:n.astNode}})}function PP(e){return Object.entries(e).map(([t,n])=>({name:(0,Da.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Oa.toObjMap)(n.extensions),astNode:n.astNode}))}function Zc(e){return(0,M3.isObjectLike)(e)&&!Array.isArray(e)}function FP(e){return(0,Mm.mapValue)(e,t=>({description:t.description,type:t.type,args:wP(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function wP(e){return(0,vP.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 uH(e){return eu(e.type)&&e.defaultValue===void 0}var Cm=class{constructor(t){var n;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=RP.bind(void 0,t),this._interfaces=AP.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,un.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:FP(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLInterfaceType=Cm;var Bm=class{constructor(t){var n;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=cH.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,un.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()}};Ge.GraphQLUnionType=Bm;function cH(e){let t=cI(e.types);return Array.isArray(t)||(0,sr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var Um=class{constructor(t){var n;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:_P(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=_P(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,x3.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new Bd.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,un.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,un.inspect)(t);throw new Bd.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Rm(this,r))}let n=this.getValue(t);if(n==null)throw new Bd.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+Rm(this,t));return n.value}parseLiteral(t,n){if(t.kind!==V3.Kind.ENUM){let i=(0,gP.print)(t);throw new Bd.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Rm(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,gP.print)(t);throw new Bd.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+Rm(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,vP.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()}};Ge.GraphQLEnumType=Um;function Rm(e,t){let n=e.getValues().map(i=>i.name),r=(0,q3.suggestionList)(t,n);return(0,k3.didYouMean)("the enum value",r)}function _P(e,t){return Zc(t)||(0,sr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Zc(r)||(0,sr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,un.inspect)(r)}.`),{name:(0,Da.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Oa.toObjMap)(r.extensions),astNode:r.astNode}))}var km=class{constructor(t){var n,r;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=lH.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,Mm.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,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};Ge.GraphQLInputObjectType=km;function lH(e){let t=lI(e.fields);return Zc(t)||(0,sr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Mm.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,sr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Da.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Oa.toObjMap)(n.extensions),astNode:n.astNode}))}function dH(e){return eu(e.type)&&e.defaultValue===void 0}});var xd=w(Md=>{"use strict";m();T();N();Object.defineProperty(Md,"__esModule",{value:!0});Md.doTypesOverlap=pH;Md.isEqualType=dI;Md.isTypeSubTypeOf=Vm;var Ir=Pt();function dI(e,t){return e===t?!0:(0,Ir.isNonNullType)(e)&&(0,Ir.isNonNullType)(t)||(0,Ir.isListType)(e)&&(0,Ir.isListType)(t)?dI(e.ofType,t.ofType):!1}function Vm(e,t,n){return t===n?!0:(0,Ir.isNonNullType)(n)?(0,Ir.isNonNullType)(t)?Vm(e,t.ofType,n.ofType):!1:(0,Ir.isNonNullType)(t)?Vm(e,t.ofType,n):(0,Ir.isListType)(n)?(0,Ir.isListType)(t)?Vm(e,t.ofType,n.ofType):!1:(0,Ir.isListType)(t)?!1:(0,Ir.isAbstractType)(n)&&((0,Ir.isInterfaceType)(t)||(0,Ir.isObjectType)(t))&&e.isSubType(n,t)}function pH(e,t,n){return t===n?!0:(0,Ir.isAbstractType)(t)?(0,Ir.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,Ir.isAbstractType)(n)?e.isSubType(n,t):!1}});var ba=w(Hn=>{"use strict";m();T();N();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.GraphQLString=Hn.GraphQLInt=Hn.GraphQLID=Hn.GraphQLFloat=Hn.GraphQLBoolean=Hn.GRAPHQL_MIN_INT=Hn.GRAPHQL_MAX_INT=void 0;Hn.isSpecifiedScalarType=fH;Hn.specifiedScalarTypes=void 0;var Wi=Yt(),LP=va(),or=He(),Qu=Rt(),qd=ci(),Vd=Pt(),jm=2147483647;Hn.GRAPHQL_MAX_INT=jm;var Km=-2147483648;Hn.GRAPHQL_MIN_INT=Km;var CP=new Vd.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=jd(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 or.GraphQLError(`Int cannot represent non-integer value: ${(0,Wi.inspect)(t)}`);if(n>jm||njm||ejm||te.name===t)}function jd(e){if((0,LP.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,LP.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Gr=w(xn=>{"use strict";m();T();N();Object.defineProperty(xn,"__esModule",{value:!0});xn.GraphQLSpecifiedByDirective=xn.GraphQLSkipDirective=xn.GraphQLOneOfDirective=xn.GraphQLIncludeDirective=xn.GraphQLDirective=xn.GraphQLDeprecatedDirective=xn.DEFAULT_DEPRECATION_REASON=void 0;xn.assertDirective=yH;xn.isDirective=VP;xn.isSpecifiedDirective=IH;xn.specifiedDirectives=void 0;var qP=Lr(),mH=Yt(),NH=Rd(),TH=va(),EH=Sm(),Oi=Hc(),hH=Cd(),Kd=Pt(),Gm=ba();function VP(e){return(0,NH.instanceOf)(e,ls)}function yH(e){if(!VP(e))throw new Error(`Expected ${(0,mH.inspect)(e)} to be a GraphQL directive.`);return e}var ls=class{constructor(t){var n,r;this.name=(0,hH.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,EH.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,qP.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,TH.isObjectLike)(i)&&!Array.isArray(i)||(0,qP.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,Kd.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Kd.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};xn.GraphQLDirective=ls;var jP=new ls({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Oi.DirectiveLocation.FIELD,Oi.DirectiveLocation.FRAGMENT_SPREAD,Oi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Kd.GraphQLNonNull(Gm.GraphQLBoolean),description:"Included when true."}}});xn.GraphQLIncludeDirective=jP;var KP=new ls({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Oi.DirectiveLocation.FIELD,Oi.DirectiveLocation.FRAGMENT_SPREAD,Oi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Kd.GraphQLNonNull(Gm.GraphQLBoolean),description:"Skipped when true."}}});xn.GraphQLSkipDirective=KP;var GP="No longer supported";xn.DEFAULT_DEPRECATION_REASON=GP;var $P=new ls({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Oi.DirectiveLocation.FIELD_DEFINITION,Oi.DirectiveLocation.ARGUMENT_DEFINITION,Oi.DirectiveLocation.INPUT_FIELD_DEFINITION,Oi.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Gm.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:GP}}});xn.GraphQLDeprecatedDirective=$P;var QP=new ls({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Oi.DirectiveLocation.SCALAR],args:{url:{type:new Kd.GraphQLNonNull(Gm.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});xn.GraphQLSpecifiedByDirective=QP;var YP=new ls({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Oi.DirectiveLocation.INPUT_OBJECT],args:{}});xn.GraphQLOneOfDirective=YP;var JP=Object.freeze([jP,KP,$P,QP,YP]);xn.specifiedDirectives=JP;function IH(e){return JP.some(({name:t})=>t===e.name)}});var $m=w(pI=>{"use strict";m();T();N();Object.defineProperty(pI,"__esModule",{value:!0});pI.isIterableObject=gH;function gH(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var Qd=w(fI=>{"use strict";m();T();N();Object.defineProperty(fI,"__esModule",{value:!0});fI.astFromValue=$d;var HP=Yt(),_H=yr(),vH=$m(),SH=va(),Di=Rt(),Gd=Pt(),OH=ba();function $d(e,t){if((0,Gd.isNonNullType)(t)){let n=$d(e,t.ofType);return(n==null?void 0:n.kind)===Di.Kind.NULL?null:n}if(e===null)return{kind:Di.Kind.NULL};if(e===void 0)return null;if((0,Gd.isListType)(t)){let n=t.ofType;if((0,vH.isIterableObject)(e)){let r=[];for(let i of e){let a=$d(i,n);a!=null&&r.push(a)}return{kind:Di.Kind.LIST,values:r}}return $d(e,n)}if((0,Gd.isInputObjectType)(t)){if(!(0,SH.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=$d(e[r.name],r.type);i&&n.push({kind:Di.Kind.OBJECT_FIELD,name:{kind:Di.Kind.NAME,value:r.name},value:i})}return{kind:Di.Kind.OBJECT,fields:n}}if((0,Gd.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Di.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return zP.test(r)?{kind:Di.Kind.INT,value:r}:{kind:Di.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,Gd.isEnumType)(t)?{kind:Di.Kind.ENUM,value:n}:t===OH.GraphQLID&&zP.test(n)?{kind:Di.Kind.INT,value:n}:{kind:Di.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,HP.inspect)(n)}.`)}(0,_H.invariant)(!1,"Unexpected input type: "+(0,HP.inspect)(t))}var zP=/^-?(?:0|[1-9][0-9]*)$/});var Ai=w(Jt=>{"use strict";m();T();N();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.introspectionTypes=Jt.__TypeKind=Jt.__Type=Jt.__Schema=Jt.__InputValue=Jt.__Field=Jt.__EnumValue=Jt.__DirectiveLocation=Jt.__Directive=Jt.TypeNameMetaFieldDef=Jt.TypeMetaFieldDef=Jt.TypeKind=Jt.SchemaMetaFieldDef=void 0;Jt.isIntrospectionType=LH;var DH=Yt(),bH=yr(),zn=Hc(),AH=ci(),RH=Qd(),ke=Pt(),rn=ba(),mI=new ke.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:rn.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(bi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ke.GraphQLNonNull(bi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:bi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:bi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(NI))),resolve:e=>e.getDirectives()}})});Jt.__Schema=mI;var NI=new ke.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 aI=w(iI=>{"use strict";m();T();N();Object.defineProperty(iI,"__esModule",{value:!0});iI.valueFromASTUntyped=rI;var B3=wd(),cs=Rt();function rI(e,t){switch(e.kind){case cs.Kind.NULL:return null;case cs.Kind.INT:return parseInt(e.value,10);case cs.Kind.FLOAT:return parseFloat(e.value);case cs.Kind.STRING:case cs.Kind.ENUM:case cs.Kind.BOOLEAN:return e.value;case cs.Kind.LIST:return e.values.map(n=>rI(n,t));case cs.Kind.OBJECT:return(0,B3.keyValMap)(e.fields,n=>n.name.value,n=>rI(n.value,t));case cs.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var Cd=w(Am=>{"use strict";m();T();N();Object.defineProperty(Am,"__esModule",{value:!0});Am.assertEnumValueName=U3;Am.assertName=yP;var EP=Lr(),bm=He(),hP=Nm();function yP(e){if(e!=null||(0,EP.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,EP.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new bm.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();N();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.GraphQLUnionType=Ke.GraphQLScalarType=Ke.GraphQLObjectType=Ke.GraphQLNonNull=Ke.GraphQLList=Ke.GraphQLInterfaceType=Ke.GraphQLInputObjectType=Ke.GraphQLEnumType=void 0;Ke.argsToArgsConfig=wP;Ke.assertAbstractType=nH;Ke.assertCompositeType=tH;Ke.assertEnumType=J3;Ke.assertInputObjectType=H3;Ke.assertInputType=X3;Ke.assertInterfaceType=Q3;Ke.assertLeafType=eH;Ke.assertListType=z3;Ke.assertNamedType=sH;Ke.assertNonNullType=W3;Ke.assertNullableType=iH;Ke.assertObjectType=$3;Ke.assertOutputType=Z3;Ke.assertScalarType=G3;Ke.assertType=K3;Ke.assertUnionType=Y3;Ke.assertWrappingType=rH;Ke.defineArguments=PP;Ke.getNamedType=oH;Ke.getNullableType=aH;Ke.isAbstractType=DP;Ke.isCompositeType=OP;Ke.isEnumType=$u;Ke.isInputObjectType=Ud;Ke.isInputType=sI;Ke.isInterfaceType=Ku;Ke.isLeafType=SP;Ke.isListType=qm;Ke.isNamedType=bP;Ke.isNonNullType=eu;Ke.isNullableType=uI;Ke.isObjectType=el;Ke.isOutputType=oI;Ke.isRequiredArgument=uH;Ke.isRequiredInputField=dH;Ke.isScalarType=ju;Ke.isType=xm;Ke.isUnionType=Gu;Ke.isWrappingType=kd;Ke.resolveObjMapThunk=lI;Ke.resolveReadonlyArrayThunk=cI;var sr=Lr(),k3=Ho(),IP=pP(),un=Yt(),Zo=Rd(),M3=va(),x3=zo(),vP=wd(),Mm=Jy(),q3=Wo(),Oa=Sm(),Bd=He(),V3=Rt(),gP=ci(),j3=aI(),Da=Cd();function xm(e){return ju(e)||el(e)||Ku(e)||Gu(e)||$u(e)||Ud(e)||qm(e)||eu(e)}function K3(e){if(!xm(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL type.`);return e}function ju(e){return(0,Zo.instanceOf)(e,wm)}function G3(e){if(!ju(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Scalar type.`);return e}function el(e){return(0,Zo.instanceOf)(e,Lm)}function $3(e){if(!el(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Object type.`);return e}function Ku(e){return(0,Zo.instanceOf)(e,Cm)}function Q3(e){if(!Ku(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Interface type.`);return e}function Gu(e){return(0,Zo.instanceOf)(e,Bm)}function Y3(e){if(!Gu(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Union type.`);return e}function $u(e){return(0,Zo.instanceOf)(e,Um)}function J3(e){if(!$u(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Enum type.`);return e}function Ud(e){return(0,Zo.instanceOf)(e,km)}function H3(e){if(!Ud(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Input Object type.`);return e}function qm(e){return(0,Zo.instanceOf)(e,Pm)}function z3(e){if(!qm(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL List type.`);return e}function eu(e){return(0,Zo.instanceOf)(e,Fm)}function W3(e){if(!eu(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function sI(e){return ju(e)||$u(e)||Ud(e)||kd(e)&&sI(e.ofType)}function X3(e){if(!sI(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL input type.`);return e}function oI(e){return ju(e)||el(e)||Ku(e)||Gu(e)||$u(e)||kd(e)&&oI(e.ofType)}function Z3(e){if(!oI(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL output type.`);return e}function SP(e){return ju(e)||$u(e)}function eH(e){if(!SP(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL leaf type.`);return e}function OP(e){return el(e)||Ku(e)||Gu(e)}function tH(e){if(!OP(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL composite type.`);return e}function DP(e){return Ku(e)||Gu(e)}function nH(e){if(!DP(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL abstract type.`);return e}var Pm=class{constructor(t){xm(t)||(0,sr.devAssert)(!1,`Expected ${(0,un.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Ke.GraphQLList=Pm;var Fm=class{constructor(t){uI(t)||(0,sr.devAssert)(!1,`Expected ${(0,un.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()}};Ke.GraphQLNonNull=Fm;function kd(e){return qm(e)||eu(e)}function rH(e){if(!kd(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL wrapping type.`);return e}function uI(e){return xm(e)&&!eu(e)}function iH(e){if(!uI(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL nullable type.`);return e}function aH(e){if(e)return eu(e)?e.ofType:e}function bP(e){return ju(e)||el(e)||Ku(e)||Gu(e)||$u(e)||Ud(e)}function sH(e){if(!bP(e))throw new Error(`Expected ${(0,un.inspect)(e)} to be a GraphQL named type.`);return e}function oH(e){if(e){let t=e;for(;kd(t);)t=t.ofType;return t}}function cI(e){return typeof e=="function"?e():e}function lI(e){return typeof e=="function"?e():e}var wm=class{constructor(t){var n,r,i,a;let o=(n=t.parseValue)!==null&&n!==void 0?n:IP.identityFunc;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:IP.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,l)=>o((0,j3.valueFromASTUntyped)(c,l)),this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(a=t.extensionASTNodes)!==null&&a!==void 0?a:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||(0,sr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,un.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,sr.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,sr.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()}};Ke.GraphQLScalarType=wm;var Lm=class{constructor(t){var n;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>RP(t),this._interfaces=()=>AP(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,un.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:FP(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ke.GraphQLObjectType=Lm;function AP(e){var t;let n=cI((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,sr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function RP(e){let t=lI(e.fields);return Zc(t)||(0,sr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Mm.mapValue)(t,(n,r)=>{var i;Zc(n)||(0,sr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,sr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,un.inspect)(n.resolve)}.`);let a=(i=n.args)!==null&&i!==void 0?i:{};return Zc(a)||(0,sr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Da.assertName)(r),description:n.description,type:n.type,args:PP(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,Oa.toObjMap)(n.extensions),astNode:n.astNode}})}function PP(e){return Object.entries(e).map(([t,n])=>({name:(0,Da.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Oa.toObjMap)(n.extensions),astNode:n.astNode}))}function Zc(e){return(0,M3.isObjectLike)(e)&&!Array.isArray(e)}function FP(e){return(0,Mm.mapValue)(e,t=>({description:t.description,type:t.type,args:wP(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function wP(e){return(0,vP.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 uH(e){return eu(e.type)&&e.defaultValue===void 0}var Cm=class{constructor(t){var n;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=RP.bind(void 0,t),this._interfaces=AP.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,un.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:FP(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Ke.GraphQLInterfaceType=Cm;var Bm=class{constructor(t){var n;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=cH.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,sr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,un.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()}};Ke.GraphQLUnionType=Bm;function cH(e){let t=cI(e.types);return Array.isArray(t)||(0,sr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var Um=class{constructor(t){var n;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:_P(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=_P(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,x3.keyMap)(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));let n=this._valueLookup.get(t);if(n===void 0)throw new Bd.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,un.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,un.inspect)(t);throw new Bd.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Rm(this,r))}let n=this.getValue(t);if(n==null)throw new Bd.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+Rm(this,t));return n.value}parseLiteral(t,n){if(t.kind!==V3.Kind.ENUM){let i=(0,gP.print)(t);throw new Bd.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Rm(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,gP.print)(t);throw new Bd.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+Rm(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,vP.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()}};Ke.GraphQLEnumType=Um;function Rm(e,t){let n=e.getValues().map(i=>i.name),r=(0,q3.suggestionList)(t,n);return(0,k3.didYouMean)("the enum value",r)}function _P(e,t){return Zc(t)||(0,sr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Zc(r)||(0,sr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,un.inspect)(r)}.`),{name:(0,Da.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,Oa.toObjMap)(r.extensions),astNode:r.astNode}))}var km=class{constructor(t){var n,r;this.name=(0,Da.assertName)(t.name),this.description=t.description,this.extensions=(0,Oa.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=lH.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,Mm.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,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}};Ke.GraphQLInputObjectType=km;function lH(e){let t=lI(e.fields);return Zc(t)||(0,sr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,Mm.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,sr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Da.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,Oa.toObjMap)(n.extensions),astNode:n.astNode}))}function dH(e){return eu(e.type)&&e.defaultValue===void 0}});var xd=w(Md=>{"use strict";m();T();N();Object.defineProperty(Md,"__esModule",{value:!0});Md.doTypesOverlap=pH;Md.isEqualType=dI;Md.isTypeSubTypeOf=Vm;var Ir=Pt();function dI(e,t){return e===t?!0:(0,Ir.isNonNullType)(e)&&(0,Ir.isNonNullType)(t)||(0,Ir.isListType)(e)&&(0,Ir.isListType)(t)?dI(e.ofType,t.ofType):!1}function Vm(e,t,n){return t===n?!0:(0,Ir.isNonNullType)(n)?(0,Ir.isNonNullType)(t)?Vm(e,t.ofType,n.ofType):!1:(0,Ir.isNonNullType)(t)?Vm(e,t.ofType,n):(0,Ir.isListType)(n)?(0,Ir.isListType)(t)?Vm(e,t.ofType,n.ofType):!1:(0,Ir.isListType)(t)?!1:(0,Ir.isAbstractType)(n)&&((0,Ir.isInterfaceType)(t)||(0,Ir.isObjectType)(t))&&e.isSubType(n,t)}function pH(e,t,n){return t===n?!0:(0,Ir.isAbstractType)(t)?(0,Ir.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,Ir.isAbstractType)(n)?e.isSubType(n,t):!1}});var ba=w(Hn=>{"use strict";m();T();N();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.GraphQLString=Hn.GraphQLInt=Hn.GraphQLID=Hn.GraphQLFloat=Hn.GraphQLBoolean=Hn.GRAPHQL_MIN_INT=Hn.GRAPHQL_MAX_INT=void 0;Hn.isSpecifiedScalarType=fH;Hn.specifiedScalarTypes=void 0;var Wi=Yt(),LP=va(),or=He(),Qu=Rt(),qd=ci(),Vd=Pt(),jm=2147483647;Hn.GRAPHQL_MAX_INT=jm;var Km=-2147483648;Hn.GRAPHQL_MIN_INT=Km;var CP=new Vd.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=jd(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 or.GraphQLError(`Int cannot represent non-integer value: ${(0,Wi.inspect)(t)}`);if(n>jm||njm||ejm||te.name===t)}function jd(e){if((0,LP.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,LP.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Gr=w(xn=>{"use strict";m();T();N();Object.defineProperty(xn,"__esModule",{value:!0});xn.GraphQLSpecifiedByDirective=xn.GraphQLSkipDirective=xn.GraphQLOneOfDirective=xn.GraphQLIncludeDirective=xn.GraphQLDirective=xn.GraphQLDeprecatedDirective=xn.DEFAULT_DEPRECATION_REASON=void 0;xn.assertDirective=yH;xn.isDirective=VP;xn.isSpecifiedDirective=IH;xn.specifiedDirectives=void 0;var qP=Lr(),mH=Yt(),NH=Rd(),TH=va(),EH=Sm(),Oi=Hc(),hH=Cd(),Kd=Pt(),Gm=ba();function VP(e){return(0,NH.instanceOf)(e,ls)}function yH(e){if(!VP(e))throw new Error(`Expected ${(0,mH.inspect)(e)} to be a GraphQL directive.`);return e}var ls=class{constructor(t){var n,r;this.name=(0,hH.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,EH.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,qP.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,TH.isObjectLike)(i)&&!Array.isArray(i)||(0,qP.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,Kd.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,Kd.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};xn.GraphQLDirective=ls;var jP=new ls({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Oi.DirectiveLocation.FIELD,Oi.DirectiveLocation.FRAGMENT_SPREAD,Oi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Kd.GraphQLNonNull(Gm.GraphQLBoolean),description:"Included when true."}}});xn.GraphQLIncludeDirective=jP;var KP=new ls({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Oi.DirectiveLocation.FIELD,Oi.DirectiveLocation.FRAGMENT_SPREAD,Oi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Kd.GraphQLNonNull(Gm.GraphQLBoolean),description:"Skipped when true."}}});xn.GraphQLSkipDirective=KP;var GP="No longer supported";xn.DEFAULT_DEPRECATION_REASON=GP;var $P=new ls({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Oi.DirectiveLocation.FIELD_DEFINITION,Oi.DirectiveLocation.ARGUMENT_DEFINITION,Oi.DirectiveLocation.INPUT_FIELD_DEFINITION,Oi.DirectiveLocation.ENUM_VALUE],args:{reason:{type:Gm.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:GP}}});xn.GraphQLDeprecatedDirective=$P;var QP=new ls({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Oi.DirectiveLocation.SCALAR],args:{url:{type:new Kd.GraphQLNonNull(Gm.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});xn.GraphQLSpecifiedByDirective=QP;var YP=new ls({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Oi.DirectiveLocation.INPUT_OBJECT],args:{}});xn.GraphQLOneOfDirective=YP;var JP=Object.freeze([jP,KP,$P,QP,YP]);xn.specifiedDirectives=JP;function IH(e){return JP.some(({name:t})=>t===e.name)}});var $m=w(pI=>{"use strict";m();T();N();Object.defineProperty(pI,"__esModule",{value:!0});pI.isIterableObject=gH;function gH(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var Qd=w(fI=>{"use strict";m();T();N();Object.defineProperty(fI,"__esModule",{value:!0});fI.astFromValue=$d;var HP=Yt(),_H=yr(),vH=$m(),SH=va(),Di=Rt(),Gd=Pt(),OH=ba();function $d(e,t){if((0,Gd.isNonNullType)(t)){let n=$d(e,t.ofType);return(n==null?void 0:n.kind)===Di.Kind.NULL?null:n}if(e===null)return{kind:Di.Kind.NULL};if(e===void 0)return null;if((0,Gd.isListType)(t)){let n=t.ofType;if((0,vH.isIterableObject)(e)){let r=[];for(let i of e){let a=$d(i,n);a!=null&&r.push(a)}return{kind:Di.Kind.LIST,values:r}}return $d(e,n)}if((0,Gd.isInputObjectType)(t)){if(!(0,SH.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=$d(e[r.name],r.type);i&&n.push({kind:Di.Kind.OBJECT_FIELD,name:{kind:Di.Kind.NAME,value:r.name},value:i})}return{kind:Di.Kind.OBJECT,fields:n}}if((0,Gd.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Di.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return zP.test(r)?{kind:Di.Kind.INT,value:r}:{kind:Di.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,Gd.isEnumType)(t)?{kind:Di.Kind.ENUM,value:n}:t===OH.GraphQLID&&zP.test(n)?{kind:Di.Kind.INT,value:n}:{kind:Di.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,HP.inspect)(n)}.`)}(0,_H.invariant)(!1,"Unexpected input type: "+(0,HP.inspect)(t))}var zP=/^-?(?:0|[1-9][0-9]*)$/});var Ai=w(Jt=>{"use strict";m();T();N();Object.defineProperty(Jt,"__esModule",{value:!0});Jt.introspectionTypes=Jt.__TypeKind=Jt.__Type=Jt.__Schema=Jt.__InputValue=Jt.__Field=Jt.__EnumValue=Jt.__DirectiveLocation=Jt.__Directive=Jt.TypeNameMetaFieldDef=Jt.TypeMetaFieldDef=Jt.TypeKind=Jt.SchemaMetaFieldDef=void 0;Jt.isIntrospectionType=LH;var DH=Yt(),bH=yr(),zn=Hc(),AH=ci(),RH=Qd(),ke=Pt(),rn=ba(),mI=new ke.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:rn.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(bi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ke.GraphQLNonNull(bi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:bi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:bi,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(NI))),resolve:e=>e.getDirectives()}})});Jt.__Schema=mI;var NI=new ke.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 ke.GraphQLNonNull(rn.GraphQLString),resolve:e=>e.name},description:{type:rn.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new ke.GraphQLNonNull(rn.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(TI))),resolve:e=>e.locations},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(Yd))),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Jt.__Directive=NI;var TI=new ke.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:zn.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:zn.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:zn.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:zn.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:zn.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:zn.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:zn.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:zn.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:zn.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:zn.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:zn.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:zn.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:zn.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:zn.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:zn.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:zn.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:zn.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:zn.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:zn.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Jt.__DirectiveLocation=TI;var bi=new ke.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 ke.GraphQLNonNull(yI),resolve(e){if((0,ke.isScalarType)(e))return Wn.SCALAR;if((0,ke.isObjectType)(e))return Wn.OBJECT;if((0,ke.isInterfaceType)(e))return Wn.INTERFACE;if((0,ke.isUnionType)(e))return Wn.UNION;if((0,ke.isEnumType)(e))return Wn.ENUM;if((0,ke.isInputObjectType)(e))return Wn.INPUT_OBJECT;if((0,ke.isListType)(e))return Wn.LIST;if((0,ke.isNonNullType)(e))return Wn.NON_NULL;(0,bH.invariant)(!1,`Unexpected type: "${(0,DH.inspect)(e)}".`)}},name:{type:rn.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:rn.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:rn.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(EI)),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new ke.GraphQLList(new ke.GraphQLNonNull(bi)),resolve(e){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new ke.GraphQLList(new ke.GraphQLNonNull(bi)),resolve(e,t,n,{schema:r}){if((0,ke.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new ke.GraphQLList(new ke.GraphQLNonNull(hI)),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(Yd)),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,ke.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:bi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:rn.GraphQLBoolean,resolve:e=>{if((0,ke.isInputObjectType)(e))return e.isOneOf}}})});Jt.__Type=bi;var EI=new ke.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 ke.GraphQLNonNull(rn.GraphQLString),resolve:e=>e.name},description:{type:rn.GraphQLString,resolve:e=>e.description},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(Yd))),args:{includeDeprecated:{type:rn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ke.GraphQLNonNull(bi),resolve:e=>e.type},isDeprecated:{type:new ke.GraphQLNonNull(rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:rn.GraphQLString,resolve:e=>e.deprecationReason}})});Jt.__Field=EI;var Yd=new ke.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 ke.GraphQLNonNull(rn.GraphQLString),resolve:e=>e.name},description:{type:rn.GraphQLString,resolve:e=>e.description},type:{type:new ke.GraphQLNonNull(bi),resolve:e=>e.type},defaultValue:{type:rn.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,RH.astFromValue)(n,t);return r?(0,AH.print)(r):null}},isDeprecated:{type:new ke.GraphQLNonNull(rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:rn.GraphQLString,resolve:e=>e.deprecationReason}})});Jt.__InputValue=Yd;var hI=new ke.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 ke.GraphQLNonNull(rn.GraphQLString),resolve:e=>e.name},description:{type:rn.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new ke.GraphQLNonNull(rn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:rn.GraphQLString,resolve:e=>e.deprecationReason}})});Jt.__EnumValue=hI;var Wn;Jt.TypeKind=Wn;(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"})(Wn||(Jt.TypeKind=Wn={}));var yI=new ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Wn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Wn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Wn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Wn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Wn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Wn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Wn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Wn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Jt.__TypeKind=yI;var PH={name:"__schema",type:new ke.GraphQLNonNull(mI),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};Jt.SchemaMetaFieldDef=PH;var FH={name:"__type",type:bi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ke.GraphQLNonNull(rn.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};Jt.TypeMetaFieldDef=FH;var wH={name:"__typename",type:new ke.GraphQLNonNull(rn.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};Jt.TypeNameMetaFieldDef=wH;var WP=Object.freeze([mI,NI,TI,bi,EI,Yd,hI,yI]);Jt.introspectionTypes=WP;function LH(e){return WP.some(({name:t})=>e.name===t)}});var Yu=w(tl=>{"use strict";m();T();N();Object.defineProperty(tl,"__esModule",{value:!0});tl.GraphQLSchema=void 0;tl.assertSchema=MH;tl.isSchema=ZP;var Qm=Lr(),gI=Yt(),CH=Rd(),BH=va(),UH=Sm(),II=Sa(),Xi=Pt(),XP=Gr(),kH=Ai();function ZP(e){return(0,CH.instanceOf)(e,Ym)}function MH(e){if(!ZP(e))throw new Error(`Expected ${(0,gI.inspect)(e)} to be a GraphQL schema.`);return e}var Ym=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,BH.isObjectLike)(t)||(0,Qm.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,Qm.devAssert)(!1,`"types" must be Array if provided but got: ${(0,gI.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,Qm.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,gI.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,UH.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:XP.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),Zi(a,i);this._queryType!=null&&Zi(this._queryType,i),this._mutationType!=null&&Zi(this._mutationType,i),this._subscriptionType!=null&&Zi(this._subscriptionType,i);for(let a of this._directives)if((0,XP.isDirective)(a))for(let o of a.args)Zi(o.type,i);Zi(kH.__Schema,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(let a of i){if(a==null)continue;let o=a.name;if(o||(0,Qm.devAssert)(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[o]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${o}".`);if(this._typeMap[o]=a,(0,Xi.isInterfaceType)(a)){for(let c of a.getInterfaces())if((0,Xi.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.interfaces.push(a)}}else if((0,Xi.isObjectType)(a)){for(let c of a.getInterfaces())if((0,Xi.isInterfaceType)(c)){let l=this._implementationsMap[c.name];l===void 0&&(l=this._implementationsMap[c.name]={objects:[],interfaces:[]}),l.objects.push(a)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case II.OperationTypeNode.QUERY:return this.getQueryType();case II.OperationTypeNode.MUTATION:return this.getMutationType();case II.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,Xi.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,Xi.isUnionType)(t))for(let i of t.getTypes())r[i.name]=!0;else{let i=this.getImplementations(t);for(let a of i.objects)r[a.name]=!0;for(let a of i.interfaces)r[a.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}}};tl.GraphQLSchema=Ym;function Zi(e,t){let n=(0,Xi.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,Xi.isUnionType)(n))for(let r of n.getTypes())Zi(r,t);else if((0,Xi.isObjectType)(n)||(0,Xi.isInterfaceType)(n)){for(let r of n.getInterfaces())Zi(r,t);for(let r of Object.values(n.getFields())){Zi(r.type,t);for(let i of r.args)Zi(i.type,t)}}else if((0,Xi.isInputObjectType)(n))for(let r of Object.values(n.getFields()))Zi(r.type,t)}return t}});var Hd=w(Jm=>{"use strict";m();T();N();Object.defineProperty(Jm,"__esModule",{value:!0});Jm.assertValidSchema=jH;Jm.validateSchema=aF;var gr=Yt(),xH=He(),_I=Sa(),eF=xd(),Rn=Pt(),iF=Gr(),qH=Ai(),VH=Yu();function aF(e){if((0,VH.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new SI(e);KH(t),GH(t),$H(t);let n=t.getErrors();return e.__validationErrors=n,n}function jH(e){let t=aF(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}var SI=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new xH.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function KH(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Rn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,gr.inspect)(n)}.`,(r=vI(t,_I.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Rn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,gr.inspect)(i)}.`,(a=vI(t,_I.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Rn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,gr.inspect)(o)}.`,(c=vI(t,_I.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function vI(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 GH(e){for(let n of e.schema.getDirectives()){if(!(0,iF.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,gr.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Ju(e,n);for(let r of n.args)if(Ju(e,r),(0,Rn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,gr.inspect)(r.type)}.`,r.astNode),(0,Rn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[OI(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Ju(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function $H(e){let t=XH(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Rn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,gr.inspect)(r)}.`,r.astNode);continue}(0,qH.isIntrospectionType)(r)||Ju(e,r),(0,Rn.isObjectType)(r)||(0,Rn.isInterfaceType)(r)?(tF(e,r),nF(e,r)):(0,Rn.isUnionType)(r)?JH(e,r):(0,Rn.isEnumType)(r)?HH(e,r):(0,Rn.isInputObjectType)(r)&&(zH(e,r),t(r))}}function tF(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 o of n){if(Ju(e,o),!(0,Rn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,gr.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let c of o.args){let l=c.name;if(Ju(e,c),!(0,Rn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,gr.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Rn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[OI(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function nF(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Rn.isInterfaceType)(r)){e.reportError(`Type ${(0,gr.inspect)(t)} must only implement Interface types, it cannot implement ${(0,gr.inspect)(r)}.`,Jd(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Jd(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Jd(t,r));continue}n[r.name]=!0,YH(e,t,r),QH(e,t,r)}}function QH(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let p=l.name,f=r[p];if(!f){e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,eF.isTypeSubTypeOf)(e.schema,f.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${p} expects type ${(0,gr.inspect)(l.type)} but ${t.name}.${p} is type ${(0,gr.inspect)(f.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=f.astNode)===null||a===void 0?void 0:a.type])}for(let y of l.args){let g=y.name,v=f.args.find(P=>P.name===g);if(!v){e.reportError(`Interface field argument ${n.name}.${p}(${g}:) expected but ${t.name}.${p} does not provide it.`,[y.astNode,f.astNode]);continue}if(!(0,eF.isEqualType)(y.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${p}(${g}:) expects type ${(0,gr.inspect)(y.type)} but ${t.name}.${p}(${g}:) is type ${(0,gr.inspect)(v.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(c=v.astNode)===null||c===void 0?void 0:c.type])}}for(let y of f.args){let g=y.name;!l.args.find(P=>P.name===g)&&(0,Rn.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${g} that is missing from the Interface field ${n.name}.${p}.`,[y.astNode,l.astNode])}}}function YH(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}.`,[...Jd(n,i),...Jd(t,n)])}function JH(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.`,rF(t,i.name));continue}r[i.name]=!0,(0,Rn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,gr.inspect)(i)}.`,rF(t,String(i)))}}function HH(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)Ju(e,r)}function zH(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 a of n){if(Ju(e,a),!(0,Rn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,gr.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Rn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[OI(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&WH(t,a,e)}}function WH(e,t,n){if((0,Rn.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function XH(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let c of o)if((0,Rn.isNonNullType)(c.type)&&(0,Rn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,p=r[l.name];if(n.push(c),p===void 0)i(l);else{let f=n.slice(p),y=f.map(g=>g.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,f.map(g=>g.astNode))}n.pop()}r[a.name]=void 0}}function Jd(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function rF(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function OI(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===iF.GraphQLDeprecatedDirective.name)}});var Aa=w(AI=>{"use strict";m();T();N();Object.defineProperty(AI,"__esModule",{value:!0});AI.typeFromAST=bI;var DI=Rt(),sF=Pt();function bI(e,t){switch(t.kind){case DI.Kind.LIST_TYPE:{let n=bI(e,t.type);return n&&new sF.GraphQLList(n)}case DI.Kind.NON_NULL_TYPE:{let n=bI(e,t.type);return n&&new sF.GraphQLNonNull(n)}case DI.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var Hm=w(zd=>{"use strict";m();T();N();Object.defineProperty(zd,"__esModule",{value:!0});zd.TypeInfo=void 0;zd.visitWithTypeInfo=t6;var ZH=Sa(),Pn=Rt(),oF=Vu(),Fn=Pt(),nl=Ai(),uF=Aa(),RI=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:e6,n&&((0,Fn.isInputType)(n)&&this._inputTypeStack.push(n),(0,Fn.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,Fn.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 Pn.Kind.SELECTION_SET:{let i=(0,Fn.getNamedType)(this.getType());this._parentTypeStack.push((0,Fn.isCompositeType)(i)?i:void 0);break}case Pn.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(n,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Fn.isOutputType)(o)?o:void 0);break}case Pn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Pn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,Fn.isObjectType)(i)?i:void 0);break}case Pn.Kind.INLINE_FRAGMENT:case Pn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,uF.typeFromAST)(n,i):(0,Fn.getNamedType)(this.getType());this._typeStack.push((0,Fn.isOutputType)(a)?a:void 0);break}case Pn.Kind.VARIABLE_DEFINITION:{let i=(0,uF.typeFromAST)(n,t.type);this._inputTypeStack.push((0,Fn.isInputType)(i)?i:void 0);break}case Pn.Kind.ARGUMENT:{var r;let i,a,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(c=>c.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.LIST:{let i=(0,Fn.getNullableType)(this.getInputType()),a=(0,Fn.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.OBJECT_FIELD:{let i=(0,Fn.getNamedType)(this.getInputType()),a,o;(0,Fn.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.ENUM:{let i=(0,Fn.getNamedType)(this.getInputType()),a;(0,Fn.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Pn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Pn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Pn.Kind.DIRECTIVE:this._directive=null;break;case Pn.Kind.OPERATION_DEFINITION:case Pn.Kind.INLINE_FRAGMENT:case Pn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Pn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Pn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pn.Kind.LIST:case Pn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pn.Kind.ENUM:this._enumValue=null;break;default:}}};zd.TypeInfo=RI;function e6(e,t,n){let r=n.name.value;if(r===nl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return nl.SchemaMetaFieldDef;if(r===nl.TypeMetaFieldDef.name&&e.getQueryType()===t)return nl.TypeMetaFieldDef;if(r===nl.TypeNameMetaFieldDef.name&&(0,Fn.isCompositeType)(t))return nl.TypeNameMetaFieldDef;if((0,Fn.isObjectType)(t)||(0,Fn.isInterfaceType)(t))return t.getFields()[r]}function t6(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,oF.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,ZH.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,oF.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var Hu=w(Ri=>{"use strict";m();T();N();Object.defineProperty(Ri,"__esModule",{value:!0});Ri.isConstValueNode=PI;Ri.isDefinitionNode=n6;Ri.isExecutableDefinitionNode=cF;Ri.isSelectionNode=r6;Ri.isTypeDefinitionNode=pF;Ri.isTypeExtensionNode=mF;Ri.isTypeNode=i6;Ri.isTypeSystemDefinitionNode=dF;Ri.isTypeSystemExtensionNode=fF;Ri.isValueNode=lF;var Ft=Rt();function n6(e){return cF(e)||dF(e)||fF(e)}function cF(e){return e.kind===Ft.Kind.OPERATION_DEFINITION||e.kind===Ft.Kind.FRAGMENT_DEFINITION}function r6(e){return e.kind===Ft.Kind.FIELD||e.kind===Ft.Kind.FRAGMENT_SPREAD||e.kind===Ft.Kind.INLINE_FRAGMENT}function lF(e){return e.kind===Ft.Kind.VARIABLE||e.kind===Ft.Kind.INT||e.kind===Ft.Kind.FLOAT||e.kind===Ft.Kind.STRING||e.kind===Ft.Kind.BOOLEAN||e.kind===Ft.Kind.NULL||e.kind===Ft.Kind.ENUM||e.kind===Ft.Kind.LIST||e.kind===Ft.Kind.OBJECT}function PI(e){return lF(e)&&(e.kind===Ft.Kind.LIST?e.values.some(PI):e.kind===Ft.Kind.OBJECT?e.fields.some(t=>PI(t.value)):e.kind!==Ft.Kind.VARIABLE)}function i6(e){return e.kind===Ft.Kind.NAMED_TYPE||e.kind===Ft.Kind.LIST_TYPE||e.kind===Ft.Kind.NON_NULL_TYPE}function dF(e){return e.kind===Ft.Kind.SCHEMA_DEFINITION||pF(e)||e.kind===Ft.Kind.DIRECTIVE_DEFINITION}function pF(e){return e.kind===Ft.Kind.SCALAR_TYPE_DEFINITION||e.kind===Ft.Kind.OBJECT_TYPE_DEFINITION||e.kind===Ft.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Ft.Kind.UNION_TYPE_DEFINITION||e.kind===Ft.Kind.ENUM_TYPE_DEFINITION||e.kind===Ft.Kind.INPUT_OBJECT_TYPE_DEFINITION}function fF(e){return e.kind===Ft.Kind.SCHEMA_EXTENSION||mF(e)}function mF(e){return e.kind===Ft.Kind.SCALAR_TYPE_EXTENSION||e.kind===Ft.Kind.OBJECT_TYPE_EXTENSION||e.kind===Ft.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Ft.Kind.UNION_TYPE_EXTENSION||e.kind===Ft.Kind.ENUM_TYPE_EXTENSION||e.kind===Ft.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var wI=w(FI=>{"use strict";m();T();N();Object.defineProperty(FI,"__esModule",{value:!0});FI.ExecutableDefinitionsRule=o6;var a6=He(),NF=Rt(),s6=Hu();function o6(e){return{Document(t){for(let n of t.definitions)if(!(0,s6.isExecutableDefinitionNode)(n)){let r=n.kind===NF.Kind.SCHEMA_DEFINITION||n.kind===NF.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new a6.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var CI=w(LI=>{"use strict";m();T();N();Object.defineProperty(LI,"__esModule",{value:!0});LI.FieldsOnCorrectTypeRule=d6;var TF=Ho(),u6=Ld(),c6=Wo(),l6=He(),Wd=Pt();function d6(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,TF.didYouMean)("to use an inline fragment on",p6(i,n,a));o===""&&(o=(0,TF.didYouMean)(f6(n,a))),e.reportError(new l6.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function p6(e,t,n){if(!(0,Wd.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let c of o.getInterfaces()){var a;c.getFields()[n]&&(r.add(c),i[c.name]=((a=i[c.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,c)=>{let l=i[c.name]-i[o.name];return l!==0?l:(0,Wd.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,Wd.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,u6.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function f6(e,t){if((0,Wd.isObjectType)(e)||(0,Wd.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,c6.suggestionList)(t,n)}return[]}});var UI=w(BI=>{"use strict";m();T();N();Object.defineProperty(BI,"__esModule",{value:!0});BI.FragmentsOnCompositeTypesRule=m6;var EF=He(),hF=ci(),yF=Pt(),IF=Aa();function m6(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,IF.typeFromAST)(e.getSchema(),n);if(r&&!(0,yF.isCompositeType)(r)){let i=(0,hF.print)(n);e.reportError(new EF.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,IF.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,yF.isCompositeType)(n)){let r=(0,hF.print)(t.typeCondition);e.reportError(new EF.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var kI=w(zm=>{"use strict";m();T();N();Object.defineProperty(zm,"__esModule",{value:!0});zm.KnownArgumentNamesOnDirectivesRule=SF;zm.KnownArgumentNamesRule=E6;var gF=Ho(),_F=Wo(),vF=He(),N6=Rt(),T6=Gr();function E6(e){return Y(x({},SF(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let a=t.name.value,o=r.args.map(l=>l.name),c=(0,_F.suggestionList)(a,o);e.reportError(new vF.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,gF.didYouMean)(c),{nodes:t}))}}})}function SF(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():T6.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(c=>c.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===N6.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=c.map(l=>l.name.value)}return{Directive(o){let c=o.name.value,l=t[c];if(o.arguments&&l)for(let p of o.arguments){let f=p.name.value;if(!l.includes(f)){let y=(0,_F.suggestionList)(f,l);e.reportError(new vF.GraphQLError(`Unknown argument "${f}" on directive "@${c}".`+(0,gF.didYouMean)(y),{nodes:p}))}}return!1}}}});var VI=w(qI=>{"use strict";m();T();N();Object.defineProperty(qI,"__esModule",{value:!0});qI.KnownDirectivesRule=I6;var h6=Yt(),MI=yr(),OF=He(),xI=Sa(),Xn=Hc(),En=Rt(),y6=Gr();function I6(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():y6.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===En.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,p){let f=a.name.value,y=t[f];if(!y){e.reportError(new OF.GraphQLError(`Unknown directive "@${f}".`,{nodes:a}));return}let g=g6(p);g&&!y.includes(g)&&e.reportError(new OF.GraphQLError(`Directive "@${f}" may not be used on ${g}.`,{nodes:a}))}}}function g6(e){let t=e[e.length-1];switch("kind"in t||(0,MI.invariant)(!1),t.kind){case En.Kind.OPERATION_DEFINITION:return _6(t.operation);case En.Kind.FIELD:return Xn.DirectiveLocation.FIELD;case En.Kind.FRAGMENT_SPREAD:return Xn.DirectiveLocation.FRAGMENT_SPREAD;case En.Kind.INLINE_FRAGMENT:return Xn.DirectiveLocation.INLINE_FRAGMENT;case En.Kind.FRAGMENT_DEFINITION:return Xn.DirectiveLocation.FRAGMENT_DEFINITION;case En.Kind.VARIABLE_DEFINITION:return Xn.DirectiveLocation.VARIABLE_DEFINITION;case En.Kind.SCHEMA_DEFINITION:case En.Kind.SCHEMA_EXTENSION:return Xn.DirectiveLocation.SCHEMA;case En.Kind.SCALAR_TYPE_DEFINITION:case En.Kind.SCALAR_TYPE_EXTENSION:return Xn.DirectiveLocation.SCALAR;case En.Kind.OBJECT_TYPE_DEFINITION:case En.Kind.OBJECT_TYPE_EXTENSION:return Xn.DirectiveLocation.OBJECT;case En.Kind.FIELD_DEFINITION:return Xn.DirectiveLocation.FIELD_DEFINITION;case En.Kind.INTERFACE_TYPE_DEFINITION:case En.Kind.INTERFACE_TYPE_EXTENSION:return Xn.DirectiveLocation.INTERFACE;case En.Kind.UNION_TYPE_DEFINITION:case En.Kind.UNION_TYPE_EXTENSION:return Xn.DirectiveLocation.UNION;case En.Kind.ENUM_TYPE_DEFINITION:case En.Kind.ENUM_TYPE_EXTENSION:return Xn.DirectiveLocation.ENUM;case En.Kind.ENUM_VALUE_DEFINITION:return Xn.DirectiveLocation.ENUM_VALUE;case En.Kind.INPUT_OBJECT_TYPE_DEFINITION:case En.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Xn.DirectiveLocation.INPUT_OBJECT;case En.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,MI.invariant)(!1),n.kind===En.Kind.INPUT_OBJECT_TYPE_DEFINITION?Xn.DirectiveLocation.INPUT_FIELD_DEFINITION:Xn.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,MI.invariant)(!1,"Unexpected kind: "+(0,h6.inspect)(t.kind))}}function _6(e){switch(e){case xI.OperationTypeNode.QUERY:return Xn.DirectiveLocation.QUERY;case xI.OperationTypeNode.MUTATION:return Xn.DirectiveLocation.MUTATION;case xI.OperationTypeNode.SUBSCRIPTION:return Xn.DirectiveLocation.SUBSCRIPTION}}});var KI=w(jI=>{"use strict";m();T();N();Object.defineProperty(jI,"__esModule",{value:!0});jI.KnownFragmentNamesRule=S6;var v6=He();function S6(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new v6.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var QI=w($I=>{"use strict";m();T();N();Object.defineProperty($I,"__esModule",{value:!0});$I.KnownTypeNamesRule=P6;var O6=Ho(),D6=Wo(),b6=He(),GI=Hu(),A6=Ai(),R6=ba();function P6(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,GI.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,p){let f=a.name.value;if(!n[f]&&!r[f]){var y;let g=(y=p[2])!==null&&y!==void 0?y:c,v=g!=null&&F6(g);if(v&&DF.includes(f))return;let P=(0,D6.suggestionList)(f,v?DF.concat(i):i);e.reportError(new b6.GraphQLError(`Unknown type "${f}".`+(0,O6.didYouMean)(P),{nodes:a}))}}}}var DF=[...R6.specifiedScalarTypes,...A6.introspectionTypes].map(e=>e.name);function F6(e){return"kind"in e&&((0,GI.isTypeSystemDefinitionNode)(e)||(0,GI.isTypeSystemExtensionNode)(e))}});var JI=w(YI=>{"use strict";m();T();N();Object.defineProperty(YI,"__esModule",{value:!0});YI.LoneAnonymousOperationRule=C6;var w6=He(),L6=Rt();function C6(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===L6.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new w6.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var zI=w(HI=>{"use strict";m();T();N();Object.defineProperty(HI,"__esModule",{value:!0});HI.LoneSchemaDefinitionRule=B6;var bF=He();function B6(e){var t,n,r;let i=e.getSchema(),a=(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(),o=0;return{SchemaDefinition(c){if(a){e.reportError(new bF.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new bF.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var XI=w(WI=>{"use strict";m();T();N();Object.defineProperty(WI,"__esModule",{value:!0});WI.MaxIntrospectionDepthRule=M6;var U6=He(),AF=Rt(),k6=3;function M6(e){function t(n,r=Object.create(null),i=0){if(n.kind===AF.Kind.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===AF.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=k6))return!0;if("selectionSet"in n&&n.selectionSet){for(let a of n.selectionSet.selections)if(t(a,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new U6.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var eg=w(ZI=>{"use strict";m();T();N();Object.defineProperty(ZI,"__esModule",{value:!0});ZI.NoFragmentCyclesRule=q6;var x6=He();function q6(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let c=e.getFragmentSpreads(a.selectionSet);if(c.length!==0){r[o]=n.length;for(let l of c){let p=l.name.value,f=r[p];if(n.push(l),f===void 0){let y=e.getFragment(p);y&&i(y)}else{let y=n.slice(f),g=y.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new x6.GraphQLError(`Cannot spread fragment "${p}" within itself`+(g!==""?` via ${g}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var ng=w(tg=>{"use strict";m();T();N();Object.defineProperty(tg,"__esModule",{value:!0});tg.NoUndefinedVariablesRule=j6;var V6=He();function j6(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 a=i.name.value;t[a]!==!0&&e.reportError(new V6.GraphQLError(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var ig=w(rg=>{"use strict";m();T();N();Object.defineProperty(rg,"__esModule",{value:!0});rg.NoUnusedFragmentsRule=G6;var K6=He();function G6(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 a of e.getRecursivelyReferencedFragments(i))r[a.name.value]=!0;for(let i of n){let a=i.name.value;r[a]!==!0&&e.reportError(new K6.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var sg=w(ag=>{"use strict";m();T();N();Object.defineProperty(ag,"__esModule",{value:!0});ag.NoUnusedVariablesRule=Q6;var $6=He();function Q6(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:a}of i)r[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;r[o]!==!0&&e.reportError(new $6.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(n){t.push(n)}}}});var cg=w(ug=>{"use strict";m();T();N();Object.defineProperty(ug,"__esModule",{value:!0});ug.sortValueNode=og;var Y6=Ld(),ds=Rt();function og(e){switch(e.kind){case ds.Kind.OBJECT:return Y(x({},e),{fields:J6(e.fields)});case ds.Kind.LIST:return Y(x({},e),{values:e.values.map(og)});case ds.Kind.INT:case ds.Kind.FLOAT:case ds.Kind.STRING:case ds.Kind.BOOLEAN:case ds.Kind.NULL:case ds.Kind.ENUM:case ds.Kind.VARIABLE:return e}}function J6(e){return e.map(t=>Y(x({},t),{value:og(t.value)})).sort((t,n)=>(0,Y6.naturalCompare)(t.name.value,n.name.value))}});var Tg=w(Ng=>{"use strict";m();T();N();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.OverlappingFieldsCanBeMergedRule=X6;var RF=Yt(),H6=He(),lg=Rt(),z6=ci(),$r=Pt(),W6=cg(),FF=Aa();function wF(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+wF(n)).join(" and "):e}function X6(e){let t=new fg,n=new Map;return{SelectionSet(r){let i=Z6(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let p=wF(o);e.reportError(new H6.GraphQLError(`Fields "${a}" conflict because ${p}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function Z6(e,t,n,r,i){let a=[],[o,c]=Zm(e,t,r,i);if(tz(e,a,t,n,o),c.length!==0)for(let l=0;l1)for(let c=0;c[a.value,o]));return n.every(a=>{let o=a.value,c=i.get(a.name.value);return c===void 0?!1:PF(o)===PF(c)})}function PF(e){return(0,z6.print)((0,W6.sortValueNode)(e))}function dg(e,t){return(0,$r.isListType)(e)?(0,$r.isListType)(t)?dg(e.ofType,t.ofType):!0:(0,$r.isListType)(t)?!0:(0,$r.isNonNullType)(e)?(0,$r.isNonNullType)(t)?dg(e.ofType,t.ofType):!0:(0,$r.isNonNullType)(t)?!0:(0,$r.isLeafType)(e)||(0,$r.isLeafType)(t)?e!==t:!1}function Zm(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);CF(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function pg(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,FF.typeFromAST)(e.getSchema(),n.typeCondition);return Zm(e,t,i,n.selectionSet)}function CF(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case lg.Kind.FIELD:{let o=a.name.value,c;((0,$r.isObjectType)(t)||(0,$r.isInterfaceType)(t))&&(c=t.getFields()[o]);let l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,a,c]);break}case lg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case lg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,FF.typeFromAST)(e.getSchema(),o):t;CF(e,c,a.selectionSet,r,i);break}}}function rz(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 fg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(hg,"__esModule",{value:!0});hg.PossibleFragmentSpreadsRule=az;var eN=Yt(),BF=He(),Eg=Pt(),UF=xd(),iz=Aa();function az(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,Eg.isCompositeType)(n)&&(0,Eg.isCompositeType)(r)&&!(0,UF.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,eN.inspect)(r),a=(0,eN.inspect)(n);e.reportError(new BF.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=sz(e,n),i=e.getParentType();if(r&&i&&!(0,UF.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,eN.inspect)(i),o=(0,eN.inspect)(r);e.reportError(new BF.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function sz(e,t){let n=e.getFragment(t);if(n){let r=(0,iz.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Eg.isCompositeType)(r))return r}}});var gg=w(Ig=>{"use strict";m();T();N();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.PossibleTypeExtensionsRule=lz;var oz=Ho(),MF=Yt(),xF=yr(),uz=Wo(),kF=He(),In=Rt(),cz=Hu(),rl=Pt();function lz(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,cz.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let a=i.name.value,o=n[a],c=t==null?void 0:t.getType(a),l;if(o?l=dz[o.kind]:c&&(l=pz(c)),l){if(l!==i.kind){let p=fz(i.kind);e.reportError(new kF.GraphQLError(`Cannot extend non-${p} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let p=Object.keys(x(x({},n),t==null?void 0:t.getTypeMap())),f=(0,uz.suggestionList)(a,p);e.reportError(new kF.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,oz.didYouMean)(f),{nodes:i.name}))}}}var dz={[In.Kind.SCALAR_TYPE_DEFINITION]:In.Kind.SCALAR_TYPE_EXTENSION,[In.Kind.OBJECT_TYPE_DEFINITION]:In.Kind.OBJECT_TYPE_EXTENSION,[In.Kind.INTERFACE_TYPE_DEFINITION]:In.Kind.INTERFACE_TYPE_EXTENSION,[In.Kind.UNION_TYPE_DEFINITION]:In.Kind.UNION_TYPE_EXTENSION,[In.Kind.ENUM_TYPE_DEFINITION]:In.Kind.ENUM_TYPE_EXTENSION,[In.Kind.INPUT_OBJECT_TYPE_DEFINITION]:In.Kind.INPUT_OBJECT_TYPE_EXTENSION};function pz(e){if((0,rl.isScalarType)(e))return In.Kind.SCALAR_TYPE_EXTENSION;if((0,rl.isObjectType)(e))return In.Kind.OBJECT_TYPE_EXTENSION;if((0,rl.isInterfaceType)(e))return In.Kind.INTERFACE_TYPE_EXTENSION;if((0,rl.isUnionType)(e))return In.Kind.UNION_TYPE_EXTENSION;if((0,rl.isEnumType)(e))return In.Kind.ENUM_TYPE_EXTENSION;if((0,rl.isInputObjectType)(e))return In.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,xF.invariant)(!1,"Unexpected type: "+(0,MF.inspect)(e))}function fz(e){switch(e){case In.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case In.Kind.OBJECT_TYPE_EXTENSION:return"object";case In.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case In.Kind.UNION_TYPE_EXTENSION:return"union";case In.Kind.ENUM_TYPE_EXTENSION:return"enum";case In.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,xF.invariant)(!1,"Unexpected kind: "+(0,MF.inspect)(e))}}});var vg=w(tN=>{"use strict";m();T();N();Object.defineProperty(tN,"__esModule",{value:!0});tN.ProvidedRequiredArgumentsOnDirectivesRule=GF;tN.ProvidedRequiredArgumentsRule=Tz;var VF=Yt(),qF=zo(),jF=He(),KF=Rt(),mz=ci(),_g=Pt(),Nz=Gr();function Tz(e){return Y(x({},GF(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(a=>a.name.value));for(let a of r.args)if(!i.has(a.name)&&(0,_g.isRequiredArgument)(a)){let o=(0,VF.inspect)(a.type);e.reportError(new jF.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function GF(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Nz.specifiedDirectives;for(let c of i)n[c.name]=(0,qF.keyMap)(c.args.filter(_g.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===KF.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,qF.keyMap)(l.filter(Ez),p=>p.name.value)}return{Directive:{leave(c){let l=c.name.value,p=n[l];if(p){var f;let y=(f=c.arguments)!==null&&f!==void 0?f:[],g=new Set(y.map(v=>v.name.value));for(let[v,P]of Object.entries(p))if(!g.has(v)){let M=(0,_g.isType)(P.type)?(0,VF.inspect)(P.type):(0,mz.print)(P.type);e.reportError(new jF.GraphQLError(`Directive "@${l}" argument "${v}" of type "${M}" is required, but it was not provided.`,{nodes:c}))}}}}}}function Ez(e){return e.type.kind===KF.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var Og=w(Sg=>{"use strict";m();T();N();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.ScalarLeafsRule=hz;var $F=Yt(),QF=He(),YF=Pt();function hz(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,YF.isLeafType)((0,YF.getNamedType)(n))){if(r){let i=t.name.value,a=(0,$F.inspect)(n);e.reportError(new QF.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,a=(0,$F.inspect)(n);e.reportError(new QF.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var bg=w(Dg=>{"use strict";m();T();N();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.printPathArray=yz;function yz(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Xd=w(nN=>{"use strict";m();T();N();Object.defineProperty(nN,"__esModule",{value:!0});nN.addPath=Iz;nN.pathToArray=gz;function Iz(e,t,n){return{prev:e,key:t,typename:n}}function gz(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var Rg=w(Ag=>{"use strict";m();T();N();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.coerceInputValue=Az;var _z=Ho(),rN=Yt(),vz=yr(),Sz=$m(),Oz=va(),ea=Xd(),Dz=bg(),bz=Wo(),ps=He(),Zd=Pt();function Az(e,t,n=Rz){return ep(e,t,n,void 0)}function Rz(e,t,n){let r="Invalid value "+(0,rN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,Dz.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function ep(e,t,n,r){if((0,Zd.isNonNullType)(t)){if(e!=null)return ep(e,t.ofType,n,r);n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected non-nullable type "${(0,rN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Zd.isListType)(t)){let i=t.ofType;return(0,Sz.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,ea.addPath)(r,o,void 0);return ep(a,i,n,c)}):[ep(e,i,n,r)]}if((0,Zd.isInputObjectType)(t)){if(!(0,Oz.isObjectLike)(e)){n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let c=e[o.name];if(c===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Zd.isNonNullType)(o.type)){let l=(0,rN.inspect)(o.type);n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=ep(c,o.type,n,(0,ea.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,bz.suggestionList)(o,Object.keys(t.getFields()));n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,_z.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,ea.pathToArray)(r).concat(c),l,new ps.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,Zd.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof ps.GraphQLError?n((0,ea.pathToArray)(r),e,a):n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}".`)),i}(0,vz.invariant)(!1,"Unexpected input type: "+(0,rN.inspect)(t))}});var np=w(Pg=>{"use strict";m();T();N();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.valueFromAST=tp;var Pz=Yt(),Fz=yr(),wz=zo(),il=Rt(),zu=Pt();function tp(e,t,n){if(e){if(e.kind===il.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,zu.isNonNullType)(t)?void 0:i}if((0,zu.isNonNullType)(t))return e.kind===il.Kind.NULL?void 0:tp(e,t.ofType,n);if(e.kind===il.Kind.NULL)return null;if((0,zu.isListType)(t)){let r=t.ofType;if(e.kind===il.Kind.LIST){let a=[];for(let o of e.values)if(JF(o,n)){if((0,zu.isNonNullType)(r))return;a.push(null)}else{let c=tp(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=tp(e,r,n);return i===void 0?void 0:[i]}if((0,zu.isInputObjectType)(t)){if(e.kind!==il.Kind.OBJECT)return;let r=Object.create(null),i=(0,wz.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||JF(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,zu.isNonNullType)(a.type))return;continue}let c=tp(o.value,a.type,n);if(c===void 0)return;r[a.name]=c}if(t.isOneOf){let a=Object.keys(r);if(a.length!==1||r[a[0]]===null)return}return r}if((0,zu.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,Fz.invariant)(!1,"Unexpected input type: "+(0,Pz.inspect)(t))}}function JF(e,t){return e.kind===il.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var ol=w(rp=>{"use strict";m();T();N();Object.defineProperty(rp,"__esModule",{value:!0});rp.getArgumentValues=XF;rp.getDirectiveValues=xz;rp.getVariableValues=kz;var al=Yt(),Lz=zo(),Cz=bg(),fs=He(),HF=Rt(),zF=ci(),sl=Pt(),Bz=Rg(),Uz=Aa(),WF=np();function kz(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=Mz(e,t,n,c=>{if(a!=null&&i.length>=a)throw new fs.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function Mz(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,Uz.typeFromAST)(e,a.type);if(!(0,sl.isInputType)(c)){let p=(0,zF.print)(a.type);r(new fs.GraphQLError(`Variable "$${o}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!ZF(n,o)){if(a.defaultValue)i[o]=(0,WF.valueFromAST)(a.defaultValue,c);else if((0,sl.isNonNullType)(c)){let p=(0,al.inspect)(c);r(new fs.GraphQLError(`Variable "$${o}" of required type "${p}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,sl.isNonNullType)(c)){let p=(0,al.inspect)(c);r(new fs.GraphQLError(`Variable "$${o}" of non-null type "${p}" must not be null.`,{nodes:a}));continue}i[o]=(0,Bz.coerceInputValue)(l,c,(p,f,y)=>{let g=`Variable "$${o}" got invalid value `+(0,al.inspect)(f);p.length>0&&(g+=` at "${o}${(0,Cz.printPathArray)(p)}"`),r(new fs.GraphQLError(g+"; "+y.message,{nodes:a,originalError:y}))})}return i}function XF(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,Lz.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,p=c.type,f=o[l];if(!f){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of required type "${(0,al.inspect)(p)}" was not provided.`,{nodes:t});continue}let y=f.value,g=y.kind===HF.Kind.NULL;if(y.kind===HF.Kind.VARIABLE){let P=y.name.value;if(n==null||!ZF(n,P)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of required type "${(0,al.inspect)(p)}" was provided the variable "$${P}" which was not provided a runtime value.`,{nodes:y});continue}g=n[P]==null}if(g&&(0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of non-null type "${(0,al.inspect)(p)}" must not be null.`,{nodes:y});let v=(0,WF.valueFromAST)(y,p,n);if(v===void 0)throw new fs.GraphQLError(`Argument "${l}" has invalid value ${(0,zF.print)(y)}.`,{nodes:y});i[l]=v}return i}function xz(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(a=>a.name.value===e.name);if(i)return XF(e,i,n)}function ZF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var sN=w(aN=>{"use strict";m();T();N();Object.defineProperty(aN,"__esModule",{value:!0});aN.collectFields=jz;aN.collectSubfields=Kz;var Fg=Rt(),qz=Pt(),ew=Gr(),Vz=Aa(),tw=ol();function jz(e,t,n,r,i){let a=new Map;return iN(e,t,n,r,i,a,new Set),a}function Kz(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&iN(e,t,n,r,c.selectionSet,a,o);return a}function iN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case Fg.Kind.FIELD:{if(!wg(n,c))continue;let l=Gz(c),p=a.get(l);p!==void 0?p.push(c):a.set(l,[c]);break}case Fg.Kind.INLINE_FRAGMENT:{if(!wg(n,c)||!nw(e,c,r))continue;iN(e,t,n,r,c.selectionSet,a,o);break}case Fg.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!wg(n,c))continue;o.add(l);let p=t[l];if(!p||!nw(e,p,r))continue;iN(e,t,n,r,p.selectionSet,a,o);break}}}function wg(e,t){let n=(0,tw.getDirectiveValues)(ew.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,tw.getDirectiveValues)(ew.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function nw(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Vz.typeFromAST)(e,r);return i===n?!0:(0,qz.isAbstractType)(i)?e.isSubType(i,n):!1}function Gz(e){return e.alias?e.alias.value:e.name.value}});var Cg=w(Lg=>{"use strict";m();T();N();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.SingleFieldSubscriptionsRule=Yz;var rw=He(),$z=Rt(),Qz=sN();function Yz(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,a=Object.create(null),o=e.getDocument(),c=Object.create(null);for(let p of o.definitions)p.kind===$z.Kind.FRAGMENT_DEFINITION&&(c[p.name.value]=p);let l=(0,Qz.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new rw.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let p of l.values())p[0].name.value.startsWith("__")&&e.reportError(new rw.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}))}}}}}});var oN=w(Bg=>{"use strict";m();T();N();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.groupBy=Jz;function Jz(e,t){let n=new Map;for(let r of e){let i=t(r),a=n.get(i);a===void 0?n.set(i,[r]):a.push(r)}return n}});var kg=w(Ug=>{"use strict";m();T();N();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.UniqueArgumentDefinitionNamesRule=Wz;var Hz=oN(),zz=He();function Wz(e){return{DirectiveDefinition(r){var i;let a=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let a=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var c;let p=l.name.value,f=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${p}`,f)}return!1}function n(r,i){let a=(0,Hz.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new zz.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var xg=w(Mg=>{"use strict";m();T();N();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.UniqueArgumentNamesRule=e4;var Xz=oN(),Zz=He();function e4(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,Xz.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new Zz.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var Vg=w(qg=>{"use strict";m();T();N();Object.defineProperty(qg,"__esModule",{value:!0});qg.UniqueDirectiveNamesRule=t4;var iw=He();function t4(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 iw.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new iw.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var Gg=w(Kg=>{"use strict";m();T();N();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.UniqueDirectivesPerLocationRule=i4;var n4=He(),jg=Rt(),aw=Hu(),r4=Gr();function i4(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():r4.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===jg.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===jg.Kind.SCHEMA_DEFINITION||c.kind===jg.Kind.SCHEMA_EXTENSION)l=a;else if((0,aw.isTypeDefinitionNode)(c)||(0,aw.isTypeExtensionNode)(c)){let p=c.name.value;l=o[p],l===void 0&&(o[p]=l=Object.create(null))}else l=Object.create(null);for(let p of c.directives){let f=p.name.value;t[f]&&(l[f]?e.reportError(new n4.GraphQLError(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],p]})):l[f]=p)}}}}});var Qg=w($g=>{"use strict";m();T();N();Object.defineProperty($g,"__esModule",{value:!0});$g.UniqueEnumValueNamesRule=s4;var sw=He(),a4=Pt();function s4(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],p=r[c];for(let f of l){let y=f.name.value,g=n[c];(0,a4.isEnumType)(g)&&g.getValue(y)?e.reportError(new sw.GraphQLError(`Enum value "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):p[y]?e.reportError(new sw.GraphQLError(`Enum value "${c}.${y}" can only be defined once.`,{nodes:[p[y],f.name]})):p[y]=f.name}return!1}}});var Hg=w(Jg=>{"use strict";m();T();N();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.UniqueFieldDefinitionNamesRule=o4;var ow=He(),Yg=Pt();function o4(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(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],p=r[c];for(let f of l){let y=f.name.value;u4(n[c],y)?e.reportError(new ow.GraphQLError(`Field "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):p[y]?e.reportError(new ow.GraphQLError(`Field "${c}.${y}" can only be defined once.`,{nodes:[p[y],f.name]})):p[y]=f.name}return!1}}function u4(e,t){return(0,Yg.isObjectType)(e)||(0,Yg.isInterfaceType)(e)||(0,Yg.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var Wg=w(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.UniqueFragmentNamesRule=l4;var c4=He();function l4(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new c4.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var Zg=w(Xg=>{"use strict";m();T();N();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.UniqueInputFieldNamesRule=f4;var d4=yr(),p4=He();function f4(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,d4.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new p4.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var t_=w(e_=>{"use strict";m();T();N();Object.defineProperty(e_,"__esModule",{value:!0});e_.UniqueOperationNamesRule=N4;var m4=He();function N4(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new m4.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var r_=w(n_=>{"use strict";m();T();N();Object.defineProperty(n_,"__esModule",{value:!0});n_.UniqueOperationTypesRule=T4;var uw=He();function T4(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(a){var o;let c=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of c){let p=l.operation,f=n[p];r[p]?e.reportError(new uw.GraphQLError(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new uw.GraphQLError(`There can be only one ${p} type in schema.`,{nodes:[f,l]})):n[p]=l}return!1}}});var a_=w(i_=>{"use strict";m();T();N();Object.defineProperty(i_,"__esModule",{value:!0});i_.UniqueTypeNamesRule=E4;var cw=He();function E4(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 a=i.name.value;if(n!=null&&n.getType(a)){e.reportError(new cw.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new cw.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var o_=w(s_=>{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.UniqueVariableNamesRule=I4;var h4=oN(),y4=He();function I4(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,h4.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new y4.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var l_=w(c_=>{"use strict";m();T();N();Object.defineProperty(c_,"__esModule",{value:!0});c_.ValuesOfCorrectTypeRule=S4;var g4=Ho(),ip=Yt(),_4=zo(),v4=Wo(),Pa=He(),u_=Rt(),uN=ci(),Ra=Pt();function S4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Ra.getNullableType)(e.getParentInputType());if(!(0,Ra.isListType)(r))return Wu(e,n),!1},ObjectValue(n){let r=(0,Ra.getNamedType)(e.getInputType());if(!(0,Ra.isInputObjectType)(r))return Wu(e,n),!1;let i=(0,_4.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,Ra.isRequiredInputField)(a)){let c=(0,ip.inspect)(a.type);e.reportError(new Pa.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&O4(e,n,r,i,t)},ObjectField(n){let r=(0,Ra.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Ra.isInputObjectType)(r)){let a=(0,v4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new Pa.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,g4.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Ra.isNonNullType)(r)&&e.reportError(new Pa.GraphQLError(`Expected value of type "${(0,ip.inspect)(r)}", found ${(0,uN.print)(n)}.`,{nodes:n}))},EnumValue:n=>Wu(e,n),IntValue:n=>Wu(e,n),FloatValue:n=>Wu(e,n),StringValue:n=>Wu(e,n),BooleanValue:n=>Wu(e,n)}}function Wu(e,t){let n=e.getInputType();if(!n)return;let r=(0,Ra.getNamedType)(n);if(!(0,Ra.isLeafType)(r)){let i=(0,ip.inspect)(n);e.reportError(new Pa.GraphQLError(`Expected value of type "${i}", found ${(0,uN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,ip.inspect)(n);e.reportError(new Pa.GraphQLError(`Expected value of type "${a}", found ${(0,uN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,ip.inspect)(n);i instanceof Pa.GraphQLError?e.reportError(i):e.reportError(new Pa.GraphQLError(`Expected value of type "${a}", found ${(0,uN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function O4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new Pa.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=r[o[0]])===null||a===void 0?void 0:a.value,p=!l||l.kind===u_.Kind.NULL,f=(l==null?void 0:l.kind)===u_.Kind.VARIABLE;if(p){e.reportError(new Pa.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(f){let y=l.name.value;i[y].type.kind!==u_.Kind.NON_NULL_TYPE&&e.reportError(new Pa.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var p_=w(d_=>{"use strict";m();T();N();Object.defineProperty(d_,"__esModule",{value:!0});d_.VariablesAreInputTypesRule=P4;var D4=He(),b4=ci(),A4=Pt(),R4=Aa();function P4(e){return{VariableDefinition(t){let n=(0,R4.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,A4.isInputType)(n)){let r=t.variable.name.value,i=(0,b4.print)(t.type);e.reportError(new D4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var m_=w(f_=>{"use strict";m();T();N();Object.defineProperty(f_,"__esModule",{value:!0});f_.VariablesInAllowedPositionRule=C4;var lw=Yt(),F4=He(),w4=Rt(),dw=Pt(),pw=xd(),L4=Aa();function C4(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:a,defaultValue:o}of r){let c=i.name.value,l=t[c];if(l&&a){let p=e.getSchema(),f=(0,L4.typeFromAST)(p,l.type);if(f&&!B4(p,f,l.defaultValue,a,o)){let y=(0,lw.inspect)(f),g=(0,lw.inspect)(a);e.reportError(new F4.GraphQLError(`Variable "$${c}" of type "${y}" used in position expecting type "${g}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function B4(e,t,n,r,i){if((0,dw.isNonNullType)(r)&&!(0,dw.isNonNullType)(t)){if(!(n!=null&&n.kind!==w4.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,pw.isTypeSubTypeOf)(e,t,c)}return(0,pw.isTypeSubTypeOf)(e,t,r)}});var N_=w(tu=>{"use strict";m();T();N();Object.defineProperty(tu,"__esModule",{value:!0});tu.specifiedSDLRules=tu.specifiedRules=tu.recommendedRules=void 0;var U4=wI(),k4=CI(),M4=UI(),fw=kI(),mw=VI(),x4=KI(),Nw=QI(),q4=JI(),V4=zI(),j4=XI(),K4=eg(),G4=ng(),$4=ig(),Q4=sg(),Y4=Tg(),J4=yg(),H4=gg(),Tw=vg(),z4=Og(),W4=Cg(),X4=kg(),Ew=xg(),Z4=Vg(),hw=Gg(),eW=Qg(),tW=Hg(),nW=Wg(),yw=Zg(),rW=t_(),iW=r_(),aW=a_(),sW=o_(),oW=l_(),uW=p_(),cW=m_(),Iw=Object.freeze([j4.MaxIntrospectionDepthRule]);tu.recommendedRules=Iw;var lW=Object.freeze([U4.ExecutableDefinitionsRule,rW.UniqueOperationNamesRule,q4.LoneAnonymousOperationRule,W4.SingleFieldSubscriptionsRule,Nw.KnownTypeNamesRule,M4.FragmentsOnCompositeTypesRule,uW.VariablesAreInputTypesRule,z4.ScalarLeafsRule,k4.FieldsOnCorrectTypeRule,nW.UniqueFragmentNamesRule,x4.KnownFragmentNamesRule,$4.NoUnusedFragmentsRule,J4.PossibleFragmentSpreadsRule,K4.NoFragmentCyclesRule,sW.UniqueVariableNamesRule,G4.NoUndefinedVariablesRule,Q4.NoUnusedVariablesRule,mw.KnownDirectivesRule,hw.UniqueDirectivesPerLocationRule,fw.KnownArgumentNamesRule,Ew.UniqueArgumentNamesRule,oW.ValuesOfCorrectTypeRule,Tw.ProvidedRequiredArgumentsRule,cW.VariablesInAllowedPositionRule,Y4.OverlappingFieldsCanBeMergedRule,yw.UniqueInputFieldNamesRule,...Iw]);tu.specifiedRules=lW;var dW=Object.freeze([V4.LoneSchemaDefinitionRule,iW.UniqueOperationTypesRule,aW.UniqueTypeNamesRule,eW.UniqueEnumValueNamesRule,tW.UniqueFieldDefinitionNamesRule,X4.UniqueArgumentDefinitionNamesRule,Z4.UniqueDirectiveNamesRule,Nw.KnownTypeNamesRule,mw.KnownDirectivesRule,hw.UniqueDirectivesPerLocationRule,H4.PossibleTypeExtensionsRule,fw.KnownArgumentNamesOnDirectivesRule,Ew.UniqueArgumentNamesRule,yw.UniqueInputFieldNamesRule,Tw.ProvidedRequiredArgumentsOnDirectivesRule]);tu.specifiedSDLRules=dW});var h_=w(nu=>{"use strict";m();T();N();Object.defineProperty(nu,"__esModule",{value:!0});nu.ValidationContext=nu.SDLValidationContext=nu.ASTValidationContext=void 0;var gw=Rt(),pW=Vu(),_w=Hm(),ap=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===gw.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 a of i.selections)a.kind===gw.Kind.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&r.push(a.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],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let c=o.name.value;if(r[c]!==!0){r[c]=!0;let l=this.getFragment(c);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};nu.ASTValidationContext=ap;var T_=class extends ap{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};nu.SDLValidationContext=T_;var E_=class extends ap{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 _w.TypeInfo(this._schema);(0,pW.visit)(t,(0,_w.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){r.push({node:a,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()}};nu.ValidationContext=E_});var cl=w(ul=>{"use strict";m();T();N();Object.defineProperty(ul,"__esModule",{value:!0});ul.assertValidSDL=EW;ul.assertValidSDLExtension=hW;ul.validate=TW;ul.validateSDL=y_;var fW=Lr(),mW=He(),cN=Vu(),NW=Hd(),vw=Hm(),Sw=N_(),Ow=h_();function TW(e,t,n=Sw.specifiedRules,r,i=new vw.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,fW.devAssert)(!1,"Must provide document."),(0,NW.assertValidSchema)(e);let c=Object.freeze({}),l=[],p=new Ow.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new mW.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(y)}),f=(0,cN.visitInParallel)(n.map(y=>y(p)));try{(0,cN.visit)(t,(0,vw.visitWithTypeInfo)(i,f))}catch(y){if(y!==c)throw y}return l}function y_(e,t,n=Sw.specifiedSDLRules){let r=[],i=new Ow.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,cN.visit)(e,(0,cN.visitInParallel)(a)),r}function EW(e){let t=y_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}var SI=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new xH.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function KH(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Rn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,gr.inspect)(n)}.`,(r=vI(t,_I.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Rn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,gr.inspect)(i)}.`,(a=vI(t,_I.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Rn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,gr.inspect)(o)}.`,(c=vI(t,_I.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function vI(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 GH(e){for(let n of e.schema.getDirectives()){if(!(0,iF.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,gr.inspect)(n)}.`,n==null?void 0:n.astNode);continue}Ju(e,n);for(let r of n.args)if(Ju(e,r),(0,Rn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,gr.inspect)(r.type)}.`,r.astNode),(0,Rn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[OI(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Ju(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function $H(e){let t=XH(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Rn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,gr.inspect)(r)}.`,r.astNode);continue}(0,qH.isIntrospectionType)(r)||Ju(e,r),(0,Rn.isObjectType)(r)||(0,Rn.isInterfaceType)(r)?(tF(e,r),nF(e,r)):(0,Rn.isUnionType)(r)?JH(e,r):(0,Rn.isEnumType)(r)?HH(e,r):(0,Rn.isInputObjectType)(r)&&(zH(e,r),t(r))}}function tF(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 o of n){if(Ju(e,o),!(0,Rn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,gr.inspect)(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}for(let c of o.args){let l=c.name;if(Ju(e,c),!(0,Rn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,gr.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Rn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[OI(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function nF(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Rn.isInterfaceType)(r)){e.reportError(`Type ${(0,gr.inspect)(t)} must only implement Interface types, it cannot implement ${(0,gr.inspect)(r)}.`,Jd(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Jd(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Jd(t,r));continue}n[r.name]=!0,YH(e,t,r),QH(e,t,r)}}function QH(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let p=l.name,f=r[p];if(!f){e.reportError(`Interface field ${n.name}.${p} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,eF.isTypeSubTypeOf)(e.schema,f.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${p} expects type ${(0,gr.inspect)(l.type)} but ${t.name}.${p} is type ${(0,gr.inspect)(f.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=f.astNode)===null||a===void 0?void 0:a.type])}for(let y of l.args){let g=y.name,v=f.args.find(P=>P.name===g);if(!v){e.reportError(`Interface field argument ${n.name}.${p}(${g}:) expected but ${t.name}.${p} does not provide it.`,[y.astNode,f.astNode]);continue}if(!(0,eF.isEqualType)(y.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${p}(${g}:) expects type ${(0,gr.inspect)(y.type)} but ${t.name}.${p}(${g}:) is type ${(0,gr.inspect)(v.type)}.`,[(o=y.astNode)===null||o===void 0?void 0:o.type,(c=v.astNode)===null||c===void 0?void 0:c.type])}}for(let y of f.args){let g=y.name;!l.args.find(P=>P.name===g)&&(0,Rn.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${p} includes required argument ${g} that is missing from the Interface field ${n.name}.${p}.`,[y.astNode,l.astNode])}}}function YH(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}.`,[...Jd(n,i),...Jd(t,n)])}function JH(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.`,rF(t,i.name));continue}r[i.name]=!0,(0,Rn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,gr.inspect)(i)}.`,rF(t,String(i)))}}function HH(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)Ju(e,r)}function zH(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 a of n){if(Ju(e,a),!(0,Rn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,gr.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Rn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[OI(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&WH(t,a,e)}}function WH(e,t,n){if((0,Rn.isNonNullType)(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function XH(e){let t=Object.create(null),n=[],r=Object.create(null);return i;function i(a){if(t[a.name])return;t[a.name]=!0,r[a.name]=n.length;let o=Object.values(a.getFields());for(let c of o)if((0,Rn.isNonNullType)(c.type)&&(0,Rn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,p=r[l.name];if(n.push(c),p===void 0)i(l);else{let f=n.slice(p),y=f.map(g=>g.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,f.map(g=>g.astNode))}n.pop()}r[a.name]=void 0}}function Jd(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.interfaces)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t.name)}function rF(e,t){let{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(a=>{var o;return(o=a.types)!==null&&o!==void 0?o:[]}).filter(a=>a.name.value===t)}function OI(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===iF.GraphQLDeprecatedDirective.name)}});var Aa=w(AI=>{"use strict";m();T();N();Object.defineProperty(AI,"__esModule",{value:!0});AI.typeFromAST=bI;var DI=Rt(),sF=Pt();function bI(e,t){switch(t.kind){case DI.Kind.LIST_TYPE:{let n=bI(e,t.type);return n&&new sF.GraphQLList(n)}case DI.Kind.NON_NULL_TYPE:{let n=bI(e,t.type);return n&&new sF.GraphQLNonNull(n)}case DI.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var Hm=w(zd=>{"use strict";m();T();N();Object.defineProperty(zd,"__esModule",{value:!0});zd.TypeInfo=void 0;zd.visitWithTypeInfo=t6;var ZH=Sa(),Pn=Rt(),oF=Vu(),Fn=Pt(),nl=Ai(),uF=Aa(),RI=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:e6,n&&((0,Fn.isInputType)(n)&&this._inputTypeStack.push(n),(0,Fn.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,Fn.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 Pn.Kind.SELECTION_SET:{let i=(0,Fn.getNamedType)(this.getType());this._parentTypeStack.push((0,Fn.isCompositeType)(i)?i:void 0);break}case Pn.Kind.FIELD:{let i=this.getParentType(),a,o;i&&(a=this._getFieldDef(n,i,t),a&&(o=a.type)),this._fieldDefStack.push(a),this._typeStack.push((0,Fn.isOutputType)(o)?o:void 0);break}case Pn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Pn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,Fn.isObjectType)(i)?i:void 0);break}case Pn.Kind.INLINE_FRAGMENT:case Pn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,uF.typeFromAST)(n,i):(0,Fn.getNamedType)(this.getType());this._typeStack.push((0,Fn.isOutputType)(a)?a:void 0);break}case Pn.Kind.VARIABLE_DEFINITION:{let i=(0,uF.typeFromAST)(n,t.type);this._inputTypeStack.push((0,Fn.isInputType)(i)?i:void 0);break}case Pn.Kind.ARGUMENT:{var r;let i,a,o=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();o&&(i=o.args.find(c=>c.name===t.name.value),i&&(a=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.LIST:{let i=(0,Fn.getNullableType)(this.getInputType()),a=(0,Fn.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.OBJECT_FIELD:{let i=(0,Fn.getNamedType)(this.getInputType()),a,o;(0,Fn.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Fn.isInputType)(a)?a:void 0);break}case Pn.Kind.ENUM:{let i=(0,Fn.getNamedType)(this.getInputType()),a;(0,Fn.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Pn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Pn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Pn.Kind.DIRECTIVE:this._directive=null;break;case Pn.Kind.OPERATION_DEFINITION:case Pn.Kind.INLINE_FRAGMENT:case Pn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Pn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Pn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pn.Kind.LIST:case Pn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Pn.Kind.ENUM:this._enumValue=null;break;default:}}};zd.TypeInfo=RI;function e6(e,t,n){let r=n.name.value;if(r===nl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return nl.SchemaMetaFieldDef;if(r===nl.TypeMetaFieldDef.name&&e.getQueryType()===t)return nl.TypeMetaFieldDef;if(r===nl.TypeNameMetaFieldDef.name&&(0,Fn.isCompositeType)(t))return nl.TypeNameMetaFieldDef;if((0,Fn.isObjectType)(t)||(0,Fn.isInterfaceType)(t))return t.getFields()[r]}function t6(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,oF.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,ZH.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,oF.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var Hu=w(Ri=>{"use strict";m();T();N();Object.defineProperty(Ri,"__esModule",{value:!0});Ri.isConstValueNode=PI;Ri.isDefinitionNode=n6;Ri.isExecutableDefinitionNode=cF;Ri.isSelectionNode=r6;Ri.isTypeDefinitionNode=pF;Ri.isTypeExtensionNode=mF;Ri.isTypeNode=i6;Ri.isTypeSystemDefinitionNode=dF;Ri.isTypeSystemExtensionNode=fF;Ri.isValueNode=lF;var Ft=Rt();function n6(e){return cF(e)||dF(e)||fF(e)}function cF(e){return e.kind===Ft.Kind.OPERATION_DEFINITION||e.kind===Ft.Kind.FRAGMENT_DEFINITION}function r6(e){return e.kind===Ft.Kind.FIELD||e.kind===Ft.Kind.FRAGMENT_SPREAD||e.kind===Ft.Kind.INLINE_FRAGMENT}function lF(e){return e.kind===Ft.Kind.VARIABLE||e.kind===Ft.Kind.INT||e.kind===Ft.Kind.FLOAT||e.kind===Ft.Kind.STRING||e.kind===Ft.Kind.BOOLEAN||e.kind===Ft.Kind.NULL||e.kind===Ft.Kind.ENUM||e.kind===Ft.Kind.LIST||e.kind===Ft.Kind.OBJECT}function PI(e){return lF(e)&&(e.kind===Ft.Kind.LIST?e.values.some(PI):e.kind===Ft.Kind.OBJECT?e.fields.some(t=>PI(t.value)):e.kind!==Ft.Kind.VARIABLE)}function i6(e){return e.kind===Ft.Kind.NAMED_TYPE||e.kind===Ft.Kind.LIST_TYPE||e.kind===Ft.Kind.NON_NULL_TYPE}function dF(e){return e.kind===Ft.Kind.SCHEMA_DEFINITION||pF(e)||e.kind===Ft.Kind.DIRECTIVE_DEFINITION}function pF(e){return e.kind===Ft.Kind.SCALAR_TYPE_DEFINITION||e.kind===Ft.Kind.OBJECT_TYPE_DEFINITION||e.kind===Ft.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Ft.Kind.UNION_TYPE_DEFINITION||e.kind===Ft.Kind.ENUM_TYPE_DEFINITION||e.kind===Ft.Kind.INPUT_OBJECT_TYPE_DEFINITION}function fF(e){return e.kind===Ft.Kind.SCHEMA_EXTENSION||mF(e)}function mF(e){return e.kind===Ft.Kind.SCALAR_TYPE_EXTENSION||e.kind===Ft.Kind.OBJECT_TYPE_EXTENSION||e.kind===Ft.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Ft.Kind.UNION_TYPE_EXTENSION||e.kind===Ft.Kind.ENUM_TYPE_EXTENSION||e.kind===Ft.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var wI=w(FI=>{"use strict";m();T();N();Object.defineProperty(FI,"__esModule",{value:!0});FI.ExecutableDefinitionsRule=o6;var a6=He(),NF=Rt(),s6=Hu();function o6(e){return{Document(t){for(let n of t.definitions)if(!(0,s6.isExecutableDefinitionNode)(n)){let r=n.kind===NF.Kind.SCHEMA_DEFINITION||n.kind===NF.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new a6.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var CI=w(LI=>{"use strict";m();T();N();Object.defineProperty(LI,"__esModule",{value:!0});LI.FieldsOnCorrectTypeRule=d6;var TF=Ho(),u6=Ld(),c6=Wo(),l6=He(),Wd=Pt();function d6(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,TF.didYouMean)("to use an inline fragment on",p6(i,n,a));o===""&&(o=(0,TF.didYouMean)(f6(n,a))),e.reportError(new l6.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function p6(e,t,n){if(!(0,Wd.isAbstractType)(t))return[];let r=new Set,i=Object.create(null);for(let o of e.getPossibleTypes(t))if(o.getFields()[n]){r.add(o),i[o.name]=1;for(let c of o.getInterfaces()){var a;c.getFields()[n]&&(r.add(c),i[c.name]=((a=i[c.name])!==null&&a!==void 0?a:0)+1)}}return[...r].sort((o,c)=>{let l=i[c.name]-i[o.name];return l!==0?l:(0,Wd.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,Wd.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,u6.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function f6(e,t){if((0,Wd.isObjectType)(e)||(0,Wd.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,c6.suggestionList)(t,n)}return[]}});var UI=w(BI=>{"use strict";m();T();N();Object.defineProperty(BI,"__esModule",{value:!0});BI.FragmentsOnCompositeTypesRule=m6;var EF=He(),hF=ci(),yF=Pt(),IF=Aa();function m6(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,IF.typeFromAST)(e.getSchema(),n);if(r&&!(0,yF.isCompositeType)(r)){let i=(0,hF.print)(n);e.reportError(new EF.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,IF.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,yF.isCompositeType)(n)){let r=(0,hF.print)(t.typeCondition);e.reportError(new EF.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var kI=w(zm=>{"use strict";m();T();N();Object.defineProperty(zm,"__esModule",{value:!0});zm.KnownArgumentNamesOnDirectivesRule=SF;zm.KnownArgumentNamesRule=E6;var gF=Ho(),_F=Wo(),vF=He(),N6=Rt(),T6=Gr();function E6(e){return Y(x({},SF(e)),{Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let a=t.name.value,o=r.args.map(l=>l.name),c=(0,_F.suggestionList)(a,o);e.reportError(new vF.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,gF.didYouMean)(c),{nodes:t}))}}})}function SF(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():T6.specifiedDirectives;for(let o of r)t[o.name]=o.args.map(c=>c.name);let i=e.getDocument().definitions;for(let o of i)if(o.kind===N6.Kind.DIRECTIVE_DEFINITION){var a;let c=(a=o.arguments)!==null&&a!==void 0?a:[];t[o.name.value]=c.map(l=>l.name.value)}return{Directive(o){let c=o.name.value,l=t[c];if(o.arguments&&l)for(let p of o.arguments){let f=p.name.value;if(!l.includes(f)){let y=(0,_F.suggestionList)(f,l);e.reportError(new vF.GraphQLError(`Unknown argument "${f}" on directive "@${c}".`+(0,gF.didYouMean)(y),{nodes:p}))}}return!1}}}});var VI=w(qI=>{"use strict";m();T();N();Object.defineProperty(qI,"__esModule",{value:!0});qI.KnownDirectivesRule=I6;var h6=Yt(),MI=yr(),OF=He(),xI=Sa(),Xn=Hc(),En=Rt(),y6=Gr();function I6(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():y6.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===En.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,p){let f=a.name.value,y=t[f];if(!y){e.reportError(new OF.GraphQLError(`Unknown directive "@${f}".`,{nodes:a}));return}let g=g6(p);g&&!y.includes(g)&&e.reportError(new OF.GraphQLError(`Directive "@${f}" may not be used on ${g}.`,{nodes:a}))}}}function g6(e){let t=e[e.length-1];switch("kind"in t||(0,MI.invariant)(!1),t.kind){case En.Kind.OPERATION_DEFINITION:return _6(t.operation);case En.Kind.FIELD:return Xn.DirectiveLocation.FIELD;case En.Kind.FRAGMENT_SPREAD:return Xn.DirectiveLocation.FRAGMENT_SPREAD;case En.Kind.INLINE_FRAGMENT:return Xn.DirectiveLocation.INLINE_FRAGMENT;case En.Kind.FRAGMENT_DEFINITION:return Xn.DirectiveLocation.FRAGMENT_DEFINITION;case En.Kind.VARIABLE_DEFINITION:return Xn.DirectiveLocation.VARIABLE_DEFINITION;case En.Kind.SCHEMA_DEFINITION:case En.Kind.SCHEMA_EXTENSION:return Xn.DirectiveLocation.SCHEMA;case En.Kind.SCALAR_TYPE_DEFINITION:case En.Kind.SCALAR_TYPE_EXTENSION:return Xn.DirectiveLocation.SCALAR;case En.Kind.OBJECT_TYPE_DEFINITION:case En.Kind.OBJECT_TYPE_EXTENSION:return Xn.DirectiveLocation.OBJECT;case En.Kind.FIELD_DEFINITION:return Xn.DirectiveLocation.FIELD_DEFINITION;case En.Kind.INTERFACE_TYPE_DEFINITION:case En.Kind.INTERFACE_TYPE_EXTENSION:return Xn.DirectiveLocation.INTERFACE;case En.Kind.UNION_TYPE_DEFINITION:case En.Kind.UNION_TYPE_EXTENSION:return Xn.DirectiveLocation.UNION;case En.Kind.ENUM_TYPE_DEFINITION:case En.Kind.ENUM_TYPE_EXTENSION:return Xn.DirectiveLocation.ENUM;case En.Kind.ENUM_VALUE_DEFINITION:return Xn.DirectiveLocation.ENUM_VALUE;case En.Kind.INPUT_OBJECT_TYPE_DEFINITION:case En.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Xn.DirectiveLocation.INPUT_OBJECT;case En.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,MI.invariant)(!1),n.kind===En.Kind.INPUT_OBJECT_TYPE_DEFINITION?Xn.DirectiveLocation.INPUT_FIELD_DEFINITION:Xn.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,MI.invariant)(!1,"Unexpected kind: "+(0,h6.inspect)(t.kind))}}function _6(e){switch(e){case xI.OperationTypeNode.QUERY:return Xn.DirectiveLocation.QUERY;case xI.OperationTypeNode.MUTATION:return Xn.DirectiveLocation.MUTATION;case xI.OperationTypeNode.SUBSCRIPTION:return Xn.DirectiveLocation.SUBSCRIPTION}}});var KI=w(jI=>{"use strict";m();T();N();Object.defineProperty(jI,"__esModule",{value:!0});jI.KnownFragmentNamesRule=S6;var v6=He();function S6(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new v6.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var QI=w($I=>{"use strict";m();T();N();Object.defineProperty($I,"__esModule",{value:!0});$I.KnownTypeNamesRule=P6;var O6=Ho(),D6=Wo(),b6=He(),GI=Hu(),A6=Ai(),R6=ba();function P6(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,GI.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,p){let f=a.name.value;if(!n[f]&&!r[f]){var y;let g=(y=p[2])!==null&&y!==void 0?y:c,v=g!=null&&F6(g);if(v&&DF.includes(f))return;let P=(0,D6.suggestionList)(f,v?DF.concat(i):i);e.reportError(new b6.GraphQLError(`Unknown type "${f}".`+(0,O6.didYouMean)(P),{nodes:a}))}}}}var DF=[...R6.specifiedScalarTypes,...A6.introspectionTypes].map(e=>e.name);function F6(e){return"kind"in e&&((0,GI.isTypeSystemDefinitionNode)(e)||(0,GI.isTypeSystemExtensionNode)(e))}});var JI=w(YI=>{"use strict";m();T();N();Object.defineProperty(YI,"__esModule",{value:!0});YI.LoneAnonymousOperationRule=C6;var w6=He(),L6=Rt();function C6(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===L6.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new w6.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var zI=w(HI=>{"use strict";m();T();N();Object.defineProperty(HI,"__esModule",{value:!0});HI.LoneSchemaDefinitionRule=B6;var bF=He();function B6(e){var t,n,r;let i=e.getSchema(),a=(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(),o=0;return{SchemaDefinition(c){if(a){e.reportError(new bF.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new bF.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var XI=w(WI=>{"use strict";m();T();N();Object.defineProperty(WI,"__esModule",{value:!0});WI.MaxIntrospectionDepthRule=M6;var U6=He(),AF=Rt(),k6=3;function M6(e){function t(n,r=Object.create(null),i=0){if(n.kind===AF.Kind.FRAGMENT_SPREAD){let a=n.name.value;if(r[a]===!0)return!1;let o=e.getFragment(a);if(!o)return!1;try{return r[a]=!0,t(o,r,i)}finally{r[a]=void 0}}if(n.kind===AF.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=k6))return!0;if("selectionSet"in n&&n.selectionSet){for(let a of n.selectionSet.selections)if(t(a,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new U6.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var eg=w(ZI=>{"use strict";m();T();N();Object.defineProperty(ZI,"__esModule",{value:!0});ZI.NoFragmentCyclesRule=q6;var x6=He();function q6(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(a){return i(a),!1}};function i(a){if(t[a.name.value])return;let o=a.name.value;t[o]=!0;let c=e.getFragmentSpreads(a.selectionSet);if(c.length!==0){r[o]=n.length;for(let l of c){let p=l.name.value,f=r[p];if(n.push(l),f===void 0){let y=e.getFragment(p);y&&i(y)}else{let y=n.slice(f),g=y.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new x6.GraphQLError(`Cannot spread fragment "${p}" within itself`+(g!==""?` via ${g}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var ng=w(tg=>{"use strict";m();T();N();Object.defineProperty(tg,"__esModule",{value:!0});tg.NoUndefinedVariablesRule=j6;var V6=He();function j6(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 a=i.name.value;t[a]!==!0&&e.reportError(new V6.GraphQLError(n.name?`Variable "$${a}" is not defined by operation "${n.name.value}".`:`Variable "$${a}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}});var ig=w(rg=>{"use strict";m();T();N();Object.defineProperty(rg,"__esModule",{value:!0});rg.NoUnusedFragmentsRule=G6;var K6=He();function G6(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 a of e.getRecursivelyReferencedFragments(i))r[a.name.value]=!0;for(let i of n){let a=i.name.value;r[a]!==!0&&e.reportError(new K6.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var sg=w(ag=>{"use strict";m();T();N();Object.defineProperty(ag,"__esModule",{value:!0});ag.NoUnusedVariablesRule=Q6;var $6=He();function Q6(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(let{node:a}of i)r[a.name.value]=!0;for(let a of t){let o=a.variable.name.value;r[o]!==!0&&e.reportError(new $6.GraphQLError(n.name?`Variable "$${o}" is never used in operation "${n.name.value}".`:`Variable "$${o}" is never used.`,{nodes:a}))}}},VariableDefinition(n){t.push(n)}}}});var cg=w(ug=>{"use strict";m();T();N();Object.defineProperty(ug,"__esModule",{value:!0});ug.sortValueNode=og;var Y6=Ld(),ds=Rt();function og(e){switch(e.kind){case ds.Kind.OBJECT:return Y(x({},e),{fields:J6(e.fields)});case ds.Kind.LIST:return Y(x({},e),{values:e.values.map(og)});case ds.Kind.INT:case ds.Kind.FLOAT:case ds.Kind.STRING:case ds.Kind.BOOLEAN:case ds.Kind.NULL:case ds.Kind.ENUM:case ds.Kind.VARIABLE:return e}}function J6(e){return e.map(t=>Y(x({},t),{value:og(t.value)})).sort((t,n)=>(0,Y6.naturalCompare)(t.name.value,n.name.value))}});var Tg=w(Ng=>{"use strict";m();T();N();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.OverlappingFieldsCanBeMergedRule=X6;var RF=Yt(),H6=He(),lg=Rt(),z6=ci(),$r=Pt(),W6=cg(),FF=Aa();function wF(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+wF(n)).join(" and "):e}function X6(e){let t=new fg,n=new Map;return{SelectionSet(r){let i=Z6(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let p=wF(o);e.reportError(new H6.GraphQLError(`Fields "${a}" conflict because ${p}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function Z6(e,t,n,r,i){let a=[],[o,c]=Zm(e,t,r,i);if(tz(e,a,t,n,o),c.length!==0)for(let l=0;l1)for(let c=0;c[a.value,o]));return n.every(a=>{let o=a.value,c=i.get(a.name.value);return c===void 0?!1:PF(o)===PF(c)})}function PF(e){return(0,z6.print)((0,W6.sortValueNode)(e))}function dg(e,t){return(0,$r.isListType)(e)?(0,$r.isListType)(t)?dg(e.ofType,t.ofType):!0:(0,$r.isListType)(t)?!0:(0,$r.isNonNullType)(e)?(0,$r.isNonNullType)(t)?dg(e.ofType,t.ofType):!0:(0,$r.isNonNullType)(t)?!0:(0,$r.isLeafType)(e)||(0,$r.isLeafType)(t)?e!==t:!1}function Zm(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);CF(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function pg(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,FF.typeFromAST)(e.getSchema(),n.typeCondition);return Zm(e,t,i,n.selectionSet)}function CF(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case lg.Kind.FIELD:{let o=a.name.value,c;((0,$r.isObjectType)(t)||(0,$r.isInterfaceType)(t))&&(c=t.getFields()[o]);let l=a.alias?a.alias.value:o;r[l]||(r[l]=[]),r[l].push([t,a,c]);break}case lg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case lg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,FF.typeFromAST)(e.getSchema(),o):t;CF(e,c,a.selectionSet,r,i);break}}}function rz(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 fg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(hg,"__esModule",{value:!0});hg.PossibleFragmentSpreadsRule=az;var eN=Yt(),BF=He(),Eg=Pt(),UF=xd(),iz=Aa();function az(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,Eg.isCompositeType)(n)&&(0,Eg.isCompositeType)(r)&&!(0,UF.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,eN.inspect)(r),a=(0,eN.inspect)(n);e.reportError(new BF.GraphQLError(`Fragment cannot be spread here as objects of type "${i}" can never be of type "${a}".`,{nodes:t}))}},FragmentSpread(t){let n=t.name.value,r=sz(e,n),i=e.getParentType();if(r&&i&&!(0,UF.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,eN.inspect)(i),o=(0,eN.inspect)(r);e.reportError(new BF.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function sz(e,t){let n=e.getFragment(t);if(n){let r=(0,iz.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Eg.isCompositeType)(r))return r}}});var gg=w(Ig=>{"use strict";m();T();N();Object.defineProperty(Ig,"__esModule",{value:!0});Ig.PossibleTypeExtensionsRule=lz;var oz=Ho(),MF=Yt(),xF=yr(),uz=Wo(),kF=He(),In=Rt(),cz=Hu(),rl=Pt();function lz(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,cz.isTypeDefinitionNode)(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){let a=i.name.value,o=n[a],c=t==null?void 0:t.getType(a),l;if(o?l=dz[o.kind]:c&&(l=pz(c)),l){if(l!==i.kind){let p=fz(i.kind);e.reportError(new kF.GraphQLError(`Cannot extend non-${p} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let p=Object.keys(x(x({},n),t==null?void 0:t.getTypeMap())),f=(0,uz.suggestionList)(a,p);e.reportError(new kF.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,oz.didYouMean)(f),{nodes:i.name}))}}}var dz={[In.Kind.SCALAR_TYPE_DEFINITION]:In.Kind.SCALAR_TYPE_EXTENSION,[In.Kind.OBJECT_TYPE_DEFINITION]:In.Kind.OBJECT_TYPE_EXTENSION,[In.Kind.INTERFACE_TYPE_DEFINITION]:In.Kind.INTERFACE_TYPE_EXTENSION,[In.Kind.UNION_TYPE_DEFINITION]:In.Kind.UNION_TYPE_EXTENSION,[In.Kind.ENUM_TYPE_DEFINITION]:In.Kind.ENUM_TYPE_EXTENSION,[In.Kind.INPUT_OBJECT_TYPE_DEFINITION]:In.Kind.INPUT_OBJECT_TYPE_EXTENSION};function pz(e){if((0,rl.isScalarType)(e))return In.Kind.SCALAR_TYPE_EXTENSION;if((0,rl.isObjectType)(e))return In.Kind.OBJECT_TYPE_EXTENSION;if((0,rl.isInterfaceType)(e))return In.Kind.INTERFACE_TYPE_EXTENSION;if((0,rl.isUnionType)(e))return In.Kind.UNION_TYPE_EXTENSION;if((0,rl.isEnumType)(e))return In.Kind.ENUM_TYPE_EXTENSION;if((0,rl.isInputObjectType)(e))return In.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,xF.invariant)(!1,"Unexpected type: "+(0,MF.inspect)(e))}function fz(e){switch(e){case In.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case In.Kind.OBJECT_TYPE_EXTENSION:return"object";case In.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case In.Kind.UNION_TYPE_EXTENSION:return"union";case In.Kind.ENUM_TYPE_EXTENSION:return"enum";case In.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,xF.invariant)(!1,"Unexpected kind: "+(0,MF.inspect)(e))}}});var vg=w(tN=>{"use strict";m();T();N();Object.defineProperty(tN,"__esModule",{value:!0});tN.ProvidedRequiredArgumentsOnDirectivesRule=GF;tN.ProvidedRequiredArgumentsRule=Tz;var VF=Yt(),qF=zo(),jF=He(),KF=Rt(),mz=ci(),_g=Pt(),Nz=Gr();function Tz(e){return Y(x({},GF(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(a=>a.name.value));for(let a of r.args)if(!i.has(a.name)&&(0,_g.isRequiredArgument)(a)){let o=(0,VF.inspect)(a.type);e.reportError(new jF.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function GF(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Nz.specifiedDirectives;for(let c of i)n[c.name]=(0,qF.keyMap)(c.args.filter(_g.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===KF.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,qF.keyMap)(l.filter(Ez),p=>p.name.value)}return{Directive:{leave(c){let l=c.name.value,p=n[l];if(p){var f;let y=(f=c.arguments)!==null&&f!==void 0?f:[],g=new Set(y.map(v=>v.name.value));for(let[v,P]of Object.entries(p))if(!g.has(v)){let k=(0,_g.isType)(P.type)?(0,VF.inspect)(P.type):(0,mz.print)(P.type);e.reportError(new jF.GraphQLError(`Directive "@${l}" argument "${v}" of type "${k}" is required, but it was not provided.`,{nodes:c}))}}}}}}function Ez(e){return e.type.kind===KF.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var Og=w(Sg=>{"use strict";m();T();N();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.ScalarLeafsRule=hz;var $F=Yt(),QF=He(),YF=Pt();function hz(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,YF.isLeafType)((0,YF.getNamedType)(n))){if(r){let i=t.name.value,a=(0,$F.inspect)(n);e.reportError(new QF.GraphQLError(`Field "${i}" must not have a selection since type "${a}" has no subfields.`,{nodes:r}))}}else if(!r){let i=t.name.value,a=(0,$F.inspect)(n);e.reportError(new QF.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var bg=w(Dg=>{"use strict";m();T();N();Object.defineProperty(Dg,"__esModule",{value:!0});Dg.printPathArray=yz;function yz(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Xd=w(nN=>{"use strict";m();T();N();Object.defineProperty(nN,"__esModule",{value:!0});nN.addPath=Iz;nN.pathToArray=gz;function Iz(e,t,n){return{prev:e,key:t,typename:n}}function gz(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var Rg=w(Ag=>{"use strict";m();T();N();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.coerceInputValue=Az;var _z=Ho(),rN=Yt(),vz=yr(),Sz=$m(),Oz=va(),ea=Xd(),Dz=bg(),bz=Wo(),ps=He(),Zd=Pt();function Az(e,t,n=Rz){return ep(e,t,n,void 0)}function Rz(e,t,n){let r="Invalid value "+(0,rN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,Dz.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function ep(e,t,n,r){if((0,Zd.isNonNullType)(t)){if(e!=null)return ep(e,t.ofType,n,r);n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected non-nullable type "${(0,rN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Zd.isListType)(t)){let i=t.ofType;return(0,Sz.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,ea.addPath)(r,o,void 0);return ep(a,i,n,c)}):[ep(e,i,n,r)]}if((0,Zd.isInputObjectType)(t)){if(!(0,Oz.isObjectLike)(e)){n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}" to be an object.`));return}let i={},a=t.getFields();for(let o of Object.values(a)){let c=e[o.name];if(c===void 0){if(o.defaultValue!==void 0)i[o.name]=o.defaultValue;else if((0,Zd.isNonNullType)(o.type)){let l=(0,rN.inspect)(o.type);n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=ep(c,o.type,n,(0,ea.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,bz.suggestionList)(o,Object.keys(t.getFields()));n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,_z.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,ea.pathToArray)(r).concat(c),l,new ps.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,Zd.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof ps.GraphQLError?n((0,ea.pathToArray)(r),e,a):n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,ea.pathToArray)(r),e,new ps.GraphQLError(`Expected type "${t.name}".`)),i}(0,vz.invariant)(!1,"Unexpected input type: "+(0,rN.inspect)(t))}});var np=w(Pg=>{"use strict";m();T();N();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.valueFromAST=tp;var Pz=Yt(),Fz=yr(),wz=zo(),il=Rt(),zu=Pt();function tp(e,t,n){if(e){if(e.kind===il.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,zu.isNonNullType)(t)?void 0:i}if((0,zu.isNonNullType)(t))return e.kind===il.Kind.NULL?void 0:tp(e,t.ofType,n);if(e.kind===il.Kind.NULL)return null;if((0,zu.isListType)(t)){let r=t.ofType;if(e.kind===il.Kind.LIST){let a=[];for(let o of e.values)if(JF(o,n)){if((0,zu.isNonNullType)(r))return;a.push(null)}else{let c=tp(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=tp(e,r,n);return i===void 0?void 0:[i]}if((0,zu.isInputObjectType)(t)){if(e.kind!==il.Kind.OBJECT)return;let r=Object.create(null),i=(0,wz.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||JF(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,zu.isNonNullType)(a.type))return;continue}let c=tp(o.value,a.type,n);if(c===void 0)return;r[a.name]=c}if(t.isOneOf){let a=Object.keys(r);if(a.length!==1||r[a[0]]===null)return}return r}if((0,zu.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,Fz.invariant)(!1,"Unexpected input type: "+(0,Pz.inspect)(t))}}function JF(e,t){return e.kind===il.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var ol=w(rp=>{"use strict";m();T();N();Object.defineProperty(rp,"__esModule",{value:!0});rp.getArgumentValues=XF;rp.getDirectiveValues=xz;rp.getVariableValues=kz;var al=Yt(),Lz=zo(),Cz=bg(),fs=He(),HF=Rt(),zF=ci(),sl=Pt(),Bz=Rg(),Uz=Aa(),WF=np();function kz(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=Mz(e,t,n,c=>{if(a!=null&&i.length>=a)throw new fs.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:o}}catch(o){i.push(o)}return{errors:i}}function Mz(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,Uz.typeFromAST)(e,a.type);if(!(0,sl.isInputType)(c)){let p=(0,zF.print)(a.type);r(new fs.GraphQLError(`Variable "$${o}" expected value of type "${p}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!ZF(n,o)){if(a.defaultValue)i[o]=(0,WF.valueFromAST)(a.defaultValue,c);else if((0,sl.isNonNullType)(c)){let p=(0,al.inspect)(c);r(new fs.GraphQLError(`Variable "$${o}" of required type "${p}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,sl.isNonNullType)(c)){let p=(0,al.inspect)(c);r(new fs.GraphQLError(`Variable "$${o}" of non-null type "${p}" must not be null.`,{nodes:a}));continue}i[o]=(0,Bz.coerceInputValue)(l,c,(p,f,y)=>{let g=`Variable "$${o}" got invalid value `+(0,al.inspect)(f);p.length>0&&(g+=` at "${o}${(0,Cz.printPathArray)(p)}"`),r(new fs.GraphQLError(g+"; "+y.message,{nodes:a,originalError:y}))})}return i}function XF(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,Lz.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,p=c.type,f=o[l];if(!f){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of required type "${(0,al.inspect)(p)}" was not provided.`,{nodes:t});continue}let y=f.value,g=y.kind===HF.Kind.NULL;if(y.kind===HF.Kind.VARIABLE){let P=y.name.value;if(n==null||!ZF(n,P)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of required type "${(0,al.inspect)(p)}" was provided the variable "$${P}" which was not provided a runtime value.`,{nodes:y});continue}g=n[P]==null}if(g&&(0,sl.isNonNullType)(p))throw new fs.GraphQLError(`Argument "${l}" of non-null type "${(0,al.inspect)(p)}" must not be null.`,{nodes:y});let v=(0,WF.valueFromAST)(y,p,n);if(v===void 0)throw new fs.GraphQLError(`Argument "${l}" has invalid value ${(0,zF.print)(y)}.`,{nodes:y});i[l]=v}return i}function xz(e,t,n){var r;let i=(r=t.directives)===null||r===void 0?void 0:r.find(a=>a.name.value===e.name);if(i)return XF(e,i,n)}function ZF(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var sN=w(aN=>{"use strict";m();T();N();Object.defineProperty(aN,"__esModule",{value:!0});aN.collectFields=jz;aN.collectSubfields=Kz;var Fg=Rt(),qz=Pt(),ew=Gr(),Vz=Aa(),tw=ol();function jz(e,t,n,r,i){let a=new Map;return iN(e,t,n,r,i,a,new Set),a}function Kz(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&iN(e,t,n,r,c.selectionSet,a,o);return a}function iN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case Fg.Kind.FIELD:{if(!wg(n,c))continue;let l=Gz(c),p=a.get(l);p!==void 0?p.push(c):a.set(l,[c]);break}case Fg.Kind.INLINE_FRAGMENT:{if(!wg(n,c)||!nw(e,c,r))continue;iN(e,t,n,r,c.selectionSet,a,o);break}case Fg.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!wg(n,c))continue;o.add(l);let p=t[l];if(!p||!nw(e,p,r))continue;iN(e,t,n,r,p.selectionSet,a,o);break}}}function wg(e,t){let n=(0,tw.getDirectiveValues)(ew.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,tw.getDirectiveValues)(ew.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function nw(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Vz.typeFromAST)(e,r);return i===n?!0:(0,qz.isAbstractType)(i)?e.isSubType(i,n):!1}function Gz(e){return e.alias?e.alias.value:e.name.value}});var Cg=w(Lg=>{"use strict";m();T();N();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.SingleFieldSubscriptionsRule=Yz;var rw=He(),$z=Rt(),Qz=sN();function Yz(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,a=Object.create(null),o=e.getDocument(),c=Object.create(null);for(let p of o.definitions)p.kind===$z.Kind.FRAGMENT_DEFINITION&&(c[p.name.value]=p);let l=(0,Qz.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new rw.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:y}))}for(let p of l.values())p[0].name.value.startsWith("__")&&e.reportError(new rw.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:p}))}}}}}});var oN=w(Bg=>{"use strict";m();T();N();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.groupBy=Jz;function Jz(e,t){let n=new Map;for(let r of e){let i=t(r),a=n.get(i);a===void 0?n.set(i,[r]):a.push(r)}return n}});var kg=w(Ug=>{"use strict";m();T();N();Object.defineProperty(Ug,"__esModule",{value:!0});Ug.UniqueArgumentDefinitionNamesRule=Wz;var Hz=oN(),zz=He();function Wz(e){return{DirectiveDefinition(r){var i;let a=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,a)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;let a=r.name.value,o=(i=r.fields)!==null&&i!==void 0?i:[];for(let l of o){var c;let p=l.name.value,f=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${p}`,f)}return!1}function n(r,i){let a=(0,Hz.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new zz.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var xg=w(Mg=>{"use strict";m();T();N();Object.defineProperty(Mg,"__esModule",{value:!0});Mg.UniqueArgumentNamesRule=e4;var Xz=oN(),Zz=He();function e4(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,Xz.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new Zz.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var Vg=w(qg=>{"use strict";m();T();N();Object.defineProperty(qg,"__esModule",{value:!0});qg.UniqueDirectiveNamesRule=t4;var iw=He();function t4(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 iw.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new iw.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var Gg=w(Kg=>{"use strict";m();T();N();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.UniqueDirectivesPerLocationRule=i4;var n4=He(),jg=Rt(),aw=Hu(),r4=Gr();function i4(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():r4.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===jg.Kind.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);let a=Object.create(null),o=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let l;if(c.kind===jg.Kind.SCHEMA_DEFINITION||c.kind===jg.Kind.SCHEMA_EXTENSION)l=a;else if((0,aw.isTypeDefinitionNode)(c)||(0,aw.isTypeExtensionNode)(c)){let p=c.name.value;l=o[p],l===void 0&&(o[p]=l=Object.create(null))}else l=Object.create(null);for(let p of c.directives){let f=p.name.value;t[f]&&(l[f]?e.reportError(new n4.GraphQLError(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],p]})):l[f]=p)}}}}});var Qg=w($g=>{"use strict";m();T();N();Object.defineProperty($g,"__esModule",{value:!0});$g.UniqueEnumValueNamesRule=s4;var sw=He(),a4=Pt();function s4(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.values)!==null&&o!==void 0?o:[],p=r[c];for(let f of l){let y=f.name.value,g=n[c];(0,a4.isEnumType)(g)&&g.getValue(y)?e.reportError(new sw.GraphQLError(`Enum value "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):p[y]?e.reportError(new sw.GraphQLError(`Enum value "${c}.${y}" can only be defined once.`,{nodes:[p[y],f.name]})):p[y]=f.name}return!1}}});var Hg=w(Jg=>{"use strict";m();T();N();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.UniqueFieldDefinitionNamesRule=o4;var ow=He(),Yg=Pt();function o4(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(a){var o;let c=a.name.value;r[c]||(r[c]=Object.create(null));let l=(o=a.fields)!==null&&o!==void 0?o:[],p=r[c];for(let f of l){let y=f.name.value;u4(n[c],y)?e.reportError(new ow.GraphQLError(`Field "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):p[y]?e.reportError(new ow.GraphQLError(`Field "${c}.${y}" can only be defined once.`,{nodes:[p[y],f.name]})):p[y]=f.name}return!1}}function u4(e,t){return(0,Yg.isObjectType)(e)||(0,Yg.isInterfaceType)(e)||(0,Yg.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var Wg=w(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.UniqueFragmentNamesRule=l4;var c4=He();function l4(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new c4.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var Zg=w(Xg=>{"use strict";m();T();N();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.UniqueInputFieldNamesRule=f4;var d4=yr(),p4=He();function f4(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,d4.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new p4.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var t_=w(e_=>{"use strict";m();T();N();Object.defineProperty(e_,"__esModule",{value:!0});e_.UniqueOperationNamesRule=N4;var m4=He();function N4(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new m4.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var r_=w(n_=>{"use strict";m();T();N();Object.defineProperty(n_,"__esModule",{value:!0});n_.UniqueOperationTypesRule=T4;var uw=He();function T4(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(a){var o;let c=(o=a.operationTypes)!==null&&o!==void 0?o:[];for(let l of c){let p=l.operation,f=n[p];r[p]?e.reportError(new uw.GraphQLError(`Type for ${p} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new uw.GraphQLError(`There can be only one ${p} type in schema.`,{nodes:[f,l]})):n[p]=l}return!1}}});var a_=w(i_=>{"use strict";m();T();N();Object.defineProperty(i_,"__esModule",{value:!0});i_.UniqueTypeNamesRule=E4;var cw=He();function E4(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 a=i.name.value;if(n!=null&&n.getType(a)){e.reportError(new cw.GraphQLError(`Type "${a}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[a]?e.reportError(new cw.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var o_=w(s_=>{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.UniqueVariableNamesRule=I4;var h4=oN(),y4=He();function I4(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,h4.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new y4.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var l_=w(c_=>{"use strict";m();T();N();Object.defineProperty(c_,"__esModule",{value:!0});c_.ValuesOfCorrectTypeRule=S4;var g4=Ho(),ip=Yt(),_4=zo(),v4=Wo(),Pa=He(),u_=Rt(),uN=ci(),Ra=Pt();function S4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Ra.getNullableType)(e.getParentInputType());if(!(0,Ra.isListType)(r))return Wu(e,n),!1},ObjectValue(n){let r=(0,Ra.getNamedType)(e.getInputType());if(!(0,Ra.isInputObjectType)(r))return Wu(e,n),!1;let i=(0,_4.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,Ra.isRequiredInputField)(a)){let c=(0,ip.inspect)(a.type);e.reportError(new Pa.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&O4(e,n,r,i,t)},ObjectField(n){let r=(0,Ra.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Ra.isInputObjectType)(r)){let a=(0,v4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new Pa.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,g4.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Ra.isNonNullType)(r)&&e.reportError(new Pa.GraphQLError(`Expected value of type "${(0,ip.inspect)(r)}", found ${(0,uN.print)(n)}.`,{nodes:n}))},EnumValue:n=>Wu(e,n),IntValue:n=>Wu(e,n),FloatValue:n=>Wu(e,n),StringValue:n=>Wu(e,n),BooleanValue:n=>Wu(e,n)}}function Wu(e,t){let n=e.getInputType();if(!n)return;let r=(0,Ra.getNamedType)(n);if(!(0,Ra.isLeafType)(r)){let i=(0,ip.inspect)(n);e.reportError(new Pa.GraphQLError(`Expected value of type "${i}", found ${(0,uN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,ip.inspect)(n);e.reportError(new Pa.GraphQLError(`Expected value of type "${a}", found ${(0,uN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,ip.inspect)(n);i instanceof Pa.GraphQLError?e.reportError(i):e.reportError(new Pa.GraphQLError(`Expected value of type "${a}", found ${(0,uN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function O4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new Pa.GraphQLError(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}let l=(a=r[o[0]])===null||a===void 0?void 0:a.value,p=!l||l.kind===u_.Kind.NULL,f=(l==null?void 0:l.kind)===u_.Kind.VARIABLE;if(p){e.reportError(new Pa.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(f){let y=l.name.value;i[y].type.kind!==u_.Kind.NON_NULL_TYPE&&e.reportError(new Pa.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var p_=w(d_=>{"use strict";m();T();N();Object.defineProperty(d_,"__esModule",{value:!0});d_.VariablesAreInputTypesRule=P4;var D4=He(),b4=ci(),A4=Pt(),R4=Aa();function P4(e){return{VariableDefinition(t){let n=(0,R4.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,A4.isInputType)(n)){let r=t.variable.name.value,i=(0,b4.print)(t.type);e.reportError(new D4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var m_=w(f_=>{"use strict";m();T();N();Object.defineProperty(f_,"__esModule",{value:!0});f_.VariablesInAllowedPositionRule=C4;var lw=Yt(),F4=He(),w4=Rt(),dw=Pt(),pw=xd(),L4=Aa();function C4(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:a,defaultValue:o}of r){let c=i.name.value,l=t[c];if(l&&a){let p=e.getSchema(),f=(0,L4.typeFromAST)(p,l.type);if(f&&!B4(p,f,l.defaultValue,a,o)){let y=(0,lw.inspect)(f),g=(0,lw.inspect)(a);e.reportError(new F4.GraphQLError(`Variable "$${c}" of type "${y}" used in position expecting type "${g}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function B4(e,t,n,r,i){if((0,dw.isNonNullType)(r)&&!(0,dw.isNonNullType)(t)){if(!(n!=null&&n.kind!==w4.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,pw.isTypeSubTypeOf)(e,t,c)}return(0,pw.isTypeSubTypeOf)(e,t,r)}});var N_=w(tu=>{"use strict";m();T();N();Object.defineProperty(tu,"__esModule",{value:!0});tu.specifiedSDLRules=tu.specifiedRules=tu.recommendedRules=void 0;var U4=wI(),k4=CI(),M4=UI(),fw=kI(),mw=VI(),x4=KI(),Nw=QI(),q4=JI(),V4=zI(),j4=XI(),K4=eg(),G4=ng(),$4=ig(),Q4=sg(),Y4=Tg(),J4=yg(),H4=gg(),Tw=vg(),z4=Og(),W4=Cg(),X4=kg(),Ew=xg(),Z4=Vg(),hw=Gg(),eW=Qg(),tW=Hg(),nW=Wg(),yw=Zg(),rW=t_(),iW=r_(),aW=a_(),sW=o_(),oW=l_(),uW=p_(),cW=m_(),Iw=Object.freeze([j4.MaxIntrospectionDepthRule]);tu.recommendedRules=Iw;var lW=Object.freeze([U4.ExecutableDefinitionsRule,rW.UniqueOperationNamesRule,q4.LoneAnonymousOperationRule,W4.SingleFieldSubscriptionsRule,Nw.KnownTypeNamesRule,M4.FragmentsOnCompositeTypesRule,uW.VariablesAreInputTypesRule,z4.ScalarLeafsRule,k4.FieldsOnCorrectTypeRule,nW.UniqueFragmentNamesRule,x4.KnownFragmentNamesRule,$4.NoUnusedFragmentsRule,J4.PossibleFragmentSpreadsRule,K4.NoFragmentCyclesRule,sW.UniqueVariableNamesRule,G4.NoUndefinedVariablesRule,Q4.NoUnusedVariablesRule,mw.KnownDirectivesRule,hw.UniqueDirectivesPerLocationRule,fw.KnownArgumentNamesRule,Ew.UniqueArgumentNamesRule,oW.ValuesOfCorrectTypeRule,Tw.ProvidedRequiredArgumentsRule,cW.VariablesInAllowedPositionRule,Y4.OverlappingFieldsCanBeMergedRule,yw.UniqueInputFieldNamesRule,...Iw]);tu.specifiedRules=lW;var dW=Object.freeze([V4.LoneSchemaDefinitionRule,iW.UniqueOperationTypesRule,aW.UniqueTypeNamesRule,eW.UniqueEnumValueNamesRule,tW.UniqueFieldDefinitionNamesRule,X4.UniqueArgumentDefinitionNamesRule,Z4.UniqueDirectiveNamesRule,Nw.KnownTypeNamesRule,mw.KnownDirectivesRule,hw.UniqueDirectivesPerLocationRule,H4.PossibleTypeExtensionsRule,fw.KnownArgumentNamesOnDirectivesRule,Ew.UniqueArgumentNamesRule,yw.UniqueInputFieldNamesRule,Tw.ProvidedRequiredArgumentsOnDirectivesRule]);tu.specifiedSDLRules=dW});var h_=w(nu=>{"use strict";m();T();N();Object.defineProperty(nu,"__esModule",{value:!0});nu.ValidationContext=nu.SDLValidationContext=nu.ASTValidationContext=void 0;var gw=Rt(),pW=Vu(),_w=Hm(),ap=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===gw.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 a of i.selections)a.kind===gw.Kind.FRAGMENT_SPREAD?n.push(a):a.selectionSet&&r.push(a.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],a;for(;a=i.pop();)for(let o of this.getFragmentSpreads(a)){let c=o.name.value;if(r[c]!==!0){r[c]=!0;let l=this.getFragment(c);l&&(n.push(l),i.push(l.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}};nu.ASTValidationContext=ap;var T_=class extends ap{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};nu.SDLValidationContext=T_;var E_=class extends ap{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 _w.TypeInfo(this._schema);(0,pW.visit)(t,(0,_w.visitWithTypeInfo)(i,{VariableDefinition:()=>!1,Variable(a){r.push({node:a,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()}};nu.ValidationContext=E_});var cl=w(ul=>{"use strict";m();T();N();Object.defineProperty(ul,"__esModule",{value:!0});ul.assertValidSDL=EW;ul.assertValidSDLExtension=hW;ul.validate=TW;ul.validateSDL=y_;var fW=Lr(),mW=He(),cN=Vu(),NW=Hd(),vw=Hm(),Sw=N_(),Ow=h_();function TW(e,t,n=Sw.specifiedRules,r,i=new vw.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,fW.devAssert)(!1,"Must provide document."),(0,NW.assertValidSchema)(e);let c=Object.freeze({}),l=[],p=new Ow.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new mW.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(y)}),f=(0,cN.visitInParallel)(n.map(y=>y(p)));try{(0,cN.visit)(t,(0,vw.visitWithTypeInfo)(i,f))}catch(y){if(y!==c)throw y}return l}function y_(e,t,n=Sw.specifiedSDLRules){let r=[],i=new Ow.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,cN.visit)(e,(0,cN.visitInParallel)(a)),r}function EW(e){let t=y_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` `))}function hW(e,t){let n=y_(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}});var Dw=w(I_=>{"use strict";m();T();N();Object.defineProperty(I_,"__esModule",{value:!0});I_.memoize3=yW;function yW(e){let t;return function(r,i,a){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let c=o.get(i);c===void 0&&(c=new WeakMap,o.set(i,c));let l=c.get(a);return l===void 0&&(l=e(r,i,a),c.set(a,l)),l}}});var bw=w(g_=>{"use strict";m();T();N();Object.defineProperty(g_,"__esModule",{value:!0});g_.promiseForObject=IW;function IW(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 Aw=w(__=>{"use strict";m();T();N();Object.defineProperty(__,"__esModule",{value:!0});__.promiseReduce=_W;var gW=dm();function _W(e,t,n){let r=n;for(let i of e)r=(0,gW.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var Rw=w(S_=>{"use strict";m();T();N();Object.defineProperty(S_,"__esModule",{value:!0});S_.toError=SW;var vW=Yt();function SW(e){return e instanceof Error?e:new v_(e)}var v_=class extends Error{constructor(t){super("Unexpected error value: "+(0,vW.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var lN=w(O_=>{"use strict";m();T();N();Object.defineProperty(O_,"__esModule",{value:!0});O_.locatedError=bW;var OW=Rw(),DW=He();function bW(e,t,n){var r;let i=(0,OW.toError)(e);return AW(i)?i:new DW.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function AW(e){return Array.isArray(e.path)}});var op=w(Fi=>{"use strict";m();T();N();Object.defineProperty(Fi,"__esModule",{value:!0});Fi.assertValidExecutionArguments=kw;Fi.buildExecutionContext=Mw;Fi.buildResolveInfo=qw;Fi.defaultTypeResolver=Fi.defaultFieldResolver=void 0;Fi.execute=Uw;Fi.executeSync=BW;Fi.getFieldDef=jw;var b_=Lr(),Xu=Yt(),RW=yr(),PW=$m(),P_=va(),ta=dm(),FW=Dw(),Zu=Xd(),Pw=bw(),wW=Aw(),Pi=He(),pN=lN(),D_=Sa(),Fw=Rt(),ru=Pt(),ll=Ai(),LW=Hd(),Cw=sN(),Bw=ol(),CW=(0,FW.memoize3)((e,t,n)=>(0,Cw.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function Uw(e){arguments.length<2||(0,b_.devAssert)(!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;kw(t,n,r);let a=Mw(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=UW(a,o,i);return(0,ta.isPromise)(c)?c.then(l=>dN(l,a.errors),l=>(a.errors.push(l),dN(null,a.errors))):dN(c,a.errors)}catch(o){return a.errors.push(o),dN(null,a.errors)}}function BW(e){let t=Uw(e);if((0,ta.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function dN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function kw(e,t,n){t||(0,b_.devAssert)(!1,"Must provide document."),(0,LW.assertValidSchema)(e),n==null||(0,P_.isObjectLike)(n)||(0,b_.devAssert)(!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 Mw(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:p,typeResolver:f,subscribeFieldResolver:y}=e,g,v=Object.create(null);for(let K of i.definitions)switch(K.kind){case Fw.Kind.OPERATION_DEFINITION:if(l==null){if(g!==void 0)return[new Pi.GraphQLError("Must provide operation name if query contains multiple operations.")];g=K}else((t=K.name)===null||t===void 0?void 0:t.value)===l&&(g=K);break;case Fw.Kind.FRAGMENT_DEFINITION:v[K.name.value]=K;break;default:}if(!g)return l!=null?[new Pi.GraphQLError(`Unknown operation named "${l}".`)]:[new Pi.GraphQLError("Must provide an operation.")];let P=(n=g.variableDefinitions)!==null&&n!==void 0?n:[],M=(0,Bw.getVariableValues)(r,P,c!=null?c:{},{maxErrors:50});return M.errors?M.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:g,variableValues:M.coerced,fieldResolver:p!=null?p:R_,typeResolver:f!=null?f:Vw,subscribeFieldResolver:y!=null?y:R_,errors:[]}}function UW(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Pi.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,Cw.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case D_.OperationTypeNode.QUERY:return fN(e,r,n,a,i);case D_.OperationTypeNode.MUTATION:return kW(e,r,n,a,i);case D_.OperationTypeNode.SUBSCRIPTION:return fN(e,r,n,a,i)}}function kW(e,t,n,r,i){return(0,wW.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,Zu.addPath)(r,o,t.name),p=xw(e,t,n,c,l);return p===void 0?a:(0,ta.isPromise)(p)?p.then(f=>(a[o]=f,a)):(a[o]=p,a)},Object.create(null))}function fN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let p=(0,Zu.addPath)(r,c,t.name),f=xw(e,t,n,l,p);f!==void 0&&(a[c]=f,(0,ta.isPromise)(f)&&(o=!0))}}catch(c){if(o)return(0,Pw.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,Pw.promiseForObject)(a):a}function xw(e,t,n,r,i){var a;let o=jw(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,p=qw(e,o,r,t,i);try{let f=(0,Bw.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,g=l(n,f,y,p),v;return(0,ta.isPromise)(g)?v=g.then(P=>sp(e,c,r,p,i,P)):v=sp(e,c,r,p,i,g),(0,ta.isPromise)(v)?v.then(void 0,P=>{let M=(0,pN.locatedError)(P,r,(0,Zu.pathToArray)(i));return mN(M,c,e)}):v}catch(f){let y=(0,pN.locatedError)(f,r,(0,Zu.pathToArray)(i));return mN(y,c,e)}}function qw(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 mN(e,t,n){if((0,ru.isNonNullType)(t))throw e;return n.errors.push(e),null}function sp(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,ru.isNonNullType)(t)){let o=sp(e,t.ofType,n,r,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(a==null)return null;if((0,ru.isListType)(t))return MW(e,t,n,r,i,a);if((0,ru.isLeafType)(t))return xW(t,a);if((0,ru.isAbstractType)(t))return qW(e,t,n,r,i,a);if((0,ru.isObjectType)(t))return A_(e,t,n,r,i,a);(0,RW.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Xu.inspect)(t))}function MW(e,t,n,r,i,a){if(!(0,PW.isIterableObject)(a))throw new Pi.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,c=!1,l=Array.from(a,(p,f)=>{let y=(0,Zu.addPath)(i,f,void 0);try{let g;return(0,ta.isPromise)(p)?g=p.then(v=>sp(e,o,n,r,y,v)):g=sp(e,o,n,r,y,p),(0,ta.isPromise)(g)?(c=!0,g.then(void 0,v=>{let P=(0,pN.locatedError)(v,n,(0,Zu.pathToArray)(y));return mN(P,o,e)})):g}catch(g){let v=(0,pN.locatedError)(g,n,(0,Zu.pathToArray)(y));return mN(v,o,e)}});return c?Promise.all(l):l}function xW(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Xu.inspect)(e)}.serialize(${(0,Xu.inspect)(t)})\` to return non-nullable value, returned: ${(0,Xu.inspect)(n)}`);return n}function qW(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,p=c(a,l,r,t);return(0,ta.isPromise)(p)?p.then(f=>A_(e,ww(f,e,t,n,r,a),n,r,i,a)):A_(e,ww(p,e,t,n,r,a),n,r,i,a)}function ww(e,t,n,r,i,a){if(e==null)throw new Pi.GraphQLError(`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((0,ru.isObjectType)(e))throw new Pi.GraphQLError("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 Pi.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Xu.inspect)(a)}, received "${(0,Xu.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Pi.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,ru.isObjectType)(o))throw new Pi.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Pi.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function A_(e,t,n,r,i,a){let o=CW(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,ta.isPromise)(c))return c.then(l=>{if(!l)throw Lw(t,a,n);return fN(e,t,a,i,o)});if(!c)throw Lw(t,a,n)}return fN(e,t,a,i,o)}function Lw(e,t,n){return new Pi.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Xu.inspect)(t)}.`,{nodes:n})}var Vw=function(e,t,n,r){if((0,P_.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let c=0;c{"use strict";m();T();N();Object.defineProperty(NN,"__esModule",{value:!0});NN.graphql=YW;NN.graphqlSync=JW;var VW=Lr(),jW=dm(),KW=Wc(),GW=Hd(),$W=cl(),QW=op();function YW(e){return new Promise(t=>t(Kw(e)))}function JW(e){let t=Kw(e);if((0,jW.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Kw(e){arguments.length<2||(0,VW.devAssert)(!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:a,operationName:o,fieldResolver:c,typeResolver:l}=e,p=(0,GW.validateSchema)(t);if(p.length>0)return{errors:p};let f;try{f=(0,KW.parse)(n)}catch(g){return{errors:[g]}}let y=(0,$W.validate)(t,f);return y.length>0?{errors:y}:(0,QW.execute)({schema:t,document:f,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var Yw=w(ye=>{"use strict";m();T();N();Object.defineProperty(ye,"__esModule",{value:!0});Object.defineProperty(ye,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return na.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ye,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ms.GRAPHQL_MAX_INT}});Object.defineProperty(ye,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ms.GRAPHQL_MIN_INT}});Object.defineProperty(ye,"GraphQLBoolean",{enumerable:!0,get:function(){return ms.GraphQLBoolean}});Object.defineProperty(ye,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return na.GraphQLDeprecatedDirective}});Object.defineProperty(ye,"GraphQLDirective",{enumerable:!0,get:function(){return na.GraphQLDirective}});Object.defineProperty(ye,"GraphQLEnumType",{enumerable:!0,get:function(){return tt.GraphQLEnumType}});Object.defineProperty(ye,"GraphQLFloat",{enumerable:!0,get:function(){return ms.GraphQLFloat}});Object.defineProperty(ye,"GraphQLID",{enumerable:!0,get:function(){return ms.GraphQLID}});Object.defineProperty(ye,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return na.GraphQLIncludeDirective}});Object.defineProperty(ye,"GraphQLInputObjectType",{enumerable:!0,get:function(){return tt.GraphQLInputObjectType}});Object.defineProperty(ye,"GraphQLInt",{enumerable:!0,get:function(){return ms.GraphQLInt}});Object.defineProperty(ye,"GraphQLInterfaceType",{enumerable:!0,get:function(){return tt.GraphQLInterfaceType}});Object.defineProperty(ye,"GraphQLList",{enumerable:!0,get:function(){return tt.GraphQLList}});Object.defineProperty(ye,"GraphQLNonNull",{enumerable:!0,get:function(){return tt.GraphQLNonNull}});Object.defineProperty(ye,"GraphQLObjectType",{enumerable:!0,get:function(){return tt.GraphQLObjectType}});Object.defineProperty(ye,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return na.GraphQLOneOfDirective}});Object.defineProperty(ye,"GraphQLScalarType",{enumerable:!0,get:function(){return tt.GraphQLScalarType}});Object.defineProperty(ye,"GraphQLSchema",{enumerable:!0,get:function(){return F_.GraphQLSchema}});Object.defineProperty(ye,"GraphQLSkipDirective",{enumerable:!0,get:function(){return na.GraphQLSkipDirective}});Object.defineProperty(ye,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return na.GraphQLSpecifiedByDirective}});Object.defineProperty(ye,"GraphQLString",{enumerable:!0,get:function(){return ms.GraphQLString}});Object.defineProperty(ye,"GraphQLUnionType",{enumerable:!0,get:function(){return tt.GraphQLUnionType}});Object.defineProperty(ye,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Qr.SchemaMetaFieldDef}});Object.defineProperty(ye,"TypeKind",{enumerable:!0,get:function(){return Qr.TypeKind}});Object.defineProperty(ye,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Qr.TypeMetaFieldDef}});Object.defineProperty(ye,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Qr.TypeNameMetaFieldDef}});Object.defineProperty(ye,"__Directive",{enumerable:!0,get:function(){return Qr.__Directive}});Object.defineProperty(ye,"__DirectiveLocation",{enumerable:!0,get:function(){return Qr.__DirectiveLocation}});Object.defineProperty(ye,"__EnumValue",{enumerable:!0,get:function(){return Qr.__EnumValue}});Object.defineProperty(ye,"__Field",{enumerable:!0,get:function(){return Qr.__Field}});Object.defineProperty(ye,"__InputValue",{enumerable:!0,get:function(){return Qr.__InputValue}});Object.defineProperty(ye,"__Schema",{enumerable:!0,get:function(){return Qr.__Schema}});Object.defineProperty(ye,"__Type",{enumerable:!0,get:function(){return Qr.__Type}});Object.defineProperty(ye,"__TypeKind",{enumerable:!0,get:function(){return Qr.__TypeKind}});Object.defineProperty(ye,"assertAbstractType",{enumerable:!0,get:function(){return tt.assertAbstractType}});Object.defineProperty(ye,"assertCompositeType",{enumerable:!0,get:function(){return tt.assertCompositeType}});Object.defineProperty(ye,"assertDirective",{enumerable:!0,get:function(){return na.assertDirective}});Object.defineProperty(ye,"assertEnumType",{enumerable:!0,get:function(){return tt.assertEnumType}});Object.defineProperty(ye,"assertEnumValueName",{enumerable:!0,get:function(){return Qw.assertEnumValueName}});Object.defineProperty(ye,"assertInputObjectType",{enumerable:!0,get:function(){return tt.assertInputObjectType}});Object.defineProperty(ye,"assertInputType",{enumerable:!0,get:function(){return tt.assertInputType}});Object.defineProperty(ye,"assertInterfaceType",{enumerable:!0,get:function(){return tt.assertInterfaceType}});Object.defineProperty(ye,"assertLeafType",{enumerable:!0,get:function(){return tt.assertLeafType}});Object.defineProperty(ye,"assertListType",{enumerable:!0,get:function(){return tt.assertListType}});Object.defineProperty(ye,"assertName",{enumerable:!0,get:function(){return Qw.assertName}});Object.defineProperty(ye,"assertNamedType",{enumerable:!0,get:function(){return tt.assertNamedType}});Object.defineProperty(ye,"assertNonNullType",{enumerable:!0,get:function(){return tt.assertNonNullType}});Object.defineProperty(ye,"assertNullableType",{enumerable:!0,get:function(){return tt.assertNullableType}});Object.defineProperty(ye,"assertObjectType",{enumerable:!0,get:function(){return tt.assertObjectType}});Object.defineProperty(ye,"assertOutputType",{enumerable:!0,get:function(){return tt.assertOutputType}});Object.defineProperty(ye,"assertScalarType",{enumerable:!0,get:function(){return tt.assertScalarType}});Object.defineProperty(ye,"assertSchema",{enumerable:!0,get:function(){return F_.assertSchema}});Object.defineProperty(ye,"assertType",{enumerable:!0,get:function(){return tt.assertType}});Object.defineProperty(ye,"assertUnionType",{enumerable:!0,get:function(){return tt.assertUnionType}});Object.defineProperty(ye,"assertValidSchema",{enumerable:!0,get:function(){return $w.assertValidSchema}});Object.defineProperty(ye,"assertWrappingType",{enumerable:!0,get:function(){return tt.assertWrappingType}});Object.defineProperty(ye,"getNamedType",{enumerable:!0,get:function(){return tt.getNamedType}});Object.defineProperty(ye,"getNullableType",{enumerable:!0,get:function(){return tt.getNullableType}});Object.defineProperty(ye,"introspectionTypes",{enumerable:!0,get:function(){return Qr.introspectionTypes}});Object.defineProperty(ye,"isAbstractType",{enumerable:!0,get:function(){return tt.isAbstractType}});Object.defineProperty(ye,"isCompositeType",{enumerable:!0,get:function(){return tt.isCompositeType}});Object.defineProperty(ye,"isDirective",{enumerable:!0,get:function(){return na.isDirective}});Object.defineProperty(ye,"isEnumType",{enumerable:!0,get:function(){return tt.isEnumType}});Object.defineProperty(ye,"isInputObjectType",{enumerable:!0,get:function(){return tt.isInputObjectType}});Object.defineProperty(ye,"isInputType",{enumerable:!0,get:function(){return tt.isInputType}});Object.defineProperty(ye,"isInterfaceType",{enumerable:!0,get:function(){return tt.isInterfaceType}});Object.defineProperty(ye,"isIntrospectionType",{enumerable:!0,get:function(){return Qr.isIntrospectionType}});Object.defineProperty(ye,"isLeafType",{enumerable:!0,get:function(){return tt.isLeafType}});Object.defineProperty(ye,"isListType",{enumerable:!0,get:function(){return tt.isListType}});Object.defineProperty(ye,"isNamedType",{enumerable:!0,get:function(){return tt.isNamedType}});Object.defineProperty(ye,"isNonNullType",{enumerable:!0,get:function(){return tt.isNonNullType}});Object.defineProperty(ye,"isNullableType",{enumerable:!0,get:function(){return tt.isNullableType}});Object.defineProperty(ye,"isObjectType",{enumerable:!0,get:function(){return tt.isObjectType}});Object.defineProperty(ye,"isOutputType",{enumerable:!0,get:function(){return tt.isOutputType}});Object.defineProperty(ye,"isRequiredArgument",{enumerable:!0,get:function(){return tt.isRequiredArgument}});Object.defineProperty(ye,"isRequiredInputField",{enumerable:!0,get:function(){return tt.isRequiredInputField}});Object.defineProperty(ye,"isScalarType",{enumerable:!0,get:function(){return tt.isScalarType}});Object.defineProperty(ye,"isSchema",{enumerable:!0,get:function(){return F_.isSchema}});Object.defineProperty(ye,"isSpecifiedDirective",{enumerable:!0,get:function(){return na.isSpecifiedDirective}});Object.defineProperty(ye,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ms.isSpecifiedScalarType}});Object.defineProperty(ye,"isType",{enumerable:!0,get:function(){return tt.isType}});Object.defineProperty(ye,"isUnionType",{enumerable:!0,get:function(){return tt.isUnionType}});Object.defineProperty(ye,"isWrappingType",{enumerable:!0,get:function(){return tt.isWrappingType}});Object.defineProperty(ye,"resolveObjMapThunk",{enumerable:!0,get:function(){return tt.resolveObjMapThunk}});Object.defineProperty(ye,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return tt.resolveReadonlyArrayThunk}});Object.defineProperty(ye,"specifiedDirectives",{enumerable:!0,get:function(){return na.specifiedDirectives}});Object.defineProperty(ye,"specifiedScalarTypes",{enumerable:!0,get:function(){return ms.specifiedScalarTypes}});Object.defineProperty(ye,"validateSchema",{enumerable:!0,get:function(){return $w.validateSchema}});var F_=Yu(),tt=Pt(),na=Gr(),ms=ba(),Qr=Ai(),$w=Hd(),Qw=Cd()});var Hw=w(Ct=>{"use strict";m();T();N();Object.defineProperty(Ct,"__esModule",{value:!0});Object.defineProperty(Ct,"BREAK",{enumerable:!0,get:function(){return up.BREAK}});Object.defineProperty(Ct,"DirectiveLocation",{enumerable:!0,get:function(){return t8.DirectiveLocation}});Object.defineProperty(Ct,"Kind",{enumerable:!0,get:function(){return WW.Kind}});Object.defineProperty(Ct,"Lexer",{enumerable:!0,get:function(){return ZW.Lexer}});Object.defineProperty(Ct,"Location",{enumerable:!0,get:function(){return w_.Location}});Object.defineProperty(Ct,"OperationTypeNode",{enumerable:!0,get:function(){return w_.OperationTypeNode}});Object.defineProperty(Ct,"Source",{enumerable:!0,get:function(){return HW.Source}});Object.defineProperty(Ct,"Token",{enumerable:!0,get:function(){return w_.Token}});Object.defineProperty(Ct,"TokenKind",{enumerable:!0,get:function(){return XW.TokenKind}});Object.defineProperty(Ct,"getEnterLeaveForKind",{enumerable:!0,get:function(){return up.getEnterLeaveForKind}});Object.defineProperty(Ct,"getLocation",{enumerable:!0,get:function(){return zW.getLocation}});Object.defineProperty(Ct,"getVisitFn",{enumerable:!0,get:function(){return up.getVisitFn}});Object.defineProperty(Ct,"isConstValueNode",{enumerable:!0,get:function(){return Fa.isConstValueNode}});Object.defineProperty(Ct,"isDefinitionNode",{enumerable:!0,get:function(){return Fa.isDefinitionNode}});Object.defineProperty(Ct,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Fa.isExecutableDefinitionNode}});Object.defineProperty(Ct,"isSelectionNode",{enumerable:!0,get:function(){return Fa.isSelectionNode}});Object.defineProperty(Ct,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Fa.isTypeDefinitionNode}});Object.defineProperty(Ct,"isTypeExtensionNode",{enumerable:!0,get:function(){return Fa.isTypeExtensionNode}});Object.defineProperty(Ct,"isTypeNode",{enumerable:!0,get:function(){return Fa.isTypeNode}});Object.defineProperty(Ct,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Fa.isTypeSystemDefinitionNode}});Object.defineProperty(Ct,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Fa.isTypeSystemExtensionNode}});Object.defineProperty(Ct,"isValueNode",{enumerable:!0,get:function(){return Fa.isValueNode}});Object.defineProperty(Ct,"parse",{enumerable:!0,get:function(){return TN.parse}});Object.defineProperty(Ct,"parseConstValue",{enumerable:!0,get:function(){return TN.parseConstValue}});Object.defineProperty(Ct,"parseType",{enumerable:!0,get:function(){return TN.parseType}});Object.defineProperty(Ct,"parseValue",{enumerable:!0,get:function(){return TN.parseValue}});Object.defineProperty(Ct,"print",{enumerable:!0,get:function(){return e8.print}});Object.defineProperty(Ct,"printLocation",{enumerable:!0,get:function(){return Jw.printLocation}});Object.defineProperty(Ct,"printSourceLocation",{enumerable:!0,get:function(){return Jw.printSourceLocation}});Object.defineProperty(Ct,"visit",{enumerable:!0,get:function(){return up.visit}});Object.defineProperty(Ct,"visitInParallel",{enumerable:!0,get:function(){return up.visitInParallel}});var HW=gm(),zW=pm(),Jw=Ay(),WW=Rt(),XW=Dd(),ZW=Em(),TN=Wc(),e8=ci(),up=Vu(),w_=Sa(),Fa=Hu(),t8=Hc()});var zw=w(L_=>{"use strict";m();T();N();Object.defineProperty(L_,"__esModule",{value:!0});L_.isAsyncIterable=n8;function n8(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var Ww=w(C_=>{"use strict";m();T();N();Object.defineProperty(C_,"__esModule",{value:!0});C_.mapAsyncIterator=r8;function r8(e,t){let n=e[Symbol.asyncIterator]();function r(a){return vi(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(c){}throw o}})}return{next(){return vi(this,null,function*(){return r(yield n.next())})},return(){return vi(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return vi(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var tL=w(EN=>{"use strict";m();T();N();Object.defineProperty(EN,"__esModule",{value:!0});EN.createSourceEventStream=eL;EN.subscribe=l8;var i8=Lr(),a8=Yt(),Zw=zw(),Xw=Xd(),B_=He(),s8=lN(),o8=sN(),cp=op(),u8=Ww(),c8=ol();function l8(t){return vi(this,arguments,function*(e){arguments.length<2||(0,i8.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield eL(e);if(!(0,Zw.isAsyncIterable)(n))return n;let r=i=>(0,cp.execute)(Y(x({},e),{rootValue:i}));return(0,u8.mapAsyncIterator)(n,r)})}function d8(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 eL(...e){return vi(this,null,function*(){let t=d8(e),{schema:n,document:r,variableValues:i}=t;(0,cp.assertValidExecutionArguments)(n,r,i);let a=(0,cp.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield p8(a);if(!(0,Zw.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,a8.inspect)(o)}.`);return o}catch(o){if(o instanceof B_.GraphQLError)return{errors:[o]};throw o}})}function p8(e){return vi(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new B_.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,o8.collectFields)(t,n,i,o,r.selectionSet),[l,p]=[...c.entries()][0],f=(0,cp.getFieldDef)(t,o,p[0]);if(!f){let P=p[0].name.value;throw new B_.GraphQLError(`The subscription field "${P}" is not defined.`,{nodes:p})}let y=(0,Xw.addPath)(void 0,l,o.name),g=(0,cp.buildResolveInfo)(e,f,p,o,y);try{var v;let P=(0,c8.getArgumentValues)(f,p[0],i),M=e.contextValue,G=yield((v=f.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,P,M,g);if(G instanceof Error)throw G;return G}catch(P){throw(0,s8.locatedError)(P,p,(0,Xw.pathToArray)(y))}})}});var rL=w(wi=>{"use strict";m();T();N();Object.defineProperty(wi,"__esModule",{value:!0});Object.defineProperty(wi,"createSourceEventStream",{enumerable:!0,get:function(){return nL.createSourceEventStream}});Object.defineProperty(wi,"defaultFieldResolver",{enumerable:!0,get:function(){return hN.defaultFieldResolver}});Object.defineProperty(wi,"defaultTypeResolver",{enumerable:!0,get:function(){return hN.defaultTypeResolver}});Object.defineProperty(wi,"execute",{enumerable:!0,get:function(){return hN.execute}});Object.defineProperty(wi,"executeSync",{enumerable:!0,get:function(){return hN.executeSync}});Object.defineProperty(wi,"getArgumentValues",{enumerable:!0,get:function(){return U_.getArgumentValues}});Object.defineProperty(wi,"getDirectiveValues",{enumerable:!0,get:function(){return U_.getDirectiveValues}});Object.defineProperty(wi,"getVariableValues",{enumerable:!0,get:function(){return U_.getVariableValues}});Object.defineProperty(wi,"responsePathAsArray",{enumerable:!0,get:function(){return f8.pathToArray}});Object.defineProperty(wi,"subscribe",{enumerable:!0,get:function(){return nL.subscribe}});var f8=Xd(),hN=op(),nL=tL(),U_=ol()});var iL=w(x_=>{"use strict";m();T();N();Object.defineProperty(x_,"__esModule",{value:!0});x_.NoDeprecatedCustomRule=m8;var k_=yr(),lp=He(),M_=Pt();function m8(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||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`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 lp.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,M_.getNamedType)(e.getParentInputType());if((0,M_.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new lp.GraphQLError(`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=(0,M_.getNamedType)(e.getInputType());i!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var aL=w(q_=>{"use strict";m();T();N();Object.defineProperty(q_,"__esModule",{value:!0});q_.NoSchemaIntrospectionCustomRule=h8;var N8=He(),T8=Pt(),E8=Ai();function h8(e){return{Field(t){let n=(0,T8.getNamedType)(e.getType());n&&(0,E8.isIntrospectionType)(n)&&e.reportError(new N8.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var oL=w(dt=>{"use strict";m();T();N();Object.defineProperty(dt,"__esModule",{value:!0});Object.defineProperty(dt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return g8.ExecutableDefinitionsRule}});Object.defineProperty(dt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return _8.FieldsOnCorrectTypeRule}});Object.defineProperty(dt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return v8.FragmentsOnCompositeTypesRule}});Object.defineProperty(dt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return S8.KnownArgumentNamesRule}});Object.defineProperty(dt,"KnownDirectivesRule",{enumerable:!0,get:function(){return O8.KnownDirectivesRule}});Object.defineProperty(dt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return D8.KnownFragmentNamesRule}});Object.defineProperty(dt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return b8.KnownTypeNamesRule}});Object.defineProperty(dt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return A8.LoneAnonymousOperationRule}});Object.defineProperty(dt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return J8.LoneSchemaDefinitionRule}});Object.defineProperty(dt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Y8.MaxIntrospectionDepthRule}});Object.defineProperty(dt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return n5.NoDeprecatedCustomRule}});Object.defineProperty(dt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return R8.NoFragmentCyclesRule}});Object.defineProperty(dt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return r5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(dt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return P8.NoUndefinedVariablesRule}});Object.defineProperty(dt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return F8.NoUnusedFragmentsRule}});Object.defineProperty(dt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return w8.NoUnusedVariablesRule}});Object.defineProperty(dt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return L8.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(dt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return C8.PossibleFragmentSpreadsRule}});Object.defineProperty(dt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return t5.PossibleTypeExtensionsRule}});Object.defineProperty(dt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return B8.ProvidedRequiredArgumentsRule}});Object.defineProperty(dt,"ScalarLeafsRule",{enumerable:!0,get:function(){return U8.ScalarLeafsRule}});Object.defineProperty(dt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return k8.SingleFieldSubscriptionsRule}});Object.defineProperty(dt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Z8.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(dt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return M8.UniqueArgumentNamesRule}});Object.defineProperty(dt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return e5.UniqueDirectiveNamesRule}});Object.defineProperty(dt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return x8.UniqueDirectivesPerLocationRule}});Object.defineProperty(dt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return W8.UniqueEnumValueNamesRule}});Object.defineProperty(dt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return X8.UniqueFieldDefinitionNamesRule}});Object.defineProperty(dt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return q8.UniqueFragmentNamesRule}});Object.defineProperty(dt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return V8.UniqueInputFieldNamesRule}});Object.defineProperty(dt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return j8.UniqueOperationNamesRule}});Object.defineProperty(dt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return H8.UniqueOperationTypesRule}});Object.defineProperty(dt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return z8.UniqueTypeNamesRule}});Object.defineProperty(dt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return K8.UniqueVariableNamesRule}});Object.defineProperty(dt,"ValidationContext",{enumerable:!0,get:function(){return I8.ValidationContext}});Object.defineProperty(dt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return G8.ValuesOfCorrectTypeRule}});Object.defineProperty(dt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return $8.VariablesAreInputTypesRule}});Object.defineProperty(dt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Q8.VariablesInAllowedPositionRule}});Object.defineProperty(dt,"recommendedRules",{enumerable:!0,get:function(){return sL.recommendedRules}});Object.defineProperty(dt,"specifiedRules",{enumerable:!0,get:function(){return sL.specifiedRules}});Object.defineProperty(dt,"validate",{enumerable:!0,get:function(){return y8.validate}});var y8=cl(),I8=h_(),sL=N_(),g8=wI(),_8=CI(),v8=UI(),S8=kI(),O8=VI(),D8=KI(),b8=QI(),A8=JI(),R8=eg(),P8=ng(),F8=ig(),w8=sg(),L8=Tg(),C8=yg(),B8=vg(),U8=Og(),k8=Cg(),M8=xg(),x8=Gg(),q8=Wg(),V8=Zg(),j8=t_(),K8=o_(),G8=l_(),$8=p_(),Q8=m_(),Y8=XI(),J8=zI(),H8=r_(),z8=a_(),W8=Qg(),X8=Hg(),Z8=kg(),e5=Vg(),t5=gg(),n5=iL(),r5=aL()});var uL=w(ec=>{"use strict";m();T();N();Object.defineProperty(ec,"__esModule",{value:!0});Object.defineProperty(ec,"GraphQLError",{enumerable:!0,get:function(){return V_.GraphQLError}});Object.defineProperty(ec,"formatError",{enumerable:!0,get:function(){return V_.formatError}});Object.defineProperty(ec,"locatedError",{enumerable:!0,get:function(){return a5.locatedError}});Object.defineProperty(ec,"printError",{enumerable:!0,get:function(){return V_.printError}});Object.defineProperty(ec,"syntaxError",{enumerable:!0,get:function(){return i5.syntaxError}});var V_=He(),i5=mm(),a5=lN()});var K_=w(j_=>{"use strict";m();T();N();Object.defineProperty(j_,"__esModule",{value:!0});j_.getIntrospectionQuery=s5;function s5(e){let t=x({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let c=t.oneOf?"isOneOf":"";return` +`))}});var Dw=w(I_=>{"use strict";m();T();N();Object.defineProperty(I_,"__esModule",{value:!0});I_.memoize3=yW;function yW(e){let t;return function(r,i,a){t===void 0&&(t=new WeakMap);let o=t.get(r);o===void 0&&(o=new WeakMap,t.set(r,o));let c=o.get(i);c===void 0&&(c=new WeakMap,o.set(i,c));let l=c.get(a);return l===void 0&&(l=e(r,i,a),c.set(a,l)),l}}});var bw=w(g_=>{"use strict";m();T();N();Object.defineProperty(g_,"__esModule",{value:!0});g_.promiseForObject=IW;function IW(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 Aw=w(__=>{"use strict";m();T();N();Object.defineProperty(__,"__esModule",{value:!0});__.promiseReduce=_W;var gW=dm();function _W(e,t,n){let r=n;for(let i of e)r=(0,gW.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var Rw=w(S_=>{"use strict";m();T();N();Object.defineProperty(S_,"__esModule",{value:!0});S_.toError=SW;var vW=Yt();function SW(e){return e instanceof Error?e:new v_(e)}var v_=class extends Error{constructor(t){super("Unexpected error value: "+(0,vW.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var lN=w(O_=>{"use strict";m();T();N();Object.defineProperty(O_,"__esModule",{value:!0});O_.locatedError=bW;var OW=Rw(),DW=He();function bW(e,t,n){var r;let i=(0,OW.toError)(e);return AW(i)?i:new DW.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function AW(e){return Array.isArray(e.path)}});var op=w(Fi=>{"use strict";m();T();N();Object.defineProperty(Fi,"__esModule",{value:!0});Fi.assertValidExecutionArguments=kw;Fi.buildExecutionContext=Mw;Fi.buildResolveInfo=qw;Fi.defaultTypeResolver=Fi.defaultFieldResolver=void 0;Fi.execute=Uw;Fi.executeSync=BW;Fi.getFieldDef=jw;var b_=Lr(),Xu=Yt(),RW=yr(),PW=$m(),P_=va(),ta=dm(),FW=Dw(),Zu=Xd(),Pw=bw(),wW=Aw(),Pi=He(),pN=lN(),D_=Sa(),Fw=Rt(),ru=Pt(),ll=Ai(),LW=Hd(),Cw=sN(),Bw=ol(),CW=(0,FW.memoize3)((e,t,n)=>(0,Cw.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function Uw(e){arguments.length<2||(0,b_.devAssert)(!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;kw(t,n,r);let a=Mw(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=UW(a,o,i);return(0,ta.isPromise)(c)?c.then(l=>dN(l,a.errors),l=>(a.errors.push(l),dN(null,a.errors))):dN(c,a.errors)}catch(o){return a.errors.push(o),dN(null,a.errors)}}function BW(e){let t=Uw(e);if((0,ta.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function dN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function kw(e,t,n){t||(0,b_.devAssert)(!1,"Must provide document."),(0,LW.assertValidSchema)(e),n==null||(0,P_.isObjectLike)(n)||(0,b_.devAssert)(!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 Mw(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:p,typeResolver:f,subscribeFieldResolver:y}=e,g,v=Object.create(null);for(let K of i.definitions)switch(K.kind){case Fw.Kind.OPERATION_DEFINITION:if(l==null){if(g!==void 0)return[new Pi.GraphQLError("Must provide operation name if query contains multiple operations.")];g=K}else((t=K.name)===null||t===void 0?void 0:t.value)===l&&(g=K);break;case Fw.Kind.FRAGMENT_DEFINITION:v[K.name.value]=K;break;default:}if(!g)return l!=null?[new Pi.GraphQLError(`Unknown operation named "${l}".`)]:[new Pi.GraphQLError("Must provide an operation.")];let P=(n=g.variableDefinitions)!==null&&n!==void 0?n:[],k=(0,Bw.getVariableValues)(r,P,c!=null?c:{},{maxErrors:50});return k.errors?k.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:g,variableValues:k.coerced,fieldResolver:p!=null?p:R_,typeResolver:f!=null?f:Vw,subscribeFieldResolver:y!=null?y:R_,errors:[]}}function UW(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Pi.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,Cw.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case D_.OperationTypeNode.QUERY:return fN(e,r,n,a,i);case D_.OperationTypeNode.MUTATION:return kW(e,r,n,a,i);case D_.OperationTypeNode.SUBSCRIPTION:return fN(e,r,n,a,i)}}function kW(e,t,n,r,i){return(0,wW.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,Zu.addPath)(r,o,t.name),p=xw(e,t,n,c,l);return p===void 0?a:(0,ta.isPromise)(p)?p.then(f=>(a[o]=f,a)):(a[o]=p,a)},Object.create(null))}function fN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let p=(0,Zu.addPath)(r,c,t.name),f=xw(e,t,n,l,p);f!==void 0&&(a[c]=f,(0,ta.isPromise)(f)&&(o=!0))}}catch(c){if(o)return(0,Pw.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,Pw.promiseForObject)(a):a}function xw(e,t,n,r,i){var a;let o=jw(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,p=qw(e,o,r,t,i);try{let f=(0,Bw.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,g=l(n,f,y,p),v;return(0,ta.isPromise)(g)?v=g.then(P=>sp(e,c,r,p,i,P)):v=sp(e,c,r,p,i,g),(0,ta.isPromise)(v)?v.then(void 0,P=>{let k=(0,pN.locatedError)(P,r,(0,Zu.pathToArray)(i));return mN(k,c,e)}):v}catch(f){let y=(0,pN.locatedError)(f,r,(0,Zu.pathToArray)(i));return mN(y,c,e)}}function qw(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 mN(e,t,n){if((0,ru.isNonNullType)(t))throw e;return n.errors.push(e),null}function sp(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,ru.isNonNullType)(t)){let o=sp(e,t.ofType,n,r,i,a);if(o===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return o}if(a==null)return null;if((0,ru.isListType)(t))return MW(e,t,n,r,i,a);if((0,ru.isLeafType)(t))return xW(t,a);if((0,ru.isAbstractType)(t))return qW(e,t,n,r,i,a);if((0,ru.isObjectType)(t))return A_(e,t,n,r,i,a);(0,RW.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Xu.inspect)(t))}function MW(e,t,n,r,i,a){if(!(0,PW.isIterableObject)(a))throw new Pi.GraphQLError(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let o=t.ofType,c=!1,l=Array.from(a,(p,f)=>{let y=(0,Zu.addPath)(i,f,void 0);try{let g;return(0,ta.isPromise)(p)?g=p.then(v=>sp(e,o,n,r,y,v)):g=sp(e,o,n,r,y,p),(0,ta.isPromise)(g)?(c=!0,g.then(void 0,v=>{let P=(0,pN.locatedError)(v,n,(0,Zu.pathToArray)(y));return mN(P,o,e)})):g}catch(g){let v=(0,pN.locatedError)(g,n,(0,Zu.pathToArray)(y));return mN(v,o,e)}});return c?Promise.all(l):l}function xW(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Xu.inspect)(e)}.serialize(${(0,Xu.inspect)(t)})\` to return non-nullable value, returned: ${(0,Xu.inspect)(n)}`);return n}function qW(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,p=c(a,l,r,t);return(0,ta.isPromise)(p)?p.then(f=>A_(e,ww(f,e,t,n,r,a),n,r,i,a)):A_(e,ww(p,e,t,n,r,a),n,r,i,a)}function ww(e,t,n,r,i,a){if(e==null)throw new Pi.GraphQLError(`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((0,ru.isObjectType)(e))throw new Pi.GraphQLError("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 Pi.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Xu.inspect)(a)}, received "${(0,Xu.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Pi.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,ru.isObjectType)(o))throw new Pi.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Pi.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function A_(e,t,n,r,i,a){let o=CW(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,ta.isPromise)(c))return c.then(l=>{if(!l)throw Lw(t,a,n);return fN(e,t,a,i,o)});if(!c)throw Lw(t,a,n)}return fN(e,t,a,i,o)}function Lw(e,t,n){return new Pi.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Xu.inspect)(t)}.`,{nodes:n})}var Vw=function(e,t,n,r){if((0,P_.isObjectLike)(e)&&typeof e.__typename=="string")return e.__typename;let i=n.schema.getPossibleTypes(r),a=[];for(let o=0;o{for(let c=0;c{"use strict";m();T();N();Object.defineProperty(NN,"__esModule",{value:!0});NN.graphql=YW;NN.graphqlSync=JW;var VW=Lr(),jW=dm(),KW=Wc(),GW=Hd(),$W=cl(),QW=op();function YW(e){return new Promise(t=>t(Kw(e)))}function JW(e){let t=Kw(e);if((0,jW.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function Kw(e){arguments.length<2||(0,VW.devAssert)(!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:a,operationName:o,fieldResolver:c,typeResolver:l}=e,p=(0,GW.validateSchema)(t);if(p.length>0)return{errors:p};let f;try{f=(0,KW.parse)(n)}catch(g){return{errors:[g]}}let y=(0,$W.validate)(t,f);return y.length>0?{errors:y}:(0,QW.execute)({schema:t,document:f,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var Yw=w(ye=>{"use strict";m();T();N();Object.defineProperty(ye,"__esModule",{value:!0});Object.defineProperty(ye,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return na.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(ye,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ms.GRAPHQL_MAX_INT}});Object.defineProperty(ye,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ms.GRAPHQL_MIN_INT}});Object.defineProperty(ye,"GraphQLBoolean",{enumerable:!0,get:function(){return ms.GraphQLBoolean}});Object.defineProperty(ye,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return na.GraphQLDeprecatedDirective}});Object.defineProperty(ye,"GraphQLDirective",{enumerable:!0,get:function(){return na.GraphQLDirective}});Object.defineProperty(ye,"GraphQLEnumType",{enumerable:!0,get:function(){return tt.GraphQLEnumType}});Object.defineProperty(ye,"GraphQLFloat",{enumerable:!0,get:function(){return ms.GraphQLFloat}});Object.defineProperty(ye,"GraphQLID",{enumerable:!0,get:function(){return ms.GraphQLID}});Object.defineProperty(ye,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return na.GraphQLIncludeDirective}});Object.defineProperty(ye,"GraphQLInputObjectType",{enumerable:!0,get:function(){return tt.GraphQLInputObjectType}});Object.defineProperty(ye,"GraphQLInt",{enumerable:!0,get:function(){return ms.GraphQLInt}});Object.defineProperty(ye,"GraphQLInterfaceType",{enumerable:!0,get:function(){return tt.GraphQLInterfaceType}});Object.defineProperty(ye,"GraphQLList",{enumerable:!0,get:function(){return tt.GraphQLList}});Object.defineProperty(ye,"GraphQLNonNull",{enumerable:!0,get:function(){return tt.GraphQLNonNull}});Object.defineProperty(ye,"GraphQLObjectType",{enumerable:!0,get:function(){return tt.GraphQLObjectType}});Object.defineProperty(ye,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return na.GraphQLOneOfDirective}});Object.defineProperty(ye,"GraphQLScalarType",{enumerable:!0,get:function(){return tt.GraphQLScalarType}});Object.defineProperty(ye,"GraphQLSchema",{enumerable:!0,get:function(){return F_.GraphQLSchema}});Object.defineProperty(ye,"GraphQLSkipDirective",{enumerable:!0,get:function(){return na.GraphQLSkipDirective}});Object.defineProperty(ye,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return na.GraphQLSpecifiedByDirective}});Object.defineProperty(ye,"GraphQLString",{enumerable:!0,get:function(){return ms.GraphQLString}});Object.defineProperty(ye,"GraphQLUnionType",{enumerable:!0,get:function(){return tt.GraphQLUnionType}});Object.defineProperty(ye,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Qr.SchemaMetaFieldDef}});Object.defineProperty(ye,"TypeKind",{enumerable:!0,get:function(){return Qr.TypeKind}});Object.defineProperty(ye,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Qr.TypeMetaFieldDef}});Object.defineProperty(ye,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Qr.TypeNameMetaFieldDef}});Object.defineProperty(ye,"__Directive",{enumerable:!0,get:function(){return Qr.__Directive}});Object.defineProperty(ye,"__DirectiveLocation",{enumerable:!0,get:function(){return Qr.__DirectiveLocation}});Object.defineProperty(ye,"__EnumValue",{enumerable:!0,get:function(){return Qr.__EnumValue}});Object.defineProperty(ye,"__Field",{enumerable:!0,get:function(){return Qr.__Field}});Object.defineProperty(ye,"__InputValue",{enumerable:!0,get:function(){return Qr.__InputValue}});Object.defineProperty(ye,"__Schema",{enumerable:!0,get:function(){return Qr.__Schema}});Object.defineProperty(ye,"__Type",{enumerable:!0,get:function(){return Qr.__Type}});Object.defineProperty(ye,"__TypeKind",{enumerable:!0,get:function(){return Qr.__TypeKind}});Object.defineProperty(ye,"assertAbstractType",{enumerable:!0,get:function(){return tt.assertAbstractType}});Object.defineProperty(ye,"assertCompositeType",{enumerable:!0,get:function(){return tt.assertCompositeType}});Object.defineProperty(ye,"assertDirective",{enumerable:!0,get:function(){return na.assertDirective}});Object.defineProperty(ye,"assertEnumType",{enumerable:!0,get:function(){return tt.assertEnumType}});Object.defineProperty(ye,"assertEnumValueName",{enumerable:!0,get:function(){return Qw.assertEnumValueName}});Object.defineProperty(ye,"assertInputObjectType",{enumerable:!0,get:function(){return tt.assertInputObjectType}});Object.defineProperty(ye,"assertInputType",{enumerable:!0,get:function(){return tt.assertInputType}});Object.defineProperty(ye,"assertInterfaceType",{enumerable:!0,get:function(){return tt.assertInterfaceType}});Object.defineProperty(ye,"assertLeafType",{enumerable:!0,get:function(){return tt.assertLeafType}});Object.defineProperty(ye,"assertListType",{enumerable:!0,get:function(){return tt.assertListType}});Object.defineProperty(ye,"assertName",{enumerable:!0,get:function(){return Qw.assertName}});Object.defineProperty(ye,"assertNamedType",{enumerable:!0,get:function(){return tt.assertNamedType}});Object.defineProperty(ye,"assertNonNullType",{enumerable:!0,get:function(){return tt.assertNonNullType}});Object.defineProperty(ye,"assertNullableType",{enumerable:!0,get:function(){return tt.assertNullableType}});Object.defineProperty(ye,"assertObjectType",{enumerable:!0,get:function(){return tt.assertObjectType}});Object.defineProperty(ye,"assertOutputType",{enumerable:!0,get:function(){return tt.assertOutputType}});Object.defineProperty(ye,"assertScalarType",{enumerable:!0,get:function(){return tt.assertScalarType}});Object.defineProperty(ye,"assertSchema",{enumerable:!0,get:function(){return F_.assertSchema}});Object.defineProperty(ye,"assertType",{enumerable:!0,get:function(){return tt.assertType}});Object.defineProperty(ye,"assertUnionType",{enumerable:!0,get:function(){return tt.assertUnionType}});Object.defineProperty(ye,"assertValidSchema",{enumerable:!0,get:function(){return $w.assertValidSchema}});Object.defineProperty(ye,"assertWrappingType",{enumerable:!0,get:function(){return tt.assertWrappingType}});Object.defineProperty(ye,"getNamedType",{enumerable:!0,get:function(){return tt.getNamedType}});Object.defineProperty(ye,"getNullableType",{enumerable:!0,get:function(){return tt.getNullableType}});Object.defineProperty(ye,"introspectionTypes",{enumerable:!0,get:function(){return Qr.introspectionTypes}});Object.defineProperty(ye,"isAbstractType",{enumerable:!0,get:function(){return tt.isAbstractType}});Object.defineProperty(ye,"isCompositeType",{enumerable:!0,get:function(){return tt.isCompositeType}});Object.defineProperty(ye,"isDirective",{enumerable:!0,get:function(){return na.isDirective}});Object.defineProperty(ye,"isEnumType",{enumerable:!0,get:function(){return tt.isEnumType}});Object.defineProperty(ye,"isInputObjectType",{enumerable:!0,get:function(){return tt.isInputObjectType}});Object.defineProperty(ye,"isInputType",{enumerable:!0,get:function(){return tt.isInputType}});Object.defineProperty(ye,"isInterfaceType",{enumerable:!0,get:function(){return tt.isInterfaceType}});Object.defineProperty(ye,"isIntrospectionType",{enumerable:!0,get:function(){return Qr.isIntrospectionType}});Object.defineProperty(ye,"isLeafType",{enumerable:!0,get:function(){return tt.isLeafType}});Object.defineProperty(ye,"isListType",{enumerable:!0,get:function(){return tt.isListType}});Object.defineProperty(ye,"isNamedType",{enumerable:!0,get:function(){return tt.isNamedType}});Object.defineProperty(ye,"isNonNullType",{enumerable:!0,get:function(){return tt.isNonNullType}});Object.defineProperty(ye,"isNullableType",{enumerable:!0,get:function(){return tt.isNullableType}});Object.defineProperty(ye,"isObjectType",{enumerable:!0,get:function(){return tt.isObjectType}});Object.defineProperty(ye,"isOutputType",{enumerable:!0,get:function(){return tt.isOutputType}});Object.defineProperty(ye,"isRequiredArgument",{enumerable:!0,get:function(){return tt.isRequiredArgument}});Object.defineProperty(ye,"isRequiredInputField",{enumerable:!0,get:function(){return tt.isRequiredInputField}});Object.defineProperty(ye,"isScalarType",{enumerable:!0,get:function(){return tt.isScalarType}});Object.defineProperty(ye,"isSchema",{enumerable:!0,get:function(){return F_.isSchema}});Object.defineProperty(ye,"isSpecifiedDirective",{enumerable:!0,get:function(){return na.isSpecifiedDirective}});Object.defineProperty(ye,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ms.isSpecifiedScalarType}});Object.defineProperty(ye,"isType",{enumerable:!0,get:function(){return tt.isType}});Object.defineProperty(ye,"isUnionType",{enumerable:!0,get:function(){return tt.isUnionType}});Object.defineProperty(ye,"isWrappingType",{enumerable:!0,get:function(){return tt.isWrappingType}});Object.defineProperty(ye,"resolveObjMapThunk",{enumerable:!0,get:function(){return tt.resolveObjMapThunk}});Object.defineProperty(ye,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return tt.resolveReadonlyArrayThunk}});Object.defineProperty(ye,"specifiedDirectives",{enumerable:!0,get:function(){return na.specifiedDirectives}});Object.defineProperty(ye,"specifiedScalarTypes",{enumerable:!0,get:function(){return ms.specifiedScalarTypes}});Object.defineProperty(ye,"validateSchema",{enumerable:!0,get:function(){return $w.validateSchema}});var F_=Yu(),tt=Pt(),na=Gr(),ms=ba(),Qr=Ai(),$w=Hd(),Qw=Cd()});var Hw=w(Ct=>{"use strict";m();T();N();Object.defineProperty(Ct,"__esModule",{value:!0});Object.defineProperty(Ct,"BREAK",{enumerable:!0,get:function(){return up.BREAK}});Object.defineProperty(Ct,"DirectiveLocation",{enumerable:!0,get:function(){return t8.DirectiveLocation}});Object.defineProperty(Ct,"Kind",{enumerable:!0,get:function(){return WW.Kind}});Object.defineProperty(Ct,"Lexer",{enumerable:!0,get:function(){return ZW.Lexer}});Object.defineProperty(Ct,"Location",{enumerable:!0,get:function(){return w_.Location}});Object.defineProperty(Ct,"OperationTypeNode",{enumerable:!0,get:function(){return w_.OperationTypeNode}});Object.defineProperty(Ct,"Source",{enumerable:!0,get:function(){return HW.Source}});Object.defineProperty(Ct,"Token",{enumerable:!0,get:function(){return w_.Token}});Object.defineProperty(Ct,"TokenKind",{enumerable:!0,get:function(){return XW.TokenKind}});Object.defineProperty(Ct,"getEnterLeaveForKind",{enumerable:!0,get:function(){return up.getEnterLeaveForKind}});Object.defineProperty(Ct,"getLocation",{enumerable:!0,get:function(){return zW.getLocation}});Object.defineProperty(Ct,"getVisitFn",{enumerable:!0,get:function(){return up.getVisitFn}});Object.defineProperty(Ct,"isConstValueNode",{enumerable:!0,get:function(){return Fa.isConstValueNode}});Object.defineProperty(Ct,"isDefinitionNode",{enumerable:!0,get:function(){return Fa.isDefinitionNode}});Object.defineProperty(Ct,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Fa.isExecutableDefinitionNode}});Object.defineProperty(Ct,"isSelectionNode",{enumerable:!0,get:function(){return Fa.isSelectionNode}});Object.defineProperty(Ct,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Fa.isTypeDefinitionNode}});Object.defineProperty(Ct,"isTypeExtensionNode",{enumerable:!0,get:function(){return Fa.isTypeExtensionNode}});Object.defineProperty(Ct,"isTypeNode",{enumerable:!0,get:function(){return Fa.isTypeNode}});Object.defineProperty(Ct,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Fa.isTypeSystemDefinitionNode}});Object.defineProperty(Ct,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Fa.isTypeSystemExtensionNode}});Object.defineProperty(Ct,"isValueNode",{enumerable:!0,get:function(){return Fa.isValueNode}});Object.defineProperty(Ct,"parse",{enumerable:!0,get:function(){return TN.parse}});Object.defineProperty(Ct,"parseConstValue",{enumerable:!0,get:function(){return TN.parseConstValue}});Object.defineProperty(Ct,"parseType",{enumerable:!0,get:function(){return TN.parseType}});Object.defineProperty(Ct,"parseValue",{enumerable:!0,get:function(){return TN.parseValue}});Object.defineProperty(Ct,"print",{enumerable:!0,get:function(){return e8.print}});Object.defineProperty(Ct,"printLocation",{enumerable:!0,get:function(){return Jw.printLocation}});Object.defineProperty(Ct,"printSourceLocation",{enumerable:!0,get:function(){return Jw.printSourceLocation}});Object.defineProperty(Ct,"visit",{enumerable:!0,get:function(){return up.visit}});Object.defineProperty(Ct,"visitInParallel",{enumerable:!0,get:function(){return up.visitInParallel}});var HW=gm(),zW=pm(),Jw=Ay(),WW=Rt(),XW=Dd(),ZW=Em(),TN=Wc(),e8=ci(),up=Vu(),w_=Sa(),Fa=Hu(),t8=Hc()});var zw=w(L_=>{"use strict";m();T();N();Object.defineProperty(L_,"__esModule",{value:!0});L_.isAsyncIterable=n8;function n8(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var Ww=w(C_=>{"use strict";m();T();N();Object.defineProperty(C_,"__esModule",{value:!0});C_.mapAsyncIterator=r8;function r8(e,t){let n=e[Symbol.asyncIterator]();function r(a){return vi(this,null,function*(){if(a.done)return a;try{return{value:yield t(a.value),done:!1}}catch(o){if(typeof n.return=="function")try{yield n.return()}catch(c){}throw o}})}return{next(){return vi(this,null,function*(){return r(yield n.next())})},return(){return vi(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return vi(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var tL=w(EN=>{"use strict";m();T();N();Object.defineProperty(EN,"__esModule",{value:!0});EN.createSourceEventStream=eL;EN.subscribe=l8;var i8=Lr(),a8=Yt(),Zw=zw(),Xw=Xd(),B_=He(),s8=lN(),o8=sN(),cp=op(),u8=Ww(),c8=ol();function l8(t){return vi(this,arguments,function*(e){arguments.length<2||(0,i8.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield eL(e);if(!(0,Zw.isAsyncIterable)(n))return n;let r=i=>(0,cp.execute)(Y(x({},e),{rootValue:i}));return(0,u8.mapAsyncIterator)(n,r)})}function d8(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 eL(...e){return vi(this,null,function*(){let t=d8(e),{schema:n,document:r,variableValues:i}=t;(0,cp.assertValidExecutionArguments)(n,r,i);let a=(0,cp.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield p8(a);if(!(0,Zw.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,a8.inspect)(o)}.`);return o}catch(o){if(o instanceof B_.GraphQLError)return{errors:[o]};throw o}})}function p8(e){return vi(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new B_.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,o8.collectFields)(t,n,i,o,r.selectionSet),[l,p]=[...c.entries()][0],f=(0,cp.getFieldDef)(t,o,p[0]);if(!f){let P=p[0].name.value;throw new B_.GraphQLError(`The subscription field "${P}" is not defined.`,{nodes:p})}let y=(0,Xw.addPath)(void 0,l,o.name),g=(0,cp.buildResolveInfo)(e,f,p,o,y);try{var v;let P=(0,c8.getArgumentValues)(f,p[0],i),k=e.contextValue,G=yield((v=f.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,P,k,g);if(G instanceof Error)throw G;return G}catch(P){throw(0,s8.locatedError)(P,p,(0,Xw.pathToArray)(y))}})}});var rL=w(wi=>{"use strict";m();T();N();Object.defineProperty(wi,"__esModule",{value:!0});Object.defineProperty(wi,"createSourceEventStream",{enumerable:!0,get:function(){return nL.createSourceEventStream}});Object.defineProperty(wi,"defaultFieldResolver",{enumerable:!0,get:function(){return hN.defaultFieldResolver}});Object.defineProperty(wi,"defaultTypeResolver",{enumerable:!0,get:function(){return hN.defaultTypeResolver}});Object.defineProperty(wi,"execute",{enumerable:!0,get:function(){return hN.execute}});Object.defineProperty(wi,"executeSync",{enumerable:!0,get:function(){return hN.executeSync}});Object.defineProperty(wi,"getArgumentValues",{enumerable:!0,get:function(){return U_.getArgumentValues}});Object.defineProperty(wi,"getDirectiveValues",{enumerable:!0,get:function(){return U_.getDirectiveValues}});Object.defineProperty(wi,"getVariableValues",{enumerable:!0,get:function(){return U_.getVariableValues}});Object.defineProperty(wi,"responsePathAsArray",{enumerable:!0,get:function(){return f8.pathToArray}});Object.defineProperty(wi,"subscribe",{enumerable:!0,get:function(){return nL.subscribe}});var f8=Xd(),hN=op(),nL=tL(),U_=ol()});var iL=w(x_=>{"use strict";m();T();N();Object.defineProperty(x_,"__esModule",{value:!0});x_.NoDeprecatedCustomRule=m8;var k_=yr(),lp=He(),M_=Pt();function m8(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||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`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 lp.GraphQLError(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let a=e.getParentType(),o=e.getFieldDef();a!=null&&o!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,M_.getNamedType)(e.getParentInputType());if((0,M_.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new lp.GraphQLError(`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=(0,M_.getNamedType)(e.getInputType());i!=null||(0,k_.invariant)(!1),e.reportError(new lp.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var aL=w(q_=>{"use strict";m();T();N();Object.defineProperty(q_,"__esModule",{value:!0});q_.NoSchemaIntrospectionCustomRule=h8;var N8=He(),T8=Pt(),E8=Ai();function h8(e){return{Field(t){let n=(0,T8.getNamedType)(e.getType());n&&(0,E8.isIntrospectionType)(n)&&e.reportError(new N8.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var oL=w(dt=>{"use strict";m();T();N();Object.defineProperty(dt,"__esModule",{value:!0});Object.defineProperty(dt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return g8.ExecutableDefinitionsRule}});Object.defineProperty(dt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return _8.FieldsOnCorrectTypeRule}});Object.defineProperty(dt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return v8.FragmentsOnCompositeTypesRule}});Object.defineProperty(dt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return S8.KnownArgumentNamesRule}});Object.defineProperty(dt,"KnownDirectivesRule",{enumerable:!0,get:function(){return O8.KnownDirectivesRule}});Object.defineProperty(dt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return D8.KnownFragmentNamesRule}});Object.defineProperty(dt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return b8.KnownTypeNamesRule}});Object.defineProperty(dt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return A8.LoneAnonymousOperationRule}});Object.defineProperty(dt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return J8.LoneSchemaDefinitionRule}});Object.defineProperty(dt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return Y8.MaxIntrospectionDepthRule}});Object.defineProperty(dt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return n5.NoDeprecatedCustomRule}});Object.defineProperty(dt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return R8.NoFragmentCyclesRule}});Object.defineProperty(dt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return r5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(dt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return P8.NoUndefinedVariablesRule}});Object.defineProperty(dt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return F8.NoUnusedFragmentsRule}});Object.defineProperty(dt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return w8.NoUnusedVariablesRule}});Object.defineProperty(dt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return L8.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(dt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return C8.PossibleFragmentSpreadsRule}});Object.defineProperty(dt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return t5.PossibleTypeExtensionsRule}});Object.defineProperty(dt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return B8.ProvidedRequiredArgumentsRule}});Object.defineProperty(dt,"ScalarLeafsRule",{enumerable:!0,get:function(){return U8.ScalarLeafsRule}});Object.defineProperty(dt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return k8.SingleFieldSubscriptionsRule}});Object.defineProperty(dt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return Z8.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(dt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return M8.UniqueArgumentNamesRule}});Object.defineProperty(dt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return e5.UniqueDirectiveNamesRule}});Object.defineProperty(dt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return x8.UniqueDirectivesPerLocationRule}});Object.defineProperty(dt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return W8.UniqueEnumValueNamesRule}});Object.defineProperty(dt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return X8.UniqueFieldDefinitionNamesRule}});Object.defineProperty(dt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return q8.UniqueFragmentNamesRule}});Object.defineProperty(dt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return V8.UniqueInputFieldNamesRule}});Object.defineProperty(dt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return j8.UniqueOperationNamesRule}});Object.defineProperty(dt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return H8.UniqueOperationTypesRule}});Object.defineProperty(dt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return z8.UniqueTypeNamesRule}});Object.defineProperty(dt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return K8.UniqueVariableNamesRule}});Object.defineProperty(dt,"ValidationContext",{enumerable:!0,get:function(){return I8.ValidationContext}});Object.defineProperty(dt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return G8.ValuesOfCorrectTypeRule}});Object.defineProperty(dt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return $8.VariablesAreInputTypesRule}});Object.defineProperty(dt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return Q8.VariablesInAllowedPositionRule}});Object.defineProperty(dt,"recommendedRules",{enumerable:!0,get:function(){return sL.recommendedRules}});Object.defineProperty(dt,"specifiedRules",{enumerable:!0,get:function(){return sL.specifiedRules}});Object.defineProperty(dt,"validate",{enumerable:!0,get:function(){return y8.validate}});var y8=cl(),I8=h_(),sL=N_(),g8=wI(),_8=CI(),v8=UI(),S8=kI(),O8=VI(),D8=KI(),b8=QI(),A8=JI(),R8=eg(),P8=ng(),F8=ig(),w8=sg(),L8=Tg(),C8=yg(),B8=vg(),U8=Og(),k8=Cg(),M8=xg(),x8=Gg(),q8=Wg(),V8=Zg(),j8=t_(),K8=o_(),G8=l_(),$8=p_(),Q8=m_(),Y8=XI(),J8=zI(),H8=r_(),z8=a_(),W8=Qg(),X8=Hg(),Z8=kg(),e5=Vg(),t5=gg(),n5=iL(),r5=aL()});var uL=w(ec=>{"use strict";m();T();N();Object.defineProperty(ec,"__esModule",{value:!0});Object.defineProperty(ec,"GraphQLError",{enumerable:!0,get:function(){return V_.GraphQLError}});Object.defineProperty(ec,"formatError",{enumerable:!0,get:function(){return V_.formatError}});Object.defineProperty(ec,"locatedError",{enumerable:!0,get:function(){return a5.locatedError}});Object.defineProperty(ec,"printError",{enumerable:!0,get:function(){return V_.printError}});Object.defineProperty(ec,"syntaxError",{enumerable:!0,get:function(){return i5.syntaxError}});var V_=He(),i5=mm(),a5=lN()});var K_=w(j_=>{"use strict";m();T();N();Object.defineProperty(j_,"__esModule",{value:!0});j_.getIntrospectionQuery=s5;function s5(e){let t=x({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1},e),n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",a=t.schemaDescription?n:"";function o(l){return t.inputValueDeprecation?l:""}let c=t.oneOf?"isOneOf":"";return` query IntrospectionQuery { __schema { ${a} @@ -173,7 +173,7 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var cL=w(G_=>{"use strict";m();T();N();Object.defineProperty(G_,"__esModule",{value:!0});G_.getOperationAST=u5;var o5=Rt();function u5(e,t){let n=null;for(let i of e.definitions)if(i.kind===o5.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 lL=w($_=>{"use strict";m();T();N();Object.defineProperty($_,"__esModule",{value:!0});$_.getOperationRootType=c5;var yN=He();function c5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new yN.GraphQLError("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 yN.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new yN.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new yN.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var dL=w(Q_=>{"use strict";m();T();N();Object.defineProperty(Q_,"__esModule",{value:!0});Q_.introspectionFromSchema=m5;var l5=yr(),d5=Wc(),p5=op(),f5=K_();function m5(e,t){let n=x({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,d5.parse)((0,f5.getIntrospectionQuery)(n)),i=(0,p5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,l5.invariant)(!1),i.data}});var fL=w(Y_=>{"use strict";m();T();N();Object.defineProperty(Y_,"__esModule",{value:!0});Y_.buildClientSchema=g5;var N5=Lr(),li=Yt(),pL=va(),IN=wd(),T5=Wc(),di=Pt(),E5=Gr(),wa=Ai(),h5=ba(),y5=Yu(),I5=np();function g5(e,t){(0,pL.isObjectLike)(e)&&(0,pL.isObjectLike)(e.__schema)||(0,N5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,li.inspect)(e)}.`);let n=e.__schema,r=(0,IN.keyValMap)(n.types,ee=>ee.name,ee=>g(ee));for(let ee of[...h5.specifiedScalarTypes,...wa.introspectionTypes])r[ee.name]&&(r[ee.name]=ee);let i=n.queryType?f(n.queryType):null,a=n.mutationType?f(n.mutationType):null,o=n.subscriptionType?f(n.subscriptionType):null,c=n.directives?n.directives.map(it):[];return new y5.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function l(ee){if(ee.kind===wa.TypeKind.LIST){let ve=ee.ofType;if(!ve)throw new Error("Decorated type deeper than introspection query.");return new di.GraphQLList(l(ve))}if(ee.kind===wa.TypeKind.NON_NULL){let ve=ee.ofType;if(!ve)throw new Error("Decorated type deeper than introspection query.");let gt=l(ve);return new di.GraphQLNonNull((0,di.assertNullableType)(gt))}return p(ee)}function p(ee){let ve=ee.name;if(!ve)throw new Error(`Unknown type reference: ${(0,li.inspect)(ee)}.`);let gt=r[ve];if(!gt)throw new Error(`Invalid or incomplete schema, unknown type: ${ve}. Ensure that a full introspection query is used in order to build a client schema.`);return gt}function f(ee){return(0,di.assertObjectType)(p(ee))}function y(ee){return(0,di.assertInterfaceType)(p(ee))}function g(ee){if(ee!=null&&ee.name!=null&&ee.kind!=null)switch(ee.kind){case wa.TypeKind.SCALAR:return v(ee);case wa.TypeKind.OBJECT:return M(ee);case wa.TypeKind.INTERFACE:return K(ee);case wa.TypeKind.UNION:return G(ee);case wa.TypeKind.ENUM:return Z(ee);case wa.TypeKind.INPUT_OBJECT:return W(ee)}let ve=(0,li.inspect)(ee);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${ve}.`)}function v(ee){return new di.GraphQLScalarType({name:ee.name,description:ee.description,specifiedByURL:ee.specifiedByURL})}function P(ee){if(ee.interfaces===null&&ee.kind===wa.TypeKind.INTERFACE)return[];if(!ee.interfaces){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing interfaces: ${ve}.`)}return ee.interfaces.map(y)}function M(ee){return new di.GraphQLObjectType({name:ee.name,description:ee.description,interfaces:()=>P(ee),fields:()=>Te(ee)})}function K(ee){return new di.GraphQLInterfaceType({name:ee.name,description:ee.description,interfaces:()=>P(ee),fields:()=>Te(ee)})}function G(ee){if(!ee.possibleTypes){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing possibleTypes: ${ve}.`)}return new di.GraphQLUnionType({name:ee.name,description:ee.description,types:()=>ee.possibleTypes.map(f)})}function Z(ee){if(!ee.enumValues){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing enumValues: ${ve}.`)}return new di.GraphQLEnumType({name:ee.name,description:ee.description,values:(0,IN.keyValMap)(ee.enumValues,ve=>ve.name,ve=>({description:ve.description,deprecationReason:ve.deprecationReason}))})}function W(ee){if(!ee.inputFields){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing inputFields: ${ve}.`)}return new di.GraphQLInputObjectType({name:ee.name,description:ee.description,fields:()=>we(ee.inputFields),isOneOf:ee.isOneOf})}function Te(ee){if(!ee.fields)throw new Error(`Introspection result missing fields: ${(0,li.inspect)(ee)}.`);return(0,IN.keyValMap)(ee.fields,ve=>ve.name,fe)}function fe(ee){let ve=l(ee.type);if(!(0,di.isOutputType)(ve)){let gt=(0,li.inspect)(ve);throw new Error(`Introspection must provide output type for fields, but received: ${gt}.`)}if(!ee.args){let gt=(0,li.inspect)(ee);throw new Error(`Introspection result missing field args: ${gt}.`)}return{description:ee.description,deprecationReason:ee.deprecationReason,type:ve,args:we(ee.args)}}function we(ee){return(0,IN.keyValMap)(ee,ve=>ve.name,je)}function je(ee){let ve=l(ee.type);if(!(0,di.isInputType)(ve)){let zt=(0,li.inspect)(ve);throw new Error(`Introspection must provide input type for arguments, but received: ${zt}.`)}let gt=ee.defaultValue!=null?(0,I5.valueFromAST)((0,T5.parseValue)(ee.defaultValue),ve):void 0;return{description:ee.description,type:ve,defaultValue:gt,deprecationReason:ee.deprecationReason}}function it(ee){if(!ee.args){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing directive args: ${ve}.`)}if(!ee.locations){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing directive locations: ${ve}.`)}return new E5.GraphQLDirective({name:ee.name,description:ee.description,isRepeatable:ee.isRepeatable,locations:ee.locations.slice(),args:we(ee.args)})}}});var H_=w(_N=>{"use strict";m();T();N();Object.defineProperty(_N,"__esModule",{value:!0});_N.extendSchema=b5;_N.extendSchemaImpl=gL;var _5=Lr(),v5=Yt(),S5=yr(),O5=zo(),dp=Jy(),Li=Rt(),mL=Hu(),gn=Pt(),pp=Gr(),yL=Ai(),IL=ba(),NL=Yu(),D5=cl(),J_=ol(),TL=np();function b5(e,t,n){(0,NL.assertSchema)(e),t!=null&&t.kind===Li.Kind.DOCUMENT||(0,_5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,D5.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=gL(r,t,n);return r===i?e:new NL.GraphQLSchema(i)}function gL(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),p=[],f,y=[];for(let oe of t.definitions)if(oe.kind===Li.Kind.SCHEMA_DEFINITION)f=oe;else if(oe.kind===Li.Kind.SCHEMA_EXTENSION)y.push(oe);else if((0,mL.isTypeDefinitionNode)(oe))c.push(oe);else if((0,mL.isTypeExtensionNode)(oe)){let De=oe.name.value,_e=l[De];l[De]=_e?_e.concat([oe]):[oe]}else oe.kind===Li.Kind.DIRECTIVE_DEFINITION&&p.push(oe);if(Object.keys(l).length===0&&c.length===0&&p.length===0&&y.length===0&&f==null)return e;let g=Object.create(null);for(let oe of e.types)g[oe.name]=Z(oe);for(let oe of c){var v;let De=oe.name.value;g[De]=(v=EL[De])!==null&&v!==void 0?v:bn(oe)}let P=x(x({query:e.query&&K(e.query),mutation:e.mutation&&K(e.mutation),subscription:e.subscription&&K(e.subscription)},f&>([f])),gt(y));return Y(x({description:(r=f)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},P),{types:Object.values(g),directives:[...e.directives.map(G),...p.map(Dn)],extensions:Object.create(null),astNode:(a=f)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function M(oe){return(0,gn.isListType)(oe)?new gn.GraphQLList(M(oe.ofType)):(0,gn.isNonNullType)(oe)?new gn.GraphQLNonNull(M(oe.ofType)):K(oe)}function K(oe){return g[oe.name]}function G(oe){let De=oe.toConfig();return new pp.GraphQLDirective(Y(x({},De),{args:(0,dp.mapValue)(De.args,ve)}))}function Z(oe){if((0,yL.isIntrospectionType)(oe)||(0,IL.isSpecifiedScalarType)(oe))return oe;if((0,gn.isScalarType)(oe))return fe(oe);if((0,gn.isObjectType)(oe))return we(oe);if((0,gn.isInterfaceType)(oe))return je(oe);if((0,gn.isUnionType)(oe))return it(oe);if((0,gn.isEnumType)(oe))return Te(oe);if((0,gn.isInputObjectType)(oe))return W(oe);(0,S5.invariant)(!1,"Unexpected type: "+(0,v5.inspect)(oe))}function W(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLInputObjectType(Y(x({},_e),{fields:()=>x(x({},(0,dp.mapValue)(_e.fields,_t=>Y(x({},_t),{type:M(_t.type)}))),Ar(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function Te(oe){var De;let _e=oe.toConfig(),Le=(De=l[oe.name])!==null&&De!==void 0?De:[];return new gn.GraphQLEnumType(Y(x({},_e),{values:x(x({},_e.values),Rr(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function fe(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[],_t=_e.specifiedByURL;for(let se of Le){var J;_t=(J=hL(se))!==null&&J!==void 0?J:_t}return new gn.GraphQLScalarType(Y(x({},_e),{specifiedByURL:_t,extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function we(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLObjectType(Y(x({},_e),{interfaces:()=>[...oe.getInterfaces().map(K),...Un(Le)],fields:()=>x(x({},(0,dp.mapValue)(_e.fields,ee)),Vt(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function je(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLInterfaceType(Y(x({},_e),{interfaces:()=>[...oe.getInterfaces().map(K),...Un(Le)],fields:()=>x(x({},(0,dp.mapValue)(_e.fields,ee)),Vt(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function it(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLUnionType(Y(x({},_e),{types:()=>[...oe.getTypes().map(K),...$t(Le)],extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function ee(oe){return Y(x({},oe),{type:M(oe.type),args:oe.args&&(0,dp.mapValue)(oe.args,ve)})}function ve(oe){return Y(x({},oe),{type:M(oe.type)})}function gt(oe){let De={};for(let Le of oe){var _e;let _t=(_e=Le.operationTypes)!==null&&_e!==void 0?_e:[];for(let J of _t)De[J.operation]=zt(J.type)}return De}function zt(oe){var De;let _e=oe.name.value,Le=(De=EL[_e])!==null&&De!==void 0?De:g[_e];if(Le===void 0)throw new Error(`Unknown type: "${_e}".`);return Le}function Wt(oe){return oe.kind===Li.Kind.LIST_TYPE?new gn.GraphQLList(Wt(oe.type)):oe.kind===Li.Kind.NON_NULL_TYPE?new gn.GraphQLNonNull(Wt(oe.type)):zt(oe)}function Dn(oe){var De;return new pp.GraphQLDirective({name:oe.name.value,description:(De=oe.description)===null||De===void 0?void 0:De.value,locations:oe.locations.map(({value:_e})=>_e),isRepeatable:oe.repeatable,args:dn(oe.arguments),astNode:oe})}function Vt(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.fields)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;De[se.name.value]={type:Wt(se.type),description:(Le=se.description)===null||Le===void 0?void 0:Le.value,args:dn(se.arguments),deprecationReason:gN(se),astNode:se}}}return De}function dn(oe){let De=oe!=null?oe:[],_e=Object.create(null);for(let _t of De){var Le;let J=Wt(_t.type);_e[_t.name.value]={type:J,description:(Le=_t.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,TL.valueFromAST)(_t.defaultValue,J),deprecationReason:gN(_t),astNode:_t}}return _e}function Ar(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.fields)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;let xe=Wt(se.type);De[se.name.value]={type:xe,description:(Le=se.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,TL.valueFromAST)(se.defaultValue,xe),deprecationReason:gN(se),astNode:se}}}return De}function Rr(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.values)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;De[se.name.value]={description:(Le=se.description)===null||Le===void 0?void 0:Le.value,deprecationReason:gN(se),astNode:se}}}return De}function Un(oe){return oe.flatMap(De=>{var _e,Le;return(_e=(Le=De.interfaces)===null||Le===void 0?void 0:Le.map(zt))!==null&&_e!==void 0?_e:[]})}function $t(oe){return oe.flatMap(De=>{var _e,Le;return(_e=(Le=De.types)===null||Le===void 0?void 0:Le.map(zt))!==null&&_e!==void 0?_e:[]})}function bn(oe){var De;let _e=oe.name.value,Le=(De=l[_e])!==null&&De!==void 0?De:[];switch(oe.kind){case Li.Kind.OBJECT_TYPE_DEFINITION:{var _t;let et=[oe,...Le];return new gn.GraphQLObjectType({name:_e,description:(_t=oe.description)===null||_t===void 0?void 0:_t.value,interfaces:()=>Un(et),fields:()=>Vt(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.INTERFACE_TYPE_DEFINITION:{var J;let et=[oe,...Le];return new gn.GraphQLInterfaceType({name:_e,description:(J=oe.description)===null||J===void 0?void 0:J.value,interfaces:()=>Un(et),fields:()=>Vt(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.ENUM_TYPE_DEFINITION:{var se;let et=[oe,...Le];return new gn.GraphQLEnumType({name:_e,description:(se=oe.description)===null||se===void 0?void 0:se.value,values:Rr(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.UNION_TYPE_DEFINITION:{var xe;let et=[oe,...Le];return new gn.GraphQLUnionType({name:_e,description:(xe=oe.description)===null||xe===void 0?void 0:xe.value,types:()=>$t(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.SCALAR_TYPE_DEFINITION:{var Qe;return new gn.GraphQLScalarType({name:_e,description:(Qe=oe.description)===null||Qe===void 0?void 0:Qe.value,specifiedByURL:hL(oe),astNode:oe,extensionASTNodes:Le})}case Li.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Lt;let et=[oe,...Le];return new gn.GraphQLInputObjectType({name:_e,description:(Lt=oe.description)===null||Lt===void 0?void 0:Lt.value,fields:()=>Ar(et),astNode:oe,extensionASTNodes:Le,isOneOf:A5(oe)})}}}}var EL=(0,O5.keyMap)([...IL.specifiedScalarTypes,...yL.introspectionTypes],e=>e.name);function gN(e){let t=(0,J_.getDirectiveValues)(pp.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function hL(e){let t=(0,J_.getDirectiveValues)(pp.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function A5(e){return!!(0,J_.getDirectiveValues)(pp.GraphQLOneOfDirective,e)}});var vL=w(vN=>{"use strict";m();T();N();Object.defineProperty(vN,"__esModule",{value:!0});vN.buildASTSchema=_L;vN.buildSchema=U5;var R5=Lr(),P5=Rt(),F5=Wc(),w5=Gr(),L5=Yu(),C5=cl(),B5=H_();function _L(e,t){e!=null&&e.kind===P5.Kind.DOCUMENT||(0,R5.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,C5.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,B5.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...w5.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new L5.GraphQLSchema(Y(x({},r),{directives:i}))}function U5(e,t){let n=(0,F5.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return _L(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var DL=w(W_=>{"use strict";m();T();N();Object.defineProperty(W_,"__esModule",{value:!0});W_.lexicographicSortSchema=K5;var k5=Yt(),M5=yr(),x5=wd(),SL=Ld(),Cr=Pt(),q5=Gr(),V5=Ai(),j5=Yu();function K5(e){let t=e.toConfig(),n=(0,x5.keyValMap)(z_(t.types),g=>g.name,y);return new j5.GraphQLSchema(Y(x({},t),{types:Object.values(n),directives:z_(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(g){return(0,Cr.isListType)(g)?new Cr.GraphQLList(r(g.ofType)):(0,Cr.isNonNullType)(g)?new Cr.GraphQLNonNull(r(g.ofType)):i(g)}function i(g){return n[g.name]}function a(g){return g&&i(g)}function o(g){let v=g.toConfig();return new q5.GraphQLDirective(Y(x({},v),{locations:OL(v.locations,P=>P),args:c(v.args)}))}function c(g){return SN(g,v=>Y(x({},v),{type:r(v.type)}))}function l(g){return SN(g,v=>Y(x({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function p(g){return SN(g,v=>Y(x({},v),{type:r(v.type)}))}function f(g){return z_(g).map(i)}function y(g){if((0,Cr.isScalarType)(g)||(0,V5.isIntrospectionType)(g))return g;if((0,Cr.isObjectType)(g)){let v=g.toConfig();return new Cr.GraphQLObjectType(Y(x({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Cr.isInterfaceType)(g)){let v=g.toConfig();return new Cr.GraphQLInterfaceType(Y(x({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Cr.isUnionType)(g)){let v=g.toConfig();return new Cr.GraphQLUnionType(Y(x({},v),{types:()=>f(v.types)}))}if((0,Cr.isEnumType)(g)){let v=g.toConfig();return new Cr.GraphQLEnumType(Y(x({},v),{values:SN(v.values,P=>P)}))}if((0,Cr.isInputObjectType)(g)){let v=g.toConfig();return new Cr.GraphQLInputObjectType(Y(x({},v),{fields:()=>p(v.fields)}))}(0,M5.invariant)(!1,"Unexpected type: "+(0,k5.inspect)(g))}}function SN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(SL.naturalCompare))n[r]=t(e[r]);return n}function z_(e){return OL(e,t=>t.name)}function OL(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,SL.naturalCompare)(i,a)})}});var LL=w(fp=>{"use strict";m();T();N();Object.defineProperty(fp,"__esModule",{value:!0});fp.printIntrospectionSchema=z5;fp.printSchema=H5;fp.printType=RL;var G5=Yt(),$5=yr(),Q5=Sd(),Z_=Rt(),ON=ci(),dl=Pt(),ev=Gr(),bL=Ai(),Y5=ba(),J5=Qd();function H5(e){return AL(e,t=>!(0,ev.isSpecifiedDirective)(t),W5)}function z5(e){return AL(e,ev.isSpecifiedDirective,bL.isIntrospectionType)}function W5(e){return!(0,Y5.isSpecifiedScalarType)(e)&&!(0,bL.isIntrospectionType)(e)}function AL(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[X5(e),...r.map(a=>sX(a)),...i.map(a=>RL(a))].filter(Boolean).join(` + `}});var cL=w(G_=>{"use strict";m();T();N();Object.defineProperty(G_,"__esModule",{value:!0});G_.getOperationAST=u5;var o5=Rt();function u5(e,t){let n=null;for(let i of e.definitions)if(i.kind===o5.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 lL=w($_=>{"use strict";m();T();N();Object.defineProperty($_,"__esModule",{value:!0});$_.getOperationRootType=c5;var yN=He();function c5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new yN.GraphQLError("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 yN.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new yN.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new yN.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var dL=w(Q_=>{"use strict";m();T();N();Object.defineProperty(Q_,"__esModule",{value:!0});Q_.introspectionFromSchema=m5;var l5=yr(),d5=Wc(),p5=op(),f5=K_();function m5(e,t){let n=x({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,d5.parse)((0,f5.getIntrospectionQuery)(n)),i=(0,p5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,l5.invariant)(!1),i.data}});var fL=w(Y_=>{"use strict";m();T();N();Object.defineProperty(Y_,"__esModule",{value:!0});Y_.buildClientSchema=g5;var N5=Lr(),li=Yt(),pL=va(),IN=wd(),T5=Wc(),di=Pt(),E5=Gr(),wa=Ai(),h5=ba(),y5=Yu(),I5=np();function g5(e,t){(0,pL.isObjectLike)(e)&&(0,pL.isObjectLike)(e.__schema)||(0,N5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,li.inspect)(e)}.`);let n=e.__schema,r=(0,IN.keyValMap)(n.types,ee=>ee.name,ee=>g(ee));for(let ee of[...h5.specifiedScalarTypes,...wa.introspectionTypes])r[ee.name]&&(r[ee.name]=ee);let i=n.queryType?f(n.queryType):null,a=n.mutationType?f(n.mutationType):null,o=n.subscriptionType?f(n.subscriptionType):null,c=n.directives?n.directives.map(it):[];return new y5.GraphQLSchema({description:n.description,query:i,mutation:a,subscription:o,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function l(ee){if(ee.kind===wa.TypeKind.LIST){let ve=ee.ofType;if(!ve)throw new Error("Decorated type deeper than introspection query.");return new di.GraphQLList(l(ve))}if(ee.kind===wa.TypeKind.NON_NULL){let ve=ee.ofType;if(!ve)throw new Error("Decorated type deeper than introspection query.");let gt=l(ve);return new di.GraphQLNonNull((0,di.assertNullableType)(gt))}return p(ee)}function p(ee){let ve=ee.name;if(!ve)throw new Error(`Unknown type reference: ${(0,li.inspect)(ee)}.`);let gt=r[ve];if(!gt)throw new Error(`Invalid or incomplete schema, unknown type: ${ve}. Ensure that a full introspection query is used in order to build a client schema.`);return gt}function f(ee){return(0,di.assertObjectType)(p(ee))}function y(ee){return(0,di.assertInterfaceType)(p(ee))}function g(ee){if(ee!=null&&ee.name!=null&&ee.kind!=null)switch(ee.kind){case wa.TypeKind.SCALAR:return v(ee);case wa.TypeKind.OBJECT:return k(ee);case wa.TypeKind.INTERFACE:return K(ee);case wa.TypeKind.UNION:return G(ee);case wa.TypeKind.ENUM:return Z(ee);case wa.TypeKind.INPUT_OBJECT:return W(ee)}let ve=(0,li.inspect)(ee);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${ve}.`)}function v(ee){return new di.GraphQLScalarType({name:ee.name,description:ee.description,specifiedByURL:ee.specifiedByURL})}function P(ee){if(ee.interfaces===null&&ee.kind===wa.TypeKind.INTERFACE)return[];if(!ee.interfaces){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing interfaces: ${ve}.`)}return ee.interfaces.map(y)}function k(ee){return new di.GraphQLObjectType({name:ee.name,description:ee.description,interfaces:()=>P(ee),fields:()=>Te(ee)})}function K(ee){return new di.GraphQLInterfaceType({name:ee.name,description:ee.description,interfaces:()=>P(ee),fields:()=>Te(ee)})}function G(ee){if(!ee.possibleTypes){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing possibleTypes: ${ve}.`)}return new di.GraphQLUnionType({name:ee.name,description:ee.description,types:()=>ee.possibleTypes.map(f)})}function Z(ee){if(!ee.enumValues){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing enumValues: ${ve}.`)}return new di.GraphQLEnumType({name:ee.name,description:ee.description,values:(0,IN.keyValMap)(ee.enumValues,ve=>ve.name,ve=>({description:ve.description,deprecationReason:ve.deprecationReason}))})}function W(ee){if(!ee.inputFields){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing inputFields: ${ve}.`)}return new di.GraphQLInputObjectType({name:ee.name,description:ee.description,fields:()=>we(ee.inputFields),isOneOf:ee.isOneOf})}function Te(ee){if(!ee.fields)throw new Error(`Introspection result missing fields: ${(0,li.inspect)(ee)}.`);return(0,IN.keyValMap)(ee.fields,ve=>ve.name,fe)}function fe(ee){let ve=l(ee.type);if(!(0,di.isOutputType)(ve)){let gt=(0,li.inspect)(ve);throw new Error(`Introspection must provide output type for fields, but received: ${gt}.`)}if(!ee.args){let gt=(0,li.inspect)(ee);throw new Error(`Introspection result missing field args: ${gt}.`)}return{description:ee.description,deprecationReason:ee.deprecationReason,type:ve,args:we(ee.args)}}function we(ee){return(0,IN.keyValMap)(ee,ve=>ve.name,Ve)}function Ve(ee){let ve=l(ee.type);if(!(0,di.isInputType)(ve)){let zt=(0,li.inspect)(ve);throw new Error(`Introspection must provide input type for arguments, but received: ${zt}.`)}let gt=ee.defaultValue!=null?(0,I5.valueFromAST)((0,T5.parseValue)(ee.defaultValue),ve):void 0;return{description:ee.description,type:ve,defaultValue:gt,deprecationReason:ee.deprecationReason}}function it(ee){if(!ee.args){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing directive args: ${ve}.`)}if(!ee.locations){let ve=(0,li.inspect)(ee);throw new Error(`Introspection result missing directive locations: ${ve}.`)}return new E5.GraphQLDirective({name:ee.name,description:ee.description,isRepeatable:ee.isRepeatable,locations:ee.locations.slice(),args:we(ee.args)})}}});var H_=w(_N=>{"use strict";m();T();N();Object.defineProperty(_N,"__esModule",{value:!0});_N.extendSchema=b5;_N.extendSchemaImpl=gL;var _5=Lr(),v5=Yt(),S5=yr(),O5=zo(),dp=Jy(),Li=Rt(),mL=Hu(),gn=Pt(),pp=Gr(),yL=Ai(),IL=ba(),NL=Yu(),D5=cl(),J_=ol(),TL=np();function b5(e,t,n){(0,NL.assertSchema)(e),t!=null&&t.kind===Li.Kind.DOCUMENT||(0,_5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,D5.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=gL(r,t,n);return r===i?e:new NL.GraphQLSchema(i)}function gL(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),p=[],f,y=[];for(let oe of t.definitions)if(oe.kind===Li.Kind.SCHEMA_DEFINITION)f=oe;else if(oe.kind===Li.Kind.SCHEMA_EXTENSION)y.push(oe);else if((0,mL.isTypeDefinitionNode)(oe))c.push(oe);else if((0,mL.isTypeExtensionNode)(oe)){let De=oe.name.value,_e=l[De];l[De]=_e?_e.concat([oe]):[oe]}else oe.kind===Li.Kind.DIRECTIVE_DEFINITION&&p.push(oe);if(Object.keys(l).length===0&&c.length===0&&p.length===0&&y.length===0&&f==null)return e;let g=Object.create(null);for(let oe of e.types)g[oe.name]=Z(oe);for(let oe of c){var v;let De=oe.name.value;g[De]=(v=EL[De])!==null&&v!==void 0?v:bn(oe)}let P=x(x({query:e.query&&K(e.query),mutation:e.mutation&&K(e.mutation),subscription:e.subscription&&K(e.subscription)},f&>([f])),gt(y));return Y(x({description:(r=f)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},P),{types:Object.values(g),directives:[...e.directives.map(G),...p.map(Dn)],extensions:Object.create(null),astNode:(a=f)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(y),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function k(oe){return(0,gn.isListType)(oe)?new gn.GraphQLList(k(oe.ofType)):(0,gn.isNonNullType)(oe)?new gn.GraphQLNonNull(k(oe.ofType)):K(oe)}function K(oe){return g[oe.name]}function G(oe){let De=oe.toConfig();return new pp.GraphQLDirective(Y(x({},De),{args:(0,dp.mapValue)(De.args,ve)}))}function Z(oe){if((0,yL.isIntrospectionType)(oe)||(0,IL.isSpecifiedScalarType)(oe))return oe;if((0,gn.isScalarType)(oe))return fe(oe);if((0,gn.isObjectType)(oe))return we(oe);if((0,gn.isInterfaceType)(oe))return Ve(oe);if((0,gn.isUnionType)(oe))return it(oe);if((0,gn.isEnumType)(oe))return Te(oe);if((0,gn.isInputObjectType)(oe))return W(oe);(0,S5.invariant)(!1,"Unexpected type: "+(0,v5.inspect)(oe))}function W(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLInputObjectType(Y(x({},_e),{fields:()=>x(x({},(0,dp.mapValue)(_e.fields,_t=>Y(x({},_t),{type:k(_t.type)}))),Ar(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function Te(oe){var De;let _e=oe.toConfig(),Le=(De=l[oe.name])!==null&&De!==void 0?De:[];return new gn.GraphQLEnumType(Y(x({},_e),{values:x(x({},_e.values),Rr(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function fe(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[],_t=_e.specifiedByURL;for(let se of Le){var J;_t=(J=hL(se))!==null&&J!==void 0?J:_t}return new gn.GraphQLScalarType(Y(x({},_e),{specifiedByURL:_t,extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function we(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLObjectType(Y(x({},_e),{interfaces:()=>[...oe.getInterfaces().map(K),...Un(Le)],fields:()=>x(x({},(0,dp.mapValue)(_e.fields,ee)),Vt(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function Ve(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLInterfaceType(Y(x({},_e),{interfaces:()=>[...oe.getInterfaces().map(K),...Un(Le)],fields:()=>x(x({},(0,dp.mapValue)(_e.fields,ee)),Vt(Le)),extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function it(oe){var De;let _e=oe.toConfig(),Le=(De=l[_e.name])!==null&&De!==void 0?De:[];return new gn.GraphQLUnionType(Y(x({},_e),{types:()=>[...oe.getTypes().map(K),...$t(Le)],extensionASTNodes:_e.extensionASTNodes.concat(Le)}))}function ee(oe){return Y(x({},oe),{type:k(oe.type),args:oe.args&&(0,dp.mapValue)(oe.args,ve)})}function ve(oe){return Y(x({},oe),{type:k(oe.type)})}function gt(oe){let De={};for(let Le of oe){var _e;let _t=(_e=Le.operationTypes)!==null&&_e!==void 0?_e:[];for(let J of _t)De[J.operation]=zt(J.type)}return De}function zt(oe){var De;let _e=oe.name.value,Le=(De=EL[_e])!==null&&De!==void 0?De:g[_e];if(Le===void 0)throw new Error(`Unknown type: "${_e}".`);return Le}function Wt(oe){return oe.kind===Li.Kind.LIST_TYPE?new gn.GraphQLList(Wt(oe.type)):oe.kind===Li.Kind.NON_NULL_TYPE?new gn.GraphQLNonNull(Wt(oe.type)):zt(oe)}function Dn(oe){var De;return new pp.GraphQLDirective({name:oe.name.value,description:(De=oe.description)===null||De===void 0?void 0:De.value,locations:oe.locations.map(({value:_e})=>_e),isRepeatable:oe.repeatable,args:dn(oe.arguments),astNode:oe})}function Vt(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.fields)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;De[se.name.value]={type:Wt(se.type),description:(Le=se.description)===null||Le===void 0?void 0:Le.value,args:dn(se.arguments),deprecationReason:gN(se),astNode:se}}}return De}function dn(oe){let De=oe!=null?oe:[],_e=Object.create(null);for(let _t of De){var Le;let J=Wt(_t.type);_e[_t.name.value]={type:J,description:(Le=_t.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,TL.valueFromAST)(_t.defaultValue,J),deprecationReason:gN(_t),astNode:_t}}return _e}function Ar(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.fields)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;let xe=Wt(se.type);De[se.name.value]={type:xe,description:(Le=se.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,TL.valueFromAST)(se.defaultValue,xe),deprecationReason:gN(se),astNode:se}}}return De}function Rr(oe){let De=Object.create(null);for(let _t of oe){var _e;let J=(_e=_t.values)!==null&&_e!==void 0?_e:[];for(let se of J){var Le;De[se.name.value]={description:(Le=se.description)===null||Le===void 0?void 0:Le.value,deprecationReason:gN(se),astNode:se}}}return De}function Un(oe){return oe.flatMap(De=>{var _e,Le;return(_e=(Le=De.interfaces)===null||Le===void 0?void 0:Le.map(zt))!==null&&_e!==void 0?_e:[]})}function $t(oe){return oe.flatMap(De=>{var _e,Le;return(_e=(Le=De.types)===null||Le===void 0?void 0:Le.map(zt))!==null&&_e!==void 0?_e:[]})}function bn(oe){var De;let _e=oe.name.value,Le=(De=l[_e])!==null&&De!==void 0?De:[];switch(oe.kind){case Li.Kind.OBJECT_TYPE_DEFINITION:{var _t;let et=[oe,...Le];return new gn.GraphQLObjectType({name:_e,description:(_t=oe.description)===null||_t===void 0?void 0:_t.value,interfaces:()=>Un(et),fields:()=>Vt(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.INTERFACE_TYPE_DEFINITION:{var J;let et=[oe,...Le];return new gn.GraphQLInterfaceType({name:_e,description:(J=oe.description)===null||J===void 0?void 0:J.value,interfaces:()=>Un(et),fields:()=>Vt(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.ENUM_TYPE_DEFINITION:{var se;let et=[oe,...Le];return new gn.GraphQLEnumType({name:_e,description:(se=oe.description)===null||se===void 0?void 0:se.value,values:Rr(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.UNION_TYPE_DEFINITION:{var xe;let et=[oe,...Le];return new gn.GraphQLUnionType({name:_e,description:(xe=oe.description)===null||xe===void 0?void 0:xe.value,types:()=>$t(et),astNode:oe,extensionASTNodes:Le})}case Li.Kind.SCALAR_TYPE_DEFINITION:{var Qe;return new gn.GraphQLScalarType({name:_e,description:(Qe=oe.description)===null||Qe===void 0?void 0:Qe.value,specifiedByURL:hL(oe),astNode:oe,extensionASTNodes:Le})}case Li.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Lt;let et=[oe,...Le];return new gn.GraphQLInputObjectType({name:_e,description:(Lt=oe.description)===null||Lt===void 0?void 0:Lt.value,fields:()=>Ar(et),astNode:oe,extensionASTNodes:Le,isOneOf:A5(oe)})}}}}var EL=(0,O5.keyMap)([...IL.specifiedScalarTypes,...yL.introspectionTypes],e=>e.name);function gN(e){let t=(0,J_.getDirectiveValues)(pp.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function hL(e){let t=(0,J_.getDirectiveValues)(pp.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function A5(e){return!!(0,J_.getDirectiveValues)(pp.GraphQLOneOfDirective,e)}});var vL=w(vN=>{"use strict";m();T();N();Object.defineProperty(vN,"__esModule",{value:!0});vN.buildASTSchema=_L;vN.buildSchema=U5;var R5=Lr(),P5=Rt(),F5=Wc(),w5=Gr(),L5=Yu(),C5=cl(),B5=H_();function _L(e,t){e!=null&&e.kind===P5.Kind.DOCUMENT||(0,R5.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,C5.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,B5.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...w5.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new L5.GraphQLSchema(Y(x({},r),{directives:i}))}function U5(e,t){let n=(0,F5.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return _L(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var DL=w(W_=>{"use strict";m();T();N();Object.defineProperty(W_,"__esModule",{value:!0});W_.lexicographicSortSchema=K5;var k5=Yt(),M5=yr(),x5=wd(),SL=Ld(),Cr=Pt(),q5=Gr(),V5=Ai(),j5=Yu();function K5(e){let t=e.toConfig(),n=(0,x5.keyValMap)(z_(t.types),g=>g.name,y);return new j5.GraphQLSchema(Y(x({},t),{types:Object.values(n),directives:z_(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(g){return(0,Cr.isListType)(g)?new Cr.GraphQLList(r(g.ofType)):(0,Cr.isNonNullType)(g)?new Cr.GraphQLNonNull(r(g.ofType)):i(g)}function i(g){return n[g.name]}function a(g){return g&&i(g)}function o(g){let v=g.toConfig();return new q5.GraphQLDirective(Y(x({},v),{locations:OL(v.locations,P=>P),args:c(v.args)}))}function c(g){return SN(g,v=>Y(x({},v),{type:r(v.type)}))}function l(g){return SN(g,v=>Y(x({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function p(g){return SN(g,v=>Y(x({},v),{type:r(v.type)}))}function f(g){return z_(g).map(i)}function y(g){if((0,Cr.isScalarType)(g)||(0,V5.isIntrospectionType)(g))return g;if((0,Cr.isObjectType)(g)){let v=g.toConfig();return new Cr.GraphQLObjectType(Y(x({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Cr.isInterfaceType)(g)){let v=g.toConfig();return new Cr.GraphQLInterfaceType(Y(x({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Cr.isUnionType)(g)){let v=g.toConfig();return new Cr.GraphQLUnionType(Y(x({},v),{types:()=>f(v.types)}))}if((0,Cr.isEnumType)(g)){let v=g.toConfig();return new Cr.GraphQLEnumType(Y(x({},v),{values:SN(v.values,P=>P)}))}if((0,Cr.isInputObjectType)(g)){let v=g.toConfig();return new Cr.GraphQLInputObjectType(Y(x({},v),{fields:()=>p(v.fields)}))}(0,M5.invariant)(!1,"Unexpected type: "+(0,k5.inspect)(g))}}function SN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(SL.naturalCompare))n[r]=t(e[r]);return n}function z_(e){return OL(e,t=>t.name)}function OL(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,SL.naturalCompare)(i,a)})}});var LL=w(fp=>{"use strict";m();T();N();Object.defineProperty(fp,"__esModule",{value:!0});fp.printIntrospectionSchema=z5;fp.printSchema=H5;fp.printType=RL;var G5=Yt(),$5=yr(),Q5=Sd(),Z_=Rt(),ON=ci(),dl=Pt(),ev=Gr(),bL=Ai(),Y5=ba(),J5=Qd();function H5(e){return AL(e,t=>!(0,ev.isSpecifiedDirective)(t),W5)}function z5(e){return AL(e,ev.isSpecifiedDirective,bL.isIntrospectionType)}function W5(e){return!(0,Y5.isSpecifiedScalarType)(e)&&!(0,bL.isIntrospectionType)(e)}function AL(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[X5(e),...r.map(a=>sX(a)),...i.map(a=>RL(a))].filter(Boolean).join(` `)}function X5(e){if(e.description==null&&Z5(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}`),Ci(e)+`schema { ${t.join(` @@ -191,9 +191,9 @@ ${t.join(` -`;F.ID_SCALAR="ID";F.IMPORT="import";F.IN_UPPER="IN";F.INACCESSIBLE="inaccessible";F.INLINE_FRAGMENT="inlineFragment";F.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";F.INPUT="Input";F.INPUT_FIELD="Input field";F.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";F.INPUT_OBJECT="Input Object";F.INPUT_OBJECT_UPPER="INPUT_OBJECT";F.INPUT_VALUE="Input Value";F.INT_SCALAR="Int";F.INTERFACE="Interface";F.INTERFACE_UPPER="INTERFACE";F.INTERFACE_OBJECT="interfaceObject";F.KEY="key";F.LEFT_PARENTHESIS="(";F.LINK="link";F.LINK_IMPORT="link__Import";F.LINK_PURPOSE="link__Purpose";F.LIST="list";F.LITERAL_SPACE=" ";F.LITERAL_NEW_LINE=` `;F.NUMBER="number";F.MUTATION="Mutation";F.MUTATION_UPPER="MUTATION";F.PROPAGATE="propagate";F.PROVIDER_TYPE_KAFKA="kafka";F.PROVIDER_TYPE_NATS="nats";F.PROVIDER_TYPE_REDIS="redis";F.NOT_APPLICABLE="N/A";F.NAME="name";F.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";F.NON_NULLABLE_BOOLEAN="Boolean!";F.NON_NULLABLE_INT="Int!";F.NON_NULLABLE_STRING="String!";F.NOT_UPPER="NOT";F.NULL="Null";F.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";F.OBJECT="Object";F.OBJECT_UPPER="OBJECT";F.OR_UPPER="OR";F.OVERRIDE="override";F.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";F.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";F.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";F.PERIOD=".";F.PROVIDER_ID="providerId";F.PROVIDES="provides";F.PUBLISH="publish";F.QUERY="Query";F.QUERY_UPPER="QUERY";F.QUOTATION_JOIN='", "';F.REASON="reason";F.REQUEST="request";F.REQUIRES="requires";F.REQUIRES_SCOPES="requiresScopes";F.RESOLVABLE="resolvable";F.SCALAR="Scalar";F.SCALAR_UPPER="SCALAR";F.SCHEMA="schema";F.SCHEMA_UPPER="SCHEMA";F.SCOPES="scopes";F.SCOPE_SCALAR="openfed__Scope";F.SECURITY="SECURITY";F.SELECTION_REPRESENTATION=" { ... }";F.SERVICE_OBJECT="_Service";F.SERVICE_FIELD="_service";F.SHAREABLE="shareable";F.SPECIFIED_BY="specifiedBy";F.STREAM_CONFIGURATION="streamConfiguration";F.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";F.STREAM_NAME="streamName";F.STRING="string";F.STRING_SCALAR="String";F.SUBJECT="subject";F.SUBJECTS="subjects";F.SUBSCRIPTION="Subscription";F.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";F.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";F.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";F.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";F.SUBSCRIBE="subscribe";F.SUBSCRIPTION_UPPER="SUBSCRIPTION";F.SUCCESS="success";F.TAG="tag";F.TOPIC="topic";F.TOPICS="topics";F.UNION="Union";F.UNION_UPPER="UNION";F.URL_LOWER="url";F.VALUES="values";F.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";F.CHANNEL="channel";F.CHANNELS="channels";F.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([F.FIELD_UPPER,F.FRAGMENT_DEFINITION_UPPER,F.FRAGMENT_SPREAD_UPPER,F.INLINE_FRAGMENT_UPPER,F.MUTATION_UPPER,F.QUERY_UPPER,F.SUBSCRIPTION_UPPER]);F.ROOT_TYPE_NAMES=new Set([F.MUTATION,F.QUERY,F.SUBSCRIPTION]);F.AUTHORIZATION_DIRECTIVES=new Set([F.AUTHENTICATED,F.REQUIRES_SCOPES]);F.PERSISTED_CLIENT_DIRECTIVES=new Set([F.DEPRECATED]);F.INHERITABLE_DIRECTIVE_NAMES=new Set([F.EXTERNAL,F.SHAREABLE]);F.IGNORED_FIELDS=new Set([F.ENTITIES_FIELD,F.SERVICE_FIELD]);F.INPUT_NODE_KINDS=new Set([iu.Kind.ENUM_TYPE_DEFINITION,iu.Kind.INPUT_OBJECT_TYPE_DEFINITION,iu.Kind.SCALAR_TYPE_DEFINITION]);F.OUTPUT_NODE_KINDS=new Set([iu.Kind.ENUM_TYPE_DEFINITION,iu.Kind.INTERFACE_TYPE_DEFINITION,iu.Kind.OBJECT_TYPE_DEFINITION,iu.Kind.SCALAR_TYPE_DEFINITION,iu.Kind.UNION_TYPE_DEFINITION])});var Yr=w($n=>{"use strict";m();T();N();Object.defineProperty($n,"__esModule",{value:!0});$n.operationTypeNodeToDefaultType=void 0;$n.isObjectLikeNodeEntity=QX;$n.isNodeInterfaceObject=YX;$n.stringToNameNode=PN;$n.stringArrayToNameNodeArray=JX;$n.setToNameNodeArray=HX;$n.stringToNamedTypeNode=rC;$n.setToNamedTypeNodeArray=zX;$n.nodeKindToDirectiveLocation=WX;$n.isKindAbstract=XX;$n.extractExecutableDirectiveLocations=ZX;$n.formatDescription=e9;$n.lexicographicallySortArgumentNodes=iC;$n.lexicographicallySortSelectionSetNode=RN;$n.lexicographicallySortDocumentNode=t9;$n.parse=aC;$n.safeParse=n9;var Ut=Ae(),vn=ur();function QX(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===vn.KEY)return!0;return!1}function YX(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===vn.INTERFACE_OBJECT)return!0;return!1}function PN(e){return{kind:Ut.Kind.NAME,value:e}}function JX(e){let t=[];for(let n of e)t.push(PN(n));return t}function HX(e){let t=[];for(let n of e)t.push(PN(n));return t}function rC(e){return{kind:Ut.Kind.NAMED_TYPE,name:PN(e)}}function zX(e){let t=[];for(let n of e)t.push(rC(n));return t}function WX(e){switch(e){case Ut.Kind.ARGUMENT:return vn.ARGUMENT_DEFINITION_UPPER;case Ut.Kind.ENUM_TYPE_DEFINITION:case Ut.Kind.ENUM_TYPE_EXTENSION:return vn.ENUM_UPPER;case Ut.Kind.ENUM_VALUE_DEFINITION:return vn.ENUM_VALUE_UPPER;case Ut.Kind.FIELD_DEFINITION:return vn.FIELD_DEFINITION_UPPER;case Ut.Kind.FRAGMENT_DEFINITION:return vn.FRAGMENT_DEFINITION_UPPER;case Ut.Kind.FRAGMENT_SPREAD:return vn.FRAGMENT_SPREAD_UPPER;case Ut.Kind.INLINE_FRAGMENT:return vn.INLINE_FRAGMENT_UPPER;case Ut.Kind.INPUT_VALUE_DEFINITION:return vn.INPUT_FIELD_DEFINITION_UPPER;case Ut.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Ut.Kind.INPUT_OBJECT_TYPE_EXTENSION:return vn.INPUT_OBJECT_UPPER;case Ut.Kind.INTERFACE_TYPE_DEFINITION:case Ut.Kind.INTERFACE_TYPE_EXTENSION:return vn.INTERFACE_UPPER;case Ut.Kind.OBJECT_TYPE_DEFINITION:case Ut.Kind.OBJECT_TYPE_EXTENSION:return vn.OBJECT_UPPER;case Ut.Kind.SCALAR_TYPE_DEFINITION:case Ut.Kind.SCALAR_TYPE_EXTENSION:return vn.SCALAR_UPPER;case Ut.Kind.SCHEMA_DEFINITION:case Ut.Kind.SCHEMA_EXTENSION:return vn.SCHEMA_UPPER;case Ut.Kind.UNION_TYPE_DEFINITION:case Ut.Kind.UNION_TYPE_EXTENSION:return vn.UNION_UPPER;default:return e}}$n.operationTypeNodeToDefaultType=new Map([[Ut.OperationTypeNode.MUTATION,vn.MUTATION],[Ut.OperationTypeNode.QUERY,vn.QUERY],[Ut.OperationTypeNode.SUBSCRIPTION,vn.SUBSCRIPTION]]);function XX(e){return e===Ut.Kind.INTERFACE_TYPE_DEFINITION||e===Ut.Kind.UNION_TYPE_DEFINITION}function ZX(e,t){for(let n of e){let r=n.value;vn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function e9(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 Y(x({},e),{value:t,block:!0})}function iC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function RN(e){let t=e.selections;return Y(x({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return vn.NAME in n?vn.NAME in r?n.name.value.localeCompare(r.name.value):-1:vn.NAME in r?1:((o=(a=n.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(c=r.typeCondition)==null?void 0:c.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case Ut.Kind.FIELD:return Y(x({},n),{arguments:iC(n),selectionSet:n.selectionSet?RN(n.selectionSet):n.selectionSet});case Ut.Kind.FRAGMENT_SPREAD:return n;case Ut.Kind.INLINE_FRAGMENT:return Y(x({},n),{selectionSet:RN(n.selectionSet)})}})})}function t9(e){return Y(x({},e),{definitions:e.definitions.map(t=>t.kind!==Ut.Kind.OPERATION_DEFINITION?t:Y(x({},t),{selectionSet:RN(t.selectionSet)}))})}function aC(e,t=!0){return(0,Ut.parse)(e,{noLocation:t})}function n9(e,t=!0){try{return{documentNode:aC(e,t)}}catch(n){return{error:n}}}});var uC=w(fl=>{"use strict";m();T();N();Object.defineProperty(fl,"__esModule",{value:!0});fl.AccumulatorMap=void 0;fl.mapValue=pl;fl.extendSchemaImpl=r9;var Ue=Ae(),Ts=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)}};fl.AccumulatorMap=Ts;function pl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function r9(e,t,n){var De,_e,Le,_t;let r=[],i=new Ts,a=new Ts,o=new Ts,c=new Ts,l=new Ts,p=new Ts,f=[],y,g=[],v=!1;for(let J of t.definitions){switch(J.kind){case Ue.Kind.SCHEMA_DEFINITION:y=J;break;case Ue.Kind.SCHEMA_EXTENSION:g.push(J);break;case Ue.Kind.DIRECTIVE_DEFINITION:f.push(J);break;case Ue.Kind.SCALAR_TYPE_DEFINITION:case Ue.Kind.OBJECT_TYPE_DEFINITION:case Ue.Kind.INTERFACE_TYPE_DEFINITION:case Ue.Kind.UNION_TYPE_DEFINITION:case Ue.Kind.ENUM_TYPE_DEFINITION:case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(J);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(J.name.value,J);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:a.add(J.name.value,J);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(J.name.value,J);break;case Ue.Kind.UNION_TYPE_EXTENSION:c.add(J.name.value,J);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(J.name.value,J);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:p.add(J.name.value,J);break;default:continue}v=!0}if(!v)return e;let P=new Map;for(let J of e.types){let se=W(J);se&&P.set(J.name,se)}for(let J of r){let se=J.name.value;P.set(se,(De=sC.get(se))!=null?De:oe(J))}for(let[J,se]of a)P.set(J,new Ue.GraphQLObjectType({name:J,interfaces:()=>$t(se),fields:()=>dn(se),extensionASTNodes:se}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[J,se]of o)P.set(J,new Ue.GraphQLInterfaceType({name:J,interfaces:()=>$t(se),fields:()=>dn(se),extensionASTNodes:se}));for(let[J,se]of l)P.set(J,new Ue.GraphQLEnumType({name:J,values:Un(se),extensionASTNodes:se}));for(let[J,se]of c)P.set(J,new Ue.GraphQLUnionType({name:J,types:()=>bn(se),extensionASTNodes:se}));for(let[J,se]of i)P.set(J,new Ue.GraphQLScalarType({name:J,extensionASTNodes:se}));for(let[J,se]of p)P.set(J,new Ue.GraphQLInputObjectType({name:J,fields:()=>Rr(se),extensionASTNodes:se}))}let M=x(x({query:e.query&&G(e.query),mutation:e.mutation&&G(e.mutation),subscription:e.subscription&&G(e.subscription)},y&&zt([y])),zt(g));return Y(x({description:(Le=(_e=y==null?void 0:y.description)==null?void 0:_e.value)!=null?Le:e.description},M),{types:Array.from(P.values()),directives:[...e.directives.map(Z),...f.map(Vt)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(g),assumeValid:(_t=n==null?void 0:n.assumeValid)!=null?_t:!1});function K(J){return(0,Ue.isListType)(J)?new Ue.GraphQLList(K(J.ofType)):(0,Ue.isNonNullType)(J)?new Ue.GraphQLNonNull(K(J.ofType)):G(J)}function G(J){return P.get(J.name)}function Z(J){if((0,Ue.isSpecifiedDirective)(J))return J;let se=J.toConfig();return new Ue.GraphQLDirective(Y(x({},se),{args:pl(se.args,gt)}))}function W(J){if((0,Ue.isIntrospectionType)(J)||(0,Ue.isSpecifiedScalarType)(J))return J;if((0,Ue.isScalarType)(J))return we(J);if((0,Ue.isObjectType)(J))return je(J);if((0,Ue.isInterfaceType)(J))return it(J);if((0,Ue.isUnionType)(J))return ee(J);if((0,Ue.isEnumType)(J))return fe(J);if((0,Ue.isInputObjectType)(J))return Te(J)}function Te(J){var Qe;let se=J.toConfig(),xe=(Qe=p.get(se.name))!=null?Qe:[];return new Ue.GraphQLInputObjectType(Y(x({},se),{fields:()=>x(x({},pl(se.fields,Lt=>Y(x({},Lt),{type:K(Lt.type)}))),Rr(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function fe(J){var Qe;let se=J.toConfig(),xe=(Qe=l.get(J.name))!=null?Qe:[];return new Ue.GraphQLEnumType(Y(x({},se),{values:x(x({},se.values),Un(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function we(J){var Lt,et;let se=J.toConfig(),xe=(Lt=i.get(se.name))!=null?Lt:[],Qe=se.specifiedByURL;for(let bt of xe)Qe=(et=oC(bt))!=null?et:Qe;return new Ue.GraphQLScalarType(Y(x({},se),{specifiedByURL:Qe,extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function je(J){var Qe;let se=J.toConfig(),xe=(Qe=a.get(se.name))!=null?Qe:[];return new Ue.GraphQLObjectType(Y(x({},se),{interfaces:()=>[...J.getInterfaces().map(G),...$t(xe)],fields:()=>x(x({},pl(se.fields,ve)),dn(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function it(J){var Qe;let se=J.toConfig(),xe=(Qe=o.get(se.name))!=null?Qe:[];return new Ue.GraphQLInterfaceType(Y(x({},se),{interfaces:()=>[...J.getInterfaces().map(G),...$t(xe)],fields:()=>x(x({},pl(se.fields,ve)),dn(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function ee(J){var Qe;let se=J.toConfig(),xe=(Qe=c.get(se.name))!=null?Qe:[];return new Ue.GraphQLUnionType(Y(x({},se),{types:()=>[...J.getTypes().map(G),...bn(xe)],extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function ve(J){return Y(x({},J),{type:K(J.type),args:J.args&&pl(J.args,gt)})}function gt(J){return Y(x({},J),{type:K(J.type)})}function zt(J){var xe;let se={};for(let Qe of J){let Lt=(xe=Qe.operationTypes)!=null?xe:[];for(let et of Lt)se[et.operation]=Wt(et.type)}return se}function Wt(J){var Qe;let se=J.name.value,xe=(Qe=sC.get(se))!=null?Qe:P.get(se);if(xe===void 0)throw new Error(`Unknown type: "${se}".`);return xe}function Dn(J){return J.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(Dn(J.type)):J.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(Dn(J.type)):Wt(J)}function Vt(J){var se;return new Ue.GraphQLDirective({name:J.name.value,description:(se=J.description)==null?void 0:se.value,locations:J.locations.map(({value:xe})=>xe),isRepeatable:J.repeatable,args:Ar(J.arguments),astNode:J})}function dn(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.fields)!=null?xe:[];for(let bt of et)se[bt.name.value]={type:Dn(bt.type),description:(Qe=bt.description)==null?void 0:Qe.value,args:Ar(bt.arguments),deprecationReason:FN(bt),astNode:bt}}return se}function Ar(J){var Qe;let se=J!=null?J:[],xe=Object.create(null);for(let Lt of se){let et=Dn(Lt.type);xe[Lt.name.value]={type:et,description:(Qe=Lt.description)==null?void 0:Qe.value,defaultValue:(0,Ue.valueFromAST)(Lt.defaultValue,et),deprecationReason:FN(Lt),astNode:Lt}}return xe}function Rr(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.fields)!=null?xe:[];for(let bt of et){let Ha=Dn(bt.type);se[bt.name.value]={type:Ha,description:(Qe=bt.description)==null?void 0:Qe.value,defaultValue:(0,Ue.valueFromAST)(bt.defaultValue,Ha),deprecationReason:FN(bt),astNode:bt}}}return se}function Un(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.values)!=null?xe:[];for(let bt of et)se[bt.name.value]={description:(Qe=bt.description)==null?void 0:Qe.value,deprecationReason:FN(bt),astNode:bt}}return se}function $t(J){return J.flatMap(se=>{var xe,Qe;return(Qe=(xe=se.interfaces)==null?void 0:xe.map(Wt))!=null?Qe:[]})}function bn(J){return J.flatMap(se=>{var xe,Qe;return(Qe=(xe=se.types)==null?void 0:xe.map(Wt))!=null?Qe:[]})}function oe(J){var xe,Qe,Lt,et,bt,Ha,xr,za,wc,ha,pr,ni;let se=J.name.value;switch(J.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let xt=(xe=a.get(se))!=null?xe:[],fr=[J,...xt];return a.delete(se),new Ue.GraphQLObjectType({name:se,description:(Qe=J.description)==null?void 0:Qe.value,interfaces:()=>$t(fr),fields:()=>dn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let xt=(Lt=o.get(se))!=null?Lt:[],fr=[J,...xt];return o.delete(se),new Ue.GraphQLInterfaceType({name:se,description:(et=J.description)==null?void 0:et.value,interfaces:()=>$t(fr),fields:()=>dn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let xt=(bt=l.get(se))!=null?bt:[],fr=[J,...xt];return l.delete(se),new Ue.GraphQLEnumType({name:se,description:(Ha=J.description)==null?void 0:Ha.value,values:Un(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.UNION_TYPE_DEFINITION:{let xt=(xr=c.get(se))!=null?xr:[],fr=[J,...xt];return c.delete(se),new Ue.GraphQLUnionType({name:se,description:(za=J.description)==null?void 0:za.value,types:()=>bn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let xt=(wc=i.get(se))!=null?wc:[];return i.delete(se),new Ue.GraphQLScalarType({name:se,description:(ha=J.description)==null?void 0:ha.value,specifiedByURL:oC(J),astNode:J,extensionASTNodes:xt})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let xt=(pr=p.get(se))!=null?pr:[],fr=[J,...xt];return p.delete(se),new Ue.GraphQLInputObjectType({name:se,description:(ni=J.description)==null?void 0:ni.value,fields:()=>Rr(fr),astNode:J,extensionASTNodes:xt})}}}}var sC=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function FN(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function oC(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var lv=w(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.buildASTSchema=s9;var cC=Ae(),i9=cl(),a9=uC();function s9(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,i9.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,a9.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...cC.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new cC.GraphQLSchema(Y(x({},r),{directives:i}))}});var ml=w(au=>{"use strict";m();T();N();Object.defineProperty(au,"__esModule",{value:!0});au.MAX_INT32=au.MAX_SUBSCRIPTION_FILTER_DEPTH=au.MAXIMUM_TYPE_NESTING=void 0;au.MAXIMUM_TYPE_NESTING=30;au.MAX_SUBSCRIPTION_FILTER_DEPTH=5;au.MAX_INT32=nn(2,31)-1});var Jr=w(Nr=>{"use strict";m();T();N();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.getOrThrowError=u9;Nr.getEntriesNotInHashSet=c9;Nr.numberToOrdinal=l9;Nr.addIterableValuesToSet=d9;Nr.addSets=p9;Nr.kindToNodeType=f9;Nr.getValueOrDefault=m9;Nr.add=N9;Nr.generateSimpleDirective=T9;Nr.generateRequiresScopesDirective=E9;Nr.copyObjectValueMap=h9;Nr.addNewObjectValueMapEntries=y9;Nr.copyArrayValueMap=I9;Nr.addMapEntries=g9;Nr.getSingleSetEntry=_9;var an=Ae(),_r=ur(),o9=ia(),dv=Yr();function u9(e,t,n){let r=e.get(t);if(r===void 0)throw(0,o9.invalidKeyFatalError)(t,n);return r}function c9(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function l9(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`}}function d9(e,t){for(let n of e)t.add(n)}function p9(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function f9(e){switch(e){case an.Kind.BOOLEAN:return _r.BOOLEAN_SCALAR;case an.Kind.ENUM:case an.Kind.ENUM_TYPE_DEFINITION:return _r.ENUM;case an.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case an.Kind.ENUM_VALUE_DEFINITION:return _r.ENUM_VALUE;case an.Kind.FIELD_DEFINITION:return _r.FIELD;case an.Kind.FLOAT:return _r.FLOAT_SCALAR;case an.Kind.INPUT_OBJECT_TYPE_DEFINITION:return _r.INPUT_OBJECT;case an.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case an.Kind.INPUT_VALUE_DEFINITION:return _r.INPUT_VALUE;case an.Kind.INT:return _r.INT_SCALAR;case an.Kind.INTERFACE_TYPE_DEFINITION:return _r.INTERFACE;case an.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case an.Kind.NULL:return _r.NULL;case an.Kind.OBJECT:case an.Kind.OBJECT_TYPE_DEFINITION:return _r.OBJECT;case an.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case an.Kind.STRING:return _r.STRING_SCALAR;case an.Kind.SCALAR_TYPE_DEFINITION:return _r.SCALAR;case an.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case an.Kind.UNION_TYPE_DEFINITION:return _r.UNION;case an.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function m9(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function N9(e,t){return e.has(t)?!1:(e.add(t),!0)}function T9(e){return{kind:an.Kind.DIRECTIVE,name:(0,dv.stringToNameNode)(e)}}function E9(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:an.Kind.STRING,value:i});t.push({kind:an.Kind.LIST,values:r})}return{kind:an.Kind.DIRECTIVE,name:(0,dv.stringToNameNode)(_r.REQUIRES_SCOPES),arguments:[{kind:an.Kind.ARGUMENT,name:(0,dv.stringToNameNode)(_r.SCOPES),value:{kind:an.Kind.LIST,values:t}}]}}function h9(e){let t=new Map;for(let[n,r]of e)t.set(n,x({},r));return t}function y9(e,t){for(let[n,r]of e)t.set(n,x({},r))}function I9(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function g9(e,t){for(let[n,r]of e)t.set(n,r)}function _9(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Ep=w(wN=>{"use strict";m();T();N();Object.defineProperty(wN,"__esModule",{value:!0});wN.ExtensionType=void 0;var lC;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(lC||(wN.ExtensionType=lC={}))});var su=w(Sr=>{"use strict";m();T();N();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getMutableDirectiveDefinitionNode=S9;Sr.getMutableEnumNode=O9;Sr.getMutableEnumValueNode=D9;Sr.getMutableFieldNode=b9;Sr.getMutableInputObjectNode=A9;Sr.getMutableInputValueNode=R9;Sr.getMutableInterfaceNode=P9;Sr.getMutableObjectNode=F9;Sr.getMutableObjectExtensionNode=w9;Sr.getMutableScalarNode=L9;Sr.getMutableTypeNode=pv;Sr.getMutableUnionNode=C9;Sr.getTypeNodeNamedTypeName=fv;Sr.getNamedTypeNode=pC;var vr=Ae(),Nl=Yr(),dC=ia(),v9=ml();function S9(e){return{arguments:[],kind:e.kind,locations:[],name:x({},e.name),repeatable:e.repeatable,description:(0,Nl.formatDescription)(e.description)}}function O9(e){return{kind:vr.Kind.ENUM_TYPE_DEFINITION,name:x({},e)}}function D9(e){return{directives:[],kind:e.kind,name:x({},e.name),description:(0,Nl.formatDescription)(e.description)}}function b9(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:x({},e.name),type:pv(e.type,t,n),description:(0,Nl.formatDescription)(e.description)}}function A9(e){return{kind:vr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:x({},e)}}function R9(e,t,n){return{directives:[],kind:e.kind,name:x({},e.name),type:pv(e.type,t,n),defaultValue:e.defaultValue,description:(0,Nl.formatDescription)(e.description)}}function P9(e){return{kind:vr.Kind.INTERFACE_TYPE_DEFINITION,name:x({},e)}}function F9(e){return{kind:vr.Kind.OBJECT_TYPE_DEFINITION,name:x({},e)}}function w9(e){let t=e.kind===vr.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:vr.Kind.OBJECT_TYPE_EXTENSION,name:x({},e.name),description:(0,Nl.formatDescription)(t)}}function L9(e){return{kind:vr.Kind.SCALAR_TYPE_DEFINITION,name:x({},e)}}function pv(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(LN,"__esModule",{value:!0});LN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;LN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var Es=w(te=>{"use strict";m();T();N();Object.defineProperty(te,"__esModule",{value:!0});te.MAX_OR_SCOPES=te.EDFS_ARGS_REGEXP=te.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=te.CONFIGURE_DESCRIPTION_DEFINITION=te.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=te.SCOPE_SCALAR_DEFINITION=te.FIELD_SET_SCALAR_DEFINITION=te.VERSION_TWO_DIRECTIVE_DEFINITIONS=te.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=te.BASE_DIRECTIVE_DEFINITIONS=te.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=te.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=te.SUBSCRIPTION_FILTER_VALUE_DEFINITION=te.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=te.SUBSCRIPTION_FILTER_DEFINITION=te.SHAREABLE_DEFINITION=te.REQUIRES_SCOPES_DEFINITION=te.OVERRIDE_DEFINITION=te.LINK_DEFINITION=te.LINK_PURPOSE_DEFINITION=te.LINK_IMPORT_DEFINITION=te.INTERFACE_OBJECT_DEFINITION=te.INACCESSIBLE_DEFINITION=te.COMPOSE_DIRECTIVE_DEFINITION=te.AUTHENTICATED_DEFINITION=te.ALL_IN_BUILT_DIRECTIVE_NAMES=te.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=te.EDFS_REDIS_SUBSCRIBE_DEFINITION=te.EDFS_REDIS_PUBLISH_DEFINITION=te.TAG_DEFINITION=te.SPECIFIED_BY_DEFINITION=te.REQUIRES_DEFINITION=te.PROVIDES_DEFINITION=te.KEY_DEFINITION=te.REQUIRED_FIELDSET_TYPE_NODE=te.EDFS_NATS_SUBSCRIBE_DEFINITION=te.EDFS_NATS_REQUEST_DEFINITION=te.EDFS_NATS_PUBLISH_DEFINITION=te.EDFS_KAFKA_SUBSCRIBE_DEFINITION=te.EDFS_KAFKA_PUBLISH_DEFINITION=te.EXTERNAL_DEFINITION=te.EXTENDS_DEFINITION=te.DEPRECATED_DEFINITION=te.BASE_SCALARS=te.REQUIRED_STRING_TYPE_NODE=void 0;var ue=Ae(),ae=Yr(),B9=mv(),U=ur();te.REQUIRED_STRING_TYPE_NODE={kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)};te.BASE_SCALARS=new Set(["_Any","_Entities",U.BOOLEAN_SCALAR,U.FLOAT_SCALAR,U.ID_SCALAR,U.INT_SCALAR,U.FIELD_SET_SCALAR,U.SCOPE_SCALAR,U.STRING_SCALAR]);te.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.REASON),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR),defaultValue:{kind:ue.Kind.STRING,value:ue.DEFAULT_DEPRECATION_REASON}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.DEPRECATED),repeatable:!1};te.EXTENDS_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.EXTENDS),repeatable:!1};te.EXTERNAL_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.EXTERNAL),repeatable:!1};te.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.TOPIC),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_KAFKA_PUBLISH),repeatable:!1};te.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.TOPICS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};te.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECT),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_PUBLISH),repeatable:!1};te.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECT),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_REQUEST),repeatable:!1};te.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECTS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.STREAM_CONFIGURATION),type:(0,ae.stringToNamedTypeNode)(U.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_SUBSCRIBE),repeatable:!1};te.REQUIRED_FIELDSET_TYPE_NODE={kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)};te.KEY_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:te.REQUIRED_FIELDSET_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.RESOLVABLE),type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR),defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.KEY),repeatable:!0};te.PROVIDES_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:te.REQUIRED_FIELDSET_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.PROVIDES),repeatable:!1};te.REQUIRES_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.REQUIRES),repeatable:!1};te.SPECIFIED_BY_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.URL_LOWER),type:te.REQUIRED_STRING_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.SPECIFIED_BY),repeatable:!1};te.TAG_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.TAG),repeatable:!0};te.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CHANNEL),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_REDIS_PUBLISH),repeatable:!1};te.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CHANNELS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_REDIS_SUBSCRIBE),repeatable:!1};te.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.DEPRECATED,te.DEPRECATED_DEFINITION],[U.EXTENDS,te.EXTENDS_DEFINITION],[U.EXTERNAL,te.EXTERNAL_DEFINITION],[U.EDFS_KAFKA_PUBLISH,te.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,te.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,te.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,te.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,te.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,te.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,te.EDFS_REDIS_SUBSCRIBE_DEFINITION],[U.KEY,te.KEY_DEFINITION],[U.PROVIDES,te.PROVIDES_DEFINITION],[U.REQUIRES,te.REQUIRES_DEFINITION],[U.SPECIFIED_BY,te.SPECIFIED_BY_DEFINITION],[U.TAG,te.TAG_DEFINITION]]);te.ALL_IN_BUILT_DIRECTIVE_NAMES=new Set([U.AUTHENTICATED,U.COMPOSE_DIRECTIVE,U.CONFIGURE_DESCRIPTION,U.CONFIGURE_CHILD_DESCRIPTIONS,U.DEPRECATED,U.EDFS_NATS_PUBLISH,U.EDFS_NATS_REQUEST,U.EDFS_NATS_SUBSCRIBE,U.EDFS_KAFKA_PUBLISH,U.EDFS_KAFKA_SUBSCRIBE,U.EDFS_REDIS_PUBLISH,U.EDFS_REDIS_SUBSCRIBE,U.EXTENDS,U.EXTERNAL,U.INACCESSIBLE,U.INTERFACE_OBJECT,U.KEY,U.LINK,U.OVERRIDE,U.PROVIDES,U.REQUIRES,U.REQUIRES_SCOPES,U.SHAREABLE,U.SPECIFIED_BY,U.SUBSCRIPTION_FILTER,U.TAG]);te.AUTHENTICATED_DEFINITION={arguments:[],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.AUTHENTICATED),repeatable:!1};te.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NAME),type:te.REQUIRED_STRING_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,ae.stringToNameNode)(U.COMPOSE_DIRECTIVE),repeatable:!0};te.INACCESSIBLE_DEFINITION={arguments:[],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.INACCESSIBLE),repeatable:!1};te.INTERFACE_OBJECT_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.INTERFACE_OBJECT),repeatable:!1};te.LINK_IMPORT_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.LINK_IMPORT)};te.LINK_PURPOSE_DEFINITION={kind:ue.Kind.ENUM_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.LINK_PURPOSE),values:[{directives:[],kind:ue.Kind.ENUM_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.EXECUTION)},{directives:[],kind:ue.Kind.ENUM_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SECURITY)}]};te.LINK_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.URL_LOWER),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.AS),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FOR),type:(0,ae.stringToNamedTypeNode)(U.LINK_PURPOSE)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.IMPORT),type:{kind:ue.Kind.LIST_TYPE,type:(0,ae.stringToNamedTypeNode)(U.LINK_IMPORT)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,ae.stringToNameNode)(U.LINK),repeatable:!0};te.OVERRIDE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FROM),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.OVERRIDE),repeatable:!1};te.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SCOPES),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SCOPE_SCALAR)}}}}}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.REQUIRES_SCOPES),repeatable:!1};te.SHAREABLE_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.SHAREABLE),repeatable:!0};te.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONDITION),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER),repeatable:!1};te.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.AND_UPPER),type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.IN_UPPER),type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FIELD_CONDITION)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.OR_UPPER),type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NOT_UPPER),type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}],kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER_CONDITION)};te.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER_VALUE)};te.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELD_PATH),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.VALUES),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FIELD_CONDITION)};te.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.AUTHENTICATED,te.AUTHENTICATED_DEFINITION],[U.COMPOSE_DIRECTIVE,te.COMPOSE_DIRECTIVE_DEFINITION],[U.INACCESSIBLE,te.INACCESSIBLE_DEFINITION],[U.INTERFACE_OBJECT,te.INTERFACE_OBJECT_DEFINITION],[U.LINK,te.LINK_DEFINITION],[U.OVERRIDE,te.OVERRIDE_DEFINITION],[U.REQUIRES_SCOPES,te.REQUIRES_SCOPES_DEFINITION],[U.SHAREABLE,te.SHAREABLE_DEFINITION]]);te.BASE_DIRECTIVE_DEFINITIONS=[te.DEPRECATED_DEFINITION,te.EXTENDS_DEFINITION,te.EXTERNAL_DEFINITION,te.KEY_DEFINITION,te.PROVIDES_DEFINITION,te.REQUIRES_DEFINITION,te.SPECIFIED_BY_DEFINITION,te.TAG_DEFINITION];te.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[U.EDFS_KAFKA_PUBLISH,te.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,te.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,te.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,te.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,te.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,te.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,te.EDFS_REDIS_SUBSCRIBE_DEFINITION]]);te.VERSION_TWO_DIRECTIVE_DEFINITIONS=[te.AUTHENTICATED_DEFINITION,te.COMPOSE_DIRECTIVE_DEFINITION,te.INACCESSIBLE_DEFINITION,te.INTERFACE_OBJECT_DEFINITION,te.OVERRIDE_DEFINITION,te.REQUIRES_SCOPES_DEFINITION,te.SHAREABLE_DEFINITION];te.FIELD_SET_SCALAR_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELD_SET_SCALAR)};te.SCOPE_SCALAR_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SCOPE_SCALAR)};te.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONSUMER_NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.STREAM_NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.INT_SCALAR)},defaultValue:{kind:ue.Kind.INT,value:B9.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}}]};te.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROPAGATE),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}},{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.DESCRIPTION_OVERRIDE),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.INPUT_OBJECT_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.SCHEMA_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.CONFIGURE_DESCRIPTION),repeatable:!1};te.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROPAGATE),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};te.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;te.MAX_OR_SCOPES=16});var CN=w(tc=>{"use strict";m();T();N();Object.defineProperty(tc,"__esModule",{value:!0});tc.newParentTagData=x9;tc.newChildTagData=q9;tc.validateImplicitFieldSets=V9;tc.newContractTagOptionsFromArrays=j9;tc.getDescriptionFromString=K9;var Hr=Ae(),U9=su(),k9=Es(),M9=Yr(),fC=Jr();function x9(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function q9(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function V9({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,fC.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,p]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let f=[i],y=[],g=[],v=-1,P=!0,M=!0;(0,Hr.visit)(p,{Argument:{enter(){return M=!1,Hr.BREAK}},Field:{enter(K){let G=f[v];if(P)return M=!1,Hr.BREAK;let Z=K.name.value,W=G.fieldDataByName.get(Z);if(!W||W.argumentDataByName.size||y[v].has(Z))return M=!1,Hr.BREAK;let{isUnconditionallyProvided:Te}=(0,fC.getOrThrowError)(W.externalFieldDataBySubgraphName,t,`${W.originalParentTypeName}.${Z}.externalFieldDataBySubgraphName`),fe=e.get(`${W.renamedParentTypeName}.${Z}`);if(fe){if(fe.providedBy.length>0)g.push(...fe.providedBy);else if(fe.requiredBy.length>0)return M=!1,Hr.BREAK}else if(!Te)return M=!1,Hr.BREAK;y[v].add(Z);let we=(0,U9.getTypeNodeNamedTypeName)(W.node.type);if(k9.BASE_SCALARS.has(we))return;let je=a.get(we);if(!je)return M=!1,Hr.BREAK;if(je.kind===Hr.Kind.OBJECT_TYPE_DEFINITION){P=!0,f.push(je);return}if((0,M9.isKindAbstract)(je.kind))return M=!1,Hr.BREAK}},InlineFragment:{enter(){return M=!1,Hr.BREAK}},SelectionSet:{enter(){if(!P||(v+=1,P=!1,v<0||v>=f.length))return M=!1,Hr.BREAK;y.push(new Set)},leave(){if(P)return M=!1,Hr.BREAK;v-=1,f.pop(),y.pop()}}}),M&&(r.push(Y(x({fieldName:"",selectionSet:l},g.length>0?{conditions:g}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function j9(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function K9(e){if(e)return{block:!0,kind:Hr.Kind.STRING,value:e}}});var El=w(ft=>{"use strict";m();T();N();Object.defineProperty(ft,"__esModule",{value:!0});ft.MergeMethod=void 0;ft.newPersistedDirectivesData=$9;ft.isNodeExternalOrShareable=Q9;ft.isTypeRequired=Y9;ft.areDefaultValuesCompatible=NC;ft.compareAndValidateInputValueDefaultValues=J9;ft.setMutualExecutableLocations=H9;ft.isTypeNameRootType=z9;ft.getRenamedRootTypeName=W9;ft.childMapToValueArray=Z9;ft.setLongestDescription=e7;ft.isParentDataRootType=TC;ft.isParentDataInterfaceType=t7;ft.setParentDataExtensionType=n7;ft.extractPersistedDirectives=a7;ft.propagateAuthDirectives=s7;ft.propagateFieldAuthDirectives=o7;ft.generateDeprecatedDirective=hv;ft.getClientPersistedDirectiveNodes=Tv;ft.getNodeForRouterSchemaByData=c7;ft.getClientSchemaFieldNodeByFieldData=l7;ft.getNodeWithPersistedDirectivesByInputValueData=hC;ft.addValidPersistedDirectiveDefinitionNodeByData=p7;ft.newInvalidFieldNames=f7;ft.validateExternalAndShareable=m7;ft.isTypeValidImplementation=BN;ft.isNodeDataInaccessible=yC;ft.isLeafKind=N7;ft.getSubscriptionFilterValue=T7;ft.getParentTypeName=E7;ft.newConditionalFieldData=h7;ft.getDefinitionDataCoords=y7;ft.isParentDataCompositeOutputType=I7;ft.newExternalFieldData=g7;ft.getInitialFederatedDescription=_7;ft.areKindsEqual=v7;ft.isFieldData=IC;ft.isInputNodeKind=S7;ft.isOutputNodeKind=O7;var st=Ae(),Nv=Ep(),Tl=Yr(),Ev=ia(),kt=ur(),hp=Jr(),G9=CN();function $9(){return{deprecatedReason:"",directivesByDirectiveName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function Q9(e,t,n){var i;let r={isExternal:n.has(kt.EXTERNAL),isShareable:t||n.has(kt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===kt.EXTERNAL){r.isExternal=!0;continue}o===kt.SHAREABLE&&(r.isShareable=!0)}return r}function Y9(e){return e.kind===st.Kind.NON_NULL_TYPE}function NC(e,t){switch(e.kind){case st.Kind.LIST_TYPE:return t.kind===st.Kind.LIST||t.kind===st.Kind.NULL;case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NULL)return!0;switch(e.name.value){case kt.BOOLEAN_SCALAR:return t.kind===st.Kind.BOOLEAN;case kt.FLOAT_SCALAR:return t.kind===st.Kind.INT||t.kind===st.Kind.FLOAT;case kt.INT_SCALAR:return t.kind===st.Kind.INT;case kt.STRING_SCALAR:return t.kind===st.Kind.STRING;default:return!0}case st.Kind.NON_NULL_TYPE:return t.kind===st.Kind.NULL?!1:NC(e.type,t)}}function J9(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,st.print)(e.defaultValue),i=(0,st.print)(t.defaultValue);if(r!==i){n.push((0,Ev.incompatibleInputValueDefaultValuesError)(`${e.isArgument?kt.ARGUMENT:kt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function H9(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function z9(e,t){return kt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function W9(e,t){let n=t.get(e);if(!n)return e;switch(n){case st.OperationTypeNode.MUTATION:return kt.MUTATION;case st.OperationTypeNode.SUBSCRIPTION:return kt.SUBSCRIPTION;default:return kt.QUERY}}function X9(e){for(let t of e.argumentDataByName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function Z9(e){let t=[];for(let n of e.values()){IC(n)&&X9(n);for(let r of n.directivesByDirectiveName.values())n.node.directives.push(...r);t.push(n.node)}return t}function e7(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:n}of t.configureDescriptionDataBySubgraphName.values())if(!n)return}(!e.description||e.description.value.length0&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.REQUIRES_SCOPES,[(0,hp.generateRequiresScopesDirective)(t.requiredScopes)]))}function o7(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.AUTHENTICATED,[(0,hp.generateSimpleDirective)(kt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.REQUIRES_SCOPES,[(0,hp.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function hv(e){return{kind:st.Kind.DIRECTIVE,name:(0,Tl.stringToNameNode)(kt.DEPRECATED),arguments:[{kind:st.Kind.ARGUMENT,name:(0,Tl.stringToNameNode)(kt.REASON),value:{kind:st.Kind.STRING,value:e||kt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function u7(e,t,n,r){let i=[];for(let[a,o]of e){let c=t.get(a);if(c){if(o.length<2){i.push(...o);continue}if(!c.repeatable){r.push((0,Ev.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function EC(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(hv(e.persistedDirectivesData.deprecatedReason)),r.push(...u7(e.persistedDirectivesData.directivesByDirectiveName,t,e.name,n)),r}function Tv(e){let t=[];e.persistedDirectivesData.isDeprecated&&t.push(hv(e.persistedDirectivesData.deprecatedReason));for(let[n,r]of e.persistedDirectivesData.directivesByDirectiveName)kt.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(r[0]);return t}function c7(e,t,n){return e.node.name=(0,Tl.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=EC(e,t,n),e.node}function l7(e){let t=Tv(e),n=[];for(let r of e.argumentDataByName.values())yC(r)||n.push(Y(x({},r.node),{directives:Tv(r)}));return Y(x({},e.node),{directives:t,arguments:n})}function hC(e,t,n){return e.node.name=(0,Tl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=EC(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function d7(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByArgumentName){let l=(0,hp.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames);if(l.length>0){c.requiredSubgraphNames.size>0&&a.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...c.requiredSubgraphNames]});continue}e.push(hC(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,Ev.invalidRequiredInputValueError)(kt.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function p7(e,t,n,r){let i=[];d7(i,t,n,r)&&e.push({arguments:i,kind:st.Kind.DIRECTIVE_DEFINITION,locations:(0,Tl.setToNameNodeArray)(t.executableLocations),name:(0,Tl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function f7(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function m7(e,t){let n=e.isShareableBySubgraphName.size,r=[],i=0;for(let[a,o]of e.isShareableBySubgraphName){let c=e.externalFieldDataBySubgraphName.get(a);if(c&&!c.isUnconditionallyProvided){r.push(a);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var mC;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(mC||(ft.MergeMethod=mC={}));function BN(e,t,n){if(e.kind===st.Kind.NON_NULL_TYPE)return t.kind!==st.Kind.NON_NULL_TYPE?!1:BN(e.type,t.type,n);if(t.kind===st.Kind.NON_NULL_TYPE)return BN(e,t.type,n);switch(e.kind){case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let a=n.get(r);return a?a.has(i):!1}return!1;default:return t.kind===st.Kind.LIST_TYPE?BN(e.type,t.type,n):!1}}function yC(e){return e.persistedDirectivesData.directivesByDirectiveName.has(kt.INACCESSIBLE)||e.directivesByDirectiveName.has(kt.INACCESSIBLE)}function N7(e){return e===st.Kind.SCALAR_TYPE_DEFINITION||e===st.Kind.ENUM_TYPE_DEFINITION}function T7(e){switch(e.kind){case st.Kind.BOOLEAN:return e.value;case st.Kind.ENUM:case st.Kind.STRING:return e.value;case st.Kind.FLOAT:case st.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case st.Kind.NULL:return null}}function E7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function h7(){return{providedBy:[],requiredBy:[]}}function y7(e,t){switch(e.kind){case st.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case st.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case st.Kind.ARGUMENT:case st.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case st.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function I7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION||e.kind===st.Kind.INTERFACE_TYPE_DEFINITION}function g7(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function _7(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,G9.getDescriptionFromString)(t.description)||e.description}function v7(e,t){return e.kind===t.kind}function IC(e){return e.kind===st.Kind.FIELD_DEFINITION}function S7(e){return kt.INPUT_NODE_KINDS.has(e)}function O7(e){return kt.OUTPUT_NODE_KINDS.has(e)}});var gv={};am(gv,{__addDisposableResource:()=>VC,__assign:()=>UN,__asyncDelegator:()=>LC,__asyncGenerator:()=>wC,__asyncValues:()=>CC,__await:()=>hl,__awaiter:()=>DC,__classPrivateFieldGet:()=>MC,__classPrivateFieldIn:()=>qC,__classPrivateFieldSet:()=>xC,__createBinding:()=>MN,__decorate:()=>vC,__disposeResources:()=>jC,__esDecorate:()=>D7,__exportStar:()=>AC,__extends:()=>gC,__generator:()=>bC,__importDefault:()=>kC,__importStar:()=>UC,__makeTemplateObject:()=>BC,__metadata:()=>OC,__param:()=>SC,__propKey:()=>A7,__read:()=>Iv,__rest:()=>_C,__runInitializers:()=>b7,__setFunctionName:()=>R7,__spread:()=>RC,__spreadArray:()=>FC,__spreadArrays:()=>PC,__values:()=>kN,default:()=>w7});function gC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function _C(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;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function SC(e,t){return function(n,r){t(n,r,e)}}function D7(e,t,n,r,i,a){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",p=!t&&e?r.static?e:e.prototype:null,f=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),y,g=!1,v=n.length-1;v>=0;v--){var P={};for(var M in r)P[M]=M==="access"?{}:r[M];for(var M in r.access)P.access[M]=r.access[M];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var K=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],P);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(f.get=y),(y=o(K.set))&&(f.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):f[l]=y)}p&&Object.defineProperty(p,r.name,f),g=!0}function b7(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[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 Iv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function RC(){for(var e=[],t=0;t1||c(g,v)})})}function c(g,v){try{l(r[g](v))}catch(P){y(a[0][3],P)}}function l(g){g.value instanceof hl?Promise.resolve(g.value.v).then(p,f):y(a[0][2],g)}function p(g){c("next",g)}function f(g){c("throw",g)}function y(g,v){g(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function LC(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,a){t[i]=e[i]?function(o){return(n=!n)?{value:hl(e[i](o)),done:!1}:a?a(o):o}:a}}function CC(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 kN=="function"?kN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(p){a({value:p,done:c})},o)}}function BC(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function UC(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)&&MN(t,e,n);return P7(t,e),t}function kC(e){return e&&e.__esModule?e:{default:e}}function MC(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 xC(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 qC(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 VC(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 jC(e){function t(r){e.error=e.hasError?new F7(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(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var yv,UN,MN,P7,F7,w7,_v=wu(()=>{"use strict";m();T();N();yv=function(e,t){return yv=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])},yv(e,t)};UN=function(){return UN=Object.assign||function(t){for(var n,r=1,i=arguments.length;rcB,__assign:()=>xN,__asyncDelegator:()=>tB,__asyncGenerator:()=>eB,__asyncValues:()=>nB,__await:()=>yl,__awaiter:()=>JC,__classPrivateFieldGet:()=>sB,__classPrivateFieldIn:()=>uB,__classPrivateFieldSet:()=>oB,__createBinding:()=>VN,__decorate:()=>$C,__disposeResources:()=>lB,__esDecorate:()=>L7,__exportStar:()=>zC,__extends:()=>KC,__generator:()=>HC,__importDefault:()=>aB,__importStar:()=>iB,__makeTemplateObject:()=>rB,__metadata:()=>YC,__param:()=>QC,__propKey:()=>B7,__read:()=>Sv,__rest:()=>GC,__runInitializers:()=>C7,__setFunctionName:()=>U7,__spread:()=>WC,__spreadArray:()=>ZC,__spreadArrays:()=>XC,__values:()=>qN,default:()=>x7});function KC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function GC(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;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function QC(e,t){return function(n,r){t(n,r,e)}}function L7(e,t,n,r,i,a){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",p=!t&&e?r.static?e:e.prototype:null,f=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),y,g=!1,v=n.length-1;v>=0;v--){var P={};for(var M in r)P[M]=M==="access"?{}:r[M];for(var M in r.access)P.access[M]=r.access[M];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var K=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],P);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(f.get=y),(y=o(K.set))&&(f.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):f[l]=y)}p&&Object.defineProperty(p,r.name,f),g=!0}function C7(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[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 Sv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function WC(){for(var e=[],t=0;t1||c(g,v)})})}function c(g,v){try{l(r[g](v))}catch(P){y(a[0][3],P)}}function l(g){g.value instanceof yl?Promise.resolve(g.value.v).then(p,f):y(a[0][2],g)}function p(g){c("next",g)}function f(g){c("throw",g)}function y(g,v){g(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function tB(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,a){t[i]=e[i]?function(o){return(n=!n)?{value:yl(e[i](o)),done:!1}:a?a(o):o}:a}}function nB(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 qN=="function"?qN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(p){a({value:p,done:c})},o)}}function rB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function iB(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)&&VN(t,e,n);return k7(t,e),t}function aB(e){return e&&e.__esModule?e:{default:e}}function sB(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 oB(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 uB(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 cB(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 lB(e){function t(r){e.error=e.hasError?new M7(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(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var vv,xN,VN,k7,M7,x7,pB=wu(()=>{"use strict";m();T();N();vv=function(e,t){return vv=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])},vv(e,t)};xN=function(){return xN=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var yp=w(cr=>{"use strict";m();T();N();Object.defineProperty(cr,"__esModule",{value:!0});cr.assertSome=cr.isSome=cr.compareNodes=cr.nodeToString=cr.compareStrings=cr.isValidPath=cr.isDocumentString=cr.asArray=void 0;var q7=Ae(),V7=e=>Array.isArray(e)?e:e?[e]:[];cr.asArray=V7;var j7=/\.[a-z0-9]+$/i;function K7(e){if(typeof e!="string"||j7.test(e))return!1;try{return(0,q7.parse)(e),!0}catch(t){}return!1}cr.isDocumentString=K7;var G7=/[‘“!%^<>`]/;function $7(e){return typeof e=="string"&&!G7.test(e)}cr.isValidPath=$7;function mB(e,t){return String(e)String(t)?1:0}cr.compareStrings=mB;function Ov(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}cr.nodeToString=Ov;function Q7(e,t,n){let r=Ov(e),i=Ov(t);return typeof n=="function"?n(r,i):mB(r,i)}cr.compareNodes=Q7;function Y7(e){return e!=null}cr.isSome=Y7;function J7(e,t="Value should be something"){if(e==null)throw new Error(t)}cr.assertSome=J7});var Ip=w(KN=>{"use strict";m();T();N();Object.defineProperty(KN,"__esModule",{value:!0});KN.inspect=void 0;var EB=3;function H7(e){return jN(e,[])}KN.inspect=H7;function jN(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return z7(e,t);default:return String(e)}}function NB(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; +`))}return Y(x({},e),{value:t,block:!0})}function iC(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function RN(e){let t=e.selections;return Y(x({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return vn.NAME in n?vn.NAME in r?n.name.value.localeCompare(r.name.value):-1:vn.NAME in r?1:((o=(a=n.typeCondition)==null?void 0:a.name.value)!=null?o:"").localeCompare((l=(c=r.typeCondition)==null?void 0:c.name.value)!=null?l:"")}).map(n=>{switch(n.kind){case Ut.Kind.FIELD:return Y(x({},n),{arguments:iC(n),selectionSet:n.selectionSet?RN(n.selectionSet):n.selectionSet});case Ut.Kind.FRAGMENT_SPREAD:return n;case Ut.Kind.INLINE_FRAGMENT:return Y(x({},n),{selectionSet:RN(n.selectionSet)})}})})}function t9(e){return Y(x({},e),{definitions:e.definitions.map(t=>t.kind!==Ut.Kind.OPERATION_DEFINITION?t:Y(x({},t),{selectionSet:RN(t.selectionSet)}))})}function aC(e,t=!0){return(0,Ut.parse)(e,{noLocation:t})}function n9(e,t=!0){try{return{documentNode:aC(e,t)}}catch(n){return{error:n}}}});var uC=w(fl=>{"use strict";m();T();N();Object.defineProperty(fl,"__esModule",{value:!0});fl.AccumulatorMap=void 0;fl.mapValue=pl;fl.extendSchemaImpl=r9;var Ue=Ae(),Ts=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)}};fl.AccumulatorMap=Ts;function pl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function r9(e,t,n){var De,_e,Le,_t;let r=[],i=new Ts,a=new Ts,o=new Ts,c=new Ts,l=new Ts,p=new Ts,f=[],y,g=[],v=!1;for(let J of t.definitions){switch(J.kind){case Ue.Kind.SCHEMA_DEFINITION:y=J;break;case Ue.Kind.SCHEMA_EXTENSION:g.push(J);break;case Ue.Kind.DIRECTIVE_DEFINITION:f.push(J);break;case Ue.Kind.SCALAR_TYPE_DEFINITION:case Ue.Kind.OBJECT_TYPE_DEFINITION:case Ue.Kind.INTERFACE_TYPE_DEFINITION:case Ue.Kind.UNION_TYPE_DEFINITION:case Ue.Kind.ENUM_TYPE_DEFINITION:case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(J);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(J.name.value,J);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:a.add(J.name.value,J);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(J.name.value,J);break;case Ue.Kind.UNION_TYPE_EXTENSION:c.add(J.name.value,J);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(J.name.value,J);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:p.add(J.name.value,J);break;default:continue}v=!0}if(!v)return e;let P=new Map;for(let J of e.types){let se=W(J);se&&P.set(J.name,se)}for(let J of r){let se=J.name.value;P.set(se,(De=sC.get(se))!=null?De:oe(J))}for(let[J,se]of a)P.set(J,new Ue.GraphQLObjectType({name:J,interfaces:()=>$t(se),fields:()=>dn(se),extensionASTNodes:se}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[J,se]of o)P.set(J,new Ue.GraphQLInterfaceType({name:J,interfaces:()=>$t(se),fields:()=>dn(se),extensionASTNodes:se}));for(let[J,se]of l)P.set(J,new Ue.GraphQLEnumType({name:J,values:Un(se),extensionASTNodes:se}));for(let[J,se]of c)P.set(J,new Ue.GraphQLUnionType({name:J,types:()=>bn(se),extensionASTNodes:se}));for(let[J,se]of i)P.set(J,new Ue.GraphQLScalarType({name:J,extensionASTNodes:se}));for(let[J,se]of p)P.set(J,new Ue.GraphQLInputObjectType({name:J,fields:()=>Rr(se),extensionASTNodes:se}))}let k=x(x({query:e.query&&G(e.query),mutation:e.mutation&&G(e.mutation),subscription:e.subscription&&G(e.subscription)},y&&zt([y])),zt(g));return Y(x({description:(Le=(_e=y==null?void 0:y.description)==null?void 0:_e.value)!=null?Le:e.description},k),{types:Array.from(P.values()),directives:[...e.directives.map(Z),...f.map(Vt)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(g),assumeValid:(_t=n==null?void 0:n.assumeValid)!=null?_t:!1});function K(J){return(0,Ue.isListType)(J)?new Ue.GraphQLList(K(J.ofType)):(0,Ue.isNonNullType)(J)?new Ue.GraphQLNonNull(K(J.ofType)):G(J)}function G(J){return P.get(J.name)}function Z(J){if((0,Ue.isSpecifiedDirective)(J))return J;let se=J.toConfig();return new Ue.GraphQLDirective(Y(x({},se),{args:pl(se.args,gt)}))}function W(J){if((0,Ue.isIntrospectionType)(J)||(0,Ue.isSpecifiedScalarType)(J))return J;if((0,Ue.isScalarType)(J))return we(J);if((0,Ue.isObjectType)(J))return Ve(J);if((0,Ue.isInterfaceType)(J))return it(J);if((0,Ue.isUnionType)(J))return ee(J);if((0,Ue.isEnumType)(J))return fe(J);if((0,Ue.isInputObjectType)(J))return Te(J)}function Te(J){var Qe;let se=J.toConfig(),xe=(Qe=p.get(se.name))!=null?Qe:[];return new Ue.GraphQLInputObjectType(Y(x({},se),{fields:()=>x(x({},pl(se.fields,Lt=>Y(x({},Lt),{type:K(Lt.type)}))),Rr(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function fe(J){var Qe;let se=J.toConfig(),xe=(Qe=l.get(J.name))!=null?Qe:[];return new Ue.GraphQLEnumType(Y(x({},se),{values:x(x({},se.values),Un(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function we(J){var Lt,et;let se=J.toConfig(),xe=(Lt=i.get(se.name))!=null?Lt:[],Qe=se.specifiedByURL;for(let bt of xe)Qe=(et=oC(bt))!=null?et:Qe;return new Ue.GraphQLScalarType(Y(x({},se),{specifiedByURL:Qe,extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function Ve(J){var Qe;let se=J.toConfig(),xe=(Qe=a.get(se.name))!=null?Qe:[];return new Ue.GraphQLObjectType(Y(x({},se),{interfaces:()=>[...J.getInterfaces().map(G),...$t(xe)],fields:()=>x(x({},pl(se.fields,ve)),dn(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function it(J){var Qe;let se=J.toConfig(),xe=(Qe=o.get(se.name))!=null?Qe:[];return new Ue.GraphQLInterfaceType(Y(x({},se),{interfaces:()=>[...J.getInterfaces().map(G),...$t(xe)],fields:()=>x(x({},pl(se.fields,ve)),dn(xe)),extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function ee(J){var Qe;let se=J.toConfig(),xe=(Qe=c.get(se.name))!=null?Qe:[];return new Ue.GraphQLUnionType(Y(x({},se),{types:()=>[...J.getTypes().map(G),...bn(xe)],extensionASTNodes:se.extensionASTNodes.concat(xe)}))}function ve(J){return Y(x({},J),{type:K(J.type),args:J.args&&pl(J.args,gt)})}function gt(J){return Y(x({},J),{type:K(J.type)})}function zt(J){var xe;let se={};for(let Qe of J){let Lt=(xe=Qe.operationTypes)!=null?xe:[];for(let et of Lt)se[et.operation]=Wt(et.type)}return se}function Wt(J){var Qe;let se=J.name.value,xe=(Qe=sC.get(se))!=null?Qe:P.get(se);if(xe===void 0)throw new Error(`Unknown type: "${se}".`);return xe}function Dn(J){return J.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(Dn(J.type)):J.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(Dn(J.type)):Wt(J)}function Vt(J){var se;return new Ue.GraphQLDirective({name:J.name.value,description:(se=J.description)==null?void 0:se.value,locations:J.locations.map(({value:xe})=>xe),isRepeatable:J.repeatable,args:Ar(J.arguments),astNode:J})}function dn(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.fields)!=null?xe:[];for(let bt of et)se[bt.name.value]={type:Dn(bt.type),description:(Qe=bt.description)==null?void 0:Qe.value,args:Ar(bt.arguments),deprecationReason:FN(bt),astNode:bt}}return se}function Ar(J){var Qe;let se=J!=null?J:[],xe=Object.create(null);for(let Lt of se){let et=Dn(Lt.type);xe[Lt.name.value]={type:et,description:(Qe=Lt.description)==null?void 0:Qe.value,defaultValue:(0,Ue.valueFromAST)(Lt.defaultValue,et),deprecationReason:FN(Lt),astNode:Lt}}return xe}function Rr(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.fields)!=null?xe:[];for(let bt of et){let Ha=Dn(bt.type);se[bt.name.value]={type:Ha,description:(Qe=bt.description)==null?void 0:Qe.value,defaultValue:(0,Ue.valueFromAST)(bt.defaultValue,Ha),deprecationReason:FN(bt),astNode:bt}}}return se}function Un(J){var xe,Qe;let se=Object.create(null);for(let Lt of J){let et=(xe=Lt.values)!=null?xe:[];for(let bt of et)se[bt.name.value]={description:(Qe=bt.description)==null?void 0:Qe.value,deprecationReason:FN(bt),astNode:bt}}return se}function $t(J){return J.flatMap(se=>{var xe,Qe;return(Qe=(xe=se.interfaces)==null?void 0:xe.map(Wt))!=null?Qe:[]})}function bn(J){return J.flatMap(se=>{var xe,Qe;return(Qe=(xe=se.types)==null?void 0:xe.map(Wt))!=null?Qe:[]})}function oe(J){var xe,Qe,Lt,et,bt,Ha,xr,za,wc,ha,pr,ni;let se=J.name.value;switch(J.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let xt=(xe=a.get(se))!=null?xe:[],fr=[J,...xt];return a.delete(se),new Ue.GraphQLObjectType({name:se,description:(Qe=J.description)==null?void 0:Qe.value,interfaces:()=>$t(fr),fields:()=>dn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let xt=(Lt=o.get(se))!=null?Lt:[],fr=[J,...xt];return o.delete(se),new Ue.GraphQLInterfaceType({name:se,description:(et=J.description)==null?void 0:et.value,interfaces:()=>$t(fr),fields:()=>dn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let xt=(bt=l.get(se))!=null?bt:[],fr=[J,...xt];return l.delete(se),new Ue.GraphQLEnumType({name:se,description:(Ha=J.description)==null?void 0:Ha.value,values:Un(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.UNION_TYPE_DEFINITION:{let xt=(xr=c.get(se))!=null?xr:[],fr=[J,...xt];return c.delete(se),new Ue.GraphQLUnionType({name:se,description:(za=J.description)==null?void 0:za.value,types:()=>bn(fr),astNode:J,extensionASTNodes:xt})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let xt=(wc=i.get(se))!=null?wc:[];return i.delete(se),new Ue.GraphQLScalarType({name:se,description:(ha=J.description)==null?void 0:ha.value,specifiedByURL:oC(J),astNode:J,extensionASTNodes:xt})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let xt=(pr=p.get(se))!=null?pr:[],fr=[J,...xt];return p.delete(se),new Ue.GraphQLInputObjectType({name:se,description:(ni=J.description)==null?void 0:ni.value,fields:()=>Rr(fr),astNode:J,extensionASTNodes:xt})}}}}var sC=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function FN(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function oC(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var lv=w(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.buildASTSchema=s9;var cC=Ae(),i9=cl(),a9=uC();function s9(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,i9.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,a9.extendSchemaImpl)(n,e,t);if(r.astNode==null)for(let a of r.types)switch(a.name){case"Query":r.query=a;break;case"Mutation":r.mutation=a;break;case"Subscription":r.subscription=a;break}let i=[...r.directives,...cC.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new cC.GraphQLSchema(Y(x({},r),{directives:i}))}});var ml=w(au=>{"use strict";m();T();N();Object.defineProperty(au,"__esModule",{value:!0});au.MAX_INT32=au.MAX_SUBSCRIPTION_FILTER_DEPTH=au.MAXIMUM_TYPE_NESTING=void 0;au.MAXIMUM_TYPE_NESTING=30;au.MAX_SUBSCRIPTION_FILTER_DEPTH=5;au.MAX_INT32=nn(2,31)-1});var Jr=w(Nr=>{"use strict";m();T();N();Object.defineProperty(Nr,"__esModule",{value:!0});Nr.getOrThrowError=u9;Nr.getEntriesNotInHashSet=c9;Nr.numberToOrdinal=l9;Nr.addIterableValuesToSet=d9;Nr.addSets=p9;Nr.kindToNodeType=f9;Nr.getValueOrDefault=m9;Nr.add=N9;Nr.generateSimpleDirective=T9;Nr.generateRequiresScopesDirective=E9;Nr.copyObjectValueMap=h9;Nr.addNewObjectValueMapEntries=y9;Nr.copyArrayValueMap=I9;Nr.addMapEntries=g9;Nr.getSingleSetEntry=_9;var an=Ae(),_r=ur(),o9=ia(),dv=Yr();function u9(e,t,n){let r=e.get(t);if(r===void 0)throw(0,o9.invalidKeyFatalError)(t,n);return r}function c9(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function l9(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`}}function d9(e,t){for(let n of e)t.add(n)}function p9(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function f9(e){switch(e){case an.Kind.BOOLEAN:return _r.BOOLEAN_SCALAR;case an.Kind.ENUM:case an.Kind.ENUM_TYPE_DEFINITION:return _r.ENUM;case an.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case an.Kind.ENUM_VALUE_DEFINITION:return _r.ENUM_VALUE;case an.Kind.FIELD_DEFINITION:return _r.FIELD;case an.Kind.FLOAT:return _r.FLOAT_SCALAR;case an.Kind.INPUT_OBJECT_TYPE_DEFINITION:return _r.INPUT_OBJECT;case an.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case an.Kind.INPUT_VALUE_DEFINITION:return _r.INPUT_VALUE;case an.Kind.INT:return _r.INT_SCALAR;case an.Kind.INTERFACE_TYPE_DEFINITION:return _r.INTERFACE;case an.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case an.Kind.NULL:return _r.NULL;case an.Kind.OBJECT:case an.Kind.OBJECT_TYPE_DEFINITION:return _r.OBJECT;case an.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case an.Kind.STRING:return _r.STRING_SCALAR;case an.Kind.SCALAR_TYPE_DEFINITION:return _r.SCALAR;case an.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case an.Kind.UNION_TYPE_DEFINITION:return _r.UNION;case an.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function m9(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function N9(e,t){return e.has(t)?!1:(e.add(t),!0)}function T9(e){return{kind:an.Kind.DIRECTIVE,name:(0,dv.stringToNameNode)(e)}}function E9(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:an.Kind.STRING,value:i});t.push({kind:an.Kind.LIST,values:r})}return{kind:an.Kind.DIRECTIVE,name:(0,dv.stringToNameNode)(_r.REQUIRES_SCOPES),arguments:[{kind:an.Kind.ARGUMENT,name:(0,dv.stringToNameNode)(_r.SCOPES),value:{kind:an.Kind.LIST,values:t}}]}}function h9(e){let t=new Map;for(let[n,r]of e)t.set(n,x({},r));return t}function y9(e,t){for(let[n,r]of e)t.set(n,x({},r))}function I9(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function g9(e,t){for(let[n,r]of e)t.set(n,r)}function _9(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Ep=w(wN=>{"use strict";m();T();N();Object.defineProperty(wN,"__esModule",{value:!0});wN.ExtensionType=void 0;var lC;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(lC||(wN.ExtensionType=lC={}))});var su=w(Sr=>{"use strict";m();T();N();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.getMutableDirectiveDefinitionNode=S9;Sr.getMutableEnumNode=O9;Sr.getMutableEnumValueNode=D9;Sr.getMutableFieldNode=b9;Sr.getMutableInputObjectNode=A9;Sr.getMutableInputValueNode=R9;Sr.getMutableInterfaceNode=P9;Sr.getMutableObjectNode=F9;Sr.getMutableObjectExtensionNode=w9;Sr.getMutableScalarNode=L9;Sr.getMutableTypeNode=pv;Sr.getMutableUnionNode=C9;Sr.getTypeNodeNamedTypeName=fv;Sr.getNamedTypeNode=pC;var vr=Ae(),Nl=Yr(),dC=ia(),v9=ml();function S9(e){return{arguments:[],kind:e.kind,locations:[],name:x({},e.name),repeatable:e.repeatable,description:(0,Nl.formatDescription)(e.description)}}function O9(e){return{kind:vr.Kind.ENUM_TYPE_DEFINITION,name:x({},e)}}function D9(e){return{directives:[],kind:e.kind,name:x({},e.name),description:(0,Nl.formatDescription)(e.description)}}function b9(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:x({},e.name),type:pv(e.type,t,n),description:(0,Nl.formatDescription)(e.description)}}function A9(e){return{kind:vr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:x({},e)}}function R9(e,t,n){return{directives:[],kind:e.kind,name:x({},e.name),type:pv(e.type,t,n),defaultValue:e.defaultValue,description:(0,Nl.formatDescription)(e.description)}}function P9(e){return{kind:vr.Kind.INTERFACE_TYPE_DEFINITION,name:x({},e)}}function F9(e){return{kind:vr.Kind.OBJECT_TYPE_DEFINITION,name:x({},e)}}function w9(e){let t=e.kind===vr.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:vr.Kind.OBJECT_TYPE_EXTENSION,name:x({},e.name),description:(0,Nl.formatDescription)(t)}}function L9(e){return{kind:vr.Kind.SCALAR_TYPE_DEFINITION,name:x({},e)}}function pv(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(LN,"__esModule",{value:!0});LN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;LN.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var Es=w(te=>{"use strict";m();T();N();Object.defineProperty(te,"__esModule",{value:!0});te.MAX_OR_SCOPES=te.EDFS_ARGS_REGEXP=te.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=te.CONFIGURE_DESCRIPTION_DEFINITION=te.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=te.SCOPE_SCALAR_DEFINITION=te.FIELD_SET_SCALAR_DEFINITION=te.VERSION_TWO_DIRECTIVE_DEFINITIONS=te.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=te.BASE_DIRECTIVE_DEFINITIONS=te.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=te.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=te.SUBSCRIPTION_FILTER_VALUE_DEFINITION=te.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=te.SUBSCRIPTION_FILTER_DEFINITION=te.SHAREABLE_DEFINITION=te.REQUIRES_SCOPES_DEFINITION=te.OVERRIDE_DEFINITION=te.LINK_DEFINITION=te.LINK_PURPOSE_DEFINITION=te.LINK_IMPORT_DEFINITION=te.INTERFACE_OBJECT_DEFINITION=te.INACCESSIBLE_DEFINITION=te.COMPOSE_DIRECTIVE_DEFINITION=te.AUTHENTICATED_DEFINITION=te.ALL_IN_BUILT_DIRECTIVE_NAMES=te.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=te.EDFS_REDIS_SUBSCRIBE_DEFINITION=te.EDFS_REDIS_PUBLISH_DEFINITION=te.TAG_DEFINITION=te.SPECIFIED_BY_DEFINITION=te.REQUIRES_DEFINITION=te.PROVIDES_DEFINITION=te.KEY_DEFINITION=te.REQUIRED_FIELDSET_TYPE_NODE=te.EDFS_NATS_SUBSCRIBE_DEFINITION=te.EDFS_NATS_REQUEST_DEFINITION=te.EDFS_NATS_PUBLISH_DEFINITION=te.EDFS_KAFKA_SUBSCRIBE_DEFINITION=te.EDFS_KAFKA_PUBLISH_DEFINITION=te.EXTERNAL_DEFINITION=te.EXTENDS_DEFINITION=te.DEPRECATED_DEFINITION=te.BASE_SCALARS=te.REQUIRED_STRING_TYPE_NODE=void 0;var ue=Ae(),ae=Yr(),B9=mv(),U=ur();te.REQUIRED_STRING_TYPE_NODE={kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)};te.BASE_SCALARS=new Set(["_Any","_Entities",U.BOOLEAN_SCALAR,U.FLOAT_SCALAR,U.ID_SCALAR,U.INT_SCALAR,U.FIELD_SET_SCALAR,U.SCOPE_SCALAR,U.STRING_SCALAR]);te.DEPRECATED_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.REASON),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR),defaultValue:{kind:ue.Kind.STRING,value:ue.DEFAULT_DEPRECATION_REASON}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.DEPRECATED),repeatable:!1};te.EXTENDS_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.EXTENDS),repeatable:!1};te.EXTERNAL_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.EXTERNAL),repeatable:!1};te.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.TOPIC),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_KAFKA_PUBLISH),repeatable:!1};te.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.TOPICS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};te.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECT),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_PUBLISH),repeatable:!1};te.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECT),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_REQUEST),repeatable:!1};te.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBJECTS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.STREAM_CONFIGURATION),type:(0,ae.stringToNamedTypeNode)(U.EDFS_NATS_STREAM_CONFIGURATION)}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_NATS_SUBSCRIBE),repeatable:!1};te.REQUIRED_FIELDSET_TYPE_NODE={kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)};te.KEY_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:te.REQUIRED_FIELDSET_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.RESOLVABLE),type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR),defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.KEY),repeatable:!0};te.PROVIDES_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:te.REQUIRED_FIELDSET_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.PROVIDES),repeatable:!1};te.REQUIRES_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELDS),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.FIELD_SET_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.REQUIRES),repeatable:!1};te.SPECIFIED_BY_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.URL_LOWER),type:te.REQUIRED_STRING_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.SPECIFIED_BY),repeatable:!1};te.TAG_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.TAG),repeatable:!0};te.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CHANNEL),type:te.REQUIRED_STRING_TYPE_NODE},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_REDIS_PUBLISH),repeatable:!1};te.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CHANNELS),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:te.REQUIRED_STRING_TYPE_NODE}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROVIDER_ID),type:te.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ue.Kind.STRING,value:U.DEFAULT_EDFS_PROVIDER_ID}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:[(0,ae.stringToNameNode)(U.FIELD_DEFINITION_UPPER)],name:(0,ae.stringToNameNode)(U.EDFS_REDIS_SUBSCRIBE),repeatable:!1};te.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.DEPRECATED,te.DEPRECATED_DEFINITION],[U.EXTENDS,te.EXTENDS_DEFINITION],[U.EXTERNAL,te.EXTERNAL_DEFINITION],[U.EDFS_KAFKA_PUBLISH,te.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,te.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,te.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,te.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,te.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,te.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,te.EDFS_REDIS_SUBSCRIBE_DEFINITION],[U.KEY,te.KEY_DEFINITION],[U.PROVIDES,te.PROVIDES_DEFINITION],[U.REQUIRES,te.REQUIRES_DEFINITION],[U.SPECIFIED_BY,te.SPECIFIED_BY_DEFINITION],[U.TAG,te.TAG_DEFINITION]]);te.ALL_IN_BUILT_DIRECTIVE_NAMES=new Set([U.AUTHENTICATED,U.COMPOSE_DIRECTIVE,U.CONFIGURE_DESCRIPTION,U.CONFIGURE_CHILD_DESCRIPTIONS,U.DEPRECATED,U.EDFS_NATS_PUBLISH,U.EDFS_NATS_REQUEST,U.EDFS_NATS_SUBSCRIBE,U.EDFS_KAFKA_PUBLISH,U.EDFS_KAFKA_SUBSCRIBE,U.EDFS_REDIS_PUBLISH,U.EDFS_REDIS_SUBSCRIBE,U.EXTENDS,U.EXTERNAL,U.INACCESSIBLE,U.INTERFACE_OBJECT,U.KEY,U.LINK,U.OVERRIDE,U.PROVIDES,U.REQUIRES,U.REQUIRES_SCOPES,U.SHAREABLE,U.SPECIFIED_BY,U.SUBSCRIPTION_FILTER,U.TAG]);te.AUTHENTICATED_DEFINITION={arguments:[],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.AUTHENTICATED),repeatable:!1};te.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NAME),type:te.REQUIRED_STRING_TYPE_NODE}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,ae.stringToNameNode)(U.COMPOSE_DIRECTIVE),repeatable:!0};te.INACCESSIBLE_DEFINITION={arguments:[],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.INACCESSIBLE),repeatable:!1};te.INTERFACE_OBJECT_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.INTERFACE_OBJECT),repeatable:!1};te.LINK_IMPORT_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.LINK_IMPORT)};te.LINK_PURPOSE_DEFINITION={kind:ue.Kind.ENUM_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.LINK_PURPOSE),values:[{directives:[],kind:ue.Kind.ENUM_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.EXECUTION)},{directives:[],kind:ue.Kind.ENUM_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SECURITY)}]};te.LINK_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.URL_LOWER),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.AS),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FOR),type:(0,ae.stringToNamedTypeNode)(U.LINK_PURPOSE)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.IMPORT),type:{kind:ue.Kind.LIST_TYPE,type:(0,ae.stringToNamedTypeNode)(U.LINK_IMPORT)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.SCHEMA_UPPER]),name:(0,ae.stringToNameNode)(U.LINK),repeatable:!0};te.OVERRIDE_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FROM),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.OVERRIDE),repeatable:!1};te.REQUIRES_SCOPES_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.SCOPES),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SCOPE_SCALAR)}}}}}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER]),name:(0,ae.stringToNameNode)(U.REQUIRES_SCOPES),repeatable:!1};te.SHAREABLE_DEFINITION={kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.SHAREABLE),repeatable:!0};te.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONDITION),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.FIELD_DEFINITION_UPPER]),name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER),repeatable:!1};te.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.AND_UPPER),type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.IN_UPPER),type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FIELD_CONDITION)},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.OR_UPPER),type:{kind:ue.Kind.LIST_TYPE,type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.NOT_UPPER),type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_CONDITION)}],kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER_CONDITION)};te.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FILTER_VALUE)};te.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELD_PATH),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.VALUES),type:{kind:ue.Kind.NON_NULL_TYPE,type:{kind:ue.Kind.LIST_TYPE,type:(0,ae.stringToNamedTypeNode)(U.SUBSCRIPTION_FILTER_VALUE)}}}],kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SUBSCRIPTION_FIELD_CONDITION)};te.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[U.AUTHENTICATED,te.AUTHENTICATED_DEFINITION],[U.COMPOSE_DIRECTIVE,te.COMPOSE_DIRECTIVE_DEFINITION],[U.INACCESSIBLE,te.INACCESSIBLE_DEFINITION],[U.INTERFACE_OBJECT,te.INTERFACE_OBJECT_DEFINITION],[U.LINK,te.LINK_DEFINITION],[U.OVERRIDE,te.OVERRIDE_DEFINITION],[U.REQUIRES_SCOPES,te.REQUIRES_SCOPES_DEFINITION],[U.SHAREABLE,te.SHAREABLE_DEFINITION]]);te.BASE_DIRECTIVE_DEFINITIONS=[te.DEPRECATED_DEFINITION,te.EXTENDS_DEFINITION,te.EXTERNAL_DEFINITION,te.KEY_DEFINITION,te.PROVIDES_DEFINITION,te.REQUIRES_DEFINITION,te.SPECIFIED_BY_DEFINITION,te.TAG_DEFINITION];te.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME=new Map([[U.EDFS_KAFKA_PUBLISH,te.EDFS_KAFKA_PUBLISH_DEFINITION],[U.EDFS_KAFKA_SUBSCRIBE,te.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[U.EDFS_NATS_PUBLISH,te.EDFS_NATS_PUBLISH_DEFINITION],[U.EDFS_NATS_REQUEST,te.EDFS_NATS_REQUEST_DEFINITION],[U.EDFS_NATS_SUBSCRIBE,te.EDFS_NATS_SUBSCRIBE_DEFINITION],[U.EDFS_REDIS_PUBLISH,te.EDFS_REDIS_PUBLISH_DEFINITION],[U.EDFS_REDIS_SUBSCRIBE,te.EDFS_REDIS_SUBSCRIBE_DEFINITION]]);te.VERSION_TWO_DIRECTIVE_DEFINITIONS=[te.AUTHENTICATED_DEFINITION,te.COMPOSE_DIRECTIVE_DEFINITION,te.INACCESSIBLE_DEFINITION,te.INTERFACE_OBJECT_DEFINITION,te.OVERRIDE_DEFINITION,te.REQUIRES_SCOPES_DEFINITION,te.SHAREABLE_DEFINITION];te.FIELD_SET_SCALAR_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.FIELD_SET_SCALAR)};te.SCOPE_SCALAR_DEFINITION={kind:ue.Kind.SCALAR_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.SCOPE_SCALAR)};te.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:ue.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,ae.stringToNameNode)(U.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONSUMER_NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.STREAM_NAME),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}},{kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.CONSUMER_INACTIVE_THRESHOLD),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.INT_SCALAR)},defaultValue:{kind:ue.Kind.INT,value:B9.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}}]};te.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROPAGATE),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}},{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.DESCRIPTION_OVERRIDE),type:(0,ae.stringToNamedTypeNode)(U.STRING_SCALAR)}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ARGUMENT_DEFINITION_UPPER,U.ENUM_UPPER,U.ENUM_VALUE_UPPER,U.FIELD_DEFINITION_UPPER,U.INTERFACE_UPPER,U.INPUT_OBJECT_UPPER,U.INPUT_FIELD_DEFINITION_UPPER,U.OBJECT_UPPER,U.SCALAR_UPPER,U.SCHEMA_UPPER,U.UNION_UPPER]),name:(0,ae.stringToNameNode)(U.CONFIGURE_DESCRIPTION),repeatable:!1};te.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{directives:[],kind:ue.Kind.INPUT_VALUE_DEFINITION,name:(0,ae.stringToNameNode)(U.PROPAGATE),type:{kind:ue.Kind.NON_NULL_TYPE,type:(0,ae.stringToNamedTypeNode)(U.BOOLEAN_SCALAR)},defaultValue:{kind:ue.Kind.BOOLEAN,value:!0}}],kind:ue.Kind.DIRECTIVE_DEFINITION,locations:(0,ae.stringArrayToNameNodeArray)([U.ENUM_UPPER,U.INPUT_OBJECT_UPPER,U.INTERFACE_UPPER,U.OBJECT_UPPER]),name:(0,ae.stringToNameNode)(U.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};te.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;te.MAX_OR_SCOPES=16});var CN=w(tc=>{"use strict";m();T();N();Object.defineProperty(tc,"__esModule",{value:!0});tc.newParentTagData=x9;tc.newChildTagData=q9;tc.validateImplicitFieldSets=V9;tc.newContractTagOptionsFromArrays=j9;tc.getDescriptionFromString=K9;var Hr=Ae(),U9=su(),k9=Es(),M9=Yr(),fC=Jr();function x9(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function q9(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function V9({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,fC.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,p]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let f=[i],y=[],g=[],v=-1,P=!0,k=!0;(0,Hr.visit)(p,{Argument:{enter(){return k=!1,Hr.BREAK}},Field:{enter(K){let G=f[v];if(P)return k=!1,Hr.BREAK;let Z=K.name.value,W=G.fieldDataByName.get(Z);if(!W||W.argumentDataByName.size||y[v].has(Z))return k=!1,Hr.BREAK;let{isUnconditionallyProvided:Te}=(0,fC.getOrThrowError)(W.externalFieldDataBySubgraphName,t,`${W.originalParentTypeName}.${Z}.externalFieldDataBySubgraphName`),fe=e.get(`${W.renamedParentTypeName}.${Z}`);if(fe){if(fe.providedBy.length>0)g.push(...fe.providedBy);else if(fe.requiredBy.length>0)return k=!1,Hr.BREAK}else if(!Te)return k=!1,Hr.BREAK;y[v].add(Z);let we=(0,U9.getTypeNodeNamedTypeName)(W.node.type);if(k9.BASE_SCALARS.has(we))return;let Ve=a.get(we);if(!Ve)return k=!1,Hr.BREAK;if(Ve.kind===Hr.Kind.OBJECT_TYPE_DEFINITION){P=!0,f.push(Ve);return}if((0,M9.isKindAbstract)(Ve.kind))return k=!1,Hr.BREAK}},InlineFragment:{enter(){return k=!1,Hr.BREAK}},SelectionSet:{enter(){if(!P||(v+=1,P=!1,v<0||v>=f.length))return k=!1,Hr.BREAK;y.push(new Set)},leave(){if(P)return k=!1,Hr.BREAK;v-=1,f.pop(),y.pop()}}}),k&&(r.push(Y(x({fieldName:"",selectionSet:l},g.length>0?{conditions:g}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function j9(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function K9(e){if(e)return{block:!0,kind:Hr.Kind.STRING,value:e}}});var El=w(ft=>{"use strict";m();T();N();Object.defineProperty(ft,"__esModule",{value:!0});ft.MergeMethod=void 0;ft.newPersistedDirectivesData=$9;ft.isNodeExternalOrShareable=Q9;ft.isTypeRequired=Y9;ft.areDefaultValuesCompatible=NC;ft.compareAndValidateInputValueDefaultValues=J9;ft.setMutualExecutableLocations=H9;ft.isTypeNameRootType=z9;ft.getRenamedRootTypeName=W9;ft.childMapToValueArray=Z9;ft.setLongestDescription=e7;ft.isParentDataRootType=TC;ft.isParentDataInterfaceType=t7;ft.setParentDataExtensionType=n7;ft.extractPersistedDirectives=a7;ft.propagateAuthDirectives=s7;ft.propagateFieldAuthDirectives=o7;ft.generateDeprecatedDirective=hv;ft.getClientPersistedDirectiveNodes=Tv;ft.getNodeForRouterSchemaByData=c7;ft.getClientSchemaFieldNodeByFieldData=l7;ft.getNodeWithPersistedDirectivesByInputValueData=hC;ft.addValidPersistedDirectiveDefinitionNodeByData=p7;ft.newInvalidFieldNames=f7;ft.validateExternalAndShareable=m7;ft.isTypeValidImplementation=BN;ft.isNodeDataInaccessible=yC;ft.isLeafKind=N7;ft.getSubscriptionFilterValue=T7;ft.getParentTypeName=E7;ft.newConditionalFieldData=h7;ft.getDefinitionDataCoords=y7;ft.isParentDataCompositeOutputType=I7;ft.newExternalFieldData=g7;ft.getInitialFederatedDescription=_7;ft.areKindsEqual=v7;ft.isFieldData=IC;ft.isInputNodeKind=S7;ft.isOutputNodeKind=O7;var st=Ae(),Nv=Ep(),Tl=Yr(),Ev=ia(),kt=ur(),hp=Jr(),G9=CN();function $9(){return{deprecatedReason:"",directivesByDirectiveName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function Q9(e,t,n){var i;let r={isExternal:n.has(kt.EXTERNAL),isShareable:t||n.has(kt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===kt.EXTERNAL){r.isExternal=!0;continue}o===kt.SHAREABLE&&(r.isShareable=!0)}return r}function Y9(e){return e.kind===st.Kind.NON_NULL_TYPE}function NC(e,t){switch(e.kind){case st.Kind.LIST_TYPE:return t.kind===st.Kind.LIST||t.kind===st.Kind.NULL;case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NULL)return!0;switch(e.name.value){case kt.BOOLEAN_SCALAR:return t.kind===st.Kind.BOOLEAN;case kt.FLOAT_SCALAR:return t.kind===st.Kind.INT||t.kind===st.Kind.FLOAT;case kt.INT_SCALAR:return t.kind===st.Kind.INT;case kt.STRING_SCALAR:return t.kind===st.Kind.STRING;default:return!0}case st.Kind.NON_NULL_TYPE:return t.kind===st.Kind.NULL?!1:NC(e.type,t)}}function J9(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,st.print)(e.defaultValue),i=(0,st.print)(t.defaultValue);if(r!==i){n.push((0,Ev.incompatibleInputValueDefaultValuesError)(`${e.isArgument?kt.ARGUMENT:kt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function H9(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function z9(e,t){return kt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function W9(e,t){let n=t.get(e);if(!n)return e;switch(n){case st.OperationTypeNode.MUTATION:return kt.MUTATION;case st.OperationTypeNode.SUBSCRIPTION:return kt.SUBSCRIPTION;default:return kt.QUERY}}function X9(e){for(let t of e.argumentDataByName.values()){for(let n of t.directivesByDirectiveName.values())t.node.directives.push(...n);e.node.arguments.push(t.node)}}function Z9(e){let t=[];for(let n of e.values()){IC(n)&&X9(n);for(let r of n.directivesByDirectiveName.values())n.node.directives.push(...r);t.push(n.node)}return t}function e7(e,t){if(t.description){if("configureDescriptionDataBySubgraphName"in t){for(let{propagate:n}of t.configureDescriptionDataBySubgraphName.values())if(!n)return}(!e.description||e.description.value.length0&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.REQUIRES_SCOPES,[(0,hp.generateRequiresScopesDirective)(t.requiredScopes)]))}function o7(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.AUTHENTICATED,[(0,hp.generateSimpleDirective)(kt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByDirectiveName.set(kt.REQUIRES_SCOPES,[(0,hp.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function hv(e){return{kind:st.Kind.DIRECTIVE,name:(0,Tl.stringToNameNode)(kt.DEPRECATED),arguments:[{kind:st.Kind.ARGUMENT,name:(0,Tl.stringToNameNode)(kt.REASON),value:{kind:st.Kind.STRING,value:e||kt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function u7(e,t,n,r){let i=[];for(let[a,o]of e){let c=t.get(a);if(c){if(o.length<2){i.push(...o);continue}if(!c.repeatable){r.push((0,Ev.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function EC(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(hv(e.persistedDirectivesData.deprecatedReason)),r.push(...u7(e.persistedDirectivesData.directivesByDirectiveName,t,e.name,n)),r}function Tv(e){let t=[];e.persistedDirectivesData.isDeprecated&&t.push(hv(e.persistedDirectivesData.deprecatedReason));for(let[n,r]of e.persistedDirectivesData.directivesByDirectiveName)kt.PERSISTED_CLIENT_DIRECTIVES.has(n)&&t.push(r[0]);return t}function c7(e,t,n){return e.node.name=(0,Tl.stringToNameNode)(e.name),e.node.description=e.description,e.node.directives=EC(e,t,n),e.node}function l7(e){let t=Tv(e),n=[];for(let r of e.argumentDataByName.values())yC(r)||n.push(Y(x({},r.node),{directives:Tv(r)}));return Y(x({},e.node),{directives:t,arguments:n})}function hC(e,t,n){return e.node.name=(0,Tl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=EC(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function d7(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByArgumentName){let l=(0,hp.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames);if(l.length>0){c.requiredSubgraphNames.size>0&&a.push({inputValueName:o,missingSubgraphs:l,requiredSubgraphs:[...c.requiredSubgraphNames]});continue}e.push(hC(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,Ev.invalidRequiredInputValueError)(kt.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function p7(e,t,n,r){let i=[];d7(i,t,n,r)&&e.push({arguments:i,kind:st.Kind.DIRECTIVE_DEFINITION,locations:(0,Tl.setToNameNodeArray)(t.executableLocations),name:(0,Tl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function f7(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function m7(e,t){let n=e.isShareableBySubgraphName.size,r=[],i=0;for(let[a,o]of e.isShareableBySubgraphName){let c=e.externalFieldDataBySubgraphName.get(a);if(c&&!c.isUnconditionallyProvided){r.push(a);continue}o||(i+=1)}switch(i){case 0:n===r.length&&t.subgraphNamesByExternalFieldName.set(e.name,r);return;case 1:if(n===1)return;n-r.length!==1&&t.byShareable.add(e.name);return;default:t.byShareable.add(e.name)}}var mC;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(mC||(ft.MergeMethod=mC={}));function BN(e,t,n){if(e.kind===st.Kind.NON_NULL_TYPE)return t.kind!==st.Kind.NON_NULL_TYPE?!1:BN(e.type,t.type,n);if(t.kind===st.Kind.NON_NULL_TYPE)return BN(e,t.type,n);switch(e.kind){case st.Kind.NAMED_TYPE:if(t.kind===st.Kind.NAMED_TYPE){let r=e.name.value,i=t.name.value;if(r===i)return!0;let a=n.get(r);return a?a.has(i):!1}return!1;default:return t.kind===st.Kind.LIST_TYPE?BN(e.type,t.type,n):!1}}function yC(e){return e.persistedDirectivesData.directivesByDirectiveName.has(kt.INACCESSIBLE)||e.directivesByDirectiveName.has(kt.INACCESSIBLE)}function N7(e){return e===st.Kind.SCALAR_TYPE_DEFINITION||e===st.Kind.ENUM_TYPE_DEFINITION}function T7(e){switch(e.kind){case st.Kind.BOOLEAN:return e.value;case st.Kind.ENUM:case st.Kind.STRING:return e.value;case st.Kind.FLOAT:case st.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case st.Kind.NULL:return null}}function E7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function h7(){return{providedBy:[],requiredBy:[]}}function y7(e,t){switch(e.kind){case st.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case st.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case st.Kind.ARGUMENT:case st.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case st.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function I7(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION||e.kind===st.Kind.INTERFACE_TYPE_DEFINITION}function g7(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function _7(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,G9.getDescriptionFromString)(t.description)||e.description}function v7(e,t){return e.kind===t.kind}function IC(e){return e.kind===st.Kind.FIELD_DEFINITION}function S7(e){return kt.INPUT_NODE_KINDS.has(e)}function O7(e){return kt.OUTPUT_NODE_KINDS.has(e)}});var gv={};am(gv,{__addDisposableResource:()=>VC,__assign:()=>UN,__asyncDelegator:()=>LC,__asyncGenerator:()=>wC,__asyncValues:()=>CC,__await:()=>hl,__awaiter:()=>DC,__classPrivateFieldGet:()=>MC,__classPrivateFieldIn:()=>qC,__classPrivateFieldSet:()=>xC,__createBinding:()=>MN,__decorate:()=>vC,__disposeResources:()=>jC,__esDecorate:()=>D7,__exportStar:()=>AC,__extends:()=>gC,__generator:()=>bC,__importDefault:()=>kC,__importStar:()=>UC,__makeTemplateObject:()=>BC,__metadata:()=>OC,__param:()=>SC,__propKey:()=>A7,__read:()=>Iv,__rest:()=>_C,__runInitializers:()=>b7,__setFunctionName:()=>R7,__spread:()=>RC,__spreadArray:()=>FC,__spreadArrays:()=>PC,__values:()=>kN,default:()=>w7});function gC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function _C(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;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function SC(e,t){return function(n,r){t(n,r,e)}}function D7(e,t,n,r,i,a){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",p=!t&&e?r.static?e:e.prototype:null,f=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),y,g=!1,v=n.length-1;v>=0;v--){var P={};for(var k in r)P[k]=k==="access"?{}:r[k];for(var k in r.access)P.access[k]=r.access[k];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var K=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],P);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(f.get=y),(y=o(K.set))&&(f.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):f[l]=y)}p&&Object.defineProperty(p,r.name,f),g=!0}function b7(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[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 Iv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function RC(){for(var e=[],t=0;t1||c(g,v)})})}function c(g,v){try{l(r[g](v))}catch(P){y(a[0][3],P)}}function l(g){g.value instanceof hl?Promise.resolve(g.value.v).then(p,f):y(a[0][2],g)}function p(g){c("next",g)}function f(g){c("throw",g)}function y(g,v){g(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function LC(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,a){t[i]=e[i]?function(o){return(n=!n)?{value:hl(e[i](o)),done:!1}:a?a(o):o}:a}}function CC(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 kN=="function"?kN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(p){a({value:p,done:c})},o)}}function BC(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function UC(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)&&MN(t,e,n);return P7(t,e),t}function kC(e){return e&&e.__esModule?e:{default:e}}function MC(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 xC(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 qC(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 VC(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 jC(e){function t(r){e.error=e.hasError?new F7(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(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var yv,UN,MN,P7,F7,w7,_v=wu(()=>{"use strict";m();T();N();yv=function(e,t){return yv=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])},yv(e,t)};UN=function(){return UN=Object.assign||function(t){for(var n,r=1,i=arguments.length;rcB,__assign:()=>xN,__asyncDelegator:()=>tB,__asyncGenerator:()=>eB,__asyncValues:()=>nB,__await:()=>yl,__awaiter:()=>JC,__classPrivateFieldGet:()=>sB,__classPrivateFieldIn:()=>uB,__classPrivateFieldSet:()=>oB,__createBinding:()=>VN,__decorate:()=>$C,__disposeResources:()=>lB,__esDecorate:()=>L7,__exportStar:()=>zC,__extends:()=>KC,__generator:()=>HC,__importDefault:()=>aB,__importStar:()=>iB,__makeTemplateObject:()=>rB,__metadata:()=>YC,__param:()=>QC,__propKey:()=>B7,__read:()=>Sv,__rest:()=>GC,__runInitializers:()=>C7,__setFunctionName:()=>U7,__spread:()=>WC,__spreadArray:()=>ZC,__spreadArrays:()=>XC,__values:()=>qN,default:()=>x7});function KC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function GC(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;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function QC(e,t){return function(n,r){t(n,r,e)}}function L7(e,t,n,r,i,a){function o(G){if(G!==void 0&&typeof G!="function")throw new TypeError("Function expected");return G}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",p=!t&&e?r.static?e:e.prototype:null,f=t||(p?Object.getOwnPropertyDescriptor(p,r.name):{}),y,g=!1,v=n.length-1;v>=0;v--){var P={};for(var k in r)P[k]=k==="access"?{}:r[k];for(var k in r.access)P.access[k]=r.access[k];P.addInitializer=function(G){if(g)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var K=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],P);if(c==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(y=o(K.get))&&(f.get=y),(y=o(K.set))&&(f.set=y),(y=o(K.init))&&i.unshift(y)}else(y=o(K))&&(c==="field"?i.unshift(y):f[l]=y)}p&&Object.defineProperty(p,r.name,f),g=!0}function C7(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[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 Sv(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function WC(){for(var e=[],t=0;t1||c(g,v)})})}function c(g,v){try{l(r[g](v))}catch(P){y(a[0][3],P)}}function l(g){g.value instanceof yl?Promise.resolve(g.value.v).then(p,f):y(a[0][2],g)}function p(g){c("next",g)}function f(g){c("throw",g)}function y(g,v){g(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function tB(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,a){t[i]=e[i]?function(o){return(n=!n)?{value:yl(e[i](o)),done:!1}:a?a(o):o}:a}}function nB(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 qN=="function"?qN(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(o){return new Promise(function(c,l){o=e[a](o),i(c,l,o.done,o.value)})}}function i(a,o,c,l){Promise.resolve(l).then(function(p){a({value:p,done:c})},o)}}function rB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function iB(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)&&VN(t,e,n);return k7(t,e),t}function aB(e){return e&&e.__esModule?e:{default:e}}function sB(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 oB(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 uB(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 cB(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 lB(e){function t(r){e.error=e.hasError?new M7(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(a){return t(a),n()})}catch(a){t(a)}}if(e.hasError)throw e.error}return n()}var vv,xN,VN,k7,M7,x7,pB=wu(()=>{"use strict";m();T();N();vv=function(e,t){return vv=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])},vv(e,t)};xN=function(){return xN=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var yp=w(cr=>{"use strict";m();T();N();Object.defineProperty(cr,"__esModule",{value:!0});cr.assertSome=cr.isSome=cr.compareNodes=cr.nodeToString=cr.compareStrings=cr.isValidPath=cr.isDocumentString=cr.asArray=void 0;var q7=Ae(),V7=e=>Array.isArray(e)?e:e?[e]:[];cr.asArray=V7;var j7=/\.[a-z0-9]+$/i;function K7(e){if(typeof e!="string"||j7.test(e))return!1;try{return(0,q7.parse)(e),!0}catch(t){}return!1}cr.isDocumentString=K7;var G7=/[‘“!%^<>`]/;function $7(e){return typeof e=="string"&&!G7.test(e)}cr.isValidPath=$7;function mB(e,t){return String(e)String(t)?1:0}cr.compareStrings=mB;function Ov(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}cr.nodeToString=Ov;function Q7(e,t,n){let r=Ov(e),i=Ov(t);return typeof n=="function"?n(r,i):mB(r,i)}cr.compareNodes=Q7;function Y7(e){return e!=null}cr.isSome=Y7;function J7(e,t="Value should be something"){if(e==null)throw new Error(t)}cr.assertSome=J7});var Ip=w(KN=>{"use strict";m();T();N();Object.defineProperty(KN,"__esModule",{value:!0});KN.inspect=void 0;var EB=3;function H7(e){return jN(e,[])}KN.inspect=H7;function jN(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return z7(e,t);default:return String(e)}}function NB(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function z7(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?NB(e)+` -`+TB(e.errors,t):NB(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(W7(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:jN(r,n)}else if(Array.isArray(e))return TB(e,n);return X7(e,n)}function W7(e){return typeof e.toJSON=="function"}function X7(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>EB?"["+Z7(e)+"]":"{ "+n.map(([i,a])=>i+": "+jN(a,t)).join(", ")+" }"}function TB(e,t){if(e.length===0)return"[]";if(t.length>EB)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(Il,"__esModule",{value:!0});Il.relocatedError=Il.createGraphQLError=void 0;var Dv=Ae(),eZ=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function tZ(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>eZ.includes(t))}function bv(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&tZ(t.originalError)&&(t.originalError=bv(t.originalError.message,t.originalError)),Dv.versionInfo.major>=17?new Dv.GraphQLError(e,t):new Dv.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)}Il.createGraphQLError=bv;function nZ(e,t){return bv(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Il.relocatedError=nZ});var gp=w(Bi=>{"use strict";m();T();N();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.hasOwnProperty=Bi.promiseReduce=Bi.isPromise=Bi.isObjectLike=Bi.isIterableObject=void 0;function rZ(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}Bi.isIterableObject=rZ;function iZ(e){return typeof e=="object"&&e!==null}Bi.isObjectLike=iZ;function hB(e){return(e==null?void 0:e.then)!=null}Bi.isPromise=hB;function aZ(e,t,n){let r=n;for(let i of e)r=hB(r)?r.then(a=>t(a,i)):t(r,i);return r}Bi.promiseReduce=aZ;function sZ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Bi.hasOwnProperty=sZ});var Rv=w(QN=>{"use strict";m();T();N();Object.defineProperty(QN,"__esModule",{value:!0});QN.getArgumentValues=void 0;var Av=Ip(),nc=Ae(),$N=GN(),oZ=gp();function uZ(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>Y(x({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:p}of e.args){let f=a[c];if(!f){if(p!==void 0)r[c]=p;else if((0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of required type "${(0,Av.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=f.value,g=y.kind===nc.Kind.NULL;if(y.kind===nc.Kind.VARIABLE){let P=y.name.value;if(n==null||!(0,oZ.hasOwnProperty)(n,P)){if(p!==void 0)r[c]=p;else if((0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of required type "${(0,Av.inspect)(l)}" was provided the variable "$${P}" which was not provided a runtime value.`,{nodes:[y]});continue}g=n[P]==null}if(g&&(0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of non-null type "${(0,Av.inspect)(l)}" must not be null.`,{nodes:[y]});let v=(0,nc.valueFromAST)(y,l,n);if(v===void 0)throw(0,$N.createGraphQLError)(`Argument "${c}" has invalid value ${(0,nc.print)(y)}.`,{nodes:[y]});r[c]=v}return r}QN.getArgumentValues=uZ});var Pv=w(Ba=>{"use strict";m();T();N();Object.defineProperty(Ba,"__esModule",{value:!0});Ba.getDirective=Ba.getDirectives=Ba.getDirectiveInExtensions=Ba.getDirectivesInExtensions=void 0;var IB=Rv();function gB(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}Ba.getDirectivesInExtensions=gB;function yB(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 _B(e,t,n=["directives"]){let r=n.reduce((a,o)=>a==null?a:a[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return yB(r,t);let i=[];for(let[a,o]of Object.entries(r))if(Array.isArray(o))for(let c of o)i.push({name:a,args:c});else i.push({name:a,args:o});return yB(i,t)}Ba.getDirectiveInExtensions=_B;function cZ(e,t,n=["directives"]){let r=gB(t,n);if(r!=null&&r.length>0)return r;let a=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,p)=>(l[p.name]=p,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let p of l.directives){let f=a[p.name.value];f&&c.push({name:p.name.value,args:(0,IB.getArgumentValues)(f,p)})}return c}Ba.getDirectives=cZ;function lZ(e,t,n,r=["directives"]){let i=_B(t,n,r);if(i!=null)return i;let a=e&&e.getDirective?e.getDirective(n):void 0;if(a==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let p of l.directives)p.name.value===n&&c.push((0,IB.getArgumentValues)(a,p));if(c.length)return c}Ba.getDirective=lZ});var Fv=w(YN=>{"use strict";m();T();N();Object.defineProperty(YN,"__esModule",{value:!0});YN.getFieldsWithDirectives=void 0;var dZ=Ae();function pZ(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>r.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let c of a.fields)if(c.directives&&c.directives.length>0){let l=c.name.value,p=`${o}.${l}`,f=c.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((g,v)=>Y(x({},g),{[v.name.value]:(0,dZ.valueFromASTUntyped)(v.value)}),{})}));n[p]=f}}}return n}YN.getFieldsWithDirectives=pZ});var vB=w(JN=>{"use strict";m();T();N();Object.defineProperty(JN,"__esModule",{value:!0});JN.getArgumentsWithDirectives=void 0;var wv=Ae();function fZ(e){return e.kind===wv.Kind.OBJECT_TYPE_DEFINITION||e.kind===wv.Kind.OBJECT_TYPE_EXTENSION}function mZ(e){var r;let t={},n=e.definitions.filter(fZ);for(let i of n)if(i.fields!=null)for(let a of i.fields){let o=(r=a.arguments)==null?void 0:r.filter(l=>{var p;return(p=l.directives)==null?void 0:p.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let p=l.directives.map(f=>({name:f.name.value,args:(f.arguments||[]).reduce((y,g)=>Y(x({},y),{[g.name.value]:(0,wv.valueFromASTUntyped)(g.value)}),{})}));c[l.name.value]=p}}return t}JN.getArgumentsWithDirectives=mZ});var Lv=w(HN=>{"use strict";m();T();N();Object.defineProperty(HN,"__esModule",{value:!0});HN.getImplementingTypes=void 0;var NZ=Ae();function TZ(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];(0,NZ.isObjectType)(a)&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}HN.getImplementingTypes=TZ});var Bv=w(zN=>{"use strict";m();T();N();Object.defineProperty(zN,"__esModule",{value:!0});zN.astFromType=void 0;var EZ=Ip(),rc=Ae();function Cv(e){if((0,rc.isNonNullType)(e)){let t=Cv(e.ofType);if(t.kind===rc.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,EZ.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:rc.Kind.NON_NULL_TYPE,type:t}}else if((0,rc.isListType)(e))return{kind:rc.Kind.LIST_TYPE,type:Cv(e.ofType)};return{kind:rc.Kind.NAMED_TYPE,name:{kind:rc.Kind.NAME,value:e.name}}}zN.astFromType=Cv});var XN=w(WN=>{"use strict";m();T();N();Object.defineProperty(WN,"__esModule",{value:!0});WN.astFromValueUntyped=void 0;var Ua=Ae();function Uv(e){if(e===null)return{kind:Ua.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Uv(n);r!=null&&t.push(r)}return{kind:Ua.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=Uv(r);i&&t.push({kind:Ua.Kind.OBJECT_FIELD,name:{kind:Ua.Kind.NAME,value:n},value:i})}return{kind:Ua.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ua.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ua.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return hZ.test(t)?{kind:Ua.Kind.INT,value:t}:{kind:Ua.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ua.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}WN.astFromValueUntyped=Uv;var hZ=/^-?(?:0|[1-9][0-9]*)$/});var OB=w(ZN=>{"use strict";m();T();N();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.astFromValue=void 0;var yZ=Ip(),pi=Ae(),IZ=XN(),SB=gp();function _p(e,t){if((0,pi.isNonNullType)(t)){let n=_p(e,t.ofType);return(n==null?void 0:n.kind)===pi.Kind.NULL?null:n}if(e===null)return{kind:pi.Kind.NULL};if(e===void 0)return null;if((0,pi.isListType)(t)){let n=t.ofType;if((0,SB.isIterableObject)(e)){let r=[];for(let i of e){let a=_p(i,n);a!=null&&r.push(a)}return{kind:pi.Kind.LIST,values:r}}return _p(e,n)}if((0,pi.isInputObjectType)(t)){if(!(0,SB.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=_p(e[r.name],r.type);i&&n.push({kind:pi.Kind.OBJECT_FIELD,name:{kind:pi.Kind.NAME,value:r.name},value:i})}return{kind:pi.Kind.OBJECT,fields:n}}if((0,pi.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pi.isEnumType)(t)?{kind:pi.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&gZ.test(n)?{kind:pi.Kind.INT,value:n}:(0,IZ.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,yZ.inspect)(t))}ZN.astFromValue=_p;var gZ=/^-?(?:0|[1-9][0-9]*)$/});var DB=w(eT=>{"use strict";m();T();N();Object.defineProperty(eT,"__esModule",{value:!0});eT.getDescriptionNode=void 0;var _Z=Ae();function vZ(e){var t;if((t=e.astNode)!=null&&t.description)return Y(x({},e.astNode.description),{block:!0});if(e.description)return{kind:_Z.Kind.STRING,value:e.description,block:!0}}eT.getDescriptionNode=vZ});var gl=w(Or=>{"use strict";m();T();N();Object.defineProperty(Or,"__esModule",{value:!0});Or.memoize2of5=Or.memoize2of4=Or.memoize5=Or.memoize4=Or.memoize3=Or.memoize2=Or.memoize1=void 0;function SZ(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}Or.memoize1=SZ;function OZ(e){let t=new WeakMap;return function(r,i){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i);return a.set(i,c),c}let o=a.get(i);if(o===void 0){let c=e(r,i);return a.set(i,c),c}return o}}Or.memoize2=OZ;function DZ(e){let t=new WeakMap;return function(r,i,a){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let p=new WeakMap;o.set(i,p);let f=e(r,i,a);return p.set(a,f),f}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let p=e(r,i,a);return c.set(a,p),p}let l=c.get(a);if(l===void 0){let p=e(r,i,a);return c.set(a,p),p}return l}}Or.memoize3=DZ;function bZ(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let y=new WeakMap;c.set(i,y);let g=new WeakMap;y.set(a,g);let v=e(r,i,a,o);return g.set(o,v),v}let l=c.get(i);if(!l){l=new WeakMap,c.set(i,l);let y=new WeakMap;l.set(a,y);let g=e(r,i,a,o);return y.set(o,g),g}let p=l.get(a);if(!p){let y=new WeakMap;l.set(a,y);let g=e(r,i,a,o);return y.set(o,g),g}let f=p.get(o);if(f===void 0){let y=e(r,i,a,o);return p.set(o,y),y}return f}}Or.memoize4=bZ;function AZ(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let v=new WeakMap;l.set(i,v);let P=new WeakMap;v.set(a,P);let M=new WeakMap;P.set(o,M);let K=e(r,i,a,o,c);return M.set(c,K),K}let p=l.get(i);if(!p){p=new WeakMap,l.set(i,p);let v=new WeakMap;p.set(a,v);let P=new WeakMap;v.set(o,P);let M=e(r,i,a,o,c);return P.set(c,M),M}let f=p.get(a);if(!f){f=new WeakMap,p.set(a,f);let v=new WeakMap;f.set(o,v);let P=e(r,i,a,o,c);return v.set(c,P),P}let y=f.get(o);if(!y){y=new WeakMap,f.set(o,y);let v=e(r,i,a,o,c);return y.set(c,v),v}let g=y.get(c);if(g===void 0){let v=e(r,i,a,o,c);return y.set(c,v),v}return g}}Or.memoize5=AZ;function RZ(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let p=e(r,i,a,o);return c.set(i,p),p}let l=c.get(i);if(l===void 0){let p=e(r,i,a,o);return c.set(i,p),p}return l}}Or.memoize2of4=RZ;function PZ(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let f=e(r,i,a,o,c);return l.set(i,f),f}let p=l.get(i);if(p===void 0){let f=e(r,i,a,o,c);return l.set(i,f),f}return p}}Or.memoize2of5=PZ});var vp=w(fi=>{"use strict";m();T();N();Object.defineProperty(fi,"__esModule",{value:!0});fi.getRootTypeMap=fi.getRootTypes=fi.getRootTypeNames=fi.getDefinedRootType=void 0;var FZ=GN(),kv=gl();function wZ(e,t,n){let i=(0,fi.getRootTypeMap)(e).get(t);if(i==null)throw(0,FZ.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}fi.getDefinedRootType=wZ;fi.getRootTypeNames=(0,kv.memoize1)(function(t){let n=(0,fi.getRootTypes)(t);return new Set([...n].map(r=>r.name))});fi.getRootTypes=(0,kv.memoize1)(function(t){let n=(0,fi.getRootTypeMap)(t);return new Set(n.values())});fi.getRootTypeMap=(0,kv.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 a=t.getSubscriptionType();return a&&n.set("subscription",a),n})});var jv=w(ht=>{"use strict";m();T();N();Object.defineProperty(ht,"__esModule",{value:!0});ht.makeDirectiveNodes=ht.makeDirectiveNode=ht.makeDeprecatedDirective=ht.astFromEnumValue=ht.astFromInputField=ht.astFromField=ht.astFromScalarType=ht.astFromEnumType=ht.astFromInputObjectType=ht.astFromUnionType=ht.astFromInterfaceType=ht.astFromObjectType=ht.astFromArg=ht.getDeprecatableDirectiveNodes=ht.getDirectiveNodes=ht.astFromDirective=ht.astFromSchema=ht.printSchemaWithDirectives=ht.getDocumentNodeFromSchema=void 0;var ut=Ae(),ic=Bv(),Mv=OB(),LZ=XN(),Ui=DB(),xv=Pv(),CZ=yp(),BZ=vp();function bB(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=AB(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,ut.isSpecifiedDirective)(c)||a.push(RB(c,e,n));for(let c in r){let l=r[c],p=(0,ut.isSpecifiedScalarType)(l),f=(0,ut.isIntrospectionType)(l);if(!(p||f))if((0,ut.isObjectType)(l))a.push(PB(l,e,n));else if((0,ut.isInterfaceType)(l))a.push(FB(l,e,n));else if((0,ut.isUnionType)(l))a.push(wB(l,e,n));else if((0,ut.isInputObjectType)(l))a.push(LB(l,e,n));else if((0,ut.isEnumType)(l))a.push(CB(l,e,n));else if((0,ut.isScalarType)(l))a.push(BB(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ut.Kind.DOCUMENT,definitions:a}}ht.getDocumentNodeFromSchema=bB;function UZ(e,t={}){let n=bB(e,t);return(0,ut.print)(n)}ht.printSchemaWithDirectives=UZ;function AB(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 p of e.extensionASTNodes)r.push(p);for(let p of r)if(p.operationTypes)for(let f of p.operationTypes)n.set(f.operation,f);let i=(0,BZ.getRootTypeMap)(e);for(let[p,f]of n){let y=i.get(p);if(y!=null){let g=(0,ic.astFromType)(y);f!=null?f.type=g:n.set(p,{kind:ut.Kind.OPERATION_TYPE_DEFINITION,operation:p,type:g})}}let a=[...n.values()].filter(CZ.isSome),o=ac(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a!=null?ut.Kind.SCHEMA_DEFINITION:ut.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Ui.getDescriptionNode)(e);return l&&(c.description=l),c}ht.astFromSchema=AB;function RB(e,t,n){var r,i;return{kind:ut.Kind.DIRECTIVE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>qv(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ut.Kind.NAME,value:a})))||[]}}ht.astFromDirective=RB;function ac(e,t,n){let r=(0,xv.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=tT(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}ht.getDirectiveNodes=ac;function Op(e,t,n){var c,l;let r=[],i=null,a=(0,xv.getDirectivesInExtensions)(e,n),o;return a!=null?o=tT(t,a):o=(c=e.astNode)==null?void 0:c.directives,o!=null&&(r=o.filter(p=>p.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(p=>p.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=MB(e.deprecationReason)),i==null?r:[i].concat(r)}ht.getDeprecatableDirectiveNodes=Op;function qv(e,t,n){var r;return{kind:ut.Kind.INPUT_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},type:(0,ic.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,Mv.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Op(e,t,n)}}ht.astFromArg=qv;function PB(e,t,n){return{kind:ut.Kind.OBJECT_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>Vv(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,ic.astFromType)(r)),directives:ac(e,t,n)}}ht.astFromObjectType=PB;function FB(e,t,n){let r={kind:ut.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Vv(i,t,n)),directives:ac(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,ic.astFromType)(i))),r}ht.astFromInterfaceType=FB;function wB(e,t,n){return{kind:ut.Kind.UNION_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:ac(e,t,n),types:e.getTypes().map(r=>(0,ic.astFromType)(r))}}ht.astFromUnionType=wB;function LB(e,t,n){return{kind:ut.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>UB(r,t,n)),directives:ac(e,t,n)}}ht.astFromInputObjectType=LB;function CB(e,t,n){return{kind:ut.Kind.ENUM_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>kB(r,t,n)),directives:ac(e,t,n)}}ht.astFromEnumType=CB;function BB(e,t,n){var o;let r=(0,xv.getDirectivesInExtensions)(e,n),i=r?tT(t,r):((o=e.astNode)==null?void 0:o.directives)||[],a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(c=>c.name.value==="specifiedBy")){let c={url:a};i.push(Sp("specifiedBy",c))}return{kind:ut.Kind.SCALAR_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:i}}ht.astFromScalarType=BB;function Vv(e,t,n){return{kind:ut.Kind.FIELD_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},arguments:e.args.map(r=>qv(r,t,n)),type:(0,ic.astFromType)(e.type),directives:Op(e,t,n)}}ht.astFromField=Vv;function UB(e,t,n){var r;return{kind:ut.Kind.INPUT_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},type:(0,ic.astFromType)(e.type),directives:Op(e,t,n),defaultValue:(r=(0,Mv.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}ht.astFromInputField=UB;function kB(e,t,n){return{kind:ut.Kind.ENUM_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:Op(e,t,n)}}ht.astFromEnumValue=kB;function MB(e){return Sp("deprecated",{reason:e},ut.GraphQLDeprecatedDirective)}ht.makeDeprecatedDirective=MB;function Sp(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,Mv.astFromValue)(o,i.type);c&&r.push({kind:ut.Kind.ARGUMENT,name:{kind:ut.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=(0,LZ.astFromValueUntyped)(a);o&&r.push({kind:ut.Kind.ARGUMENT,name:{kind:ut.Kind.NAME,value:i},value:o})}return{kind:ut.Kind.DIRECTIVE,name:{kind:ut.Kind.NAME,value:e},arguments:r}}ht.makeDirectiveNode=Sp;function tT(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(Sp(r,o,a));else n.push(Sp(r,i,a))}return n}ht.makeDirectiveNodes=tT});var qB=w(_l=>{"use strict";m();T();N();Object.defineProperty(_l,"__esModule",{value:!0});_l.createDefaultRules=_l.validateGraphQlDocuments=void 0;var Dp=Ae();function kZ(e,t,n=xB()){var c;let r=new Set,i=new Map;for(let l of t)for(let p of l.definitions)p.kind===Dp.Kind.FRAGMENT_DEFINITION?i.set(p.name.value,p):r.add(p);let a={kind:Dp.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Dp.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let p of l.locations)l.stack+=` +`+TB(e.errors,t):NB(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(W7(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:jN(r,n)}else if(Array.isArray(e))return TB(e,n);return X7(e,n)}function W7(e){return typeof e.toJSON=="function"}function X7(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>EB?"["+Z7(e)+"]":"{ "+n.map(([i,a])=>i+": "+jN(a,t)).join(", ")+" }"}function TB(e,t){if(e.length===0)return"[]";if(t.length>EB)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(Il,"__esModule",{value:!0});Il.relocatedError=Il.createGraphQLError=void 0;var Dv=Ae(),eZ=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function tZ(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>eZ.includes(t))}function bv(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&tZ(t.originalError)&&(t.originalError=bv(t.originalError.message,t.originalError)),Dv.versionInfo.major>=17?new Dv.GraphQLError(e,t):new Dv.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)}Il.createGraphQLError=bv;function nZ(e,t){return bv(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}Il.relocatedError=nZ});var gp=w(Bi=>{"use strict";m();T();N();Object.defineProperty(Bi,"__esModule",{value:!0});Bi.hasOwnProperty=Bi.promiseReduce=Bi.isPromise=Bi.isObjectLike=Bi.isIterableObject=void 0;function rZ(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}Bi.isIterableObject=rZ;function iZ(e){return typeof e=="object"&&e!==null}Bi.isObjectLike=iZ;function hB(e){return(e==null?void 0:e.then)!=null}Bi.isPromise=hB;function aZ(e,t,n){let r=n;for(let i of e)r=hB(r)?r.then(a=>t(a,i)):t(r,i);return r}Bi.promiseReduce=aZ;function sZ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Bi.hasOwnProperty=sZ});var Rv=w(QN=>{"use strict";m();T();N();Object.defineProperty(QN,"__esModule",{value:!0});QN.getArgumentValues=void 0;var Av=Ip(),nc=Ae(),$N=GN(),oZ=gp();function uZ(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>Y(x({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:p}of e.args){let f=a[c];if(!f){if(p!==void 0)r[c]=p;else if((0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of required type "${(0,Av.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=f.value,g=y.kind===nc.Kind.NULL;if(y.kind===nc.Kind.VARIABLE){let P=y.name.value;if(n==null||!(0,oZ.hasOwnProperty)(n,P)){if(p!==void 0)r[c]=p;else if((0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of required type "${(0,Av.inspect)(l)}" was provided the variable "$${P}" which was not provided a runtime value.`,{nodes:[y]});continue}g=n[P]==null}if(g&&(0,nc.isNonNullType)(l))throw(0,$N.createGraphQLError)(`Argument "${c}" of non-null type "${(0,Av.inspect)(l)}" must not be null.`,{nodes:[y]});let v=(0,nc.valueFromAST)(y,l,n);if(v===void 0)throw(0,$N.createGraphQLError)(`Argument "${c}" has invalid value ${(0,nc.print)(y)}.`,{nodes:[y]});r[c]=v}return r}QN.getArgumentValues=uZ});var Pv=w(Ba=>{"use strict";m();T();N();Object.defineProperty(Ba,"__esModule",{value:!0});Ba.getDirective=Ba.getDirectives=Ba.getDirectiveInExtensions=Ba.getDirectivesInExtensions=void 0;var IB=Rv();function gB(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}Ba.getDirectivesInExtensions=gB;function yB(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 _B(e,t,n=["directives"]){let r=n.reduce((a,o)=>a==null?a:a[o],e==null?void 0:e.extensions);if(r===void 0)return;if(Array.isArray(r))return yB(r,t);let i=[];for(let[a,o]of Object.entries(r))if(Array.isArray(o))for(let c of o)i.push({name:a,args:c});else i.push({name:a,args:o});return yB(i,t)}Ba.getDirectiveInExtensions=_B;function cZ(e,t,n=["directives"]){let r=gB(t,n);if(r!=null&&r.length>0)return r;let a=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,p)=>(l[p.name]=p,l),{}),o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let p of l.directives){let f=a[p.name.value];f&&c.push({name:p.name.value,args:(0,IB.getArgumentValues)(f,p)})}return c}Ba.getDirectives=cZ;function lZ(e,t,n,r=["directives"]){let i=_B(t,n,r);if(i!=null)return i;let a=e&&e.getDirective?e.getDirective(n):void 0;if(a==null)return;let o=[];t.astNode&&o.push(t.astNode),"extensionASTNodes"in t&&t.extensionASTNodes&&(o=[...o,...t.extensionASTNodes]);let c=[];for(let l of o)if(l.directives)for(let p of l.directives)p.name.value===n&&c.push((0,IB.getArgumentValues)(a,p));if(c.length)return c}Ba.getDirective=lZ});var Fv=w(YN=>{"use strict";m();T();N();Object.defineProperty(YN,"__esModule",{value:!0});YN.getFieldsWithDirectives=void 0;var dZ=Ae();function pZ(e,t={}){let n={},r=["ObjectTypeDefinition","ObjectTypeExtension"];t.includeInputTypes&&(r=[...r,"InputObjectTypeDefinition","InputObjectTypeExtension"]);let i=e.definitions.filter(a=>r.includes(a.kind));for(let a of i){let o=a.name.value;if(a.fields!=null){for(let c of a.fields)if(c.directives&&c.directives.length>0){let l=c.name.value,p=`${o}.${l}`,f=c.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((g,v)=>Y(x({},g),{[v.name.value]:(0,dZ.valueFromASTUntyped)(v.value)}),{})}));n[p]=f}}}return n}YN.getFieldsWithDirectives=pZ});var vB=w(JN=>{"use strict";m();T();N();Object.defineProperty(JN,"__esModule",{value:!0});JN.getArgumentsWithDirectives=void 0;var wv=Ae();function fZ(e){return e.kind===wv.Kind.OBJECT_TYPE_DEFINITION||e.kind===wv.Kind.OBJECT_TYPE_EXTENSION}function mZ(e){var r;let t={},n=e.definitions.filter(fZ);for(let i of n)if(i.fields!=null)for(let a of i.fields){let o=(r=a.arguments)==null?void 0:r.filter(l=>{var p;return(p=l.directives)==null?void 0:p.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let p=l.directives.map(f=>({name:f.name.value,args:(f.arguments||[]).reduce((y,g)=>Y(x({},y),{[g.name.value]:(0,wv.valueFromASTUntyped)(g.value)}),{})}));c[l.name.value]=p}}return t}JN.getArgumentsWithDirectives=mZ});var Lv=w(HN=>{"use strict";m();T();N();Object.defineProperty(HN,"__esModule",{value:!0});HN.getImplementingTypes=void 0;var NZ=Ae();function TZ(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];(0,NZ.isObjectType)(a)&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}HN.getImplementingTypes=TZ});var Bv=w(zN=>{"use strict";m();T();N();Object.defineProperty(zN,"__esModule",{value:!0});zN.astFromType=void 0;var EZ=Ip(),rc=Ae();function Cv(e){if((0,rc.isNonNullType)(e)){let t=Cv(e.ofType);if(t.kind===rc.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,EZ.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:rc.Kind.NON_NULL_TYPE,type:t}}else if((0,rc.isListType)(e))return{kind:rc.Kind.LIST_TYPE,type:Cv(e.ofType)};return{kind:rc.Kind.NAMED_TYPE,name:{kind:rc.Kind.NAME,value:e.name}}}zN.astFromType=Cv});var XN=w(WN=>{"use strict";m();T();N();Object.defineProperty(WN,"__esModule",{value:!0});WN.astFromValueUntyped=void 0;var Ua=Ae();function Uv(e){if(e===null)return{kind:Ua.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=Uv(n);r!=null&&t.push(r)}return{kind:Ua.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=Uv(r);i&&t.push({kind:Ua.Kind.OBJECT_FIELD,name:{kind:Ua.Kind.NAME,value:n},value:i})}return{kind:Ua.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ua.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ua.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return hZ.test(t)?{kind:Ua.Kind.INT,value:t}:{kind:Ua.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ua.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}WN.astFromValueUntyped=Uv;var hZ=/^-?(?:0|[1-9][0-9]*)$/});var OB=w(ZN=>{"use strict";m();T();N();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.astFromValue=void 0;var yZ=Ip(),pi=Ae(),IZ=XN(),SB=gp();function _p(e,t){if((0,pi.isNonNullType)(t)){let n=_p(e,t.ofType);return(n==null?void 0:n.kind)===pi.Kind.NULL?null:n}if(e===null)return{kind:pi.Kind.NULL};if(e===void 0)return null;if((0,pi.isListType)(t)){let n=t.ofType;if((0,SB.isIterableObject)(e)){let r=[];for(let i of e){let a=_p(i,n);a!=null&&r.push(a)}return{kind:pi.Kind.LIST,values:r}}return _p(e,n)}if((0,pi.isInputObjectType)(t)){if(!(0,SB.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=_p(e[r.name],r.type);i&&n.push({kind:pi.Kind.OBJECT_FIELD,name:{kind:pi.Kind.NAME,value:r.name},value:i})}return{kind:pi.Kind.OBJECT,fields:n}}if((0,pi.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,pi.isEnumType)(t)?{kind:pi.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&gZ.test(n)?{kind:pi.Kind.INT,value:n}:(0,IZ.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,yZ.inspect)(t))}ZN.astFromValue=_p;var gZ=/^-?(?:0|[1-9][0-9]*)$/});var DB=w(eT=>{"use strict";m();T();N();Object.defineProperty(eT,"__esModule",{value:!0});eT.getDescriptionNode=void 0;var _Z=Ae();function vZ(e){var t;if((t=e.astNode)!=null&&t.description)return Y(x({},e.astNode.description),{block:!0});if(e.description)return{kind:_Z.Kind.STRING,value:e.description,block:!0}}eT.getDescriptionNode=vZ});var gl=w(Or=>{"use strict";m();T();N();Object.defineProperty(Or,"__esModule",{value:!0});Or.memoize2of5=Or.memoize2of4=Or.memoize5=Or.memoize4=Or.memoize3=Or.memoize2=Or.memoize1=void 0;function SZ(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}Or.memoize1=SZ;function OZ(e){let t=new WeakMap;return function(r,i){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);let c=e(r,i);return a.set(i,c),c}let o=a.get(i);if(o===void 0){let c=e(r,i);return a.set(i,c),c}return o}}Or.memoize2=OZ;function DZ(e){let t=new WeakMap;return function(r,i,a){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);let p=new WeakMap;o.set(i,p);let f=e(r,i,a);return p.set(a,f),f}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let p=e(r,i,a);return c.set(a,p),p}let l=c.get(a);if(l===void 0){let p=e(r,i,a);return c.set(a,p),p}return l}}Or.memoize3=DZ;function bZ(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let y=new WeakMap;c.set(i,y);let g=new WeakMap;y.set(a,g);let v=e(r,i,a,o);return g.set(o,v),v}let l=c.get(i);if(!l){l=new WeakMap,c.set(i,l);let y=new WeakMap;l.set(a,y);let g=e(r,i,a,o);return y.set(o,g),g}let p=l.get(a);if(!p){let y=new WeakMap;l.set(a,y);let g=e(r,i,a,o);return y.set(o,g),g}let f=p.get(o);if(f===void 0){let y=e(r,i,a,o);return p.set(o,y),y}return f}}Or.memoize4=bZ;function AZ(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let v=new WeakMap;l.set(i,v);let P=new WeakMap;v.set(a,P);let k=new WeakMap;P.set(o,k);let K=e(r,i,a,o,c);return k.set(c,K),K}let p=l.get(i);if(!p){p=new WeakMap,l.set(i,p);let v=new WeakMap;p.set(a,v);let P=new WeakMap;v.set(o,P);let k=e(r,i,a,o,c);return P.set(c,k),k}let f=p.get(a);if(!f){f=new WeakMap,p.set(a,f);let v=new WeakMap;f.set(o,v);let P=e(r,i,a,o,c);return v.set(c,P),P}let y=f.get(o);if(!y){y=new WeakMap,f.set(o,y);let v=e(r,i,a,o,c);return y.set(c,v),v}let g=y.get(c);if(g===void 0){let v=e(r,i,a,o,c);return y.set(c,v),v}return g}}Or.memoize5=AZ;function RZ(e){let t=new WeakMap;return function(r,i,a,o){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);let p=e(r,i,a,o);return c.set(i,p),p}let l=c.get(i);if(l===void 0){let p=e(r,i,a,o);return c.set(i,p),p}return l}}Or.memoize2of4=RZ;function PZ(e){let t=new WeakMap;return function(r,i,a,o,c){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);let f=e(r,i,a,o,c);return l.set(i,f),f}let p=l.get(i);if(p===void 0){let f=e(r,i,a,o,c);return l.set(i,f),f}return p}}Or.memoize2of5=PZ});var vp=w(fi=>{"use strict";m();T();N();Object.defineProperty(fi,"__esModule",{value:!0});fi.getRootTypeMap=fi.getRootTypes=fi.getRootTypeNames=fi.getDefinedRootType=void 0;var FZ=GN(),kv=gl();function wZ(e,t,n){let i=(0,fi.getRootTypeMap)(e).get(t);if(i==null)throw(0,FZ.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}fi.getDefinedRootType=wZ;fi.getRootTypeNames=(0,kv.memoize1)(function(t){let n=(0,fi.getRootTypes)(t);return new Set([...n].map(r=>r.name))});fi.getRootTypes=(0,kv.memoize1)(function(t){let n=(0,fi.getRootTypeMap)(t);return new Set(n.values())});fi.getRootTypeMap=(0,kv.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 a=t.getSubscriptionType();return a&&n.set("subscription",a),n})});var jv=w(ht=>{"use strict";m();T();N();Object.defineProperty(ht,"__esModule",{value:!0});ht.makeDirectiveNodes=ht.makeDirectiveNode=ht.makeDeprecatedDirective=ht.astFromEnumValue=ht.astFromInputField=ht.astFromField=ht.astFromScalarType=ht.astFromEnumType=ht.astFromInputObjectType=ht.astFromUnionType=ht.astFromInterfaceType=ht.astFromObjectType=ht.astFromArg=ht.getDeprecatableDirectiveNodes=ht.getDirectiveNodes=ht.astFromDirective=ht.astFromSchema=ht.printSchemaWithDirectives=ht.getDocumentNodeFromSchema=void 0;var ut=Ae(),ic=Bv(),Mv=OB(),LZ=XN(),Ui=DB(),xv=Pv(),CZ=yp(),BZ=vp();function bB(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=AB(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,ut.isSpecifiedDirective)(c)||a.push(RB(c,e,n));for(let c in r){let l=r[c],p=(0,ut.isSpecifiedScalarType)(l),f=(0,ut.isIntrospectionType)(l);if(!(p||f))if((0,ut.isObjectType)(l))a.push(PB(l,e,n));else if((0,ut.isInterfaceType)(l))a.push(FB(l,e,n));else if((0,ut.isUnionType)(l))a.push(wB(l,e,n));else if((0,ut.isInputObjectType)(l))a.push(LB(l,e,n));else if((0,ut.isEnumType)(l))a.push(CB(l,e,n));else if((0,ut.isScalarType)(l))a.push(BB(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:ut.Kind.DOCUMENT,definitions:a}}ht.getDocumentNodeFromSchema=bB;function UZ(e,t={}){let n=bB(e,t);return(0,ut.print)(n)}ht.printSchemaWithDirectives=UZ;function AB(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 p of e.extensionASTNodes)r.push(p);for(let p of r)if(p.operationTypes)for(let f of p.operationTypes)n.set(f.operation,f);let i=(0,BZ.getRootTypeMap)(e);for(let[p,f]of n){let y=i.get(p);if(y!=null){let g=(0,ic.astFromType)(y);f!=null?f.type=g:n.set(p,{kind:ut.Kind.OPERATION_TYPE_DEFINITION,operation:p,type:g})}}let a=[...n.values()].filter(CZ.isSome),o=ac(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a!=null?ut.Kind.SCHEMA_DEFINITION:ut.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Ui.getDescriptionNode)(e);return l&&(c.description=l),c}ht.astFromSchema=AB;function RB(e,t,n){var r,i;return{kind:ut.Kind.DIRECTIVE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>qv(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:ut.Kind.NAME,value:a})))||[]}}ht.astFromDirective=RB;function ac(e,t,n){let r=(0,xv.getDirectivesInExtensions)(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=tT(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}ht.getDirectiveNodes=ac;function Op(e,t,n){var c,l;let r=[],i=null,a=(0,xv.getDirectivesInExtensions)(e,n),o;return a!=null?o=tT(t,a):o=(c=e.astNode)==null?void 0:c.directives,o!=null&&(r=o.filter(p=>p.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(p=>p.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=MB(e.deprecationReason)),i==null?r:[i].concat(r)}ht.getDeprecatableDirectiveNodes=Op;function qv(e,t,n){var r;return{kind:ut.Kind.INPUT_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},type:(0,ic.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,Mv.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Op(e,t,n)}}ht.astFromArg=qv;function PB(e,t,n){return{kind:ut.Kind.OBJECT_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>Vv(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,ic.astFromType)(r)),directives:ac(e,t,n)}}ht.astFromObjectType=PB;function FB(e,t,n){let r={kind:ut.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>Vv(i,t,n)),directives:ac(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,ic.astFromType)(i))),r}ht.astFromInterfaceType=FB;function wB(e,t,n){return{kind:ut.Kind.UNION_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:ac(e,t,n),types:e.getTypes().map(r=>(0,ic.astFromType)(r))}}ht.astFromUnionType=wB;function LB(e,t,n){return{kind:ut.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>UB(r,t,n)),directives:ac(e,t,n)}}ht.astFromInputObjectType=LB;function CB(e,t,n){return{kind:ut.Kind.ENUM_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>kB(r,t,n)),directives:ac(e,t,n)}}ht.astFromEnumType=CB;function BB(e,t,n){var o;let r=(0,xv.getDirectivesInExtensions)(e,n),i=r?tT(t,r):((o=e.astNode)==null?void 0:o.directives)||[],a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(c=>c.name.value==="specifiedBy")){let c={url:a};i.push(Sp("specifiedBy",c))}return{kind:ut.Kind.SCALAR_TYPE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:i}}ht.astFromScalarType=BB;function Vv(e,t,n){return{kind:ut.Kind.FIELD_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},arguments:e.args.map(r=>qv(r,t,n)),type:(0,ic.astFromType)(e.type),directives:Op(e,t,n)}}ht.astFromField=Vv;function UB(e,t,n){var r;return{kind:ut.Kind.INPUT_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},type:(0,ic.astFromType)(e.type),directives:Op(e,t,n),defaultValue:(r=(0,Mv.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}ht.astFromInputField=UB;function kB(e,t,n){return{kind:ut.Kind.ENUM_VALUE_DEFINITION,description:(0,Ui.getDescriptionNode)(e),name:{kind:ut.Kind.NAME,value:e.name},directives:Op(e,t,n)}}ht.astFromEnumValue=kB;function MB(e){return Sp("deprecated",{reason:e},ut.GraphQLDeprecatedDirective)}ht.makeDeprecatedDirective=MB;function Sp(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,Mv.astFromValue)(o,i.type);c&&r.push({kind:ut.Kind.ARGUMENT,name:{kind:ut.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=(0,LZ.astFromValueUntyped)(a);o&&r.push({kind:ut.Kind.ARGUMENT,name:{kind:ut.Kind.NAME,value:i},value:o})}return{kind:ut.Kind.DIRECTIVE,name:{kind:ut.Kind.NAME,value:e},arguments:r}}ht.makeDirectiveNode=Sp;function tT(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(Sp(r,o,a));else n.push(Sp(r,i,a))}return n}ht.makeDirectiveNodes=tT});var qB=w(_l=>{"use strict";m();T();N();Object.defineProperty(_l,"__esModule",{value:!0});_l.createDefaultRules=_l.validateGraphQlDocuments=void 0;var Dp=Ae();function kZ(e,t,n=xB()){var c;let r=new Set,i=new Map;for(let l of t)for(let p of l.definitions)p.kind===Dp.Kind.FRAGMENT_DEFINITION?i.set(p.name.value,p):r.add(p);let a={kind:Dp.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Dp.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let p of l.locations)l.stack+=` at ${(c=l.source)==null?void 0:c.name}:${p.line}:${p.column}`;return o}_l.validateGraphQlDocuments=kZ;function xB(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Dp.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Dp.specifiedRules.filter(t=>!e.includes(t.name))}_l.createDefaultRules=xB});var VB=w(nT=>{"use strict";m();T();N();Object.defineProperty(nT,"__esModule",{value:!0});nT.parseGraphQLJSON=void 0;var MZ=Ae();function xZ(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function qZ(e){return JSON.parse(xZ(e))}function VZ(e,t,n){let r=qZ(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,MZ.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")}nT.parseGraphQLJSON=VZ});var Gv=w(Ln=>{"use strict";m();T();N();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getBlockStringIndentation=Ln.dedentBlockStringValue=Ln.getLeadingCommentBlock=Ln.getComment=Ln.getDescription=Ln.printWithComments=Ln.printComment=Ln.pushComment=Ln.collectComment=Ln.resetComments=void 0;var $B=Ae(),jZ=80,vl={};function KZ(){vl={}}Ln.resetComments=KZ;function GZ(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(bp(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)bp(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(bp(r,t,r.name.value),HZ(r)&&r.arguments)for(let i of r.arguments)bp(i,t,r.name.value,i.name.value)}break}}Ln.collectComment=GZ;function bp(e,t,n,r){let i=Kv(e);if(typeof i!="string"||i.length===0)return;let a=[t];n&&(a.push(n),r&&a.push(r));let o=a.join(".");vl[o]||(vl[o]=[]),vl[o].push(i)}Ln.pushComment=bp;function QB(e){return` # `+e.replace(/\n/g,` # `)}Ln.printComment=QB;function Me(e,t){return e?e.filter(n=>n).join(t||""):""}function jB(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` @@ -223,11 +223,11 @@ ${t}`)}Ln.getComment=Kv;function YB(e){let t=e.loc;if(!t)return;let n=[],r=t.sta `)}Ln.dedentBlockStringValue=JB;function HB(e){let t=null;for(let n=1;n{"use strict";m();T();N();Object.defineProperty(ou,"__esModule",{value:!0});ou.isDescribable=ou.transformCommentsToDescriptions=ou.parseGraphQLSDL=void 0;var ki=Ae(),WB=Gv();function WZ(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=XB(t,n),n.noLocation&&(r=(0,ki.parse)((0,ki.print)(r),n))):r=(0,ki.parse)(new ki.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:ki.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}ou.parseGraphQLSDL=WZ;function XB(e,t={}){let n=(0,ki.parse)(e,Y(x({},t),{noLocation:!1}));return(0,ki.visit)(n,{leave:i=>{if(ZB(i)){let a=(0,WB.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,WB.dedentBlockStringValue)(` `+a),c=o.includes(` `);return i.description?Y(x({},i),{description:Y(x({},i.description),{value:i.description.value+` -`+o,block:!0})}):Y(x({},i),{description:{kind:ki.Kind.STRING,value:o,block:c}})}}}})}ou.transformCommentsToDescriptions=XB;function ZB(e){return(0,ki.isTypeSystemDefinitionNode)(e)||e.kind===ki.Kind.FIELD_DEFINITION||e.kind===ki.Kind.INPUT_VALUE_DEFINITION||e.kind===ki.Kind.ENUM_VALUE_DEFINITION}ou.isDescribable=ZB});var uU=w(iT=>{"use strict";m();T();N();Object.defineProperty(iT,"__esModule",{value:!0});iT.buildOperationNodeForField=void 0;var ct=Ae(),iU=vp(),Yv=[],rT=new Map;function aU(e){Yv.push(e)}function tU(){Yv=[]}function nU(){rT=new Map}function XZ({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){tU(),nU();let p=(0,iU.getRootTypeNames)(e),f=ZZ({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:p});return f.variableDefinitions=[...Yv],tU(),nU(),f}iT.buildOperationNodeForField=XZ;function ZZ({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:p}){let f=(0,iU.getDefinedRootType)(e,n),y=f.getFields()[t],g=`${t}_${n}`;if(y.args)for(let v of y.args){let P=v.name;(!c||c.includes(P))&&aU(sU(v,P))}return{kind:ct.Kind.OPERATION_DEFINITION,operation:n,name:{kind:ct.Kind.NAME,value:g},variableDefinitions:[],selectionSet:{kind:ct.Kind.SELECTION_SET,selections:[oU({type:f,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:c,selectedFields:l,rootTypeNames:p})]}}}function Qv({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v}){if(!(typeof g=="boolean"&&f>c)){if((0,ct.isUnionType)(t)){let P=t.getTypes();return{kind:ct.Kind.SELECTION_SET,selections:P.filter(M=>!$v([...a,M],{depth:l})).map(M=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:M.name}},selectionSet:Qv({parent:t,type:M,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v})})).filter(M=>{var K,G;return((G=(K=M==null?void 0:M.selectionSet)==null?void 0:K.selections)==null?void 0:G.length)>0})}}if((0,ct.isInterfaceType)(t)){let P=Object.values(p.getTypeMap()).filter(M=>(0,ct.isObjectType)(M)&&M.getInterfaces().includes(t));return{kind:ct.Kind.SELECTION_SET,selections:P.filter(M=>!$v([...a,M],{depth:l})).map(M=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:M.name}},selectionSet:Qv({parent:t,type:M,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v})})).filter(M=>{var K,G;return((G=(K=M==null?void 0:M.selectionSet)==null?void 0:K.selections)==null?void 0:G.length)>0})}}if((0,ct.isObjectType)(t)&&!v.has(t.name)){let P=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),M=n.includes(t.name);if(!r&&M&&!P)return{kind:ct.Kind.SELECTION_SET,selections:[{kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:"id"}}]};let K=t.getFields();return{kind:ct.Kind.SELECTION_SET,selections:Object.keys(K).filter(G=>!$v([...a,(0,ct.getNamedType)(K[G].type)],{depth:l})).map(G=>{let Z=typeof g=="object"?g[G]:!0;return Z?oU({type:t,field:K[G],models:n,path:[...i,G],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:Z,rootTypeNames:v}):null}).filter(G=>{var Z,W;return G==null?!1:"selectionSet"in G?!!((W=(Z=G.selectionSet)==null?void 0:Z.selections)!=null&&W.length):!0})}}}}function sU(e,t){function n(r){return(0,ct.isListType)(r)?{kind:ct.Kind.LIST_TYPE,type:n(r.ofType)}:(0,ct.isNonNullType)(r)?{kind:ct.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:r.name}}}return{kind:ct.Kind.VARIABLE_DEFINITION,variable:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:t||e.name}},type:n(e.type)}}function rU(e,t){return[...t,e].join("_")}function oU({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v}){let P=(0,ct.getNamedType)(t.type),M=[],K=!1;if(t.args&&t.args.length&&(M=t.args.map(Te=>{let fe=rU(Te.name,i);return y&&!y.includes(fe)?((0,ct.isNonNullType)(Te.type)&&(K=!0),null):(r||aU(sU(Te,fe)),{kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:Te.name},value:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:rU(Te.name,i)}}})}).filter(Boolean)),K)return null;let G=[...i,t.name],Z=G.join("."),W=t.name;return rT.has(Z)&&rT.get(Z)!==t.type.toString()&&(W+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),rT.set(Z,t.type.toString()),!(0,ct.isScalarType)(P)&&!(0,ct.isEnumType)(P)?Y(x({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},W!==t.name&&{alias:{kind:ct.Kind.NAME,value:W}}),{selectionSet:Qv({parent:e,type:P,models:n,firstCall:r,path:G,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f+1,argNames:y,selectedFields:g,rootTypeNames:v})||void 0,arguments:M}):Y(x({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},W!==t.name&&{alias:{kind:ct.Kind.NAME,value:W}}),{arguments:M})}function $v(e,t={depth:1}){let n=e[e.length-1];return(0,ct.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var lU=w(aT=>{"use strict";m();T();N();Object.defineProperty(aT,"__esModule",{value:!0});aT.DirectiveLocation=void 0;var cU;(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"})(cU||(aT.DirectiveLocation=cU={}))});var sc=w(sT=>{"use strict";m();T();N();Object.defineProperty(sT,"__esModule",{value:!0});sT.MapperKind=void 0;var dU;(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"})(dU||(sT.MapperKind=dU={}))});var Jv=w(oT=>{"use strict";m();T();N();Object.defineProperty(oT,"__esModule",{value:!0});oT.getObjectTypeFromTypeMap=void 0;var eee=Ae();function tee(e,t){if(t){let n=e[t.name];if((0,eee.isObjectType)(n))return n}}oT.getObjectTypeFromTypeMap=tee});var Wv=w(ka=>{"use strict";m();T();N();Object.defineProperty(ka,"__esModule",{value:!0});ka.getBuiltInForStub=ka.isNamedStub=ka.createStub=ka.createNamedStub=void 0;var lr=Ae();function Hv(e,t){let n;return t==="object"?n=lr.GraphQLObjectType:t==="interface"?n=lr.GraphQLInterfaceType:n=lr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:lr.GraphQLString}}})}ka.createNamedStub=Hv;function zv(e,t){switch(e.kind){case lr.Kind.LIST_TYPE:return new lr.GraphQLList(zv(e.type,t));case lr.Kind.NON_NULL_TYPE:return new lr.GraphQLNonNull(zv(e.type,t));default:return t==="output"?Hv(e.name.value,"object"):Hv(e.name.value,"input")}}ka.createStub=zv;function nee(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}ka.isNamedStub=nee;function ree(e){switch(e.name){case lr.GraphQLInt.name:return lr.GraphQLInt;case lr.GraphQLFloat.name:return lr.GraphQLFloat;case lr.GraphQLString.name:return lr.GraphQLString;case lr.GraphQLBoolean.name:return lr.GraphQLBoolean;case lr.GraphQLID.name:return lr.GraphQLID;default:return e}}ka.getBuiltInForStub=ree});var cT=w(uT=>{"use strict";m();T();N();Object.defineProperty(uT,"__esModule",{value:!0});uT.rewireTypes=void 0;var Qn=Ae(),pU=Wv();function iee(e,t){let n=Object.create(null);for(let g in e)n[g]=e[g];let r=Object.create(null);for(let g in n){let v=n[g];if(v==null||g.startsWith("__"))continue;let P=v.name;if(!P.startsWith("__")){if(r[P]!=null){console.warn(`Duplicate schema type name ${P} found; keeping the existing one found in the schema`);continue}r[P]=v}}for(let g in r)r[g]=c(r[g]);let i=t.map(g=>a(g));return{typeMap:r,directives:i};function a(g){if((0,Qn.isSpecifiedDirective)(g))return g;let v=g.toConfig();return v.args=o(v.args),new Qn.GraphQLDirective(v)}function o(g){let v={};for(let P in g){let M=g[P],K=y(M.type);K!=null&&(M.type=K,v[P]=M)}return v}function c(g){if((0,Qn.isObjectType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>l(v.fields),interfaces:()=>f(v.interfaces)});return new Qn.GraphQLObjectType(P)}else if((0,Qn.isInterfaceType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>l(v.fields)});return"interfaces"in P&&(P.interfaces=()=>f(v.interfaces)),new Qn.GraphQLInterfaceType(P)}else if((0,Qn.isUnionType)(g)){let v=g.toConfig(),P=Y(x({},v),{types:()=>f(v.types)});return new Qn.GraphQLUnionType(P)}else if((0,Qn.isInputObjectType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>p(v.fields)});return new Qn.GraphQLInputObjectType(P)}else if((0,Qn.isEnumType)(g)){let v=g.toConfig();return new Qn.GraphQLEnumType(v)}else if((0,Qn.isScalarType)(g)){if((0,Qn.isSpecifiedScalarType)(g))return g;let v=g.toConfig();return new Qn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${g}`)}function l(g){let v={};for(let P in g){let M=g[P],K=y(M.type);K!=null&&M.args&&(M.type=K,M.args=o(M.args),v[P]=M)}return v}function p(g){let v={};for(let P in g){let M=g[P],K=y(M.type);K!=null&&(M.type=K,v[P]=M)}return v}function f(g){let v=[];for(let P of g){let M=y(P);M!=null&&v.push(M)}return v}function y(g){if((0,Qn.isListType)(g)){let v=y(g.ofType);return v!=null?new Qn.GraphQLList(v):null}else if((0,Qn.isNonNullType)(g)){let v=y(g.ofType);return v!=null?new Qn.GraphQLNonNull(v):null}else if((0,Qn.isNamedType)(g)){let v=n[g.name];return v===void 0&&(v=(0,pU.isNamedStub)(g)?(0,pU.getBuiltInForStub)(g):c(g),r[v.name]=n[g.name]=v),v!=null?r[v.name]:null}return null}}uT.rewireTypes=iee});var Xv=w(Ma=>{"use strict";m();T();N();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.parseInputValueLiteral=Ma.parseInputValue=Ma.serializeInputValue=Ma.transformInputValue=void 0;var lT=Ae(),aee=yp();function Sl(e,t,n=null,r=null){if(t==null)return t;let i=(0,lT.getNullableType)(e);if((0,lT.isLeafType)(i))return n!=null?n(i,t):t;if((0,lT.isListType)(i))return(0,aee.asArray)(t).map(a=>Sl(i.ofType,a,n,r));if((0,lT.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Sl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}Ma.transformInputValue=Sl;function see(e,t){return Sl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}Ma.serializeInputValue=see;function oee(e,t){return Sl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}Ma.parseInputValue=oee;function uee(e,t){return Sl(e,t,(n,r)=>n.parseLiteral(r,{}))}Ma.parseInputValueLiteral=uee});var bl=w(Dl=>{"use strict";m();T();N();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.correctASTNodes=Dl.mapSchema=void 0;var nt=Ae(),Ol=Jv(),Dt=sc(),cee=cT(),fU=Xv();function lee(e,t={}){let n=TU(NU(Zv(mU(dee(Zv(mU(e.getTypeMap(),e,fU.serializeInputValue),e,t,c=>(0,nt.isLeafType)(c)),e,t),e,fU.parseInputValue),e,t,c=>!(0,nt.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=pee(r,e,t),{typeMap:a,directives:o}=(0,cee.rewireTypes)(n,i);return new nt.GraphQLSchema(Y(x({},e.toConfig()),{query:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}Dl.mapSchema=lee;function Zv(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let c=mee(t,n,a);if(c==null){i[a]=o;continue}let l=c(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function dee(e,t,n){let r=yee(n);return r?Zv(e,t,{[Dt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let p=o[l],f=r(p,i.name,t,l);if(f===void 0)c[l]=p;else if(Array.isArray(f)){let[y,g]=f;c[y]=g===void 0?p:g}else f!==null&&(c[l]=f)}return Rp(new nt.GraphQLEnumType(Y(x({},a),{values:c})))}},i=>(0,nt.isEnumType)(i)):e}function mU(e,t,n){let r=TU(e,t,{[Dt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=dT(e,i.type);if(a!=null)return Y(x({},i),{defaultValue:n(a,i.defaultValue)})}});return NU(r,t,{[Dt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=dT(r,i.type);if(a!=null)return Y(x({},i),{defaultValue:n(a,i.defaultValue)})}})}function dT(e,t){if((0,nt.isListType)(t)){let n=dT(e,t.ofType);return n!=null?new nt.GraphQLList(n):null}else if((0,nt.isNonNullType)(t)){let n=dT(e,t.ofType);return n!=null?new nt.GraphQLNonNull(n):null}else if((0,nt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function NU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,nt.isObjectType)(a)&&!(0,nt.isInterfaceType)(a)&&!(0,nt.isInputObjectType)(a)){r[i]=a;continue}let o=Tee(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f],g=o(y,f,i,t);if(g===void 0)p[f]=y;else if(Array.isArray(g)){let[v,P]=g;P.astNode!=null&&(P.astNode=Y(x({},P.astNode),{name:Y(x({},P.astNode.name),{value:v})})),p[v]=P===void 0?y:P}else g!==null&&(p[f]=g)}(0,nt.isObjectType)(a)?r[i]=Rp(new nt.GraphQLObjectType(Y(x({},c),{fields:p}))):(0,nt.isInterfaceType)(a)?r[i]=Rp(new nt.GraphQLInterfaceType(Y(x({},c),{fields:p}))):r[i]=Rp(new nt.GraphQLInputObjectType(Y(x({},c),{fields:p})))}return r}function TU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,nt.isObjectType)(a)&&!(0,nt.isInterfaceType)(a)){r[i]=a;continue}let o=Eee(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f],g=y.args;if(g==null){p[f]=y;continue}let v=Object.keys(g);if(!v.length){p[f]=y;continue}let P={};for(let M of v){let K=g[M],G=o(K,f,i,t);if(G===void 0)P[M]=K;else if(Array.isArray(G)){let[Z,W]=G;P[Z]=W}else G!==null&&(P[M]=G)}p[f]=Y(x({},y),{args:P})}(0,nt.isObjectType)(a)?r[i]=new nt.GraphQLObjectType(Y(x({},c),{fields:p})):(0,nt.isInterfaceType)(a)?r[i]=new nt.GraphQLInterfaceType(Y(x({},c),{fields:p})):r[i]=new nt.GraphQLInputObjectType(Y(x({},c),{fields:p}))}return r}function pee(e,t,n){let r=hee(n);if(r==null)return e.slice();let i=[];for(let a of e){let o=r(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function fee(e,t){var i,a,o;let n=e.getType(t),r=[Dt.MapperKind.TYPE];return(0,nt.isObjectType)(n)?(r.push(Dt.MapperKind.COMPOSITE_TYPE,Dt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Dt.MapperKind.ROOT_OBJECT,Dt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Dt.MapperKind.ROOT_OBJECT,Dt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Dt.MapperKind.ROOT_OBJECT,Dt.MapperKind.SUBSCRIPTION)):(0,nt.isInputObjectType)(n)?r.push(Dt.MapperKind.INPUT_OBJECT_TYPE):(0,nt.isInterfaceType)(n)?r.push(Dt.MapperKind.COMPOSITE_TYPE,Dt.MapperKind.ABSTRACT_TYPE,Dt.MapperKind.INTERFACE_TYPE):(0,nt.isUnionType)(n)?r.push(Dt.MapperKind.COMPOSITE_TYPE,Dt.MapperKind.ABSTRACT_TYPE,Dt.MapperKind.UNION_TYPE):(0,nt.isEnumType)(n)?r.push(Dt.MapperKind.ENUM_TYPE):(0,nt.isScalarType)(n)&&r.push(Dt.MapperKind.SCALAR_TYPE),r}function mee(e,t,n){let r=fee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Nee(e,t){var i,a,o;let n=e.getType(t),r=[Dt.MapperKind.FIELD];return(0,nt.isObjectType)(n)?(r.push(Dt.MapperKind.COMPOSITE_FIELD,Dt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Dt.MapperKind.ROOT_FIELD,Dt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Dt.MapperKind.ROOT_FIELD,Dt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Dt.MapperKind.ROOT_FIELD,Dt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,nt.isInterfaceType)(n)?r.push(Dt.MapperKind.COMPOSITE_FIELD,Dt.MapperKind.INTERFACE_FIELD):(0,nt.isInputObjectType)(n)&&r.push(Dt.MapperKind.INPUT_OBJECT_FIELD),r}function Tee(e,t,n){let r=Nee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Eee(e){let t=e[Dt.MapperKind.ARGUMENT];return t!=null?t:null}function hee(e){let t=e[Dt.MapperKind.DIRECTIVE];return t!=null?t:null}function yee(e){let t=e[Dt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Rp(e){if((0,nt.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=Y(x({},t.astNode),{kind:nt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLObjectType(t)}else if((0,nt.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=Y(x({},t.astNode),{kind:nt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLInterfaceType(t)}else if((0,nt.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=Y(x({},t.astNode),{kind:nt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLInputObjectType(t)}else if((0,nt.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=Y(x({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{values:void 0}))),new nt.GraphQLEnumType(t)}else return e}Dl.correctASTNodes=Rp});var EU=w(fT=>{"use strict";m();T();N();Object.defineProperty(fT,"__esModule",{value:!0});fT.filterSchema=void 0;var pT=Ae(),hs=sc(),Iee=bl();function gee({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:c=void 0}){return(0,Iee.mapSchema)(e,{[hs.MapperKind.QUERY]:p=>eS(p,"Query",r,c),[hs.MapperKind.MUTATION]:p=>eS(p,"Mutation",r,c),[hs.MapperKind.SUBSCRIPTION]:p=>eS(p,"Subscription",r,c),[hs.MapperKind.OBJECT_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLObjectType,p,i||n,c):null,[hs.MapperKind.INTERFACE_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLInterfaceType,p,a||n,c):null,[hs.MapperKind.INPUT_OBJECT_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLInputObjectType,p,o||n):null,[hs.MapperKind.UNION_TYPE]:p=>t(p.name,p)?void 0:null,[hs.MapperKind.ENUM_TYPE]:p=>t(p.name,p)?void 0:null,[hs.MapperKind.SCALAR_TYPE]:p=>t(p.name,p)?void 0:null})}fT.filterSchema=gee;function eS(e,t,n,r){if(n||r){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t,a,i.fields[a]))delete i.fields[a];else if(r&&o.args)for(let c in o.args)r(t,a,c,o.args[c])||delete o.args[c]}return new pT.GraphQLObjectType(i)}return e}function tS(e,t,n,r){if(n||r){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t.name,a,i.fields[a]))delete i.fields[a];else if(r&&"args"in o)for(let c in o.args)r(t.name,a,c,o.args[c])||delete o.args[c]}return new e(i)}}});var yU=w(Al=>{"use strict";m();T();N();Object.defineProperty(Al,"__esModule",{value:!0});Al.healTypes=Al.healSchema=void 0;var xa=Ae();function _ee(e){return hU(e.getTypeMap(),e.getDirectives()),e}Al.healSchema=_ee;function hU(e,t){let n=Object.create(null);for(let p in e){let f=e[p];if(f==null||p.startsWith("__"))continue;let y=f.name;if(!y.startsWith("__")){if(n[y]!=null){console.warn(`Duplicate schema type name ${y} found; keeping the existing one found in the schema`);continue}n[y]=f}}for(let p in n){let f=n[p];e[p]=f}for(let p of t)p.args=p.args.filter(f=>(f.type=l(f.type),f.type!==null));for(let p in e){let f=e[p];!p.startsWith("__")&&p in n&&f!=null&&r(f)}for(let p in e)!p.startsWith("__")&&!(p in n)&&delete e[p];function r(p){if((0,xa.isObjectType)(p)){i(p),a(p);return}else if((0,xa.isInterfaceType)(p)){i(p),"getInterfaces"in p&&a(p);return}else if((0,xa.isUnionType)(p)){c(p);return}else if((0,xa.isInputObjectType)(p)){o(p);return}else if((0,xa.isLeafType)(p))return;throw new Error(`Unexpected schema type: ${p}`)}function i(p){let f=p.getFields();for(let[y,g]of Object.entries(f))g.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),g.type=l(g.type),g.type===null&&delete f[y]}function a(p){if("getInterfaces"in p){let f=p.getInterfaces();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}}function o(p){let f=p.getFields();for(let[y,g]of Object.entries(f))g.type=l(g.type),g.type===null&&delete f[y]}function c(p){let f=p.getTypes();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}function l(p){if((0,xa.isListType)(p)){let f=l(p.ofType);return f!=null?new xa.GraphQLList(f):null}else if((0,xa.isNonNullType)(p)){let f=l(p.ofType);return f!=null?new xa.GraphQLNonNull(f):null}else if((0,xa.isNamedType)(p)){let f=e[p.name];if(f&&p!==f)return f}return p}}Al.healTypes=hU});var IU=w(mT=>{"use strict";m();T();N();Object.defineProperty(mT,"__esModule",{value:!0});mT.getResolversFromSchema=void 0;var oc=Ae();function vee(e,t){var i,a;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let c=r[o];if((0,oc.isScalarType)(c)){if(!(0,oc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new oc.GraphQLScalarType(l)}}else if((0,oc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let p of l)n[o][p.name]=p.value}else if((0,oc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,oc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,oc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let p in l){let f=l[p];if(f.subscribe!=null&&(n[o][p]=n[o][p]||{},n[o][p].subscribe=f.subscribe),f.resolve!=null&&((i=f.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=f.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][p]=n[o][p]||{},n[o][p].resolve=f.resolve}}}}return n}mT.getResolversFromSchema=vee});var _U=w(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.forEachField=void 0;var gU=Ae();function See(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,gU.getNamedType)(i).name.startsWith("__")&&(0,gU.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}NT.forEachField=See});var vU=w(TT=>{"use strict";m();T();N();Object.defineProperty(TT,"__esModule",{value:!0});TT.forEachDefaultValue=void 0;var nS=Ae();function Oee(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,nS.getNamedType)(i).name.startsWith("__")){if((0,nS.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];for(let l of c.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,nS.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}TT.forEachDefaultValue=Oee});var aS=w(ET=>{"use strict";m();T();N();Object.defineProperty(ET,"__esModule",{value:!0});ET.addTypes=void 0;var rS=Ae(),iS=Jv(),Dee=cT();function bee(e,t){let n=e.toConfig(),r={};for(let c of n.types)r[c.name]=c;let i={};for(let c of n.directives)i[c.name]=c;for(let c of t)(0,rS.isNamedType)(c)?r[c.name]=c:(0,rS.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,Dee.rewireTypes)(r,Object.values(i));return new rS.GraphQLSchema(Y(x({},n),{query:(0,iS.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,iS.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,iS.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}ET.addTypes=bee});var OU=w(yT=>{"use strict";m();T();N();Object.defineProperty(yT,"__esModule",{value:!0});yT.pruneSchema=void 0;var Zn=Ae(),Aee=Lv(),Ree=sc(),Pee=bl(),Fee=vp();function wee(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let p=Lee(l);if(i){let f=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let g=l.getType(y);g&&i(g)&&f.push(y)}p=SU(f,l,p)}c=[],l=(0,Pee.mapSchema)(l,{[Ree.MapperKind.TYPE]:f=>!p.has(f.name)&&!(0,Zn.isSpecifiedScalarType)(f)?((0,Zn.isUnionType)(f)||(0,Zn.isInputObjectType)(f)||(0,Zn.isInterfaceType)(f)||(0,Zn.isObjectType)(f)||(0,Zn.isScalarType)(f))&&(o||(0,Zn.isUnionType)(f)&&r&&!Object.keys(f.getTypes()).length||((0,Zn.isInputObjectType)(f)||(0,Zn.isInterfaceType)(f)||(0,Zn.isObjectType)(f))&&n&&!Object.keys(f.getFields()).length||(0,Zn.isInterfaceType)(f)&&a)?f:(c.push(f.name),p.delete(f.name),null):f})}while(c.length);return l}yT.pruneSchema=wee;function Lee(e){let t=[];for(let n of(0,Fee.getRootTypes)(e))t.push(n.name);return SU(t,e)}function SU(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 a=t.getType(i);if(a){if((0,Zn.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,Zn.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,Aee.getImplementingTypes)(a.name,t)),r[i]=!1),(0,Zn.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>o.astNode?hT(t,o.astNode):[])),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),c=Object.entries(o);if(!c.length)continue;for(let[,l]of c){(0,Zn.isObjectType)(a)&&e.push(...l.args.flatMap(f=>{let y=[(0,Zn.getNamedType)(f.type).name];return f.astNode&&y.push(...hT(t,f.astNode)),y}));let p=(0,Zn.getNamedType)(l.type);e.push(p.name),l.astNode&&e.push(...hT(t,l.astNode)),(0,Zn.isInterfaceType)(p)&&!(p.name in r)&&(r[p.name]=!0)}}a.astNode&&e.push(...hT(t,a.astNode)),n.add(i)}}return n}function hT(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,a;return(a=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,Zn.getNamedType)(o.type).name))!=null?a:[]})}});var bU=w(IT=>{"use strict";m();T();N();Object.defineProperty(IT,"__esModule",{value:!0});IT.mergeDeep=void 0;var Cee=yp();function DU(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let a of e)if(sS(r)&&sS(a)){if(t){let o=Object.getPrototypeOf(i),c=Object.getPrototypeOf(a);if(c)for(let l of Object.getOwnPropertyNames(c)){let p=Object.getOwnPropertyDescriptor(c,l);(0,Cee.isSome)(p)&&Object.defineProperty(o,l,p)}}for(let o in a)sS(a[o])?o in i?i[o]=DU([i[o],a[o]],t,n):Object.assign(i,{[o]:a[o]}):n&&Array.isArray(i[o])?Array.isArray(a[o])?i[o].push(...a[o]):i[o].push(a[o]):Object.assign(i,{[o]:a[o]})}else if(n&&Array.isArray(r))Array.isArray(a)?r.push(...a):r.push(a);else if(n&&Array.isArray(a))return[r,...a];return i}IT.mergeDeep=DU;function sS(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var AU=w(gT=>{"use strict";m();T();N();Object.defineProperty(gT,"__esModule",{value:!0});gT.parseSelectionSet=void 0;var Bee=Ae();function Uee(e,t){return(0,Bee.parse)(e,t).definitions[0].selectionSet}gT.parseSelectionSet=Uee});var RU=w(_T=>{"use strict";m();T();N();Object.defineProperty(_T,"__esModule",{value:!0});_T.getResponseKeyFromInfo=void 0;function kee(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}_T.getResponseKeyFromInfo=kee});var PU=w(qa=>{"use strict";m();T();N();Object.defineProperty(qa,"__esModule",{value:!0});qa.modifyObjectFields=qa.selectObjectFields=qa.removeObjectFields=qa.appendObjectFields=void 0;var vT=Ae(),Mee=aS(),ST=sc(),uc=bl();function xee(e,t,n){return e.getType(t)==null?(0,Mee.addTypes)(e,[new vT.GraphQLObjectType({name:t,fields:n})]):(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),a=i.fields,o={};for(let c in a)o[c]=a[c];for(let c in n)o[c]=n[c];return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},i),{fields:o})))}}})}qa.appendObjectFields=xee;function qee(e,t,n){let r={};return[(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let p in c){let f=c[p];n(p,f)?r[p]=f:l[p]=f}return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},o),{fields:l})))}}}),r]}qa.removeObjectFields=qee;function Vee(e,t,n){let r={};return(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let c in o){let l=o[c];n(c,l)&&(r[c]=l)}}}}),r}qa.selectObjectFields=Vee;function jee(e,t,n,r){let i={};return[(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f];n(f,y)?i[f]=y:p[f]=y}for(let f in r){let y=r[f];p[f]=y}return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},c),{fields:p})))}}}),i]}qa.modifyObjectFields=jee});var FU=w(OT=>{"use strict";m();T();N();Object.defineProperty(OT,"__esModule",{value:!0});OT.renameType=void 0;var Mi=Ae();function Kee(e,t){if((0,Mi.isObjectType)(e))return new Mi.GraphQLObjectType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isInterfaceType)(e))return new Mi.GraphQLInterfaceType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isUnionType)(e))return new Mi.GraphQLUnionType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isInputObjectType)(e))return new Mi.GraphQLInputObjectType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isEnumType)(e))return new Mi.GraphQLEnumType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isScalarType)(e))return new Mi.GraphQLScalarType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}OT.renameType=Kee});var CU=w(DT=>{"use strict";m();T();N();Object.defineProperty(DT,"__esModule",{value:!0});DT.mapAsyncIterator=void 0;var Gee=gp();function $ee(e,t,n,r){let i,a,o;r&&(o=p=>{let f=r();return(0,Gee.isPromise)(f)?f.then(()=>p):p}),typeof e.return=="function"&&(i=e.return,a=p=>{let f=()=>Promise.reject(p);return i.call(e).then(f,f)});function c(p){return p.done?o?o(p):p:wU(p.value,t).then(LU,a)}let l;if(n){let p=n;l=f=>wU(f,p).then(LU,a)}return{next(){return e.next().then(c,l)},return(){let p=i?i.call(e).then(c,l):Promise.resolve({value:void 0,done:!0});return o?p.then(o):p},throw(p){return typeof e.throw=="function"?e.throw(p).then(c,l):Promise.reject(p).catch(a)},[Symbol.asyncIterator](){return this}}}DT.mapAsyncIterator=$ee;function wU(e,t){return new Promise(n=>n(t(e)))}function LU(e){return{value:e,done:!1}}});var BU=w(Rl=>{"use strict";m();T();N();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.createVariableNameGenerator=Rl.updateArgument=void 0;var cc=Ae(),Qee=Bv();function Yee(e,t,n,r,i,a,o){if(e[r]={kind:cc.Kind.ARGUMENT,name:{kind:cc.Kind.NAME,value:r},value:{kind:cc.Kind.VARIABLE,name:{kind:cc.Kind.NAME,value:i}}},t[i]={kind:cc.Kind.VARIABLE_DEFINITION,variable:{kind:cc.Kind.VARIABLE,name:{kind:cc.Kind.NAME,value:i}},type:(0,Qee.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Rl.updateArgument=Yee;function Jee(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Rl.createVariableNameGenerator=Jee});var UU=w(bT=>{"use strict";m();T();N();Object.defineProperty(bT,"__esModule",{value:!0});bT.implementsAbstractType=void 0;var oS=Ae();function Hee(e,t,n){return n==null||t==null?!1:t===n?!0:(0,oS.isCompositeType)(t)&&(0,oS.isCompositeType)(n)?(0,oS.doTypesOverlap)(e,t,n):!1}bT.implementsAbstractType=Hee});var kU=w(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.observableToAsyncIterable=void 0;function zee(e){let t=[],n=[],r=!0,i=f=>{t.length!==0?t.shift()({value:f,done:!1}):n.push({value:f,done:!1})},a=f=>{t.length!==0?t.shift()({value:{errors:[f]},done:!1}):n.push({value:{errors:[f]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(f=>{if(n.length!==0){let y=n.shift();f(y)}else t.push(f)}),l=e.subscribe({next(f){i(f)},error(f){a(f)},complete(){o()}}),p=()=>{if(r){r=!1,l.unsubscribe();for(let f of t)f({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return p(),Promise.resolve({value:void 0,done:!0})},throw(f){return p(),Promise.reject(f)},[Symbol.asyncIterator](){return this}}}AT.observableToAsyncIterable=zee});var MU=w(RT=>{"use strict";m();T();N();Object.defineProperty(RT,"__esModule",{value:!0});RT.AccumulatorMap=void 0;var uS=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)}};RT.AccumulatorMap=uS});var cS=w(Pl=>{"use strict";m();T();N();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.GraphQLStreamDirective=Pl.GraphQLDeferDirective=void 0;var xi=Ae();Pl.GraphQLDeferDirective=new xi.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[xi.DirectiveLocation.FRAGMENT_SPREAD,xi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new xi.GraphQLNonNull(xi.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:xi.GraphQLString,description:"Unique name"}}});Pl.GraphQLStreamDirective=new xi.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[xi.DirectiveLocation.FIELD],args:{if:{type:new xi.GraphQLNonNull(xi.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:xi.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:xi.GraphQLInt,description:"Number of items to return immediately"}}})});var pS=w(zr=>{"use strict";m();T();N();Object.defineProperty(zr,"__esModule",{value:!0});zr.collectSubFields=zr.getDeferValues=zr.getFieldEntryKey=zr.doesFragmentConditionMatch=zr.shouldIncludeNode=zr.collectFields=void 0;var Va=Ae(),FT=MU(),Wee=cS(),Xee=gl();function Fl(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case Va.Kind.FIELD:{if(!PT(n,l))continue;a.add(xU(l),l);break}case Va.Kind.INLINE_FRAGMENT:{if(!PT(n,l)||!lS(e,l,r))continue;let p=dS(n,l);if(p){let f=new FT.AccumulatorMap;Fl(e,t,n,r,l.selectionSet,f,o,c),o.push({label:p.label,fields:f})}else Fl(e,t,n,r,l.selectionSet,a,o,c);break}case Va.Kind.FRAGMENT_SPREAD:{let p=l.name.value;if(!PT(n,l))continue;let f=dS(n,l);if(c.has(p)&&!f)continue;let y=t[p];if(!y||!lS(e,y,r))continue;if(f||c.add(p),f){let g=new FT.AccumulatorMap;Fl(e,t,n,r,y.selectionSet,g,o,c),o.push({label:f.label,fields:g})}else Fl(e,t,n,r,y.selectionSet,a,o,c);break}}}function Zee(e,t,n,r,i){let a=new FT.AccumulatorMap,o=[];return Fl(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}zr.collectFields=Zee;function PT(e,t){let n=(0,Va.getDirectiveValues)(Va.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Va.getDirectiveValues)(Va.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}zr.shouldIncludeNode=PT;function lS(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Va.typeFromAST)(e,r);return i===n?!0:(0,Va.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}zr.doesFragmentConditionMatch=lS;function xU(e){return e.alias?e.alias.value:e.name.value}zr.getFieldEntryKey=xU;function dS(e,t){let n=(0,Va.getDirectiveValues)(Wee.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}zr.getDeferValues=dS;zr.collectSubFields=(0,Xee.memoize5)(function(t,n,r,i,a){let o=new FT.AccumulatorMap,c=new Set,l=[],p={fields:o,patches:l};for(let f of a)f.selectionSet&&Fl(t,n,r,i,f.selectionSet,o,l,c);return p})});var fS=w(wl=>{"use strict";m();T();N();Object.defineProperty(wl,"__esModule",{value:!0});wl.getOperationASTFromRequest=wl.getOperationASTFromDocument=void 0;var ete=Ae(),tte=gl();function qU(e,t){let n=(0,ete.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}wl.getOperationASTFromDocument=qU;wl.getOperationASTFromRequest=(0,tte.memoize1)(function(t){return qU(t.document,t.operationName)})});var KU=w(cu=>{"use strict";m();T();N();Object.defineProperty(cu,"__esModule",{value:!0});cu.visitResult=cu.visitErrors=cu.visitData=void 0;var uu=Ae(),mS=pS(),nte=fS();function NS(e,t,n){if(Array.isArray(e))return e.map(r=>NS(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let a=r[i];Object.defineProperty(r,i,{value:NS(a,t,n)})}return n!=null?n(r):r}return e}cu.visitData=NS;function rte(e,t){return e.map(n=>t(n))}cu.visitErrors=rte;function ite(e,t,n,r,i){let a=t.document.definitions.reduce((g,v)=>(v.kind===uu.Kind.FRAGMENT_DEFINITION&&(g[v.name.value]=v),g),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,p=e.errors,f=p!=null&&i!=null,y=(0,nte.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=ote(l,y,n,a,o,r,f?p:void 0,c)),p!=null&&i&&(e.errors=ate(p,i,c)),e}cu.visitResult=ite;function ate(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,a=t.__unpathed;return e.map(o=>{let c=r.get(o),l=c==null?o:c.reduceRight((p,f)=>{let y=f.type.name,g=t[y];if(g==null)return p;let v=g[f.fieldName];return v==null?p:v(p,f.pathIndex)},o);return a&&i.has(o)?a(l):l})}function ste(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function ote(e,t,n,r,i,a,o,c){let l=ste(n,t),{fields:p}=(0,mS.collectFields)(n,r,i,l,t.selectionSet);return TS(e,l,p,n,r,i,a,0,o,c)}function TS(e,t,n,r,i,a,o,c,l,p){var Z;let f=t.getFields(),y=o==null?void 0:o[t.name],g=y==null?void 0:y.__enter,v=g!=null?g(e):e,P,M=null;if(l!=null){P=cte(l,c),M=P.errorMap;for(let W of P.unpathedErrors)p.unpathedErrors.add(W)}for(let[W,Te]of n){let fe=Te[0].name.value,we=(Z=f[fe])==null?void 0:Z.type;if(we==null)switch(fe){case"__typename":we=uu.TypeNameMetaFieldDef.type;break;case"__schema":we=uu.SchemaMetaFieldDef.type;break;case"__type":we=uu.TypeMetaFieldDef.type;break}let je=c+1,it;M&&(it=M[W],it!=null&&delete M[W],lte(t,fe,je,it,p));let ee=jU(e[W],we,Te,r,i,a,o,je,it,p);VU(v,W,ee,y,fe)}let K=v.__typename;if(K!=null&&VU(v,"__typename",K,y,"__typename"),M)for(let W in M){let Te=M[W];for(let fe of Te)p.unpathedErrors.add(fe)}let G=y==null?void 0:y.__leave;return G!=null?G(v):v}function VU(e,t,n,r,i){if(r==null){e[t]=n;return}let a=r[i];if(a==null){e[t]=n;return}let o=a(n);if(o===void 0){delete e[t];return}e[t]=o}function ute(e,t,n,r,i,a,o,c,l,p){return e.map(f=>jU(f,t,n,r,i,a,o,c+1,l,p))}function jU(e,t,n,r,i,a,o,c,l=[],p){if(e==null)return e;let f=(0,uu.getNullableType)(t);if((0,uu.isListType)(f))return ute(e,f.ofType,n,r,i,a,o,c,l,p);if((0,uu.isAbstractType)(f)){let v=r.getType(e.__typename),{fields:P}=(0,mS.collectSubFields)(r,i,a,v,n);return TS(e,v,P,r,i,a,o,c,l,p)}else if((0,uu.isObjectType)(f)){let{fields:v}=(0,mS.collectSubFields)(r,i,a,f,n);return TS(e,f,v,r,i,a,o,c,l,p)}let y=o==null?void 0:o[f.name];if(y==null)return e;let g=y(e);return g===void 0?e:g}function cte(e,t){var i;let n=Object.create(null),r=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){r.add(a);continue}o in n?n[o].push(a):n[o]=[a]}return{errorMap:n,unpathedErrors:r}}function lte(e,t,n,r=[],i){for(let a of r){let o={type:e,fieldName:t,pathIndex:n},c=i.segmentInfoMap.get(a);c==null?i.segmentInfoMap.set(a,[o]):c.push(o)}}});var GU=w(wT=>{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.valueMatchesCriteria=void 0;function ES(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>ES(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>ES(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}wT.valueMatchesCriteria=ES});var $U=w(LT=>{"use strict";m();T();N();Object.defineProperty(LT,"__esModule",{value:!0});LT.isAsyncIterable=void 0;function dte(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}LT.isAsyncIterable=dte});var QU=w(CT=>{"use strict";m();T();N();Object.defineProperty(CT,"__esModule",{value:!0});CT.isDocumentNode=void 0;var pte=Ae();function fte(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===pte.Kind.DOCUMENT}CT.isDocumentNode=fte});var YU=w(()=>{"use strict";m();T();N()});var WU=w(lu=>{"use strict";m();T();N();Object.defineProperty(lu,"__esModule",{value:!0});lu.withCancel=lu.getAsyncIterableWithCancel=lu.getAsyncIteratorWithCancel=void 0;var mte=gl();function Nte(e){return vi(this,null,function*(){return{value:e,done:!0}})}var JU=(0,mte.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function HU(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let a=Reflect.get(n,r,i);if(r==="return"){let o=a||Nte;return function(l){return vi(this,null,function*(){let p=yield t(l);return Reflect.apply(o,n,[p])})}}else if(typeof a=="function")return JU(n,a);return a}})}lu.getAsyncIteratorWithCancel=HU;function zU(e,t){return new Proxy(e,{get(n,r,i){let a=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let c=Reflect.apply(a,n,[]);return HU(c,t)}:typeof a=="function"?JU(n,a):a}})}lu.getAsyncIterableWithCancel=zU;lu.withCancel=zU});var XU=w(BT=>{"use strict";m();T();N();Object.defineProperty(BT,"__esModule",{value:!0});BT.fixSchemaAst=void 0;var Tte=Ae(),Ete=jv();function hte(e,t){let n=(0,Ete.getDocumentNodeFromSchema)(e);return(0,Tte.buildASTSchema)(n,x({},t||{}))}function yte(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=hte(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}BT.fixSchemaAst=yte});var ZU=w(UT=>{"use strict";m();T();N();Object.defineProperty(UT,"__esModule",{value:!0});UT.extractExtensionsFromSchema=void 0;var ys=sc(),Ite=bl();function sa(e={}){let t=x({},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 gte(e){let t={schemaExtensions:sa(e.extensions),types:{}};return(0,Ite.mapSchema)(e,{[ys.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:sa(n.extensions)},n),[ys.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:sa(n.extensions)},n),[ys.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:sa(n.extensions)};let a=n.args;if(a!=null)for(let o in a)t.types[i].fields[r].arguments[o]=sa(a[o].extensions);return n},[ys.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:sa(n.extensions)},n),[ys.MapperKind.ENUM_VALUE]:(n,r,i,a)=>(t.types[r].values[a]=sa(n.extensions),n),[ys.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:sa(n.extensions)},n),[ys.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:sa(n.extensions)},n),[ys.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:sa(n.extensions)},n),[ys.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:sa(n.extensions)},n)}),t}UT.extractExtensionsFromSchema=gte});var ek=w(du=>{"use strict";m();T();N();Object.defineProperty(du,"__esModule",{value:!0});du.printPathArray=du.pathToArray=du.addPath=void 0;function _te(e,t,n){return{prev:e,key:t,typename:n}}du.addPath=_te;function vte(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}du.pathToArray=vte;function Ste(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}du.printPathArray=Ste});var tk=w(hS=>{"use strict";m();T();N();function kT(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";m();T();N();Object.defineProperty(MT,"__esModule",{value:!0});MT.mergeIncrementalResult=void 0;var yS=tk();function nk({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,yS.dset)(t,n,i),n[n.length-1]++;e.data&&(0,yS.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,yS.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{nk({incrementalResult:i,executionResult:t})})}MT.mergeIncrementalResult=nk});var ak=w(Ll=>{"use strict";m();T();N();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.debugTimerEnd=Ll.debugTimerStart=void 0;var ik=new Set;function Dte(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(ik.add(e),console.time(e))}Ll.debugTimerStart=Dte;function bte(e){ik.has(e)&&console.timeEnd(e)}Ll.debugTimerEnd=bte});var oa=w($e=>{"use strict";m();T();N();Object.defineProperty($e,"__esModule",{value:!0});$e.inspect=void 0;var Ye=(pB(),sm(dB));Ye.__exportStar(fB(),$e);Ye.__exportStar(yp(),$e);Ye.__exportStar(Pv(),$e);Ye.__exportStar(Fv(),$e);Ye.__exportStar(vB(),$e);Ye.__exportStar(Lv(),$e);Ye.__exportStar(jv(),$e);Ye.__exportStar(Fv(),$e);Ye.__exportStar(qB(),$e);Ye.__exportStar(VB(),$e);Ye.__exportStar(eU(),$e);Ye.__exportStar(uU(),$e);Ye.__exportStar(lU(),$e);Ye.__exportStar(EU(),$e);Ye.__exportStar(yU(),$e);Ye.__exportStar(IU(),$e);Ye.__exportStar(_U(),$e);Ye.__exportStar(vU(),$e);Ye.__exportStar(bl(),$e);Ye.__exportStar(aS(),$e);Ye.__exportStar(cT(),$e);Ye.__exportStar(OU(),$e);Ye.__exportStar(bU(),$e);Ye.__exportStar(sc(),$e);Ye.__exportStar(Wv(),$e);Ye.__exportStar(AU(),$e);Ye.__exportStar(RU(),$e);Ye.__exportStar(PU(),$e);Ye.__exportStar(FU(),$e);Ye.__exportStar(Xv(),$e);Ye.__exportStar(CU(),$e);Ye.__exportStar(BU(),$e);Ye.__exportStar(UU(),$e);Ye.__exportStar(GN(),$e);Ye.__exportStar(kU(),$e);Ye.__exportStar(KU(),$e);Ye.__exportStar(Rv(),$e);Ye.__exportStar(GU(),$e);Ye.__exportStar($U(),$e);Ye.__exportStar(QU(),$e);Ye.__exportStar(XN(),$e);Ye.__exportStar(YU(),$e);Ye.__exportStar(WU(),$e);Ye.__exportStar(vp(),$e);Ye.__exportStar(Gv(),$e);Ye.__exportStar(pS(),$e);var Ate=Ip();Object.defineProperty($e,"inspect",{enumerable:!0,get:function(){return Ate.inspect}});Ye.__exportStar(gl(),$e);Ye.__exportStar(XU(),$e);Ye.__exportStar(fS(),$e);Ye.__exportStar(ZU(),$e);Ye.__exportStar(ek(),$e);Ye.__exportStar(gp(),$e);Ye.__exportStar(cS(),$e);Ye.__exportStar(rk(),$e);Ye.__exportStar(ak(),$e)});var ok=w(xT=>{"use strict";m();T();N();Object.defineProperty(xT,"__esModule",{value:!0});xT.mergeResolvers=void 0;var Rte=oa();function sk(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=sk(i)),typeof i=="object"&&i&&n.push(i);let r=(0,Rte.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete r[a]:r[a]&&delete r[a][o]}return r}xT.mergeResolvers=sk});var IS=w(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.mergeArguments=void 0;var uk=oa();function Pte(e,t,n){let r=Fte([...t,...e].filter(uk.isSome),n);return n&&n.sort&&r.sort(uk.compareNodes),r}qT.mergeArguments=Pte;function Fte(e,t){return e.reduce((n,r)=>{let i=n.findIndex(a=>a.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var qi=w(Cl=>{"use strict";m();T();N();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.mergeDirective=Cl.mergeDirectives=void 0;var ck=Ae(),wte=oa();function Lte(e,t){return!!e.find(n=>n.name.value===t.name.value)}function lk(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function Cte(e,t){return t.some(({value:n})=>n===e.value)}function dk(e,t){let n=[...t];for(let r of e){let i=n.findIndex(a=>a.name.value===r.name.value);if(i>-1){let a=n[i];if(a.value.kind==="ListValue"){let o=a.value.values,c=r.value.values;a.value.values=xte(o,c,(l,p)=>{let f=l.value;return!f||!p.some(y=>y.value===f)})}else a.value=r.value}else n.push(r)}return n}function Bte(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!lk(n,t)){let o=i[a];return n.arguments=dk(n.arguments,o.arguments),null}return n}).filter(wte.isSome)}function Ute(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=Bte([...a],r);for(let l of o)if(Lte(c,l)&&!lk(l,r)){let p=c.findIndex(y=>y.name.value===l.name.value),f=c[p];c[p].arguments=dk(l.arguments||[],f.arguments||[])}else c.push(l);return c}Cl.mergeDirectives=Ute;function kte(e,t){let n=(0,ck.print)(Y(x({},e),{description:void 0})),r=(0,ck.print)(Y(x({},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}". +`+o,block:!0})}):Y(x({},i),{description:{kind:ki.Kind.STRING,value:o,block:c}})}}}})}ou.transformCommentsToDescriptions=XB;function ZB(e){return(0,ki.isTypeSystemDefinitionNode)(e)||e.kind===ki.Kind.FIELD_DEFINITION||e.kind===ki.Kind.INPUT_VALUE_DEFINITION||e.kind===ki.Kind.ENUM_VALUE_DEFINITION}ou.isDescribable=ZB});var uU=w(iT=>{"use strict";m();T();N();Object.defineProperty(iT,"__esModule",{value:!0});iT.buildOperationNodeForField=void 0;var ct=Ae(),iU=vp(),Yv=[],rT=new Map;function aU(e){Yv.push(e)}function tU(){Yv=[]}function nU(){rT=new Map}function XZ({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){tU(),nU();let p=(0,iU.getRootTypeNames)(e),f=ZZ({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:p});return f.variableDefinitions=[...Yv],tU(),nU(),f}iT.buildOperationNodeForField=XZ;function ZZ({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:p}){let f=(0,iU.getDefinedRootType)(e,n),y=f.getFields()[t],g=`${t}_${n}`;if(y.args)for(let v of y.args){let P=v.name;(!c||c.includes(P))&&aU(sU(v,P))}return{kind:ct.Kind.OPERATION_DEFINITION,operation:n,name:{kind:ct.Kind.NAME,value:g},variableDefinitions:[],selectionSet:{kind:ct.Kind.SELECTION_SET,selections:[oU({type:f,field:y,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:c,selectedFields:l,rootTypeNames:p})]}}}function Qv({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v}){if(!(typeof g=="boolean"&&f>c)){if((0,ct.isUnionType)(t)){let P=t.getTypes();return{kind:ct.Kind.SELECTION_SET,selections:P.filter(k=>!$v([...a,k],{depth:l})).map(k=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:k.name}},selectionSet:Qv({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v})})).filter(k=>{var K,G;return((G=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:G.length)>0})}}if((0,ct.isInterfaceType)(t)){let P=Object.values(p.getTypeMap()).filter(k=>(0,ct.isObjectType)(k)&&k.getInterfaces().includes(t));return{kind:ct.Kind.SELECTION_SET,selections:P.filter(k=>!$v([...a,k],{depth:l})).map(k=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:k.name}},selectionSet:Qv({parent:t,type:k,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v})})).filter(k=>{var K,G;return((G=(K=k==null?void 0:k.selectionSet)==null?void 0:K.selections)==null?void 0:G.length)>0})}}if((0,ct.isObjectType)(t)&&!v.has(t.name)){let P=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),k=n.includes(t.name);if(!r&&k&&!P)return{kind:ct.Kind.SELECTION_SET,selections:[{kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:"id"}}]};let K=t.getFields();return{kind:ct.Kind.SELECTION_SET,selections:Object.keys(K).filter(G=>!$v([...a,(0,ct.getNamedType)(K[G].type)],{depth:l})).map(G=>{let Z=typeof g=="object"?g[G]:!0;return Z?oU({type:t,field:K[G],models:n,path:[...i,G],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:Z,rootTypeNames:v}):null}).filter(G=>{var Z,W;return G==null?!1:"selectionSet"in G?!!((W=(Z=G.selectionSet)==null?void 0:Z.selections)!=null&&W.length):!0})}}}}function sU(e,t){function n(r){return(0,ct.isListType)(r)?{kind:ct.Kind.LIST_TYPE,type:n(r.ofType)}:(0,ct.isNonNullType)(r)?{kind:ct.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:r.name}}}return{kind:ct.Kind.VARIABLE_DEFINITION,variable:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:t||e.name}},type:n(e.type)}}function rU(e,t){return[...t,e].join("_")}function oU({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f,argNames:y,selectedFields:g,rootTypeNames:v}){let P=(0,ct.getNamedType)(t.type),k=[],K=!1;if(t.args&&t.args.length&&(k=t.args.map(Te=>{let fe=rU(Te.name,i);return y&&!y.includes(fe)?((0,ct.isNonNullType)(Te.type)&&(K=!0),null):(r||aU(sU(Te,fe)),{kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:Te.name},value:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:rU(Te.name,i)}}})}).filter(Boolean)),K)return null;let G=[...i,t.name],Z=G.join("."),W=t.name;return rT.has(Z)&&rT.get(Z)!==t.type.toString()&&(W+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),rT.set(Z,t.type.toString()),!(0,ct.isScalarType)(P)&&!(0,ct.isEnumType)(P)?Y(x({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},W!==t.name&&{alias:{kind:ct.Kind.NAME,value:W}}),{selectionSet:Qv({parent:e,type:P,models:n,firstCall:r,path:G,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:p,depth:f+1,argNames:y,selectedFields:g,rootTypeNames:v})||void 0,arguments:k}):Y(x({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},W!==t.name&&{alias:{kind:ct.Kind.NAME,value:W}}),{arguments:k})}function $v(e,t={depth:1}){let n=e[e.length-1];return(0,ct.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var lU=w(aT=>{"use strict";m();T();N();Object.defineProperty(aT,"__esModule",{value:!0});aT.DirectiveLocation=void 0;var cU;(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"})(cU||(aT.DirectiveLocation=cU={}))});var sc=w(sT=>{"use strict";m();T();N();Object.defineProperty(sT,"__esModule",{value:!0});sT.MapperKind=void 0;var dU;(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"})(dU||(sT.MapperKind=dU={}))});var Jv=w(oT=>{"use strict";m();T();N();Object.defineProperty(oT,"__esModule",{value:!0});oT.getObjectTypeFromTypeMap=void 0;var eee=Ae();function tee(e,t){if(t){let n=e[t.name];if((0,eee.isObjectType)(n))return n}}oT.getObjectTypeFromTypeMap=tee});var Wv=w(ka=>{"use strict";m();T();N();Object.defineProperty(ka,"__esModule",{value:!0});ka.getBuiltInForStub=ka.isNamedStub=ka.createStub=ka.createNamedStub=void 0;var lr=Ae();function Hv(e,t){let n;return t==="object"?n=lr.GraphQLObjectType:t==="interface"?n=lr.GraphQLInterfaceType:n=lr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:lr.GraphQLString}}})}ka.createNamedStub=Hv;function zv(e,t){switch(e.kind){case lr.Kind.LIST_TYPE:return new lr.GraphQLList(zv(e.type,t));case lr.Kind.NON_NULL_TYPE:return new lr.GraphQLNonNull(zv(e.type,t));default:return t==="output"?Hv(e.name.value,"object"):Hv(e.name.value,"input")}}ka.createStub=zv;function nee(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}ka.isNamedStub=nee;function ree(e){switch(e.name){case lr.GraphQLInt.name:return lr.GraphQLInt;case lr.GraphQLFloat.name:return lr.GraphQLFloat;case lr.GraphQLString.name:return lr.GraphQLString;case lr.GraphQLBoolean.name:return lr.GraphQLBoolean;case lr.GraphQLID.name:return lr.GraphQLID;default:return e}}ka.getBuiltInForStub=ree});var cT=w(uT=>{"use strict";m();T();N();Object.defineProperty(uT,"__esModule",{value:!0});uT.rewireTypes=void 0;var Qn=Ae(),pU=Wv();function iee(e,t){let n=Object.create(null);for(let g in e)n[g]=e[g];let r=Object.create(null);for(let g in n){let v=n[g];if(v==null||g.startsWith("__"))continue;let P=v.name;if(!P.startsWith("__")){if(r[P]!=null){console.warn(`Duplicate schema type name ${P} found; keeping the existing one found in the schema`);continue}r[P]=v}}for(let g in r)r[g]=c(r[g]);let i=t.map(g=>a(g));return{typeMap:r,directives:i};function a(g){if((0,Qn.isSpecifiedDirective)(g))return g;let v=g.toConfig();return v.args=o(v.args),new Qn.GraphQLDirective(v)}function o(g){let v={};for(let P in g){let k=g[P],K=y(k.type);K!=null&&(k.type=K,v[P]=k)}return v}function c(g){if((0,Qn.isObjectType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>l(v.fields),interfaces:()=>f(v.interfaces)});return new Qn.GraphQLObjectType(P)}else if((0,Qn.isInterfaceType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>l(v.fields)});return"interfaces"in P&&(P.interfaces=()=>f(v.interfaces)),new Qn.GraphQLInterfaceType(P)}else if((0,Qn.isUnionType)(g)){let v=g.toConfig(),P=Y(x({},v),{types:()=>f(v.types)});return new Qn.GraphQLUnionType(P)}else if((0,Qn.isInputObjectType)(g)){let v=g.toConfig(),P=Y(x({},v),{fields:()=>p(v.fields)});return new Qn.GraphQLInputObjectType(P)}else if((0,Qn.isEnumType)(g)){let v=g.toConfig();return new Qn.GraphQLEnumType(v)}else if((0,Qn.isScalarType)(g)){if((0,Qn.isSpecifiedScalarType)(g))return g;let v=g.toConfig();return new Qn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${g}`)}function l(g){let v={};for(let P in g){let k=g[P],K=y(k.type);K!=null&&k.args&&(k.type=K,k.args=o(k.args),v[P]=k)}return v}function p(g){let v={};for(let P in g){let k=g[P],K=y(k.type);K!=null&&(k.type=K,v[P]=k)}return v}function f(g){let v=[];for(let P of g){let k=y(P);k!=null&&v.push(k)}return v}function y(g){if((0,Qn.isListType)(g)){let v=y(g.ofType);return v!=null?new Qn.GraphQLList(v):null}else if((0,Qn.isNonNullType)(g)){let v=y(g.ofType);return v!=null?new Qn.GraphQLNonNull(v):null}else if((0,Qn.isNamedType)(g)){let v=n[g.name];return v===void 0&&(v=(0,pU.isNamedStub)(g)?(0,pU.getBuiltInForStub)(g):c(g),r[v.name]=n[g.name]=v),v!=null?r[v.name]:null}return null}}uT.rewireTypes=iee});var Xv=w(Ma=>{"use strict";m();T();N();Object.defineProperty(Ma,"__esModule",{value:!0});Ma.parseInputValueLiteral=Ma.parseInputValue=Ma.serializeInputValue=Ma.transformInputValue=void 0;var lT=Ae(),aee=yp();function Sl(e,t,n=null,r=null){if(t==null)return t;let i=(0,lT.getNullableType)(e);if((0,lT.isLeafType)(i))return n!=null?n(i,t):t;if((0,lT.isListType)(i))return(0,aee.asArray)(t).map(a=>Sl(i.ofType,a,n,r));if((0,lT.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Sl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}Ma.transformInputValue=Sl;function see(e,t){return Sl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}Ma.serializeInputValue=see;function oee(e,t){return Sl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}Ma.parseInputValue=oee;function uee(e,t){return Sl(e,t,(n,r)=>n.parseLiteral(r,{}))}Ma.parseInputValueLiteral=uee});var bl=w(Dl=>{"use strict";m();T();N();Object.defineProperty(Dl,"__esModule",{value:!0});Dl.correctASTNodes=Dl.mapSchema=void 0;var nt=Ae(),Ol=Jv(),Dt=sc(),cee=cT(),fU=Xv();function lee(e,t={}){let n=TU(NU(Zv(mU(dee(Zv(mU(e.getTypeMap(),e,fU.serializeInputValue),e,t,c=>(0,nt.isLeafType)(c)),e,t),e,fU.parseInputValue),e,t,c=>!(0,nt.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=pee(r,e,t),{typeMap:a,directives:o}=(0,cee.rewireTypes)(n,i);return new nt.GraphQLSchema(Y(x({},e.toConfig()),{query:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,Ol.getObjectTypeFromTypeMap)(a,(0,Ol.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}Dl.mapSchema=lee;function Zv(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let c=mee(t,n,a);if(c==null){i[a]=o;continue}let l=c(o,t);if(l===void 0){i[a]=o;continue}i[a]=l}return i}function dee(e,t,n){let r=yee(n);return r?Zv(e,t,{[Dt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let p=o[l],f=r(p,i.name,t,l);if(f===void 0)c[l]=p;else if(Array.isArray(f)){let[y,g]=f;c[y]=g===void 0?p:g}else f!==null&&(c[l]=f)}return Rp(new nt.GraphQLEnumType(Y(x({},a),{values:c})))}},i=>(0,nt.isEnumType)(i)):e}function mU(e,t,n){let r=TU(e,t,{[Dt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=dT(e,i.type);if(a!=null)return Y(x({},i),{defaultValue:n(a,i.defaultValue)})}});return NU(r,t,{[Dt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=dT(r,i.type);if(a!=null)return Y(x({},i),{defaultValue:n(a,i.defaultValue)})}})}function dT(e,t){if((0,nt.isListType)(t)){let n=dT(e,t.ofType);return n!=null?new nt.GraphQLList(n):null}else if((0,nt.isNonNullType)(t)){let n=dT(e,t.ofType);return n!=null?new nt.GraphQLNonNull(n):null}else if((0,nt.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function NU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,nt.isObjectType)(a)&&!(0,nt.isInterfaceType)(a)&&!(0,nt.isInputObjectType)(a)){r[i]=a;continue}let o=Tee(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f],g=o(y,f,i,t);if(g===void 0)p[f]=y;else if(Array.isArray(g)){let[v,P]=g;P.astNode!=null&&(P.astNode=Y(x({},P.astNode),{name:Y(x({},P.astNode.name),{value:v})})),p[v]=P===void 0?y:P}else g!==null&&(p[f]=g)}(0,nt.isObjectType)(a)?r[i]=Rp(new nt.GraphQLObjectType(Y(x({},c),{fields:p}))):(0,nt.isInterfaceType)(a)?r[i]=Rp(new nt.GraphQLInterfaceType(Y(x({},c),{fields:p}))):r[i]=Rp(new nt.GraphQLInputObjectType(Y(x({},c),{fields:p})))}return r}function TU(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,nt.isObjectType)(a)&&!(0,nt.isInterfaceType)(a)){r[i]=a;continue}let o=Eee(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f],g=y.args;if(g==null){p[f]=y;continue}let v=Object.keys(g);if(!v.length){p[f]=y;continue}let P={};for(let k of v){let K=g[k],G=o(K,f,i,t);if(G===void 0)P[k]=K;else if(Array.isArray(G)){let[Z,W]=G;P[Z]=W}else G!==null&&(P[k]=G)}p[f]=Y(x({},y),{args:P})}(0,nt.isObjectType)(a)?r[i]=new nt.GraphQLObjectType(Y(x({},c),{fields:p})):(0,nt.isInterfaceType)(a)?r[i]=new nt.GraphQLInterfaceType(Y(x({},c),{fields:p})):r[i]=new nt.GraphQLInputObjectType(Y(x({},c),{fields:p}))}return r}function pee(e,t,n){let r=hee(n);if(r==null)return e.slice();let i=[];for(let a of e){let o=r(a,t);o===void 0?i.push(a):o!==null&&i.push(o)}return i}function fee(e,t){var i,a,o;let n=e.getType(t),r=[Dt.MapperKind.TYPE];return(0,nt.isObjectType)(n)?(r.push(Dt.MapperKind.COMPOSITE_TYPE,Dt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Dt.MapperKind.ROOT_OBJECT,Dt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Dt.MapperKind.ROOT_OBJECT,Dt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Dt.MapperKind.ROOT_OBJECT,Dt.MapperKind.SUBSCRIPTION)):(0,nt.isInputObjectType)(n)?r.push(Dt.MapperKind.INPUT_OBJECT_TYPE):(0,nt.isInterfaceType)(n)?r.push(Dt.MapperKind.COMPOSITE_TYPE,Dt.MapperKind.ABSTRACT_TYPE,Dt.MapperKind.INTERFACE_TYPE):(0,nt.isUnionType)(n)?r.push(Dt.MapperKind.COMPOSITE_TYPE,Dt.MapperKind.ABSTRACT_TYPE,Dt.MapperKind.UNION_TYPE):(0,nt.isEnumType)(n)?r.push(Dt.MapperKind.ENUM_TYPE):(0,nt.isScalarType)(n)&&r.push(Dt.MapperKind.SCALAR_TYPE),r}function mee(e,t,n){let r=fee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Nee(e,t){var i,a,o;let n=e.getType(t),r=[Dt.MapperKind.FIELD];return(0,nt.isObjectType)(n)?(r.push(Dt.MapperKind.COMPOSITE_FIELD,Dt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Dt.MapperKind.ROOT_FIELD,Dt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Dt.MapperKind.ROOT_FIELD,Dt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Dt.MapperKind.ROOT_FIELD,Dt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,nt.isInterfaceType)(n)?r.push(Dt.MapperKind.COMPOSITE_FIELD,Dt.MapperKind.INTERFACE_FIELD):(0,nt.isInputObjectType)(n)&&r.push(Dt.MapperKind.INPUT_OBJECT_FIELD),r}function Tee(e,t,n){let r=Nee(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Eee(e){let t=e[Dt.MapperKind.ARGUMENT];return t!=null?t:null}function hee(e){let t=e[Dt.MapperKind.DIRECTIVE];return t!=null?t:null}function yee(e){let t=e[Dt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Rp(e){if((0,nt.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=Y(x({},t.astNode),{kind:nt.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLObjectType(t)}else if((0,nt.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=Y(x({},t.astNode),{kind:nt.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLInterfaceType(t)}else if((0,nt.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=Y(x({},t.astNode),{kind:nt.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{kind:nt.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new nt.GraphQLInputObjectType(t)}else if((0,nt.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=Y(x({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Y(x({},n),{values:void 0}))),new nt.GraphQLEnumType(t)}else return e}Dl.correctASTNodes=Rp});var EU=w(fT=>{"use strict";m();T();N();Object.defineProperty(fT,"__esModule",{value:!0});fT.filterSchema=void 0;var pT=Ae(),hs=sc(),Iee=bl();function gee({schema:e,typeFilter:t=()=>!0,fieldFilter:n=void 0,rootFieldFilter:r=void 0,objectFieldFilter:i=void 0,interfaceFieldFilter:a=void 0,inputObjectFieldFilter:o=void 0,argumentFilter:c=void 0}){return(0,Iee.mapSchema)(e,{[hs.MapperKind.QUERY]:p=>eS(p,"Query",r,c),[hs.MapperKind.MUTATION]:p=>eS(p,"Mutation",r,c),[hs.MapperKind.SUBSCRIPTION]:p=>eS(p,"Subscription",r,c),[hs.MapperKind.OBJECT_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLObjectType,p,i||n,c):null,[hs.MapperKind.INTERFACE_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLInterfaceType,p,a||n,c):null,[hs.MapperKind.INPUT_OBJECT_TYPE]:p=>t(p.name,p)?tS(pT.GraphQLInputObjectType,p,o||n):null,[hs.MapperKind.UNION_TYPE]:p=>t(p.name,p)?void 0:null,[hs.MapperKind.ENUM_TYPE]:p=>t(p.name,p)?void 0:null,[hs.MapperKind.SCALAR_TYPE]:p=>t(p.name,p)?void 0:null})}fT.filterSchema=gee;function eS(e,t,n,r){if(n||r){let i=e.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t,a,i.fields[a]))delete i.fields[a];else if(r&&o.args)for(let c in o.args)r(t,a,c,o.args[c])||delete o.args[c]}return new pT.GraphQLObjectType(i)}return e}function tS(e,t,n,r){if(n||r){let i=t.toConfig();for(let a in i.fields){let o=i.fields[a];if(n&&!n(t.name,a,i.fields[a]))delete i.fields[a];else if(r&&"args"in o)for(let c in o.args)r(t.name,a,c,o.args[c])||delete o.args[c]}return new e(i)}}});var yU=w(Al=>{"use strict";m();T();N();Object.defineProperty(Al,"__esModule",{value:!0});Al.healTypes=Al.healSchema=void 0;var xa=Ae();function _ee(e){return hU(e.getTypeMap(),e.getDirectives()),e}Al.healSchema=_ee;function hU(e,t){let n=Object.create(null);for(let p in e){let f=e[p];if(f==null||p.startsWith("__"))continue;let y=f.name;if(!y.startsWith("__")){if(n[y]!=null){console.warn(`Duplicate schema type name ${y} found; keeping the existing one found in the schema`);continue}n[y]=f}}for(let p in n){let f=n[p];e[p]=f}for(let p of t)p.args=p.args.filter(f=>(f.type=l(f.type),f.type!==null));for(let p in e){let f=e[p];!p.startsWith("__")&&p in n&&f!=null&&r(f)}for(let p in e)!p.startsWith("__")&&!(p in n)&&delete e[p];function r(p){if((0,xa.isObjectType)(p)){i(p),a(p);return}else if((0,xa.isInterfaceType)(p)){i(p),"getInterfaces"in p&&a(p);return}else if((0,xa.isUnionType)(p)){c(p);return}else if((0,xa.isInputObjectType)(p)){o(p);return}else if((0,xa.isLeafType)(p))return;throw new Error(`Unexpected schema type: ${p}`)}function i(p){let f=p.getFields();for(let[y,g]of Object.entries(f))g.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),g.type=l(g.type),g.type===null&&delete f[y]}function a(p){if("getInterfaces"in p){let f=p.getInterfaces();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}}function o(p){let f=p.getFields();for(let[y,g]of Object.entries(f))g.type=l(g.type),g.type===null&&delete f[y]}function c(p){let f=p.getTypes();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}function l(p){if((0,xa.isListType)(p)){let f=l(p.ofType);return f!=null?new xa.GraphQLList(f):null}else if((0,xa.isNonNullType)(p)){let f=l(p.ofType);return f!=null?new xa.GraphQLNonNull(f):null}else if((0,xa.isNamedType)(p)){let f=e[p.name];if(f&&p!==f)return f}return p}}Al.healTypes=hU});var IU=w(mT=>{"use strict";m();T();N();Object.defineProperty(mT,"__esModule",{value:!0});mT.getResolversFromSchema=void 0;var oc=Ae();function vee(e,t){var i,a;let n=Object.create(null),r=e.getTypeMap();for(let o in r)if(!o.startsWith("__")){let c=r[o];if((0,oc.isScalarType)(c)){if(!(0,oc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new oc.GraphQLScalarType(l)}}else if((0,oc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let p of l)n[o][p.name]=p.value}else if((0,oc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,oc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,oc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let p in l){let f=l[p];if(f.subscribe!=null&&(n[o][p]=n[o][p]||{},n[o][p].subscribe=f.subscribe),f.resolve!=null&&((i=f.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=f.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][p]=n[o][p]||{},n[o][p].resolve=f.resolve}}}}return n}mT.getResolversFromSchema=vee});var _U=w(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.forEachField=void 0;var gU=Ae();function See(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,gU.getNamedType)(i).name.startsWith("__")&&(0,gU.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}NT.forEachField=See});var vU=w(TT=>{"use strict";m();T();N();Object.defineProperty(TT,"__esModule",{value:!0});TT.forEachDefaultValue=void 0;var nS=Ae();function Oee(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,nS.getNamedType)(i).name.startsWith("__")){if((0,nS.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];for(let l of c.args)l.defaultValue=t(l.type,l.defaultValue)}}else if((0,nS.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}TT.forEachDefaultValue=Oee});var aS=w(ET=>{"use strict";m();T();N();Object.defineProperty(ET,"__esModule",{value:!0});ET.addTypes=void 0;var rS=Ae(),iS=Jv(),Dee=cT();function bee(e,t){let n=e.toConfig(),r={};for(let c of n.types)r[c.name]=c;let i={};for(let c of n.directives)i[c.name]=c;for(let c of t)(0,rS.isNamedType)(c)?r[c.name]=c:(0,rS.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,Dee.rewireTypes)(r,Object.values(i));return new rS.GraphQLSchema(Y(x({},n),{query:(0,iS.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,iS.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,iS.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}ET.addTypes=bee});var OU=w(yT=>{"use strict";m();T();N();Object.defineProperty(yT,"__esModule",{value:!0});yT.pruneSchema=void 0;var Zn=Ae(),Aee=Lv(),Ree=sc(),Pee=bl(),Fee=vp();function wee(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let p=Lee(l);if(i){let f=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let g=l.getType(y);g&&i(g)&&f.push(y)}p=SU(f,l,p)}c=[],l=(0,Pee.mapSchema)(l,{[Ree.MapperKind.TYPE]:f=>!p.has(f.name)&&!(0,Zn.isSpecifiedScalarType)(f)?((0,Zn.isUnionType)(f)||(0,Zn.isInputObjectType)(f)||(0,Zn.isInterfaceType)(f)||(0,Zn.isObjectType)(f)||(0,Zn.isScalarType)(f))&&(o||(0,Zn.isUnionType)(f)&&r&&!Object.keys(f.getTypes()).length||((0,Zn.isInputObjectType)(f)||(0,Zn.isInterfaceType)(f)||(0,Zn.isObjectType)(f))&&n&&!Object.keys(f.getFields()).length||(0,Zn.isInterfaceType)(f)&&a)?f:(c.push(f.name),p.delete(f.name),null):f})}while(c.length);return l}yT.pruneSchema=wee;function Lee(e){let t=[];for(let n of(0,Fee.getRootTypes)(e))t.push(n.name);return SU(t,e)}function SU(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 a=t.getType(i);if(a){if((0,Zn.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,Zn.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,Aee.getImplementingTypes)(a.name,t)),r[i]=!1),(0,Zn.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>o.astNode?hT(t,o.astNode):[])),"getInterfaces"in a&&e.push(...a.getInterfaces().map(o=>o.name)),"getFields"in a){let o=a.getFields(),c=Object.entries(o);if(!c.length)continue;for(let[,l]of c){(0,Zn.isObjectType)(a)&&e.push(...l.args.flatMap(f=>{let y=[(0,Zn.getNamedType)(f.type).name];return f.astNode&&y.push(...hT(t,f.astNode)),y}));let p=(0,Zn.getNamedType)(l.type);e.push(p.name),l.astNode&&e.push(...hT(t,l.astNode)),(0,Zn.isInterfaceType)(p)&&!(p.name in r)&&(r[p.name]=!0)}}a.astNode&&e.push(...hT(t,a.astNode)),n.add(i)}}return n}function hT(e,t){var n;return((n=t.directives)!=null?n:[]).flatMap(r=>{var i,a;return(a=(i=e.getDirective(r.name.value))==null?void 0:i.args.map(o=>(0,Zn.getNamedType)(o.type).name))!=null?a:[]})}});var bU=w(IT=>{"use strict";m();T();N();Object.defineProperty(IT,"__esModule",{value:!0});IT.mergeDeep=void 0;var Cee=yp();function DU(e,t=!1,n=!1){let r=e[0]||{},i={};t&&Object.setPrototypeOf(i,Object.create(Object.getPrototypeOf(r)));for(let a of e)if(sS(r)&&sS(a)){if(t){let o=Object.getPrototypeOf(i),c=Object.getPrototypeOf(a);if(c)for(let l of Object.getOwnPropertyNames(c)){let p=Object.getOwnPropertyDescriptor(c,l);(0,Cee.isSome)(p)&&Object.defineProperty(o,l,p)}}for(let o in a)sS(a[o])?o in i?i[o]=DU([i[o],a[o]],t,n):Object.assign(i,{[o]:a[o]}):n&&Array.isArray(i[o])?Array.isArray(a[o])?i[o].push(...a[o]):i[o].push(a[o]):Object.assign(i,{[o]:a[o]})}else if(n&&Array.isArray(r))Array.isArray(a)?r.push(...a):r.push(a);else if(n&&Array.isArray(a))return[r,...a];return i}IT.mergeDeep=DU;function sS(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var AU=w(gT=>{"use strict";m();T();N();Object.defineProperty(gT,"__esModule",{value:!0});gT.parseSelectionSet=void 0;var Bee=Ae();function Uee(e,t){return(0,Bee.parse)(e,t).definitions[0].selectionSet}gT.parseSelectionSet=Uee});var RU=w(_T=>{"use strict";m();T();N();Object.defineProperty(_T,"__esModule",{value:!0});_T.getResponseKeyFromInfo=void 0;function kee(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}_T.getResponseKeyFromInfo=kee});var PU=w(qa=>{"use strict";m();T();N();Object.defineProperty(qa,"__esModule",{value:!0});qa.modifyObjectFields=qa.selectObjectFields=qa.removeObjectFields=qa.appendObjectFields=void 0;var vT=Ae(),Mee=aS(),ST=sc(),uc=bl();function xee(e,t,n){return e.getType(t)==null?(0,Mee.addTypes)(e,[new vT.GraphQLObjectType({name:t,fields:n})]):(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:r=>{if(r.name===t){let i=r.toConfig(),a=i.fields,o={};for(let c in a)o[c]=a[c];for(let c in n)o[c]=n[c];return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},i),{fields:o})))}}})}qa.appendObjectFields=xee;function qee(e,t,n){let r={};return[(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let p in c){let f=c[p];n(p,f)?r[p]=f:l[p]=f}return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},o),{fields:l})))}}}),r]}qa.removeObjectFields=qee;function Vee(e,t,n){let r={};return(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:i=>{if(i.name===t){let o=i.toConfig().fields;for(let c in o){let l=o[c];n(c,l)&&(r[c]=l)}}}}),r}qa.selectObjectFields=Vee;function jee(e,t,n,r){let i={};return[(0,uc.mapSchema)(e,{[ST.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,p={};for(let f in l){let y=l[f];n(f,y)?i[f]=y:p[f]=y}for(let f in r){let y=r[f];p[f]=y}return(0,uc.correctASTNodes)(new vT.GraphQLObjectType(Y(x({},c),{fields:p})))}}}),i]}qa.modifyObjectFields=jee});var FU=w(OT=>{"use strict";m();T();N();Object.defineProperty(OT,"__esModule",{value:!0});OT.renameType=void 0;var Mi=Ae();function Kee(e,t){if((0,Mi.isObjectType)(e))return new Mi.GraphQLObjectType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isInterfaceType)(e))return new Mi.GraphQLInterfaceType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isUnionType)(e))return new Mi.GraphQLUnionType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isInputObjectType)(e))return new Mi.GraphQLInputObjectType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isEnumType)(e))return new Mi.GraphQLEnumType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));if((0,Mi.isScalarType)(e))return new Mi.GraphQLScalarType(Y(x({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Y(x({},e.astNode),{name:Y(x({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Y(x({},n),{name:Y(x({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}OT.renameType=Kee});var CU=w(DT=>{"use strict";m();T();N();Object.defineProperty(DT,"__esModule",{value:!0});DT.mapAsyncIterator=void 0;var Gee=gp();function $ee(e,t,n,r){let i,a,o;r&&(o=p=>{let f=r();return(0,Gee.isPromise)(f)?f.then(()=>p):p}),typeof e.return=="function"&&(i=e.return,a=p=>{let f=()=>Promise.reject(p);return i.call(e).then(f,f)});function c(p){return p.done?o?o(p):p:wU(p.value,t).then(LU,a)}let l;if(n){let p=n;l=f=>wU(f,p).then(LU,a)}return{next(){return e.next().then(c,l)},return(){let p=i?i.call(e).then(c,l):Promise.resolve({value:void 0,done:!0});return o?p.then(o):p},throw(p){return typeof e.throw=="function"?e.throw(p).then(c,l):Promise.reject(p).catch(a)},[Symbol.asyncIterator](){return this}}}DT.mapAsyncIterator=$ee;function wU(e,t){return new Promise(n=>n(t(e)))}function LU(e){return{value:e,done:!1}}});var BU=w(Rl=>{"use strict";m();T();N();Object.defineProperty(Rl,"__esModule",{value:!0});Rl.createVariableNameGenerator=Rl.updateArgument=void 0;var cc=Ae(),Qee=Bv();function Yee(e,t,n,r,i,a,o){if(e[r]={kind:cc.Kind.ARGUMENT,name:{kind:cc.Kind.NAME,value:r},value:{kind:cc.Kind.VARIABLE,name:{kind:cc.Kind.NAME,value:i}}},t[i]={kind:cc.Kind.VARIABLE_DEFINITION,variable:{kind:cc.Kind.VARIABLE,name:{kind:cc.Kind.NAME,value:i}},type:(0,Qee.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Rl.updateArgument=Yee;function Jee(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Rl.createVariableNameGenerator=Jee});var UU=w(bT=>{"use strict";m();T();N();Object.defineProperty(bT,"__esModule",{value:!0});bT.implementsAbstractType=void 0;var oS=Ae();function Hee(e,t,n){return n==null||t==null?!1:t===n?!0:(0,oS.isCompositeType)(t)&&(0,oS.isCompositeType)(n)?(0,oS.doTypesOverlap)(e,t,n):!1}bT.implementsAbstractType=Hee});var kU=w(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.observableToAsyncIterable=void 0;function zee(e){let t=[],n=[],r=!0,i=f=>{t.length!==0?t.shift()({value:f,done:!1}):n.push({value:f,done:!1})},a=f=>{t.length!==0?t.shift()({value:{errors:[f]},done:!1}):n.push({value:{errors:[f]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(f=>{if(n.length!==0){let y=n.shift();f(y)}else t.push(f)}),l=e.subscribe({next(f){i(f)},error(f){a(f)},complete(){o()}}),p=()=>{if(r){r=!1,l.unsubscribe();for(let f of t)f({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return p(),Promise.resolve({value:void 0,done:!0})},throw(f){return p(),Promise.reject(f)},[Symbol.asyncIterator](){return this}}}AT.observableToAsyncIterable=zee});var MU=w(RT=>{"use strict";m();T();N();Object.defineProperty(RT,"__esModule",{value:!0});RT.AccumulatorMap=void 0;var uS=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)}};RT.AccumulatorMap=uS});var cS=w(Pl=>{"use strict";m();T();N();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.GraphQLStreamDirective=Pl.GraphQLDeferDirective=void 0;var xi=Ae();Pl.GraphQLDeferDirective=new xi.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[xi.DirectiveLocation.FRAGMENT_SPREAD,xi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new xi.GraphQLNonNull(xi.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:xi.GraphQLString,description:"Unique name"}}});Pl.GraphQLStreamDirective=new xi.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[xi.DirectiveLocation.FIELD],args:{if:{type:new xi.GraphQLNonNull(xi.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:xi.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:xi.GraphQLInt,description:"Number of items to return immediately"}}})});var pS=w(zr=>{"use strict";m();T();N();Object.defineProperty(zr,"__esModule",{value:!0});zr.collectSubFields=zr.getDeferValues=zr.getFieldEntryKey=zr.doesFragmentConditionMatch=zr.shouldIncludeNode=zr.collectFields=void 0;var Va=Ae(),FT=MU(),Wee=cS(),Xee=gl();function Fl(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case Va.Kind.FIELD:{if(!PT(n,l))continue;a.add(xU(l),l);break}case Va.Kind.INLINE_FRAGMENT:{if(!PT(n,l)||!lS(e,l,r))continue;let p=dS(n,l);if(p){let f=new FT.AccumulatorMap;Fl(e,t,n,r,l.selectionSet,f,o,c),o.push({label:p.label,fields:f})}else Fl(e,t,n,r,l.selectionSet,a,o,c);break}case Va.Kind.FRAGMENT_SPREAD:{let p=l.name.value;if(!PT(n,l))continue;let f=dS(n,l);if(c.has(p)&&!f)continue;let y=t[p];if(!y||!lS(e,y,r))continue;if(f||c.add(p),f){let g=new FT.AccumulatorMap;Fl(e,t,n,r,y.selectionSet,g,o,c),o.push({label:f.label,fields:g})}else Fl(e,t,n,r,y.selectionSet,a,o,c);break}}}function Zee(e,t,n,r,i){let a=new FT.AccumulatorMap,o=[];return Fl(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}zr.collectFields=Zee;function PT(e,t){let n=(0,Va.getDirectiveValues)(Va.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Va.getDirectiveValues)(Va.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}zr.shouldIncludeNode=PT;function lS(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Va.typeFromAST)(e,r);return i===n?!0:(0,Va.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}zr.doesFragmentConditionMatch=lS;function xU(e){return e.alias?e.alias.value:e.name.value}zr.getFieldEntryKey=xU;function dS(e,t){let n=(0,Va.getDirectiveValues)(Wee.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}zr.getDeferValues=dS;zr.collectSubFields=(0,Xee.memoize5)(function(t,n,r,i,a){let o=new FT.AccumulatorMap,c=new Set,l=[],p={fields:o,patches:l};for(let f of a)f.selectionSet&&Fl(t,n,r,i,f.selectionSet,o,l,c);return p})});var fS=w(wl=>{"use strict";m();T();N();Object.defineProperty(wl,"__esModule",{value:!0});wl.getOperationASTFromRequest=wl.getOperationASTFromDocument=void 0;var ete=Ae(),tte=gl();function qU(e,t){let n=(0,ete.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}wl.getOperationASTFromDocument=qU;wl.getOperationASTFromRequest=(0,tte.memoize1)(function(t){return qU(t.document,t.operationName)})});var KU=w(cu=>{"use strict";m();T();N();Object.defineProperty(cu,"__esModule",{value:!0});cu.visitResult=cu.visitErrors=cu.visitData=void 0;var uu=Ae(),mS=pS(),nte=fS();function NS(e,t,n){if(Array.isArray(e))return e.map(r=>NS(r,t,n));if(typeof e=="object"){let r=t!=null?t(e):e;if(r!=null)for(let i in r){let a=r[i];Object.defineProperty(r,i,{value:NS(a,t,n)})}return n!=null?n(r):r}return e}cu.visitData=NS;function rte(e,t){return e.map(n=>t(n))}cu.visitErrors=rte;function ite(e,t,n,r,i){let a=t.document.definitions.reduce((g,v)=>(v.kind===uu.Kind.FRAGMENT_DEFINITION&&(g[v.name.value]=v),g),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,p=e.errors,f=p!=null&&i!=null,y=(0,nte.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=ote(l,y,n,a,o,r,f?p:void 0,c)),p!=null&&i&&(e.errors=ate(p,i,c)),e}cu.visitResult=ite;function ate(e,t,n){let r=n.segmentInfoMap,i=n.unpathedErrors,a=t.__unpathed;return e.map(o=>{let c=r.get(o),l=c==null?o:c.reduceRight((p,f)=>{let y=f.type.name,g=t[y];if(g==null)return p;let v=g[f.fieldName];return v==null?p:v(p,f.pathIndex)},o);return a&&i.has(o)?a(l):l})}function ste(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function ote(e,t,n,r,i,a,o,c){let l=ste(n,t),{fields:p}=(0,mS.collectFields)(n,r,i,l,t.selectionSet);return TS(e,l,p,n,r,i,a,0,o,c)}function TS(e,t,n,r,i,a,o,c,l,p){var Z;let f=t.getFields(),y=o==null?void 0:o[t.name],g=y==null?void 0:y.__enter,v=g!=null?g(e):e,P,k=null;if(l!=null){P=cte(l,c),k=P.errorMap;for(let W of P.unpathedErrors)p.unpathedErrors.add(W)}for(let[W,Te]of n){let fe=Te[0].name.value,we=(Z=f[fe])==null?void 0:Z.type;if(we==null)switch(fe){case"__typename":we=uu.TypeNameMetaFieldDef.type;break;case"__schema":we=uu.SchemaMetaFieldDef.type;break;case"__type":we=uu.TypeMetaFieldDef.type;break}let Ve=c+1,it;k&&(it=k[W],it!=null&&delete k[W],lte(t,fe,Ve,it,p));let ee=jU(e[W],we,Te,r,i,a,o,Ve,it,p);VU(v,W,ee,y,fe)}let K=v.__typename;if(K!=null&&VU(v,"__typename",K,y,"__typename"),k)for(let W in k){let Te=k[W];for(let fe of Te)p.unpathedErrors.add(fe)}let G=y==null?void 0:y.__leave;return G!=null?G(v):v}function VU(e,t,n,r,i){if(r==null){e[t]=n;return}let a=r[i];if(a==null){e[t]=n;return}let o=a(n);if(o===void 0){delete e[t];return}e[t]=o}function ute(e,t,n,r,i,a,o,c,l,p){return e.map(f=>jU(f,t,n,r,i,a,o,c+1,l,p))}function jU(e,t,n,r,i,a,o,c,l=[],p){if(e==null)return e;let f=(0,uu.getNullableType)(t);if((0,uu.isListType)(f))return ute(e,f.ofType,n,r,i,a,o,c,l,p);if((0,uu.isAbstractType)(f)){let v=r.getType(e.__typename),{fields:P}=(0,mS.collectSubFields)(r,i,a,v,n);return TS(e,v,P,r,i,a,o,c,l,p)}else if((0,uu.isObjectType)(f)){let{fields:v}=(0,mS.collectSubFields)(r,i,a,f,n);return TS(e,f,v,r,i,a,o,c,l,p)}let y=o==null?void 0:o[f.name];if(y==null)return e;let g=y(e);return g===void 0?e:g}function cte(e,t){var i;let n=Object.create(null),r=new Set;for(let a of e){let o=(i=a.path)==null?void 0:i[t];if(o==null){r.add(a);continue}o in n?n[o].push(a):n[o]=[a]}return{errorMap:n,unpathedErrors:r}}function lte(e,t,n,r=[],i){for(let a of r){let o={type:e,fieldName:t,pathIndex:n},c=i.segmentInfoMap.get(a);c==null?i.segmentInfoMap.set(a,[o]):c.push(o)}}});var GU=w(wT=>{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.valueMatchesCriteria=void 0;function ES(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>ES(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>ES(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}wT.valueMatchesCriteria=ES});var $U=w(LT=>{"use strict";m();T();N();Object.defineProperty(LT,"__esModule",{value:!0});LT.isAsyncIterable=void 0;function dte(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}LT.isAsyncIterable=dte});var QU=w(CT=>{"use strict";m();T();N();Object.defineProperty(CT,"__esModule",{value:!0});CT.isDocumentNode=void 0;var pte=Ae();function fte(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===pte.Kind.DOCUMENT}CT.isDocumentNode=fte});var YU=w(()=>{"use strict";m();T();N()});var WU=w(lu=>{"use strict";m();T();N();Object.defineProperty(lu,"__esModule",{value:!0});lu.withCancel=lu.getAsyncIterableWithCancel=lu.getAsyncIteratorWithCancel=void 0;var mte=gl();function Nte(e){return vi(this,null,function*(){return{value:e,done:!0}})}var JU=(0,mte.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function HU(e,t){return new Proxy(e,{has(n,r){return r==="return"?!0:Reflect.has(n,r)},get(n,r,i){let a=Reflect.get(n,r,i);if(r==="return"){let o=a||Nte;return function(l){return vi(this,null,function*(){let p=yield t(l);return Reflect.apply(o,n,[p])})}}else if(typeof a=="function")return JU(n,a);return a}})}lu.getAsyncIteratorWithCancel=HU;function zU(e,t){return new Proxy(e,{get(n,r,i){let a=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){let c=Reflect.apply(a,n,[]);return HU(c,t)}:typeof a=="function"?JU(n,a):a}})}lu.getAsyncIterableWithCancel=zU;lu.withCancel=zU});var XU=w(BT=>{"use strict";m();T();N();Object.defineProperty(BT,"__esModule",{value:!0});BT.fixSchemaAst=void 0;var Tte=Ae(),Ete=jv();function hte(e,t){let n=(0,Ete.getDocumentNodeFromSchema)(e);return(0,Tte.buildASTSchema)(n,x({},t||{}))}function yte(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=hte(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}BT.fixSchemaAst=yte});var ZU=w(UT=>{"use strict";m();T();N();Object.defineProperty(UT,"__esModule",{value:!0});UT.extractExtensionsFromSchema=void 0;var ys=sc(),Ite=bl();function sa(e={}){let t=x({},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 gte(e){let t={schemaExtensions:sa(e.extensions),types:{}};return(0,Ite.mapSchema)(e,{[ys.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:sa(n.extensions)},n),[ys.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:sa(n.extensions)},n),[ys.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:sa(n.extensions)};let a=n.args;if(a!=null)for(let o in a)t.types[i].fields[r].arguments[o]=sa(a[o].extensions);return n},[ys.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:sa(n.extensions)},n),[ys.MapperKind.ENUM_VALUE]:(n,r,i,a)=>(t.types[r].values[a]=sa(n.extensions),n),[ys.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:sa(n.extensions)},n),[ys.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:sa(n.extensions)},n),[ys.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:sa(n.extensions)},n),[ys.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:sa(n.extensions)},n)}),t}UT.extractExtensionsFromSchema=gte});var ek=w(du=>{"use strict";m();T();N();Object.defineProperty(du,"__esModule",{value:!0});du.printPathArray=du.pathToArray=du.addPath=void 0;function _te(e,t,n){return{prev:e,key:t,typename:n}}du.addPath=_te;function vte(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}du.pathToArray=vte;function Ste(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}du.printPathArray=Ste});var tk=w(hS=>{"use strict";m();T();N();function kT(e,t,n){if(typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n{"use strict";m();T();N();Object.defineProperty(MT,"__esModule",{value:!0});MT.mergeIncrementalResult=void 0;var yS=tk();function nk({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,yS.dset)(t,n,i),n[n.length-1]++;e.data&&(0,yS.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,yS.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{nk({incrementalResult:i,executionResult:t})})}MT.mergeIncrementalResult=nk});var ak=w(Ll=>{"use strict";m();T();N();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.debugTimerEnd=Ll.debugTimerStart=void 0;var ik=new Set;function Dte(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(ik.add(e),console.time(e))}Ll.debugTimerStart=Dte;function bte(e){ik.has(e)&&console.timeEnd(e)}Ll.debugTimerEnd=bte});var oa=w(Ge=>{"use strict";m();T();N();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.inspect=void 0;var Ye=(pB(),sm(dB));Ye.__exportStar(fB(),Ge);Ye.__exportStar(yp(),Ge);Ye.__exportStar(Pv(),Ge);Ye.__exportStar(Fv(),Ge);Ye.__exportStar(vB(),Ge);Ye.__exportStar(Lv(),Ge);Ye.__exportStar(jv(),Ge);Ye.__exportStar(Fv(),Ge);Ye.__exportStar(qB(),Ge);Ye.__exportStar(VB(),Ge);Ye.__exportStar(eU(),Ge);Ye.__exportStar(uU(),Ge);Ye.__exportStar(lU(),Ge);Ye.__exportStar(EU(),Ge);Ye.__exportStar(yU(),Ge);Ye.__exportStar(IU(),Ge);Ye.__exportStar(_U(),Ge);Ye.__exportStar(vU(),Ge);Ye.__exportStar(bl(),Ge);Ye.__exportStar(aS(),Ge);Ye.__exportStar(cT(),Ge);Ye.__exportStar(OU(),Ge);Ye.__exportStar(bU(),Ge);Ye.__exportStar(sc(),Ge);Ye.__exportStar(Wv(),Ge);Ye.__exportStar(AU(),Ge);Ye.__exportStar(RU(),Ge);Ye.__exportStar(PU(),Ge);Ye.__exportStar(FU(),Ge);Ye.__exportStar(Xv(),Ge);Ye.__exportStar(CU(),Ge);Ye.__exportStar(BU(),Ge);Ye.__exportStar(UU(),Ge);Ye.__exportStar(GN(),Ge);Ye.__exportStar(kU(),Ge);Ye.__exportStar(KU(),Ge);Ye.__exportStar(Rv(),Ge);Ye.__exportStar(GU(),Ge);Ye.__exportStar($U(),Ge);Ye.__exportStar(QU(),Ge);Ye.__exportStar(XN(),Ge);Ye.__exportStar(YU(),Ge);Ye.__exportStar(WU(),Ge);Ye.__exportStar(vp(),Ge);Ye.__exportStar(Gv(),Ge);Ye.__exportStar(pS(),Ge);var Ate=Ip();Object.defineProperty(Ge,"inspect",{enumerable:!0,get:function(){return Ate.inspect}});Ye.__exportStar(gl(),Ge);Ye.__exportStar(XU(),Ge);Ye.__exportStar(fS(),Ge);Ye.__exportStar(ZU(),Ge);Ye.__exportStar(ek(),Ge);Ye.__exportStar(gp(),Ge);Ye.__exportStar(cS(),Ge);Ye.__exportStar(rk(),Ge);Ye.__exportStar(ak(),Ge)});var ok=w(xT=>{"use strict";m();T();N();Object.defineProperty(xT,"__esModule",{value:!0});xT.mergeResolvers=void 0;var Rte=oa();function sk(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=sk(i)),typeof i=="object"&&i&&n.push(i);let r=(0,Rte.mergeDeep)(n,!0);if(t!=null&&t.exclusions)for(let i of t.exclusions){let[a,o]=i.split(".");!o||o==="*"?delete r[a]:r[a]&&delete r[a][o]}return r}xT.mergeResolvers=sk});var IS=w(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.mergeArguments=void 0;var uk=oa();function Pte(e,t,n){let r=Fte([...t,...e].filter(uk.isSome),n);return n&&n.sort&&r.sort(uk.compareNodes),r}qT.mergeArguments=Pte;function Fte(e,t){return e.reduce((n,r)=>{let i=n.findIndex(a=>a.name.value===r.name.value);return i===-1?n.concat([r]):(t!=null&&t.reverseArguments||(n[i]=r),n)},[])}});var qi=w(Cl=>{"use strict";m();T();N();Object.defineProperty(Cl,"__esModule",{value:!0});Cl.mergeDirective=Cl.mergeDirectives=void 0;var ck=Ae(),wte=oa();function Lte(e,t){return!!e.find(n=>n.name.value===t.name.value)}function lk(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function Cte(e,t){return t.some(({value:n})=>n===e.value)}function dk(e,t){let n=[...t];for(let r of e){let i=n.findIndex(a=>a.name.value===r.name.value);if(i>-1){let a=n[i];if(a.value.kind==="ListValue"){let o=a.value.values,c=r.value.values;a.value.values=xte(o,c,(l,p)=>{let f=l.value;return!f||!p.some(y=>y.value===f)})}else a.value=r.value}else n.push(r)}return n}function Bte(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!lk(n,t)){let o=i[a];return n.arguments=dk(n.arguments,o.arguments),null}return n}).filter(wte.isSome)}function Ute(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=Bte([...a],r);for(let l of o)if(Lte(c,l)&&!lk(l,r)){let p=c.findIndex(y=>y.name.value===l.name.value),f=c[p];c[p].arguments=dk(l.arguments||[],f.arguments||[])}else c.push(l);return c}Cl.mergeDirectives=Ute;function kte(e,t){let n=(0,ck.print)(Y(x({},e),{description:void 0})),r=(0,ck.print)(Y(x({},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 Mte(e,t){return t?(kte(e,t),Y(x({},e),{locations:[...t.locations,...e.locations.filter(n=>!Cte(n,t.locations))]})):e}Cl.mergeDirective=Mte;function xte(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var gS=w(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.mergeEnumValues=void 0;var qte=qi(),Vte=oa();function jte(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let c=o.name.value;if(i.has(c)){let l=i.get(c);l.description=o.description||l.description,l.directives=(0,qte.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort(Vte.compareNodes),a}VT.mergeEnumValues=jte});var _S=w(jT=>{"use strict";m();T();N();Object.defineProperty(jT,"__esModule",{value:!0});jT.mergeEnum=void 0;var Kte=Ae(),Gte=qi(),$te=gS();function Qte(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,Gte.mergeDirectives)(e.directives,t.directives,n,r),values:(0,$te.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:Kte.Kind.ENUM_TYPE_DEFINITION}):e}jT.mergeEnum=Qte});var KT=w(qn=>{"use strict";m();T();N();Object.defineProperty(qn,"__esModule",{value:!0});qn.defaultStringComparator=qn.CompareVal=qn.printTypeNode=qn.isNonNullTypeNode=qn.isListTypeNode=qn.isWrappingTypeNode=qn.extractType=qn.isSourceTypes=qn.isStringTypes=void 0;var Pp=Ae();function Yte(e){return typeof e=="string"}qn.isStringTypes=Yte;function Jte(e){return e instanceof Pp.Source}qn.isSourceTypes=Jte;function Hte(e){let t=e;for(;t.kind===Pp.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}qn.extractType=Hte;function zte(e){return e.kind!==Pp.Kind.NAMED_TYPE}qn.isWrappingTypeNode=zte;function pk(e){return e.kind===Pp.Kind.LIST_TYPE}qn.isListTypeNode=pk;function fk(e){return e.kind===Pp.Kind.NON_NULL_TYPE}qn.isNonNullTypeNode=fk;function vS(e){return pk(e)?`[${vS(e.type)}]`:fk(e)?`${vS(e.type)}!`:e.name.value}qn.printTypeNode=vS;var lc;(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"})(lc=qn.CompareVal||(qn.CompareVal={}));function Wte(e,t){return e==null&&t==null?lc.A_EQUALS_B:e==null?lc.A_SMALLER_THAN_B:t==null?lc.A_GREATER_THAN_B:et?lc.A_GREATER_THAN_B:lc.A_EQUALS_B}qn.defaultStringComparator=Wte});var wp=w(GT=>{"use strict";m();T();N();Object.defineProperty(GT,"__esModule",{value:!0});GT.mergeFields=void 0;var Wr=KT(),Xte=qi(),Zte=oa(),ene=IS();function tne(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function nne(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=tne(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let p=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||rne(e,c,o,r==null?void 0:r.throwOnConflict);p.arguments=(0,ene.mergeArguments)(o.arguments||[],c.arguments||[],r),p.directives=(0,Xte.mergeDirectives)(o.directives,c.directives,r,i),p.description=o.description||c.description,a[l]=p}else a.push(o)}if(r&&r.sort&&a.sort(Zte.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}GT.mergeFields=nne;function rne(e,t,n,r=!1){let i=(0,Wr.printTypeNode)(t.type),a=(0,Wr.printTypeNode)(n.type);if(i!==a){let o=(0,Wr.extractType)(t.type),c=(0,Wr.extractType)(n.type);if(o.name.value!==c.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${c.name.value}"`);if(!Fp(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Wr.isNonNullTypeNode)(n.type)&&!(0,Wr.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function Fp(e,t,n=!1){if(!(0,Wr.isWrappingTypeNode)(e)&&!(0,Wr.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Wr.isNonNullTypeNode)(t)){let r=(0,Wr.isNonNullTypeNode)(e)?e.type:e;return Fp(r,t.type)}return(0,Wr.isNonNullTypeNode)(e)?Fp(t,e,n):(0,Wr.isListTypeNode)(e)?(0,Wr.isListTypeNode)(t)&&Fp(e.type,t.type)||(0,Wr.isNonNullTypeNode)(t)&&Fp(e,t.type):!1}});var SS=w($T=>{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.mergeInputType=void 0;var ine=Ae(),ane=wp(),sne=qi();function one(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,ane.mergeFields)(e,e.fields,t.fields,n),directives:(0,sne.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?Y(x({},e),{kind:ine.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}$T.mergeInputType=one});var Lp=w(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeNamedTypeArray=void 0;var une=oa();function cne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function lne(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!cne(t,i))];return n&&n.sort&&r.sort(une.compareNodes),r}QT.mergeNamedTypeArray=lne});var OS=w(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.mergeInterface=void 0;var dne=Ae(),pne=wp(),fne=qi(),mne=Lp();function Nne(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,pne.mergeFields)(e,e.fields,t.fields,n),directives:(0,fne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,mne.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?Y(x({},e),{kind:dne.Kind.INTERFACE_TYPE_DEFINITION}):e}YT.mergeInterface=Nne});var DS=w(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeType=void 0;var Tne=Ae(),Ene=wp(),hne=qi(),yne=Lp();function Ine(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,Ene.mergeFields)(e,e.fields,t.fields,n),directives:(0,hne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,yne.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?Y(x({},e),{kind:Tne.Kind.OBJECT_TYPE_DEFINITION}):e}JT.mergeType=Ine});var bS=w(HT=>{"use strict";m();T();N();Object.defineProperty(HT,"__esModule",{value:!0});HT.mergeScalar=void 0;var gne=Ae(),_ne=qi();function vne(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,_ne.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:gne.Kind.SCALAR_TYPE_DEFINITION}):e}HT.mergeScalar=vne});var RS=w(zT=>{"use strict";m();T();N();Object.defineProperty(zT,"__esModule",{value:!0});zT.mergeUnion=void 0;var AS=Ae(),Sne=qi(),One=Lp();function Dne(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,Sne.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?AS.Kind.UNION_TYPE_DEFINITION:AS.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,One.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:AS.Kind.UNION_TYPE_DEFINITION}):e}zT.mergeUnion=Dne});var PS=w(dc=>{"use strict";m();T();N();Object.defineProperty(dc,"__esModule",{value:!0});dc.mergeSchemaDefs=dc.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var Cp=Ae(),bne=qi();dc.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function Ane(e=[],t=[]){let n=[];for(let r in dc.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===r)||t.find(a=>a.operation===r);i&&n.push(i)}return n}function Rne(e,t,n,r){return t?{kind:e.kind===Cp.Kind.SCHEMA_DEFINITION||t.kind===Cp.Kind.SCHEMA_DEFINITION?Cp.Kind.SCHEMA_DEFINITION:Cp.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,bne.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:Ane(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:Cp.Kind.SCHEMA_DEFINITION}):e}dc.mergeSchemaDefs=Rne});var FS=w(ja=>{"use strict";m();T();N();Object.defineProperty(ja,"__esModule",{value:!0});ja.mergeGraphQLNodes=ja.isNamedDefinitionNode=ja.schemaDefSymbol=void 0;var Br=Ae(),Pne=DS(),Fne=_S(),wne=bS(),Lne=RS(),Cne=SS(),Bne=OS(),Une=qi(),kne=PS(),Mne=oa();ja.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function mk(e){return"name"in e}ja.isNamedDefinitionNode=mk;function xne(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(mk(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Mne.collectComment)(c),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(c.kind){case Br.Kind.OBJECT_TYPE_DEFINITION:case Br.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Pne.mergeType)(c,r[l],t,n);break;case Br.Kind.ENUM_TYPE_DEFINITION:case Br.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Fne.mergeEnum)(c,r[l],t,n);break;case Br.Kind.UNION_TYPE_DEFINITION:case Br.Kind.UNION_TYPE_EXTENSION:r[l]=(0,Lne.mergeUnion)(c,r[l],t,n);break;case Br.Kind.SCALAR_TYPE_DEFINITION:case Br.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,wne.mergeScalar)(c,r[l],t,n);break;case Br.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Br.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Cne.mergeInputType)(c,r[l],t,n);break;case Br.Kind.INTERFACE_TYPE_DEFINITION:case Br.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,Bne.mergeInterface)(c,r[l],t,n);break;case Br.Kind.DIRECTIVE_DEFINITION:r[l]=(0,Une.mergeDirective)(c,r[l]);break}}else(c.kind===Br.Kind.SCHEMA_DEFINITION||c.kind===Br.Kind.SCHEMA_EXTENSION)&&(r[ja.schemaDefSymbol]=(0,kne.mergeSchemaDefs)(c,r[ja.schemaDefSymbol],t));return r}ja.mergeGraphQLNodes=xne});var Ek=w(Ml=>{"use strict";m();T();N();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.mergeGraphQLTypes=Ml.mergeTypeDefs=void 0;var Vi=Ae(),wS=KT(),Bl=FS(),kl=oa(),Nk=PS();function qne(e,t){(0,kl.resetComments)();let n={kind:Vi.Kind.DOCUMENT,definitions:Tk(e,x({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,kl.printWithComments)(n):r=n,(0,kl.resetComments)(),r}Ml.mergeTypeDefs=qne;function Ul(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Ul(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)Ul(a,t,n,r,i);else if((0,Vi.isSchema)(e)){let a=(0,kl.getDocumentNodeFromSchema)(e,t);Ul(a.definitions,t,n,r,i)}else if((0,wS.isStringTypes)(e)||(0,wS.isSourceTypes)(e)){let a=(0,Vi.parse)(e,t);Ul(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,Vi.isDefinitionNode)(e))e.kind===Vi.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,kl.isDocumentNode)(e))Ul(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 Tk(e,t){var c,l,p;(0,kl.resetComments)();let{allDirectives:n,allNodes:r}=Ul(e,t),i=(0,Bl.mergeGraphQLNodes)(n,t),a=(0,Bl.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let f=a[Bl.schemaDefSymbol]||{kind:Vi.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=f.operationTypes;for(let g in Nk.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(P=>P.operation===g)){let P=Nk.DEFAULT_OPERATION_TYPE_NAME_MAP[g],M=a[P];M!=null&&M.name!=null&&y.push({kind:Vi.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Vi.Kind.NAMED_TYPE,name:M.name},operation:g})}((c=f==null?void 0:f.operationTypes)==null?void 0:c.length)!=null&&f.operationTypes.length>0&&(a[Bl.schemaDefSymbol]=f)}t!=null&&t.forceSchemaDefinition&&!((p=(l=a[Bl.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&p.length)&&(a[Bl.schemaDefSymbol]={kind:Vi.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Vi.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Vi.Kind.NAMED_TYPE,name:{kind:Vi.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let f=typeof t.sort=="function"?t.sort:wS.defaultStringComparator;o.sort((y,g)=>{var v,P;return f((v=y.name)==null?void 0:v.value,(P=g.name)==null?void 0:P.value)})}return o}Ml.mergeGraphQLTypes=Tk});var hk=w(Dr=>{"use strict";m();T();N();Object.defineProperty(Dr,"__esModule",{value:!0});var Xr=(_v(),sm(gv));Xr.__exportStar(IS(),Dr);Xr.__exportStar(qi(),Dr);Xr.__exportStar(gS(),Dr);Xr.__exportStar(_S(),Dr);Xr.__exportStar(wp(),Dr);Xr.__exportStar(SS(),Dr);Xr.__exportStar(OS(),Dr);Xr.__exportStar(Lp(),Dr);Xr.__exportStar(FS(),Dr);Xr.__exportStar(Ek(),Dr);Xr.__exportStar(bS(),Dr);Xr.__exportStar(DS(),Dr);Xr.__exportStar(RS(),Dr);Xr.__exportStar(KT(),Dr)});var Ik=w(pu=>{"use strict";m();T();N();Object.defineProperty(pu,"__esModule",{value:!0});pu.applyExtensions=pu.mergeExtensions=pu.extractExtensionsFromSchema=void 0;var yk=oa(),Vne=oa();Object.defineProperty(pu,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Vne.extractExtensionsFromSchema}});function jne(e){return(0,yk.mergeDeep)(e)}pu.mergeExtensions=jne;function xl(e,t){e&&(e.extensions=(0,yk.mergeDeep)([e.extensions||{},t||{}]))}function Kne(e,t){xl(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(xl(i,r.extensions),r.type==="object"||r.type==="interface")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];if(c){xl(c,o.extensions);for(let[l,p]of Object.entries(o.arguments))xl(c.args.find(f=>f.name===l),p)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];xl(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);xl(c,o)}}}return e}pu.applyExtensions=Kne});var WT=w(Bp=>{"use strict";m();T();N();Object.defineProperty(Bp,"__esModule",{value:!0});var LS=(_v(),sm(gv));LS.__exportStar(ok(),Bp);LS.__exportStar(hk(),Bp);LS.__exportStar(Ik(),Bp)});var ia=w(z=>{"use strict";m();T();N();Object.defineProperty(z,"__esModule",{value:!0});z.invalidEventProviderIdErrorMessage=z.invalidNatsStreamConfigurationDefinitionErrorMessage=z.invalidEdfsPublishResultObjectErrorMessage=z.invalidNatsStreamInputErrorMessage=z.inlineFragmentInFieldSetErrorMessage=z.inaccessibleQueryRootTypeError=z.subgraphValidationFailureError=z.minimumSubgraphRequirementError=void 0;z.multipleNamedTypeDefinitionError=Qne;z.incompatibleInputValueDefaultValueTypeError=Yne;z.incompatibleMergedTypesError=Jne;z.incompatibleInputValueDefaultValuesError=Hne;z.incompatibleSharedEnumError=zne;z.invalidSubgraphNamesError=Wne;z.duplicateDirectiveDefinitionError=Xne;z.duplicateEnumValueDefinitionError=Zne;z.duplicateFieldDefinitionError=ere;z.duplicateInputFieldDefinitionError=tre;z.duplicateImplementedInterfaceError=nre;z.duplicateUnionMemberDefinitionError=rre;z.duplicateTypeDefinitionError=ire;z.duplicateOperationTypeDefinitionError=are;z.noBaseDefinitionForExtensionError=sre;z.noBaseScalarDefinitionError=ore;z.noDefinedUnionMembersError=ure;z.noDefinedEnumValuesError=cre;z.operationDefinitionError=lre;z.invalidFieldShareabilityError=dre;z.undefinedDirectiveError=pre;z.undefinedTypeError=fre;z.invalidRepeatedDirectiveErrorMessage=mre;z.invalidDirectiveError=Nre;z.invalidRepeatedFederatedDirectiveErrorMessage=Tre;z.invalidDirectiveLocationErrorMessage=Ere;z.undefinedRequiredArgumentsErrorMessage=hre;z.unexpectedDirectiveArgumentErrorMessage=yre;z.duplicateDirectiveArgumentDefinitionsErrorMessage=Ire;z.invalidArgumentValueErrorMessage=gre;z.maximumTypeNestingExceededError=_re;z.unexpectedKindFatalError=vre;z.incompatibleParentKindFatalError=Sre;z.unexpectedEdgeFatalError=Ore;z.incompatibleParentKindMergeError=Dre;z.fieldTypeMergeFatalError=bre;z.unexpectedTypeNodeKindFatalError=Are;z.invalidKeyFatalError=Rre;z.unexpectedParentKindForChildError=Pre;z.subgraphValidationError=Fre;z.invalidSubgraphNameErrorMessage=wre;z.invalidOperationTypeDefinitionError=Lre;z.invalidRootTypeDefinitionError=Cre;z.subgraphInvalidSyntaxError=Bre;z.invalidInterfaceImplementationError=Ure;z.invalidRequiredInputValueError=kre;z.duplicateArgumentsError=Mre;z.noQueryRootTypeError=xre;z.expectedEntityError=qre;z.abstractTypeInKeyFieldSetErrorMessage=Vre;z.unknownTypeInFieldSetErrorMessage=jre;z.invalidSelectionSetErrorMessage=Kre;z.invalidSelectionSetDefinitionErrorMessage=Gre;z.undefinedFieldInFieldSetErrorMessage=$re;z.unparsableFieldSetErrorMessage=Qre;z.unparsableFieldSetSelectionErrorMessage=Yre;z.undefinedCompositeOutputTypeError=Jre;z.unexpectedArgumentErrorMessage=Hre;z.argumentsInKeyFieldSetErrorMessage=zre;z.invalidProvidesOrRequiresDirectivesError=Wre;z.duplicateFieldInFieldSetErrorMessage=Xre;z.invalidConfigurationDataErrorMessage=Zre;z.incompatibleTypeWithProvidesErrorMessage=eie;z.invalidInlineFragmentTypeErrorMessage=tie;z.inlineFragmentWithoutTypeConditionErrorMessage=nie;z.unknownInlineFragmentTypeConditionErrorMessage=rie;z.invalidInlineFragmentTypeConditionTypeErrorMessage=iie;z.invalidInlineFragmentTypeConditionErrorMessage=aie;z.invalidSelectionOnUnionErrorMessage=sie;z.duplicateOverriddenFieldErrorMessage=oie;z.duplicateOverriddenFieldsError=uie;z.noFieldDefinitionsError=cie;z.noInputValueDefinitionsError=lie;z.allChildDefinitionsAreInaccessibleError=die;z.equivalentSourceAndTargetOverrideErrorMessage=pie;z.undefinedEntityInterfaceImplementationsError=fie;z.orScopesLimitError=mie;z.invalidEventDrivenGraphError=Nie;z.invalidRootTypeFieldEventsDirectivesErrorMessage=Tie;z.invalidEventDrivenMutationResponseTypeErrorMessage=Eie;z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=hie;z.invalidNatsStreamInputFieldsErrorMessage=yie;z.invalidKeyFieldSetsEventDrivenErrorMessage=Iie;z.nonExternalKeyFieldNamesEventDrivenErrorMessage=gie;z.nonKeyFieldNamesEventDrivenErrorMessage=_ie;z.nonEntityObjectExtensionsEventDrivenErrorMessage=vie;z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=Sie;z.invalidEdfsDirectiveName=Oie;z.invalidImplementedTypeError=Die;z.selfImplementationError=bie;z.invalidEventSubjectErrorMessage=Aie;z.invalidEventSubjectsErrorMessage=Rie;z.invalidEventSubjectsItemErrorMessage=Pie;z.invalidEventSubjectsArgumentErrorMessage=Fie;z.undefinedEventSubjectsArgumentErrorMessage=wie;z.invalidEventDirectiveError=Lie;z.invalidReferencesOfInaccessibleTypeError=Cie;z.inaccessibleRequiredInputValueError=Bie;z.invalidUnionMemberTypeError=Uie;z.invalidRootTypeError=kie;z.invalidSubscriptionFilterLocationError=Mie;z.invalidSubscriptionFilterDirectiveError=xie;z.subscriptionFilterNamedTypeErrorMessage=qie;z.subscriptionFilterConditionDepthExceededErrorMessage=Vie;z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=jie;z.subscriptionFilterConditionInvalidInputFieldErrorMessage=Kie;z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Gie;z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=$ie;z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=Qie;z.invalidInputFieldTypeErrorMessage=Yie;z.subscriptionFieldConditionInvalidInputFieldErrorMessage=Jie;z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=Hie;z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=zie;z.unknownFieldSubgraphNameError=Wie;z.invalidSubscriptionFieldConditionFieldPathErrorMessage=Xie;z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=Zie;z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=eae;z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=tae;z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=nae;z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=rae;z.unresolvablePathError=iae;z.allExternalFieldInstancesError=aae;z.externalInterfaceFieldsError=sae;z.nonExternalConditionalFieldError=oae;z.incompatibleFederatedFieldNamedTypeError=uae;z.unknownNamedTypeErrorMessage=Dk;z.unknownNamedTypeError=cae;z.unknownFieldDataError=lae;z.unexpectedNonCompositeOutputTypeError=dae;z.invalidExternalDirectiveError=pae;z.configureDescriptionNoDescriptionError=fae;z.configureDescriptionPropagationError=mae;z.duplicateDirectiveDefinitionArgumentErrorMessage=Nae;z.duplicateDirectiveDefinitionLocationErrorMessage=Tae;z.invalidDirectiveDefinitionLocationErrorMessage=Eae;z.invalidDirectiveDefinitionError=hae;z.fieldAlreadyProvidedErrorMessage=yae;z.invalidInterfaceObjectImplementationDefinitionsError=Iae;z.invalidNamedTypeError=gae;var gk=Ae(),We=ur(),_k=ml(),ql=Jr(),Gne=El(),$ne=WT();z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function Qne(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". + ${n}`)}function Mte(e,t){return t?(kte(e,t),Y(x({},e),{locations:[...t.locations,...e.locations.filter(n=>!Cte(n,t.locations))]})):e}Cl.mergeDirective=Mte;function xte(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var gS=w(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.mergeEnumValues=void 0;var qte=qi(),Vte=oa();function jte(e,t,n,r){if(n!=null&&n.consistentEnumMerge){let o=[];e&&o.push(...e),e=t,t=o}let i=new Map;if(e)for(let o of e)i.set(o.name.value,o);if(t)for(let o of t){let c=o.name.value;if(i.has(c)){let l=i.get(c);l.description=o.description||l.description,l.directives=(0,qte.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort(Vte.compareNodes),a}VT.mergeEnumValues=jte});var _S=w(jT=>{"use strict";m();T();N();Object.defineProperty(jT,"__esModule",{value:!0});jT.mergeEnum=void 0;var Kte=Ae(),Gte=qi(),$te=gS();function Qte(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,Gte.mergeDirectives)(e.directives,t.directives,n,r),values:(0,$te.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:Kte.Kind.ENUM_TYPE_DEFINITION}):e}jT.mergeEnum=Qte});var KT=w(qn=>{"use strict";m();T();N();Object.defineProperty(qn,"__esModule",{value:!0});qn.defaultStringComparator=qn.CompareVal=qn.printTypeNode=qn.isNonNullTypeNode=qn.isListTypeNode=qn.isWrappingTypeNode=qn.extractType=qn.isSourceTypes=qn.isStringTypes=void 0;var Pp=Ae();function Yte(e){return typeof e=="string"}qn.isStringTypes=Yte;function Jte(e){return e instanceof Pp.Source}qn.isSourceTypes=Jte;function Hte(e){let t=e;for(;t.kind===Pp.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}qn.extractType=Hte;function zte(e){return e.kind!==Pp.Kind.NAMED_TYPE}qn.isWrappingTypeNode=zte;function pk(e){return e.kind===Pp.Kind.LIST_TYPE}qn.isListTypeNode=pk;function fk(e){return e.kind===Pp.Kind.NON_NULL_TYPE}qn.isNonNullTypeNode=fk;function vS(e){return pk(e)?`[${vS(e.type)}]`:fk(e)?`${vS(e.type)}!`:e.name.value}qn.printTypeNode=vS;var lc;(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"})(lc=qn.CompareVal||(qn.CompareVal={}));function Wte(e,t){return e==null&&t==null?lc.A_EQUALS_B:e==null?lc.A_SMALLER_THAN_B:t==null?lc.A_GREATER_THAN_B:et?lc.A_GREATER_THAN_B:lc.A_EQUALS_B}qn.defaultStringComparator=Wte});var wp=w(GT=>{"use strict";m();T();N();Object.defineProperty(GT,"__esModule",{value:!0});GT.mergeFields=void 0;var Wr=KT(),Xte=qi(),Zte=oa(),ene=IS();function tne(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function nne(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=tne(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let p=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||rne(e,c,o,r==null?void 0:r.throwOnConflict);p.arguments=(0,ene.mergeArguments)(o.arguments||[],c.arguments||[],r),p.directives=(0,Xte.mergeDirectives)(o.directives,c.directives,r,i),p.description=o.description||c.description,a[l]=p}else a.push(o)}if(r&&r.sort&&a.sort(Zte.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}GT.mergeFields=nne;function rne(e,t,n,r=!1){let i=(0,Wr.printTypeNode)(t.type),a=(0,Wr.printTypeNode)(n.type);if(i!==a){let o=(0,Wr.extractType)(t.type),c=(0,Wr.extractType)(n.type);if(o.name.value!==c.name.value)throw new Error(`Field "${n.name.value}" already defined with a different type. Declared as "${o.name.value}", but you tried to override with "${c.name.value}"`);if(!Fp(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,Wr.isNonNullTypeNode)(n.type)&&!(0,Wr.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function Fp(e,t,n=!1){if(!(0,Wr.isWrappingTypeNode)(e)&&!(0,Wr.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,Wr.isNonNullTypeNode)(t)){let r=(0,Wr.isNonNullTypeNode)(e)?e.type:e;return Fp(r,t.type)}return(0,Wr.isNonNullTypeNode)(e)?Fp(t,e,n):(0,Wr.isListTypeNode)(e)?(0,Wr.isListTypeNode)(t)&&Fp(e.type,t.type)||(0,Wr.isNonNullTypeNode)(t)&&Fp(e,t.type):!1}});var SS=w($T=>{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.mergeInputType=void 0;var ine=Ae(),ane=wp(),sne=qi();function one(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,ane.mergeFields)(e,e.fields,t.fields,n),directives:(0,sne.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?Y(x({},e),{kind:ine.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}$T.mergeInputType=one});var Lp=w(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeNamedTypeArray=void 0;var une=oa();function cne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function lne(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!cne(t,i))];return n&&n.sort&&r.sort(une.compareNodes),r}QT.mergeNamedTypeArray=lne});var OS=w(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.mergeInterface=void 0;var dne=Ae(),pne=wp(),fne=qi(),mne=Lp();function Nne(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,pne.mergeFields)(e,e.fields,t.fields,n),directives:(0,fne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,mne.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?Y(x({},e),{kind:dne.Kind.INTERFACE_TYPE_DEFINITION}):e}YT.mergeInterface=Nne});var DS=w(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeType=void 0;var Tne=Ae(),Ene=wp(),hne=qi(),yne=Lp();function Ine(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,Ene.mergeFields)(e,e.fields,t.fields,n),directives:(0,hne.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,yne.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?Y(x({},e),{kind:Tne.Kind.OBJECT_TYPE_DEFINITION}):e}JT.mergeType=Ine});var bS=w(HT=>{"use strict";m();T();N();Object.defineProperty(HT,"__esModule",{value:!0});HT.mergeScalar=void 0;var gne=Ae(),_ne=qi();function vne(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,_ne.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:gne.Kind.SCALAR_TYPE_DEFINITION}):e}HT.mergeScalar=vne});var RS=w(zT=>{"use strict";m();T();N();Object.defineProperty(zT,"__esModule",{value:!0});zT.mergeUnion=void 0;var AS=Ae(),Sne=qi(),One=Lp();function Dne(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,Sne.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?AS.Kind.UNION_TYPE_DEFINITION:AS.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,One.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:AS.Kind.UNION_TYPE_DEFINITION}):e}zT.mergeUnion=Dne});var PS=w(dc=>{"use strict";m();T();N();Object.defineProperty(dc,"__esModule",{value:!0});dc.mergeSchemaDefs=dc.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var Cp=Ae(),bne=qi();dc.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function Ane(e=[],t=[]){let n=[];for(let r in dc.DEFAULT_OPERATION_TYPE_NAME_MAP){let i=e.find(a=>a.operation===r)||t.find(a=>a.operation===r);i&&n.push(i)}return n}function Rne(e,t,n,r){return t?{kind:e.kind===Cp.Kind.SCHEMA_DEFINITION||t.kind===Cp.Kind.SCHEMA_DEFINITION?Cp.Kind.SCHEMA_DEFINITION:Cp.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,bne.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:Ane(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Y(x({},e),{kind:Cp.Kind.SCHEMA_DEFINITION}):e}dc.mergeSchemaDefs=Rne});var FS=w(ja=>{"use strict";m();T();N();Object.defineProperty(ja,"__esModule",{value:!0});ja.mergeGraphQLNodes=ja.isNamedDefinitionNode=ja.schemaDefSymbol=void 0;var Br=Ae(),Pne=DS(),Fne=_S(),wne=bS(),Lne=RS(),Cne=SS(),Bne=OS(),Une=qi(),kne=PS(),Mne=oa();ja.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function mk(e){return"name"in e}ja.isNamedDefinitionNode=mk;function xne(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(mk(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Mne.collectComment)(c),l==null)continue;if((a=t==null?void 0:t.exclusions)!=null&&a.includes(l+".*")||(o=t==null?void 0:t.exclusions)!=null&&o.includes(l))delete r[l];else switch(c.kind){case Br.Kind.OBJECT_TYPE_DEFINITION:case Br.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Pne.mergeType)(c,r[l],t,n);break;case Br.Kind.ENUM_TYPE_DEFINITION:case Br.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Fne.mergeEnum)(c,r[l],t,n);break;case Br.Kind.UNION_TYPE_DEFINITION:case Br.Kind.UNION_TYPE_EXTENSION:r[l]=(0,Lne.mergeUnion)(c,r[l],t,n);break;case Br.Kind.SCALAR_TYPE_DEFINITION:case Br.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,wne.mergeScalar)(c,r[l],t,n);break;case Br.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Br.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,Cne.mergeInputType)(c,r[l],t,n);break;case Br.Kind.INTERFACE_TYPE_DEFINITION:case Br.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,Bne.mergeInterface)(c,r[l],t,n);break;case Br.Kind.DIRECTIVE_DEFINITION:r[l]=(0,Une.mergeDirective)(c,r[l]);break}}else(c.kind===Br.Kind.SCHEMA_DEFINITION||c.kind===Br.Kind.SCHEMA_EXTENSION)&&(r[ja.schemaDefSymbol]=(0,kne.mergeSchemaDefs)(c,r[ja.schemaDefSymbol],t));return r}ja.mergeGraphQLNodes=xne});var Ek=w(Ml=>{"use strict";m();T();N();Object.defineProperty(Ml,"__esModule",{value:!0});Ml.mergeGraphQLTypes=Ml.mergeTypeDefs=void 0;var Vi=Ae(),wS=KT(),Bl=FS(),kl=oa(),Nk=PS();function qne(e,t){(0,kl.resetComments)();let n={kind:Vi.Kind.DOCUMENT,definitions:Tk(e,x({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,kl.printWithComments)(n):r=n,(0,kl.resetComments)(),r}Ml.mergeTypeDefs=qne;function Ul(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Ul(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)Ul(a,t,n,r,i);else if((0,Vi.isSchema)(e)){let a=(0,kl.getDocumentNodeFromSchema)(e,t);Ul(a.definitions,t,n,r,i)}else if((0,wS.isStringTypes)(e)||(0,wS.isSourceTypes)(e)){let a=(0,Vi.parse)(e,t);Ul(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,Vi.isDefinitionNode)(e))e.kind===Vi.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,kl.isDocumentNode)(e))Ul(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 Tk(e,t){var c,l,p;(0,kl.resetComments)();let{allDirectives:n,allNodes:r}=Ul(e,t),i=(0,Bl.mergeGraphQLNodes)(n,t),a=(0,Bl.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let f=a[Bl.schemaDefSymbol]||{kind:Vi.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=f.operationTypes;for(let g in Nk.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(P=>P.operation===g)){let P=Nk.DEFAULT_OPERATION_TYPE_NAME_MAP[g],k=a[P];k!=null&&k.name!=null&&y.push({kind:Vi.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Vi.Kind.NAMED_TYPE,name:k.name},operation:g})}((c=f==null?void 0:f.operationTypes)==null?void 0:c.length)!=null&&f.operationTypes.length>0&&(a[Bl.schemaDefSymbol]=f)}t!=null&&t.forceSchemaDefinition&&!((p=(l=a[Bl.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&p.length)&&(a[Bl.schemaDefSymbol]={kind:Vi.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Vi.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Vi.Kind.NAMED_TYPE,name:{kind:Vi.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let f=typeof t.sort=="function"?t.sort:wS.defaultStringComparator;o.sort((y,g)=>{var v,P;return f((v=y.name)==null?void 0:v.value,(P=g.name)==null?void 0:P.value)})}return o}Ml.mergeGraphQLTypes=Tk});var hk=w(Dr=>{"use strict";m();T();N();Object.defineProperty(Dr,"__esModule",{value:!0});var Xr=(_v(),sm(gv));Xr.__exportStar(IS(),Dr);Xr.__exportStar(qi(),Dr);Xr.__exportStar(gS(),Dr);Xr.__exportStar(_S(),Dr);Xr.__exportStar(wp(),Dr);Xr.__exportStar(SS(),Dr);Xr.__exportStar(OS(),Dr);Xr.__exportStar(Lp(),Dr);Xr.__exportStar(FS(),Dr);Xr.__exportStar(Ek(),Dr);Xr.__exportStar(bS(),Dr);Xr.__exportStar(DS(),Dr);Xr.__exportStar(RS(),Dr);Xr.__exportStar(KT(),Dr)});var Ik=w(pu=>{"use strict";m();T();N();Object.defineProperty(pu,"__esModule",{value:!0});pu.applyExtensions=pu.mergeExtensions=pu.extractExtensionsFromSchema=void 0;var yk=oa(),Vne=oa();Object.defineProperty(pu,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Vne.extractExtensionsFromSchema}});function jne(e){return(0,yk.mergeDeep)(e)}pu.mergeExtensions=jne;function xl(e,t){e&&(e.extensions=(0,yk.mergeDeep)([e.extensions||{},t||{}]))}function Kne(e,t){xl(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(xl(i,r.extensions),r.type==="object"||r.type==="interface")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];if(c){xl(c,o.extensions);for(let[l,p]of Object.entries(o.arguments))xl(c.args.find(f=>f.name===l),p)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];xl(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);xl(c,o)}}}return e}pu.applyExtensions=Kne});var WT=w(Bp=>{"use strict";m();T();N();Object.defineProperty(Bp,"__esModule",{value:!0});var LS=(_v(),sm(gv));LS.__exportStar(ok(),Bp);LS.__exportStar(hk(),Bp);LS.__exportStar(Ik(),Bp)});var ia=w(z=>{"use strict";m();T();N();Object.defineProperty(z,"__esModule",{value:!0});z.invalidEventProviderIdErrorMessage=z.invalidNatsStreamConfigurationDefinitionErrorMessage=z.invalidEdfsPublishResultObjectErrorMessage=z.invalidNatsStreamInputErrorMessage=z.inlineFragmentInFieldSetErrorMessage=z.inaccessibleQueryRootTypeError=z.subgraphValidationFailureError=z.minimumSubgraphRequirementError=void 0;z.multipleNamedTypeDefinitionError=Qne;z.incompatibleInputValueDefaultValueTypeError=Yne;z.incompatibleMergedTypesError=Jne;z.incompatibleInputValueDefaultValuesError=Hne;z.incompatibleSharedEnumError=zne;z.invalidSubgraphNamesError=Wne;z.duplicateDirectiveDefinitionError=Xne;z.duplicateEnumValueDefinitionError=Zne;z.duplicateFieldDefinitionError=ere;z.duplicateInputFieldDefinitionError=tre;z.duplicateImplementedInterfaceError=nre;z.duplicateUnionMemberDefinitionError=rre;z.duplicateTypeDefinitionError=ire;z.duplicateOperationTypeDefinitionError=are;z.noBaseDefinitionForExtensionError=sre;z.noBaseScalarDefinitionError=ore;z.noDefinedUnionMembersError=ure;z.noDefinedEnumValuesError=cre;z.operationDefinitionError=lre;z.invalidFieldShareabilityError=dre;z.undefinedDirectiveError=pre;z.undefinedTypeError=fre;z.invalidRepeatedDirectiveErrorMessage=mre;z.invalidDirectiveError=Nre;z.invalidRepeatedFederatedDirectiveErrorMessage=Tre;z.invalidDirectiveLocationErrorMessage=Ere;z.undefinedRequiredArgumentsErrorMessage=hre;z.unexpectedDirectiveArgumentErrorMessage=yre;z.duplicateDirectiveArgumentDefinitionsErrorMessage=Ire;z.invalidArgumentValueErrorMessage=gre;z.maximumTypeNestingExceededError=_re;z.unexpectedKindFatalError=vre;z.incompatibleParentKindFatalError=Sre;z.unexpectedEdgeFatalError=Ore;z.incompatibleParentKindMergeError=Dre;z.fieldTypeMergeFatalError=bre;z.unexpectedTypeNodeKindFatalError=Are;z.invalidKeyFatalError=Rre;z.unexpectedParentKindForChildError=Pre;z.subgraphValidationError=Fre;z.invalidSubgraphNameErrorMessage=wre;z.invalidOperationTypeDefinitionError=Lre;z.invalidRootTypeDefinitionError=Cre;z.subgraphInvalidSyntaxError=Bre;z.invalidInterfaceImplementationError=Ure;z.invalidRequiredInputValueError=kre;z.duplicateArgumentsError=Mre;z.noQueryRootTypeError=xre;z.expectedEntityError=qre;z.abstractTypeInKeyFieldSetErrorMessage=Vre;z.unknownTypeInFieldSetErrorMessage=jre;z.invalidSelectionSetErrorMessage=Kre;z.invalidSelectionSetDefinitionErrorMessage=Gre;z.undefinedFieldInFieldSetErrorMessage=$re;z.unparsableFieldSetErrorMessage=Qre;z.unparsableFieldSetSelectionErrorMessage=Yre;z.undefinedCompositeOutputTypeError=Jre;z.unexpectedArgumentErrorMessage=Hre;z.argumentsInKeyFieldSetErrorMessage=zre;z.invalidProvidesOrRequiresDirectivesError=Wre;z.duplicateFieldInFieldSetErrorMessage=Xre;z.invalidConfigurationDataErrorMessage=Zre;z.incompatibleTypeWithProvidesErrorMessage=eie;z.invalidInlineFragmentTypeErrorMessage=tie;z.inlineFragmentWithoutTypeConditionErrorMessage=nie;z.unknownInlineFragmentTypeConditionErrorMessage=rie;z.invalidInlineFragmentTypeConditionTypeErrorMessage=iie;z.invalidInlineFragmentTypeConditionErrorMessage=aie;z.invalidSelectionOnUnionErrorMessage=sie;z.duplicateOverriddenFieldErrorMessage=oie;z.duplicateOverriddenFieldsError=uie;z.noFieldDefinitionsError=cie;z.noInputValueDefinitionsError=lie;z.allChildDefinitionsAreInaccessibleError=die;z.equivalentSourceAndTargetOverrideErrorMessage=pie;z.undefinedEntityInterfaceImplementationsError=fie;z.orScopesLimitError=mie;z.invalidEventDrivenGraphError=Nie;z.invalidRootTypeFieldEventsDirectivesErrorMessage=Tie;z.invalidEventDrivenMutationResponseTypeErrorMessage=Eie;z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=hie;z.invalidNatsStreamInputFieldsErrorMessage=yie;z.invalidKeyFieldSetsEventDrivenErrorMessage=Iie;z.nonExternalKeyFieldNamesEventDrivenErrorMessage=gie;z.nonKeyFieldNamesEventDrivenErrorMessage=_ie;z.nonEntityObjectExtensionsEventDrivenErrorMessage=vie;z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=Sie;z.invalidEdfsDirectiveName=Oie;z.invalidImplementedTypeError=Die;z.selfImplementationError=bie;z.invalidEventSubjectErrorMessage=Aie;z.invalidEventSubjectsErrorMessage=Rie;z.invalidEventSubjectsItemErrorMessage=Pie;z.invalidEventSubjectsArgumentErrorMessage=Fie;z.undefinedEventSubjectsArgumentErrorMessage=wie;z.invalidEventDirectiveError=Lie;z.invalidReferencesOfInaccessibleTypeError=Cie;z.inaccessibleRequiredInputValueError=Bie;z.invalidUnionMemberTypeError=Uie;z.invalidRootTypeError=kie;z.invalidSubscriptionFilterLocationError=Mie;z.invalidSubscriptionFilterDirectiveError=xie;z.subscriptionFilterNamedTypeErrorMessage=qie;z.subscriptionFilterConditionDepthExceededErrorMessage=Vie;z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=jie;z.subscriptionFilterConditionInvalidInputFieldErrorMessage=Kie;z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Gie;z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=$ie;z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=Qie;z.invalidInputFieldTypeErrorMessage=Yie;z.subscriptionFieldConditionInvalidInputFieldErrorMessage=Jie;z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=Hie;z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=zie;z.unknownFieldSubgraphNameError=Wie;z.invalidSubscriptionFieldConditionFieldPathErrorMessage=Xie;z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=Zie;z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=eae;z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=tae;z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=nae;z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=rae;z.unresolvablePathError=iae;z.allExternalFieldInstancesError=aae;z.externalInterfaceFieldsError=sae;z.nonExternalConditionalFieldError=oae;z.incompatibleFederatedFieldNamedTypeError=uae;z.unknownNamedTypeErrorMessage=Dk;z.unknownNamedTypeError=cae;z.unknownFieldDataError=lae;z.unexpectedNonCompositeOutputTypeError=dae;z.invalidExternalDirectiveError=pae;z.configureDescriptionNoDescriptionError=fae;z.configureDescriptionPropagationError=mae;z.duplicateDirectiveDefinitionArgumentErrorMessage=Nae;z.duplicateDirectiveDefinitionLocationErrorMessage=Tae;z.invalidDirectiveDefinitionLocationErrorMessage=Eae;z.invalidDirectiveDefinitionError=hae;z.fieldAlreadyProvidedErrorMessage=yae;z.invalidInterfaceObjectImplementationDefinitionsError=Iae;z.invalidNamedTypeError=gae;var gk=Ae(),We=ur(),_k=ml(),ql=Jr(),Gne=El(),$ne=WT();z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function Qne(e,t,n){return new Error(`The named type "${e}" is defined as both types "${t}" and "${n}". However, there must be only one type named "${e}".`)}function Yne(e,t,n,r){return new Error(`The ${e} of type "${n}" defined on path "${t}" is incompatible with the default value of "${r}".`)}function Jne({actualType:e,coords:t,expectedType:n,isArgument:r}){return new Error(`Incompatible types when merging two instances of ${r?"field argument":We.FIELD} "${t}": Expected type "${n}" but received "${e}".`)}function Hne(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":"")+`: @@ -423,7 +423,7 @@ This should never happen. Please report this issue on GitHub.`)}function pae(e){ A federated graph only supports a single description; consequently, only one subgraph may define argument "propagate" as true (this is the default value).`)}function Nae(e){return"- The following argument"+(e.length>1?"s are":" is")+` defined more than once: "`+e.join(We.QUOTATION_JOIN)+'"'}function Tae(e){return`- The location "${e}" is defined multiple times.`}function Eae(e){return`- "${e}" is not a valid directive location.`}function hae(e,t){return new Error(`The directive definition for "@${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: `+t.join(We.LITERAL_NEW_LINE)+'"')}function yae(e,t,n){return` The field "${e}" is unconditionally provided by subgraph "${t}" and should not form part of any "@${n}" field set. Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`}function Iae(e,t,n){return new Error(`The subgraph that defines an entity Interface Object (using "@interfaceObject") must not define any implementation types of that interface. However, the subgraph "${t}" defines the entity Interface "${e}" as an Interface Object alongside the following implementation type`+(n.length>1?"s":"")+` of "${e}": - "`+n.join(We.QUOTATION_JOIN)+'"')}function gae({data:e,namedTypeData:t,nodeType:n}){let r=(0,Gne.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,$ne.printTypeNode)(e.type)+`; however, ${(0,ql.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}});var Ak=w(bk=>{"use strict";m();T();N();Object.defineProperty(bk,"__esModule",{value:!0})});var Up=w(ji=>{"use strict";m();T();N();Object.defineProperty(ji,"__esModule",{value:!0});ji.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=ji.SUBSCRIPTION_FILTER_INPUT_NAMES=ji.STREAM_CONFIGURATION_FIELD_NAMES=ji.EVENT_DIRECTIVE_NAMES=ji.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var cn=ur();ji.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([cn.ARGUMENT_DEFINITION_UPPER,cn.ENUM_UPPER,cn.ENUM_VALUE_UPPER,cn.FIELD_DEFINITION_UPPER,cn.INPUT_FIELD_DEFINITION_UPPER,cn.INPUT_OBJECT_UPPER,cn.INTERFACE_UPPER,cn.OBJECT_UPPER,cn.SCALAR_UPPER,cn.SCHEMA_UPPER,cn.UNION_UPPER]);ji.EVENT_DIRECTIVE_NAMES=new Set([cn.EDFS_KAFKA_PUBLISH,cn.EDFS_KAFKA_SUBSCRIBE,cn.EDFS_NATS_PUBLISH,cn.EDFS_NATS_REQUEST,cn.EDFS_NATS_SUBSCRIBE,cn.EDFS_REDIS_PUBLISH,cn.EDFS_REDIS_SUBSCRIBE]);ji.STREAM_CONFIGURATION_FIELD_NAMES=new Set([cn.CONSUMER_INACTIVE_THRESHOLD,cn.CONSUMER_NAME,cn.STREAM_NAME]);ji.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([cn.AND_UPPER,cn.IN_UPPER,cn.NOT_UPPER,cn.OR_UPPER]);ji.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([cn.AND_UPPER,cn.OR_UPPER])});var Ki=w((BS,Rk)=>{"use strict";m();T();N();var kp=function(e){return e&&e.Math===Math&&e};Rk.exports=kp(typeof globalThis=="object"&&globalThis)||kp(typeof window=="object"&&window)||kp(typeof self=="object"&&self)||kp(typeof global=="object"&&global)||kp(typeof BS=="object"&&BS)||function(){return this}()||Function("return this")()});var Is=w((z0e,Pk)=>{"use strict";m();T();N();Pk.exports=function(e){try{return!!e()}catch(t){return!0}}});var fu=w((eAe,Fk)=>{"use strict";m();T();N();var _ae=Is();Fk.exports=!_ae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var US=w((iAe,wk)=>{"use strict";m();T();N();var vae=Is();wk.exports=!vae(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var pc=w((uAe,Lk)=>{"use strict";m();T();N();var Sae=US(),ZT=Function.prototype.call;Lk.exports=Sae?ZT.bind(ZT):function(){return ZT.apply(ZT,arguments)}});var kk=w(Uk=>{"use strict";m();T();N();var Ck={}.propertyIsEnumerable,Bk=Object.getOwnPropertyDescriptor,Oae=Bk&&!Ck.call({1:2},1);Uk.f=Oae?function(t){var n=Bk(this,t);return!!n&&n.enumerable}:Ck});var kS=w((TAe,Mk)=>{"use strict";m();T();N();Mk.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var mi=w((IAe,Vk)=>{"use strict";m();T();N();var xk=US(),qk=Function.prototype,MS=qk.call,Dae=xk&&qk.bind.bind(MS,MS);Vk.exports=xk?Dae:function(e){return function(){return MS.apply(e,arguments)}}});var Gk=w((SAe,Kk)=>{"use strict";m();T();N();var jk=mi(),bae=jk({}.toString),Aae=jk("".slice);Kk.exports=function(e){return Aae(bae(e),8,-1)}});var Qk=w((AAe,$k)=>{"use strict";m();T();N();var Rae=mi(),Pae=Is(),Fae=Gk(),xS=Object,wae=Rae("".split);$k.exports=Pae(function(){return!xS("z").propertyIsEnumerable(0)})?function(e){return Fae(e)==="String"?wae(e,""):xS(e)}:xS});var qS=w((wAe,Yk)=>{"use strict";m();T();N();Yk.exports=function(e){return e==null}});var VS=w((UAe,Jk)=>{"use strict";m();T();N();var Lae=qS(),Cae=TypeError;Jk.exports=function(e){if(Lae(e))throw new Cae("Can't call method on "+e);return e}});var eE=w((qAe,Hk)=>{"use strict";m();T();N();var Bae=Qk(),Uae=VS();Hk.exports=function(e){return Bae(Uae(e))}});var ua=w((GAe,zk)=>{"use strict";m();T();N();var jS=typeof document=="object"&&document.all;zk.exports=typeof jS=="undefined"&&jS!==void 0?function(e){return typeof e=="function"||e===jS}:function(e){return typeof e=="function"}});var Vl=w((JAe,Wk)=>{"use strict";m();T();N();var kae=ua();Wk.exports=function(e){return typeof e=="object"?e!==null:kae(e)}});var tE=w((XAe,Xk)=>{"use strict";m();T();N();var KS=Ki(),Mae=ua(),xae=function(e){return Mae(e)?e:void 0};Xk.exports=function(e,t){return arguments.length<2?xae(KS[e]):KS[e]&&KS[e][t]}});var eM=w((nRe,Zk)=>{"use strict";m();T();N();var qae=mi();Zk.exports=qae({}.isPrototypeOf)});var iM=w((sRe,rM)=>{"use strict";m();T();N();var Vae=Ki(),tM=Vae.navigator,nM=tM&&tM.userAgent;rM.exports=nM?String(nM):""});var dM=w((lRe,lM)=>{"use strict";m();T();N();var cM=Ki(),GS=iM(),aM=cM.process,sM=cM.Deno,oM=aM&&aM.versions||sM&&sM.version,uM=oM&&oM.v8,ca,nE;uM&&(ca=uM.split("."),nE=ca[0]>0&&ca[0]<4?1:+(ca[0]+ca[1]));!nE&&GS&&(ca=GS.match(/Edge\/(\d+)/),(!ca||ca[1]>=74)&&(ca=GS.match(/Chrome\/(\d+)/),ca&&(nE=+ca[1])));lM.exports=nE});var $S=w((mRe,fM)=>{"use strict";m();T();N();var pM=dM(),jae=Is(),Kae=Ki(),Gae=Kae.String;fM.exports=!!Object.getOwnPropertySymbols&&!jae(function(){var e=Symbol("symbol detection");return!Gae(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pM&&pM<41})});var QS=w((hRe,mM)=>{"use strict";m();T();N();var $ae=$S();mM.exports=$ae&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var YS=w((_Re,NM)=>{"use strict";m();T();N();var Qae=tE(),Yae=ua(),Jae=eM(),Hae=QS(),zae=Object;NM.exports=Hae?function(e){return typeof e=="symbol"}:function(e){var t=Qae("Symbol");return Yae(t)&&Jae(t.prototype,zae(e))}});var EM=w((DRe,TM)=>{"use strict";m();T();N();var Wae=String;TM.exports=function(e){try{return Wae(e)}catch(t){return"Object"}}});var rE=w((PRe,hM)=>{"use strict";m();T();N();var Xae=ua(),Zae=EM(),ese=TypeError;hM.exports=function(e){if(Xae(e))return e;throw new ese(Zae(e)+" is not a function")}});var JS=w((CRe,yM)=>{"use strict";m();T();N();var tse=rE(),nse=qS();yM.exports=function(e,t){var n=e[t];return nse(n)?void 0:tse(n)}});var gM=w((MRe,IM)=>{"use strict";m();T();N();var HS=pc(),zS=ua(),WS=Vl(),rse=TypeError;IM.exports=function(e,t){var n,r;if(t==="string"&&zS(n=e.toString)&&!WS(r=HS(n,e))||zS(n=e.valueOf)&&!WS(r=HS(n,e))||t!=="string"&&zS(n=e.toString)&&!WS(r=HS(n,e)))return r;throw new rse("Can't convert object to primitive value")}});var vM=w((jRe,_M)=>{"use strict";m();T();N();_M.exports=!1});var iE=w((QRe,OM)=>{"use strict";m();T();N();var SM=Ki(),ise=Object.defineProperty;OM.exports=function(e,t){try{ise(SM,e,{value:t,configurable:!0,writable:!0})}catch(n){SM[e]=t}return t}});var aE=w((zRe,AM)=>{"use strict";m();T();N();var ase=vM(),sse=Ki(),ose=iE(),DM="__core-js_shared__",bM=AM.exports=sse[DM]||ose(DM,{});(bM.versions||(bM.versions=[])).push({version:"3.41.0",mode:ase?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var XS=w((ePe,PM)=>{"use strict";m();T();N();var RM=aE();PM.exports=function(e,t){return RM[e]||(RM[e]=t||{})}});var wM=w((iPe,FM)=>{"use strict";m();T();N();var use=VS(),cse=Object;FM.exports=function(e){return cse(use(e))}});var mu=w((uPe,LM)=>{"use strict";m();T();N();var lse=mi(),dse=wM(),pse=lse({}.hasOwnProperty);LM.exports=Object.hasOwn||function(t,n){return pse(dse(t),n)}});var ZS=w((pPe,CM)=>{"use strict";m();T();N();var fse=mi(),mse=0,Nse=Math.random(),Tse=fse(1 .toString);CM.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Tse(++mse+Nse,36)}});var kM=w((TPe,UM)=>{"use strict";m();T();N();var Ese=Ki(),hse=XS(),BM=mu(),yse=ZS(),Ise=$S(),gse=QS(),jl=Ese.Symbol,eO=hse("wks"),_se=gse?jl.for||jl:jl&&jl.withoutSetter||yse;UM.exports=function(e){return BM(eO,e)||(eO[e]=Ise&&BM(jl,e)?jl[e]:_se("Symbol."+e)),eO[e]}});var VM=w((IPe,qM)=>{"use strict";m();T();N();var vse=pc(),MM=Vl(),xM=YS(),Sse=JS(),Ose=gM(),Dse=kM(),bse=TypeError,Ase=Dse("toPrimitive");qM.exports=function(e,t){if(!MM(e)||xM(e))return e;var n=Sse(e,Ase),r;if(n){if(t===void 0&&(t="default"),r=vse(n,e,t),!MM(r)||xM(r))return r;throw new bse("Can't convert object to primitive value")}return t===void 0&&(t="number"),Ose(e,t)}});var tO=w((SPe,jM)=>{"use strict";m();T();N();var Rse=VM(),Pse=YS();jM.exports=function(e){var t=Rse(e,"string");return Pse(t)?t:t+""}});var $M=w((APe,GM)=>{"use strict";m();T();N();var Fse=Ki(),KM=Vl(),nO=Fse.document,wse=KM(nO)&&KM(nO.createElement);GM.exports=function(e){return wse?nO.createElement(e):{}}});var rO=w((wPe,QM)=>{"use strict";m();T();N();var Lse=fu(),Cse=Is(),Bse=$M();QM.exports=!Lse&&!Cse(function(){return Object.defineProperty(Bse("div"),"a",{get:function(){return 7}}).a!==7})});var iO=w(JM=>{"use strict";m();T();N();var Use=fu(),kse=pc(),Mse=kk(),xse=kS(),qse=eE(),Vse=tO(),jse=mu(),Kse=rO(),YM=Object.getOwnPropertyDescriptor;JM.f=Use?YM:function(t,n){if(t=qse(t),n=Vse(n),Kse)try{return YM(t,n)}catch(r){}if(jse(t,n))return xse(!kse(Mse.f,t,n),t[n])}});var zM=w((qPe,HM)=>{"use strict";m();T();N();var Gse=fu(),$se=Is();HM.exports=Gse&&$se(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Mp=w((GPe,WM)=>{"use strict";m();T();N();var Qse=Vl(),Yse=String,Jse=TypeError;WM.exports=function(e){if(Qse(e))return e;throw new Jse(Yse(e)+" is not an object")}});var oE=w(ZM=>{"use strict";m();T();N();var Hse=fu(),zse=rO(),Wse=zM(),sE=Mp(),XM=tO(),Xse=TypeError,aO=Object.defineProperty,Zse=Object.getOwnPropertyDescriptor,sO="enumerable",oO="configurable",uO="writable";ZM.f=Hse?Wse?function(t,n,r){if(sE(t),n=XM(n),sE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&uO in r&&!r[uO]){var i=Zse(t,n);i&&i[uO]&&(t[n]=r.value,r={configurable:oO in r?r[oO]:i[oO],enumerable:sO in r?r[sO]:i[sO],writable:!1})}return aO(t,n,r)}:aO:function(t,n,r){if(sE(t),n=XM(n),sE(r),zse)try{return aO(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new Xse("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var cO=w((XPe,ex)=>{"use strict";m();T();N();var eoe=fu(),toe=oE(),noe=kS();ex.exports=eoe?function(e,t,n){return toe.f(e,t,noe(1,n))}:function(e,t,n){return e[t]=n,e}});var rx=w((nFe,nx)=>{"use strict";m();T();N();var lO=fu(),roe=mu(),tx=Function.prototype,ioe=lO&&Object.getOwnPropertyDescriptor,dO=roe(tx,"name"),aoe=dO&&function(){}.name==="something",soe=dO&&(!lO||lO&&ioe(tx,"name").configurable);nx.exports={EXISTS:dO,PROPER:aoe,CONFIGURABLE:soe}});var ax=w((sFe,ix)=>{"use strict";m();T();N();var ooe=mi(),uoe=ua(),pO=aE(),coe=ooe(Function.toString);uoe(pO.inspectSource)||(pO.inspectSource=function(e){return coe(e)});ix.exports=pO.inspectSource});var ux=w((lFe,ox)=>{"use strict";m();T();N();var loe=Ki(),doe=ua(),sx=loe.WeakMap;ox.exports=doe(sx)&&/native code/.test(String(sx))});var dx=w((mFe,lx)=>{"use strict";m();T();N();var poe=XS(),foe=ZS(),cx=poe("keys");lx.exports=function(e){return cx[e]||(cx[e]=foe(e))}});var fO=w((hFe,px)=>{"use strict";m();T();N();px.exports={}});var Tx=w((_Fe,Nx)=>{"use strict";m();T();N();var moe=ux(),mx=Ki(),Noe=Vl(),Toe=cO(),mO=mu(),NO=aE(),Eoe=dx(),hoe=fO(),fx="Object already initialized",TO=mx.TypeError,yoe=mx.WeakMap,uE,xp,cE,Ioe=function(e){return cE(e)?xp(e):uE(e,{})},goe=function(e){return function(t){var n;if(!Noe(t)||(n=xp(t)).type!==e)throw new TO("Incompatible receiver, "+e+" required");return n}};moe||NO.state?(la=NO.state||(NO.state=new yoe),la.get=la.get,la.has=la.has,la.set=la.set,uE=function(e,t){if(la.has(e))throw new TO(fx);return t.facade=e,la.set(e,t),t},xp=function(e){return la.get(e)||{}},cE=function(e){return la.has(e)}):(fc=Eoe("state"),hoe[fc]=!0,uE=function(e,t){if(mO(e,fc))throw new TO(fx);return t.facade=e,Toe(e,fc,t),t},xp=function(e){return mO(e,fc)?e[fc]:{}},cE=function(e){return mO(e,fc)});var la,fc;Nx.exports={set:uE,get:xp,has:cE,enforce:Ioe,getterFor:goe}});var Ix=w((DFe,yx)=>{"use strict";m();T();N();var hO=mi(),_oe=Is(),voe=ua(),lE=mu(),EO=fu(),Soe=rx().CONFIGURABLE,Ooe=ax(),hx=Tx(),Doe=hx.enforce,boe=hx.get,Ex=String,dE=Object.defineProperty,Aoe=hO("".slice),Roe=hO("".replace),Poe=hO([].join),Foe=EO&&!_oe(function(){return dE(function(){},"length",{value:8}).length!==8}),woe=String(String).split("String"),Loe=yx.exports=function(e,t,n){Aoe(Ex(t),0,7)==="Symbol("&&(t="["+Roe(Ex(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!lE(e,"name")||Soe&&e.name!==t)&&(EO?dE(e,"name",{value:t,configurable:!0}):e.name=t),Foe&&n&&lE(n,"arity")&&e.length!==n.arity&&dE(e,"length",{value:n.arity});try{n&&lE(n,"constructor")&&n.constructor?EO&&dE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=Doe(e);return lE(r,"source")||(r.source=Poe(woe,typeof t=="string"?t:"")),e};Function.prototype.toString=Loe(function(){return voe(this)&&boe(this).source||Ooe(this)},"toString")});var _x=w((PFe,gx)=>{"use strict";m();T();N();var Coe=ua(),Boe=oE(),Uoe=Ix(),koe=iE();gx.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Coe(n)&&Uoe(n,a,r),r.global)i?e[t]=n:koe(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:Boe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var Sx=w((CFe,vx)=>{"use strict";m();T();N();var Moe=Math.ceil,xoe=Math.floor;vx.exports=Math.trunc||function(t){var n=+t;return(n>0?xoe:Moe)(n)}});var pE=w((MFe,Ox)=>{"use strict";m();T();N();var qoe=Sx();Ox.exports=function(e){var t=+e;return t!==t||t===0?0:qoe(t)}});var bx=w((jFe,Dx)=>{"use strict";m();T();N();var Voe=pE(),joe=Math.max,Koe=Math.min;Dx.exports=function(e,t){var n=Voe(e);return n<0?joe(n+t,0):Koe(n,t)}});var Rx=w((QFe,Ax)=>{"use strict";m();T();N();var Goe=pE(),$oe=Math.min;Ax.exports=function(e){var t=Goe(e);return t>0?$oe(t,9007199254740991):0}});var Fx=w((zFe,Px)=>{"use strict";m();T();N();var Qoe=Rx();Px.exports=function(e){return Qoe(e.length)}});var Cx=w((ewe,Lx)=>{"use strict";m();T();N();var Yoe=eE(),Joe=bx(),Hoe=Fx(),wx=function(e){return function(t,n,r){var i=Yoe(t),a=Hoe(i);if(a===0)return!e&&-1;var o=Joe(r,a),c;if(e&&n!==n){for(;a>o;)if(c=i[o++],c!==c)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}};Lx.exports={includes:wx(!0),indexOf:wx(!1)}});var kx=w((iwe,Ux)=>{"use strict";m();T();N();var zoe=mi(),yO=mu(),Woe=eE(),Xoe=Cx().indexOf,Zoe=fO(),Bx=zoe([].push);Ux.exports=function(e,t){var n=Woe(e),r=0,i=[],a;for(a in n)!yO(Zoe,a)&&yO(n,a)&&Bx(i,a);for(;t.length>r;)yO(n,a=t[r++])&&(~Xoe(i,a)||Bx(i,a));return i}});var xx=w((uwe,Mx)=>{"use strict";m();T();N();Mx.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Vx=w(qx=>{"use strict";m();T();N();var eue=kx(),tue=xx(),nue=tue.concat("length","prototype");qx.f=Object.getOwnPropertyNames||function(t){return eue(t,nue)}});var Kx=w(jx=>{"use strict";m();T();N();jx.f=Object.getOwnPropertySymbols});var $x=w((Iwe,Gx)=>{"use strict";m();T();N();var rue=tE(),iue=mi(),aue=Vx(),sue=Kx(),oue=Mp(),uue=iue([].concat);Gx.exports=rue("Reflect","ownKeys")||function(t){var n=aue.f(oue(t)),r=sue.f;return r?uue(n,r(t)):n}});var Jx=w((Swe,Yx)=>{"use strict";m();T();N();var Qx=mu(),cue=$x(),lue=iO(),due=oE();Yx.exports=function(e,t,n){for(var r=cue(t),i=due.f,a=lue.f,o=0;o{"use strict";m();T();N();var pue=Is(),fue=ua(),mue=/#|\.prototype\./,qp=function(e,t){var n=Tue[Nue(e)];return n===hue?!0:n===Eue?!1:fue(t)?pue(t):!!t},Nue=qp.normalize=function(e){return String(e).replace(mue,".").toLowerCase()},Tue=qp.data={},Eue=qp.NATIVE="N",hue=qp.POLYFILL="P";Hx.exports=qp});var IO=w((wwe,Wx)=>{"use strict";m();T();N();var fE=Ki(),yue=iO().f,Iue=cO(),gue=_x(),_ue=iE(),vue=Jx(),Sue=zx();Wx.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,p,f;if(r?o=fE:i?o=fE[n]||_ue(n,{}):o=fE[n]&&fE[n].prototype,o)for(c in t){if(p=t[c],e.dontCallGetSet?(f=yue(o,c),l=f&&f.value):l=o[c],a=Sue(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof p==typeof l)continue;vue(p,l)}(e.sham||l&&l.sham)&&Iue(p,"sham",!0),gue(o,c,p,e)}}});var Vp=w((Uwe,Xx)=>{"use strict";m();T();N();var gO=mi(),mE=Set.prototype;Xx.exports={Set,add:gO(mE.add),has:gO(mE.has),remove:gO(mE.delete),proto:mE}});var _O=w((qwe,Zx)=>{"use strict";m();T();N();var Oue=Vp().has;Zx.exports=function(e){return Oue(e),e}});var tq=w((Gwe,eq)=>{"use strict";m();T();N();var Due=mi(),bue=rE();eq.exports=function(e,t,n){try{return Due(bue(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var vO=w((Jwe,nq)=>{"use strict";m();T();N();var Aue=tq(),Rue=Vp();nq.exports=Aue(Rue.proto,"size","get")||function(e){return e.size}});var SO=w((Xwe,rq)=>{"use strict";m();T();N();var Pue=pc();rq.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=Pue(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var cq=w((nLe,uq)=>{"use strict";m();T();N();var iq=mi(),Fue=SO(),aq=Vp(),wue=aq.Set,sq=aq.proto,Lue=iq(sq.forEach),oq=iq(sq.keys),Cue=oq(new wue).next;uq.exports=function(e,t,n){return n?Fue({iterator:oq(e),next:Cue},t):Lue(e,t)}});var dq=w((sLe,lq)=>{"use strict";m();T();N();lq.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var OO=w((lLe,Eq)=>{"use strict";m();T();N();var pq=rE(),Nq=Mp(),fq=pc(),Bue=pE(),Uue=dq(),mq="Invalid size",kue=RangeError,Mue=TypeError,xue=Math.max,Tq=function(e,t){this.set=e,this.size=xue(t,0),this.has=pq(e.has),this.keys=pq(e.keys)};Tq.prototype={getIterator:function(){return Uue(Nq(fq(this.keys,this.set)))},includes:function(e){return fq(this.has,this.set,e)}};Eq.exports=function(e){Nq(e);var t=+e.size;if(t!==t)throw new Mue(mq);var n=Bue(t);if(n<0)throw new kue(mq);return new Tq(e,n)}});var yq=w((mLe,hq)=>{"use strict";m();T();N();var que=_O(),Vue=vO(),jue=cq(),Kue=OO();hq.exports=function(t){var n=que(this),r=Kue(t);return Vue(n)>r.size?!1:jue(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var DO=w((hLe,_q)=>{"use strict";m();T();N();var Gue=tE(),Iq=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},gq=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};_q.exports=function(e,t){var n=Gue("Set");try{new n()[e](Iq(0));try{return new n()[e](Iq(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](gq(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](gq(1/0)))}}}catch(i){return!1}}});var vq=w(()=>{"use strict";m();T();N();var $ue=IO(),Que=yq(),Yue=DO(),Jue=!Yue("isSubsetOf",function(e){return e});$ue({target:"Set",proto:!0,real:!0,forced:Jue},{isSubsetOf:Que})});var Sq=w(()=>{"use strict";m();T();N();vq()});var bq=w((wLe,Dq)=>{"use strict";m();T();N();var Hue=pc(),Oq=Mp(),zue=JS();Dq.exports=function(e,t,n){var r,i;Oq(e);try{if(r=zue(e,"return"),!r){if(t==="throw")throw n;return n}r=Hue(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Oq(r),n}});var Rq=w((ULe,Aq)=>{"use strict";m();T();N();var Wue=_O(),Xue=Vp().has,Zue=vO(),ece=OO(),tce=SO(),nce=bq();Aq.exports=function(t){var n=Wue(this),r=ece(t);if(Zue(n){"use strict";m();T();N();var rce=IO(),ice=Rq(),ace=DO(),sce=!ace("isSupersetOf",function(e){return!e});rce({target:"Set",proto:!0,real:!0,forced:sce},{isSupersetOf:ice})});var Fq=w(()=>{"use strict";m();T();N();Pq()});var jp=w(Cn=>{"use strict";m();T();N();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.subtractSet=oce;Cn.mapToArrayOfValues=uce;Cn.kindToConvertedTypeString=cce;Cn.fieldDatasToSimpleFieldDatas=lce;Cn.isNodeLeaf=dce;Cn.newEntityInterfaceFederationData=pce;Cn.upsertEntityInterfaceFederationData=fce;Cn.upsertEntityData=Nce;Cn.updateEntityData=wq;Cn.newFieldAuthorizationData=Tce;Cn.newAuthorizationData=Ece;Cn.addScopes=bO;Cn.mergeRequiredScopesByAND=EE;Cn.mergeRequiredScopesByOR=AO;Cn.upsertFieldAuthorizationData=Lq;Cn.upsertAuthorizationData=Ice;Cn.upsertAuthorizationConfiguration=gce;Cn.isNodeKindObject=_ce;Cn.isInterfaceDefinitionData=vce;Cn.isObjectDefinitionData=Sce;var en=Ae(),Zr=ur(),NE=Jr(),TE=Es();Sq();Fq();function oce(e,t){for(let n of e)t.delete(n)}function uce(e){let t=[];for(let n of e.values())t.push(n);return t}function cce(e){switch(e){case en.Kind.BOOLEAN:return Zr.BOOLEAN_SCALAR;case en.Kind.ENUM:case en.Kind.ENUM_TYPE_DEFINITION:case en.Kind.ENUM_TYPE_EXTENSION:return Zr.ENUM;case en.Kind.ENUM_VALUE_DEFINITION:return Zr.ENUM_VALUE;case en.Kind.FIELD_DEFINITION:return Zr.FIELD;case en.Kind.FLOAT:return Zr.FLOAT_SCALAR;case en.Kind.INPUT_OBJECT_TYPE_DEFINITION:case en.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Zr.INPUT_OBJECT;case en.Kind.INPUT_VALUE_DEFINITION:return Zr.INPUT_VALUE;case en.Kind.INT:return Zr.INT_SCALAR;case en.Kind.INTERFACE_TYPE_DEFINITION:case en.Kind.INTERFACE_TYPE_EXTENSION:return Zr.INTERFACE;case en.Kind.NULL:return Zr.NULL;case en.Kind.OBJECT:case en.Kind.OBJECT_TYPE_DEFINITION:case en.Kind.OBJECT_TYPE_EXTENSION:return Zr.OBJECT;case en.Kind.STRING:return Zr.STRING_SCALAR;case en.Kind.SCALAR_TYPE_DEFINITION:case en.Kind.SCALAR_TYPE_EXTENSION:return Zr.SCALAR;case en.Kind.UNION_TYPE_DEFINITION:case en.Kind.UNION_TYPE_EXTENSION:return Zr.UNION;default:return e}}function lce(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function dce(e){if(!e)return!0;switch(e){case en.Kind.OBJECT_TYPE_DEFINITION:case en.Kind.INTERFACE_TYPE_DEFINITION:case en.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function pce(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function fce(e,t,n){(0,NE.addIterableValuesToSet)(t.concreteTypeNames,e.concreteTypeNames),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,NE.addIterableValuesToSet)(t.interfaceFieldNames,e.interfaceFieldNames),(0,NE.addIterableValuesToSet)(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject&&e.interfaceObjectSubgraphs.add(n)}function mce({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:c}]of e)c||i.set(a,o);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function Nce({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?wq({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,mce({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function wq({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:n}){e.subgraphNames.add(n);let r=e.keyFieldSetDatasBySubgraphName.get(n);if(!r){e.keyFieldSetDatasBySubgraphName.set(n,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=r.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}r.set(i,a)}}function Tce(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function Ece(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function bO(e,t){for(let n=e.length-1;n>-1;n--){if(e[n].isSubsetOf(t))return;e[n].isSupersetOf(t)&&e.splice(n,1)}e.push(t)}function EE(e,t){if(e.length<1||t.length<1){for(let r of t)e.push(new Set(r));return e}let n=[];for(let r of t)for(let i of e){let a=(0,NE.addSets)(r,i);bO(n,a)}return n}function AO(e,t){for(let n of t)bO(e,n);return e.length<=TE.MAX_OR_SCOPES}function Lq(e,t){var i,a;let n=t.fieldName,r=e.get(n);return r?((i=r.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=r.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!AO(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>TE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>TE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=EE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=EE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,Cq(t)),!0)}function hce(e){let t=new Map;for(let[n,r]of e)t.set(n,Cq(r));return t}function Cq(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function yce(e){return{fieldAuthDataByFieldName:hce(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function Ice(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,yce(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!AO(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>TE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=EE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)Lq(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function gce(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthDataByFieldName){let a=`${n}.${r}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(c=>[...c]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(c=>[...c])):e.set(a,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(c=>[...c]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(c=>[...c])})}}function _ce(e){return e===en.Kind.OBJECT_TYPE_DEFINITION||e===en.Kind.OBJECT_TYPE_EXTENSION}function vce(e){return e.kind===en.Kind.INTERFACE_TYPE_DEFINITION}function Sce(e){return e?e.kind===en.Kind.OBJECT_TYPE_DEFINITION:!1}});var RO=w(Je=>{"use strict";m();T();N();Object.defineProperty(Je,"__esModule",{value:!0});Je.TAG_DEFINITION_DATA=Je.SUBSCRIPTION_FILTER_DEFINITION_DATA=Je.SHAREABLE_DEFINITION_DATA=Je.SPECIFIED_BY_DEFINITION_DATA=Je.REQUIRES_SCOPES_DEFINITION_DATA=Je.REQUIRES_DEFINITION_DATA=Je.PROVIDES_DEFINITION_DATA=Je.LINK_DEFINITION_DATA=Je.KEY_DEFINITION_DATA=Je.OVERRIDE_DEFINITION_DATA=Je.REDIS_SUBSCRIBE_DEFINITION_DATA=Je.REDIS_PUBLISH_DEFINITION_DATA=Je.NATS_SUBSCRIBE_DEFINITION_DATA=Je.NATS_REQUEST_DEFINITION_DATA=Je.NATS_PUBLISH_DEFINITION_DATA=Je.KAFKA_SUBSCRIBE_DEFINITION_DATA=Je.KAFKA_PUBLISH_DEFINITION_DATA=Je.INTERFACE_OBJECT_DEFINITION_DATA=Je.INACCESSIBLE_DEFINITION_DATA=Je.EXTERNAL_DEFINITION_DATA=Je.EXTENDS_DEFINITION_DATA=Je.DEPRECATED_DEFINITION_DATA=Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=Je.COMPOSE_DIRECTIVE_DEFINITION_DATA=Je.AUTHENTICATED_DEFINITION_DATA=void 0;var rt=Es(),da=Yr(),ln=Ae(),q=ur();Je.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.AUTHENTICATED,node:rt.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.NAME,{name:q.NAME,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.COMPOSE_DIRECTIVE,node:rt.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])};Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}],[q.DESCRIPTION_OVERRIDE,{name:q.DESCRIPTION_OVERRIDE,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.INPUT_OBJECT_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.SCHEMA_UPPER,q.UNION_UPPER]),name:q.CONFIGURE_DESCRIPTION,node:rt.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE,q.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.CONFIGURE_CHILD_DESCRIPTIONS,node:rt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE]),requiredArgumentNames:new Set};Je.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.REASON,{name:q.REASON,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR),defaultValue:{kind:ln.Kind.STRING,value:ln.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER]),name:q.DEPRECATED,node:rt.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([q.REASON]),requiredArgumentNames:new Set};Je.EXTENDS_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.EXTENDS,node:rt.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.EXTERNAL,node:rt.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.INACCESSIBLE,node:rt.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.OBJECT_UPPER]),name:q.INTERFACE_OBJECT,node:rt.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.TOPIC,{name:q.TOPIC,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_PUBLISH,node:rt.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPIC])};Je.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.TOPICS,{name:q.TOPICS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_SUBSCRIBE,node:rt.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPICS])};Je.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_PUBLISH,node:rt.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};Je.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_REQUEST,node:rt.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};Je.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECTS,{name:q.SUBJECTS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}],[q.STREAM_CONFIGURATION,{name:q.STREAM_CONFIGURATION,typeNode:(0,da.stringToNamedTypeNode)(q.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_SUBSCRIBE,node:rt.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECTS])};Je.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CHANNEL,{name:q.CHANNEL,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_PUBLISH,node:rt.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNEL])};Je.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CHANNELS,{name:q.CHANNELS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_SUBSCRIBE,node:rt.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNELS])};Je.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FROM,{name:q.FROM,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.OVERRIDE,node:rt.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FROM])};Je.KEY_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}],[q.RESOLVABLE,{name:q.RESOLVABLE,typeNode:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR),defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.KEY,node:rt.KEY_DEFINITION,optionalArgumentNames:new Set([q.RESOLVABLE]),requiredArgumentNames:new Set([q.FIELDS])};Je.LINK_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.AS,{name:q.AS,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR)}],[q.FOR,{name:q.FOR,typeNode:(0,da.stringToNamedTypeNode)(q.LINK_PURPOSE)}],[q.IMPORT,{name:q.IMPORT,typeNode:{kind:ln.Kind.LIST_TYPE,type:(0,da.stringToNamedTypeNode)(q.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.LINK,node:rt.LINK_DEFINITION,optionalArgumentNames:new Set([q.AS,q.FOR,q.IMPORT]),requiredArgumentNames:new Set([q.URL_LOWER])};Je.PROVIDES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.PROVIDES,node:rt.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};Je.REQUIRES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.REQUIRES,node:rt.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};Je.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SCOPES,{name:q.SCOPES,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.REQUIRES_SCOPES,node:rt.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.SCOPES])};Je.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.SCALAR_UPPER]),name:q.SPECIFIED_BY,node:rt.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.URL_LOWER])};Je.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!0,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.SHAREABLE,node:rt.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CONDITION,{name:q.CONDITION,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.SUBSCRIPTION_FILTER,node:rt.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.CONDITION])};Je.TAG_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.NAME,{name:q.NAME,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.TAG,node:rt.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])}});var Kp=w(pa=>{"use strict";m();T();N();Object.defineProperty(pa,"__esModule",{value:!0});pa.newFieldSetData=Oce;pa.extractFieldSetValue=Dce;pa.getNormalizedFieldSet=bce;pa.getInitialFieldCoordsPath=Ace;pa.validateKeyFieldSets=Rce;pa.getConditionalFieldSetDirectiveName=Pce;pa.isNodeQuery=Fce;pa.validateArgumentTemplateReferences=wce;pa.initializeDirectiveDefinitionDatas=Lce;var er=Ae(),Bq=Yr(),br=ia(),Uq=Es(),PO=su(),mn=RO(),Mt=ur(),Nu=Jr();function Oce(){return{provides:new Map,requires:new Map}}function Dce(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!==Mt.FIELDS||i.value.kind!==er.Kind.STRING||t.set(e,i.value.value)}function bce(e){return(0,er.print)((0,Bq.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function Ace(e,t){return e?[t]:[]}function Rce(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=[],c=r?void 0:e.internalGraph.addEntityDataNode(t.name),l=e.internalGraph.addOrUpdateNode(t.name),p=0;for(let[f,{documentNode:y,isUnresolvable:g,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!g)),p+=1;let P=[],M=[t],K=[],G=[],Z=new Set,W=-1,Te=!0,fe="";if((0,er.visit)(y,{Argument:{enter(we){return P.push((0,br.unexpectedArgumentErrorMessage)(v,`${M[W].name}.${fe}`,we.name.value)),er.BREAK}},Field:{enter(we){let je=M[W],it=je.name;if(Te){let Dn=`${it}.${fe}`,Vt=je.fieldDataByName.get(fe);if(!Vt)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,Dn,fe)),er.BREAK;let dn=(0,PO.getTypeNodeNamedTypeName)(Vt.node.type),Ar=e.parentDefinitionDataByTypeName.get(dn),Rr=Ar?Ar.kind:er.Kind.SCALAR_TYPE_DEFINITION;return P.push((0,br.invalidSelectionSetErrorMessage)(v,[Dn],dn,(0,Nu.kindToNodeType)(Rr))),er.BREAK}let ee=we.name.value,ve=`${it}.${ee}`;fe=ee;let gt=je.fieldDataByName.get(ee);if(!gt)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,it,ee)),er.BREAK;if(gt.argumentDataByName.size)return P.push((0,br.argumentsInKeyFieldSetErrorMessage)(v,ve)),er.BREAK;if(K[W].has(ee))return P.push((0,br.duplicateFieldInFieldSetErrorMessage)(v,ve)),er.BREAK;(0,Nu.getValueOrDefault)((0,Nu.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,ve,()=>new Map),i,()=>new Set).add(f),G.push(ee),gt.isShareableBySubgraphName.set(e.subgraphName,!0),K[W].add(ee),(0,Nu.getValueOrDefault)(e.keyFieldNamesByParentTypeName,it,()=>new Set).add(ee);let zt=(0,PO.getTypeNodeNamedTypeName)(gt.node.type);if(Uq.BASE_SCALARS.has(zt)){Z.add(G.join(Mt.PERIOD)),G.pop();return}let Wt=e.parentDefinitionDataByTypeName.get(zt);if(!Wt)return P.push((0,br.unknownTypeInFieldSetErrorMessage)(v,ve,zt)),er.BREAK;if(Wt.kind===er.Kind.OBJECT_TYPE_DEFINITION){Te=!0,M.push(Wt);return}if((0,Bq.isKindAbstract)(Wt.kind))return P.push((0,br.abstractTypeInKeyFieldSetErrorMessage)(v,ve,zt,(0,Nu.kindToNodeType)(Wt.kind))),er.BREAK;Z.add(G.join(Mt.PERIOD)),G.pop()}},InlineFragment:{enter(){return P.push(br.inlineFragmentInFieldSetErrorMessage),er.BREAK}},SelectionSet:{enter(){if(!Te){let we=M[W],it=`${we.name}.${fe}`,ee=we.fieldDataByName.get(fe);if(!ee)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,it,fe)),er.BREAK;let ve=(0,PO.getTypeNodeNamedTypeName)(ee.node.type),gt=e.parentDefinitionDataByTypeName.get(ve),zt=gt?gt.kind:er.Kind.SCALAR_TYPE_DEFINITION;return P.push((0,br.invalidSelectionSetDefinitionErrorMessage)(v,[it],ve,(0,Nu.kindToNodeType)(zt))),er.BREAK}if(W+=1,Te=!1,W<0||W>=M.length)return P.push((0,br.unparsableFieldSetSelectionErrorMessage)(v,fe)),er.BREAK;K.push(new Set)},leave(){if(Te){let je=M[W].name,it=M[W+1],ee=`${je}.${fe}`;P.push((0,br.invalidSelectionSetErrorMessage)(v,[ee],it.name,(0,Nu.kindToNodeType)(it.kind))),Te=!1}W-=1,M.pop(),K.pop()}}}),P.length>0){e.errors.push((0,br.invalidDirectiveError)(Mt.KEY,i,(0,Nu.numberToOrdinal)(p),P));continue}a.push(x({fieldName:"",selectionSet:f},g?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(f),!g&&(c==null||c.addTargetSubgraphByFieldSet(f,e.subgraphName),o.push(Z))}if(a.length>0)return a}function Pce(e){return e?Mt.PROVIDES:Mt.REQUIRES}function Fce(e,t){return e===Mt.QUERY||t===er.OperationTypeNode.QUERY}function wce(e,t,n){let r=e.matchAll(Uq.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of r){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,br.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,br.invalidEventSubjectsArgumentErrorMessage)(o))}function Lce(){return new Map([[Mt.AUTHENTICATED,mn.AUTHENTICATED_DEFINITION_DATA],[Mt.COMPOSE_DIRECTIVE,mn.COMPOSE_DIRECTIVE_DEFINITION_DATA],[Mt.CONFIGURE_DESCRIPTION,mn.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[Mt.CONFIGURE_CHILD_DESCRIPTIONS,mn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[Mt.DEPRECATED,mn.DEPRECATED_DEFINITION_DATA],[Mt.EDFS_KAFKA_PUBLISH,mn.KAFKA_PUBLISH_DEFINITION_DATA],[Mt.EDFS_KAFKA_SUBSCRIBE,mn.KAFKA_SUBSCRIBE_DEFINITION_DATA],[Mt.EDFS_NATS_PUBLISH,mn.NATS_PUBLISH_DEFINITION_DATA],[Mt.EDFS_NATS_REQUEST,mn.NATS_REQUEST_DEFINITION_DATA],[Mt.EDFS_NATS_SUBSCRIBE,mn.NATS_SUBSCRIBE_DEFINITION_DATA],[Mt.EDFS_REDIS_PUBLISH,mn.REDIS_PUBLISH_DEFINITION_DATA],[Mt.EDFS_REDIS_SUBSCRIBE,mn.REDIS_SUBSCRIBE_DEFINITION_DATA],[Mt.EXTENDS,mn.EXTENDS_DEFINITION_DATA],[Mt.EXTERNAL,mn.EXTERNAL_DEFINITION_DATA],[Mt.INACCESSIBLE,mn.INACCESSIBLE_DEFINITION_DATA],[Mt.INTERFACE_OBJECT,mn.INTERFACE_OBJECT_DEFINITION_DATA],[Mt.KEY,mn.KEY_DEFINITION_DATA],[Mt.LINK,mn.LINK_DEFINITION_DATA],[Mt.OVERRIDE,mn.OVERRIDE_DEFINITION_DATA],[Mt.PROVIDES,mn.PROVIDES_DEFINITION_DATA],[Mt.REQUIRES,mn.REQUIRES_DEFINITION_DATA],[Mt.REQUIRES_SCOPES,mn.REQUIRES_SCOPES_DEFINITION_DATA],[Mt.SHAREABLE,mn.SHAREABLE_DEFINITION_DATA],[Mt.SPECIFIED_BY,mn.SPECIFIED_BY_DEFINITION_DATA],[Mt.SUBSCRIPTION_FILTER,mn.SUBSCRIPTION_FILTER_DEFINITION_DATA],[Mt.TAG,mn.TAG_DEFINITION_DATA]])}});var wO=w(FO=>{"use strict";m();T();N();Object.defineProperty(FO,"__esModule",{value:!0});FO.recordSubgraphName=Cce;function Cce(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var CO=w(hE=>{"use strict";m();T();N();Object.defineProperty(hE,"__esModule",{value:!0});hE.Warning=void 0;var LO=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};hE.Warning=LO});var IE=w(fa=>{"use strict";m();T();N();Object.defineProperty(fa,"__esModule",{value:!0});fa.invalidOverrideTargetSubgraphNameWarning=Bce;fa.externalInterfaceFieldsWarning=Uce;fa.nonExternalConditionalFieldWarning=kce;fa.unimplementedInterfaceOutputTypeWarning=Mce;fa.invalidExternalFieldWarning=xce;fa.requiresDefinedOnNonEntityFieldWarning=qce;fa.consumerInactiveThresholdInvalidValueWarning=Vce;fa.externalEntityExtensionKeyFieldWarning=jce;fa.fieldAlreadyProvidedWarning=Kce;var gs=CO(),BO=ur();function Bce(e,t,n,r){return new gs.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(BO.QUOTATION_JOIN)+`". + "`+n.join(We.QUOTATION_JOIN)+'"')}function gae({data:e,namedTypeData:t,nodeType:n}){let r=(0,Gne.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,$ne.printTypeNode)(e.type)+`; however, ${(0,ql.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}});var Ak=w(bk=>{"use strict";m();T();N();Object.defineProperty(bk,"__esModule",{value:!0})});var Up=w(ji=>{"use strict";m();T();N();Object.defineProperty(ji,"__esModule",{value:!0});ji.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=ji.SUBSCRIPTION_FILTER_INPUT_NAMES=ji.STREAM_CONFIGURATION_FIELD_NAMES=ji.EVENT_DIRECTIVE_NAMES=ji.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var cn=ur();ji.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([cn.ARGUMENT_DEFINITION_UPPER,cn.ENUM_UPPER,cn.ENUM_VALUE_UPPER,cn.FIELD_DEFINITION_UPPER,cn.INPUT_FIELD_DEFINITION_UPPER,cn.INPUT_OBJECT_UPPER,cn.INTERFACE_UPPER,cn.OBJECT_UPPER,cn.SCALAR_UPPER,cn.SCHEMA_UPPER,cn.UNION_UPPER]);ji.EVENT_DIRECTIVE_NAMES=new Set([cn.EDFS_KAFKA_PUBLISH,cn.EDFS_KAFKA_SUBSCRIBE,cn.EDFS_NATS_PUBLISH,cn.EDFS_NATS_REQUEST,cn.EDFS_NATS_SUBSCRIBE,cn.EDFS_REDIS_PUBLISH,cn.EDFS_REDIS_SUBSCRIBE]);ji.STREAM_CONFIGURATION_FIELD_NAMES=new Set([cn.CONSUMER_INACTIVE_THRESHOLD,cn.CONSUMER_NAME,cn.STREAM_NAME]);ji.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([cn.AND_UPPER,cn.IN_UPPER,cn.NOT_UPPER,cn.OR_UPPER]);ji.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([cn.AND_UPPER,cn.OR_UPPER])});var Ki=w((BS,Rk)=>{"use strict";m();T();N();var kp=function(e){return e&&e.Math===Math&&e};Rk.exports=kp(typeof globalThis=="object"&&globalThis)||kp(typeof window=="object"&&window)||kp(typeof self=="object"&&self)||kp(typeof global=="object"&&global)||kp(typeof BS=="object"&&BS)||function(){return this}()||Function("return this")()});var Is=w((z0e,Pk)=>{"use strict";m();T();N();Pk.exports=function(e){try{return!!e()}catch(t){return!0}}});var fu=w((eAe,Fk)=>{"use strict";m();T();N();var _ae=Is();Fk.exports=!_ae(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var US=w((iAe,wk)=>{"use strict";m();T();N();var vae=Is();wk.exports=!vae(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var pc=w((uAe,Lk)=>{"use strict";m();T();N();var Sae=US(),ZT=Function.prototype.call;Lk.exports=Sae?ZT.bind(ZT):function(){return ZT.apply(ZT,arguments)}});var kk=w(Uk=>{"use strict";m();T();N();var Ck={}.propertyIsEnumerable,Bk=Object.getOwnPropertyDescriptor,Oae=Bk&&!Ck.call({1:2},1);Uk.f=Oae?function(t){var n=Bk(this,t);return!!n&&n.enumerable}:Ck});var kS=w((TAe,Mk)=>{"use strict";m();T();N();Mk.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var mi=w((IAe,Vk)=>{"use strict";m();T();N();var xk=US(),qk=Function.prototype,MS=qk.call,Dae=xk&&qk.bind.bind(MS,MS);Vk.exports=xk?Dae:function(e){return function(){return MS.apply(e,arguments)}}});var Gk=w((SAe,Kk)=>{"use strict";m();T();N();var jk=mi(),bae=jk({}.toString),Aae=jk("".slice);Kk.exports=function(e){return Aae(bae(e),8,-1)}});var Qk=w((AAe,$k)=>{"use strict";m();T();N();var Rae=mi(),Pae=Is(),Fae=Gk(),xS=Object,wae=Rae("".split);$k.exports=Pae(function(){return!xS("z").propertyIsEnumerable(0)})?function(e){return Fae(e)==="String"?wae(e,""):xS(e)}:xS});var qS=w((wAe,Yk)=>{"use strict";m();T();N();Yk.exports=function(e){return e==null}});var VS=w((UAe,Jk)=>{"use strict";m();T();N();var Lae=qS(),Cae=TypeError;Jk.exports=function(e){if(Lae(e))throw new Cae("Can't call method on "+e);return e}});var eE=w((qAe,Hk)=>{"use strict";m();T();N();var Bae=Qk(),Uae=VS();Hk.exports=function(e){return Bae(Uae(e))}});var ua=w((GAe,zk)=>{"use strict";m();T();N();var jS=typeof document=="object"&&document.all;zk.exports=typeof jS=="undefined"&&jS!==void 0?function(e){return typeof e=="function"||e===jS}:function(e){return typeof e=="function"}});var Vl=w((JAe,Wk)=>{"use strict";m();T();N();var kae=ua();Wk.exports=function(e){return typeof e=="object"?e!==null:kae(e)}});var tE=w((XAe,Xk)=>{"use strict";m();T();N();var KS=Ki(),Mae=ua(),xae=function(e){return Mae(e)?e:void 0};Xk.exports=function(e,t){return arguments.length<2?xae(KS[e]):KS[e]&&KS[e][t]}});var eM=w((nRe,Zk)=>{"use strict";m();T();N();var qae=mi();Zk.exports=qae({}.isPrototypeOf)});var iM=w((sRe,rM)=>{"use strict";m();T();N();var Vae=Ki(),tM=Vae.navigator,nM=tM&&tM.userAgent;rM.exports=nM?String(nM):""});var dM=w((lRe,lM)=>{"use strict";m();T();N();var cM=Ki(),GS=iM(),aM=cM.process,sM=cM.Deno,oM=aM&&aM.versions||sM&&sM.version,uM=oM&&oM.v8,ca,nE;uM&&(ca=uM.split("."),nE=ca[0]>0&&ca[0]<4?1:+(ca[0]+ca[1]));!nE&&GS&&(ca=GS.match(/Edge\/(\d+)/),(!ca||ca[1]>=74)&&(ca=GS.match(/Chrome\/(\d+)/),ca&&(nE=+ca[1])));lM.exports=nE});var $S=w((mRe,fM)=>{"use strict";m();T();N();var pM=dM(),jae=Is(),Kae=Ki(),Gae=Kae.String;fM.exports=!!Object.getOwnPropertySymbols&&!jae(function(){var e=Symbol("symbol detection");return!Gae(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pM&&pM<41})});var QS=w((hRe,mM)=>{"use strict";m();T();N();var $ae=$S();mM.exports=$ae&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var YS=w((_Re,NM)=>{"use strict";m();T();N();var Qae=tE(),Yae=ua(),Jae=eM(),Hae=QS(),zae=Object;NM.exports=Hae?function(e){return typeof e=="symbol"}:function(e){var t=Qae("Symbol");return Yae(t)&&Jae(t.prototype,zae(e))}});var EM=w((DRe,TM)=>{"use strict";m();T();N();var Wae=String;TM.exports=function(e){try{return Wae(e)}catch(t){return"Object"}}});var rE=w((PRe,hM)=>{"use strict";m();T();N();var Xae=ua(),Zae=EM(),ese=TypeError;hM.exports=function(e){if(Xae(e))return e;throw new ese(Zae(e)+" is not a function")}});var JS=w((CRe,yM)=>{"use strict";m();T();N();var tse=rE(),nse=qS();yM.exports=function(e,t){var n=e[t];return nse(n)?void 0:tse(n)}});var gM=w((MRe,IM)=>{"use strict";m();T();N();var HS=pc(),zS=ua(),WS=Vl(),rse=TypeError;IM.exports=function(e,t){var n,r;if(t==="string"&&zS(n=e.toString)&&!WS(r=HS(n,e))||zS(n=e.valueOf)&&!WS(r=HS(n,e))||t!=="string"&&zS(n=e.toString)&&!WS(r=HS(n,e)))return r;throw new rse("Can't convert object to primitive value")}});var vM=w((jRe,_M)=>{"use strict";m();T();N();_M.exports=!1});var iE=w((QRe,OM)=>{"use strict";m();T();N();var SM=Ki(),ise=Object.defineProperty;OM.exports=function(e,t){try{ise(SM,e,{value:t,configurable:!0,writable:!0})}catch(n){SM[e]=t}return t}});var aE=w((zRe,AM)=>{"use strict";m();T();N();var ase=vM(),sse=Ki(),ose=iE(),DM="__core-js_shared__",bM=AM.exports=sse[DM]||ose(DM,{});(bM.versions||(bM.versions=[])).push({version:"3.41.0",mode:ase?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var XS=w((ePe,PM)=>{"use strict";m();T();N();var RM=aE();PM.exports=function(e,t){return RM[e]||(RM[e]=t||{})}});var wM=w((iPe,FM)=>{"use strict";m();T();N();var use=VS(),cse=Object;FM.exports=function(e){return cse(use(e))}});var mu=w((uPe,LM)=>{"use strict";m();T();N();var lse=mi(),dse=wM(),pse=lse({}.hasOwnProperty);LM.exports=Object.hasOwn||function(t,n){return pse(dse(t),n)}});var ZS=w((pPe,CM)=>{"use strict";m();T();N();var fse=mi(),mse=0,Nse=Math.random(),Tse=fse(1 .toString);CM.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Tse(++mse+Nse,36)}});var kM=w((TPe,UM)=>{"use strict";m();T();N();var Ese=Ki(),hse=XS(),BM=mu(),yse=ZS(),Ise=$S(),gse=QS(),jl=Ese.Symbol,eO=hse("wks"),_se=gse?jl.for||jl:jl&&jl.withoutSetter||yse;UM.exports=function(e){return BM(eO,e)||(eO[e]=Ise&&BM(jl,e)?jl[e]:_se("Symbol."+e)),eO[e]}});var VM=w((IPe,qM)=>{"use strict";m();T();N();var vse=pc(),MM=Vl(),xM=YS(),Sse=JS(),Ose=gM(),Dse=kM(),bse=TypeError,Ase=Dse("toPrimitive");qM.exports=function(e,t){if(!MM(e)||xM(e))return e;var n=Sse(e,Ase),r;if(n){if(t===void 0&&(t="default"),r=vse(n,e,t),!MM(r)||xM(r))return r;throw new bse("Can't convert object to primitive value")}return t===void 0&&(t="number"),Ose(e,t)}});var tO=w((SPe,jM)=>{"use strict";m();T();N();var Rse=VM(),Pse=YS();jM.exports=function(e){var t=Rse(e,"string");return Pse(t)?t:t+""}});var $M=w((APe,GM)=>{"use strict";m();T();N();var Fse=Ki(),KM=Vl(),nO=Fse.document,wse=KM(nO)&&KM(nO.createElement);GM.exports=function(e){return wse?nO.createElement(e):{}}});var rO=w((wPe,QM)=>{"use strict";m();T();N();var Lse=fu(),Cse=Is(),Bse=$M();QM.exports=!Lse&&!Cse(function(){return Object.defineProperty(Bse("div"),"a",{get:function(){return 7}}).a!==7})});var iO=w(JM=>{"use strict";m();T();N();var Use=fu(),kse=pc(),Mse=kk(),xse=kS(),qse=eE(),Vse=tO(),jse=mu(),Kse=rO(),YM=Object.getOwnPropertyDescriptor;JM.f=Use?YM:function(t,n){if(t=qse(t),n=Vse(n),Kse)try{return YM(t,n)}catch(r){}if(jse(t,n))return xse(!kse(Mse.f,t,n),t[n])}});var zM=w((qPe,HM)=>{"use strict";m();T();N();var Gse=fu(),$se=Is();HM.exports=Gse&&$se(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Mp=w((GPe,WM)=>{"use strict";m();T();N();var Qse=Vl(),Yse=String,Jse=TypeError;WM.exports=function(e){if(Qse(e))return e;throw new Jse(Yse(e)+" is not an object")}});var oE=w(ZM=>{"use strict";m();T();N();var Hse=fu(),zse=rO(),Wse=zM(),sE=Mp(),XM=tO(),Xse=TypeError,aO=Object.defineProperty,Zse=Object.getOwnPropertyDescriptor,sO="enumerable",oO="configurable",uO="writable";ZM.f=Hse?Wse?function(t,n,r){if(sE(t),n=XM(n),sE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&uO in r&&!r[uO]){var i=Zse(t,n);i&&i[uO]&&(t[n]=r.value,r={configurable:oO in r?r[oO]:i[oO],enumerable:sO in r?r[sO]:i[sO],writable:!1})}return aO(t,n,r)}:aO:function(t,n,r){if(sE(t),n=XM(n),sE(r),zse)try{return aO(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new Xse("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var cO=w((XPe,ex)=>{"use strict";m();T();N();var eoe=fu(),toe=oE(),noe=kS();ex.exports=eoe?function(e,t,n){return toe.f(e,t,noe(1,n))}:function(e,t,n){return e[t]=n,e}});var rx=w((nFe,nx)=>{"use strict";m();T();N();var lO=fu(),roe=mu(),tx=Function.prototype,ioe=lO&&Object.getOwnPropertyDescriptor,dO=roe(tx,"name"),aoe=dO&&function(){}.name==="something",soe=dO&&(!lO||lO&&ioe(tx,"name").configurable);nx.exports={EXISTS:dO,PROPER:aoe,CONFIGURABLE:soe}});var ax=w((sFe,ix)=>{"use strict";m();T();N();var ooe=mi(),uoe=ua(),pO=aE(),coe=ooe(Function.toString);uoe(pO.inspectSource)||(pO.inspectSource=function(e){return coe(e)});ix.exports=pO.inspectSource});var ux=w((lFe,ox)=>{"use strict";m();T();N();var loe=Ki(),doe=ua(),sx=loe.WeakMap;ox.exports=doe(sx)&&/native code/.test(String(sx))});var dx=w((mFe,lx)=>{"use strict";m();T();N();var poe=XS(),foe=ZS(),cx=poe("keys");lx.exports=function(e){return cx[e]||(cx[e]=foe(e))}});var fO=w((hFe,px)=>{"use strict";m();T();N();px.exports={}});var Tx=w((_Fe,Nx)=>{"use strict";m();T();N();var moe=ux(),mx=Ki(),Noe=Vl(),Toe=cO(),mO=mu(),NO=aE(),Eoe=dx(),hoe=fO(),fx="Object already initialized",TO=mx.TypeError,yoe=mx.WeakMap,uE,xp,cE,Ioe=function(e){return cE(e)?xp(e):uE(e,{})},goe=function(e){return function(t){var n;if(!Noe(t)||(n=xp(t)).type!==e)throw new TO("Incompatible receiver, "+e+" required");return n}};moe||NO.state?(la=NO.state||(NO.state=new yoe),la.get=la.get,la.has=la.has,la.set=la.set,uE=function(e,t){if(la.has(e))throw new TO(fx);return t.facade=e,la.set(e,t),t},xp=function(e){return la.get(e)||{}},cE=function(e){return la.has(e)}):(fc=Eoe("state"),hoe[fc]=!0,uE=function(e,t){if(mO(e,fc))throw new TO(fx);return t.facade=e,Toe(e,fc,t),t},xp=function(e){return mO(e,fc)?e[fc]:{}},cE=function(e){return mO(e,fc)});var la,fc;Nx.exports={set:uE,get:xp,has:cE,enforce:Ioe,getterFor:goe}});var Ix=w((DFe,yx)=>{"use strict";m();T();N();var hO=mi(),_oe=Is(),voe=ua(),lE=mu(),EO=fu(),Soe=rx().CONFIGURABLE,Ooe=ax(),hx=Tx(),Doe=hx.enforce,boe=hx.get,Ex=String,dE=Object.defineProperty,Aoe=hO("".slice),Roe=hO("".replace),Poe=hO([].join),Foe=EO&&!_oe(function(){return dE(function(){},"length",{value:8}).length!==8}),woe=String(String).split("String"),Loe=yx.exports=function(e,t,n){Aoe(Ex(t),0,7)==="Symbol("&&(t="["+Roe(Ex(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!lE(e,"name")||Soe&&e.name!==t)&&(EO?dE(e,"name",{value:t,configurable:!0}):e.name=t),Foe&&n&&lE(n,"arity")&&e.length!==n.arity&&dE(e,"length",{value:n.arity});try{n&&lE(n,"constructor")&&n.constructor?EO&&dE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=Doe(e);return lE(r,"source")||(r.source=Poe(woe,typeof t=="string"?t:"")),e};Function.prototype.toString=Loe(function(){return voe(this)&&boe(this).source||Ooe(this)},"toString")});var _x=w((PFe,gx)=>{"use strict";m();T();N();var Coe=ua(),Boe=oE(),Uoe=Ix(),koe=iE();gx.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Coe(n)&&Uoe(n,a,r),r.global)i?e[t]=n:koe(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:Boe.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var Sx=w((CFe,vx)=>{"use strict";m();T();N();var Moe=Math.ceil,xoe=Math.floor;vx.exports=Math.trunc||function(t){var n=+t;return(n>0?xoe:Moe)(n)}});var pE=w((MFe,Ox)=>{"use strict";m();T();N();var qoe=Sx();Ox.exports=function(e){var t=+e;return t!==t||t===0?0:qoe(t)}});var bx=w((jFe,Dx)=>{"use strict";m();T();N();var Voe=pE(),joe=Math.max,Koe=Math.min;Dx.exports=function(e,t){var n=Voe(e);return n<0?joe(n+t,0):Koe(n,t)}});var Rx=w((QFe,Ax)=>{"use strict";m();T();N();var Goe=pE(),$oe=Math.min;Ax.exports=function(e){var t=Goe(e);return t>0?$oe(t,9007199254740991):0}});var Fx=w((zFe,Px)=>{"use strict";m();T();N();var Qoe=Rx();Px.exports=function(e){return Qoe(e.length)}});var Cx=w((ewe,Lx)=>{"use strict";m();T();N();var Yoe=eE(),Joe=bx(),Hoe=Fx(),wx=function(e){return function(t,n,r){var i=Yoe(t),a=Hoe(i);if(a===0)return!e&&-1;var o=Joe(r,a),c;if(e&&n!==n){for(;a>o;)if(c=i[o++],c!==c)return!0}else for(;a>o;o++)if((e||o in i)&&i[o]===n)return e||o||0;return!e&&-1}};Lx.exports={includes:wx(!0),indexOf:wx(!1)}});var kx=w((iwe,Ux)=>{"use strict";m();T();N();var zoe=mi(),yO=mu(),Woe=eE(),Xoe=Cx().indexOf,Zoe=fO(),Bx=zoe([].push);Ux.exports=function(e,t){var n=Woe(e),r=0,i=[],a;for(a in n)!yO(Zoe,a)&&yO(n,a)&&Bx(i,a);for(;t.length>r;)yO(n,a=t[r++])&&(~Xoe(i,a)||Bx(i,a));return i}});var xx=w((uwe,Mx)=>{"use strict";m();T();N();Mx.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Vx=w(qx=>{"use strict";m();T();N();var eue=kx(),tue=xx(),nue=tue.concat("length","prototype");qx.f=Object.getOwnPropertyNames||function(t){return eue(t,nue)}});var Kx=w(jx=>{"use strict";m();T();N();jx.f=Object.getOwnPropertySymbols});var $x=w((Iwe,Gx)=>{"use strict";m();T();N();var rue=tE(),iue=mi(),aue=Vx(),sue=Kx(),oue=Mp(),uue=iue([].concat);Gx.exports=rue("Reflect","ownKeys")||function(t){var n=aue.f(oue(t)),r=sue.f;return r?uue(n,r(t)):n}});var Jx=w((Swe,Yx)=>{"use strict";m();T();N();var Qx=mu(),cue=$x(),lue=iO(),due=oE();Yx.exports=function(e,t,n){for(var r=cue(t),i=due.f,a=lue.f,o=0;o{"use strict";m();T();N();var pue=Is(),fue=ua(),mue=/#|\.prototype\./,qp=function(e,t){var n=Tue[Nue(e)];return n===hue?!0:n===Eue?!1:fue(t)?pue(t):!!t},Nue=qp.normalize=function(e){return String(e).replace(mue,".").toLowerCase()},Tue=qp.data={},Eue=qp.NATIVE="N",hue=qp.POLYFILL="P";Hx.exports=qp});var IO=w((wwe,Wx)=>{"use strict";m();T();N();var fE=Ki(),yue=iO().f,Iue=cO(),gue=_x(),_ue=iE(),vue=Jx(),Sue=zx();Wx.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,p,f;if(r?o=fE:i?o=fE[n]||_ue(n,{}):o=fE[n]&&fE[n].prototype,o)for(c in t){if(p=t[c],e.dontCallGetSet?(f=yue(o,c),l=f&&f.value):l=o[c],a=Sue(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof p==typeof l)continue;vue(p,l)}(e.sham||l&&l.sham)&&Iue(p,"sham",!0),gue(o,c,p,e)}}});var Vp=w((Uwe,Xx)=>{"use strict";m();T();N();var gO=mi(),mE=Set.prototype;Xx.exports={Set,add:gO(mE.add),has:gO(mE.has),remove:gO(mE.delete),proto:mE}});var _O=w((qwe,Zx)=>{"use strict";m();T();N();var Oue=Vp().has;Zx.exports=function(e){return Oue(e),e}});var tq=w((Gwe,eq)=>{"use strict";m();T();N();var Due=mi(),bue=rE();eq.exports=function(e,t,n){try{return Due(bue(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var vO=w((Jwe,nq)=>{"use strict";m();T();N();var Aue=tq(),Rue=Vp();nq.exports=Aue(Rue.proto,"size","get")||function(e){return e.size}});var SO=w((Xwe,rq)=>{"use strict";m();T();N();var Pue=pc();rq.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=Pue(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var cq=w((nLe,uq)=>{"use strict";m();T();N();var iq=mi(),Fue=SO(),aq=Vp(),wue=aq.Set,sq=aq.proto,Lue=iq(sq.forEach),oq=iq(sq.keys),Cue=oq(new wue).next;uq.exports=function(e,t,n){return n?Fue({iterator:oq(e),next:Cue},t):Lue(e,t)}});var dq=w((sLe,lq)=>{"use strict";m();T();N();lq.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var OO=w((lLe,Eq)=>{"use strict";m();T();N();var pq=rE(),Nq=Mp(),fq=pc(),Bue=pE(),Uue=dq(),mq="Invalid size",kue=RangeError,Mue=TypeError,xue=Math.max,Tq=function(e,t){this.set=e,this.size=xue(t,0),this.has=pq(e.has),this.keys=pq(e.keys)};Tq.prototype={getIterator:function(){return Uue(Nq(fq(this.keys,this.set)))},includes:function(e){return fq(this.has,this.set,e)}};Eq.exports=function(e){Nq(e);var t=+e.size;if(t!==t)throw new Mue(mq);var n=Bue(t);if(n<0)throw new kue(mq);return new Tq(e,n)}});var yq=w((mLe,hq)=>{"use strict";m();T();N();var que=_O(),Vue=vO(),jue=cq(),Kue=OO();hq.exports=function(t){var n=que(this),r=Kue(t);return Vue(n)>r.size?!1:jue(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var DO=w((hLe,_q)=>{"use strict";m();T();N();var Gue=tE(),Iq=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},gq=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};_q.exports=function(e,t){var n=Gue("Set");try{new n()[e](Iq(0));try{return new n()[e](Iq(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](gq(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](gq(1/0)))}}}catch(i){return!1}}});var vq=w(()=>{"use strict";m();T();N();var $ue=IO(),Que=yq(),Yue=DO(),Jue=!Yue("isSubsetOf",function(e){return e});$ue({target:"Set",proto:!0,real:!0,forced:Jue},{isSubsetOf:Que})});var Sq=w(()=>{"use strict";m();T();N();vq()});var bq=w((wLe,Dq)=>{"use strict";m();T();N();var Hue=pc(),Oq=Mp(),zue=JS();Dq.exports=function(e,t,n){var r,i;Oq(e);try{if(r=zue(e,"return"),!r){if(t==="throw")throw n;return n}r=Hue(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return Oq(r),n}});var Rq=w((ULe,Aq)=>{"use strict";m();T();N();var Wue=_O(),Xue=Vp().has,Zue=vO(),ece=OO(),tce=SO(),nce=bq();Aq.exports=function(t){var n=Wue(this),r=ece(t);if(Zue(n){"use strict";m();T();N();var rce=IO(),ice=Rq(),ace=DO(),sce=!ace("isSupersetOf",function(e){return!e});rce({target:"Set",proto:!0,real:!0,forced:sce},{isSupersetOf:ice})});var Fq=w(()=>{"use strict";m();T();N();Pq()});var jp=w(Cn=>{"use strict";m();T();N();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.subtractSet=oce;Cn.mapToArrayOfValues=uce;Cn.kindToConvertedTypeString=cce;Cn.fieldDatasToSimpleFieldDatas=lce;Cn.isNodeLeaf=dce;Cn.newEntityInterfaceFederationData=pce;Cn.upsertEntityInterfaceFederationData=fce;Cn.upsertEntityData=Nce;Cn.updateEntityData=wq;Cn.newFieldAuthorizationData=Tce;Cn.newAuthorizationData=Ece;Cn.addScopes=bO;Cn.mergeRequiredScopesByAND=EE;Cn.mergeRequiredScopesByOR=AO;Cn.upsertFieldAuthorizationData=Lq;Cn.upsertAuthorizationData=Ice;Cn.upsertAuthorizationConfiguration=gce;Cn.isNodeKindObject=_ce;Cn.isInterfaceDefinitionData=vce;Cn.isObjectDefinitionData=Sce;var en=Ae(),Zr=ur(),NE=Jr(),TE=Es();Sq();Fq();function oce(e,t){for(let n of e)t.delete(n)}function uce(e){let t=[];for(let n of e.values())t.push(n);return t}function cce(e){switch(e){case en.Kind.BOOLEAN:return Zr.BOOLEAN_SCALAR;case en.Kind.ENUM:case en.Kind.ENUM_TYPE_DEFINITION:case en.Kind.ENUM_TYPE_EXTENSION:return Zr.ENUM;case en.Kind.ENUM_VALUE_DEFINITION:return Zr.ENUM_VALUE;case en.Kind.FIELD_DEFINITION:return Zr.FIELD;case en.Kind.FLOAT:return Zr.FLOAT_SCALAR;case en.Kind.INPUT_OBJECT_TYPE_DEFINITION:case en.Kind.INPUT_OBJECT_TYPE_EXTENSION:return Zr.INPUT_OBJECT;case en.Kind.INPUT_VALUE_DEFINITION:return Zr.INPUT_VALUE;case en.Kind.INT:return Zr.INT_SCALAR;case en.Kind.INTERFACE_TYPE_DEFINITION:case en.Kind.INTERFACE_TYPE_EXTENSION:return Zr.INTERFACE;case en.Kind.NULL:return Zr.NULL;case en.Kind.OBJECT:case en.Kind.OBJECT_TYPE_DEFINITION:case en.Kind.OBJECT_TYPE_EXTENSION:return Zr.OBJECT;case en.Kind.STRING:return Zr.STRING_SCALAR;case en.Kind.SCALAR_TYPE_DEFINITION:case en.Kind.SCALAR_TYPE_EXTENSION:return Zr.SCALAR;case en.Kind.UNION_TYPE_DEFINITION:case en.Kind.UNION_TYPE_EXTENSION:return Zr.UNION;default:return e}}function lce(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function dce(e){if(!e)return!0;switch(e){case en.Kind.OBJECT_TYPE_DEFINITION:case en.Kind.INTERFACE_TYPE_DEFINITION:case en.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function pce(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphs:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function fce(e,t,n){(0,NE.addIterableValuesToSet)(t.concreteTypeNames,e.concreteTypeNames),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,NE.addIterableValuesToSet)(t.interfaceFieldNames,e.interfaceFieldNames),(0,NE.addIterableValuesToSet)(t.interfaceObjectFieldNames,e.interfaceObjectFieldNames),t.isInterfaceObject&&e.interfaceObjectSubgraphs.add(n)}function mce({keyFieldSetDataByFieldSet:e,subgraphName:t,typeName:n}){let r=new Map([[t,e]]),i=new Map;for(let[a,{documentNode:o,isUnresolvable:c}]of e)c||i.set(a,o);return{keyFieldSetDatasBySubgraphName:r,documentNodeByKeyFieldSet:i,keyFieldSets:new Set,subgraphNames:new Set([t]),typeName:n}}function Nce({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?wq({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,mce({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function wq({entityData:e,keyFieldSetDataByFieldSet:t,subgraphName:n}){e.subgraphNames.add(n);let r=e.keyFieldSetDatasBySubgraphName.get(n);if(!r){e.keyFieldSetDatasBySubgraphName.set(n,t);for(let[i,{documentNode:a,isUnresolvable:o}]of t)o||e.documentNodeByKeyFieldSet.set(i,a);return}for(let[i,a]of t){a.isUnresolvable||e.documentNodeByKeyFieldSet.set(i,a.documentNode);let o=r.get(i);if(o){o.isUnresolvable||(o.isUnresolvable=a.isUnresolvable);continue}r.set(i,a)}}function Tce(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function Ece(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function bO(e,t){for(let n=e.length-1;n>-1;n--){if(e[n].isSubsetOf(t))return;e[n].isSupersetOf(t)&&e.splice(n,1)}e.push(t)}function EE(e,t){if(e.length<1||t.length<1){for(let r of t)e.push(new Set(r));return e}let n=[];for(let r of t)for(let i of e){let a=(0,NE.addSets)(r,i);bO(n,a)}return n}function AO(e,t){for(let n of t)bO(e,n);return e.length<=TE.MAX_OR_SCOPES}function Lq(e,t){var i,a;let n=t.fieldName,r=e.get(n);return r?((i=r.inheritedData).requiresAuthentication||(i.requiresAuthentication=t.inheritedData.requiresAuthentication),(a=r.originalData).requiresAuthentication||(a.requiresAuthentication=t.originalData.requiresAuthentication),!AO(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>TE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>TE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=EE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=EE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,Cq(t)),!0)}function hce(e){let t=new Map;for(let[n,r]of e)t.set(n,Cq(r));return t}function Cq(e){return{fieldName:e.fieldName,inheritedData:{requiredScopes:[...e.inheritedData.requiredScopes],requiredScopesByOR:[...e.inheritedData.requiredScopes],requiresAuthentication:e.inheritedData.requiresAuthentication},originalData:{requiredScopes:[...e.originalData.requiredScopes],requiresAuthentication:e.originalData.requiresAuthentication}}}function yce(e){return{fieldAuthDataByFieldName:hce(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function Ice(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,yce(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!AO(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>TE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=EE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)Lq(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function gce(e,t){let n=t.typeName;for(let[r,i]of t.fieldAuthDataByFieldName){let a=`${n}.${r}`,o=e.get(a);o?(o.requiresAuthentication=i.inheritedData.requiresAuthentication,o.requiredScopes=i.inheritedData.requiredScopes.map(c=>[...c]),o.requiredScopesByOR=i.inheritedData.requiredScopesByOR.map(c=>[...c])):e.set(a,{argumentNames:[],typeName:n,fieldName:r,requiresAuthentication:i.inheritedData.requiresAuthentication,requiredScopes:i.inheritedData.requiredScopes.map(c=>[...c]),requiredScopesByOR:i.inheritedData.requiredScopesByOR.map(c=>[...c])})}}function _ce(e){return e===en.Kind.OBJECT_TYPE_DEFINITION||e===en.Kind.OBJECT_TYPE_EXTENSION}function vce(e){return e.kind===en.Kind.INTERFACE_TYPE_DEFINITION}function Sce(e){return e?e.kind===en.Kind.OBJECT_TYPE_DEFINITION:!1}});var RO=w(Je=>{"use strict";m();T();N();Object.defineProperty(Je,"__esModule",{value:!0});Je.TAG_DEFINITION_DATA=Je.SUBSCRIPTION_FILTER_DEFINITION_DATA=Je.SHAREABLE_DEFINITION_DATA=Je.SPECIFIED_BY_DEFINITION_DATA=Je.REQUIRES_SCOPES_DEFINITION_DATA=Je.REQUIRES_DEFINITION_DATA=Je.PROVIDES_DEFINITION_DATA=Je.LINK_DEFINITION_DATA=Je.KEY_DEFINITION_DATA=Je.OVERRIDE_DEFINITION_DATA=Je.REDIS_SUBSCRIBE_DEFINITION_DATA=Je.REDIS_PUBLISH_DEFINITION_DATA=Je.NATS_SUBSCRIBE_DEFINITION_DATA=Je.NATS_REQUEST_DEFINITION_DATA=Je.NATS_PUBLISH_DEFINITION_DATA=Je.KAFKA_SUBSCRIBE_DEFINITION_DATA=Je.KAFKA_PUBLISH_DEFINITION_DATA=Je.INTERFACE_OBJECT_DEFINITION_DATA=Je.INACCESSIBLE_DEFINITION_DATA=Je.EXTERNAL_DEFINITION_DATA=Je.EXTENDS_DEFINITION_DATA=Je.DEPRECATED_DEFINITION_DATA=Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA=Je.COMPOSE_DIRECTIVE_DEFINITION_DATA=Je.AUTHENTICATED_DEFINITION_DATA=void 0;var rt=Es(),da=Yr(),ln=Ae(),q=ur();Je.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.AUTHENTICATED,node:rt.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.NAME,{name:q.NAME,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.COMPOSE_DIRECTIVE,node:rt.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])};Je.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}],[q.DESCRIPTION_OVERRIDE,{name:q.DESCRIPTION_OVERRIDE,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.INPUT_OBJECT_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.SCHEMA_UPPER,q.UNION_UPPER]),name:q.CONFIGURE_DESCRIPTION,node:rt.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE,q.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};Je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.PROPAGATE,{name:q.PROPAGATE,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR)},defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.CONFIGURE_CHILD_DESCRIPTIONS,node:rt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([q.PROPAGATE]),requiredArgumentNames:new Set};Je.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.REASON,{name:q.REASON,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR),defaultValue:{kind:ln.Kind.STRING,value:ln.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER]),name:q.DEPRECATED,node:rt.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([q.REASON]),requiredArgumentNames:new Set};Je.EXTENDS_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.EXTENDS,node:rt.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.EXTERNAL,node:rt.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.INACCESSIBLE,node:rt.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!1,locations:new Set([q.OBJECT_UPPER]),name:q.INTERFACE_OBJECT,node:rt.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.TOPIC,{name:q.TOPIC,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_PUBLISH,node:rt.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPIC])};Je.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.TOPICS,{name:q.TOPICS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_KAFKA_SUBSCRIBE,node:rt.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.TOPICS])};Je.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_PUBLISH,node:rt.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};Je.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECT,{name:q.SUBJECT,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_REQUEST,node:rt.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECT])};Je.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SUBJECTS,{name:q.SUBJECTS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}],[q.STREAM_CONFIGURATION,{name:q.STREAM_CONFIGURATION,typeNode:(0,da.stringToNamedTypeNode)(q.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_NATS_SUBSCRIBE,node:rt.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.SUBJECTS])};Je.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CHANNEL,{name:q.CHANNEL,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_PUBLISH,node:rt.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNEL])};Je.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CHANNELS,{name:q.CHANNELS,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:rt.REQUIRED_STRING_TYPE_NODE}}}],[q.PROVIDER_ID,{name:q.PROVIDER_ID,typeNode:rt.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:ln.Kind.STRING,value:q.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.EDFS_REDIS_SUBSCRIBE,node:rt.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([q.PROVIDER_ID]),requiredArgumentNames:new Set([q.CHANNELS])};Je.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FROM,{name:q.FROM,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.OVERRIDE,node:rt.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FROM])};Je.KEY_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}],[q.RESOLVABLE,{name:q.RESOLVABLE,typeNode:(0,da.stringToNamedTypeNode)(q.BOOLEAN_SCALAR),defaultValue:{kind:ln.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([q.INTERFACE_UPPER,q.OBJECT_UPPER]),name:q.KEY,node:rt.KEY_DEFINITION,optionalArgumentNames:new Set([q.RESOLVABLE]),requiredArgumentNames:new Set([q.FIELDS])};Je.LINK_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:rt.REQUIRED_STRING_TYPE_NODE}],[q.AS,{name:q.AS,typeNode:(0,da.stringToNamedTypeNode)(q.STRING_SCALAR)}],[q.FOR,{name:q.FOR,typeNode:(0,da.stringToNamedTypeNode)(q.LINK_PURPOSE)}],[q.IMPORT,{name:q.IMPORT,typeNode:{kind:ln.Kind.LIST_TYPE,type:(0,da.stringToNamedTypeNode)(q.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([q.SCHEMA_UPPER]),name:q.LINK,node:rt.LINK_DEFINITION,optionalArgumentNames:new Set([q.AS,q.FOR,q.IMPORT]),requiredArgumentNames:new Set([q.URL_LOWER])};Je.PROVIDES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.PROVIDES,node:rt.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};Je.REQUIRES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.FIELDS,{name:q.FIELDS,typeNode:rt.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.REQUIRES,node:rt.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.FIELDS])};Je.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.SCOPES,{name:q.SCOPES,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:{kind:ln.Kind.NON_NULL_TYPE,type:{kind:ln.Kind.LIST_TYPE,type:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([q.ENUM_UPPER,q.FIELD_DEFINITION_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER]),name:q.REQUIRES_SCOPES,node:rt.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.SCOPES])};Je.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.URL_LOWER,{name:q.URL_LOWER,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([q.SCALAR_UPPER]),name:q.SPECIFIED_BY,node:rt.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.URL_LOWER])};Je.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map,isRepeatable:!0,locations:new Set([q.FIELD_DEFINITION_UPPER,q.OBJECT_UPPER]),name:q.SHAREABLE,node:rt.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Je.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.CONDITION,{name:q.CONDITION,typeNode:{kind:ln.Kind.NON_NULL_TYPE,type:(0,da.stringToNamedTypeNode)(q.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([q.FIELD_DEFINITION_UPPER]),name:q.SUBSCRIPTION_FILTER,node:rt.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.CONDITION])};Je.TAG_DEFINITION_DATA={argumentTypeNodeByArgumentName:new Map([[q.NAME,{name:q.NAME,typeNode:rt.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([q.ARGUMENT_DEFINITION_UPPER,q.ENUM_UPPER,q.ENUM_VALUE_UPPER,q.FIELD_DEFINITION_UPPER,q.INPUT_FIELD_DEFINITION_UPPER,q.INPUT_OBJECT_UPPER,q.INTERFACE_UPPER,q.OBJECT_UPPER,q.SCALAR_UPPER,q.UNION_UPPER]),name:q.TAG,node:rt.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([q.NAME])}});var Kp=w(pa=>{"use strict";m();T();N();Object.defineProperty(pa,"__esModule",{value:!0});pa.newFieldSetData=Oce;pa.extractFieldSetValue=Dce;pa.getNormalizedFieldSet=bce;pa.getInitialFieldCoordsPath=Ace;pa.validateKeyFieldSets=Rce;pa.getConditionalFieldSetDirectiveName=Pce;pa.isNodeQuery=Fce;pa.validateArgumentTemplateReferences=wce;pa.initializeDirectiveDefinitionDatas=Lce;var er=Ae(),Bq=Yr(),br=ia(),Uq=Es(),PO=su(),mn=RO(),Mt=ur(),Nu=Jr();function Oce(){return{provides:new Map,requires:new Map}}function Dce(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!==Mt.FIELDS||i.value.kind!==er.Kind.STRING||t.set(e,i.value.value)}function bce(e){return(0,er.print)((0,Bq.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function Ace(e,t){return e?[t]:[]}function Rce(e,t,n){let r=e.entityInterfaceDataByTypeName.get(t.name),i=t.name,a=[],o=[],c=r?void 0:e.internalGraph.addEntityDataNode(t.name),l=e.internalGraph.addOrUpdateNode(t.name),p=0;for(let[f,{documentNode:y,isUnresolvable:g,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!g)),p+=1;let P=[],k=[t],K=[],G=[],Z=new Set,W=-1,Te=!0,fe="";if((0,er.visit)(y,{Argument:{enter(we){return P.push((0,br.unexpectedArgumentErrorMessage)(v,`${k[W].name}.${fe}`,we.name.value)),er.BREAK}},Field:{enter(we){let Ve=k[W],it=Ve.name;if(Te){let Dn=`${it}.${fe}`,Vt=Ve.fieldDataByName.get(fe);if(!Vt)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,Dn,fe)),er.BREAK;let dn=(0,PO.getTypeNodeNamedTypeName)(Vt.node.type),Ar=e.parentDefinitionDataByTypeName.get(dn),Rr=Ar?Ar.kind:er.Kind.SCALAR_TYPE_DEFINITION;return P.push((0,br.invalidSelectionSetErrorMessage)(v,[Dn],dn,(0,Nu.kindToNodeType)(Rr))),er.BREAK}let ee=we.name.value,ve=`${it}.${ee}`;fe=ee;let gt=Ve.fieldDataByName.get(ee);if(!gt)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,it,ee)),er.BREAK;if(gt.argumentDataByName.size)return P.push((0,br.argumentsInKeyFieldSetErrorMessage)(v,ve)),er.BREAK;if(K[W].has(ee))return P.push((0,br.duplicateFieldInFieldSetErrorMessage)(v,ve)),er.BREAK;(0,Nu.getValueOrDefault)((0,Nu.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,ve,()=>new Map),i,()=>new Set).add(f),G.push(ee),gt.isShareableBySubgraphName.set(e.subgraphName,!0),K[W].add(ee),(0,Nu.getValueOrDefault)(e.keyFieldNamesByParentTypeName,it,()=>new Set).add(ee);let zt=(0,PO.getTypeNodeNamedTypeName)(gt.node.type);if(Uq.BASE_SCALARS.has(zt)){Z.add(G.join(Mt.PERIOD)),G.pop();return}let Wt=e.parentDefinitionDataByTypeName.get(zt);if(!Wt)return P.push((0,br.unknownTypeInFieldSetErrorMessage)(v,ve,zt)),er.BREAK;if(Wt.kind===er.Kind.OBJECT_TYPE_DEFINITION){Te=!0,k.push(Wt);return}if((0,Bq.isKindAbstract)(Wt.kind))return P.push((0,br.abstractTypeInKeyFieldSetErrorMessage)(v,ve,zt,(0,Nu.kindToNodeType)(Wt.kind))),er.BREAK;Z.add(G.join(Mt.PERIOD)),G.pop()}},InlineFragment:{enter(){return P.push(br.inlineFragmentInFieldSetErrorMessage),er.BREAK}},SelectionSet:{enter(){if(!Te){let we=k[W],it=`${we.name}.${fe}`,ee=we.fieldDataByName.get(fe);if(!ee)return P.push((0,br.undefinedFieldInFieldSetErrorMessage)(v,it,fe)),er.BREAK;let ve=(0,PO.getTypeNodeNamedTypeName)(ee.node.type),gt=e.parentDefinitionDataByTypeName.get(ve),zt=gt?gt.kind:er.Kind.SCALAR_TYPE_DEFINITION;return P.push((0,br.invalidSelectionSetDefinitionErrorMessage)(v,[it],ve,(0,Nu.kindToNodeType)(zt))),er.BREAK}if(W+=1,Te=!1,W<0||W>=k.length)return P.push((0,br.unparsableFieldSetSelectionErrorMessage)(v,fe)),er.BREAK;K.push(new Set)},leave(){if(Te){let Ve=k[W].name,it=k[W+1],ee=`${Ve}.${fe}`;P.push((0,br.invalidSelectionSetErrorMessage)(v,[ee],it.name,(0,Nu.kindToNodeType)(it.kind))),Te=!1}W-=1,k.pop(),K.pop()}}}),P.length>0){e.errors.push((0,br.invalidDirectiveError)(Mt.KEY,i,(0,Nu.numberToOrdinal)(p),P));continue}a.push(x({fieldName:"",selectionSet:f},g?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(f),!g&&(c==null||c.addTargetSubgraphByFieldSet(f,e.subgraphName),o.push(Z))}if(a.length>0)return a}function Pce(e){return e?Mt.PROVIDES:Mt.REQUIRES}function Fce(e,t){return e===Mt.QUERY||t===er.OperationTypeNode.QUERY}function wce(e,t,n){let r=e.matchAll(Uq.EDFS_ARGS_REGEXP),i=new Set,a=new Set;for(let o of r){if(o.length<2){a.add(o[0]);continue}t.has(o[1])||i.add(o[1])}for(let o of i)n.push((0,br.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,br.invalidEventSubjectsArgumentErrorMessage)(o))}function Lce(){return new Map([[Mt.AUTHENTICATED,mn.AUTHENTICATED_DEFINITION_DATA],[Mt.COMPOSE_DIRECTIVE,mn.COMPOSE_DIRECTIVE_DEFINITION_DATA],[Mt.CONFIGURE_DESCRIPTION,mn.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[Mt.CONFIGURE_CHILD_DESCRIPTIONS,mn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[Mt.DEPRECATED,mn.DEPRECATED_DEFINITION_DATA],[Mt.EDFS_KAFKA_PUBLISH,mn.KAFKA_PUBLISH_DEFINITION_DATA],[Mt.EDFS_KAFKA_SUBSCRIBE,mn.KAFKA_SUBSCRIBE_DEFINITION_DATA],[Mt.EDFS_NATS_PUBLISH,mn.NATS_PUBLISH_DEFINITION_DATA],[Mt.EDFS_NATS_REQUEST,mn.NATS_REQUEST_DEFINITION_DATA],[Mt.EDFS_NATS_SUBSCRIBE,mn.NATS_SUBSCRIBE_DEFINITION_DATA],[Mt.EDFS_REDIS_PUBLISH,mn.REDIS_PUBLISH_DEFINITION_DATA],[Mt.EDFS_REDIS_SUBSCRIBE,mn.REDIS_SUBSCRIBE_DEFINITION_DATA],[Mt.EXTENDS,mn.EXTENDS_DEFINITION_DATA],[Mt.EXTERNAL,mn.EXTERNAL_DEFINITION_DATA],[Mt.INACCESSIBLE,mn.INACCESSIBLE_DEFINITION_DATA],[Mt.INTERFACE_OBJECT,mn.INTERFACE_OBJECT_DEFINITION_DATA],[Mt.KEY,mn.KEY_DEFINITION_DATA],[Mt.LINK,mn.LINK_DEFINITION_DATA],[Mt.OVERRIDE,mn.OVERRIDE_DEFINITION_DATA],[Mt.PROVIDES,mn.PROVIDES_DEFINITION_DATA],[Mt.REQUIRES,mn.REQUIRES_DEFINITION_DATA],[Mt.REQUIRES_SCOPES,mn.REQUIRES_SCOPES_DEFINITION_DATA],[Mt.SHAREABLE,mn.SHAREABLE_DEFINITION_DATA],[Mt.SPECIFIED_BY,mn.SPECIFIED_BY_DEFINITION_DATA],[Mt.SUBSCRIPTION_FILTER,mn.SUBSCRIPTION_FILTER_DEFINITION_DATA],[Mt.TAG,mn.TAG_DEFINITION_DATA]])}});var wO=w(FO=>{"use strict";m();T();N();Object.defineProperty(FO,"__esModule",{value:!0});FO.recordSubgraphName=Cce;function Cce(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var CO=w(hE=>{"use strict";m();T();N();Object.defineProperty(hE,"__esModule",{value:!0});hE.Warning=void 0;var LO=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};hE.Warning=LO});var IE=w(fa=>{"use strict";m();T();N();Object.defineProperty(fa,"__esModule",{value:!0});fa.invalidOverrideTargetSubgraphNameWarning=Bce;fa.externalInterfaceFieldsWarning=Uce;fa.nonExternalConditionalFieldWarning=kce;fa.unimplementedInterfaceOutputTypeWarning=Mce;fa.invalidExternalFieldWarning=xce;fa.requiresDefinedOnNonEntityFieldWarning=qce;fa.consumerInactiveThresholdInvalidValueWarning=Vce;fa.externalEntityExtensionKeyFieldWarning=jce;fa.fieldAlreadyProvidedWarning=Kce;var gs=CO(),BO=ur();function Bce(e,t,n,r){return new gs.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(BO.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.`,subgraph:{name:r}})}function yE(e){return`The subgraph "${e}" is currently a "version one" subgraph, but if it were updated to "version two" in its current state, composition would be unsuccessful due to the following warning that would instead propagate as an error: @@ -438,16 +438,16 @@ The following field coordinates that form part of that field set are declared "@ "`+n.join(BO.QUOTATION_JOIN)+`" Please note fields that form part of entity extension "@key" field sets are always provided in that subgraph. Any such "@external" declarations are unnecessary relics of Federation Version 1 syntax and are effectively ignored.`,subgraph:{name:r}})}function Kce(e,t,n,r){return new gs.Warning({message:yE(r)+`The field "${e}" is unconditionally provided by subgraph "${r}" and should not form part of any "@${t}" field set. However, "${e}" forms part of the "@${t}" field set defined "${n}". -Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:r}})}});var kO=w(_E=>{"use strict";m();T();N();Object.defineProperty(_E,"__esModule",{value:!0});_E.upsertDirectiveSchemaAndEntityDefinitions=Qce;_E.upsertParentsAndChildren=Yce;var Vn=Ae(),Tu=ia(),Nc=Es(),gE=jp(),Kl=Yr(),UO=Kp(),Gce=Up(),mc=El(),Gp=su(),$ce=IE(),tr=ur(),dr=Jr();function Qce(e,t){(0,Vn.visit)(t,{Directive:{enter(n){let r=n.name.value;if(Gce.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),Nc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return e.isSubgraphVersionTwo=!0,!1;if(Nc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return!1;switch(r){case tr.SUBSCRIPTION_FILTER:{e.directiveDefinitionByDirectiveName.set(tr.SUBSCRIPTION_FILTER,Nc.SUBSCRIPTION_FILTER_DEFINITION);break}case tr.CONFIGURE_DESCRIPTION:{e.directiveDefinitionByDirectiveName.set(tr.CONFIGURE_DESCRIPTION,Nc.CONFIGURE_DESCRIPTION_DEFINITION);break}case tr.CONFIGURE_CHILD_DESCRIPTIONS:{e.directiveDefinitionByDirectiveName.set(tr.CONFIGURE_CHILD_DESCRIPTIONS,Nc.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);break}}e.referencedDirectiveNames.add(r)}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitions.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Kl.isObjectLikeNodeEntity)(n))return;let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,dr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},InterfaceTypeExtension:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Kl.isObjectLikeNodeEntity)(n))return;let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,dr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},ObjectTypeDefinition:{enter(n){if(!(0,Kl.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,Kl.isNodeInterfaceObject)(n)&&(e.entityInterfaceDataByTypeName.set(r,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:r}),e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}));let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,Kl.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},OperationTypeDefinition:{enter(n){let r=n.operation,i=e.schemaData.operationTypes.get(r),a=(0,Gp.getTypeNodeNamedTypeName)(n.type);if(i)return(0,Tu.duplicateOperationTypeDefinitionError)(r,a,(0,Gp.getTypeNodeNamedTypeName)(i.type)),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,Tu.invalidOperationTypeDefinitionError)(o,a,r)),!1):(e.operationTypeNodeByTypeName.set(a,r),e.schemaData.operationTypes.set(r,n),!1)}},SchemaDefinition:{enter(n){e.schemaData.description=n.description,e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}},SchemaExtension:{enter(n){e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}}})}function Yce(e,t){let n=!1,r;(0,Vn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(o.kind!==Vn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,dr.kindToNodeType)(o.kind),a,(0,dr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByValueName.has(a)){e.errors.push((0,Tu.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByValueName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:Vn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Gp.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,mc.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Kl.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=Vn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&tr.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Gp.getTypeNodeNamedTypeName)(i.type);(0,dr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),Nc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(!(0,mc.isParentDataCompositeOutputType)(c)){e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,dr.kindToNodeType)(c.kind),a,(0,dr.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,Tu.duplicateFieldDefinitionError)((0,dr.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),p=e.extractDirectives(i,new Map);(0,mc.isParentDataInterfaceType)(c)||(e.addInheritedDirectivesToFieldData(p),p.has(tr.EXTERNAL)&&e.unvalidatedExternalFieldCoords.add(`${e.originalParentTypeName}.${a}`));let f=e.addFieldDataByNode(c.fieldDataByName,i,l,p);n&&e.extractEventDirectivesToConfiguration(i,l);let y=f.directivesByDirectiveName.get(tr.PROVIDES),g=f.directivesByDirectiveName.get(tr.REQUIRES);if(!g&&!y)return;let v=e.entityDataByTypeName.get(e.originalParentTypeName),P=(0,dr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,UO.newFieldSetData);y&&(0,UO.extractFieldSetValue)(a,P.provides,y),g&&(v||e.warnings.push((0,$ce.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,UO.extractFieldSetValue)(a,P.requires,g))},leave(){e.lastChildNodeKind=Vn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=Vn.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==Vn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Gp.getTypeNodeNamedTypeName)(i.type);Nc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(c.kind!==Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,dr.kindToNodeType)(c.kind),a,(0,dr.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,Tu.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===Vn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=Vn.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===tr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,mc.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,mc.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL,e.isParentObjectExternal=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===tr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,mc.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,mc.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL,e.isParentObjectExternal=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===tr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===tr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},UnionTypeDefinition:{enter(i){i.name.value!==tr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===tr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var jO=w(Ka=>{"use strict";m();T();N();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.EntityDataNode=Ka.RootNode=Ka.GraphNode=Ka.Edge=void 0;var vE=Jr(),MO=class{constructor(t,n,r,i=!1){_(this,"edgeName");_(this,"id");_(this,"isAbstractEdge");_(this,"isInaccessible",!1);_(this,"node");_(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};Ka.Edge=MO;var xO=class{constructor(t,n,r){_(this,"fieldDataByFieldName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",[]);_(this,"nodeName");_(this,"hasEntitySiblings",!1);_(this,"isAbstract");_(this,"isInaccessible",!1);_(this,"isLeaf",!1);_(this,"isRootNode",!1);_(this,"satisfiedFieldSets",new Set);_(this,"subgraphName");_(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,vE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByFieldName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,vE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Ka.GraphNode=xO;var qO=class{constructor(t){_(this,"fieldDataByFieldName",new Map);_(this,"headToShareableTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToShareableTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Ka.RootNode=qO;var VO=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,vE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,vE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Ka.EntityDataNode=VO});var GO=w(_s=>{"use strict";m();T();N();Object.defineProperty(_s,"__esModule",{value:!0});_s.NodeResolutionData=void 0;_s.newRootFieldData=Jce;_s.generateResolvabilityErrorReasons=xq;_s.generateSelectionSetSegments=qq;_s.renderSelectionSet=Vq;_s.generateResolvabilityErrors=Wce;var kq=ia(),Tc=ur(),Mq=Jr(),KO=class{constructor(t,n){_(this,"fieldDataByFieldName");_(this,"isResolved",!1);_(this,"resolvedFieldNames",new Set);_(this,"typeName");this.fieldDataByFieldName=n,this.typeName=t}add(t){if(this.resolvedFieldNames.add(t),this.resolvedFieldNames.size>this.fieldDataByFieldName.size){let n=(0,Mq.getEntriesNotInHashSet)(this.resolvedFieldNames,this.fieldDataByFieldName);throw(0,kq.unexpectedEdgeFatalError)(this.typeName,n)}return this.isResolved=this.resolvedFieldNames.size===this.fieldDataByFieldName.size,this.isResolved}};_s.NodeResolutionData=KO;function Jce(e,t,n){return{coordinate:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Tc.QUOTATION_JOIN)}".`,subgraphNames:n}}function Hce(e,t){return e.isLeaf?e.name+` <-- +Although "${e}" is declared "@external", it is part of a "@key" directive on an extension type. Such fields are only declared "@external" for legacy syntactical reasons and are not internally considered "@external".`,subgraph:{name:r}})}});var kO=w(_E=>{"use strict";m();T();N();Object.defineProperty(_E,"__esModule",{value:!0});_E.upsertDirectiveSchemaAndEntityDefinitions=Qce;_E.upsertParentsAndChildren=Yce;var Vn=Ae(),Tu=ia(),Nc=Es(),gE=jp(),Kl=Yr(),UO=Kp(),Gce=Up(),mc=El(),Gp=su(),$ce=IE(),tr=ur(),dr=Jr();function Qce(e,t){(0,Vn.visit)(t,{Directive:{enter(n){let r=n.name.value;if(Gce.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),Nc.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return e.isSubgraphVersionTwo=!0,!1;if(Nc.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r))return!1;switch(r){case tr.SUBSCRIPTION_FILTER:{e.directiveDefinitionByDirectiveName.set(tr.SUBSCRIPTION_FILTER,Nc.SUBSCRIPTION_FILTER_DEFINITION);break}case tr.CONFIGURE_DESCRIPTION:{e.directiveDefinitionByDirectiveName.set(tr.CONFIGURE_DESCRIPTION,Nc.CONFIGURE_DESCRIPTION_DEFINITION);break}case tr.CONFIGURE_CHILD_DESCRIPTIONS:{e.directiveDefinitionByDirectiveName.set(tr.CONFIGURE_CHILD_DESCRIPTIONS,Nc.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);break}}e.referencedDirectiveNames.add(r)}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitions.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Kl.isObjectLikeNodeEntity)(n))return;let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,dr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},InterfaceTypeExtension:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,Kl.isObjectLikeNodeEntity)(n))return;let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,dr.getValueOrDefault)(e.entityInterfaceDataByTypeName,r,()=>({concreteTypeNames:new Set,fieldDatas:[],interfaceFieldNames:new Set,interfaceObjectFieldNames:new Set,isInterfaceObject:!1,resolvable:!1,typeName:r}))}},ObjectTypeDefinition:{enter(n){if(!(0,Kl.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,Kl.isNodeInterfaceObject)(n)&&(e.entityInterfaceDataByTypeName.set(r,{concreteTypeNames:new Set,fieldDatas:[],interfaceObjectFieldNames:new Set,interfaceFieldNames:new Set,isInterfaceObject:!0,resolvable:!1,typeName:r}),e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}));let i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,Kl.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,dr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,gE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},OperationTypeDefinition:{enter(n){let r=n.operation,i=e.schemaData.operationTypes.get(r),a=(0,Gp.getTypeNodeNamedTypeName)(n.type);if(i)return(0,Tu.duplicateOperationTypeDefinitionError)(r,a,(0,Gp.getTypeNodeNamedTypeName)(i.type)),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,Tu.invalidOperationTypeDefinitionError)(o,a,r)),!1):(e.operationTypeNodeByTypeName.set(a,r),e.schemaData.operationTypes.set(r,n),!1)}},SchemaDefinition:{enter(n){e.schemaData.description=n.description,e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}},SchemaExtension:{enter(n){e.extractDirectives(n,e.schemaData.directivesByDirectiveName)}}})}function Yce(e,t){let n=!1,r;(0,Vn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(o.kind!==Vn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,dr.kindToNodeType)(o.kind),a,(0,dr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByValueName.has(a)){e.errors.push((0,Tu.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByValueName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:Vn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,Gp.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,mc.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,Kl.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=Vn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&tr.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,Gp.getTypeNodeNamedTypeName)(i.type);(0,dr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),Nc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(!(0,mc.isParentDataCompositeOutputType)(c)){e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,dr.kindToNodeType)(c.kind),a,(0,dr.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,Tu.duplicateFieldDefinitionError)((0,dr.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),p=e.extractDirectives(i,new Map),f=new Set;(0,mc.isParentDataInterfaceType)(c)||(e.addInheritedDirectivesToFieldData(p,f),p.has(tr.EXTERNAL)&&e.unvalidatedExternalFieldCoords.add(`${e.originalParentTypeName}.${a}`));let y=e.addFieldDataByNode(c.fieldDataByName,i,l,p,f);n&&e.extractEventDirectivesToConfiguration(i,l);let g=y.directivesByDirectiveName.get(tr.PROVIDES),v=y.directivesByDirectiveName.get(tr.REQUIRES);if(!v&&!g)return;let P=e.entityDataByTypeName.get(e.originalParentTypeName),k=(0,dr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,UO.newFieldSetData);g&&(0,UO.extractFieldSetValue)(a,k.provides,g),v&&(P||e.warnings.push((0,$ce.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,UO.extractFieldSetValue)(a,k.requires,v))},leave(){e.lastChildNodeKind=Vn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=Vn.Kind.NULL,e.originalParentTypeName=""}},InputObjectTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==Vn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,Gp.getTypeNodeNamedTypeName)(i.type);Nc.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,dr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,tr.PARENT_DEFINITION_DATA);if(c.kind!==Vn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Tu.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,dr.kindToNodeType)(c.kind),a,(0,dr.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,Tu.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===Vn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=Vn.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===tr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,mc.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,mc.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL,e.isParentObjectExternal=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===tr.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,mc.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,mc.getRenamedRootTypeName)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.originalTypeNameByRenamedTypeName.set(e.renamedParentTypeName,e.originalParentTypeName),r=n?e.internalGraph.getRootNode(e.renamedParentTypeName):e.internalGraph.addOrUpdateNode(e.renamedParentTypeName),e.lastParentNodeKind=i.kind,e.upsertObjectDataByNode(i,!0)},leave(){r=void 0,n=!1,e.originalParentTypeName="",e.renamedParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL,e.isParentObjectExternal=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===tr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===tr.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Vn.Kind.NULL}},UnionTypeDefinition:{enter(i){i.name.value!==tr.ENTITY_UNION&&e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===tr.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var jO=w(Ka=>{"use strict";m();T();N();Object.defineProperty(Ka,"__esModule",{value:!0});Ka.EntityDataNode=Ka.RootNode=Ka.GraphNode=Ka.Edge=void 0;var vE=Jr(),MO=class{constructor(t,n,r,i=!1){_(this,"edgeName");_(this,"id");_(this,"isAbstractEdge");_(this,"isInaccessible",!1);_(this,"node");_(this,"visitedIndices",new Set);this.edgeName=i?`... on ${r}`:r,this.id=t,this.isAbstractEdge=i,this.node=n}};Ka.Edge=MO;var xO=class{constructor(t,n,r){_(this,"fieldDataByFieldName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",[]);_(this,"nodeName");_(this,"hasEntitySiblings",!1);_(this,"isAbstract");_(this,"isInaccessible",!1);_(this,"isLeaf",!1);_(this,"isRootNode",!1);_(this,"satisfiedFieldSets",new Set);_(this,"subgraphName");_(this,"typeName");this.isAbstract=!!(r!=null&&r.isAbstract),this.isLeaf=!!(r!=null&&r.isLeaf),this.nodeName=`${t}.${n}`,this.subgraphName=t,this.typeName=n}handleInaccessibleEdges(){if(this.isAbstract)return;let t=(0,vE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByFieldName);for(let n of t){let r=this.headToTailEdges.get(n);r&&(r.isInaccessible=!0)}}getAllAccessibleEntityNodeNames(){let t=new Set([this.nodeName]);return this.getAccessibleEntityNodeNames(this,t),t.delete(this.nodeName),t}getAccessibleEntityNodeNames(t,n){for(let r of t.entityEdges)(0,vE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Ka.GraphNode=xO;var qO=class{constructor(t){_(this,"fieldDataByFieldName",new Map);_(this,"headToShareableTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToShareableTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Ka.RootNode=qO;var VO=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,vE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,vE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Ka.EntityDataNode=VO});var GO=w(_s=>{"use strict";m();T();N();Object.defineProperty(_s,"__esModule",{value:!0});_s.NodeResolutionData=void 0;_s.newRootFieldData=Jce;_s.generateResolvabilityErrorReasons=xq;_s.generateSelectionSetSegments=qq;_s.renderSelectionSet=Vq;_s.generateResolvabilityErrors=Wce;var kq=ia(),Tc=ur(),Mq=Jr(),KO=class{constructor(t,n){_(this,"fieldDataByFieldName");_(this,"isResolved",!1);_(this,"resolvedFieldNames",new Set);_(this,"typeName");this.fieldDataByFieldName=n,this.typeName=t}add(t){if(this.resolvedFieldNames.add(t),this.resolvedFieldNames.size>this.fieldDataByFieldName.size){let n=(0,Mq.getEntriesNotInHashSet)(this.resolvedFieldNames,this.fieldDataByFieldName);throw(0,kq.unexpectedEdgeFatalError)(this.typeName,n)}return this.isResolved=this.resolvedFieldNames.size===this.fieldDataByFieldName.size,this.isResolved}};_s.NodeResolutionData=KO;function Jce(e,t,n){return{coordinate:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Tc.QUOTATION_JOIN)}".`,subgraphNames:n}}function Hce(e,t){return e.isLeaf?e.name+` <-- `:e.name+` { <-- `+Tc.LITERAL_SPACE.repeat(t+3)+`... `+Tc.LITERAL_SPACE.repeat(t+2)+`} `}function xq({entityAncestorData:e,rootFieldData:t,unresolvableFieldData:n}){let{fieldName:r,typeName:i,subgraphNames:a}=n,o=[t.message,`The field "${i}.${r}" is defined in the following subgraph`+(a.size>1?"s":"")+`: "${[...a].join(Tc.QUOTATION_JOIN)}".`];if(e){let c=!1;for(let[l,p]of e.fieldSetsByTargetSubgraphName)if(a.has(l)){c=!0;for(let f of p)o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${f}" to access subgraph "${l}".`)}c||o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" has no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`),o.push(`The type "${i}" is not a descendent of any other entity ancestors that can provide a shared route to access "${r}".`)}else t.subgraphNames.size>1&&o.push(`None of the subgraphs that share the same root type field "${t.coordinate}" can provide a route to access "${r}".`),o.push(`The type "${i}" is not a descendent of an entity ancestor that can provide a shared route to access "${r}".`);return i!==(e==null?void 0:e.typeName)&&o.push(`The type "${i}" has no accessible target entities (resolvable @key directives) in any other subgraph, so accessing other subgraphs is not possible.`),o}function qq(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();N();Object.defineProperty(SE,"__esModule",{value:!0});SE.Graph=void 0;var Gl=jO(),$l=GO(),jq=ur(),Ur=Jr(),$O=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodes",new Map);_(this,"entityNodeNamesBySharedFieldPath",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"rootNodeByRootTypeName",new Map);_(this,"subgraphName",jq.NOT_APPLICABLE);_(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName",new Map);_(this,"nodeResolutionDataByFieldPath",new Map);_(this,"unresolvableFieldPaths",new Set);_(this,"failureResultByEntityNodeName",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,Ur.getValueOrDefault)(this.rootNodeByRootTypeName,t,()=>new Gl.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let a=new Gl.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,Ur.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new Gl.Edge(this.getNextEdgeId(),n,r);return(0,Ur.getValueOrDefault)(t.headToShareableTailEdges,r,()=>[]).push(c),c}let a=t,o=new Gl.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodes.get(t);if(n)return n;let r=new Gl.EntityDataNode(t);return this.entityDataNodes.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodes.get(t);if(jq.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByFieldName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByFieldName=n,a.handleInaccessibleEdges(),a.isLeaf=!1,!!r){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){let c=r.targetSubgraphNamesByFieldSet.get(o);for(let l of c||[]){if(l===a.subgraphName)continue;let p=this.nodeByNodeName.get(`${l}.${a.typeName}`);p&&a.entityEdges.push(new Gl.Edge(this.getNextEdgeId(),p,""))}}}}}setSubgraphName(t){this.subgraphName=t}validateEntities(t,n){let r=new Map;for(let[i,a]of t){let o=a.size>1,c,l=o?new Map:void 0,p=new Set,f=new Map;for(let y of a){let g=this.nodeByNodeName.get(y);if(!g)throw new Error(`Fatal: Could not find entity node for "${y}".`);if(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.get(y)){let G=this.failureResultByEntityNodeName.get(y);if(!G){c=void 0;break}if(!o)return G}let P=this.nodesByTypeName.get(g.typeName)||[],M=(0,Ur.getValueOrDefault)(r,y,()=>o?f:new Map),K=new QO({interSubgraphNodes:P,entityNodeNamesBySharedFieldPath:M,originNode:g,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,walkerIndex:this.walkerIndex+=1,sharedResolvableFieldNamesByRelativeFieldPath:l,unresolvableSharedFieldPaths:p});if(K.visitEntityNode(g),K.unresolvableFieldPaths.size>0){if(o&&p.size<1){c=void 0;break}c={entityAncestorData:{fieldSetsByTargetSubgraphName:(0,Ur.getOrThrowError)(this.entityDataNodes,g.typeName,"entityDataNodes").fieldSetsByTargetSubgraphName,subgraphName:g.subgraphName,typeName:g.typeName},nodeName:y,parentFieldPathForEntityReference:[i],success:!1,typeName:g.typeName,unresolvableFieldPaths:o?p:K.unresolvableFieldPaths},this.failureResultByEntityNodeName.set(y,c);continue}c=void 0;break}if(c)return o&&l&&this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.set(c.nodeName,l),c}if(r.size>0)for(let[i,a]of r){let o=this.validateEntities(a,n);if(!o.success){for(let[c,l]of t)if(l.has(i)){o.parentFieldPathForEntityReference.push(c);break}return o}}return{success:!0}}validate(){let t=[];for(let n of this.rootNodeByRootTypeName.values())e:for(let[r,i]of n.headToShareableTailEdges){for(let c of i){if(c.isInaccessible)continue e;this.walkerIndex+=1,this.visitEdge(c,`${n.typeName.toLowerCase()}`)}let a=(0,Ur.getOrThrowError)(n.fieldDataByFieldName,r,"fieldDataByFieldName"),o=(0,$l.newRootFieldData)(n.typeName,r,a.subgraphNames);if(this.unresolvableFieldPaths.size>0&&(0,$l.generateResolvabilityErrors)({unresolvableFieldPaths:this.unresolvableFieldPaths,nodeResolutionDataByFieldPath:this.nodeResolutionDataByFieldPath,rootFieldData:o,errors:t}),this.entityNodeNamesBySharedFieldPath.size>0){let c=this.validateEntities(this.entityNodeNamesBySharedFieldPath,o);c.success||this.generateEntityResolvabilityErrors(c,o,t)}if(t.length>0)return t;this.entityNodeNamesBySharedFieldPath=new Map}return[]}visitEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:(!(0,Ur.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf||(t.node.isAbstract?this.validateAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateConcreteNode(t.node,`${n}.${t.edgeName}`)),!0)}validateConcreteNode(t,n){if(t.headToTailEdges.size<1)return;if(t.hasEntitySiblings){(0,Ur.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,n,()=>new Set).add(t.nodeName);return}let r=(0,Ur.getValueOrDefault)(this.nodeResolutionDataByFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName));for(let[i,a]of t.headToTailEdges)this.visitEdge(a,n)&&r.add(i);r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n)}validateAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEdge(r,n)}generateEntityResolvabilityErrors(t,n,r){let i=(0,Ur.getOrThrowError)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,t.nodeName,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName"),a="";for(let o of t.parentFieldPathForEntityReference)a=o+a;(0,$l.generateResolvabilityErrors)({unresolvableFieldPaths:t.unresolvableFieldPaths,nodeResolutionDataByFieldPath:i,rootFieldData:n,errors:r,pathFromRoot:a,entityAncestorData:t.entityAncestorData})}};SE.Graph=$O;var QO=class{constructor({entityNodeNamesBySharedFieldPath:t,interSubgraphNodes:n,originNode:r,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:i,unresolvableSharedFieldPaths:a,walkerIndex:o,sharedResolvableFieldNamesByRelativeFieldPath:c}){_(this,"entityNodeNamesBySharedFieldPath");_(this,"interSubgraphNodes");_(this,"originNode");_(this,"resolvableFieldNamesByRelativeFieldPath");_(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName");_(this,"unresolvableFieldPaths",new Set);_(this,"unresolvableSharedFieldPaths");_(this,"walkerIndex");_(this,"sharedResolvableFieldNamesByRelativeFieldPath");this.entityNodeNamesBySharedFieldPath=t,this.interSubgraphNodes=n,this.originNode=r,this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName=i,this.resolvableFieldNamesByRelativeFieldPath=(0,Ur.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,r.nodeName,()=>new Map),this.unresolvableSharedFieldPaths=a,this.walkerIndex=o,this.sharedResolvableFieldNamesByRelativeFieldPath=c}visitEntityNode(t){this.validateEntityRelatedConcreteNode(t,"");let n=t.getAllAccessibleEntityNodeNames();for(let r of this.interSubgraphNodes){if(this.unresolvableFieldPaths.size<0)return;n.has(r.nodeName)&&this.validateEntityRelatedConcreteNode(r,"")}}visitEntityRelatedEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:!(0,Ur.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf?!0:t.node.hasEntitySiblings?((0,Ur.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),!0):(t.node.isAbstract?this.validateEntityRelatedAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateEntityRelatedConcreteNode(t.node,`${n}.${t.edgeName}`),!0)}validateEntityRelatedConcreteNode(t,n){if(t.headToTailEdges.size<1)return;let r=(0,Ur.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName)),i=this.sharedResolvableFieldNamesByRelativeFieldPath?(0,Ur.getValueOrDefault)(this.sharedResolvableFieldNamesByRelativeFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName)):void 0;for(let[a,o]of t.headToTailEdges)this.visitEntityRelatedEdge(o,n)&&(r.add(a),i==null||i.add(a));r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n),i&&(i.isResolved?this.unresolvableSharedFieldPaths.delete(n):this.unresolvableSharedFieldPaths.add(n))}validateEntityRelatedAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEntityRelatedEdge(r,n)}}});var JO=w(OE=>{"use strict";m();T();N();Object.defineProperty(OE,"__esModule",{value:!0});OE.newFieldSetConditionData=Xce;OE.newConfigurationData=Zce;function Xce({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function Zce(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var zO=w(Ec=>{"use strict";m();T();N();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.NormalizationFactory=void 0;Ec.normalizeSubgraphFromString=rle;Ec.normalizeSubgraph=Gq;Ec.batchNormalize=ile;var X=Ae(),On=Yr(),ei=Kp(),Ht=Es(),rr=jp(),de=ia(),DE=Up(),ele=lv(),ma=WT(),tle=wO(),vs=IE(),Kq=kO(),Ga=Ep(),Nn=El(),nr=su(),HO=YO(),bE=mv(),re=ur(),nle=ml(),Ve=Jr(),$p=JO();function rle(e,t=!0){let{error:n,documentNode:r}=(0,On.safeParse)(e,t);return n||!r?{errors:[(0,de.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Qp(new HO.Graph).normalize(r)}function Gq(e,t,n){return new Qp(n||new HO.Graph,t).normalize(e)}var Qp=class{constructor(t,n){_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitions",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByDirectiveName",new Map);_(this,"directiveDefinitionDataByDirectiveName",(0,ei.initializeDirectiveDefinitionDatas)());_(this,"edfsDirectiveReferences",new Set);_(this,"errors",[]);_(this,"entityDataByTypeName",new Map);_(this,"entityInterfaceDataByTypeName",new Map);_(this,"eventsConfigurations",new Map);_(this,"fieldSetDataByTypeName",new Map);_(this,"internalGraph");_(this,"invalidConfigureDescriptionNodeDatas",[]);_(this,"invalidORScopesCoords",new Set);_(this,"invalidRepeatedDirectiveNameByCoords",new Map);_(this,"isCurrentParentExtension",!1);_(this,"isParentObjectExternal",!1);_(this,"isParentObjectShareable",!1);_(this,"isSubgraphEventDrivenGraph",!1);_(this,"isSubgraphVersionTwo",!1);_(this,"keyFieldSetDatasByTypeName",new Map);_(this,"lastParentNodeKind",X.Kind.NULL);_(this,"lastChildNodeKind",X.Kind.NULL);_(this,"parentTypeNamesWithAuthDirectives",new Set);_(this,"keyFieldSetDataByTypeName",new Map);_(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);_(this,"keyFieldNamesByParentTypeName",new Map);_(this,"fieldCoordsByNamedTypeName",new Map);_(this,"operationTypeNodeByTypeName",new Map);_(this,"originalParentTypeName","");_(this,"originalTypeNameByRenamedTypeName",new Map);_(this,"overridesByTargetSubgraphName",new Map);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"schemaData");_(this,"referencedDirectiveNames",new Set);_(this,"referencedTypeNames",new Set);_(this,"renamedParentTypeName","");_(this,"subgraphName");_(this,"unvalidatedExternalFieldCoords",new Set);_(this,"usesEdfsNatsStreamConfiguration",!1);_(this,"warnings",[]);for(let[r,i]of Ht.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||re.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByDirectiveName:new Map,kind:X.Kind.SCHEMA_DEFINITION,name:re.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,nr.getTypeNodeNamedTypeName)(r.type);if(Ht.BASE_SCALARS.has(i)){r.namedTypeKind=X.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,Nn.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind;continue}this.errors.push((0,de.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,Ve.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return re.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===X.Kind.NULL)return t.kind!==X.Kind.NON_NULL_TYPE;switch(t.kind){case X.Kind.LIST_TYPE:{if(n.kind!==X.Kind.LIST)return this.isArgumentValueValid((0,nr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case X.Kind.NAMED_TYPE:switch(t.name.value){case re.BOOLEAN_SCALAR:return n.kind===X.Kind.BOOLEAN;case re.FLOAT_SCALAR:return n.kind===X.Kind.FLOAT||n.kind===X.Kind.INT;case re.ID_SCALAR:return n.kind===X.Kind.STRING||n.kind===X.Kind.INT;case re.INT_SCALAR:return n.kind===X.Kind.INT;case re.FIELD_SET_SCALAR:case re.SCOPE_SCALAR:case re.STRING_SCALAR:return n.kind===X.Kind.STRING;case re.LINK_IMPORT:return!0;case re.LINK_PURPOSE:return n.kind!==X.Kind.ENUM?!1:n.value===re.SECURITY||n.value===re.EXECUTION;case re.SUBSCRIPTION_FIELD_CONDITION:case re.SUBSCRIPTION_FILTER_CONDITION:return n.kind===X.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===X.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===X.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==X.Kind.ENUM)return!1;let i=r.enumValueDataByValueName.get(n.value);return i?!i.directivesByDirectiveName.has(re.INACCESSIBLE):!1}return r.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===X.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}addInheritedDirectivesToFieldData(t){return this.isParentObjectShareable&&(0,Ve.getValueOrDefault)(t,re.SHAREABLE,()=>[(0,Ve.generateSimpleDirective)(re.SHAREABLE)]),this.isParentObjectExternal&&(0,Ve.getValueOrDefault)(t,re.EXTERNAL,()=>[(0,Ve.generateSimpleDirective)(re.EXTERNAL)]),t}extractDirectives(t,n){if(!t.directives)return n;for(let r of t.directives){let i=r.name.value;i===re.SHAREABLE?(0,Ve.getValueOrDefault)(n,i,()=>[r]):(0,Ve.getValueOrDefault)(n,i,()=>[]).push(r),(0,rr.isNodeKindObject)(t.kind)&&(this.isParentObjectExternal||(this.isParentObjectExternal=i===re.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=i===re.SHAREABLE))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let c=i.name.value,l=t.kind===X.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,p=c===re.AUTHENTICATED,f=c===re.OVERRIDE,y=c===re.REQUIRES_SCOPES;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,de.undefinedRequiredArgumentsErrorMessage)(c,o,[])),p&&this.handleAuthenticatedDirective(t,l),a;let g=new Set,v=new Set,P=new Set,M=[];for(let Z of i.arguments){let W=Z.name.value;if(g.has(W)){v.add(W);continue}g.add(W);let Te=n.argumentTypeNodeByArgumentName.get(W);if(!Te){P.add(W);continue}if(!this.isArgumentValueValid(Te.typeNode,Z.value)){a.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(Z.value),`@${c}`,W,(0,ma.printTypeNode)(Te.typeNode)));continue}if(f&&t.kind===X.Kind.FIELD_DEFINITION){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:Z.value.value});continue}!y||W!==re.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:Z.value.values,requiredScopes:M})}v.size>0&&a.push((0,de.duplicateDirectiveArgumentDefinitionsErrorMessage)([...v])),P.size>0&&a.push((0,de.unexpectedDirectiveArgumentErrorMessage)(c,[...P]));let K=(0,Ve.getEntriesNotInHashSet)(o,g);if(K.length>0&&a.push((0,de.undefinedRequiredArgumentsErrorMessage)(c,o,K)),a.length>0||!y)return a;let G=(0,Ve.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,rr.newAuthorizationData)(l));if(t.kind!==X.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),G.requiredScopes.push(...M);else{let Z=(0,Ve.getValueOrDefault)(G.fieldAuthDataByFieldName,t.name,()=>(0,rr.newFieldAuthorizationData)(t.name));Z.inheritedData.requiredScopes.push(...M),Z.originalData.requiredScopes.push(...M)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByDirectiveName){let o=this.directiveDefinitionDataByDirectiveName.get(i);if(!o){r.has(i)||(this.errors.push((0,de.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,On.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,de.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let f=(0,Ve.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(i)||(f.add(i),c.push((0,de.invalidRepeatedDirectiveErrorMessage)(i)))}let p=[...o.requiredArgumentNames];for(let f=0;f0&&this.errors.push((0,de.invalidDirectiveError)(i,n,(0,Ve.numberToOrdinal)(f+1),y))}}switch(t.kind){case X.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByValueName)this.validateDirectives(a,`${t.name}.${i}`);return}case X.Kind.FIELD_DEFINITION:{for(let[i,a]of t.argumentDataByName)this.validateDirectives(a,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case X.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.inputValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.fieldDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?Ga.ExtensionType.REAL:r||!n.has(re.EXTENDS)?Ga.ExtensionType.NONE:Ga.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case Ga.ExtensionType.EXTENDS:case Ga.ExtensionType.NONE:{if(n===Ga.ExtensionType.REAL)return;this.errors.push((0,de.duplicateTypeDefinitionError)((0,Ve.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=n}}extractConfigureDescriptionData(t,n){var i,a;if(!n.arguments||n.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let r={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of n.arguments)switch(o.name.value){case re.PROPAGATE:{if(o.value.kind!=X.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case re.DESCRIPTION_OVERRIDE:{if(o.value.kind!=X.Kind.STRING)return;r.description=o.value.value;break}default:return}!t.description&&!r.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,r)}extractConfigureDescriptionsData(t){let n=t.directivesByDirectiveName.get(re.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let a=i.name.value;if(n.has(a)){this.errors.push((0,de.duplicateImplementedInterfaceError)((0,rr.kindToConvertedTypeString)(t.kind),r,a));continue}n.add(a)}return n}updateCompositeOutputDataByNode(t,n,r){this.setParentDataExtensionType(n,r),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.description||(n.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByDirectiveName.has(re.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByDirectiveName.has(re.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,Ve.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}extractArguments(t,n){var o;if(!((o=n.arguments)!=null&&o.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,a=new Set;for(let c of n.arguments){let l=c.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:c,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,de.duplicateArgumentsError)(i,[...a])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,a=`@${i}`,o=new Map;for(let c of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:o,isArgument:!0,node:c,originalParentTypeName:a});t.set(i,{argumentDataByArgumentName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)(n.description)})}extractDirectiveLocations(t,n){let r=new Set,i=new Set;for(let a of t.locations){let o=a.value;if(!i.has(o)){if(!re.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!DE.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,de.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,de.duplicateDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}r.add(o)}}return r}extractArgumentData(t,n){let r=new Map,i=new Set,a=new Set,o={argumentTypeNodeByArgumentName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let p=l.name.value;if(r.has(p)){c.add(p);continue}l.defaultValue&&i.add(p),(0,Nn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(p),r.set(p,{name:p,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,de.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,de.duplicateDirectiveDefinitionError)(n)),!1;if(this.definedDirectiveNames.add(n),this.directiveDefinitionByDirectiveName.set(n,t),Ht.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n))return this.isSubgraphVersionTwo=!0,!1;if(Ht.ALL_IN_BUILT_DIRECTIVE_NAMES.has(n))return!1;let r=[],{argumentTypeNodeByArgumentName:i,optionalArgumentNames:a,requiredArgumentNames:o}=this.extractArgumentData(t.arguments,r);return this.directiveDefinitionDataByDirectiveName.set(n,{argumentTypeNodeByArgumentName:i,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,r),name:n,node:t,optionalArgumentNames:a,requiredArgumentNames:o}),r.length>0&&this.errors.push((0,de.invalidDirectiveDefinitionError)(n,r)),!0}addFieldDataByNode(t,n,r,i){let a=n.name.value,o=this.renamedParentTypeName||this.originalParentTypeName,c=`${this.originalParentTypeName}.${a}`,{isExternal:l,isShareable:p}=(0,Nn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),f=(0,nr.getTypeNodeNamedTypeName)(n.type),y={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,Nn.newExternalFieldData)(l)]]),federatedCoords:`${o}.${a}`,isInaccessible:i.has(re.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,p]]),kind:X.Kind.FIELD_DEFINITION,name:a,namedTypeKind:Ht.BASE_SCALARS.has(f)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:f,node:(0,nr.getMutableFieldNode)(n,c,this.errors),originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedParentTypeName:o,subgraphNames:new Set([this.subgraphName]),type:(0,nr.getMutableTypeNode)(n.type,c,this.errors),directivesByDirectiveName:i,description:(0,On.formatDescription)(n.description)};return Ht.BASE_SCALARS.has(y.namedTypeName)||this.referencedTypeNames.add(y.namedTypeName),this.extractConfigureDescriptionsData(y),t.set(a,y),y}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,p=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,Nn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,de.incompatibleInputValueDefaultValueTypeError)((r?re.ARGUMENT:re.INPUT_FIELD)+` "${l}"`,p,(0,ma.printTypeNode)(i.type),(0,X.print)(i.defaultValue)));let f=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,y=(0,nr.getTypeNodeNamedTypeName)(i.type),g={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:this.extractDirectives(i,new Map),federatedCoords:f,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?X.Kind.ARGUMENT:X.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Ht.BASE_SCALARS.has(y)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:y,node:(0,nr.getMutableInputValueNode)(i,a,this.errors),originalCoords:p,originalParentTypeName:a,persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedParentTypeName:c,requiredSubgraphNames:new Set((0,Nn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,nr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,On.formatDescription)(i.description)};this.extractConfigureDescriptionsData(g),n.set(l,g)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a),c=this.entityInterfaceDataByTypeName.get(r);if(c&&t.fields)for(let p of t.fields)c.interfaceFieldNames.add(p.name.value);if(i){if(i.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Ve.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(re.KEY),isInaccessible:a.has(re.INACCESSIBLE),kind:X.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,nr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(r,l)}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case X.OperationTypeNode.MUTATION:return re.MUTATION;case X.OperationTypeNode.SUBSCRIPTION:return re.SUBSCRIPTION;default:return re.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.isTypeNameRootType(r),c=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==X.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Ve.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);this.addConcreteTypeNamesForImplementedInterfaces(l,r);let p={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(re.KEY),isInaccessible:a.has(re.INACCESSIBLE),isRootType:o,kind:X.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,nr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(p),this.parentDefinitionDataByTypeName.set(r,p)}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Ve.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(re.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,enumValueDataByValueName:new Map,isInaccessible:a.has(re.INACCESSIBLE),kind:X.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,nr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Ve.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(re.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(re.INACCESSIBLE),kind:X.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,nr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Ve.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:X.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,nr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let a=i.name.value;if(n.has(a)){this.errors.push((0,de.duplicateUnionMemberDefinitionError)(r,a));continue}(0,Ve.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),Ht.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),n.set(a,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==X.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,Ve.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:X.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,nr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractKeyFieldSets(t,n){var a;let r=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,de.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==re.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===re.RESOLVABLE){v.value.kind===X.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==re.FIELDS){c=void 0;break}if(v.value.kind!==X.Kind.STRING){c=void 0;break}c=v.value.value}if(c===void 0)continue;let{error:p,documentNode:f}=(0,On.safeParse)("{"+c+"}");if(p||!f){this.errors.push((0,de.invalidDirectiveError)(re.KEY,r,(0,Ve.numberToOrdinal)(i),[(0,de.unparsableFieldSetErrorMessage)(c,p)]));continue}let y=(0,ei.getNormalizedFieldSet)(f),g=n.get(y);g?g.isUnresolvable||(g.isUnresolvable=l):n.set(y,{documentNode:f,isUnresolvable:l,normalizedFieldSet:y,rawFieldSet:c})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,Ve.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,nr.getTypeNodeNamedTypeName)(a.node.type),c=this.parentDefinitionDataByTypeName.get(o);return c?c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==X.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,de.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:c}:{errorString:(0,de.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,On.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,de.unparsableFieldSetErrorMessage)(n,o)]};let l=this,p=[t],f=(0,ei.getConditionalFieldSetDirectiveName)(i),y=[],g=`${a}.${r}`,v=(0,ei.getInitialFieldCoordsPath)(i,g),P=[r],M=new Set,K=[],G=-1,Z=!0,W=r,Te=!1;return(0,X.visit)(c,{Argument:{enter(){return!1}},Field:{enter(fe){let we=p[G],je=we.name;if(we.kind===X.Kind.UNION_TYPE_DEFINITION)return K.push((0,de.invalidSelectionOnUnionErrorMessage)(n,v,je)),X.BREAK;let it=fe.name.value,ee=`${je}.${it}`;if(l.unvalidatedExternalFieldCoords.delete(ee),Z)return K.push((0,de.invalidSelectionSetErrorMessage)(n,v,je,(0,Ve.kindToNodeType)(we.kind))),X.BREAK;v.push(ee),P.push(it),W=it;let ve=we.fieldDataByName.get(it);if(!ve)return K.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,je,it)),X.BREAK;if(y[G].has(it))return K.push((0,de.duplicateFieldInFieldSetErrorMessage)(n,ee)),X.BREAK;y[G].add(it);let{isDefinedExternal:gt,isUnconditionallyProvided:zt}=(0,Ve.getOrThrowError)(ve.externalFieldDataBySubgraphName,l.subgraphName,`${ee}.externalFieldDataBySubgraphName`),Wt=gt&&!zt;zt||(Te=!0);let Dn=(0,nr.getTypeNodeNamedTypeName)(ve.node.type),Vt=l.parentDefinitionDataByTypeName.get(Dn);if(Ht.BASE_SCALARS.has(Dn)||(Vt==null?void 0:Vt.kind)===X.Kind.SCALAR_TYPE_DEFINITION||(Vt==null?void 0:Vt.kind)===X.Kind.ENUM_TYPE_DEFINITION){if(M.size<1&&!gt){if(l.isSubgraphVersionTwo){l.errors.push((0,de.nonExternalConditionalFieldError)(g,l.subgraphName,ee,n,f));return}l.warnings.push((0,vs.nonExternalConditionalFieldWarning)(g,l.subgraphName,ee,n,f));return}if(M.size<1&&zt){l.isSubgraphVersionTwo?K.push((0,de.fieldAlreadyProvidedErrorMessage)(ee,l.subgraphName,f)):l.warnings.push((0,vs.fieldAlreadyProvidedWarning)(ee,f,g,l.subgraphName));return}if(!Wt&&!i)return;let dn=(0,Ve.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,Nn.newConditionalFieldData),Ar=(0,$p.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...P]});i?dn.providedBy.push(Ar):dn.requiredBy.push(Ar);return}if(!Vt)return K.push((0,de.unknownTypeInFieldSetErrorMessage)(n,ee,Dn)),X.BREAK;if(gt&&(i&&(0,Ve.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,Nn.newConditionalFieldData).providedBy.push((0,$p.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...P]})),M.add(ee)),Vt.kind===X.Kind.OBJECT_TYPE_DEFINITION||Vt.kind===X.Kind.INTERFACE_TYPE_DEFINITION||Vt.kind===X.Kind.UNION_TYPE_DEFINITION){Z=!0,p.push(Vt);return}},leave(){M.delete(v.pop()||""),P.pop()}},InlineFragment:{enter(fe){let we=p[G],je=we.name,it=v.length<1?t.name:v[v.length-1];if(!fe.typeCondition)return K.push((0,de.inlineFragmentWithoutTypeConditionErrorMessage)(n,it)),X.BREAK;let ee=fe.typeCondition.name.value;if(ee===je){p.push(we),Z=!0;return}if(!(0,On.isKindAbstract)(we.kind))return K.push((0,de.invalidInlineFragmentTypeErrorMessage)(n,v,ee,je)),X.BREAK;let ve=l.parentDefinitionDataByTypeName.get(ee);if(!ve)return K.push((0,de.unknownInlineFragmentTypeConditionErrorMessage)(n,v,je,ee)),X.BREAK;switch(Z=!0,ve.kind){case X.Kind.INTERFACE_TYPE_DEFINITION:{if(!ve.implementedInterfaceTypeNames.has(je))break;p.push(ve);return}case X.Kind.OBJECT_TYPE_DEFINITION:{let gt=l.concreteTypeNamesByAbstractTypeName.get(je);if(!gt||!gt.has(ee))break;p.push(ve);return}case X.Kind.UNION_TYPE_DEFINITION:{p.push(ve);return}default:return K.push((0,de.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,je,ee,(0,Ve.kindToNodeType)(ve.kind))),X.BREAK}return K.push((0,de.invalidInlineFragmentTypeConditionErrorMessage)(n,v,ee,(0,Ve.kindToNodeType)(we.kind),je)),X.BREAK}},SelectionSet:{enter(){if(!Z){let fe=p[G];if(fe.kind===X.Kind.UNION_TYPE_DEFINITION)return K.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,W)),X.BREAK;let we=fe.fieldDataByName.get(W);if(!we)return K.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,fe.name,W)),X.BREAK;let je=(0,nr.getTypeNodeNamedTypeName)(we.node.type),it=l.parentDefinitionDataByTypeName.get(je),ee=it?it.kind:X.Kind.SCALAR_TYPE_DEFINITION;return K.push((0,de.invalidSelectionSetDefinitionErrorMessage)(n,v,je,(0,Ve.kindToNodeType)(ee))),X.BREAK}if(G+=1,Z=!1,G<0||G>=p.length)return K.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,W)),X.BREAK;y.push(new Set)},leave(){if(Z){let fe=p[G+1];K.push((0,de.invalidSelectionSetErrorMessage)(n,v,fe.name,(0,Ve.kindToNodeType)(fe.kind))),Z=!1}G-=1,p.pop(),y.pop()}}}),K.length>0||!Te?{errorMessages:K}:{configuration:{fieldName:r,selectionSet:(0,ei.getNormalizedFieldSet)(c)},errorMessages:K}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,Nn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:p,errorString:f}=this.getFieldSetParent(r,t,c,o),y=`${o}.${c}`;if(f){i.push(f);continue}if(!p)continue;let{errorMessages:g,configuration:v}=this.validateConditionalFieldSet(p,l,c,r,o);if(g.length>0){i.push(` On field "${y}": - -`+g.join(re.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,de.invalidProvidesOrRequiresDirectivesError)((0,ei.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(re.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(Ht.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,Ve.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[f,y]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${f}`);let g=!1,v=t.fieldDataByName.get(f);if(!v){p=!0,l.unimplementedFields.push(f);continue}let P={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,ma.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,Nn.isTypeValidImplementation)(y.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,g=!0,P.implementedResponseType=(0,ma.printTypeNode)(v.node.type));let M=new Set;for(let[K,G]of y.argumentDataByName){M.add(K);let Z=v.argumentDataByName.get(K);if(!Z){p=!0,g=!0,P.unimplementedArguments.add(K);continue}let W=(0,ma.printTypeNode)(Z.type),Te=(0,ma.printTypeNode)(G.type);Te!==W&&(p=!0,g=!0,P.invalidImplementedArguments.push({actualType:W,argumentName:K,expectedType:Te}))}for(let[K,G]of v.argumentDataByName)M.has(K)||G.type.kind===X.Kind.NON_NULL_TYPE&&(p=!0,g=!0,P.invalidAdditionalArguments.add(K));!n&&v.isInaccessible&&!y.isInaccessible&&(p=!0,g=!0,P.isInaccessible=!0),g&&l.invalidFieldImplementations.set(f,P)}p&&r.set(o,l)}i.size>0&&this.errors.push((0,de.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,de.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,de.invalidInterfaceImplementationError)(t.name,(0,Ve.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,Ve.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,rr.newAuthorizationData)(n));if(t.kind===X.Kind.FIELD_DEFINITION){let i=(0,Ve.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,rr.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else r.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(n)}handleOverrideDirective({data:t,directiveCoords:n,errorMessages:r,targetSubgraphName:i}){if(i===this.subgraphName){r.push((0,de.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,Ve.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,Ve.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>Ht.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of n){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,rr.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=re.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case re.TOPIC:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(re.TOPIC));continue}(0,ei.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case re.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:re.PROVIDER_TYPE_KAFKA,topics:a,type:re.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=re.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case re.TOPICS:{if(c.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(re.TOPICS));continue}for(let l of c.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(re.TOPICS));break}(0,ei.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case re.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:re.PROVIDER_TYPE_KAFKA,topics:a,type:re.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=re.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case re.SUBJECT:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){a.push((0,de.invalidEventSubjectErrorMessage)(re.SUBJECT));continue}(0,ei.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case re.PROVIDER_ID:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){a.push(de.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:re.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=re.DEFAULT_EDFS_PROVIDER_ID,c=bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",p="";for(let f of t.arguments||[])switch(f.name.value){case re.SUBJECTS:{if(f.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(re.SUBJECTS));continue}for(let y of f.value.values){if(y.kind!==X.Kind.STRING||y.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(re.SUBJECTS));break}(0,ei.validateArgumentTemplateReferences)(y.value,n,i),a.push(y.value)}break}case re.PROVIDER_ID:{if(f.value.kind!==X.Kind.STRING||f.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=f.value.value;break}case re.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,f.value.kind!==X.Kind.OBJECT||f.value.fields.length<1){i.push(de.invalidNatsStreamInputErrorMessage);continue}let y=!0,g=new Set,v=new Set(DE.STREAM_CONFIGURATION_FIELD_NAMES),P=new Set([re.CONSUMER_NAME,re.STREAM_NAME]),M=new Set,K=new Set;for(let G of f.value.fields){let Z=G.name.value;if(!DE.STREAM_CONFIGURATION_FIELD_NAMES.has(Z)){g.add(Z),y=!1;continue}if(v.has(Z))v.delete(Z);else{M.add(Z),y=!1;continue}switch(P.has(Z)&&P.delete(Z),Z){case re.CONSUMER_NAME:if(G.value.kind!=X.Kind.STRING||G.value.value.length<1){K.add(Z),y=!1;continue}l=G.value.value;break;case re.STREAM_NAME:if(G.value.kind!=X.Kind.STRING||G.value.value.length<1){K.add(Z),y=!1;continue}p=G.value.value;break;case re.CONSUMER_INACTIVE_THRESHOLD:if(G.value.kind!=X.Kind.INT){i.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",re.INT_SCALAR)),y=!1;continue}try{c=parseInt(G.value.value,10)}catch(W){i.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",re.INT_SCALAR)),y=!1}break}}(!y||P.size>0)&&i.push((0,de.invalidNatsStreamInputFieldsErrorMessage)([...P],[...M],[...K],[...g]))}}if(!(i.length>0))return c<0?(c=bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,vs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>nle.MAX_INT32&&(c=0,this.warnings.push((0,vs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),x({fieldName:r,providerId:o,providerType:re.PROVIDER_TYPE_NATS,subjects:a,type:re.SUBSCRIBE},l&&p?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:p}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=re.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case re.CHANNEL:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(re.CHANNEL));continue}(0,ei.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case re.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:re.PROVIDER_TYPE_REDIS,channels:a,type:re.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=re.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case re.CHANNELS:{if(c.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(re.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(re.CHANNELS));break}(0,ei.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case re.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:re.PROVIDER_TYPE_REDIS,channels:a,type:re.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===X.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===re.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,de.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${r}`;for(let a of t.directives){let o=[],c;switch(a.name.value){case re.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case re.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case re.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(re.PUBLISH,a,n,r,o);break}case re.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(re.REQUEST,a,n,r,o);break}case re.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case re.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case re.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,de.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,Ve.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case X.OperationTypeNode.MUTATION:return new Set([re.EDFS_KAFKA_PUBLISH,re.EDFS_NATS_PUBLISH,re.EDFS_NATS_REQUEST,re.EDFS_REDIS_PUBLISH]);case X.OperationTypeNode.QUERY:return new Set([re.EDFS_NATS_REQUEST]);case X.OperationTypeNode.SUBSCRIPTION:return new Set([re.EDFS_KAFKA_SUBSCRIBE,re.EDFS_NATS_SUBSCRIBE,re.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case re.MUTATION:return X.OperationTypeNode.MUTATION;case re.QUERY:return X.OperationTypeNode.QUERY;case re.SUBSCRIPTION:return X.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,de.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let p=`${l.originalParentTypeName}.${c}`,f=new Set;for(let K of DE.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(K)&&f.add(K);let y=new Set;for(let K of f)o.has(K)||y.add(K);if((f.size<1||y.size>0)&&n.set(p,{definesDirectives:f.size>0,invalidDirectiveNames:[...y]}),a===X.OperationTypeNode.MUTATION){let K=(0,ma.printTypeNode)(l.type);K!==re.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(p,K);continue}let g=(0,ma.printTypeNode)(l.type),v=l.namedTypeName+"!",P=!1,M=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let K of M)if(P||(P=this.entityDataByTypeName.has(K)),P)break;(!P||g!==v)&&r.set(p,g)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,Ve.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var a;for(let[o,c]of t){let l=`${c.originalParentTypeName}.${o}`;if(n.has(o)){(a=c.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||r.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(re.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==X.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==re.SUCCESS||(0,ma.printTypeNode)(r.type)!==re.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case re.CONSUMER_INACTIVE_THRESHOLD:{if((0,ma.printTypeNode)(r.type)!==re.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==X.Kind.INT||r.defaultValue.value!==`${bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case re.CONSUMER_NAME:case re.STREAM_NAME:{if((0,ma.printTypeNode)(r.type)!==re.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(t){let n=[],r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Map,p=new Set,f=new Set;for(let[y,g]of this.parentDefinitionDataByTypeName){if(y===re.EDFS_PUBLISH_RESULT||y===re.EDFS_NATS_STREAM_CONFIGURATION||g.kind!==X.Kind.OBJECT_TYPE_DEFINITION)continue;if(g.isRootType){this.validateEventDrivenRootType(g,r,i,a);continue}let v=this.keyFieldNamesByParentTypeName.get(y);if(!v){f.add(y);continue}this.validateEventDrivenKeyDefinition(y,o),this.validateEventDrivenObjectFields(g.fieldDataByName,v,c,l)}if(this.isEdfsPublishResultValid()||n.push(de.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(re.EDFS_NATS_SUBSCRIBE)){let y=this.parentDefinitionDataByTypeName.get(re.EDFS_NATS_STREAM_CONFIGURATION);y&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(y)&&n.push(de.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(re.EDFS_NATS_STREAM_CONFIGURATION),t.push(Ht.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION)}this.referencedDirectiveNames.has(re.LINK)&&(t.push(Ht.LINK_DEFINITION),t.push(Ht.LINK_IMPORT_DEFINITION),t.push(Ht.LINK_PURPOSE_DEFINITION)),r.size>0&&n.push((0,de.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),a.size>0&&n.push((0,de.invalidEventDrivenMutationResponseTypeErrorMessage)(a)),i.size>0&&n.push((0,de.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(i)),o.size>0&&n.push((0,de.invalidKeyFieldSetsEventDrivenErrorMessage)(o)),c.size>0&&n.push((0,de.nonExternalKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&n.push((0,de.nonKeyFieldNamesEventDrivenErrorMessage)(l)),p.size>0&&n.push((0,de.nonEntityObjectExtensionsEventDrivenErrorMessage)([...p])),f.size>0&&n.push((0,de.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...f])),n.length>0&&this.errors.push((0,de.invalidEventDrivenGraphError)(n))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,de.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,Ve.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,de.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,Ve.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,n]of this.keyFieldSetDatasByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Nn.getParentTypeName)(r),a=(0,Ve.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,$p.newConfigurationData)(!0,i)),o=(0,ei.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&re.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByDirectiveName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let f=(0,Ve.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(a)||(f.add(a),this.errors.push((0,de.invalidDirectiveError)(a,n,"1st",[(0,de.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==re.KEY){i.push(...o);continue}let l=[],p=new Set;for(let f=0;fnew Set).add(M)),(0,Ve.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(P);let Z=(0,nr.getTypeNodeNamedTypeName)(K.node.type);if(Ht.BASE_SCALARS.has(Z))return;let W=a.parentDefinitionDataByTypeName.get(Z);if(!W)return X.BREAK;if(W.kind===X.Kind.OBJECT_TYPE_DEFINITION){f=!0,c.push(W);return}if((0,On.isKindAbstract)(W.kind))return X.BREAK}},InlineFragment:{enter(){return X.BREAK}},SelectionSet:{enter(){if(!f||(p+=1,f=!1,p<0||p>=c.length))return X.BREAK},leave(){f&&(f=!1),p-=1,c.pop()}}}),!(l.size<1))for(let[y,g]of l)this.warnings.push((0,vs.externalEntityExtensionKeyFieldWarning)(i.name,y,[...g],this.subgraphName))}}for(let n of t)this.keyFieldSetDatasByTypeName.delete(n)}addValidConditionalFieldSetConfigurations(){for(let[t,n]of this.fieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Nn.getParentTypeName)(r),a=(0,Ve.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,$p.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(r,n.provides,!0);o&&(a.provides=o);let c=this.validateProvidesOrRequires(r,n.requires,!1);c&&(a.requires=c)}}addFieldNamesToConfigurationData(t,n){let r=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){n.fieldNames.add(i);continue}r.add(i),this.edfsDirectiveReferences.size>0&&n.fieldNames.add(i)}r.size>0&&(n.externalFieldNames=r)}normalize(t){var a;(0,Kq.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,Kq.upsertParentsAndChildren)(this,t),this.validateDirectives(this.schemaData,re.SCHEMA);for(let[o,c]of this.parentDefinitionDataByTypeName)this.validateDirectives(c,o);this.invalidORScopesCoords.size>0&&this.errors.push((0,de.orScopesLimitError)(Ht.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));let n=[];for(let o of Ht.BASE_DIRECTIVE_DEFINITIONS)n.push(o);if(n.push(Ht.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let o of Ht.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(o),this.directiveDefinitionByDirectiveName.set(o.name.value,o);n.push(Ht.SCOPE_SCALAR_DEFINITION)}for(let o of this.edfsDirectiveReferences){let c=Ht.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(o);if(!c){this.errors.push((0,de.invalidEdfsDirectiveName)(o));continue}n.push(c)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(re.SUBSCRIPTION_FILTER)&&(n.push(Ht.SUBSCRIPTION_FILTER_DEFINITION),n.push(Ht.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(Ht.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(Ht.SUBSCRIPTION_FILTER_VALUE_DEFINITION)),this.referencedDirectiveNames.has(re.CONFIGURE_DESCRIPTION)&&n.push(Ht.CONFIGURE_DESCRIPTION_DEFINITION),this.referencedDirectiveNames.has(re.CONFIGURE_CHILD_DESCRIPTIONS)&&n.push(Ht.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);for(let o of this.customDirectiveDefinitions.values())n.push(o);this.schemaData.operationTypes.size>0&&n.push(this.getSchemaNodeByData(this.schemaData));for(let o of this.invalidConfigureDescriptionNodeDatas)o.description||this.errors.push((0,de.configureDescriptionNoDescriptionError)((0,Ve.kindToNodeType)(o.kind),o.name));this.evaluateExternalKeyFields();for(let[o,c]of this.parentDefinitionDataByTypeName)switch(c.kind){case X.Kind.ENUM_TYPE_DEFINITION:if(c.enumValueDataByValueName.size<1){this.errors.push((0,de.noDefinedEnumValuesError)(o));break}n.push(this.getEnumNodeByData(c));break;case X.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(c.inputValueDataByName.size<1){this.errors.push((0,de.noInputValueDefinitionsError)(o));break}for(let K of c.inputValueDataByName.values()){if(K.namedTypeKind!==X.Kind.NULL)continue;let G=this.parentDefinitionDataByTypeName.get(K.namedTypeName);if(G){if(!(0,Nn.isInputNodeKind)(G.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:K,namedTypeData:G,nodeType:`${(0,Ve.kindToNodeType)(c.kind)} field`}));continue}K.namedTypeKind=G.kind}}n.push(this.getInputObjectNodeByData(c));break;case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:let l=this.entityDataByTypeName.has(o),p=this.operationTypeNodeByTypeName.get(o),f=c.kind===X.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&c.extensionType===Ga.ExtensionType.EXTENDS&&(c.extensionType=Ga.ExtensionType.NONE),p&&(c.fieldDataByName.delete(re.SERVICE_FIELD),c.fieldDataByName.delete(re.ENTITIES_FIELD));let y=[];for(let[K,G]of c.fieldDataByName){if(!f&&((a=G.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&y.push(K),this.validateArguments(G,c.kind),G.namedTypeKind!==X.Kind.NULL)continue;let Z=this.parentDefinitionDataByTypeName.get(G.namedTypeName);if(Z){if(!(0,Nn.isOutputNodeKind)(Z.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:G,namedTypeData:Z,nodeType:`${(0,Ve.kindToNodeType)(c.kind)} field`}));continue}G.namedTypeKind=this.entityInterfaceDataByTypeName.get(Z.name)?X.Kind.INTERFACE_TYPE_DEFINITION:Z.kind}}y.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,de.externalInterfaceFieldsError)(o,y)):this.warnings.push((0,vs.externalInterfaceFieldsWarning)(this.subgraphName,o,y)));let g=(0,Nn.getParentTypeName)(c),v=(0,Ve.getValueOrDefault)(this.configurationDataByTypeName,g,()=>(0,$p.newConfigurationData)(l,o)),P=this.entityInterfaceDataByTypeName.get(o);if(P){P.fieldDatas=(0,rr.fieldDatasToSimpleFieldDatas)(c.fieldDataByName.values());let K=this.concreteTypeNamesByAbstractTypeName.get(o);K&&(0,Ve.addIterableValuesToSet)(K,P.concreteTypeNames),v.isInterfaceObject=P.isInterfaceObject,v.entityInterfaceConcreteTypeNames=P.concreteTypeNames}let M=this.eventsConfigurations.get(g);M&&(v.events=M),this.addFieldNamesToConfigurationData(c.fieldDataByName,v),this.validateInterfaceImplementations(c),n.push(this.getCompositeOutputNodeByData(c)),c.fieldDataByName.size<1&&!(0,ei.isNodeQuery)(o,p)&&this.errors.push((0,de.noFieldDefinitionsError)((0,Ve.kindToNodeType)(c.kind),o));break;case X.Kind.SCALAR_TYPE_DEFINITION:if(c.extensionType===Ga.ExtensionType.REAL){this.errors.push((0,de.noBaseScalarDefinitionError)(o));break}n.push(this.getScalarNodeByData(c));break;case X.Kind.UNION_TYPE_DEFINITION:n.push(this.getUnionNodeByData(c)),this.validateUnionMembers(c);break;default:throw(0,de.unexpectedKindFatalError)(o)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let o of Object.values(X.OperationTypeNode)){let c=this.schemaData.operationTypes.get(o),l=(0,Ve.getOrThrowError)(On.operationTypeNodeToDefaultType,o,re.OPERATION_TO_DEFAULT),p=c?(0,nr.getTypeNodeNamedTypeName)(c.type):l;if(Ht.BASE_SCALARS.has(p)&&this.referencedTypeNames.add(p),p!==l&&this.parentDefinitionDataByTypeName.has(l)){this.errors.push((0,de.invalidRootTypeDefinitionError)(o,p,l));continue}let f=this.parentDefinitionDataByTypeName.get(p);if(c){if(!f)continue;this.operationTypeNodeByTypeName.set(p,o)}if(!f)continue;let y=this.configurationDataByTypeName.get(l);y&&(y.isRootNode=!0,y.typeName=l),f.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,de.operationDefinitionError)(p,o,f.kind))}for(let o of this.referencedTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(!c){this.errors.push((0,de.undefinedTypeError)(o));continue}if(c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION)continue;let l=this.concreteTypeNamesByAbstractTypeName.get(o);(!l||l.size<0)&&this.warnings.push((0,vs.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,o))}let r=new Map;for(let o of this.directiveDefinitionByDirectiveName.values()){let c=(0,On.extractExecutableDirectiveLocations)(o.locations,new Set);c.size<1||this.addPersistedDirectiveDefinitionDataByNode(r,o,c)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(n);for(let o of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,de.invalidExternalDirectiveError)(o)):this.warnings.push((0,vs.invalidExternalFieldWarning)(o,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:X.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,X.print)(i),schema:(0,ele.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};Ec.NormalizationFactory=Qp;function ile(e){let t=new Map,n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Set,l=new Map,p=new Set,f=new Set,y=[],g=new Set,v=new Map,P=[],M=[];for(let Z of e)Z.name&&(0,tle.recordSubgraphName)(Z.name,p,f);let K=new HO.Graph;for(let Z=0;Z0&&P.push(...fe.warnings),!fe.success){M.push((0,de.subgraphValidationError)(Te,fe.errors));continue}if(!fe){M.push((0,de.subgraphValidationError)(Te,[de.subgraphValidationFailureError]));continue}l.set(Te,fe.parentDefinitionDataByTypeName);for(let we of fe.authorizationDataByParentTypeName.values())(0,rr.upsertAuthorizationData)(t,we,g);for(let[we,je]of fe.fieldCoordsByNamedTypeName)(0,Ve.addIterableValuesToSet)(je,(0,Ve.getValueOrDefault)(v,we,()=>new Set));for(let[we,je]of fe.concreteTypeNamesByAbstractTypeName){let it=n.get(we);if(!it){n.set(we,new Set(je));continue}(0,Ve.addIterableValuesToSet)(je,it)}for(let[we,je]of fe.entityDataByTypeName){let it=je.keyFieldSetDatasBySubgraphName.get(Te);it&&(0,rr.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:it,typeName:we,subgraphName:Te})}if(W.name&&i.set(Te,{conditionalFieldDataByCoordinates:fe.conditionalFieldDataByCoordinates,configurationDataByTypeName:fe.configurationDataByTypeName,definitions:fe.subgraphAST,entityInterfaces:fe.entityInterfaces,isVersionTwo:fe.isVersionTwo,keyFieldNamesByParentTypeName:fe.keyFieldNamesByParentTypeName,name:Te,operationTypes:fe.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:fe.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:fe.persistedDirectiveDefinitionDataByDirectiveName,schema:fe.schema,url:W.url}),!(fe.overridesByTargetSubgraphName.size<1))for(let[we,je]of fe.overridesByTargetSubgraphName){let it=p.has(we);for(let[ee,ve]of je){let gt=fe.originalTypeNameByRenamedTypeName.get(ee)||ee;if(!it)P.push((0,vs.invalidOverrideTargetSubgraphNameWarning)(we,gt,[...ve],W.name));else{let zt=(0,Ve.getValueOrDefault)(a,we,()=>new Map),Wt=(0,Ve.getValueOrDefault)(zt,ee,()=>new Set(ve));(0,Ve.addIterableValuesToSet)(ve,Wt)}for(let zt of ve){let Wt=`${gt}.${zt}`,Dn=o.get(Wt);if(!Dn){o.set(Wt,[Te]);continue}Dn.push(Te),c.add(Wt)}}}}let G=[];if(g.size>0&&G.push((0,de.orScopesLimitError)(Ht.MAX_OR_SCOPES,[...g])),(y.length>0||f.size>0)&&G.push((0,de.invalidSubgraphNamesError)([...f],y)),c.size>0){let Z=[];for(let W of c){let Te=(0,Ve.getOrThrowError)(o,W,"overrideSourceSubgraphNamesByFieldPath");Z.push((0,de.duplicateOverriddenFieldErrorMessage)(W,Te))}G.push((0,de.duplicateOverriddenFieldsError)(Z))}if(G.push(...M),G.length>0)return{errors:G,success:!1,warnings:P};for(let[Z,W]of a){let Te=(0,Ve.getOrThrowError)(i,Z,"internalSubgraphBySubgraphName");Te.overriddenFieldNamesByParentTypeName=W;for(let[fe,we]of W){let je=Te.configurationDataByTypeName.get(fe);je&&((0,rr.subtractSet)(we,je.fieldNames),je.fieldNames.size<1&&Te.configurationDataByTypeName.delete(fe))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:K,success:!0,warnings:P}}});var AE=w(Ic=>{"use strict";m();T();N();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.DivergentType=void 0;Ic.getLeastRestrictiveMergedTypeNode=sle;Ic.getMostRestrictiveMergedTypeNode=ole;Ic.renameNamedTypeName=ule;var hc=Ae(),Qq=ia(),ale=su(),$q=Yr(),Yq=ml(),yc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(yc||(Ic.DivergentType=yc={}));function Jq(e,t,n,r,i){t=(0,ale.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=yc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(XO,"__esModule",{value:!0});XO.renameRootTypes=dle;var cle=Ae(),WO=Yr(),lle=AE(),Eu=ur(),gc=Jr();function dle(e,t){let n,r=!1,i;(0,cle.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===Eu.SERVICE_FIELD||o===Eu.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,gc.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),p=t.operationTypes.get(l.namedTypeName);if(p){let f=(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,p,Eu.OPERATION_TO_DEFAULT);l.namedTypeName!==f&&(0,lle.renameNamedTypeName)(l,f,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,c,Eu.OPERATION_TO_DEFAULT):o;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,c,Eu.OPERATION_TO_DEFAULT):o;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var Hq=w((Ql,Yp)=>{"use strict";m();T();N();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",p=1,f=2,y=4,g=1,v=2,P=1,M=2,K=4,G=8,Z=16,W=32,Te=64,fe=128,we=256,je=512,it=30,ee="...",ve=800,gt=16,zt=1,Wt=2,Dn=3,Vt=1/0,dn=9007199254740991,Ar=17976931348623157e292,Rr=NaN,Un=4294967295,$t=Un-1,bn=Un>>>1,oe=[["ary",fe],["bind",P],["bindKey",M],["curry",G],["curryRight",Z],["flip",je],["partial",W],["partialRight",Te],["rearg",we]],De="[object Arguments]",_e="[object Array]",Le="[object AsyncFunction]",_t="[object Boolean]",J="[object Date]",se="[object DOMException]",xe="[object Error]",Qe="[object Function]",Lt="[object GeneratorFunction]",et="[object Map]",bt="[object Number]",Ha="[object Null]",xr="[object Object]",za="[object Promise]",wc="[object Proxy]",ha="[object RegExp]",pr="[object Set]",ni="[object String]",xt="[object Symbol]",fr="[object Undefined]",gu="[object WeakMap]",ya="[object WeakSet]",_u="[object ArrayBuffer]",A="[object DataView]",h="[object Float32Array]",I="[object Float64Array]",C="[object Int8Array]",$="[object Int16Array]",ne="[object Int32Array]",le="[object Uint8Array]",pt="[object Uint8ClampedArray]",pn="[object Uint16Array]",tn="[object Uint32Array]",hn=/\b__p \+= '';/g,Xt=/\b(__p \+=) '' \+/g,I1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,XD=/&(?:amp|lt|gt|quot|#39);/g,ZD=/[&<>"']/g,g1=RegExp(XD.source),_1=RegExp(ZD.source),v1=/<%-([\s\S]+?)%>/g,S1=/<%([\s\S]+?)%>/g,eb=/<%=([\s\S]+?)%>/g,O1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D1=/^\w*$/,b1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oh=/[\\^$.*+?()[\]{}|]/g,A1=RegExp(oh.source),uh=/^\s+/,R1=/\s/,P1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,F1=/\{\n\/\* \[wrapped with (.+)\] \*/,w1=/,? & /,L1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,C1=/[()=,{}\[\]\/\s]/,B1=/\\(\\)?/g,U1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tb=/\w*$/,k1=/^[-+]0x[0-9a-f]+$/i,M1=/^0b[01]+$/i,x1=/^\[object .+?Constructor\]$/,q1=/^0o[0-7]+$/i,V1=/^(?:0|[1-9]\d*)$/,j1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ef=/($^)/,K1=/['\n\r\u2028\u2029\\]/g,hf="\\ud800-\\udfff",G1="\\u0300-\\u036f",$1="\\ufe20-\\ufe2f",Q1="\\u20d0-\\u20ff",nb=G1+$1+Q1,rb="\\u2700-\\u27bf",ib="a-z\\xdf-\\xf6\\xf8-\\xff",Y1="\\xac\\xb1\\xd7\\xf7",J1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",H1="\\u2000-\\u206f",z1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ab="A-Z\\xc0-\\xd6\\xd8-\\xde",sb="\\ufe0e\\ufe0f",ob=Y1+J1+H1+z1,ch="['\u2019]",W1="["+hf+"]",ub="["+ob+"]",yf="["+nb+"]",cb="\\d+",X1="["+rb+"]",lb="["+ib+"]",db="[^"+hf+ob+cb+rb+ib+ab+"]",lh="\\ud83c[\\udffb-\\udfff]",Z1="(?:"+yf+"|"+lh+")",pb="[^"+hf+"]",dh="(?:\\ud83c[\\udde6-\\uddff]){2}",ph="[\\ud800-\\udbff][\\udc00-\\udfff]",Lc="["+ab+"]",fb="\\u200d",mb="(?:"+lb+"|"+db+")",ej="(?:"+Lc+"|"+db+")",Nb="(?:"+ch+"(?:d|ll|m|re|s|t|ve))?",Tb="(?:"+ch+"(?:D|LL|M|RE|S|T|VE))?",Eb=Z1+"?",hb="["+sb+"]?",tj="(?:"+fb+"(?:"+[pb,dh,ph].join("|")+")"+hb+Eb+")*",nj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yb=hb+Eb+tj,ij="(?:"+[X1,dh,ph].join("|")+")"+yb,aj="(?:"+[pb+yf+"?",yf,dh,ph,W1].join("|")+")",sj=RegExp(ch,"g"),oj=RegExp(yf,"g"),fh=RegExp(lh+"(?="+lh+")|"+aj+yb,"g"),uj=RegExp([Lc+"?"+lb+"+"+Nb+"(?="+[ub,Lc,"$"].join("|")+")",ej+"+"+Tb+"(?="+[ub,Lc+mb,"$"].join("|")+")",Lc+"?"+mb+"+"+Nb,Lc+"+"+Tb,rj,nj,cb,ij].join("|"),"g"),cj=RegExp("["+fb+hf+nb+sb+"]"),lj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pj=-1,Tn={};Tn[h]=Tn[I]=Tn[C]=Tn[$]=Tn[ne]=Tn[le]=Tn[pt]=Tn[pn]=Tn[tn]=!0,Tn[De]=Tn[_e]=Tn[_u]=Tn[_t]=Tn[A]=Tn[J]=Tn[xe]=Tn[Qe]=Tn[et]=Tn[bt]=Tn[xr]=Tn[ha]=Tn[pr]=Tn[ni]=Tn[gu]=!1;var fn={};fn[De]=fn[_e]=fn[_u]=fn[A]=fn[_t]=fn[J]=fn[h]=fn[I]=fn[C]=fn[$]=fn[ne]=fn[et]=fn[bt]=fn[xr]=fn[ha]=fn[pr]=fn[ni]=fn[xt]=fn[le]=fn[pt]=fn[pn]=fn[tn]=!0,fn[xe]=fn[Qe]=fn[gu]=!1;var fj={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},mj={"&":"&","<":"<",">":">",'"':""","'":"'"},Nj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ej=parseFloat,hj=parseInt,Ib=typeof global=="object"&&global&&global.Object===Object&&global,yj=typeof self=="object"&&self&&self.Object===Object&&self,ir=Ib||yj||Function("return this")(),mh=typeof Ql=="object"&&Ql&&!Ql.nodeType&&Ql,vu=mh&&typeof Yp=="object"&&Yp&&!Yp.nodeType&&Yp,gb=vu&&vu.exports===mh,Nh=gb&&Ib.process,Ni=function(){try{var Q=vu&&vu.require&&vu.require("util").types;return Q||Nh&&Nh.binding&&Nh.binding("util")}catch(ce){}}(),_b=Ni&&Ni.isArrayBuffer,vb=Ni&&Ni.isDate,Sb=Ni&&Ni.isMap,Ob=Ni&&Ni.isRegExp,Db=Ni&&Ni.isSet,bb=Ni&&Ni.isTypedArray;function ri(Q,ce,ie){switch(ie.length){case 0:return Q.call(ce);case 1:return Q.call(ce,ie[0]);case 2:return Q.call(ce,ie[0],ie[1]);case 3:return Q.call(ce,ie[0],ie[1],ie[2])}return Q.apply(ce,ie)}function Ij(Q,ce,ie,Be){for(var ot=-1,jt=Q==null?0:Q.length;++ot-1}function Th(Q,ce,ie){for(var Be=-1,ot=Q==null?0:Q.length;++Be-1;);return ie}function Bb(Q,ce){for(var ie=Q.length;ie--&&Cc(ce,Q[ie],0)>-1;);return ie}function Rj(Q,ce){for(var ie=Q.length,Be=0;ie--;)Q[ie]===ce&&++Be;return Be}var Pj=Ih(fj),Fj=Ih(mj);function wj(Q){return"\\"+Tj[Q]}function Lj(Q,ce){return Q==null?e:Q[ce]}function Bc(Q){return cj.test(Q)}function Cj(Q){return lj.test(Q)}function Bj(Q){for(var ce,ie=[];!(ce=Q.next()).done;)ie.push(ce.value);return ie}function Sh(Q){var ce=-1,ie=Array(Q.size);return Q.forEach(function(Be,ot){ie[++ce]=[ot,Be]}),ie}function Ub(Q,ce){return function(ie){return Q(ce(ie))}}function xo(Q,ce){for(var ie=-1,Be=Q.length,ot=0,jt=[];++ie-1}function _K(s,u){var d=this.__data__,E=kf(d,s);return E<0?(++this.size,d.push([s,u])):d[E][1]=u,this}Wa.prototype.clear=hK,Wa.prototype.delete=yK,Wa.prototype.get=IK,Wa.prototype.has=gK,Wa.prototype.set=_K;function Xa(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function yi(s,u,d,E,S,L){var k,j=u&p,H=u&f,pe=u&y;if(d&&(k=S?d(s,E,S,L):d(s)),k!==e)return k;if(!_n(s))return s;var me=lt(s);if(me){if(k=DG(s),!j)return qr(s,k)}else{var Ee=Er(s),be=Ee==Qe||Ee==Lt;if(Qo(s))return h0(s,j);if(Ee==xr||Ee==De||be&&!S){if(k=H||be?{}:k0(s),!j)return H?NG(s,MK(k,s)):mG(s,Jb(k,s))}else{if(!fn[Ee])return S?s:{};k=bG(s,Ee,j)}}L||(L=new Qi);var Ke=L.get(s);if(Ke)return Ke;L.set(s,k),pA(s)?s.forEach(function(Ze){k.add(yi(Ze,u,d,Ze,s,L))}):lA(s)&&s.forEach(function(Ze,vt){k.set(vt,yi(Ze,u,d,vt,s,L))});var Xe=pe?H?zh:Hh:H?jr:ar,Et=me?e:Xe(s);return Ti(Et||s,function(Ze,vt){Et&&(vt=Ze,Ze=s[vt]),ld(k,vt,yi(Ze,u,d,vt,s,L))}),k}function xK(s){var u=ar(s);return function(d){return Hb(d,s,u)}}function Hb(s,u,d){var E=d.length;if(s==null)return!E;for(s=on(s);E--;){var S=d[E],L=u[S],k=s[S];if(k===e&&!(S in s)||!L(k))return!1}return!0}function zb(s,u,d){if(typeof s!="function")throw new Ei(i);return Ed(function(){s.apply(e,d)},u)}function dd(s,u,d,E){var S=-1,L=If,k=!0,j=s.length,H=[],pe=u.length;if(!j)return H;d&&(u=yn(u,ii(d))),E?(L=Th,k=!1):u.length>=n&&(L=id,k=!1,u=new Du(u));e:for(;++SS?0:S+d),E=E===e||E>S?S:mt(E),E<0&&(E+=S),E=d>E?0:mA(E);d0&&d(j)?u>1?mr(j,u-1,d,E,S):Mo(S,j):E||(S[S.length]=j)}return S}var Fh=S0(),Zb=S0(!0);function Ia(s,u){return s&&Fh(s,u,ar)}function wh(s,u){return s&&Zb(s,u,ar)}function xf(s,u){return ko(u,function(d){return rs(s[d])})}function Au(s,u){u=Go(u,s);for(var d=0,E=u.length;s!=null&&du}function jK(s,u){return s!=null&&Zt.call(s,u)}function KK(s,u){return s!=null&&u in on(s)}function GK(s,u,d){return s>=Tr(u,d)&&s=120&&me.length>=120)?new Du(k&&me):e}me=s[0];var Ee=-1,be=j[0];e:for(;++Ee-1;)j!==s&&Pf.call(j,H,1),Pf.call(s,H,1);return s}function l0(s,u){for(var d=s?u.length:0,E=d-1;d--;){var S=u[d];if(d==E||S!==L){var L=S;ns(S)?Pf.call(s,S,1):jh(s,S)}}return s}function xh(s,u){return s+Lf(Gb()*(u-s+1))}function rG(s,u,d,E){for(var S=-1,L=Jn(wf((u-s)/(d||1)),0),k=ie(L);L--;)k[E?L:++S]=s,s+=d;return k}function qh(s,u){var d="";if(!s||u<1||u>dn)return d;do u%2&&(d+=s),u=Lf(u/2),u&&(s+=s);while(u);return d}function yt(s,u){return ry(q0(s,u,Kr),s+"")}function iG(s){return Yb($c(s))}function aG(s,u){var d=$c(s);return zf(d,bu(u,0,d.length))}function md(s,u,d,E){if(!_n(s))return s;u=Go(u,s);for(var S=-1,L=u.length,k=L-1,j=s;j!=null&&++SS?0:S+u),d=d>S?S:d,d<0&&(d+=S),S=u>d?0:d-u>>>0,u>>>=0;for(var L=ie(S);++E>>1,k=s[L];k!==null&&!si(k)&&(d?k<=u:k=n){var pe=u?null:yG(s);if(pe)return _f(pe);k=!1,S=id,H=new Du}else H=u?[]:j;e:for(;++E=E?s:Ii(s,u,d)}var E0=zj||function(s){return ir.clearTimeout(s)};function h0(s,u){if(u)return s.slice();var d=s.length,E=xb?xb(d):new s.constructor(d);return s.copy(E),E}function Qh(s){var u=new s.constructor(s.byteLength);return new Af(u).set(new Af(s)),u}function lG(s,u){var d=u?Qh(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function dG(s){var u=new s.constructor(s.source,tb.exec(s));return u.lastIndex=s.lastIndex,u}function pG(s){return cd?on(cd.call(s)):{}}function y0(s,u){var d=u?Qh(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function I0(s,u){if(s!==u){var d=s!==e,E=s===null,S=s===s,L=si(s),k=u!==e,j=u===null,H=u===u,pe=si(u);if(!j&&!pe&&!L&&s>u||L&&k&&H&&!j&&!pe||E&&k&&H||!d&&H||!S)return 1;if(!E&&!L&&!pe&&s=j)return H;var pe=d[E];return H*(pe=="desc"?-1:1)}}return s.index-u.index}function g0(s,u,d,E){for(var S=-1,L=s.length,k=d.length,j=-1,H=u.length,pe=Jn(L-k,0),me=ie(H+pe),Ee=!E;++j1?d[S-1]:e,k=S>2?d[2]:e;for(L=s.length>3&&typeof L=="function"?(S--,L):e,k&&Fr(d[0],d[1],k)&&(L=S<3?e:L,S=1),u=on(u);++E-1?S[L?u[k]:k]:e}}function b0(s){return ts(function(u){var d=u.length,E=d,S=hi.prototype.thru;for(s&&u.reverse();E--;){var L=u[E];if(typeof L!="function")throw new Ei(i);if(S&&!k&&Jf(L)=="wrapper")var k=new hi([],!0)}for(E=k?E:d;++E1&&At.reverse(),me&&Hj))return!1;var pe=L.get(s),me=L.get(u);if(pe&&me)return pe==u&&me==s;var Ee=-1,be=!0,Ke=d&v?new Du:e;for(L.set(s,u),L.set(u,s);++Ee1?"& ":"")+u[E],u=u.join(d>2?", ":" "),s.replace(P1,`{ +`+r;return{outputEnd:r,outputStart:n,pathNodes:t}}function Vq({outputEnd:e,outputStart:t,pathNodes:n},r){return t+Tc.LITERAL_SPACE.repeat(n.length+1)+Hce(r,n.length)+e}function zce(e,t){return t?e?`${t}${e}`:t:e}function Wce({entityAncestorData:e,errors:t,nodeResolutionDataByFieldPath:n,pathFromRoot:r,rootFieldData:i,unresolvableFieldPaths:a}){let o=[];for(let c of a){let l=(0,Mq.getOrThrowError)(n,c,"nodeResolutionDataByFieldPath"),p=new Map;for(let[g,v]of l.fieldDataByFieldName)l.resolvedFieldNames.has(g)||p.set(g,v);let f=zce(c,r),y=qq(f);for(let[g,v]of p)o.push({fieldName:g,selectionSet:Vq(y,v),subgraphNames:v.subgraphNames,typeName:l.typeName})}for(let c of o)t.push((0,kq.unresolvablePathError)(c,xq({rootFieldData:i,unresolvableFieldData:c,entityAncestorData:e})))}});var YO=w(SE=>{"use strict";m();T();N();Object.defineProperty(SE,"__esModule",{value:!0});SE.Graph=void 0;var Gl=jO(),$l=GO(),jq=ur(),Ur=Jr(),$O=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodes",new Map);_(this,"entityNodeNamesBySharedFieldPath",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"rootNodeByRootTypeName",new Map);_(this,"subgraphName",jq.NOT_APPLICABLE);_(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName",new Map);_(this,"nodeResolutionDataByFieldPath",new Map);_(this,"unresolvableFieldPaths",new Set);_(this,"failureResultByEntityNodeName",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,Ur.getValueOrDefault)(this.rootNodeByRootTypeName,t,()=>new Gl.RootNode(t))}addOrUpdateNode(t,n){let r=`${this.subgraphName}.${t}`,i=this.nodeByNodeName.get(r);if(i)return i.isAbstract||(i.isAbstract=!!(n!=null&&n.isAbstract)),!i.isLeaf&&(n!=null&&n.isLeaf)&&(i.isLeaf=!0),i;let a=new Gl.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,Ur.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new Gl.Edge(this.getNextEdgeId(),n,r);return(0,Ur.getValueOrDefault)(t.headToShareableTailEdges,r,()=>[]).push(c),c}let a=t,o=new Gl.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodes.get(t);if(n)return n;let r=new Gl.EntityDataNode(t);return this.entityDataNodes.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}setNodeInaccessible(t){let n=this.nodesByTypeName.get(t);if(n)for(let r of n)r.isInaccessible=!0}initializeNode(t,n){let r=this.entityDataNodes.get(t);if(jq.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByFieldName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByFieldName=n,a.handleInaccessibleEdges(),a.isLeaf=!1,!!r){a.hasEntitySiblings=!0;for(let o of a.satisfiedFieldSets){let c=r.targetSubgraphNamesByFieldSet.get(o);for(let l of c||[]){if(l===a.subgraphName)continue;let p=this.nodeByNodeName.get(`${l}.${a.typeName}`);p&&a.entityEdges.push(new Gl.Edge(this.getNextEdgeId(),p,""))}}}}}setSubgraphName(t){this.subgraphName=t}validateEntities(t,n){let r=new Map;for(let[i,a]of t){let o=a.size>1,c,l=o?new Map:void 0,p=new Set,f=new Map;for(let y of a){let g=this.nodeByNodeName.get(y);if(!g)throw new Error(`Fatal: Could not find entity node for "${y}".`);if(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.get(y)){let G=this.failureResultByEntityNodeName.get(y);if(!G){c=void 0;break}if(!o)return G}let P=this.nodesByTypeName.get(g.typeName)||[],k=(0,Ur.getValueOrDefault)(r,y,()=>o?f:new Map),K=new QO({interSubgraphNodes:P,entityNodeNamesBySharedFieldPath:k,originNode:g,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,walkerIndex:this.walkerIndex+=1,sharedResolvableFieldNamesByRelativeFieldPath:l,unresolvableSharedFieldPaths:p});if(K.visitEntityNode(g),K.unresolvableFieldPaths.size>0){if(o&&p.size<1){c=void 0;break}c={entityAncestorData:{fieldSetsByTargetSubgraphName:(0,Ur.getOrThrowError)(this.entityDataNodes,g.typeName,"entityDataNodes").fieldSetsByTargetSubgraphName,subgraphName:g.subgraphName,typeName:g.typeName},nodeName:y,parentFieldPathForEntityReference:[i],success:!1,typeName:g.typeName,unresolvableFieldPaths:o?p:K.unresolvableFieldPaths},this.failureResultByEntityNodeName.set(y,c);continue}c=void 0;break}if(c)return o&&l&&this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName.set(c.nodeName,l),c}if(r.size>0)for(let[i,a]of r){let o=this.validateEntities(a,n);if(!o.success){for(let[c,l]of t)if(l.has(i)){o.parentFieldPathForEntityReference.push(c);break}return o}}return{success:!0}}validate(){let t=[];for(let n of this.rootNodeByRootTypeName.values())e:for(let[r,i]of n.headToShareableTailEdges){for(let c of i){if(c.isInaccessible)continue e;this.walkerIndex+=1,this.visitEdge(c,`${n.typeName.toLowerCase()}`)}let a=(0,Ur.getOrThrowError)(n.fieldDataByFieldName,r,"fieldDataByFieldName"),o=(0,$l.newRootFieldData)(n.typeName,r,a.subgraphNames);if(this.unresolvableFieldPaths.size>0&&(0,$l.generateResolvabilityErrors)({unresolvableFieldPaths:this.unresolvableFieldPaths,nodeResolutionDataByFieldPath:this.nodeResolutionDataByFieldPath,rootFieldData:o,errors:t}),this.entityNodeNamesBySharedFieldPath.size>0){let c=this.validateEntities(this.entityNodeNamesBySharedFieldPath,o);c.success||this.generateEntityResolvabilityErrors(c,o,t)}if(t.length>0)return t;this.entityNodeNamesBySharedFieldPath=new Map}return[]}visitEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:(!(0,Ur.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf||(t.node.isAbstract?this.validateAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateConcreteNode(t.node,`${n}.${t.edgeName}`)),!0)}validateConcreteNode(t,n){if(t.headToTailEdges.size<1)return;if(t.hasEntitySiblings){(0,Ur.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,n,()=>new Set).add(t.nodeName);return}let r=(0,Ur.getValueOrDefault)(this.nodeResolutionDataByFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName));for(let[i,a]of t.headToTailEdges)this.visitEdge(a,n)&&r.add(i);r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n)}validateAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEdge(r,n)}generateEntityResolvabilityErrors(t,n,r){let i=(0,Ur.getOrThrowError)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,t.nodeName,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName"),a="";for(let o of t.parentFieldPathForEntityReference)a=o+a;(0,$l.generateResolvabilityErrors)({unresolvableFieldPaths:t.unresolvableFieldPaths,nodeResolutionDataByFieldPath:i,rootFieldData:n,errors:r,pathFromRoot:a,entityAncestorData:t.entityAncestorData})}};SE.Graph=$O;var QO=class{constructor({entityNodeNamesBySharedFieldPath:t,interSubgraphNodes:n,originNode:r,resolvableFieldNamesByRelativeFieldPathByEntityNodeName:i,unresolvableSharedFieldPaths:a,walkerIndex:o,sharedResolvableFieldNamesByRelativeFieldPath:c}){_(this,"entityNodeNamesBySharedFieldPath");_(this,"interSubgraphNodes");_(this,"originNode");_(this,"resolvableFieldNamesByRelativeFieldPath");_(this,"resolvableFieldNamesByRelativeFieldPathByEntityNodeName");_(this,"unresolvableFieldPaths",new Set);_(this,"unresolvableSharedFieldPaths");_(this,"walkerIndex");_(this,"sharedResolvableFieldNamesByRelativeFieldPath");this.entityNodeNamesBySharedFieldPath=t,this.interSubgraphNodes=n,this.originNode=r,this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName=i,this.resolvableFieldNamesByRelativeFieldPath=(0,Ur.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPathByEntityNodeName,r.nodeName,()=>new Map),this.unresolvableSharedFieldPaths=a,this.walkerIndex=o,this.sharedResolvableFieldNamesByRelativeFieldPath=c}visitEntityNode(t){this.validateEntityRelatedConcreteNode(t,"");let n=t.getAllAccessibleEntityNodeNames();for(let r of this.interSubgraphNodes){if(this.unresolvableFieldPaths.size<0)return;n.has(r.nodeName)&&this.validateEntityRelatedConcreteNode(r,"")}}visitEntityRelatedEdge(t,n){return t.isInaccessible||t.node.isInaccessible?!1:!(0,Ur.add)(t.visitedIndices,this.walkerIndex)||t.node.isLeaf?!0:t.node.hasEntitySiblings?((0,Ur.getValueOrDefault)(this.entityNodeNamesBySharedFieldPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),!0):(t.node.isAbstract?this.validateEntityRelatedAbstractNode(t.node,`${n}.${t.edgeName}`):this.validateEntityRelatedConcreteNode(t.node,`${n}.${t.edgeName}`),!0)}validateEntityRelatedConcreteNode(t,n){if(t.headToTailEdges.size<1)return;let r=(0,Ur.getValueOrDefault)(this.resolvableFieldNamesByRelativeFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName)),i=this.sharedResolvableFieldNamesByRelativeFieldPath?(0,Ur.getValueOrDefault)(this.sharedResolvableFieldNamesByRelativeFieldPath,n,()=>new $l.NodeResolutionData(t.typeName,t.fieldDataByFieldName)):void 0;for(let[a,o]of t.headToTailEdges)this.visitEntityRelatedEdge(o,n)&&(r.add(a),i==null||i.add(a));r.isResolved?this.unresolvableFieldPaths.delete(n):this.unresolvableFieldPaths.add(n),i&&(i.isResolved?this.unresolvableSharedFieldPaths.delete(n):this.unresolvableSharedFieldPaths.add(n))}validateEntityRelatedAbstractNode(t,n){if(!(t.headToTailEdges.size<1))for(let r of t.headToTailEdges.values())this.visitEntityRelatedEdge(r,n)}}});var JO=w(OE=>{"use strict";m();T();N();Object.defineProperty(OE,"__esModule",{value:!0});OE.newFieldSetConditionData=Xce;OE.newConfigurationData=Zce;function Xce({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function Zce(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var zO=w(Ec=>{"use strict";m();T();N();Object.defineProperty(Ec,"__esModule",{value:!0});Ec.NormalizationFactory=void 0;Ec.normalizeSubgraphFromString=rle;Ec.normalizeSubgraph=Gq;Ec.batchNormalize=ile;var X=Ae(),On=Yr(),ei=Kp(),Ht=Es(),rr=jp(),de=ia(),DE=Up(),ele=lv(),ma=WT(),tle=wO(),vs=IE(),Kq=kO(),Ga=Ep(),Nn=El(),nr=su(),HO=YO(),bE=mv(),ne=ur(),nle=ml(),$e=Jr(),$p=JO();function rle(e,t=!0){let{error:n,documentNode:r}=(0,On.safeParse)(e,t);return n||!r?{errors:[(0,de.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Qp(new HO.Graph).normalize(r)}function Gq(e,t,n){return new Qp(n||new HO.Graph,t).normalize(e)}var Qp=class{constructor(t,n){_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitions",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByDirectiveName",new Map);_(this,"directiveDefinitionDataByDirectiveName",(0,ei.initializeDirectiveDefinitionDatas)());_(this,"edfsDirectiveReferences",new Set);_(this,"errors",[]);_(this,"entityDataByTypeName",new Map);_(this,"entityInterfaceDataByTypeName",new Map);_(this,"eventsConfigurations",new Map);_(this,"fieldSetDataByTypeName",new Map);_(this,"internalGraph");_(this,"invalidConfigureDescriptionNodeDatas",[]);_(this,"invalidORScopesCoords",new Set);_(this,"invalidRepeatedDirectiveNameByCoords",new Map);_(this,"isCurrentParentExtension",!1);_(this,"isParentObjectExternal",!1);_(this,"isParentObjectShareable",!1);_(this,"isSubgraphEventDrivenGraph",!1);_(this,"isSubgraphVersionTwo",!1);_(this,"keyFieldSetDatasByTypeName",new Map);_(this,"lastParentNodeKind",X.Kind.NULL);_(this,"lastChildNodeKind",X.Kind.NULL);_(this,"parentTypeNamesWithAuthDirectives",new Set);_(this,"keyFieldSetDataByTypeName",new Map);_(this,"keyFieldSetsByEntityTypeNameByFieldCoords",new Map);_(this,"keyFieldNamesByParentTypeName",new Map);_(this,"fieldCoordsByNamedTypeName",new Map);_(this,"operationTypeNodeByTypeName",new Map);_(this,"originalParentTypeName","");_(this,"originalTypeNameByRenamedTypeName",new Map);_(this,"overridesByTargetSubgraphName",new Map);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"schemaData");_(this,"referencedDirectiveNames",new Set);_(this,"referencedTypeNames",new Set);_(this,"renamedParentTypeName","");_(this,"subgraphName");_(this,"unvalidatedExternalFieldCoords",new Set);_(this,"usesEdfsNatsStreamConfiguration",!1);_(this,"warnings",[]);for(let[r,i]of Ht.BASE_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME)this.directiveDefinitionByDirectiveName.set(r,i);this.subgraphName=n||ne.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByDirectiveName:new Map,kind:X.Kind.SCHEMA_DEFINITION,name:ne.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,nr.getTypeNodeNamedTypeName)(r.type);if(Ht.BASE_SCALARS.has(i)){r.namedTypeKind=X.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,Nn.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind;continue}this.errors.push((0,de.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,$e.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return ne.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===X.Kind.NULL)return t.kind!==X.Kind.NON_NULL_TYPE;switch(t.kind){case X.Kind.LIST_TYPE:{if(n.kind!==X.Kind.LIST)return this.isArgumentValueValid((0,nr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case X.Kind.NAMED_TYPE:switch(t.name.value){case ne.BOOLEAN_SCALAR:return n.kind===X.Kind.BOOLEAN;case ne.FLOAT_SCALAR:return n.kind===X.Kind.FLOAT||n.kind===X.Kind.INT;case ne.ID_SCALAR:return n.kind===X.Kind.STRING||n.kind===X.Kind.INT;case ne.INT_SCALAR:return n.kind===X.Kind.INT;case ne.FIELD_SET_SCALAR:case ne.SCOPE_SCALAR:case ne.STRING_SCALAR:return n.kind===X.Kind.STRING;case ne.LINK_IMPORT:return!0;case ne.LINK_PURPOSE:return n.kind!==X.Kind.ENUM?!1:n.value===ne.SECURITY||n.value===ne.EXECUTION;case ne.SUBSCRIPTION_FIELD_CONDITION:case ne.SUBSCRIPTION_FILTER_CONDITION:return n.kind===X.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===X.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===X.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==X.Kind.ENUM)return!1;let i=r.enumValueDataByValueName.get(n.value);return i?!i.directivesByDirectiveName.has(ne.INACCESSIBLE):!1}return r.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===X.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}addInheritedDirectivesToFieldData(t,n){return this.isParentObjectShareable&&!t.has(ne.SHAREABLE)&&(t.set(ne.SHAREABLE,[(0,$e.generateSimpleDirective)(ne.SHAREABLE)]),n.add(ne.SHAREABLE)),this.isParentObjectExternal&&!t.has(ne.EXTERNAL)&&(t.set(ne.EXTERNAL,[(0,$e.generateSimpleDirective)(ne.EXTERNAL)]),n.add(ne.EXTERNAL)),t}extractDirectives(t,n){if(!t.directives)return n;for(let r of t.directives){let i=r.name.value;i===ne.SHAREABLE?(0,$e.getValueOrDefault)(n,i,()=>[r]):(0,$e.getValueOrDefault)(n,i,()=>[]).push(r),(0,rr.isNodeKindObject)(t.kind)&&(this.isParentObjectExternal||(this.isParentObjectExternal=i===ne.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=i===ne.SHAREABLE))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let c=i.name.value,l=t.kind===X.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,p=c===ne.AUTHENTICATED,f=c===ne.OVERRIDE,y=c===ne.REQUIRES_SCOPES;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,de.undefinedRequiredArgumentsErrorMessage)(c,o,[])),p&&this.handleAuthenticatedDirective(t,l),a;let g=new Set,v=new Set,P=new Set,k=[];for(let Z of i.arguments){let W=Z.name.value;if(g.has(W)){v.add(W);continue}g.add(W);let Te=n.argumentTypeNodeByArgumentName.get(W);if(!Te){P.add(W);continue}if(!this.isArgumentValueValid(Te.typeNode,Z.value)){a.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(Z.value),`@${c}`,W,(0,ma.printTypeNode)(Te.typeNode)));continue}if(f&&t.kind===X.Kind.FIELD_DEFINITION){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:Z.value.value});continue}!y||W!==ne.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:Z.value.values,requiredScopes:k})}v.size>0&&a.push((0,de.duplicateDirectiveArgumentDefinitionsErrorMessage)([...v])),P.size>0&&a.push((0,de.unexpectedDirectiveArgumentErrorMessage)(c,[...P]));let K=(0,$e.getEntriesNotInHashSet)(o,g);if(K.length>0&&a.push((0,de.undefinedRequiredArgumentsErrorMessage)(c,o,K)),a.length>0||!y)return a;let G=(0,$e.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,rr.newAuthorizationData)(l));if(t.kind!==X.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),G.requiredScopes.push(...k);else{let Z=(0,$e.getValueOrDefault)(G.fieldAuthDataByFieldName,t.name,()=>(0,rr.newFieldAuthorizationData)(t.name));Z.inheritedData.requiredScopes.push(...k),Z.originalData.requiredScopes.push(...k)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByDirectiveName){let o=this.directiveDefinitionDataByDirectiveName.get(i);if(!o){r.has(i)||(this.errors.push((0,de.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,On.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,de.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let f=(0,$e.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(i)||(f.add(i),c.push((0,de.invalidRepeatedDirectiveErrorMessage)(i)))}let p=[...o.requiredArgumentNames];for(let f=0;f0&&this.errors.push((0,de.invalidDirectiveError)(i,n,(0,$e.numberToOrdinal)(f+1),y))}}switch(t.kind){case X.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByValueName)this.validateDirectives(a,`${t.name}.${i}`);return}case X.Kind.FIELD_DEFINITION:{for(let[i,a]of t.argumentDataByName)this.validateDirectives(a,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case X.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.inputValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.fieldDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}default:return}}getNodeExtensionType(t,n,r=!1){return t?Ga.ExtensionType.REAL:r||!n.has(ne.EXTENDS)?Ga.ExtensionType.NONE:Ga.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case Ga.ExtensionType.EXTENDS:case Ga.ExtensionType.NONE:{if(n===Ga.ExtensionType.REAL)return;this.errors.push((0,de.duplicateTypeDefinitionError)((0,$e.kindToNodeType)(t.kind),t.name));return}default:t.extensionType=n}}extractConfigureDescriptionData(t,n){var i,a;if(!n.arguments||n.arguments.length<1){t.description||this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,{propagate:!0,description:((i=t.description)==null?void 0:i.value)||""});return}let r={propagate:!0,description:((a=t.description)==null?void 0:a.value)||""};for(let o of n.arguments)switch(o.name.value){case ne.PROPAGATE:{if(o.value.kind!=X.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case ne.DESCRIPTION_OVERRIDE:{if(o.value.kind!=X.Kind.STRING)return;r.description=o.value.value;break}default:return}!t.description&&!r.description&&this.invalidConfigureDescriptionNodeDatas.push(t),t.configureDescriptionDataBySubgraphName.set(this.subgraphName,r)}extractConfigureDescriptionsData(t){let n=t.directivesByDirectiveName.get(ne.CONFIGURE_DESCRIPTION);n&&n.length==1&&this.extractConfigureDescriptionData(t,n[0])}extractImplementedInterfaceTypeNames(t,n){if(!t.interfaces)return n;let r=t.name.value;for(let i of t.interfaces){let a=i.name.value;if(n.has(a)){this.errors.push((0,de.duplicateImplementedInterfaceError)((0,rr.kindToConvertedTypeString)(t.kind),r,a));continue}n.add(a)}return n}updateCompositeOutputDataByNode(t,n,r){this.setParentDataExtensionType(n,r),this.extractImplementedInterfaceTypeNames(t,n.implementedInterfaceTypeNames),n.description||(n.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByDirectiveName.has(ne.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByDirectiveName.has(ne.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(n),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(n),n,!0)}extractArguments(t,n){var o;if(!((o=n.arguments)!=null&&o.length))return t;let r=n.name.value,i=`${this.originalParentTypeName}.${r}`,a=new Set;for(let c of n.arguments){let l=c.name.value;if(t.has(l)){a.add(l);continue}this.addInputValueDataByNode({fieldName:r,inputValueDataByName:t,isArgument:!0,node:c,originalParentTypeName:this.originalParentTypeName,renamedParentTypeName:this.renamedParentTypeName})}return a.size>0&&this.errors.push((0,de.duplicateArgumentsError)(i,[...a])),t}addPersistedDirectiveDefinitionDataByNode(t,n,r){let i=n.name.value,a=`@${i}`,o=new Map;for(let c of n.arguments||[])this.addInputValueDataByNode({inputValueDataByName:o,isArgument:!0,node:c,originalParentTypeName:a});t.set(i,{argumentDataByArgumentName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)(n.description)})}extractDirectiveLocations(t,n){let r=new Set,i=new Set;for(let a of t.locations){let o=a.value;if(!i.has(o)){if(!ne.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!DE.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,de.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,de.duplicateDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}r.add(o)}}return r}extractArgumentData(t,n){let r=new Map,i=new Set,a=new Set,o={argumentTypeNodeByArgumentName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let p=l.name.value;if(r.has(p)){c.add(p);continue}l.defaultValue&&i.add(p),(0,Nn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(p),r.set(p,{name:p,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,de.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,de.duplicateDirectiveDefinitionError)(n)),!1;if(this.definedDirectiveNames.add(n),this.directiveDefinitionByDirectiveName.set(n,t),Ht.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(n))return this.isSubgraphVersionTwo=!0,!1;if(Ht.ALL_IN_BUILT_DIRECTIVE_NAMES.has(n))return!1;let r=[],{argumentTypeNodeByArgumentName:i,optionalArgumentNames:a,requiredArgumentNames:o}=this.extractArgumentData(t.arguments,r);return this.directiveDefinitionDataByDirectiveName.set(n,{argumentTypeNodeByArgumentName:i,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,r),name:n,node:t,optionalArgumentNames:a,requiredArgumentNames:o}),r.length>0&&this.errors.push((0,de.invalidDirectiveDefinitionError)(n,r)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,c=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:p,isShareable:f}=(0,Nn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),y=(0,nr.getTypeNodeNamedTypeName)(n.type),g={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,Nn.newExternalFieldData)(p)]]),federatedCoords:`${c}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(ne.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,f]]),kind:X.Kind.FIELD_DEFINITION,name:o,namedTypeKind:Ht.BASE_SCALARS.has(y)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:y,node:(0,nr.getMutableFieldNode)(n,l,this.errors),originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedParentTypeName:c,subgraphNames:new Set([this.subgraphName]),type:(0,nr.getMutableTypeNode)(n.type,l,this.errors),directivesByDirectiveName:i,description:(0,On.formatDescription)(n.description)};return Ht.BASE_SCALARS.has(g.namedTypeName)||this.referencedTypeNames.add(g.namedTypeName),this.extractConfigureDescriptionsData(g),t.set(o,g),g}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,p=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,Nn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,de.incompatibleInputValueDefaultValueTypeError)((r?ne.ARGUMENT:ne.INPUT_FIELD)+` "${l}"`,p,(0,ma.printTypeNode)(i.type),(0,X.print)(i.defaultValue)));let f=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,y=(0,nr.getTypeNodeNamedTypeName)(i.type),g={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:this.extractDirectives(i,new Map),federatedCoords:f,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?X.Kind.ARGUMENT:X.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:Ht.BASE_SCALARS.has(y)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:y,node:(0,nr.getMutableInputValueNode)(i,a,this.errors),originalCoords:p,originalParentTypeName:a,persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedParentTypeName:c,requiredSubgraphNames:new Set((0,Nn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,nr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,On.formatDescription)(i.description)};this.extractConfigureDescriptionsData(g),n.set(l,g)}upsertInterfaceDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a),c=this.entityInterfaceDataByTypeName.get(r);if(c&&t.fields)for(let p of t.fields)c.interfaceFieldNames.add(p.name.value);if(i){if(i.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,o);return}let l={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,fieldDataByName:new Map,implementedInterfaceTypeNames:this.extractImplementedInterfaceTypeNames(t,new Set),isEntity:a.has(ne.KEY),isInaccessible:a.has(ne.INACCESSIBLE),kind:X.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,nr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(l),this.parentDefinitionDataByTypeName.set(r,l)}getRenamedRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(!n)return t;switch(n){case X.OperationTypeNode.MUTATION:return ne.MUTATION;case X.OperationTypeNode.SUBSCRIPTION:return ne.SUBSCRIPTION;default:return ne.QUERY}}addInterfaceObjectFieldsByNode(t){let n=t.name.value,r=this.entityInterfaceDataByTypeName.get(n);if(!(!r||!r.isInterfaceObject||!t.fields))for(let i of t.fields)r.interfaceObjectFieldNames.add(i.name.value)}upsertObjectDataByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.isTypeNameRootType(r),c=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==X.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);this.addConcreteTypeNamesForImplementedInterfaces(l,r);let p={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(ne.KEY),isInaccessible:a.has(ne.INACCESSIBLE),isRootType:o,kind:X.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,nr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(p),this.parentDefinitionDataByTypeName.set(r,p)}upsertEnumDataByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(ne.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,enumValueDataByValueName:new Map,isInaccessible:a.has(ne.INACCESSIBLE),kind:X.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,nr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertInputObjectByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(ne.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(ne.INACCESSIBLE),kind:X.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,nr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}upsertScalarByNode(t,n=!1){let r=t.name.value;this.internalGraph.addOrUpdateNode(r,{isLeaf:!0});let i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(i){if(i.kind!==X.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:X.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,nr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractUnionMembers(t,n){if(!t.types)return n;let r=t.name.value;for(let i of t.types){let a=i.name.value;if(n.has(a)){this.errors.push((0,de.duplicateUnionMemberDefinitionError)(r,a));continue}(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),Ht.BASE_SCALARS.has(a)||this.referencedTypeNames.add(a),n.set(a,i)}return n}upsertUnionByNode(t,n=!1){let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(i==null?void 0:i.directivesByDirectiveName)||new Map),o=this.getNodeExtensionType(n,a);if(this.addConcreteTypeNamesForUnion(t),i){if(i.kind!==X.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,de.multipleNamedTypeDefinitionError)(r,(0,$e.kindToNodeType)(i.kind),(0,rr.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,On.formatDescription)("description"in t?t.description:void 0)),i.subgraphNames.add(this.subgraphName),this.extractConfigureDescriptionsData(i);return}let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,kind:X.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,nr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,Nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,On.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c)}extractKeyFieldSets(t,n){var a;let r=t.name.value;if(!((a=t.directives)!=null&&a.length)){this.errors.push((0,de.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==ne.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===ne.RESOLVABLE){v.value.kind===X.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==ne.FIELDS){c=void 0;break}if(v.value.kind!==X.Kind.STRING){c=void 0;break}c=v.value.value}if(c===void 0)continue;let{error:p,documentNode:f}=(0,On.safeParse)("{"+c+"}");if(p||!f){this.errors.push((0,de.invalidDirectiveError)(ne.KEY,r,(0,$e.numberToOrdinal)(i),[(0,de.unparsableFieldSetErrorMessage)(c,p)]));continue}let y=(0,ei.getNormalizedFieldSet)(f),g=n.get(y);g?g.isUnresolvable||(g.isUnresolvable=l):n.set(y,{documentNode:f,isUnresolvable:l,normalizedFieldSet:y,rawFieldSet:c})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,$e.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,nr.getTypeNodeNamedTypeName)(a.node.type),c=this.parentDefinitionDataByTypeName.get(o);return c?c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==X.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,de.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:c}:{errorString:(0,de.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,On.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,de.unparsableFieldSetErrorMessage)(n,o)]};let l=this,p=[t],f=(0,ei.getConditionalFieldSetDirectiveName)(i),y=[],g=`${a}.${r}`,v=(0,ei.getInitialFieldCoordsPath)(i,g),P=[r],k=new Set,K=[],G=-1,Z=!0,W=r,Te=!1;return(0,X.visit)(c,{Argument:{enter(){return!1}},Field:{enter(fe){let we=p[G],Ve=we.name;if(we.kind===X.Kind.UNION_TYPE_DEFINITION)return K.push((0,de.invalidSelectionOnUnionErrorMessage)(n,v,Ve)),X.BREAK;let it=fe.name.value,ee=`${Ve}.${it}`;if(l.unvalidatedExternalFieldCoords.delete(ee),Z)return K.push((0,de.invalidSelectionSetErrorMessage)(n,v,Ve,(0,$e.kindToNodeType)(we.kind))),X.BREAK;v.push(ee),P.push(it),W=it;let ve=we.fieldDataByName.get(it);if(!ve)return K.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,Ve,it)),X.BREAK;if(y[G].has(it))return K.push((0,de.duplicateFieldInFieldSetErrorMessage)(n,ee)),X.BREAK;y[G].add(it);let{isDefinedExternal:gt,isUnconditionallyProvided:zt}=(0,$e.getOrThrowError)(ve.externalFieldDataBySubgraphName,l.subgraphName,`${ee}.externalFieldDataBySubgraphName`),Wt=gt&&!zt;zt||(Te=!0);let Dn=(0,nr.getTypeNodeNamedTypeName)(ve.node.type),Vt=l.parentDefinitionDataByTypeName.get(Dn);if(Ht.BASE_SCALARS.has(Dn)||(Vt==null?void 0:Vt.kind)===X.Kind.SCALAR_TYPE_DEFINITION||(Vt==null?void 0:Vt.kind)===X.Kind.ENUM_TYPE_DEFINITION){if(k.size<1&&!gt){if(l.isSubgraphVersionTwo){l.errors.push((0,de.nonExternalConditionalFieldError)(g,l.subgraphName,ee,n,f));return}l.warnings.push((0,vs.nonExternalConditionalFieldWarning)(g,l.subgraphName,ee,n,f));return}if(k.size<1&&zt){l.isSubgraphVersionTwo?K.push((0,de.fieldAlreadyProvidedErrorMessage)(ee,l.subgraphName,f)):l.warnings.push((0,vs.fieldAlreadyProvidedWarning)(ee,f,g,l.subgraphName));return}if(!Wt&&!i)return;let dn=(0,$e.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,Nn.newConditionalFieldData),Ar=(0,$p.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...P]});i?dn.providedBy.push(Ar):dn.requiredBy.push(Ar);return}if(!Vt)return K.push((0,de.unknownTypeInFieldSetErrorMessage)(n,ee,Dn)),X.BREAK;if(gt&&(i&&(0,$e.getValueOrDefault)(l.conditionalFieldDataByCoords,ee,Nn.newConditionalFieldData).providedBy.push((0,$p.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...P]})),k.add(ee)),Vt.kind===X.Kind.OBJECT_TYPE_DEFINITION||Vt.kind===X.Kind.INTERFACE_TYPE_DEFINITION||Vt.kind===X.Kind.UNION_TYPE_DEFINITION){Z=!0,p.push(Vt);return}},leave(){k.delete(v.pop()||""),P.pop()}},InlineFragment:{enter(fe){let we=p[G],Ve=we.name,it=v.length<1?t.name:v[v.length-1];if(!fe.typeCondition)return K.push((0,de.inlineFragmentWithoutTypeConditionErrorMessage)(n,it)),X.BREAK;let ee=fe.typeCondition.name.value;if(ee===Ve){p.push(we),Z=!0;return}if(!(0,On.isKindAbstract)(we.kind))return K.push((0,de.invalidInlineFragmentTypeErrorMessage)(n,v,ee,Ve)),X.BREAK;let ve=l.parentDefinitionDataByTypeName.get(ee);if(!ve)return K.push((0,de.unknownInlineFragmentTypeConditionErrorMessage)(n,v,Ve,ee)),X.BREAK;switch(Z=!0,ve.kind){case X.Kind.INTERFACE_TYPE_DEFINITION:{if(!ve.implementedInterfaceTypeNames.has(Ve))break;p.push(ve);return}case X.Kind.OBJECT_TYPE_DEFINITION:{let gt=l.concreteTypeNamesByAbstractTypeName.get(Ve);if(!gt||!gt.has(ee))break;p.push(ve);return}case X.Kind.UNION_TYPE_DEFINITION:{p.push(ve);return}default:return K.push((0,de.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,Ve,ee,(0,$e.kindToNodeType)(ve.kind))),X.BREAK}return K.push((0,de.invalidInlineFragmentTypeConditionErrorMessage)(n,v,ee,(0,$e.kindToNodeType)(we.kind),Ve)),X.BREAK}},SelectionSet:{enter(){if(!Z){let fe=p[G];if(fe.kind===X.Kind.UNION_TYPE_DEFINITION)return K.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,W)),X.BREAK;let we=fe.fieldDataByName.get(W);if(!we)return K.push((0,de.undefinedFieldInFieldSetErrorMessage)(n,fe.name,W)),X.BREAK;let Ve=(0,nr.getTypeNodeNamedTypeName)(we.node.type),it=l.parentDefinitionDataByTypeName.get(Ve),ee=it?it.kind:X.Kind.SCALAR_TYPE_DEFINITION;return K.push((0,de.invalidSelectionSetDefinitionErrorMessage)(n,v,Ve,(0,$e.kindToNodeType)(ee))),X.BREAK}if(G+=1,Z=!1,G<0||G>=p.length)return K.push((0,de.unparsableFieldSetSelectionErrorMessage)(n,W)),X.BREAK;y.push(new Set)},leave(){if(Z){let fe=p[G+1];K.push((0,de.invalidSelectionSetErrorMessage)(n,v,fe.name,(0,$e.kindToNodeType)(fe.kind))),Z=!1}G-=1,p.pop(),y.pop()}}}),K.length>0||!Te?{errorMessages:K}:{configuration:{fieldName:r,selectionSet:(0,ei.getNormalizedFieldSet)(c)},errorMessages:K}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,Nn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:p,errorString:f}=this.getFieldSetParent(r,t,c,o),y=`${o}.${c}`;if(f){i.push(f);continue}if(!p)continue;let{errorMessages:g,configuration:v}=this.validateConditionalFieldSet(p,l,c,r,o);if(g.length>0){i.push(` On field "${y}": + -`+g.join(ne.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,de.invalidProvidesOrRequiresDirectivesError)((0,ei.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(ne.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(Ht.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,$e.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[f,y]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${f}`);let g=!1,v=t.fieldDataByName.get(f);if(!v){p=!0,l.unimplementedFields.push(f);continue}let P={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,ma.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,Nn.isTypeValidImplementation)(y.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,g=!0,P.implementedResponseType=(0,ma.printTypeNode)(v.node.type));let k=new Set;for(let[K,G]of y.argumentDataByName){k.add(K);let Z=v.argumentDataByName.get(K);if(!Z){p=!0,g=!0,P.unimplementedArguments.add(K);continue}let W=(0,ma.printTypeNode)(Z.type),Te=(0,ma.printTypeNode)(G.type);Te!==W&&(p=!0,g=!0,P.invalidImplementedArguments.push({actualType:W,argumentName:K,expectedType:Te}))}for(let[K,G]of v.argumentDataByName)k.has(K)||G.type.kind===X.Kind.NON_NULL_TYPE&&(p=!0,g=!0,P.invalidAdditionalArguments.add(K));!n&&v.isInaccessible&&!y.isInaccessible&&(p=!0,g=!0,P.isInaccessible=!0),g&&l.invalidFieldImplementations.set(f,P)}p&&r.set(o,l)}i.size>0&&this.errors.push((0,de.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,de.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,de.invalidInterfaceImplementationError)(t.name,(0,$e.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,$e.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,rr.newAuthorizationData)(n));if(t.kind===X.Kind.FIELD_DEFINITION){let i=(0,$e.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,rr.newFieldAuthorizationData)(t.name));i.inheritedData.requiresAuthentication=!0,i.originalData.requiresAuthentication=!0}else r.requiresAuthentication=!0,this.parentTypeNamesWithAuthDirectives.add(n)}handleOverrideDirective({data:t,directiveCoords:n,errorMessages:r,targetSubgraphName:i}){if(i===this.subgraphName){r.push((0,de.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,$e.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,$e.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>Ht.MAX_OR_SCOPES){this.invalidORScopesCoords.add(t);return}for(let i of n){let a=new Set;for(let o of i.values)a.add(o.value);a.size<1||(0,rr.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case ne.TOPIC:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(ne.TOPIC));continue}(0,ei.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case ne.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_KAFKA,topics:a,type:ne.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case ne.TOPICS:{if(c.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(ne.TOPICS));continue}for(let l of c.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(ne.TOPICS));break}(0,ei.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case ne.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_KAFKA,topics:a,type:ne.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=ne.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case ne.SUBJECT:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){a.push((0,de.invalidEventSubjectErrorMessage)(ne.SUBJECT));continue}(0,ei.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case ne.PROVIDER_ID:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){a.push(de.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:ne.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID,c=bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",p="";for(let f of t.arguments||[])switch(f.name.value){case ne.SUBJECTS:{if(f.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(ne.SUBJECTS));continue}for(let y of f.value.values){if(y.kind!==X.Kind.STRING||y.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(ne.SUBJECTS));break}(0,ei.validateArgumentTemplateReferences)(y.value,n,i),a.push(y.value)}break}case ne.PROVIDER_ID:{if(f.value.kind!==X.Kind.STRING||f.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=f.value.value;break}case ne.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,f.value.kind!==X.Kind.OBJECT||f.value.fields.length<1){i.push(de.invalidNatsStreamInputErrorMessage);continue}let y=!0,g=new Set,v=new Set(DE.STREAM_CONFIGURATION_FIELD_NAMES),P=new Set([ne.CONSUMER_NAME,ne.STREAM_NAME]),k=new Set,K=new Set;for(let G of f.value.fields){let Z=G.name.value;if(!DE.STREAM_CONFIGURATION_FIELD_NAMES.has(Z)){g.add(Z),y=!1;continue}if(v.has(Z))v.delete(Z);else{k.add(Z),y=!1;continue}switch(P.has(Z)&&P.delete(Z),Z){case ne.CONSUMER_NAME:if(G.value.kind!=X.Kind.STRING||G.value.value.length<1){K.add(Z),y=!1;continue}l=G.value.value;break;case ne.STREAM_NAME:if(G.value.kind!=X.Kind.STRING||G.value.value.length<1){K.add(Z),y=!1;continue}p=G.value.value;break;case ne.CONSUMER_INACTIVE_THRESHOLD:if(G.value.kind!=X.Kind.INT){i.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",ne.INT_SCALAR)),y=!1;continue}try{c=parseInt(G.value.value,10)}catch(W){i.push((0,de.invalidArgumentValueErrorMessage)((0,X.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",ne.INT_SCALAR)),y=!1}break}}(!y||P.size>0)&&i.push((0,de.invalidNatsStreamInputFieldsErrorMessage)([...P],[...k],[...K],[...g]))}}if(!(i.length>0))return c<0?(c=bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,vs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>nle.MAX_INT32&&(c=0,this.warnings.push((0,vs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),x({fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_NATS,subjects:a,type:ne.SUBSCRIBE},l&&p?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:p}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case ne.CHANNEL:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push((0,de.invalidEventSubjectErrorMessage)(ne.CHANNEL));continue}(0,ei.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case ne.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_REDIS,channels:a,type:ne.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=ne.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case ne.CHANNELS:{if(c.value.kind!==X.Kind.LIST){i.push((0,de.invalidEventSubjectsErrorMessage)(ne.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,de.invalidEventSubjectsItemErrorMessage)(ne.CHANNELS));break}(0,ei.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case ne.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(de.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:ne.PROVIDER_TYPE_REDIS,channels:a,type:ne.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===X.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===ne.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,de.invalidSubscriptionFilterLocationError)(r));return}}extractEventDirectivesToConfiguration(t,n){if(!t.directives)return;let r=t.name.value,i=`${this.renamedParentTypeName||this.originalParentTypeName}.${r}`;for(let a of t.directives){let o=[],c;switch(a.name.value){case ne.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case ne.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case ne.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(ne.PUBLISH,a,n,r,o);break}case ne.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(ne.REQUEST,a,n,r,o);break}case ne.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case ne.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case ne.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,de.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,$e.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case X.OperationTypeNode.MUTATION:return new Set([ne.EDFS_KAFKA_PUBLISH,ne.EDFS_NATS_PUBLISH,ne.EDFS_NATS_REQUEST,ne.EDFS_REDIS_PUBLISH]);case X.OperationTypeNode.QUERY:return new Set([ne.EDFS_NATS_REQUEST]);case X.OperationTypeNode.SUBSCRIPTION:return new Set([ne.EDFS_KAFKA_SUBSCRIBE,ne.EDFS_NATS_SUBSCRIBE,ne.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case ne.MUTATION:return X.OperationTypeNode.MUTATION;case ne.QUERY:return X.OperationTypeNode.QUERY;case ne.SUBSCRIPTION:return X.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,de.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let p=`${l.originalParentTypeName}.${c}`,f=new Set;for(let K of DE.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(K)&&f.add(K);let y=new Set;for(let K of f)o.has(K)||y.add(K);if((f.size<1||y.size>0)&&n.set(p,{definesDirectives:f.size>0,invalidDirectiveNames:[...y]}),a===X.OperationTypeNode.MUTATION){let K=(0,ma.printTypeNode)(l.type);K!==ne.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(p,K);continue}let g=(0,ma.printTypeNode)(l.type),v=l.namedTypeName+"!",P=!1,k=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let K of k)if(P||(P=this.entityDataByTypeName.has(K)),P)break;(!P||g!==v)&&r.set(p,g)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,$e.getValueOrDefault)(n,t,()=>[]).push(i)}validateEventDrivenObjectFields(t,n,r,i){var a;for(let[o,c]of t){let l=`${c.originalParentTypeName}.${o}`;if(n.has(o)){(a=c.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal||r.set(l,o);continue}i.set(l,o)}}isEdfsPublishResultValid(){let t=this.parentDefinitionDataByTypeName.get(ne.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==X.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==ne.SUCCESS||(0,ma.printTypeNode)(r.type)!==ne.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(t.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case ne.CONSUMER_INACTIVE_THRESHOLD:{if((0,ma.printTypeNode)(r.type)!==ne.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==X.Kind.INT||r.defaultValue.value!==`${bE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case ne.CONSUMER_NAME:case ne.STREAM_NAME:{if((0,ma.printTypeNode)(r.type)!==ne.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(t){let n=[],r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Map,p=new Set,f=new Set;for(let[y,g]of this.parentDefinitionDataByTypeName){if(y===ne.EDFS_PUBLISH_RESULT||y===ne.EDFS_NATS_STREAM_CONFIGURATION||g.kind!==X.Kind.OBJECT_TYPE_DEFINITION)continue;if(g.isRootType){this.validateEventDrivenRootType(g,r,i,a);continue}let v=this.keyFieldNamesByParentTypeName.get(y);if(!v){f.add(y);continue}this.validateEventDrivenKeyDefinition(y,o),this.validateEventDrivenObjectFields(g.fieldDataByName,v,c,l)}if(this.isEdfsPublishResultValid()||n.push(de.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(ne.EDFS_NATS_SUBSCRIBE)){let y=this.parentDefinitionDataByTypeName.get(ne.EDFS_NATS_STREAM_CONFIGURATION);y&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(y)&&n.push(de.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(ne.EDFS_NATS_STREAM_CONFIGURATION),t.push(Ht.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION)}this.referencedDirectiveNames.has(ne.LINK)&&(t.push(Ht.LINK_DEFINITION),t.push(Ht.LINK_IMPORT_DEFINITION),t.push(Ht.LINK_PURPOSE_DEFINITION)),r.size>0&&n.push((0,de.invalidRootTypeFieldEventsDirectivesErrorMessage)(r)),a.size>0&&n.push((0,de.invalidEventDrivenMutationResponseTypeErrorMessage)(a)),i.size>0&&n.push((0,de.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(i)),o.size>0&&n.push((0,de.invalidKeyFieldSetsEventDrivenErrorMessage)(o)),c.size>0&&n.push((0,de.nonExternalKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&n.push((0,de.nonKeyFieldNamesEventDrivenErrorMessage)(l)),p.size>0&&n.push((0,de.nonEntityObjectExtensionsEventDrivenErrorMessage)([...p])),f.size>0&&n.push((0,de.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...f])),n.length>0&&this.errors.push((0,de.invalidEventDrivenGraphError)(n))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,de.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,$e.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,de.invalidUnionMemberTypeError)(t.name,n))}addConcreteTypeNamesForUnion(t){if(!t.types||t.types.length<1)return;let n=t.name.value;for(let r of t.types){let i=r.name.value;(0,$e.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,n,()=>new Set).add(i),this.internalGraph.addEdge(this.internalGraph.addOrUpdateNode(n,{isAbstract:!0}),this.internalGraph.addOrUpdateNode(i),i,!0)}}addValidKeyFieldSetConfigurations(){for(let[t,n]of this.keyFieldSetDatasByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Nn.getParentTypeName)(r),a=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,$p.newConfigurationData)(!0,i)),o=(0,ei.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&ne.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByDirectiveName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let f=(0,$e.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(a)||(f.add(a),this.errors.push((0,de.invalidDirectiveError)(a,n,"1st",[(0,de.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==ne.KEY){i.push(...o);continue}let l=[],p=new Set;for(let f=0;fnew Set).add(k)),(0,$e.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(P);let Z=(0,nr.getTypeNodeNamedTypeName)(K.node.type);if(Ht.BASE_SCALARS.has(Z))return;let W=a.parentDefinitionDataByTypeName.get(Z);if(!W)return X.BREAK;if(W.kind===X.Kind.OBJECT_TYPE_DEFINITION){f=!0,c.push(W);return}if((0,On.isKindAbstract)(W.kind))return X.BREAK}},InlineFragment:{enter(){return X.BREAK}},SelectionSet:{enter(){if(!f||(p+=1,f=!1,p<0||p>=c.length))return X.BREAK},leave(){f&&(f=!1),p-=1,c.pop()}}}),!(l.size<1))for(let[y,g]of l)this.warnings.push((0,vs.externalEntityExtensionKeyFieldWarning)(i.name,y,[...g],this.subgraphName))}}for(let n of t)this.keyFieldSetDatasByTypeName.delete(n)}addValidConditionalFieldSetConfigurations(){for(let[t,n]of this.fieldSetDataByTypeName){let r=this.parentDefinitionDataByTypeName.get(t);if(!r||r.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,de.undefinedCompositeOutputTypeError)(t));continue}let i=(0,Nn.getParentTypeName)(r),a=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,$p.newConfigurationData)(!1,i)),o=this.validateProvidesOrRequires(r,n.provides,!0);o&&(a.provides=o);let c=this.validateProvidesOrRequires(r,n.requires,!1);c&&(a.requires=c)}}addFieldNamesToConfigurationData(t,n){let r=new Set;for(let[i,a]of t){let o=a.externalFieldDataBySubgraphName.get(this.subgraphName);if(!o||o.isUnconditionallyProvided){n.fieldNames.add(i);continue}r.add(i),this.edfsDirectiveReferences.size>0&&n.fieldNames.add(i)}r.size>0&&(n.externalFieldNames=r)}normalize(t){var a;(0,Kq.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,Kq.upsertParentsAndChildren)(this,t),this.validateDirectives(this.schemaData,ne.SCHEMA);for(let[o,c]of this.parentDefinitionDataByTypeName)this.validateDirectives(c,o);this.invalidORScopesCoords.size>0&&this.errors.push((0,de.orScopesLimitError)(Ht.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));let n=[];for(let o of Ht.BASE_DIRECTIVE_DEFINITIONS)n.push(o);if(n.push(Ht.FIELD_SET_SCALAR_DEFINITION),this.isSubgraphVersionTwo){for(let o of Ht.VERSION_TWO_DIRECTIVE_DEFINITIONS)n.push(o),this.directiveDefinitionByDirectiveName.set(o.name.value,o);n.push(Ht.SCOPE_SCALAR_DEFINITION)}for(let o of this.edfsDirectiveReferences){let c=Ht.EVENT_DRIVEN_DIRECTIVE_DEFINITIONS_BY_DIRECTIVE_NAME.get(o);if(!c){this.errors.push((0,de.invalidEdfsDirectiveName)(o));continue}n.push(c)}this.edfsDirectiveReferences.size>0&&this.referencedDirectiveNames.has(ne.SUBSCRIPTION_FILTER)&&(n.push(Ht.SUBSCRIPTION_FILTER_DEFINITION),n.push(Ht.SUBSCRIPTION_FILTER_CONDITION_DEFINITION),n.push(Ht.SUBSCRIPTION_FIELD_CONDITION_DEFINITION),n.push(Ht.SUBSCRIPTION_FILTER_VALUE_DEFINITION)),this.referencedDirectiveNames.has(ne.CONFIGURE_DESCRIPTION)&&n.push(Ht.CONFIGURE_DESCRIPTION_DEFINITION),this.referencedDirectiveNames.has(ne.CONFIGURE_CHILD_DESCRIPTIONS)&&n.push(Ht.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION);for(let o of this.customDirectiveDefinitions.values())n.push(o);this.schemaData.operationTypes.size>0&&n.push(this.getSchemaNodeByData(this.schemaData));for(let o of this.invalidConfigureDescriptionNodeDatas)o.description||this.errors.push((0,de.configureDescriptionNoDescriptionError)((0,$e.kindToNodeType)(o.kind),o.name));this.evaluateExternalKeyFields();for(let[o,c]of this.parentDefinitionDataByTypeName)switch(c.kind){case X.Kind.ENUM_TYPE_DEFINITION:if(c.enumValueDataByValueName.size<1){this.errors.push((0,de.noDefinedEnumValuesError)(o));break}n.push(this.getEnumNodeByData(c));break;case X.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(c.inputValueDataByName.size<1){this.errors.push((0,de.noInputValueDefinitionsError)(o));break}for(let K of c.inputValueDataByName.values()){if(K.namedTypeKind!==X.Kind.NULL)continue;let G=this.parentDefinitionDataByTypeName.get(K.namedTypeName);if(G){if(!(0,Nn.isInputNodeKind)(G.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:K,namedTypeData:G,nodeType:`${(0,$e.kindToNodeType)(c.kind)} field`}));continue}K.namedTypeKind=G.kind}}n.push(this.getInputObjectNodeByData(c));break;case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:let l=this.entityDataByTypeName.has(o),p=this.operationTypeNodeByTypeName.get(o),f=c.kind===X.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&c.extensionType===Ga.ExtensionType.EXTENDS&&(c.extensionType=Ga.ExtensionType.NONE),p&&(c.fieldDataByName.delete(ne.SERVICE_FIELD),c.fieldDataByName.delete(ne.ENTITIES_FIELD));let y=[];for(let[K,G]of c.fieldDataByName){if(!f&&((a=G.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&y.push(K),this.validateArguments(G,c.kind),G.namedTypeKind!==X.Kind.NULL)continue;let Z=this.parentDefinitionDataByTypeName.get(G.namedTypeName);if(Z){if(!(0,Nn.isOutputNodeKind)(Z.kind)){this.errors.push((0,de.invalidNamedTypeError)({data:G,namedTypeData:Z,nodeType:`${(0,$e.kindToNodeType)(c.kind)} field`}));continue}G.namedTypeKind=this.entityInterfaceDataByTypeName.get(Z.name)?X.Kind.INTERFACE_TYPE_DEFINITION:Z.kind}}y.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,de.externalInterfaceFieldsError)(o,y)):this.warnings.push((0,vs.externalInterfaceFieldsWarning)(this.subgraphName,o,y)));let g=(0,Nn.getParentTypeName)(c),v=(0,$e.getValueOrDefault)(this.configurationDataByTypeName,g,()=>(0,$p.newConfigurationData)(l,o)),P=this.entityInterfaceDataByTypeName.get(o);if(P){P.fieldDatas=(0,rr.fieldDatasToSimpleFieldDatas)(c.fieldDataByName.values());let K=this.concreteTypeNamesByAbstractTypeName.get(o);K&&(0,$e.addIterableValuesToSet)(K,P.concreteTypeNames),v.isInterfaceObject=P.isInterfaceObject,v.entityInterfaceConcreteTypeNames=P.concreteTypeNames}let k=this.eventsConfigurations.get(g);k&&(v.events=k),this.addFieldNamesToConfigurationData(c.fieldDataByName,v),this.validateInterfaceImplementations(c),n.push(this.getCompositeOutputNodeByData(c)),c.fieldDataByName.size<1&&!(0,ei.isNodeQuery)(o,p)&&this.errors.push((0,de.noFieldDefinitionsError)((0,$e.kindToNodeType)(c.kind),o));break;case X.Kind.SCALAR_TYPE_DEFINITION:if(c.extensionType===Ga.ExtensionType.REAL){this.errors.push((0,de.noBaseScalarDefinitionError)(o));break}n.push(this.getScalarNodeByData(c));break;case X.Kind.UNION_TYPE_DEFINITION:n.push(this.getUnionNodeByData(c)),this.validateUnionMembers(c);break;default:throw(0,de.unexpectedKindFatalError)(o)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let o of Object.values(X.OperationTypeNode)){let c=this.schemaData.operationTypes.get(o),l=(0,$e.getOrThrowError)(On.operationTypeNodeToDefaultType,o,ne.OPERATION_TO_DEFAULT),p=c?(0,nr.getTypeNodeNamedTypeName)(c.type):l;if(Ht.BASE_SCALARS.has(p)&&this.referencedTypeNames.add(p),p!==l&&this.parentDefinitionDataByTypeName.has(l)){this.errors.push((0,de.invalidRootTypeDefinitionError)(o,p,l));continue}let f=this.parentDefinitionDataByTypeName.get(p);if(c){if(!f)continue;this.operationTypeNodeByTypeName.set(p,o)}if(!f)continue;let y=this.configurationDataByTypeName.get(l);y&&(y.isRootNode=!0,y.typeName=l),f.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,de.operationDefinitionError)(p,o,f.kind))}for(let o of this.referencedTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(!c){this.errors.push((0,de.undefinedTypeError)(o));continue}if(c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION)continue;let l=this.concreteTypeNamesByAbstractTypeName.get(o);(!l||l.size<0)&&this.warnings.push((0,vs.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,o))}let r=new Map;for(let o of this.directiveDefinitionByDirectiveName.values()){let c=(0,On.extractExecutableDirectiveLocations)(o.locations,new Set);c.size<1||this.addPersistedDirectiveDefinitionDataByNode(r,o,c)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph(n);for(let o of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,de.invalidExternalDirectiveError)(o)):this.warnings.push((0,vs.invalidExternalFieldWarning)(o,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:X.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,entityDataByTypeName:this.entityDataByTypeName,entityInterfaces:this.entityInterfaceDataByTypeName,fieldCoordsByNamedTypeName:this.fieldCoordsByNamedTypeName,isEventDrivenGraph:this.isSubgraphEventDrivenGraph,isVersionTwo:this.isSubgraphVersionTwo,keyFieldNamesByParentTypeName:this.keyFieldNamesByParentTypeName,keyFieldSetsByEntityTypeNameByKeyFieldCoords:this.keyFieldSetsByEntityTypeNameByFieldCoords,operationTypes:this.operationTypeNodeByTypeName,originalTypeNameByRenamedTypeName:this.originalTypeNameByRenamedTypeName,overridesByTargetSubgraphName:this.overridesByTargetSubgraphName,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:r,subgraphAST:i,subgraphString:(0,X.print)(i),schema:(0,ele.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};Ec.NormalizationFactory=Qp;function ile(e){let t=new Map,n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Set,l=new Map,p=new Set,f=new Set,y=[],g=new Set,v=new Map,P=[],k=[];for(let Z of e)Z.name&&(0,tle.recordSubgraphName)(Z.name,p,f);let K=new HO.Graph;for(let Z=0;Z0&&P.push(...fe.warnings),!fe.success){k.push((0,de.subgraphValidationError)(Te,fe.errors));continue}if(!fe){k.push((0,de.subgraphValidationError)(Te,[de.subgraphValidationFailureError]));continue}l.set(Te,fe.parentDefinitionDataByTypeName);for(let we of fe.authorizationDataByParentTypeName.values())(0,rr.upsertAuthorizationData)(t,we,g);for(let[we,Ve]of fe.fieldCoordsByNamedTypeName)(0,$e.addIterableValuesToSet)(Ve,(0,$e.getValueOrDefault)(v,we,()=>new Set));for(let[we,Ve]of fe.concreteTypeNamesByAbstractTypeName){let it=n.get(we);if(!it){n.set(we,new Set(Ve));continue}(0,$e.addIterableValuesToSet)(Ve,it)}for(let[we,Ve]of fe.entityDataByTypeName){let it=Ve.keyFieldSetDatasBySubgraphName.get(Te);it&&(0,rr.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:it,typeName:we,subgraphName:Te})}if(W.name&&i.set(Te,{conditionalFieldDataByCoordinates:fe.conditionalFieldDataByCoordinates,configurationDataByTypeName:fe.configurationDataByTypeName,definitions:fe.subgraphAST,entityInterfaces:fe.entityInterfaces,isVersionTwo:fe.isVersionTwo,keyFieldNamesByParentTypeName:fe.keyFieldNamesByParentTypeName,name:Te,operationTypes:fe.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:fe.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:fe.persistedDirectiveDefinitionDataByDirectiveName,schema:fe.schema,url:W.url}),!(fe.overridesByTargetSubgraphName.size<1))for(let[we,Ve]of fe.overridesByTargetSubgraphName){let it=p.has(we);for(let[ee,ve]of Ve){let gt=fe.originalTypeNameByRenamedTypeName.get(ee)||ee;if(!it)P.push((0,vs.invalidOverrideTargetSubgraphNameWarning)(we,gt,[...ve],W.name));else{let zt=(0,$e.getValueOrDefault)(a,we,()=>new Map),Wt=(0,$e.getValueOrDefault)(zt,ee,()=>new Set(ve));(0,$e.addIterableValuesToSet)(ve,Wt)}for(let zt of ve){let Wt=`${gt}.${zt}`,Dn=o.get(Wt);if(!Dn){o.set(Wt,[Te]);continue}Dn.push(Te),c.add(Wt)}}}}let G=[];if(g.size>0&&G.push((0,de.orScopesLimitError)(Ht.MAX_OR_SCOPES,[...g])),(y.length>0||f.size>0)&&G.push((0,de.invalidSubgraphNamesError)([...f],y)),c.size>0){let Z=[];for(let W of c){let Te=(0,$e.getOrThrowError)(o,W,"overrideSourceSubgraphNamesByFieldPath");Z.push((0,de.duplicateOverriddenFieldErrorMessage)(W,Te))}G.push((0,de.duplicateOverriddenFieldsError)(Z))}if(G.push(...k),G.length>0)return{errors:G,success:!1,warnings:P};for(let[Z,W]of a){let Te=(0,$e.getOrThrowError)(i,Z,"internalSubgraphBySubgraphName");Te.overriddenFieldNamesByParentTypeName=W;for(let[fe,we]of W){let Ve=Te.configurationDataByTypeName.get(fe);Ve&&((0,rr.subtractSet)(we,Ve.fieldNames),Ve.fieldNames.size<1&&Te.configurationDataByTypeName.delete(fe))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:K,success:!0,warnings:P}}});var AE=w(Ic=>{"use strict";m();T();N();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.DivergentType=void 0;Ic.getLeastRestrictiveMergedTypeNode=sle;Ic.getMostRestrictiveMergedTypeNode=ole;Ic.renameNamedTypeName=ule;var hc=Ae(),Qq=ia(),ale=su(),$q=Yr(),Yq=ml(),yc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(yc||(Ic.DivergentType=yc={}));function Jq(e,t,n,r,i){t=(0,ale.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=yc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(XO,"__esModule",{value:!0});XO.renameRootTypes=dle;var cle=Ae(),WO=Yr(),lle=AE(),Eu=ur(),gc=Jr();function dle(e,t){let n,r=!1,i;(0,cle.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===Eu.SERVICE_FIELD||o===Eu.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,gc.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),p=t.operationTypes.get(l.namedTypeName);if(p){let f=(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,p,Eu.OPERATION_TO_DEFAULT);l.namedTypeName!==f&&(0,lle.renameNamedTypeName)(l,f,e.errors)}return i!=null&&i.has(o)&&l.isShareableBySubgraphName.delete(t.name),!1}},InterfaceTypeDefinition:{enter(a){let o=a.name.value;if(!e.entityInterfaceFederationDataByTypeName.get(o))return!1;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,c,Eu.OPERATION_TO_DEFAULT):o;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA),r=n.isRootType,!e.entityInterfaceFederationDataByTypeName.get(o)&&(e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(l),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o)))},leave(){n=void 0,r=!1,i=void 0}},ObjectTypeExtension:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,gc.getOrThrowError)(WO.operationTypeNodeToDefaultType,c,Eu.OPERATION_TO_DEFAULT):o;n=(0,gc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Eu.PARENT_DEFINITION_DATA),r=n.isRootType,e.addValidPrimaryKeyTargetsToEntityData(o),i=t.overriddenFieldNamesByParentTypeName.get(o),o!==l&&(n.name=l,t.parentDefinitionDataByTypeName.set(l,n),t.parentDefinitionDataByTypeName.delete(o))},leave(){n=void 0,r=!1,i=void 0}}})}});var Hq=w((Ql,Yp)=>{"use strict";m();T();N();(function(){var e,t="4.17.21",n=200,r="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",c=500,l="__lodash_placeholder__",p=1,f=2,y=4,g=1,v=2,P=1,k=2,K=4,G=8,Z=16,W=32,Te=64,fe=128,we=256,Ve=512,it=30,ee="...",ve=800,gt=16,zt=1,Wt=2,Dn=3,Vt=1/0,dn=9007199254740991,Ar=17976931348623157e292,Rr=NaN,Un=4294967295,$t=Un-1,bn=Un>>>1,oe=[["ary",fe],["bind",P],["bindKey",k],["curry",G],["curryRight",Z],["flip",Ve],["partial",W],["partialRight",Te],["rearg",we]],De="[object Arguments]",_e="[object Array]",Le="[object AsyncFunction]",_t="[object Boolean]",J="[object Date]",se="[object DOMException]",xe="[object Error]",Qe="[object Function]",Lt="[object GeneratorFunction]",et="[object Map]",bt="[object Number]",Ha="[object Null]",xr="[object Object]",za="[object Promise]",wc="[object Proxy]",ha="[object RegExp]",pr="[object Set]",ni="[object String]",xt="[object Symbol]",fr="[object Undefined]",gu="[object WeakMap]",ya="[object WeakSet]",_u="[object ArrayBuffer]",A="[object DataView]",h="[object Float32Array]",I="[object Float64Array]",C="[object Int8Array]",$="[object Int16Array]",re="[object Int32Array]",le="[object Uint8Array]",pt="[object Uint8ClampedArray]",pn="[object Uint16Array]",tn="[object Uint32Array]",hn=/\b__p \+= '';/g,Xt=/\b(__p \+=) '' \+/g,I1=/(__e\(.*?\)|\b__t\)) \+\n'';/g,XD=/&(?:amp|lt|gt|quot|#39);/g,ZD=/[&<>"']/g,g1=RegExp(XD.source),_1=RegExp(ZD.source),v1=/<%-([\s\S]+?)%>/g,S1=/<%([\s\S]+?)%>/g,eb=/<%=([\s\S]+?)%>/g,O1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D1=/^\w*$/,b1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oh=/[\\^$.*+?()[\]{}|]/g,A1=RegExp(oh.source),uh=/^\s+/,R1=/\s/,P1=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,F1=/\{\n\/\* \[wrapped with (.+)\] \*/,w1=/,? & /,L1=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,C1=/[()=,{}\[\]\/\s]/,B1=/\\(\\)?/g,U1=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tb=/\w*$/,k1=/^[-+]0x[0-9a-f]+$/i,M1=/^0b[01]+$/i,x1=/^\[object .+?Constructor\]$/,q1=/^0o[0-7]+$/i,V1=/^(?:0|[1-9]\d*)$/,j1=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ef=/($^)/,K1=/['\n\r\u2028\u2029\\]/g,hf="\\ud800-\\udfff",G1="\\u0300-\\u036f",$1="\\ufe20-\\ufe2f",Q1="\\u20d0-\\u20ff",nb=G1+$1+Q1,rb="\\u2700-\\u27bf",ib="a-z\\xdf-\\xf6\\xf8-\\xff",Y1="\\xac\\xb1\\xd7\\xf7",J1="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",H1="\\u2000-\\u206f",z1=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ab="A-Z\\xc0-\\xd6\\xd8-\\xde",sb="\\ufe0e\\ufe0f",ob=Y1+J1+H1+z1,ch="['\u2019]",W1="["+hf+"]",ub="["+ob+"]",yf="["+nb+"]",cb="\\d+",X1="["+rb+"]",lb="["+ib+"]",db="[^"+hf+ob+cb+rb+ib+ab+"]",lh="\\ud83c[\\udffb-\\udfff]",Z1="(?:"+yf+"|"+lh+")",pb="[^"+hf+"]",dh="(?:\\ud83c[\\udde6-\\uddff]){2}",ph="[\\ud800-\\udbff][\\udc00-\\udfff]",Lc="["+ab+"]",fb="\\u200d",mb="(?:"+lb+"|"+db+")",ej="(?:"+Lc+"|"+db+")",Nb="(?:"+ch+"(?:d|ll|m|re|s|t|ve))?",Tb="(?:"+ch+"(?:D|LL|M|RE|S|T|VE))?",Eb=Z1+"?",hb="["+sb+"]?",tj="(?:"+fb+"(?:"+[pb,dh,ph].join("|")+")"+hb+Eb+")*",nj="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rj="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yb=hb+Eb+tj,ij="(?:"+[X1,dh,ph].join("|")+")"+yb,aj="(?:"+[pb+yf+"?",yf,dh,ph,W1].join("|")+")",sj=RegExp(ch,"g"),oj=RegExp(yf,"g"),fh=RegExp(lh+"(?="+lh+")|"+aj+yb,"g"),uj=RegExp([Lc+"?"+lb+"+"+Nb+"(?="+[ub,Lc,"$"].join("|")+")",ej+"+"+Tb+"(?="+[ub,Lc+mb,"$"].join("|")+")",Lc+"?"+mb+"+"+Nb,Lc+"+"+Tb,rj,nj,cb,ij].join("|"),"g"),cj=RegExp("["+fb+hf+nb+sb+"]"),lj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dj=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],pj=-1,Tn={};Tn[h]=Tn[I]=Tn[C]=Tn[$]=Tn[re]=Tn[le]=Tn[pt]=Tn[pn]=Tn[tn]=!0,Tn[De]=Tn[_e]=Tn[_u]=Tn[_t]=Tn[A]=Tn[J]=Tn[xe]=Tn[Qe]=Tn[et]=Tn[bt]=Tn[xr]=Tn[ha]=Tn[pr]=Tn[ni]=Tn[gu]=!1;var fn={};fn[De]=fn[_e]=fn[_u]=fn[A]=fn[_t]=fn[J]=fn[h]=fn[I]=fn[C]=fn[$]=fn[re]=fn[et]=fn[bt]=fn[xr]=fn[ha]=fn[pr]=fn[ni]=fn[xt]=fn[le]=fn[pt]=fn[pn]=fn[tn]=!0,fn[xe]=fn[Qe]=fn[gu]=!1;var fj={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},mj={"&":"&","<":"<",">":">",'"':""","'":"'"},Nj={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ej=parseFloat,hj=parseInt,Ib=typeof global=="object"&&global&&global.Object===Object&&global,yj=typeof self=="object"&&self&&self.Object===Object&&self,ir=Ib||yj||Function("return this")(),mh=typeof Ql=="object"&&Ql&&!Ql.nodeType&&Ql,vu=mh&&typeof Yp=="object"&&Yp&&!Yp.nodeType&&Yp,gb=vu&&vu.exports===mh,Nh=gb&&Ib.process,Ni=function(){try{var Q=vu&&vu.require&&vu.require("util").types;return Q||Nh&&Nh.binding&&Nh.binding("util")}catch(ce){}}(),_b=Ni&&Ni.isArrayBuffer,vb=Ni&&Ni.isDate,Sb=Ni&&Ni.isMap,Ob=Ni&&Ni.isRegExp,Db=Ni&&Ni.isSet,bb=Ni&&Ni.isTypedArray;function ri(Q,ce,ie){switch(ie.length){case 0:return Q.call(ce);case 1:return Q.call(ce,ie[0]);case 2:return Q.call(ce,ie[0],ie[1]);case 3:return Q.call(ce,ie[0],ie[1],ie[2])}return Q.apply(ce,ie)}function Ij(Q,ce,ie,Be){for(var ot=-1,jt=Q==null?0:Q.length;++ot-1}function Th(Q,ce,ie){for(var Be=-1,ot=Q==null?0:Q.length;++Be-1;);return ie}function Bb(Q,ce){for(var ie=Q.length;ie--&&Cc(ce,Q[ie],0)>-1;);return ie}function Rj(Q,ce){for(var ie=Q.length,Be=0;ie--;)Q[ie]===ce&&++Be;return Be}var Pj=Ih(fj),Fj=Ih(mj);function wj(Q){return"\\"+Tj[Q]}function Lj(Q,ce){return Q==null?e:Q[ce]}function Bc(Q){return cj.test(Q)}function Cj(Q){return lj.test(Q)}function Bj(Q){for(var ce,ie=[];!(ce=Q.next()).done;)ie.push(ce.value);return ie}function Sh(Q){var ce=-1,ie=Array(Q.size);return Q.forEach(function(Be,ot){ie[++ce]=[ot,Be]}),ie}function Ub(Q,ce){return function(ie){return Q(ce(ie))}}function xo(Q,ce){for(var ie=-1,Be=Q.length,ot=0,jt=[];++ie-1}function _K(s,u){var d=this.__data__,E=kf(d,s);return E<0?(++this.size,d.push([s,u])):d[E][1]=u,this}Wa.prototype.clear=hK,Wa.prototype.delete=yK,Wa.prototype.get=IK,Wa.prototype.has=gK,Wa.prototype.set=_K;function Xa(s){var u=-1,d=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function yi(s,u,d,E,S,L){var M,j=u&p,H=u&f,pe=u&y;if(d&&(M=S?d(s,E,S,L):d(s)),M!==e)return M;if(!_n(s))return s;var me=lt(s);if(me){if(M=DG(s),!j)return qr(s,M)}else{var Ee=Er(s),be=Ee==Qe||Ee==Lt;if(Qo(s))return h0(s,j);if(Ee==xr||Ee==De||be&&!S){if(M=H||be?{}:k0(s),!j)return H?NG(s,MK(M,s)):mG(s,Jb(M,s))}else{if(!fn[Ee])return S?s:{};M=bG(s,Ee,j)}}L||(L=new Qi);var je=L.get(s);if(je)return je;L.set(s,M),pA(s)?s.forEach(function(Ze){M.add(yi(Ze,u,d,Ze,s,L))}):lA(s)&&s.forEach(function(Ze,vt){M.set(vt,yi(Ze,u,d,vt,s,L))});var Xe=pe?H?zh:Hh:H?jr:ar,Et=me?e:Xe(s);return Ti(Et||s,function(Ze,vt){Et&&(vt=Ze,Ze=s[vt]),ld(M,vt,yi(Ze,u,d,vt,s,L))}),M}function xK(s){var u=ar(s);return function(d){return Hb(d,s,u)}}function Hb(s,u,d){var E=d.length;if(s==null)return!E;for(s=on(s);E--;){var S=d[E],L=u[S],M=s[S];if(M===e&&!(S in s)||!L(M))return!1}return!0}function zb(s,u,d){if(typeof s!="function")throw new Ei(i);return Ed(function(){s.apply(e,d)},u)}function dd(s,u,d,E){var S=-1,L=If,M=!0,j=s.length,H=[],pe=u.length;if(!j)return H;d&&(u=yn(u,ii(d))),E?(L=Th,M=!1):u.length>=n&&(L=id,M=!1,u=new Du(u));e:for(;++SS?0:S+d),E=E===e||E>S?S:mt(E),E<0&&(E+=S),E=d>E?0:mA(E);d0&&d(j)?u>1?mr(j,u-1,d,E,S):Mo(S,j):E||(S[S.length]=j)}return S}var Fh=S0(),Zb=S0(!0);function Ia(s,u){return s&&Fh(s,u,ar)}function wh(s,u){return s&&Zb(s,u,ar)}function xf(s,u){return ko(u,function(d){return rs(s[d])})}function Au(s,u){u=Go(u,s);for(var d=0,E=u.length;s!=null&&du}function jK(s,u){return s!=null&&Zt.call(s,u)}function KK(s,u){return s!=null&&u in on(s)}function GK(s,u,d){return s>=Tr(u,d)&&s=120&&me.length>=120)?new Du(M&&me):e}me=s[0];var Ee=-1,be=j[0];e:for(;++Ee-1;)j!==s&&Pf.call(j,H,1),Pf.call(s,H,1);return s}function l0(s,u){for(var d=s?u.length:0,E=d-1;d--;){var S=u[d];if(d==E||S!==L){var L=S;ns(S)?Pf.call(s,S,1):jh(s,S)}}return s}function xh(s,u){return s+Lf(Gb()*(u-s+1))}function rG(s,u,d,E){for(var S=-1,L=Jn(wf((u-s)/(d||1)),0),M=ie(L);L--;)M[E?L:++S]=s,s+=d;return M}function qh(s,u){var d="";if(!s||u<1||u>dn)return d;do u%2&&(d+=s),u=Lf(u/2),u&&(s+=s);while(u);return d}function yt(s,u){return ry(q0(s,u,Kr),s+"")}function iG(s){return Yb($c(s))}function aG(s,u){var d=$c(s);return zf(d,bu(u,0,d.length))}function md(s,u,d,E){if(!_n(s))return s;u=Go(u,s);for(var S=-1,L=u.length,M=L-1,j=s;j!=null&&++SS?0:S+u),d=d>S?S:d,d<0&&(d+=S),S=u>d?0:d-u>>>0,u>>>=0;for(var L=ie(S);++E>>1,M=s[L];M!==null&&!si(M)&&(d?M<=u:M=n){var pe=u?null:yG(s);if(pe)return _f(pe);M=!1,S=id,H=new Du}else H=u?[]:j;e:for(;++E=E?s:Ii(s,u,d)}var E0=zj||function(s){return ir.clearTimeout(s)};function h0(s,u){if(u)return s.slice();var d=s.length,E=xb?xb(d):new s.constructor(d);return s.copy(E),E}function Qh(s){var u=new s.constructor(s.byteLength);return new Af(u).set(new Af(s)),u}function lG(s,u){var d=u?Qh(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.byteLength)}function dG(s){var u=new s.constructor(s.source,tb.exec(s));return u.lastIndex=s.lastIndex,u}function pG(s){return cd?on(cd.call(s)):{}}function y0(s,u){var d=u?Qh(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}function I0(s,u){if(s!==u){var d=s!==e,E=s===null,S=s===s,L=si(s),M=u!==e,j=u===null,H=u===u,pe=si(u);if(!j&&!pe&&!L&&s>u||L&&M&&H&&!j&&!pe||E&&M&&H||!d&&H||!S)return 1;if(!E&&!L&&!pe&&s=j)return H;var pe=d[E];return H*(pe=="desc"?-1:1)}}return s.index-u.index}function g0(s,u,d,E){for(var S=-1,L=s.length,M=d.length,j=-1,H=u.length,pe=Jn(L-M,0),me=ie(H+pe),Ee=!E;++j1?d[S-1]:e,M=S>2?d[2]:e;for(L=s.length>3&&typeof L=="function"?(S--,L):e,M&&Fr(d[0],d[1],M)&&(L=S<3?e:L,S=1),u=on(u);++E-1?S[L?u[M]:M]:e}}function b0(s){return ts(function(u){var d=u.length,E=d,S=hi.prototype.thru;for(s&&u.reverse();E--;){var L=u[E];if(typeof L!="function")throw new Ei(i);if(S&&!M&&Jf(L)=="wrapper")var M=new hi([],!0)}for(E=M?E:d;++E1&&At.reverse(),me&&Hj))return!1;var pe=L.get(s),me=L.get(u);if(pe&&me)return pe==u&&me==s;var Ee=-1,be=!0,je=d&v?new Du:e;for(L.set(s,u),L.set(u,s);++Ee1?"& ":"")+u[E],u=u.join(d>2?", ":" "),s.replace(P1,`{ /* [wrapped with `+u+`] */ -`)}function RG(s){return lt(s)||Fu(s)||!!(jb&&s&&s[jb])}function ns(s,u){var d=typeof s;return u=u==null?dn:u,!!u&&(d=="number"||d!="symbol"&&V1.test(s))&&s>-1&&s%1==0&&s0){if(++u>=ve)return arguments[0]}else u=0;return s.apply(e,arguments)}}function zf(s,u){var d=-1,E=s.length,S=E-1;for(u=u===e?E:u;++d1?s[u-1]:e;return d=typeof d=="function"?(s.pop(),d):e,X0(s,d)});function Z0(s){var u=R(s);return u.__chain__=!0,u}function q$(s,u){return u(s),s}function Wf(s,u){return u(s)}var V$=ts(function(s){var u=s.length,d=u?s[0]:0,E=this.__wrapped__,S=function(L){return Ph(L,s)};return u>1||this.__actions__.length||!(E instanceof St)||!ns(d)?this.thru(S):(E=E.slice(d,+d+(u?1:0)),E.__actions__.push({func:Wf,args:[S],thisArg:e}),new hi(E,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function j$(){return Z0(this)}function K$(){return new hi(this.value(),this.__chain__)}function G$(){this.__values__===e&&(this.__values__=fA(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function $$(){return this}function Q$(s){for(var u,d=this;d instanceof Uf;){var E=Q0(d);E.__index__=0,E.__values__=e,u?S.__wrapped__=E:u=E;var S=E;d=d.__wrapped__}return S.__wrapped__=s,u}function Y$(){var s=this.__wrapped__;if(s instanceof St){var u=s;return this.__actions__.length&&(u=new St(this)),u=u.reverse(),u.__actions__.push({func:Wf,args:[iy],thisArg:e}),new hi(u,this.__chain__)}return this.thru(iy)}function J$(){return N0(this.__wrapped__,this.__actions__)}var H$=Kf(function(s,u,d){Zt.call(s,d)?++s[d]:Za(s,d,1)});function z$(s,u,d){var E=lt(s)?Ab:qK;return d&&Fr(s,u,d)&&(u=e),E(s,ze(u,3))}function W$(s,u){var d=lt(s)?ko:Xb;return d(s,ze(u,3))}var X$=D0(Y0),Z$=D0(J0);function eQ(s,u){return mr(Xf(s,u),1)}function tQ(s,u){return mr(Xf(s,u),Vt)}function nQ(s,u,d){return d=d===e?1:mt(d),mr(Xf(s,u),d)}function eA(s,u){var d=lt(s)?Ti:jo;return d(s,ze(u,3))}function tA(s,u){var d=lt(s)?gj:Wb;return d(s,ze(u,3))}var rQ=Kf(function(s,u,d){Zt.call(s,d)?s[d].push(u):Za(s,d,[u])});function iQ(s,u,d,E){s=Vr(s)?s:$c(s),d=d&&!E?mt(d):0;var S=s.length;return d<0&&(d=Jn(S+d,0)),rm(s)?d<=S&&s.indexOf(u,d)>-1:!!S&&Cc(s,u,d)>-1}var aQ=yt(function(s,u,d){var E=-1,S=typeof u=="function",L=Vr(s)?ie(s.length):[];return jo(s,function(k){L[++E]=S?ri(u,k,d):pd(k,u,d)}),L}),sQ=Kf(function(s,u,d){Za(s,d,u)});function Xf(s,u){var d=lt(s)?yn:i0;return d(s,ze(u,3))}function oQ(s,u,d,E){return s==null?[]:(lt(u)||(u=u==null?[]:[u]),d=E?e:d,lt(d)||(d=d==null?[]:[d]),u0(s,u,d))}var uQ=Kf(function(s,u,d){s[d?0:1].push(u)},function(){return[[],[]]});function cQ(s,u,d){var E=lt(s)?Eh:wb,S=arguments.length<3;return E(s,ze(u,4),d,S,jo)}function lQ(s,u,d){var E=lt(s)?_j:wb,S=arguments.length<3;return E(s,ze(u,4),d,S,Wb)}function dQ(s,u){var d=lt(s)?ko:Xb;return d(s,tm(ze(u,3)))}function pQ(s){var u=lt(s)?Yb:iG;return u(s)}function fQ(s,u,d){(d?Fr(s,u,d):u===e)?u=1:u=mt(u);var E=lt(s)?BK:aG;return E(s,u)}function mQ(s){var u=lt(s)?UK:oG;return u(s)}function NQ(s){if(s==null)return 0;if(Vr(s))return rm(s)?Uc(s):s.length;var u=Er(s);return u==et||u==pr?s.size:Uh(s).length}function TQ(s,u,d){var E=lt(s)?hh:uG;return d&&Fr(s,u,d)&&(u=e),E(s,ze(u,3))}var EQ=yt(function(s,u){if(s==null)return[];var d=u.length;return d>1&&Fr(s,u[0],u[1])?u=[]:d>2&&Fr(u[0],u[1],u[2])&&(u=[u[0]]),u0(s,mr(u,1),[])}),Zf=Wj||function(){return ir.Date.now()};function hQ(s,u){if(typeof u!="function")throw new Ei(i);return s=mt(s),function(){if(--s<1)return u.apply(this,arguments)}}function nA(s,u,d){return u=d?e:u,u=s&&u==null?s.length:u,es(s,fe,e,e,e,e,u)}function rA(s,u){var d;if(typeof u!="function")throw new Ei(i);return s=mt(s),function(){return--s>0&&(d=u.apply(this,arguments)),s<=1&&(u=e),d}}var sy=yt(function(s,u,d){var E=P;if(d.length){var S=xo(d,Kc(sy));E|=W}return es(s,E,u,d,S)}),iA=yt(function(s,u,d){var E=P|M;if(d.length){var S=xo(d,Kc(iA));E|=W}return es(u,E,s,d,S)});function aA(s,u,d){u=d?e:u;var E=es(s,G,e,e,e,e,e,u);return E.placeholder=aA.placeholder,E}function sA(s,u,d){u=d?e:u;var E=es(s,Z,e,e,e,e,e,u);return E.placeholder=sA.placeholder,E}function oA(s,u,d){var E,S,L,k,j,H,pe=0,me=!1,Ee=!1,be=!0;if(typeof s!="function")throw new Ei(i);u=_i(u)||0,_n(d)&&(me=!!d.leading,Ee="maxWait"in d,L=Ee?Jn(_i(d.maxWait)||0,u):L,be="trailing"in d?!!d.trailing:be);function Ke(Mn){var Ji=E,as=S;return E=S=e,pe=Mn,k=s.apply(as,Ji),k}function Xe(Mn){return pe=Mn,j=Ed(vt,u),me?Ke(Mn):k}function Et(Mn){var Ji=Mn-H,as=Mn-pe,DA=u-Ji;return Ee?Tr(DA,L-as):DA}function Ze(Mn){var Ji=Mn-H,as=Mn-pe;return H===e||Ji>=u||Ji<0||Ee&&as>=L}function vt(){var Mn=Zf();if(Ze(Mn))return At(Mn);j=Ed(vt,Et(Mn))}function At(Mn){return j=e,be&&E?Ke(Mn):(E=S=e,k)}function oi(){j!==e&&E0(j),pe=0,E=H=S=j=e}function wr(){return j===e?k:At(Zf())}function ui(){var Mn=Zf(),Ji=Ze(Mn);if(E=arguments,S=this,H=Mn,Ji){if(j===e)return Xe(H);if(Ee)return E0(j),j=Ed(vt,u),Ke(H)}return j===e&&(j=Ed(vt,u)),k}return ui.cancel=oi,ui.flush=wr,ui}var yQ=yt(function(s,u){return zb(s,1,u)}),IQ=yt(function(s,u,d){return zb(s,_i(u)||0,d)});function gQ(s){return es(s,je)}function em(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Ei(i);var d=function(){var E=arguments,S=u?u.apply(this,E):E[0],L=d.cache;if(L.has(S))return L.get(S);var k=s.apply(this,E);return d.cache=L.set(S,k)||L,k};return d.cache=new(em.Cache||Xa),d}em.Cache=Xa;function tm(s){if(typeof s!="function")throw new Ei(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function _Q(s){return rA(2,s)}var vQ=cG(function(s,u){u=u.length==1&<(u[0])?yn(u[0],ii(ze())):yn(mr(u,1),ii(ze()));var d=u.length;return yt(function(E){for(var S=-1,L=Tr(E.length,d);++S=u}),Fu=t0(function(){return arguments}())?t0:function(s){return An(s)&&Zt.call(s,"callee")&&!Vb.call(s,"callee")},lt=ie.isArray,MQ=_b?ii(_b):QK;function Vr(s){return s!=null&&nm(s.length)&&!rs(s)}function kn(s){return An(s)&&Vr(s)}function xQ(s){return s===!0||s===!1||An(s)&&Pr(s)==_t}var Qo=Zj||hy,qQ=vb?ii(vb):YK;function VQ(s){return An(s)&&s.nodeType===1&&!hd(s)}function jQ(s){if(s==null)return!0;if(Vr(s)&&(lt(s)||typeof s=="string"||typeof s.splice=="function"||Qo(s)||Gc(s)||Fu(s)))return!s.length;var u=Er(s);if(u==et||u==pr)return!s.size;if(Td(s))return!Uh(s).length;for(var d in s)if(Zt.call(s,d))return!1;return!0}function KQ(s,u){return fd(s,u)}function GQ(s,u,d){d=typeof d=="function"?d:e;var E=d?d(s,u):e;return E===e?fd(s,u,e,d):!!E}function uy(s){if(!An(s))return!1;var u=Pr(s);return u==xe||u==se||typeof s.message=="string"&&typeof s.name=="string"&&!hd(s)}function $Q(s){return typeof s=="number"&&Kb(s)}function rs(s){if(!_n(s))return!1;var u=Pr(s);return u==Qe||u==Lt||u==Le||u==wc}function cA(s){return typeof s=="number"&&s==mt(s)}function nm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=dn}function _n(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function An(s){return s!=null&&typeof s=="object"}var lA=Sb?ii(Sb):HK;function QQ(s,u){return s===u||Bh(s,u,Xh(u))}function YQ(s,u,d){return d=typeof d=="function"?d:e,Bh(s,u,Xh(u),d)}function JQ(s){return dA(s)&&s!=+s}function HQ(s){if(wG(s))throw new ot(r);return n0(s)}function zQ(s){return s===null}function WQ(s){return s==null}function dA(s){return typeof s=="number"||An(s)&&Pr(s)==bt}function hd(s){if(!An(s)||Pr(s)!=xr)return!1;var u=Rf(s);if(u===null)return!0;var d=Zt.call(u,"constructor")&&u.constructor;return typeof d=="function"&&d instanceof d&&Of.call(d)==Yj}var cy=Ob?ii(Ob):zK;function XQ(s){return cA(s)&&s>=-dn&&s<=dn}var pA=Db?ii(Db):WK;function rm(s){return typeof s=="string"||!lt(s)&&An(s)&&Pr(s)==ni}function si(s){return typeof s=="symbol"||An(s)&&Pr(s)==xt}var Gc=bb?ii(bb):XK;function ZQ(s){return s===e}function e2(s){return An(s)&&Er(s)==gu}function t2(s){return An(s)&&Pr(s)==ya}var n2=Yf(kh),r2=Yf(function(s,u){return s<=u});function fA(s){if(!s)return[];if(Vr(s))return rm(s)?$i(s):qr(s);if(ad&&s[ad])return Bj(s[ad]());var u=Er(s),d=u==et?Sh:u==pr?_f:$c;return d(s)}function is(s){if(!s)return s===0?s:0;if(s=_i(s),s===Vt||s===-Vt){var u=s<0?-1:1;return u*Ar}return s===s?s:0}function mt(s){var u=is(s),d=u%1;return u===u?d?u-d:u:0}function mA(s){return s?bu(mt(s),0,Un):0}function _i(s){if(typeof s=="number")return s;if(si(s))return Rr;if(_n(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=_n(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Lb(s);var d=M1.test(s);return d||q1.test(s)?hj(s.slice(2),d?2:8):k1.test(s)?Rr:+s}function NA(s){return ga(s,jr(s))}function i2(s){return s?bu(mt(s),-dn,dn):s===0?s:0}function Qt(s){return s==null?"":ai(s)}var a2=Vc(function(s,u){if(Td(u)||Vr(u)){ga(u,ar(u),s);return}for(var d in u)Zt.call(u,d)&&ld(s,d,u[d])}),TA=Vc(function(s,u){ga(u,jr(u),s)}),im=Vc(function(s,u,d,E){ga(u,jr(u),s,E)}),s2=Vc(function(s,u,d,E){ga(u,ar(u),s,E)}),o2=ts(Ph);function u2(s,u){var d=qc(s);return u==null?d:Jb(d,u)}var c2=yt(function(s,u){s=on(s);var d=-1,E=u.length,S=E>2?u[2]:e;for(S&&Fr(u[0],u[1],S)&&(E=1);++d1),L}),ga(s,zh(s),d),E&&(d=yi(d,p|f|y,IG));for(var S=u.length;S--;)jh(d,u[S]);return d});function b2(s,u){return hA(s,tm(ze(u)))}var A2=ts(function(s,u){return s==null?{}:tG(s,u)});function hA(s,u){if(s==null)return{};var d=yn(zh(s),function(E){return[E]});return u=ze(u),c0(s,d,function(E,S){return u(E,S[0])})}function R2(s,u,d){u=Go(u,s);var E=-1,S=u.length;for(S||(S=1,s=e);++Eu){var E=s;s=u,u=E}if(d||s%1||u%1){var S=Gb();return Tr(s+S*(u-s+Ej("1e-"+((S+"").length-1))),u)}return xh(s,u)}var q2=jc(function(s,u,d){return u=u.toLowerCase(),s+(d?gA(u):u)});function gA(s){return py(Qt(s).toLowerCase())}function _A(s){return s=Qt(s),s&&s.replace(j1,Pj).replace(oj,"")}function V2(s,u,d){s=Qt(s),u=ai(u);var E=s.length;d=d===e?E:bu(mt(d),0,E);var S=d;return d-=u.length,d>=0&&s.slice(d,S)==u}function j2(s){return s=Qt(s),s&&_1.test(s)?s.replace(ZD,Fj):s}function K2(s){return s=Qt(s),s&&A1.test(s)?s.replace(oh,"\\$&"):s}var G2=jc(function(s,u,d){return s+(d?"-":"")+u.toLowerCase()}),$2=jc(function(s,u,d){return s+(d?" ":"")+u.toLowerCase()}),Q2=O0("toLowerCase");function Y2(s,u,d){s=Qt(s),u=mt(u);var E=u?Uc(s):0;if(!u||E>=u)return s;var S=(u-E)/2;return Qf(Lf(S),d)+s+Qf(wf(S),d)}function J2(s,u,d){s=Qt(s),u=mt(u);var E=u?Uc(s):0;return u&&E>>0,d?(s=Qt(s),s&&(typeof u=="string"||u!=null&&!cy(u))&&(u=ai(u),!u&&Bc(s))?$o($i(s),0,d):s.split(u,d)):[]}var tY=jc(function(s,u,d){return s+(d?" ":"")+py(u)});function nY(s,u,d){return s=Qt(s),d=d==null?0:bu(mt(d),0,s.length),u=ai(u),s.slice(d,d+u.length)==u}function rY(s,u,d){var E=R.templateSettings;d&&Fr(s,u,d)&&(u=e),s=Qt(s),u=im({},u,E,w0);var S=im({},u.imports,E.imports,w0),L=ar(S),k=vh(S,L),j,H,pe=0,me=u.interpolate||Ef,Ee="__p += '",be=Oh((u.escape||Ef).source+"|"+me.source+"|"+(me===eb?U1:Ef).source+"|"+(u.evaluate||Ef).source+"|$","g"),Ke="//# sourceURL="+(Zt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pj+"]")+` +`)}function RG(s){return lt(s)||Fu(s)||!!(jb&&s&&s[jb])}function ns(s,u){var d=typeof s;return u=u==null?dn:u,!!u&&(d=="number"||d!="symbol"&&V1.test(s))&&s>-1&&s%1==0&&s0){if(++u>=ve)return arguments[0]}else u=0;return s.apply(e,arguments)}}function zf(s,u){var d=-1,E=s.length,S=E-1;for(u=u===e?E:u;++d1?s[u-1]:e;return d=typeof d=="function"?(s.pop(),d):e,X0(s,d)});function Z0(s){var u=R(s);return u.__chain__=!0,u}function q$(s,u){return u(s),s}function Wf(s,u){return u(s)}var V$=ts(function(s){var u=s.length,d=u?s[0]:0,E=this.__wrapped__,S=function(L){return Ph(L,s)};return u>1||this.__actions__.length||!(E instanceof St)||!ns(d)?this.thru(S):(E=E.slice(d,+d+(u?1:0)),E.__actions__.push({func:Wf,args:[S],thisArg:e}),new hi(E,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function j$(){return Z0(this)}function K$(){return new hi(this.value(),this.__chain__)}function G$(){this.__values__===e&&(this.__values__=fA(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function $$(){return this}function Q$(s){for(var u,d=this;d instanceof Uf;){var E=Q0(d);E.__index__=0,E.__values__=e,u?S.__wrapped__=E:u=E;var S=E;d=d.__wrapped__}return S.__wrapped__=s,u}function Y$(){var s=this.__wrapped__;if(s instanceof St){var u=s;return this.__actions__.length&&(u=new St(this)),u=u.reverse(),u.__actions__.push({func:Wf,args:[iy],thisArg:e}),new hi(u,this.__chain__)}return this.thru(iy)}function J$(){return N0(this.__wrapped__,this.__actions__)}var H$=Kf(function(s,u,d){Zt.call(s,d)?++s[d]:Za(s,d,1)});function z$(s,u,d){var E=lt(s)?Ab:qK;return d&&Fr(s,u,d)&&(u=e),E(s,ze(u,3))}function W$(s,u){var d=lt(s)?ko:Xb;return d(s,ze(u,3))}var X$=D0(Y0),Z$=D0(J0);function eQ(s,u){return mr(Xf(s,u),1)}function tQ(s,u){return mr(Xf(s,u),Vt)}function nQ(s,u,d){return d=d===e?1:mt(d),mr(Xf(s,u),d)}function eA(s,u){var d=lt(s)?Ti:jo;return d(s,ze(u,3))}function tA(s,u){var d=lt(s)?gj:Wb;return d(s,ze(u,3))}var rQ=Kf(function(s,u,d){Zt.call(s,d)?s[d].push(u):Za(s,d,[u])});function iQ(s,u,d,E){s=Vr(s)?s:$c(s),d=d&&!E?mt(d):0;var S=s.length;return d<0&&(d=Jn(S+d,0)),rm(s)?d<=S&&s.indexOf(u,d)>-1:!!S&&Cc(s,u,d)>-1}var aQ=yt(function(s,u,d){var E=-1,S=typeof u=="function",L=Vr(s)?ie(s.length):[];return jo(s,function(M){L[++E]=S?ri(u,M,d):pd(M,u,d)}),L}),sQ=Kf(function(s,u,d){Za(s,d,u)});function Xf(s,u){var d=lt(s)?yn:i0;return d(s,ze(u,3))}function oQ(s,u,d,E){return s==null?[]:(lt(u)||(u=u==null?[]:[u]),d=E?e:d,lt(d)||(d=d==null?[]:[d]),u0(s,u,d))}var uQ=Kf(function(s,u,d){s[d?0:1].push(u)},function(){return[[],[]]});function cQ(s,u,d){var E=lt(s)?Eh:wb,S=arguments.length<3;return E(s,ze(u,4),d,S,jo)}function lQ(s,u,d){var E=lt(s)?_j:wb,S=arguments.length<3;return E(s,ze(u,4),d,S,Wb)}function dQ(s,u){var d=lt(s)?ko:Xb;return d(s,tm(ze(u,3)))}function pQ(s){var u=lt(s)?Yb:iG;return u(s)}function fQ(s,u,d){(d?Fr(s,u,d):u===e)?u=1:u=mt(u);var E=lt(s)?BK:aG;return E(s,u)}function mQ(s){var u=lt(s)?UK:oG;return u(s)}function NQ(s){if(s==null)return 0;if(Vr(s))return rm(s)?Uc(s):s.length;var u=Er(s);return u==et||u==pr?s.size:Uh(s).length}function TQ(s,u,d){var E=lt(s)?hh:uG;return d&&Fr(s,u,d)&&(u=e),E(s,ze(u,3))}var EQ=yt(function(s,u){if(s==null)return[];var d=u.length;return d>1&&Fr(s,u[0],u[1])?u=[]:d>2&&Fr(u[0],u[1],u[2])&&(u=[u[0]]),u0(s,mr(u,1),[])}),Zf=Wj||function(){return ir.Date.now()};function hQ(s,u){if(typeof u!="function")throw new Ei(i);return s=mt(s),function(){if(--s<1)return u.apply(this,arguments)}}function nA(s,u,d){return u=d?e:u,u=s&&u==null?s.length:u,es(s,fe,e,e,e,e,u)}function rA(s,u){var d;if(typeof u!="function")throw new Ei(i);return s=mt(s),function(){return--s>0&&(d=u.apply(this,arguments)),s<=1&&(u=e),d}}var sy=yt(function(s,u,d){var E=P;if(d.length){var S=xo(d,Kc(sy));E|=W}return es(s,E,u,d,S)}),iA=yt(function(s,u,d){var E=P|k;if(d.length){var S=xo(d,Kc(iA));E|=W}return es(u,E,s,d,S)});function aA(s,u,d){u=d?e:u;var E=es(s,G,e,e,e,e,e,u);return E.placeholder=aA.placeholder,E}function sA(s,u,d){u=d?e:u;var E=es(s,Z,e,e,e,e,e,u);return E.placeholder=sA.placeholder,E}function oA(s,u,d){var E,S,L,M,j,H,pe=0,me=!1,Ee=!1,be=!0;if(typeof s!="function")throw new Ei(i);u=_i(u)||0,_n(d)&&(me=!!d.leading,Ee="maxWait"in d,L=Ee?Jn(_i(d.maxWait)||0,u):L,be="trailing"in d?!!d.trailing:be);function je(Mn){var Ji=E,as=S;return E=S=e,pe=Mn,M=s.apply(as,Ji),M}function Xe(Mn){return pe=Mn,j=Ed(vt,u),me?je(Mn):M}function Et(Mn){var Ji=Mn-H,as=Mn-pe,DA=u-Ji;return Ee?Tr(DA,L-as):DA}function Ze(Mn){var Ji=Mn-H,as=Mn-pe;return H===e||Ji>=u||Ji<0||Ee&&as>=L}function vt(){var Mn=Zf();if(Ze(Mn))return At(Mn);j=Ed(vt,Et(Mn))}function At(Mn){return j=e,be&&E?je(Mn):(E=S=e,M)}function oi(){j!==e&&E0(j),pe=0,E=H=S=j=e}function wr(){return j===e?M:At(Zf())}function ui(){var Mn=Zf(),Ji=Ze(Mn);if(E=arguments,S=this,H=Mn,Ji){if(j===e)return Xe(H);if(Ee)return E0(j),j=Ed(vt,u),je(H)}return j===e&&(j=Ed(vt,u)),M}return ui.cancel=oi,ui.flush=wr,ui}var yQ=yt(function(s,u){return zb(s,1,u)}),IQ=yt(function(s,u,d){return zb(s,_i(u)||0,d)});function gQ(s){return es(s,Ve)}function em(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Ei(i);var d=function(){var E=arguments,S=u?u.apply(this,E):E[0],L=d.cache;if(L.has(S))return L.get(S);var M=s.apply(this,E);return d.cache=L.set(S,M)||L,M};return d.cache=new(em.Cache||Xa),d}em.Cache=Xa;function tm(s){if(typeof s!="function")throw new Ei(i);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function _Q(s){return rA(2,s)}var vQ=cG(function(s,u){u=u.length==1&<(u[0])?yn(u[0],ii(ze())):yn(mr(u,1),ii(ze()));var d=u.length;return yt(function(E){for(var S=-1,L=Tr(E.length,d);++S=u}),Fu=t0(function(){return arguments}())?t0:function(s){return An(s)&&Zt.call(s,"callee")&&!Vb.call(s,"callee")},lt=ie.isArray,MQ=_b?ii(_b):QK;function Vr(s){return s!=null&&nm(s.length)&&!rs(s)}function kn(s){return An(s)&&Vr(s)}function xQ(s){return s===!0||s===!1||An(s)&&Pr(s)==_t}var Qo=Zj||hy,qQ=vb?ii(vb):YK;function VQ(s){return An(s)&&s.nodeType===1&&!hd(s)}function jQ(s){if(s==null)return!0;if(Vr(s)&&(lt(s)||typeof s=="string"||typeof s.splice=="function"||Qo(s)||Gc(s)||Fu(s)))return!s.length;var u=Er(s);if(u==et||u==pr)return!s.size;if(Td(s))return!Uh(s).length;for(var d in s)if(Zt.call(s,d))return!1;return!0}function KQ(s,u){return fd(s,u)}function GQ(s,u,d){d=typeof d=="function"?d:e;var E=d?d(s,u):e;return E===e?fd(s,u,e,d):!!E}function uy(s){if(!An(s))return!1;var u=Pr(s);return u==xe||u==se||typeof s.message=="string"&&typeof s.name=="string"&&!hd(s)}function $Q(s){return typeof s=="number"&&Kb(s)}function rs(s){if(!_n(s))return!1;var u=Pr(s);return u==Qe||u==Lt||u==Le||u==wc}function cA(s){return typeof s=="number"&&s==mt(s)}function nm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=dn}function _n(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function An(s){return s!=null&&typeof s=="object"}var lA=Sb?ii(Sb):HK;function QQ(s,u){return s===u||Bh(s,u,Xh(u))}function YQ(s,u,d){return d=typeof d=="function"?d:e,Bh(s,u,Xh(u),d)}function JQ(s){return dA(s)&&s!=+s}function HQ(s){if(wG(s))throw new ot(r);return n0(s)}function zQ(s){return s===null}function WQ(s){return s==null}function dA(s){return typeof s=="number"||An(s)&&Pr(s)==bt}function hd(s){if(!An(s)||Pr(s)!=xr)return!1;var u=Rf(s);if(u===null)return!0;var d=Zt.call(u,"constructor")&&u.constructor;return typeof d=="function"&&d instanceof d&&Of.call(d)==Yj}var cy=Ob?ii(Ob):zK;function XQ(s){return cA(s)&&s>=-dn&&s<=dn}var pA=Db?ii(Db):WK;function rm(s){return typeof s=="string"||!lt(s)&&An(s)&&Pr(s)==ni}function si(s){return typeof s=="symbol"||An(s)&&Pr(s)==xt}var Gc=bb?ii(bb):XK;function ZQ(s){return s===e}function e2(s){return An(s)&&Er(s)==gu}function t2(s){return An(s)&&Pr(s)==ya}var n2=Yf(kh),r2=Yf(function(s,u){return s<=u});function fA(s){if(!s)return[];if(Vr(s))return rm(s)?$i(s):qr(s);if(ad&&s[ad])return Bj(s[ad]());var u=Er(s),d=u==et?Sh:u==pr?_f:$c;return d(s)}function is(s){if(!s)return s===0?s:0;if(s=_i(s),s===Vt||s===-Vt){var u=s<0?-1:1;return u*Ar}return s===s?s:0}function mt(s){var u=is(s),d=u%1;return u===u?d?u-d:u:0}function mA(s){return s?bu(mt(s),0,Un):0}function _i(s){if(typeof s=="number")return s;if(si(s))return Rr;if(_n(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=_n(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Lb(s);var d=M1.test(s);return d||q1.test(s)?hj(s.slice(2),d?2:8):k1.test(s)?Rr:+s}function NA(s){return ga(s,jr(s))}function i2(s){return s?bu(mt(s),-dn,dn):s===0?s:0}function Qt(s){return s==null?"":ai(s)}var a2=Vc(function(s,u){if(Td(u)||Vr(u)){ga(u,ar(u),s);return}for(var d in u)Zt.call(u,d)&&ld(s,d,u[d])}),TA=Vc(function(s,u){ga(u,jr(u),s)}),im=Vc(function(s,u,d,E){ga(u,jr(u),s,E)}),s2=Vc(function(s,u,d,E){ga(u,ar(u),s,E)}),o2=ts(Ph);function u2(s,u){var d=qc(s);return u==null?d:Jb(d,u)}var c2=yt(function(s,u){s=on(s);var d=-1,E=u.length,S=E>2?u[2]:e;for(S&&Fr(u[0],u[1],S)&&(E=1);++d1),L}),ga(s,zh(s),d),E&&(d=yi(d,p|f|y,IG));for(var S=u.length;S--;)jh(d,u[S]);return d});function b2(s,u){return hA(s,tm(ze(u)))}var A2=ts(function(s,u){return s==null?{}:tG(s,u)});function hA(s,u){if(s==null)return{};var d=yn(zh(s),function(E){return[E]});return u=ze(u),c0(s,d,function(E,S){return u(E,S[0])})}function R2(s,u,d){u=Go(u,s);var E=-1,S=u.length;for(S||(S=1,s=e);++Eu){var E=s;s=u,u=E}if(d||s%1||u%1){var S=Gb();return Tr(s+S*(u-s+Ej("1e-"+((S+"").length-1))),u)}return xh(s,u)}var q2=jc(function(s,u,d){return u=u.toLowerCase(),s+(d?gA(u):u)});function gA(s){return py(Qt(s).toLowerCase())}function _A(s){return s=Qt(s),s&&s.replace(j1,Pj).replace(oj,"")}function V2(s,u,d){s=Qt(s),u=ai(u);var E=s.length;d=d===e?E:bu(mt(d),0,E);var S=d;return d-=u.length,d>=0&&s.slice(d,S)==u}function j2(s){return s=Qt(s),s&&_1.test(s)?s.replace(ZD,Fj):s}function K2(s){return s=Qt(s),s&&A1.test(s)?s.replace(oh,"\\$&"):s}var G2=jc(function(s,u,d){return s+(d?"-":"")+u.toLowerCase()}),$2=jc(function(s,u,d){return s+(d?" ":"")+u.toLowerCase()}),Q2=O0("toLowerCase");function Y2(s,u,d){s=Qt(s),u=mt(u);var E=u?Uc(s):0;if(!u||E>=u)return s;var S=(u-E)/2;return Qf(Lf(S),d)+s+Qf(wf(S),d)}function J2(s,u,d){s=Qt(s),u=mt(u);var E=u?Uc(s):0;return u&&E>>0,d?(s=Qt(s),s&&(typeof u=="string"||u!=null&&!cy(u))&&(u=ai(u),!u&&Bc(s))?$o($i(s),0,d):s.split(u,d)):[]}var tY=jc(function(s,u,d){return s+(d?" ":"")+py(u)});function nY(s,u,d){return s=Qt(s),d=d==null?0:bu(mt(d),0,s.length),u=ai(u),s.slice(d,d+u.length)==u}function rY(s,u,d){var E=R.templateSettings;d&&Fr(s,u,d)&&(u=e),s=Qt(s),u=im({},u,E,w0);var S=im({},u.imports,E.imports,w0),L=ar(S),M=vh(S,L),j,H,pe=0,me=u.interpolate||Ef,Ee="__p += '",be=Oh((u.escape||Ef).source+"|"+me.source+"|"+(me===eb?U1:Ef).source+"|"+(u.evaluate||Ef).source+"|$","g"),je="//# sourceURL="+(Zt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++pj+"]")+` `;s.replace(be,function(Ze,vt,At,oi,wr,ui){return At||(At=oi),Ee+=s.slice(pe,ui).replace(K1,wj),vt&&(j=!0,Ee+=`' + __e(`+vt+`) + '`),wr&&(H=!0,Ee+=`'; @@ -464,10 +464,10 @@ __p += '`),At&&(Ee+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ee+`return __p -}`;var Et=SA(function(){return jt(L,Ke+"return "+Ee).apply(e,k)});if(Et.source=Ee,uy(Et))throw Et;return Et}function iY(s){return Qt(s).toLowerCase()}function aY(s){return Qt(s).toUpperCase()}function sY(s,u,d){if(s=Qt(s),s&&(d||u===e))return Lb(s);if(!s||!(u=ai(u)))return s;var E=$i(s),S=$i(u),L=Cb(E,S),k=Bb(E,S)+1;return $o(E,L,k).join("")}function oY(s,u,d){if(s=Qt(s),s&&(d||u===e))return s.slice(0,kb(s)+1);if(!s||!(u=ai(u)))return s;var E=$i(s),S=Bb(E,$i(u))+1;return $o(E,0,S).join("")}function uY(s,u,d){if(s=Qt(s),s&&(d||u===e))return s.replace(uh,"");if(!s||!(u=ai(u)))return s;var E=$i(s),S=Cb(E,$i(u));return $o(E,S).join("")}function cY(s,u){var d=it,E=ee;if(_n(u)){var S="separator"in u?u.separator:S;d="length"in u?mt(u.length):d,E="omission"in u?ai(u.omission):E}s=Qt(s);var L=s.length;if(Bc(s)){var k=$i(s);L=k.length}if(d>=L)return s;var j=d-Uc(E);if(j<1)return E;var H=k?$o(k,0,j).join(""):s.slice(0,j);if(S===e)return H+E;if(k&&(j+=H.length-j),cy(S)){if(s.slice(j).search(S)){var pe,me=H;for(S.global||(S=Oh(S.source,Qt(tb.exec(S))+"g")),S.lastIndex=0;pe=S.exec(me);)var Ee=pe.index;H=H.slice(0,Ee===e?j:Ee)}}else if(s.indexOf(ai(S),j)!=j){var be=H.lastIndexOf(S);be>-1&&(H=H.slice(0,be))}return H+E}function lY(s){return s=Qt(s),s&&g1.test(s)?s.replace(XD,xj):s}var dY=jc(function(s,u,d){return s+(d?" ":"")+u.toUpperCase()}),py=O0("toUpperCase");function vA(s,u,d){return s=Qt(s),u=d?e:u,u===e?Cj(s)?jj(s):Oj(s):s.match(u)||[]}var SA=yt(function(s,u){try{return ri(s,e,u)}catch(d){return uy(d)?d:new ot(d)}}),pY=ts(function(s,u){return Ti(u,function(d){d=_a(d),Za(s,d,sy(s[d],s))}),s});function fY(s){var u=s==null?0:s.length,d=ze();return s=u?yn(s,function(E){if(typeof E[1]!="function")throw new Ei(i);return[d(E[0]),E[1]]}):[],yt(function(E){for(var S=-1;++Sdn)return[];var d=Un,E=Tr(s,Un);u=ze(u),s-=Un;for(var S=_h(E,u);++d0||u<0)?new St(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),u!==e&&(u=mt(u),d=u<0?d.dropRight(-u):d.take(u-s)),d)},St.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},St.prototype.toArray=function(){return this.take(Un)},Ia(St.prototype,function(s,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),S=R[E?"take"+(u=="last"?"Right":""):u],L=E||/^find/.test(u);S&&(R.prototype[u]=function(){var k=this.__wrapped__,j=E?[1]:arguments,H=k instanceof St,pe=j[0],me=H||lt(k),Ee=function(vt){var At=S.apply(R,Mo([vt],j));return E&&be?At[0]:At};me&&d&&typeof pe=="function"&&pe.length!=1&&(H=me=!1);var be=this.__chain__,Ke=!!this.__actions__.length,Xe=L&&!be,Et=H&&!Ke;if(!L&&me){k=Et?k:new St(this);var Ze=s.apply(k,j);return Ze.__actions__.push({func:Wf,args:[Ee],thisArg:e}),new hi(Ze,be)}return Xe&&Et?s.apply(this,j):(Ze=this.thru(Ee),Xe?E?Ze.value()[0]:Ze.value():Ze)})}),Ti(["pop","push","shift","sort","splice","unshift"],function(s){var u=vf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);R.prototype[s]=function(){var S=arguments;if(E&&!this.__chain__){var L=this.value();return u.apply(lt(L)?L:[],S)}return this[d](function(k){return u.apply(lt(k)?k:[],S)})}}),Ia(St.prototype,function(s,u){var d=R[u];if(d){var E=d.name+"";Zt.call(xc,E)||(xc[E]=[]),xc[E].push({name:u,func:d})}}),xc[Gf(e,M).name]=[{name:"wrapper",func:e}],St.prototype.clone=lK,St.prototype.reverse=dK,St.prototype.value=pK,R.prototype.at=V$,R.prototype.chain=j$,R.prototype.commit=K$,R.prototype.next=G$,R.prototype.plant=Q$,R.prototype.reverse=Y$,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=J$,R.prototype.first=R.prototype.head,ad&&(R.prototype[ad]=$$),R},qo=Kj();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ir._=qo,define(function(){return qo})):vu?((vu.exports=qo)._=qo,mh._=qo):ir._=qo}).call(Ql)});var eV=w(vc=>{"use strict";m();T();N();Object.defineProperty(vc,"__esModule",{value:!0});vc.FederationFactory=void 0;vc.federateSubgraphs=Nle;vc.federateSubgraphsWithContracts=Tle;vc.federateSubgraphsContract=Ele;var Re=Ae(),zq=su(),kr=Yr(),Fe=ia(),_c=CN(),Wq=Up(),ti=jp(),RE=WT(),jn=Es(),ple=zO(),fle=Kp(),Xq=Ep(),ge=El(),mle=ZO(),Zq=Hq(),Yl=AE(),Oe=ur(),PE=ml(),he=Jr(),FE=class{constructor(t){_(this,"authorizationDataByParentTypeName");_(this,"concreteTypeNamesByAbstractTypeName");_(this,"clientDefinitions",[jn.DEPRECATED_DEFINITION]);_(this,"currentSubgraphName","");_(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);_(this,"entityDataByTypeName");_(this,"entityInterfaceFederationDataByTypeName");_(this,"errors",[]);_(this,"fieldConfigurationByFieldCoords",new Map);_(this,"fieldCoordsByNamedTypeName");_(this,"inaccessibleCoords",new Set);_(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);_(this,"internalGraph");_(this,"internalSubgraphBySubgraphName");_(this,"invalidORScopesCoords",new Set);_(this,"isMaxDepth",!1);_(this,"isVersionTwo",!1);_(this,"namedInputValueTypeNames",new Set);_(this,"namedOutputTypeNames",new Set);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"parentTagDataByTypeName",new Map);_(this,"coordsByNamedTypeName",new Map);_(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Oe.AUTHENTICATED,jn.AUTHENTICATED_DEFINITION],[Oe.DEPRECATED,jn.DEPRECATED_DEFINITION],[Oe.INACCESSIBLE,jn.INACCESSIBLE_DEFINITION],[Oe.REQUIRES_SCOPES,jn.REQUIRES_SCOPES_DEFINITION],[Oe.TAG,jn.TAG_DEFINITION]]));_(this,"persistedDirectiveDefinitions",new Set([Oe.AUTHENTICATED,Oe.DEPRECATED,Oe.INACCESSIBLE,Oe.TAG,Oe.REQUIRES_SCOPES]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"routerDefinitions",[jn.DEPRECATED_DEFINITION,jn.TAG_DEFINITION]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t.authorizationDataByParentTypeName,this.concreteTypeNamesByAbstractTypeName=t.concreteTypeNamesByAbstractTypeName,this.entityDataByTypeName=t.entityDataByTypeName,this.entityInterfaceFederationDataByTypeName=t.entityInterfaceFederationDataByTypeName,this.fieldCoordsByNamedTypeName=t.fieldCoordsByNamedTypeName,this.internalSubgraphBySubgraphName=t.internalSubgraphBySubgraphName,this.internalGraph=t.internalGraph,this.warnings=t.warnings}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,ge.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let c of t.implementedInterfaceTypeNames){n.push((0,kr.stringToNamedTypeNode)(c));let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,c,Oe.PARENT_DEFINITION_DATA);if(l.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,he.kindToNodeType)(l.kind));continue}let p={invalidFieldImplementations:new Map,unimplementedFields:[]},f=!1;for(let[y,g]of l.fieldDataByName){let v=!1,P=t.fieldDataByName.get(y);if(!P){f=!0,p.unimplementedFields.push(y);continue}let M={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,RE.printTypeNode)(g.node.type),unimplementedArguments:new Set};(0,ge.isTypeValidImplementation)(g.node.type,P.node.type,this.concreteTypeNamesByAbstractTypeName)||(f=!0,v=!0,M.implementedResponseType=(0,RE.printTypeNode)(P.node.type));let K=new Set;for(let[G,Z]of g.argumentDataByName){let W=Z.node;K.add(G);let Te=(o=P.argumentDataByName.get(G))==null?void 0:o.node;if(!Te){f=!0,v=!0,M.unimplementedArguments.add(G);continue}let fe=(0,RE.printTypeNode)(Te.type),we=(0,RE.printTypeNode)(W.type);we!==fe&&(f=!0,v=!0,M.invalidImplementedArguments.push({actualType:fe,argumentName:G,expectedType:we}))}for(let[G,Z]of P.argumentDataByName){let W=Z.node;K.has(G)||W.type.kind===Re.Kind.NON_NULL_TYPE&&(f=!0,v=!0,M.invalidAdditionalArguments.add(G))}!r&&P.isInaccessible&&!g.isInaccessible&&(f=!0,v=!0,M.isInaccessible=!0),v&&p.invalidFieldImplementations.set(y,M)}f&&i.set(c,p)}return a.size>0&&this.errors.push((0,Fe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Fe.invalidInterfaceImplementationError)(t.node.name.value,(0,he.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var f;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,a=i.get(n.typeName);if(!a||a.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)throw(0,Fe.incompatibleParentKindFatalError)(n.typeName,Re.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Re.Kind.NULL);let o=(0,he.getOrThrowError)(r.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByTypeName"),c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[y,g]of this.entityInterfaceFederationDataByTypeName){if(!((f=g.concreteTypeNames)!=null&&f.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(y);v&&(0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(c.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=c;return}let p=new Set(o.keys.map(y=>y.selectionSet));for(let y of c)p.has(y.selectionSet)||(o.keys.push(y),p.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,ge.isParentDataCompositeOutputType)(o))throw(0,Fe.incompatibleParentKindFatalError)(n,Re.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Re.Kind.NULL);let c=(0,he.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!c.keys||c.keys.length<1){c.isRootNode=!0,c.keys=l;return}let p=new Set(c.keys.map(f=>f.selectionSet));for(let f of l)p.has(f.selectionSet)||(c.keys.push(f),p.add(f.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?ge.MergeMethod.CONSISTENT:ge.MergeMethod.INTERSECTION:ge.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(".");if(r.length<1)continue;let i=(0,he.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,_c.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,he.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,_c.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,he.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,_c.newChildTagData)(r[1])),c=(0,he.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)c.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),a=i||this.copyEnumValueData(n);(0,ge.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=(0,ge.isNodeDataInaccessible)(n);if((r||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),(0,he.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if((0,ge.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(o,n),(0,he.addIterableValuesToSet)(n.requiredSubgraphNames,o.requiredSubgraphNames),(0,he.addIterableValuesToSet)(n.subgraphNames,o.subgraphNames),this.handleInputValueInaccessibility(i,o,r);let c=(0,Yl.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:c.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:c.expectedType})),(0,ge.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,ge.isNodeDataInaccessible)(n)){if((0,ge.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Fe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByDirectiveName.get(Oe.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,he.getSingleSetEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Fe.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,zq.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=Yl.DivergentType.NONE,c=a;for(let l=0;lnew Set))}upsertFieldData(t,n,r){let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,ge.isNodeDataInaccessible)(n));(0,he.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),(0,ge.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=r||(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let c=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(c.success)if(a.type=c.typeNode,a.namedTypeName!==n.namedTypeName){let l=(0,he.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),p=(0,he.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(p.size<1)for(let f of a.subgraphNames)n.subgraphNames.has(f)||p.add(f);(0,he.addIterableValuesToSet)(n.subgraphNames,(0,he.getValueOrDefault)(l,n.namedTypeName,()=>new Set))}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,he.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,he.addMapEntries)(n.isShareableBySubgraphName,a.isShareableBySubgraphName),(0,he.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,he.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),subgraphNames:new Set(t.subgraphNames),description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Re.Kind.INPUT_VALUE_DEFINITION,name:(0,kr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let c=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,c,r),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedInputValueTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,`${r}.${o.name}`),i.set(a,c)}return i}copyFieldData(t,n){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),externalFieldDataBySubgraphName:(0,he.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,kr.stringToNameNode)(t.name),type:t.type},originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueDataByValueName(t,n){let r=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(n||(0,ge.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),r.set(i,o)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=n||(0,ge.isNodeDataInaccessible)(a),c=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(c),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedOutputTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,c.federatedCoords),o&&this.inaccessibleCoords.add(c.federatedCoords),r.set(i,c)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Re.Kind.ENUM_TYPE_DEFINITION:return Y(x({},n),{appearances:t.appearances,enumValueDataByValueName:this.copyEnumValueDataByValueName(t.enumValueDataByValueName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Y(x({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INTERFACE_TYPE_DEFINITION:return Y(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.OBJECT_TYPE_DEFINITION:return Y(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.renamedTypeName||t.name)},renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.SCALAR_TYPE_DEFINITION:return Y(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.UNION_TYPE_DEFINITION:return Y(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,ge.isParentDataRootType)(r)&&(r.extensionType=Xq.ExtensionType.NONE),r}return(0,ge.extractPersistedDirectives)(t.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphs.has(n)&&(a.kind=Re.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Re.Kind.INTERFACE_TYPE_DEFINITION),!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphs.has(n)||a.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Fe.incompatibleParentKindMergeError)(a.name,(0,he.kindToNodeType)(a.kind),(0,he.kindToNodeType)(t.kind)));return}switch((0,he.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,t),(0,ge.setParentDataExtensionType)(a,t),a.kind){case Re.Kind.ENUM_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.enumValueDataByValueName.values())this.upsertEnumValueData(a.enumValueDataByValueName,l,o);return;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let c=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(c.implementedInterfaceTypeNames,a.implementedInterfaceTypeNames),(0,he.addIterableValuesToSet)(c.subgraphNames,a.subgraphNames);for(let l of c.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Re.Kind.UNION_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;(0,he.addMapEntries)(t.memberByMemberTypeName,a.memberByMemberTypeName),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return;default:(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let a=new Map;for(let o of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByArgumentName:a,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,ge.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,zq.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByArgumentName,a,`@${i.name}`,!1);(0,ge.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,he.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Re.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=f;break}default:{this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<0&&!l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let p=l;if(o.size>0){if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let f of o.keys()){p=f;for(let[y,g]of o)if(f!==y&&!g.implementedInterfaceTypeNames.has(f)){p="";break}if(p)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(p,c)){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=p,this.updateTypeNodeNamedType(a.type,p)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,mle.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let c=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let f of i.satisfiedFieldSets)c.satisfiedFieldSets.add(f),a.has(f)&&l.addTargetSubgraphByFieldSet(f,o);let p=r.fieldDatasBySubgraphName.get(o);for(let{name:f,namedTypeName:y}of p||[])this.internalGraph.addEdge(c,this.internalGraph.addOrUpdateNode(y),f);this.internalGraph.addEdge(i,c,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,c)}handleEntityInterfaces(){for(let[t,n]of this.entityInterfaceFederationDataByTypeName){(0,ti.subtractSet)(n.interfaceFieldNames,n.interfaceObjectFieldNames);let r=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,t,Oe.PARENT_DEFINITION_DATA);if(r.kind===Re.Kind.INTERFACE_TYPE_DEFINITION)for(let i of n.interfaceObjectSubgraphs){let a=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,i,"internalSubgraphBySubgraphName"),o=a.configurationDataByTypeName,c=this.concreteTypeNamesByAbstractTypeName.get(t);if(!c)continue;let l=(0,he.getOrThrowError)(o,t,"configurationDataByTypeName"),p=l.keys;if(!p)continue;l.entityInterfaceConcreteTypeNames=n.concreteTypeNames,this.internalGraph.setSubgraphName(i);let f=this.internalGraph.addOrUpdateNode(t,{isAbstract:!0});for(let y of c){let g=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,y,Oe.PARENT_DEFINITION_DATA);if(!(0,ti.isObjectDefinitionData)(g))continue;let v=(0,he.getOrThrowError)(this.entityDataByTypeName,y,"entityDataByTypeName");v.subgraphNames.add(i);let P=o.get(y);if(P)if((0,he.addIterableValuesToSet)(l.fieldNames,P.fieldNames),!P.keys)P.keys=[...p];else e:for(let G of p){for(let{selectionSet:Z}of P.keys)if(G.selectionSet===Z)continue e;P.keys.push(G)}else o.set(y,{fieldNames:new Set(l.fieldNames),isRootNode:!0,keys:[...p],typeName:y});let M=new Set;for(let G of p.filter(Z=>!Z.disableEntityResolver))M.add(G.selectionSet);let K=this.authorizationDataByParentTypeName.get(t);for(let G of n.interfaceObjectFieldNames){let Z=`${y}.${G}`,W=(0,he.getOrThrowError)(r.fieldDataByName,G,`${t}.fieldDataByFieldName`);(0,he.getValueOrDefault)(this.fieldCoordsByNamedTypeName,W.namedTypeName,()=>new Set).add(Z);let Te=K==null?void 0:K.fieldAuthDataByFieldName.get(G);if(Te){let je=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,y,()=>(0,ti.newAuthorizationData)(y));(0,ti.upsertFieldAuthorizationData)(je.fieldAuthDataByFieldName,Te)||this.invalidORScopesCoords.add(Z)}if(g.fieldDataByName.get(G))continue;let we=r.isInaccessible||g.isInaccessible||W.isInaccessible;g.fieldDataByName.set(G,this.copyFieldData(W,we))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:a,subgraphName:i,interfaceObjectData:n,interfaceObjectNode:f,resolvableKeyFieldSets:M,entityData:v})}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,ti.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t,n){let r=[];for(let[i,a]of t){let o=this.persistedDirectiveDefinitionByDirectiveName.get(i);if(o){if(a.length<2){r.push(...a);continue}if(!o.repeatable){this.errors.push((0,Fe.invalidRepeatedFederatedDirectiveErrorMessage)(i,n));continue}r.push(...a)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,ge.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t.persistedDirectivesData.directivesByDirectiveName,t.name)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(n.push(i),r=o);if(n.length===1)return(0,_c.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Fe.configureDescriptionPropagationError)((0,ge.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,kr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,c]of t.argumentDataByName)t.subgraphNames.size===c.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(c))):(0,ge.isTypeRequired)(c.type)&&i.push({inputValueName:o,missingSubgraphs:(0,he.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Fe.invalidRequiredInputValueError)(Oe.FIELD,a,i)):r.length>0&&((0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==Xq.ExtensionType.NONE&&this.errors.push((0,Fe.noBaseDefinitionForExtensionError)((0,he.kindToNodeType)(r.kind),n)),r.kind){case Re.Kind.ENUM_TYPE_DEFINITION:let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let Z of r.enumValueDataByValueName.values()){let W=(0,ge.getNodeForRouterSchemaByData)(Z,this.persistedDirectiveDefinitionByDirectiveName,this.errors),Te=(0,ge.isNodeDataInaccessible)(Z),fe=Y(x({},Z.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(Z)});switch(o){case ge.MergeMethod.CONSISTENT:!Te&&r.appearances>Z.appearances&&this.errors.push((0,Fe.incompatibleSharedEnumError)(n)),i.push(W),Te||a.push(fe);break;case ge.MergeMethod.INTERSECTION:r.appearances===Z.appearances&&(i.push(W),Te||a.push(fe));break;default:i.push(W),Te||a.push(fe);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,Oe.ENUM_VALUE));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),values:a}));break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:let c=[],l=[],p=[];for(let[Z,W]of r.inputValueDataByName)if(r.subgraphNames.size===W.subgraphNames.size){if(l.push(this.getNodeWithPersistedDirectivesByInputValueData(W)),(0,ge.isNodeDataInaccessible)(W))continue;p.push(Y(x({},W.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(W)}))}else(0,ge.isTypeRequired)(W.type)&&c.push({inputValueName:Z,missingSubgraphs:(0,he.getEntriesNotInHashSet)(r.subgraphNames,W.subgraphNames),requiredSubgraphs:[...W.requiredSubgraphNames]});if(c.length>0){this.errors.push((0,Fe.invalidRequiredInputValueError)(Oe.INPUT_OBJECT,n,c,!1));break}if(r.node.fields=l,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(p.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,"input field"));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:p}));break;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let f=[],y=[],g=new Map,v=(0,ge.newInvalidFieldNames)(),P=r.kind===Re.Kind.OBJECT_TYPE_DEFINITION,M=this.authorizationDataByParentTypeName.get(n);(0,ge.propagateAuthDirectives)(r,M);for(let[Z,W]of r.fieldDataByName){(0,ge.propagateFieldAuthDirectives)(W,M);let Te=this.getValidFieldArgumentNodes(W);P&&(0,ge.validateExternalAndShareable)(W,v),f.push(this.getNodeWithPersistedDirectivesByFieldData(W,Te)),!(0,ge.isNodeDataInaccessible)(W)&&(y.push((0,ge.getClientSchemaFieldNodeByFieldData)(W)),g.set(Z,this.fieldDataToGraphFieldData(W)))}if(P&&(v.byShareable.size>0&&this.errors.push((0,Fe.invalidFieldShareabilityError)(r,v.byShareable)),v.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Fe.allExternalFieldInstancesError)(n,v.subgraphNamesByExternalFieldName))),r.node.fields=f,this.internalGraph.initializeNode(n,g),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:y});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let K=(0,fle.isNodeQuery)(n);if((0,ge.isNodeDataInaccessible)(r)){if(K){this.errors.push(Fe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(y.length<1){let Z=K?(0,Fe.noQueryRootTypeError)(!1):(0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,Oe.FIELD);this.errors.push(Z);break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:y}));break;case Re.Kind.SCALAR_TYPE_DEFINITION:if(jn.BASE_SCALARS.has(n))break;if((0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r)}));break;case Re.Kind.UNION_TYPE_DEFINITION:if(r.node.types=(0,ti.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let G=this.getClientSchemaUnionMembers(r);if(G.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)(Oe.UNION,n,"union member type"));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),types:G}));break}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let a of i){let o=a.split(Oe.PERIOD);switch(o.length){case 2:{let c=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,ti.newAuthorizationData)(o[0])),l=(0,he.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,ti.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>jn.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,ti.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,ti.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,ge.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,ge.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let a of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(a)||i.push((0,kr.stringToNamedTypeNode)(a));this.clientDefinitions.push(Y(x({},n.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){this.isVersionTwo&&(this.routerDefinitions=[jn.AUTHENTICATED_DEFINITION,jn.DEPRECATED_DEFINITION,jn.INACCESSIBLE_DEFINITION,jn.REQUIRES_SCOPES_DEFINITION,jn.TAG_DEFINITION,jn.SCOPE_SCALAR_DEFINITION],this.clientDefinitions=[jn.DEPRECATED_DEFINITION])}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(Oe.LEFT_PARENTHESIS)[0].split(Oe.PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Fe.invalidReferencesOfInaccessibleTypeError)((0,he.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Oe.QUERY);if(!t||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Fe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,ge.isNodeDataInaccessible)(n))return;this.errors.push((0,Fe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(Oe.PERIOD);if(o.length<1)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let p=0;p0?`.${f}`:f,c.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=c.fieldDataByName.get(f);if(!y)return a.push((0,Fe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,f,c.renamedTypeName)),[];let g=`${c.renamedTypeName}.${f}`;if(!y.subgraphNames.has(i))return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,g,i)),[];if(this.inaccessibleCoords.has(g))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,g)),[];if(jn.BASE_SCALARS.has(y.namedTypeName)){c={kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}c=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,Oe.PARENT_DEFINITION_DATA)}return(0,ge.isLeafKind)(c.kind)?o:(a.push((0,Fe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,he.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>PE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,p=new Set([Oe.FIELD_PATH,Oe.VALUES]),f=new Set,y=new Set,g=[];for(let v of t.fields){let P=v.name.value,M=a+`.${P}`;switch(P){case Oe.FIELD_PATH:{if(p.has(Oe.FIELD_PATH))p.delete(Oe.FIELD_PATH);else{l=!0,f.add(Oe.FIELD_PATH);break}if(v.value.kind!==Re.Kind.STRING){g.push((0,Fe.invalidInputFieldTypeErrorMessage)(M,Oe.STRING,(0,he.kindToNodeType)(v.value.kind))),l=!0;break}let K=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,M,o,g);if(K.length<1){l=!0;break}n.fieldPath=K;break}case Oe.VALUES:{if(p.has(Oe.VALUES))p.delete(Oe.VALUES);else{l=!0,f.add(Oe.VALUES);break}let K=v.value.kind;if(K==Re.Kind.NULL||K==Re.Kind.OBJECT){g.push((0,Fe.invalidInputFieldTypeErrorMessage)(M,Oe.LIST,(0,he.kindToNodeType)(v.value.kind))),l=!0;break}if(K!==Re.Kind.LIST){n.values=[(0,ge.getSubscriptionFilterValue)(v.value)];break}let G=new Set,Z=[];for(let W=0;W0){g.push((0,Fe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(M,Z));continue}if(G.size<1){l=!0,g.push((0,Fe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(M));continue}n.values=[...G];break}default:l=!0,y.add(P)}}return l?(c.push((0,Fe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...p],[...f],[...y],g)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>PE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],p=l.name.value;if(!Wq.SUBSCRIPTION_FILTER_INPUT_NAMES.has(p))return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,p)),!1;let f=a+`.${p}`;switch(l.value.kind){case Re.Kind.OBJECT:switch(p){case Oe.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case Oe.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,Oe.LIST,Oe.OBJECT)),!1}case Re.Kind.LIST:{let y=[];switch(p){case Oe.AND_UPPER:{n.and=y;break}case Oe.OR_UPPER:{n.or=y;break}default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,Oe.OBJECT,Oe.LIST)),!1}let g=l.value.values.length;if(g<1||g>5)return c.push((0,Fe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(f,g)),!1;let v=!0,P=[];for(let M=0;M0?(c.push((0,Fe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(f,P)),!1):v}default:{let y=Wq.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(p)?Oe.LIST:Oe.OBJECT;return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,y,(0,he.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let c=t.arguments[0];if(c.value.kind!==Re.Kind.OBJECT){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,[(0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Oe.CONDITION,Oe.OBJECT,(0,he.kindToNodeType)(c.value.kind))]));return}let l={},p=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,Oe.CONDITION,o,p)){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,p)),this.isMaxDepth=!1;return}(0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(t,[(0,Fe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,ge.isNodeDataInaccessible)(r)||r.kind===Re.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,Fe.orScopesLimitError)(jn.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(a.length>0)return{errors:a,success:!1,warnings:this.warnings}}if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let n={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let a of this.internalSubgraphBySubgraphName.values())i.set(a.name,{configurationDataByTypeName:a.configurationDataByTypeName,isVersionTwo:a.isVersionTwo,parentDefinitionDataByTypeName:a.parentDefinitionDataByTypeName,schema:a.schema});for(let a of this.authorizationDataByParentTypeName.values())(0,ti.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,Re.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let a=n.size;for(let[o,c]of r){let l=(0,he.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,ge.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,he.getValueOrDefault)(l.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,c]of n){if((0,ge.isNodeDataInaccessible)(c)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,he.getValueOrDefault)(c.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(jn.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Oe.PARENT_DEFINITION_DATA);if(!(0,ge.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(c.childTagDataByChildName.size<1))switch(l.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.enumValueDataByValueName,c.childTagDataByChildName,t.tagNamesToExclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break;default:let p=l.fieldDataByName.size;for(let[f,y]of c.childTagDataByChildName){let g=(0,he.getOrThrowError)(l.fieldDataByName,f,`${o}.fieldDataByFieldName`);if((0,ge.isNodeDataInaccessible)(g)){p-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(y.tagNames)){(0,he.getValueOrDefault)(g.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(g.federatedCoords),p-=1;continue}for(let[v,P]of y.tagNamesByArgumentName){let M=(0,he.getOrThrowError)(g.argumentDataByName,v,`${f}.argumentDataByArgumentName`);(0,ge.isNodeDataInaccessible)(M)||P.isDisjointFrom(P)||((0,he.getValueOrDefault)(M.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(M.federatedCoords))}}p<1&&(l.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}else if(t.tagNamesToInclude.size>0)for(let[o,c]of this.parentDefinitionDataByTypeName){if((0,ge.isNodeDataInaccessible)(c))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(c.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.enumValueDataByValueName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let p=c.fieldDataByName.size;for(let[f,y]of c.fieldDataByName){if((0,ge.isNodeDataInaccessible)(y)){p-=1;continue}let g=l.childTagDataByChildName.get(f);(!g||t.tagNamesToInclude.isDisjointFrom(g.tagNames))&&((0,he.getValueOrDefault)(y.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(y.federatedCoords),p-=1)}p<1&&(c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let o of this.internalSubgraphBySubgraphName.values())a.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,isVersionTwo:o.isVersionTwo,parentDefinitionDataByTypeName:o.parentDefinitionDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,ti.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:a,federatedGraphAST:r,federatedGraphSchema:(0,Re.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};vc.FederationFactory=FE;function eD(e){if(e.length<1)return{errors:[Fe.minimumSubgraphRequirementError],success:!1,warnings:[]};let t=(0,ple.batchNormalize)(e);if(!t.success)return{errors:t.errors,success:!1,warnings:t.warnings};let n=new Map,r=new Map;for(let[a,o]of t.internalSubgraphBySubgraphName)for(let[c,l]of o.entityInterfaces){let p=n.get(c);if(!p){n.set(c,(0,ti.newEntityInterfaceFederationData)(l,a));continue}(0,ti.upsertEntityInterfaceFederationData)(p,l,a)}let i=[];for(let[a,o]of n){let c=o.concreteTypeNames.size;for(let[l,p]of o.subgraphDataByTypeName){if(!p.isInterfaceObject){p.resolvable&&p.concreteTypeNames.size!==c&&(0,he.getValueOrDefault)(r,a,()=>[]).push({subgraphName:l,concreteTypeNames:p.concreteTypeNames});continue}let f=(0,he.getOrThrowError)(t.internalSubgraphBySubgraphName,l,"internalSubgraphBySubgraphName").parentDefinitionDataByTypeName,y=[];for(let g of o.concreteTypeNames)f.has(g)&&y.push(g);y.length>0&&i.push((0,Fe.invalidInterfaceObjectImplementationDefinitionsError)(a,l,y))}}return r.size>0&&i.push((0,Fe.undefinedEntityInterfaceImplementationsError)(r,n)),i.length>0?{errors:i,success:!1,warnings:t.warnings}:{federationFactory:new FE({authorizationDataByParentTypeName:t.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:t.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:t.entityDataByTypeName,entityInterfaceFederationDataByTypeName:n,fieldCoordsByNamedTypeName:t.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:t.internalSubgraphBySubgraphName,internalGraph:t.internalGraph,warnings:t.warnings}),success:!0,warnings:t.warnings}}function Nle(e){let t=eD(e);return t.success?t.federationFactory.federateSubgraphsInternal():{errors:t.errors,success:!1,warnings:t.warnings}}function Tle(e,t){let n=eD(e);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};n.federationFactory.federateSubgraphData();let r=[(0,Zq.cloneDeep)(n.federationFactory)],i=n.federationFactory.buildFederationResult();if(!i.success)return{errors:i.errors,success:!1,warnings:i.warnings};let a=t.size-1,o=new Map,c=0;for(let[l,p]of t){c!==a&&r.push((0,Zq.cloneDeep)(r[c]));let f=r[c].buildFederationContractResult(p);o.set(l,f),c++}return Y(x({},i),{federationResultByContractName:o})}function Ele(e,t){let n=eD(e);return n.success?(n.federationFactory.federateSubgraphData(),n.federationFactory.buildFederationContractResult(t)):{errors:n.errors,success:!1,warnings:n.warnings}}});var wE=w(Ss=>{"use strict";m();T();N();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.LATEST_ROUTER_COMPATIBILITY_VERSION=Ss.ROUTER_COMPATIBILITY_VERSIONS=Ss.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ss.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ss.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ss.ROUTER_COMPATIBILITY_VERSION_ONE]);Ss.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var tV=w(Jp=>{"use strict";m();T();N();Object.defineProperty(Jp,"__esModule",{value:!0});Jp.federateSubgraphs=hle;Jp.federateSubgraphsWithContracts=yle;Jp.federateSubgraphsContract=Ile;var tD=eV(),nD=wE();function hle(e,t=nD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,tD.federateSubgraphs)(e)}}function yle(e,t,n=nD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,tD.federateSubgraphsWithContracts)(e,t)}}function Ile(e,t,n=nD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,tD.federateSubgraphsContract)(e,t)}}});var rV=w(nV=>{"use strict";m();T();N();Object.defineProperty(nV,"__esModule",{value:!0})});var iV=w(Hp=>{"use strict";m();T();N();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.normalizeSubgraphFromString=gle;Hp.normalizeSubgraph=_le;Hp.batchNormalize=vle;var rD=zO(),iD=wE();function gle(e,t=!0,n=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,rD.normalizeSubgraphFromString)(e,t)}}function _le(e,t,n,r=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,rD.normalizeSubgraph)(e,t,n)}}function vle(e,t=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,rD.batchNormalize)(e)}}});var sV=w(aV=>{"use strict";m();T();N();Object.defineProperty(aV,"__esModule",{value:!0})});var uV=w(oV=>{"use strict";m();T();N();Object.defineProperty(oV,"__esModule",{value:!0})});var lV=w(cV=>{"use strict";m();T();N();Object.defineProperty(cV,"__esModule",{value:!0})});var dV=w(LE=>{"use strict";m();T();N();Object.defineProperty(LE,"__esModule",{value:!0});LE.COMPOSITION_VERSION=void 0;LE.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var fV=w(pV=>{"use strict";m();T();N();Object.defineProperty(pV,"__esModule",{value:!0})});var NV=w(mV=>{"use strict";m();T();N();Object.defineProperty(mV,"__esModule",{value:!0})});var CE=w(Tt=>{"use strict";m();T();N();var Sle=Tt&&Tt.__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]}),wt=Tt&&Tt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Sle(t,e,n)};Object.defineProperty(Tt,"__esModule",{value:!0});wt(Yr(),Tt);wt(lv(),Tt);wt(ia(),Tt);wt(Ak(),Tt);wt(tV(),Tt);wt(rV(),Tt);wt(iV(),Tt);wt(sV(),Tt);wt(YO(),Tt);wt(jO(),Tt);wt(GO(),Tt);wt(wE(),Tt);wt(uV(),Tt);wt(JO(),Tt);wt(su(),Tt);wt(Ep(),Tt);wt(El(),Tt);wt(lV(),Tt);wt(dV(),Tt);wt(ur(),Tt);wt(fV(),Tt);wt(Jr(),Tt);wt(CO(),Tt);wt(CN(),Tt);wt(ZO(),Tt);wt(RO(),Tt);wt(Kp(),Tt);wt(NV(),Tt);wt(kO(),Tt);wt(AE(),Tt);wt(wO(),Tt);wt(Es(),Tt);wt(jp(),Tt);wt(Up(),Tt);wt(IE(),Tt)});var Ede={};am(Ede,{buildRouterConfiguration:()=>Tde,federateSubgraphs:()=>Nde});m();T();N();var Pc=ss(CE());m();T();N();m();T();N();function aD(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}m();T();N();m();T();N();var TV={};m();T();N();function EV(e){return e!=null}m();T();N();m();T();N();var _V=ss(Ae(),1);m();T();N();var hV;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}hV=function(t,n){return new e(t,n)}}else hV=AggregateError;function yV(e){return"errors"in e&&Array.isArray(e.errors)}var vV=3;function SV(e){return BE(e,[])}function BE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ole(e,t);default:return String(e)}}function IV(e){return e instanceof _V.GraphQLError?e.toString():`${e.name}: ${e.message}; +}`;var Et=SA(function(){return jt(L,je+"return "+Ee).apply(e,M)});if(Et.source=Ee,uy(Et))throw Et;return Et}function iY(s){return Qt(s).toLowerCase()}function aY(s){return Qt(s).toUpperCase()}function sY(s,u,d){if(s=Qt(s),s&&(d||u===e))return Lb(s);if(!s||!(u=ai(u)))return s;var E=$i(s),S=$i(u),L=Cb(E,S),M=Bb(E,S)+1;return $o(E,L,M).join("")}function oY(s,u,d){if(s=Qt(s),s&&(d||u===e))return s.slice(0,kb(s)+1);if(!s||!(u=ai(u)))return s;var E=$i(s),S=Bb(E,$i(u))+1;return $o(E,0,S).join("")}function uY(s,u,d){if(s=Qt(s),s&&(d||u===e))return s.replace(uh,"");if(!s||!(u=ai(u)))return s;var E=$i(s),S=Cb(E,$i(u));return $o(E,S).join("")}function cY(s,u){var d=it,E=ee;if(_n(u)){var S="separator"in u?u.separator:S;d="length"in u?mt(u.length):d,E="omission"in u?ai(u.omission):E}s=Qt(s);var L=s.length;if(Bc(s)){var M=$i(s);L=M.length}if(d>=L)return s;var j=d-Uc(E);if(j<1)return E;var H=M?$o(M,0,j).join(""):s.slice(0,j);if(S===e)return H+E;if(M&&(j+=H.length-j),cy(S)){if(s.slice(j).search(S)){var pe,me=H;for(S.global||(S=Oh(S.source,Qt(tb.exec(S))+"g")),S.lastIndex=0;pe=S.exec(me);)var Ee=pe.index;H=H.slice(0,Ee===e?j:Ee)}}else if(s.indexOf(ai(S),j)!=j){var be=H.lastIndexOf(S);be>-1&&(H=H.slice(0,be))}return H+E}function lY(s){return s=Qt(s),s&&g1.test(s)?s.replace(XD,xj):s}var dY=jc(function(s,u,d){return s+(d?" ":"")+u.toUpperCase()}),py=O0("toUpperCase");function vA(s,u,d){return s=Qt(s),u=d?e:u,u===e?Cj(s)?jj(s):Oj(s):s.match(u)||[]}var SA=yt(function(s,u){try{return ri(s,e,u)}catch(d){return uy(d)?d:new ot(d)}}),pY=ts(function(s,u){return Ti(u,function(d){d=_a(d),Za(s,d,sy(s[d],s))}),s});function fY(s){var u=s==null?0:s.length,d=ze();return s=u?yn(s,function(E){if(typeof E[1]!="function")throw new Ei(i);return[d(E[0]),E[1]]}):[],yt(function(E){for(var S=-1;++Sdn)return[];var d=Un,E=Tr(s,Un);u=ze(u),s-=Un;for(var S=_h(E,u);++d0||u<0)?new St(d):(s<0?d=d.takeRight(-s):s&&(d=d.drop(s)),u!==e&&(u=mt(u),d=u<0?d.dropRight(-u):d.take(u-s)),d)},St.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},St.prototype.toArray=function(){return this.take(Un)},Ia(St.prototype,function(s,u){var d=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),S=R[E?"take"+(u=="last"?"Right":""):u],L=E||/^find/.test(u);S&&(R.prototype[u]=function(){var M=this.__wrapped__,j=E?[1]:arguments,H=M instanceof St,pe=j[0],me=H||lt(M),Ee=function(vt){var At=S.apply(R,Mo([vt],j));return E&&be?At[0]:At};me&&d&&typeof pe=="function"&&pe.length!=1&&(H=me=!1);var be=this.__chain__,je=!!this.__actions__.length,Xe=L&&!be,Et=H&&!je;if(!L&&me){M=Et?M:new St(this);var Ze=s.apply(M,j);return Ze.__actions__.push({func:Wf,args:[Ee],thisArg:e}),new hi(Ze,be)}return Xe&&Et?s.apply(this,j):(Ze=this.thru(Ee),Xe?E?Ze.value()[0]:Ze.value():Ze)})}),Ti(["pop","push","shift","sort","splice","unshift"],function(s){var u=vf[s],d=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);R.prototype[s]=function(){var S=arguments;if(E&&!this.__chain__){var L=this.value();return u.apply(lt(L)?L:[],S)}return this[d](function(M){return u.apply(lt(M)?M:[],S)})}}),Ia(St.prototype,function(s,u){var d=R[u];if(d){var E=d.name+"";Zt.call(xc,E)||(xc[E]=[]),xc[E].push({name:u,func:d})}}),xc[Gf(e,k).name]=[{name:"wrapper",func:e}],St.prototype.clone=lK,St.prototype.reverse=dK,St.prototype.value=pK,R.prototype.at=V$,R.prototype.chain=j$,R.prototype.commit=K$,R.prototype.next=G$,R.prototype.plant=Q$,R.prototype.reverse=Y$,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=J$,R.prototype.first=R.prototype.head,ad&&(R.prototype[ad]=$$),R},qo=Kj();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ir._=qo,define(function(){return qo})):vu?((vu.exports=qo)._=qo,mh._=qo):ir._=qo}).call(Ql)});var eV=w(vc=>{"use strict";m();T();N();Object.defineProperty(vc,"__esModule",{value:!0});vc.FederationFactory=void 0;vc.federateSubgraphs=Nle;vc.federateSubgraphsWithContracts=Tle;vc.federateSubgraphsContract=Ele;var Re=Ae(),zq=su(),kr=Yr(),Fe=ia(),_c=CN(),Wq=Up(),ti=jp(),RE=WT(),jn=Es(),ple=zO(),fle=Kp(),Xq=Ep(),ge=El(),mle=ZO(),Zq=Hq(),Yl=AE(),Oe=ur(),PE=ml(),he=Jr(),FE=class{constructor(t){_(this,"authorizationDataByParentTypeName");_(this,"concreteTypeNamesByAbstractTypeName");_(this,"clientDefinitions",[jn.DEPRECATED_DEFINITION]);_(this,"currentSubgraphName","");_(this,"subgraphNamesByNamedTypeNameByFieldCoords",new Map);_(this,"entityDataByTypeName");_(this,"entityInterfaceFederationDataByTypeName");_(this,"errors",[]);_(this,"fieldConfigurationByFieldCoords",new Map);_(this,"fieldCoordsByNamedTypeName");_(this,"inaccessibleCoords",new Set);_(this,"inaccessibleRequiredInputValueErrorByCoords",new Map);_(this,"internalGraph");_(this,"internalSubgraphBySubgraphName");_(this,"invalidORScopesCoords",new Set);_(this,"isMaxDepth",!1);_(this,"isVersionTwo",!1);_(this,"namedInputValueTypeNames",new Set);_(this,"namedOutputTypeNames",new Set);_(this,"parentDefinitionDataByTypeName",new Map);_(this,"parentTagDataByTypeName",new Map);_(this,"coordsByNamedTypeName",new Map);_(this,"persistedDirectiveDefinitionByDirectiveName",new Map([[Oe.AUTHENTICATED,jn.AUTHENTICATED_DEFINITION],[Oe.DEPRECATED,jn.DEPRECATED_DEFINITION],[Oe.INACCESSIBLE,jn.INACCESSIBLE_DEFINITION],[Oe.REQUIRES_SCOPES,jn.REQUIRES_SCOPES_DEFINITION],[Oe.TAG,jn.TAG_DEFINITION]]));_(this,"persistedDirectiveDefinitions",new Set([Oe.AUTHENTICATED,Oe.DEPRECATED,Oe.INACCESSIBLE,Oe.TAG,Oe.REQUIRES_SCOPES]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"routerDefinitions",[jn.DEPRECATED_DEFINITION,jn.TAG_DEFINITION]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t.authorizationDataByParentTypeName,this.concreteTypeNamesByAbstractTypeName=t.concreteTypeNamesByAbstractTypeName,this.entityDataByTypeName=t.entityDataByTypeName,this.entityInterfaceFederationDataByTypeName=t.entityInterfaceFederationDataByTypeName,this.fieldCoordsByNamedTypeName=t.fieldCoordsByNamedTypeName,this.internalSubgraphBySubgraphName=t.internalSubgraphBySubgraphName,this.internalGraph=t.internalGraph,this.warnings=t.warnings}getValidImplementedInterfaces(t){var o;let n=[];if(t.implementedInterfaceTypeNames.size<1)return n;let r=(0,ge.isNodeDataInaccessible)(t),i=new Map,a=new Map;for(let c of t.implementedInterfaceTypeNames){n.push((0,kr.stringToNamedTypeNode)(c));let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,c,Oe.PARENT_DEFINITION_DATA);if(l.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,he.kindToNodeType)(l.kind));continue}let p={invalidFieldImplementations:new Map,unimplementedFields:[]},f=!1;for(let[y,g]of l.fieldDataByName){let v=!1,P=t.fieldDataByName.get(y);if(!P){f=!0,p.unimplementedFields.push(y);continue}let k={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,RE.printTypeNode)(g.node.type),unimplementedArguments:new Set};(0,ge.isTypeValidImplementation)(g.node.type,P.node.type,this.concreteTypeNamesByAbstractTypeName)||(f=!0,v=!0,k.implementedResponseType=(0,RE.printTypeNode)(P.node.type));let K=new Set;for(let[G,Z]of g.argumentDataByName){let W=Z.node;K.add(G);let Te=(o=P.argumentDataByName.get(G))==null?void 0:o.node;if(!Te){f=!0,v=!0,k.unimplementedArguments.add(G);continue}let fe=(0,RE.printTypeNode)(Te.type),we=(0,RE.printTypeNode)(W.type);we!==fe&&(f=!0,v=!0,k.invalidImplementedArguments.push({actualType:fe,argumentName:G,expectedType:we}))}for(let[G,Z]of P.argumentDataByName){let W=Z.node;K.has(G)||W.type.kind===Re.Kind.NON_NULL_TYPE&&(f=!0,v=!0,k.invalidAdditionalArguments.add(G))}!r&&P.isInaccessible&&!g.isInaccessible&&(f=!0,v=!0,k.isInaccessible=!0),v&&p.invalidFieldImplementations.set(y,k)}f&&i.set(c,p)}return a.size>0&&this.errors.push((0,Fe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Fe.invalidInterfaceImplementationError)(t.node.name.value,(0,he.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var f;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,this.currentSubgraphName,"internalSubgraphBySubgraphName"),i=r.parentDefinitionDataByTypeName,a=i.get(n.typeName);if(!a||a.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)throw(0,Fe.incompatibleParentKindFatalError)(n.typeName,Re.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Re.Kind.NULL);let o=(0,he.getOrThrowError)(r.configurationDataByTypeName,n.typeName,"internalSubgraph.configurationDataByTypeName"),c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[y,g]of this.entityInterfaceFederationDataByTypeName){if(!((f=g.concreteTypeNames)!=null&&f.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(y);v&&(0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:v,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l})}if(c.length<1)return;if(!o.keys||o.keys.length<1){o.isRootNode=!0,o.keys=c;return}let p=new Set(o.keys.map(y=>y.selectionSet));for(let y of c)p.has(y.selectionSet)||(o.keys.push(y),p.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,ge.isParentDataCompositeOutputType)(o))throw(0,Fe.incompatibleParentKindFatalError)(n,Re.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Re.Kind.NULL);let c=(0,he.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,_c.validateImplicitFieldSets)({conditionalFieldDataByCoords:t.conditionalFieldDataByCoordinates,currentSubgraphName:t.name,entityData:r,implicitKeys:l,objectData:o,parentDefinitionDataByTypeName:a,graphNode:i}),l.length<1)return;if(!c.keys||c.keys.length<1){c.isRootNode=!0,c.keys=l;return}let p=new Set(c.keys.map(f=>f.selectionSet));for(let f of l)p.has(f.selectionSet)||(c.keys.push(f),p.add(f.selectionSet))}getEnumValueMergeMethod(t){return this.namedInputValueTypeNames.has(t)?this.namedOutputTypeNames.has(t)?ge.MergeMethod.CONSISTENT:ge.MergeMethod.INTERSECTION:ge.MergeMethod.UNION}generateTagData(){for(let[t,n]of this.tagNamesByCoords){let r=t.split(".");if(r.length<1)continue;let i=(0,he.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,_c.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,he.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,_c.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,he.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,_c.newChildTagData)(r[1])),c=(0,he.getValueOrDefault)(o.tagNamesByArgumentName,r[2],()=>new Set);for(let l of n)c.add(l);break;default:break}}}upsertEnumValueData(t,n,r){let i=t.get(n.name),a=i||this.copyEnumValueData(n);(0,ge.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=(0,ge.isNodeDataInaccessible)(n);if((r||o)&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}a.appearances+=1,(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),(0,he.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if((0,ge.extractPersistedDirectives)(o.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(o,n),(0,he.addIterableValuesToSet)(n.requiredSubgraphNames,o.requiredSubgraphNames),(0,he.addIterableValuesToSet)(n.subgraphNames,o.subgraphNames),this.handleInputValueInaccessibility(i,o,r);let c=(0,Yl.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,Fe.incompatibleMergedTypesError)({actualType:c.actualType,isArgument:a.isArgument,coords:a.federatedCoords,expectedType:c.expectedType})),(0,ge.compareAndValidateInputValueDefaultValues)(o,n,this.errors)}handleInputValueInaccessibility(t,n,r){if(t){this.inaccessibleRequiredInputValueErrorByCoords.delete(n.federatedCoords),this.inaccessibleCoords.add(n.federatedCoords);return}if((0,ge.isNodeDataInaccessible)(n)){if((0,ge.isTypeRequired)(n.type)){this.inaccessibleRequiredInputValueErrorByCoords.set(n.federatedCoords,(0,Fe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByDirectiveName.get(Oe.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,he.getSingleSetEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Fe.unknownFieldSubgraphNameError)(t.federatedCoords));return}this.subscriptionFilterDataByFieldPath.set(t.federatedCoords,{directive:r[0],fieldData:n||t,directiveSubgraphName:i})}federateOutputType({current:t,other:n,coords:r,mostRestrictive:i}){n=(0,zq.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=Yl.DivergentType.NONE,c=a;for(let l=0;lnew Set))}upsertFieldData(t,n,r){let i=t.get(n.name),a=i||this.copyFieldData(n,r||(0,ge.isNodeDataInaccessible)(n));(0,he.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),(0,ge.extractPersistedDirectives)(a.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName);let o=r||(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.federatedCoords),this.recordTagNamesByCoords(a,a.federatedCoords),!i){t.set(a.name,a);return}let c=this.federateOutputType({current:a.type,other:n.type,coords:a.federatedCoords,mostRestrictive:!1});if(c.success)if(a.type=c.typeNode,a.namedTypeName!==n.namedTypeName){let l=(0,he.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),p=(0,he.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(p.size<1)for(let f of a.subgraphNames)n.subgraphNames.has(f)||p.add(f);(0,he.addIterableValuesToSet)(n.subgraphNames,(0,he.getValueOrDefault)(l,n.namedTypeName,()=>new Set))}else this.addSubgraphNameToExistingFieldNamedTypeDisparity(n);for(let l of n.argumentDataByName.values())this.upsertInputValueData(a.argumentDataByName,l,a.federatedCoords,o);(0,he.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,he.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,he.addMapEntries)(n.isShareableBySubgraphName,a.isShareableBySubgraphName),(0,he.addIterableValuesToSet)(n.subgraphNames,a.subgraphNames)}getClientSchemaUnionMembers(t){let n=[];for(let[r,i]of t.memberByMemberTypeName)this.inaccessibleCoords.has(r)||n.push(i);return n}recordTagNamesByCoords(t,n){let r=n||t.name;if(t.persistedDirectivesData.tagDirectiveByName.size<1)return;let i=(0,he.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),subgraphNames:new Set(t.subgraphNames),description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),federatedCoords:t.federatedCoords,fieldName:t.fieldName,includeDefaultValue:t.includeDefaultValue,isArgument:t.isArgument,kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{directives:[],kind:Re.Kind.INPUT_VALUE_DEFINITION,name:(0,kr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,requiredSubgraphNames:new Set(t.requiredSubgraphNames),subgraphNames:new Set(t.subgraphNames),type:t.type,defaultValue:t.defaultValue,description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueDataByValueName(t,n,r){let i=new Map;for(let[a,o]of t){let c=this.copyInputValueData(o);this.handleInputValueInaccessibility(n,c,r),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedInputValueTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,`${r}.${o.name}`),i.set(a,c)}return i}copyFieldData(t,n){return{argumentDataByName:this.copyInputValueDataByValueName(t.argumentDataByName,n,t.federatedCoords),configureDescriptionDataBySubgraphName:(0,he.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,he.copyArrayValueMap)(t.directivesByDirectiveName),externalFieldDataBySubgraphName:(0,he.copyObjectValueMap)(t.externalFieldDataBySubgraphName),federatedCoords:t.federatedCoords,inheritedDirectiveNames:new Set,isInaccessible:t.isInaccessible,isShareableBySubgraphName:new Map(t.isShareableBySubgraphName),kind:t.kind,name:t.name,namedTypeKind:t.namedTypeKind,namedTypeName:t.namedTypeName,node:{arguments:[],directives:[],kind:t.kind,name:(0,kr.stringToNameNode)(t.name),type:t.type},originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:(0,ge.extractPersistedDirectives)((0,ge.newPersistedDirectivesData)(),t.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueDataByValueName(t,n){let r=new Map;for(let[i,a]of t){let o=this.copyEnumValueData(a);this.recordTagNamesByCoords(o,o.federatedCoords),(n||(0,ge.isNodeDataInaccessible)(o))&&this.inaccessibleCoords.add(o.federatedCoords),r.set(i,o)}return r}copyFieldDataByName(t,n){let r=new Map;for(let[i,a]of t){let o=n||(0,ge.isNodeDataInaccessible)(a),c=this.copyFieldData(a,o);this.handleSubscriptionFilterDirective(c),(0,he.getValueOrDefault)(this.coordsByNamedTypeName,c.namedTypeName,()=>new Set).add(c.federatedCoords),this.namedOutputTypeNames.add(c.namedTypeName),this.recordTagNamesByCoords(c,c.federatedCoords),o&&this.inaccessibleCoords.add(c.federatedCoords),r.set(i,c)}return r}copyParentDefinitionData(t){let n=this.copyMutualParentDefinitionData(t);switch(t.kind){case Re.Kind.ENUM_TYPE_DEFINITION:return Y(x({},n),{appearances:t.appearances,enumValueDataByValueName:this.copyEnumValueDataByValueName(t.enumValueDataByValueName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Y(x({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INTERFACE_TYPE_DEFINITION:return Y(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.OBJECT_TYPE_DEFINITION:return Y(x({},n),{fieldDataByName:this.copyFieldDataByName(t.fieldDataByName,t.isInaccessible),implementedInterfaceTypeNames:new Set(t.implementedInterfaceTypeNames),isEntity:t.isEntity,isInaccessible:t.isInaccessible,isRootType:t.isRootType,kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.renamedTypeName||t.name)},renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.SCALAR_TYPE_DEFINITION:return Y(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.UNION_TYPE_DEFINITION:return Y(x({},n),{kind:t.kind,node:{kind:t.kind,name:(0,kr.stringToNameNode)(t.name)},memberByMemberTypeName:new Map(t.memberByMemberTypeName),subgraphNames:new Set(t.subgraphNames)})}}getParentTargetData({existingData:t,incomingData:n}){if(!t){let r=this.copyParentDefinitionData(n);return(0,ge.isParentDataRootType)(r)&&(r.extensionType=Xq.ExtensionType.NONE),r}return(0,ge.extractPersistedDirectives)(t.persistedDirectivesData,n.directivesByDirectiveName,this.persistedDirectiveDefinitionByDirectiveName),t}upsertParentDefinitionData(t,n){let r=this.entityInterfaceFederationDataByTypeName.get(t.name),i=this.parentDefinitionDataByTypeName.get(t.name),a=this.getParentTargetData({existingData:i,incomingData:t});this.recordTagNamesByCoords(a);let o=(0,ge.isNodeDataInaccessible)(a);if(o&&this.inaccessibleCoords.add(a.name),r&&r.interfaceObjectSubgraphs.has(n)&&(a.kind=Re.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Re.Kind.INTERFACE_TYPE_DEFINITION),!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphs.has(n)||a.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Fe.incompatibleParentKindMergeError)(a.name,(0,he.kindToNodeType)(a.kind),(0,he.kindToNodeType)(t.kind)));return}switch((0,he.addNewObjectValueMapEntries)(t.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,t),(0,ge.setParentDataExtensionType)(a,t),a.kind){case Re.Kind.ENUM_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;a.appearances+=1,a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.enumValueDataByValueName.values())this.upsertEnumValueData(a.enumValueDataByValueName,l,o);return;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);for(let l of t.inputValueDataByName.values())this.upsertInputValueData(a.inputValueDataByName,l,a.name,a.isInaccessible);return;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let c=t;o&&!a.isInaccessible&&this.propagateInaccessibilityToExistingChildren(a),a.isInaccessible||(a.isInaccessible=o),(0,he.addIterableValuesToSet)(c.implementedInterfaceTypeNames,a.implementedInterfaceTypeNames),(0,he.addIterableValuesToSet)(c.subgraphNames,a.subgraphNames);for(let l of c.fieldDataByName.values())this.upsertFieldData(a.fieldDataByName,l,a.isInaccessible);return;case Re.Kind.UNION_TYPE_DEFINITION:if(!(0,ge.areKindsEqual)(a,t))return;(0,he.addMapEntries)(t.memberByMemberTypeName,a.memberByMemberTypeName),(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return;default:(0,he.addIterableValuesToSet)(t.subgraphNames,a.subgraphNames);return}}propagateInaccessibilityToExistingChildren(t){switch(t.kind){case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:for(let n of t.inputValueDataByName.values())this.inaccessibleCoords.add(n.federatedCoords);break;default:for(let n of t.fieldDataByName.values()){this.inaccessibleCoords.add(n.federatedCoords);for(let r of n.argumentDataByName.values())this.inaccessibleCoords.add(r.federatedCoords)}}}upsertPersistedDirectiveDefinitionData(t,n){let r=t.name,i=this.potentialPersistedDirectiveDefinitionDataByDirectiveName.get(r);if(!i){if(n>1)return;let a=new Map;for(let o of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByArgumentName:a,executableLocations:new Set(t.executableLocations),name:r,repeatable:t.repeatable,subgraphNames:new Set(t.subgraphNames),description:t.description});return}if(i.subgraphNames.size+1!==n){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}if((0,ge.setMutualExecutableLocations)(i,t.executableLocations),i.executableLocations.size<1){this.potentialPersistedDirectiveDefinitionDataByDirectiveName.delete(r);return}for(let a of t.argumentDataByArgumentName.values())this.namedInputValueTypeNames.add((0,zq.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByArgumentName,a,`@${i.name}`,!1);(0,ge.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,he.addIterableValuesToSet)(t.subgraphNames,i.subgraphNames)}shouldUpdateFederatedFieldAbstractNamedType(t,n){if(!t)return!1;let r=this.concreteTypeNamesByAbstractTypeName.get(t);if(!r||r.size<1)return!1;for(let i of n)if(!r.has(i))return!1;return!0}updateTypeNodeNamedType(t,n){let r=t;for(let i=0;i1){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Re.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=f;break}default:{this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<0&&!l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let p=l;if(o.size>0){if(l){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let f of o.keys()){p=f;for(let[y,g]of o)if(f!==y&&!g.implementedInterfaceTypeNames.has(f)){p="";break}if(p)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(p,c)){this.errors.push((0,Fe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=p,this.updateTypeNodeNamedType(a.type,p)}}federateInternalSubgraphData(){let t=0,n=!1;for(let r of this.internalSubgraphBySubgraphName.values()){t+=1,this.currentSubgraphName=r.name,this.isVersionTwo||(this.isVersionTwo=r.isVersionTwo),(0,mle.renameRootTypes)(this,r);for(let i of r.parentDefinitionDataByTypeName.values())this.upsertParentDefinitionData(i,r.name);if(!n){if(!r.persistedDirectiveDefinitionDataByDirectiveName.size){n=!0;continue}for(let i of r.persistedDirectiveDefinitionDataByDirectiveName.values())this.upsertPersistedDirectiveDefinitionData(i,t);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.size<1&&(n=!0)}}this.handleDisparateFieldNamedTypes()}handleInterfaceObjectForInternalGraph({entityData:t,internalSubgraph:n,interfaceObjectData:r,interfaceObjectNode:i,resolvableKeyFieldSets:a,subgraphName:o}){let c=this.internalGraph.addOrUpdateNode(t.typeName),l=this.internalGraph.addEntityDataNode(t.typeName);for(let f of i.satisfiedFieldSets)c.satisfiedFieldSets.add(f),a.has(f)&&l.addTargetSubgraphByFieldSet(f,o);let p=r.fieldDatasBySubgraphName.get(o);for(let{name:f,namedTypeName:y}of p||[])this.internalGraph.addEdge(c,this.internalGraph.addOrUpdateNode(y),f);this.internalGraph.addEdge(i,c,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,c)}handleEntityInterfaces(){for(let[t,n]of this.entityInterfaceFederationDataByTypeName){(0,ti.subtractSet)(n.interfaceFieldNames,n.interfaceObjectFieldNames);let r=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,t,Oe.PARENT_DEFINITION_DATA);if(r.kind===Re.Kind.INTERFACE_TYPE_DEFINITION)for(let i of n.interfaceObjectSubgraphs){let a=(0,he.getOrThrowError)(this.internalSubgraphBySubgraphName,i,"internalSubgraphBySubgraphName"),o=a.configurationDataByTypeName,c=this.concreteTypeNamesByAbstractTypeName.get(t);if(!c)continue;let l=(0,he.getOrThrowError)(o,t,"configurationDataByTypeName"),p=l.keys;if(!p)continue;l.entityInterfaceConcreteTypeNames=n.concreteTypeNames,this.internalGraph.setSubgraphName(i);let f=this.internalGraph.addOrUpdateNode(t,{isAbstract:!0});for(let y of c){let g=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,y,Oe.PARENT_DEFINITION_DATA);if(!(0,ti.isObjectDefinitionData)(g))continue;let v=(0,he.getOrThrowError)(this.entityDataByTypeName,y,"entityDataByTypeName");v.subgraphNames.add(i);let P=o.get(y);if(P)if((0,he.addIterableValuesToSet)(l.fieldNames,P.fieldNames),!P.keys)P.keys=[...p];else e:for(let G of p){for(let{selectionSet:Z}of P.keys)if(G.selectionSet===Z)continue e;P.keys.push(G)}else o.set(y,{fieldNames:new Set(l.fieldNames),isRootNode:!0,keys:[...p],typeName:y});let k=new Set;for(let G of p.filter(Z=>!Z.disableEntityResolver))k.add(G.selectionSet);let K=this.authorizationDataByParentTypeName.get(t);for(let G of n.interfaceObjectFieldNames){let Z=`${y}.${G}`,W=(0,he.getOrThrowError)(r.fieldDataByName,G,`${t}.fieldDataByFieldName`);(0,he.getValueOrDefault)(this.fieldCoordsByNamedTypeName,W.namedTypeName,()=>new Set).add(Z);let Te=K==null?void 0:K.fieldAuthDataByFieldName.get(G);if(Te){let Ve=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,y,()=>(0,ti.newAuthorizationData)(y));(0,ti.upsertFieldAuthorizationData)(Ve.fieldAuthDataByFieldName,Te)||this.invalidORScopesCoords.add(Z)}if(g.fieldDataByName.get(G))continue;let we=r.isInaccessible||g.isInaccessible||W.isInaccessible;g.fieldDataByName.set(G,this.copyFieldData(W,we))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:a,subgraphName:i,interfaceObjectData:n,interfaceObjectNode:f,resolvableKeyFieldSets:k,entityData:v})}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,ti.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t,n){let r=[];for(let[i,a]of t){let o=this.persistedDirectiveDefinitionByDirectiveName.get(i);if(o){if(a.length<2){r.push(...a);continue}if(!o.repeatable){this.errors.push((0,Fe.invalidRepeatedFederatedDirectiveErrorMessage)(i,n));continue}r.push(...a)}}return r}getRouterPersistedDirectiveNodes(t){let n=[...t.persistedDirectivesData.tagDirectiveByName.values()];return t.persistedDirectivesData.isDeprecated&&n.push((0,ge.generateDeprecatedDirective)(t.persistedDirectivesData.deprecatedReason)),n.push(...this.getValidFlattenedPersistedDirectiveNodeArray(t.persistedDirectivesData.directivesByDirectiveName,t.name)),n}getFederatedGraphNodeDescription(t){if(t.configureDescriptionDataBySubgraphName.size<1)return t.description;let n=[],r="";for(let[i,{propagate:a,description:o}]of t.configureDescriptionDataBySubgraphName)a&&(n.push(i),r=o);if(n.length===1)return(0,_c.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Fe.configureDescriptionPropagationError)((0,ge.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,kr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.includeDefaultValue&&(t.node.defaultValue=t.defaultValue),t.node}getValidFieldArgumentNodes(t){let n=[],r=[],i=[],a=`${t.renamedParentTypeName}.${t.name}`;for(let[o,c]of t.argumentDataByName)t.subgraphNames.size===c.subgraphNames.size?(r.push(o),n.push(this.getNodeWithPersistedDirectivesByInputValueData(c))):(0,ge.isTypeRequired)(c.type)&&i.push({inputValueName:o,missingSubgraphs:(0,he.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Fe.invalidRequiredInputValueError)(Oe.FIELD,a,i)):r.length>0&&((0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,a,()=>({argumentNames:r,fieldName:t.name,typeName:t.renamedParentTypeName})).argumentNames=r),n}getNodeWithPersistedDirectivesByFieldData(t,n){return t.node.arguments=n,t.node.name=(0,kr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==Xq.ExtensionType.NONE&&this.errors.push((0,Fe.noBaseDefinitionForExtensionError)((0,he.kindToNodeType)(r.kind),n)),r.kind){case Re.Kind.ENUM_TYPE_DEFINITION:let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let Z of r.enumValueDataByValueName.values()){let W=(0,ge.getNodeForRouterSchemaByData)(Z,this.persistedDirectiveDefinitionByDirectiveName,this.errors),Te=(0,ge.isNodeDataInaccessible)(Z),fe=Y(x({},Z.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(Z)});switch(o){case ge.MergeMethod.CONSISTENT:!Te&&r.appearances>Z.appearances&&this.errors.push((0,Fe.incompatibleSharedEnumError)(n)),i.push(W),Te||a.push(fe);break;case ge.MergeMethod.INTERSECTION:r.appearances===Z.appearances&&(i.push(W),Te||a.push(fe));break;default:i.push(W),Te||a.push(fe);break}}if(r.node.values=i,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,Oe.ENUM_VALUE));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),values:a}));break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:let c=[],l=[],p=[];for(let[Z,W]of r.inputValueDataByName)if(r.subgraphNames.size===W.subgraphNames.size){if(l.push(this.getNodeWithPersistedDirectivesByInputValueData(W)),(0,ge.isNodeDataInaccessible)(W))continue;p.push(Y(x({},W.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(W)}))}else(0,ge.isTypeRequired)(W.type)&&c.push({inputValueName:Z,missingSubgraphs:(0,he.getEntriesNotInHashSet)(r.subgraphNames,W.subgraphNames),requiredSubgraphs:[...W.requiredSubgraphNames]});if(c.length>0){this.errors.push((0,Fe.invalidRequiredInputValueError)(Oe.INPUT_OBJECT,n,c,!1));break}if(r.node.fields=l,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(p.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,"input field"));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:p}));break;case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:let f=[],y=[],g=new Map,v=(0,ge.newInvalidFieldNames)(),P=r.kind===Re.Kind.OBJECT_TYPE_DEFINITION,k=this.authorizationDataByParentTypeName.get(n);(0,ge.propagateAuthDirectives)(r,k);for(let[Z,W]of r.fieldDataByName){(0,ge.propagateFieldAuthDirectives)(W,k);let Te=this.getValidFieldArgumentNodes(W);P&&(0,ge.validateExternalAndShareable)(W,v),f.push(this.getNodeWithPersistedDirectivesByFieldData(W,Te)),!(0,ge.isNodeDataInaccessible)(W)&&(y.push((0,ge.getClientSchemaFieldNodeByFieldData)(W)),g.set(Z,this.fieldDataToGraphFieldData(W)))}if(P&&(v.byShareable.size>0&&this.errors.push((0,Fe.invalidFieldShareabilityError)(r,v.byShareable)),v.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Fe.allExternalFieldInstancesError)(n,v.subgraphNamesByExternalFieldName))),r.node.fields=f,this.internalGraph.initializeNode(n,g),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:y});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let K=(0,fle.isNodeQuery)(n);if((0,ge.isNodeDataInaccessible)(r)){if(K){this.errors.push(Fe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(y.length<1){let Z=K?(0,Fe.noQueryRootTypeError)(!1):(0,Fe.allChildDefinitionsAreInaccessibleError)((0,he.kindToNodeType)(r.kind),n,Oe.FIELD);this.errors.push(Z);break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:y}));break;case Re.Kind.SCALAR_TYPE_DEFINITION:if(jn.BASE_SCALARS.has(n))break;if((0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n)),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r)}));break;case Re.Kind.UNION_TYPE_DEFINITION:if(r.node.types=(0,ti.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let G=this.getClientSchemaUnionMembers(r);if(G.length<1){this.errors.push((0,Fe.allChildDefinitionsAreInaccessibleError)(Oe.UNION,n,"union member type"));break}this.clientDefinitions.push(Y(x({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),types:G}));break}}pushNamedTypeAuthDataToFields(){var t;for(let[n,r]of this.authorizationDataByParentTypeName){if(!r.requiresAuthentication&&r.requiredScopes.length<1)continue;let i=this.fieldCoordsByNamedTypeName.get(n);if(i)for(let a of i){let o=a.split(Oe.PERIOD);switch(o.length){case 2:{let c=(0,he.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,ti.newAuthorizationData)(o[0])),l=(0,he.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,ti.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>jn.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,ti.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,ti.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),this.pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push((0,ge.getNodeForRouterSchemaByData)(n,this.persistedDirectiveDefinitionByDirectiveName,this.errors)),(0,ge.isNodeDataInaccessible)(n)){this.validateReferencesOfInaccessibleType(n),this.internalGraph.setNodeInaccessible(n.name);continue}let i=[];for(let a of n.implementedInterfaceTypeNames)this.inaccessibleCoords.has(a)||i.push((0,kr.stringToNamedTypeNode)(a));this.clientDefinitions.push(Y(x({},n.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}pushVersionTwoDirectiveDefinitionsToDocumentDefinitions(){this.isVersionTwo&&(this.routerDefinitions=[jn.AUTHENTICATED_DEFINITION,jn.DEPRECATED_DEFINITION,jn.INACCESSIBLE_DEFINITION,jn.REQUIRES_SCOPES_DEFINITION,jn.TAG_DEFINITION,jn.SCOPE_SCALAR_DEFINITION],this.clientDefinitions=[jn.DEPRECATED_DEFINITION])}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(Oe.LEFT_PARENTHESIS)[0].split(Oe.PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Fe.invalidReferencesOfInaccessibleTypeError)((0,he.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(Oe.QUERY);if(!t||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Fe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,ge.isNodeDataInaccessible)(n))return;this.errors.push((0,Fe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(Oe.PERIOD);if(o.length<1)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let p=0;p0?`.${f}`:f,c.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=c.fieldDataByName.get(f);if(!y)return a.push((0,Fe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,f,c.renamedTypeName)),[];let g=`${c.renamedTypeName}.${f}`;if(!y.subgraphNames.has(i))return a.push((0,Fe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,g,i)),[];if(this.inaccessibleCoords.has(g))return a.push((0,Fe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,g)),[];if(jn.BASE_SCALARS.has(y.namedTypeName)){c={kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}c=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,Oe.PARENT_DEFINITION_DATA)}return(0,ge.isLeafKind)(c.kind)?o:(a.push((0,Fe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,he.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>PE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,p=new Set([Oe.FIELD_PATH,Oe.VALUES]),f=new Set,y=new Set,g=[];for(let v of t.fields){let P=v.name.value,k=a+`.${P}`;switch(P){case Oe.FIELD_PATH:{if(p.has(Oe.FIELD_PATH))p.delete(Oe.FIELD_PATH);else{l=!0,f.add(Oe.FIELD_PATH);break}if(v.value.kind!==Re.Kind.STRING){g.push((0,Fe.invalidInputFieldTypeErrorMessage)(k,Oe.STRING,(0,he.kindToNodeType)(v.value.kind))),l=!0;break}let K=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,k,o,g);if(K.length<1){l=!0;break}n.fieldPath=K;break}case Oe.VALUES:{if(p.has(Oe.VALUES))p.delete(Oe.VALUES);else{l=!0,f.add(Oe.VALUES);break}let K=v.value.kind;if(K==Re.Kind.NULL||K==Re.Kind.OBJECT){g.push((0,Fe.invalidInputFieldTypeErrorMessage)(k,Oe.LIST,(0,he.kindToNodeType)(v.value.kind))),l=!0;break}if(K!==Re.Kind.LIST){n.values=[(0,ge.getSubscriptionFilterValue)(v.value)];break}let G=new Set,Z=[];for(let W=0;W0){g.push((0,Fe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(k,Z));continue}if(G.size<1){l=!0,g.push((0,Fe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(k));continue}n.values=[...G];break}default:l=!0,y.add(P)}}return l?(c.push((0,Fe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...p],[...f],[...y],g)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>PE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Fe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],p=l.name.value;if(!Wq.SUBSCRIPTION_FILTER_INPUT_NAMES.has(p))return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,p)),!1;let f=a+`.${p}`;switch(l.value.kind){case Re.Kind.OBJECT:switch(p){case Oe.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case Oe.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,Oe.LIST,Oe.OBJECT)),!1}case Re.Kind.LIST:{let y=[];switch(p){case Oe.AND_UPPER:{n.and=y;break}case Oe.OR_UPPER:{n.or=y;break}default:return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,Oe.OBJECT,Oe.LIST)),!1}let g=l.value.values.length;if(g<1||g>5)return c.push((0,Fe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(f,g)),!1;let v=!0,P=[];for(let k=0;k0?(c.push((0,Fe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(f,P)),!1):v}default:{let y=Wq.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(p)?Oe.LIST:Oe.OBJECT;return c.push((0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,y,(0,he.kindToNodeType)(l.value.kind))),!1}}}validateSubscriptionFilterAndGenerateConfiguration(t,n,r,i,a,o){if(!t.arguments||t.arguments.length!==1)return;let c=t.arguments[0];if(c.value.kind!==Re.Kind.OBJECT){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,[(0,Fe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(Oe.CONDITION,Oe.OBJECT,(0,he.kindToNodeType)(c.value.kind))]));return}let l={},p=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,Oe.CONDITION,o,p)){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(r,p)),this.isMaxDepth=!1;return}(0,he.getValueOrDefault)(this.fieldConfigurationByFieldCoords,r,()=>({argumentNames:[],fieldName:i,typeName:a})).subscriptionFilterCondition=l}validateSubscriptionFiltersAndGenerateConfiguration(){for(let[t,n]of this.subscriptionFilterDataByFieldPath){if(this.inaccessibleCoords.has(t))continue;let r=this.parentDefinitionDataByTypeName.get(n.fieldData.namedTypeName);if(!r){this.errors.push((0,Fe.invalidSubscriptionFilterDirectiveError)(t,[(0,Fe.subscriptionFilterNamedTypeErrorMessage)(n.fieldData.namedTypeName)]));continue}(0,ge.isNodeDataInaccessible)(r)||r.kind===Re.Kind.OBJECT_TYPE_DEFINITION&&this.validateSubscriptionFilterAndGenerateConfiguration(n.directive,r,t,n.fieldData.name,n.fieldData.renamedParentTypeName,n.directiveSubgraphName)}}buildFederationResult(){this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration(),this.invalidORScopesCoords.size>0&&this.errors.push((0,Fe.orScopesLimitError)(jn.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let a of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,a,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let t=[];this.pushParentDefinitionDataToDocumentDefinitions(t),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(t),this.validateQueryRootType();for(let a of this.inaccessibleRequiredInputValueErrorByCoords.values())this.errors.push(a);if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};if(this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(a.length>0)return{errors:a,success:!1,warnings:this.warnings}}if(this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let n={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},r=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),i=new Map;for(let a of this.internalSubgraphBySubgraphName.values())i.set(a.name,{configurationDataByTypeName:a.configurationDataByTypeName,isVersionTwo:a.isVersionTwo,parentDefinitionDataByTypeName:a.parentDefinitionDataByTypeName,schema:a.schema});for(let a of this.authorizationDataByParentTypeName.values())(0,ti.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:i,federatedGraphAST:n,federatedGraphSchema:(0,Re.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}getClientSchemaObjectBoolean(){return this.inaccessibleCoords.size<1&&this.tagNamesByCoords.size<1?{}:{shouldIncludeClientSchema:!0}}handleChildTagExclusions(t,n,r,i){let a=n.size;for(let[o,c]of r){let l=(0,he.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,ge.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,he.getValueOrDefault)(l.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}handleChildTagInclusions(t,n,r,i){let a=n.size;for(let[o,c]of n){if((0,ge.isNodeDataInaccessible)(c)){a-=1;continue}let l=r.get(o);(!l||i.isDisjointFrom(l.tagNames))&&((0,he.getValueOrDefault)(c.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(jn.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,he.getOrThrowError)(this.parentDefinitionDataByTypeName,o,Oe.PARENT_DEFINITION_DATA);if(!(0,ge.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(!(c.childTagDataByChildName.size<1))switch(l.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.enumValueDataByValueName,c.childTagDataByChildName,t.tagNamesToExclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break;default:let p=l.fieldDataByName.size;for(let[f,y]of c.childTagDataByChildName){let g=(0,he.getOrThrowError)(l.fieldDataByName,f,`${o}.fieldDataByFieldName`);if((0,ge.isNodeDataInaccessible)(g)){p-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(y.tagNames)){(0,he.getValueOrDefault)(g.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(g.federatedCoords),p-=1;continue}for(let[v,P]of y.tagNamesByArgumentName){let k=(0,he.getOrThrowError)(g.argumentDataByName,v,`${f}.argumentDataByArgumentName`);(0,ge.isNodeDataInaccessible)(k)||P.isDisjointFrom(P)||((0,he.getValueOrDefault)(k.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(k.federatedCoords))}}p<1&&(l.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}else if(t.tagNamesToInclude.size>0)for(let[o,c]of this.parentDefinitionDataByTypeName){if((0,ge.isNodeDataInaccessible)(c))continue;let l=this.parentTagDataByTypeName.get(o);if(!l){c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}switch(c.kind){case Re.Kind.SCALAR_TYPE_DEFINITION:case Re.Kind.UNION_TYPE_DEFINITION:continue;case Re.Kind.ENUM_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.enumValueDataByValueName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let p=c.fieldDataByName.size;for(let[f,y]of c.fieldDataByName){if((0,ge.isNodeDataInaccessible)(y)){p-=1;continue}let g=l.childTagDataByChildName.get(f);(!g||t.tagNamesToInclude.isDisjointFrom(g.tagNames))&&((0,he.getValueOrDefault)(y.persistedDirectivesData.directivesByDirectiveName,Oe.INACCESSIBLE,()=>[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(y.federatedCoords),p-=1)}p<1&&(c.persistedDirectivesData.directivesByDirectiveName.set(Oe.INACCESSIBLE,[(0,he.generateSimpleDirective)(Oe.INACCESSIBLE)]),this.inaccessibleCoords.add(o))}}}this.subscriptionFilterDataByFieldPath.size>0&&this.validateSubscriptionFiltersAndGenerateConfiguration();for(let o of this.potentialPersistedDirectiveDefinitionDataByDirectiveName.values())(0,ge.addValidPersistedDirectiveDefinitionNodeByData)(this.routerDefinitions,o,this.persistedDirectiveDefinitionByDirectiveName,this.errors);let n=[];if(this.pushParentDefinitionDataToDocumentDefinitions(n),this.validateInterfaceImplementationsAndPushToDocumentDefinitions(n),this.validateQueryRootType(),this.errors.length>0)return{errors:this.errors,success:!1,warnings:this.warnings};let r={kind:Re.Kind.DOCUMENT,definitions:this.routerDefinitions},i=(0,Re.buildASTSchema)({kind:Re.Kind.DOCUMENT,definitions:this.clientDefinitions},{assumeValid:!0,assumeValidSDL:!0}),a=new Map;for(let o of this.internalSubgraphBySubgraphName.values())a.set(o.name,{configurationDataByTypeName:o.configurationDataByTypeName,isVersionTwo:o.isVersionTwo,parentDefinitionDataByTypeName:o.parentDefinitionDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,ti.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return x({fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),subgraphConfigBySubgraphName:a,federatedGraphAST:r,federatedGraphSchema:(0,Re.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};vc.FederationFactory=FE;function eD(e){if(e.length<1)return{errors:[Fe.minimumSubgraphRequirementError],success:!1,warnings:[]};let t=(0,ple.batchNormalize)(e);if(!t.success)return{errors:t.errors,success:!1,warnings:t.warnings};let n=new Map,r=new Map;for(let[a,o]of t.internalSubgraphBySubgraphName)for(let[c,l]of o.entityInterfaces){let p=n.get(c);if(!p){n.set(c,(0,ti.newEntityInterfaceFederationData)(l,a));continue}(0,ti.upsertEntityInterfaceFederationData)(p,l,a)}let i=[];for(let[a,o]of n){let c=o.concreteTypeNames.size;for(let[l,p]of o.subgraphDataByTypeName){if(!p.isInterfaceObject){p.resolvable&&p.concreteTypeNames.size!==c&&(0,he.getValueOrDefault)(r,a,()=>[]).push({subgraphName:l,concreteTypeNames:p.concreteTypeNames});continue}let f=(0,he.getOrThrowError)(t.internalSubgraphBySubgraphName,l,"internalSubgraphBySubgraphName").parentDefinitionDataByTypeName,y=[];for(let g of o.concreteTypeNames)f.has(g)&&y.push(g);y.length>0&&i.push((0,Fe.invalidInterfaceObjectImplementationDefinitionsError)(a,l,y))}}return r.size>0&&i.push((0,Fe.undefinedEntityInterfaceImplementationsError)(r,n)),i.length>0?{errors:i,success:!1,warnings:t.warnings}:{federationFactory:new FE({authorizationDataByParentTypeName:t.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:t.concreteTypeNamesByAbstractTypeName,entityDataByTypeName:t.entityDataByTypeName,entityInterfaceFederationDataByTypeName:n,fieldCoordsByNamedTypeName:t.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:t.internalSubgraphBySubgraphName,internalGraph:t.internalGraph,warnings:t.warnings}),success:!0,warnings:t.warnings}}function Nle(e){let t=eD(e);return t.success?t.federationFactory.federateSubgraphsInternal():{errors:t.errors,success:!1,warnings:t.warnings}}function Tle(e,t){let n=eD(e);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};n.federationFactory.federateSubgraphData();let r=[(0,Zq.cloneDeep)(n.federationFactory)],i=n.federationFactory.buildFederationResult();if(!i.success)return{errors:i.errors,success:!1,warnings:i.warnings};let a=t.size-1,o=new Map,c=0;for(let[l,p]of t){c!==a&&r.push((0,Zq.cloneDeep)(r[c]));let f=r[c].buildFederationContractResult(p);o.set(l,f),c++}return Y(x({},i),{federationResultByContractName:o})}function Ele(e,t){let n=eD(e);return n.success?(n.federationFactory.federateSubgraphData(),n.federationFactory.buildFederationContractResult(t)):{errors:n.errors,success:!1,warnings:n.warnings}}});var wE=w(Ss=>{"use strict";m();T();N();Object.defineProperty(Ss,"__esModule",{value:!0});Ss.LATEST_ROUTER_COMPATIBILITY_VERSION=Ss.ROUTER_COMPATIBILITY_VERSIONS=Ss.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Ss.ROUTER_COMPATIBILITY_VERSION_ONE="1";Ss.ROUTER_COMPATIBILITY_VERSIONS=new Set([Ss.ROUTER_COMPATIBILITY_VERSION_ONE]);Ss.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var tV=w(Jp=>{"use strict";m();T();N();Object.defineProperty(Jp,"__esModule",{value:!0});Jp.federateSubgraphs=hle;Jp.federateSubgraphsWithContracts=yle;Jp.federateSubgraphsContract=Ile;var tD=eV(),nD=wE();function hle(e,t=nD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,tD.federateSubgraphs)(e)}}function yle(e,t,n=nD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,tD.federateSubgraphsWithContracts)(e,t)}}function Ile(e,t,n=nD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,tD.federateSubgraphsContract)(e,t)}}});var rV=w(nV=>{"use strict";m();T();N();Object.defineProperty(nV,"__esModule",{value:!0})});var iV=w(Hp=>{"use strict";m();T();N();Object.defineProperty(Hp,"__esModule",{value:!0});Hp.normalizeSubgraphFromString=gle;Hp.normalizeSubgraph=_le;Hp.batchNormalize=vle;var rD=zO(),iD=wE();function gle(e,t=!0,n=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,rD.normalizeSubgraphFromString)(e,t)}}function _le(e,t,n,r=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,rD.normalizeSubgraph)(e,t,n)}}function vle(e,t=iD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,rD.batchNormalize)(e)}}});var sV=w(aV=>{"use strict";m();T();N();Object.defineProperty(aV,"__esModule",{value:!0})});var uV=w(oV=>{"use strict";m();T();N();Object.defineProperty(oV,"__esModule",{value:!0})});var lV=w(cV=>{"use strict";m();T();N();Object.defineProperty(cV,"__esModule",{value:!0})});var dV=w(LE=>{"use strict";m();T();N();Object.defineProperty(LE,"__esModule",{value:!0});LE.COMPOSITION_VERSION=void 0;LE.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var fV=w(pV=>{"use strict";m();T();N();Object.defineProperty(pV,"__esModule",{value:!0})});var NV=w(mV=>{"use strict";m();T();N();Object.defineProperty(mV,"__esModule",{value:!0})});var CE=w(Tt=>{"use strict";m();T();N();var Sle=Tt&&Tt.__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]}),wt=Tt&&Tt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Sle(t,e,n)};Object.defineProperty(Tt,"__esModule",{value:!0});wt(Yr(),Tt);wt(lv(),Tt);wt(ia(),Tt);wt(Ak(),Tt);wt(tV(),Tt);wt(rV(),Tt);wt(iV(),Tt);wt(sV(),Tt);wt(YO(),Tt);wt(jO(),Tt);wt(GO(),Tt);wt(wE(),Tt);wt(uV(),Tt);wt(JO(),Tt);wt(su(),Tt);wt(Ep(),Tt);wt(El(),Tt);wt(lV(),Tt);wt(dV(),Tt);wt(ur(),Tt);wt(fV(),Tt);wt(Jr(),Tt);wt(CO(),Tt);wt(CN(),Tt);wt(ZO(),Tt);wt(RO(),Tt);wt(Kp(),Tt);wt(NV(),Tt);wt(kO(),Tt);wt(AE(),Tt);wt(wO(),Tt);wt(Es(),Tt);wt(jp(),Tt);wt(Up(),Tt);wt(IE(),Tt)});var Ede={};am(Ede,{buildRouterConfiguration:()=>Tde,federateSubgraphs:()=>Nde});m();T();N();var Pc=ss(CE());m();T();N();m();T();N();function aD(e){if(!e)return e;if(!URL.canParse(e))throw new Error("Invalid URL");let t=e.indexOf("?"),n=e.indexOf("#"),r=e;return t>0?r=r.slice(0,n>0?Math.min(t,n):t):n>0&&(r=r.slice(0,n)),r}m();T();N();m();T();N();var TV={};m();T();N();function EV(e){return e!=null}m();T();N();m();T();N();var _V=ss(Ae(),1);m();T();N();var hV;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}hV=function(t,n){return new e(t,n)}}else hV=AggregateError;function yV(e){return"errors"in e&&Array.isArray(e.errors)}var vV=3;function SV(e){return BE(e,[])}function BE(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Ole(e,t);default:return String(e)}}function IV(e){return e instanceof _V.GraphQLError?e.toString():`${e.name}: ${e.message}; ${e.stack}`}function Ole(e,t){if(e===null)return"null";if(e instanceof Error)return yV(e)?IV(e)+` `+gV(e.errors,t):IV(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Dle(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:BE(r,n)}else if(Array.isArray(e))return gV(e,n);return ble(e,n)}function Dle(e){return typeof e.toJSON=="function"}function ble(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>vV?"["+Ale(e)+"]":"{ "+n.map(([i,a])=>i+": "+BE(a,t)).join(", ")+" }"}function gV(e,t){if(e.length===0)return"[]";if(t.length>vV)return"[Array]";let n=e.length,r=[];for(let i=0;in==null?n:n[r],e==null?void 0:e.extensions)}m();T();N();var Pe=ss(Ae(),1);m();T();N();var $a=ss(Ae(),1);function Qa(e){if((0,$a.isNonNullType)(e)){let t=Qa(e.ofType);if(t.kind===$a.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${SV(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:$a.Kind.NON_NULL_TYPE,type:t}}else if((0,$a.isListType)(e))return{kind:$a.Kind.LIST_TYPE,type:Qa(e.ofType)};return{kind:$a.Kind.NAMED_TYPE,name:{kind:$a.Kind.NAME,value:e.name}}}m();T();N();var Ya=ss(Ae(),1);function kE(e){if(e===null)return{kind:Ya.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=kE(n);r!=null&&t.push(r)}return{kind:Ya.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=kE(r);i&&t.push({kind:Ya.Kind.OBJECT_FIELD,name:{kind:Ya.Kind.NAME,value:n},value:i})}return{kind:Ya.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ya.Kind.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Rle.test(t)?{kind:Ya.Kind.INT,value:t}:{kind:Ya.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ya.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Rle=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();m();T();N();function ME(e){let t=new WeakMap;return function(r){let i=t.get(r);if(i===void 0){let a=e(r);return t.set(r,a),a}return i}}var VUe=ME(function(t){let n=Ple(t);return new Set([...n].map(r=>r.name))}),Ple=ME(function(t){let n=sD(t);return new Set(n.values())}),sD=ME(function(t){let n=new Map,r=t.getQueryType();r&&n.set("query",r);let i=t.getMutationType();i&&n.set("mutation",i);let a=t.getSubscriptionType();return a&&n.set("subscription",a),n});function Fle(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=wle(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,Pe.isSpecifiedDirective)(c)||a.push(Lle(c,e,n));for(let c in r){let l=r[c],p=(0,Pe.isSpecifiedScalarType)(l),f=(0,Pe.isIntrospectionType)(l);if(!(p||f))if((0,Pe.isObjectType)(l))a.push(Cle(l,e,n));else if((0,Pe.isInterfaceType)(l))a.push(Ble(l,e,n));else if((0,Pe.isUnionType)(l))a.push(Ule(l,e,n));else if((0,Pe.isInputObjectType)(l))a.push(kle(l,e,n));else if((0,Pe.isEnumType)(l))a.push(Mle(l,e,n));else if((0,Pe.isScalarType)(l))a.push(xle(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:Pe.Kind.DOCUMENT,definitions:a}}function OV(e,t={}){let n=Fle(e,t);return(0,Pe.print)(n)}function wle(e,t){var n,r;let i=new Map([["query",void 0],["mutation",void 0],["subscription",void 0]]),a=[];if(e.astNode!=null&&a.push(e.astNode),e.extensionASTNodes!=null)for(let f of e.extensionASTNodes)a.push(f);for(let f of a)if(f.operationTypes)for(let y of f.operationTypes)i.set(y.operation,y);let o=sD(e);for(let[f,y]of i){let g=o.get(f);if(g!=null){let v=Qa(g);y!=null?y.type=v:i.set(f,{kind:Pe.Kind.OPERATION_TYPE_DEFINITION,operation:f,type:v})}}let c=[...i.values()].filter(EV),l=Jl(e,e,t);if(!c.length&&!l.length)return null;let p={kind:c!=null?Pe.Kind.SCHEMA_DEFINITION:Pe.Kind.SCHEMA_EXTENSION,operationTypes:c,directives:l};return p.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,p}function Lle(e,t,n){var r,i,a,o;return{kind:Pe.Kind.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},arguments:(a=e.args)===null||a===void 0?void 0:a.map(c=>DV(c,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(c=>({kind:Pe.Kind.NAME,value:c})))||[]}}function Jl(e,t,n){let r=UE(e,n),i=[];e.astNode!=null&&i.push(e.astNode),"extensionASTNodes"in e&&e.extensionASTNodes!=null&&(i=i.concat(e.extensionASTNodes));let a;if(r!=null)a=oD(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}function qE(e,t,n){var r,i;let a=[],o=null,c=UE(e,n),l;return c!=null?l=oD(t,c):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(a=l.filter(p=>p.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(p=>p.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=jle(e.deprecationReason)),o==null?a:[o].concat(a)}function DV(e,t,n){var r,i,a;return{kind:Pe.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:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},type:Qa(e.type),defaultValue:e.defaultValue!==void 0&&(a=(0,Pe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0,directives:qE(e,t,n)}}function Cle(e,t,n){var r,i;return{kind:Pe.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:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>bV(a,t,n)),interfaces:Object.values(e.getInterfaces()).map(a=>Qa(a)),directives:Jl(e,t,n)}}function Ble(e,t,n){var r,i;let a={kind:Pe.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:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>bV(o,t,n)),directives:Jl(e,t,n)};return"getInterfaces"in e&&(a.interfaces=Object.values(e.getInterfaces()).map(o=>Qa(o))),a}function Ule(e,t,n){var r,i;return{kind:Pe.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:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},directives:Jl(e,t,n),types:e.getTypes().map(a=>Qa(a))}}function kle(e,t,n){var r,i;return{kind:Pe.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:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>qle(a,t,n)),directives:Jl(e,t,n)}}function Mle(e,t,n){var r,i;return{kind:Pe.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:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(a=>Vle(a,t,n)),directives:Jl(e,t,n)}}function xle(e,t,n){var r,i,a;let o=UE(e,n),c=o?oD(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!c.some(p=>p.name.value==="specifiedBy")){let p={url:l};c.push(xE("specifiedBy",p))}return{kind:Pe.Kind.SCALAR_TYPE_DEFINITION,description:(a=(i=e.astNode)===null||i===void 0?void 0:i.description)!==null&&a!==void 0?a:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},directives:c}}function bV(e,t,n){var r,i;return{kind:Pe.Kind.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},arguments:e.args.map(a=>DV(a,t,n)),type:Qa(e.type),directives:qE(e,t,n)}}function qle(e,t,n){var r,i,a;return{kind:Pe.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:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},type:Qa(e.type),directives:qE(e,t,n),defaultValue:(a=(0,Pe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0}}function Vle(e,t,n){var r,i;return{kind:Pe.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:Pe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Pe.Kind.NAME,value:e.name},directives:qE(e,t,n)}}function jle(e){return xE("deprecated",{reason:e},Pe.GraphQLDeprecatedDirective)}function xE(e,t,n){let r=[];if(n!=null)for(let i of n.args){let a=i.name,o=t[a];if(o!==void 0){let c=(0,Pe.astFromValue)(o,i.type);c&&r.push({kind:Pe.Kind.ARGUMENT,name:{kind:Pe.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=kE(a);o&&r.push({kind:Pe.Kind.ARGUMENT,name:{kind:Pe.Kind.NAME,value:i},value:o})}return{kind:Pe.Kind.DIRECTIVE,name:{kind:Pe.Kind.NAME,value:e},arguments:r}}function oD(e,t){let n=[];for(let r in t){let i=t[r],a=e==null?void 0:e.getDirective(r);if(Array.isArray(i))for(let o of i)n.push(xE(r,o,a));else n.push(xE(r,i,a))}return n}var rd=ss(CE(),1),E1=ss(Ae(),1);m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();function sn(e,t){if(!e)throw new Error(t)}var Kle=34028234663852886e22,Gle=-34028234663852886e22,$le=4294967295,Qle=2147483647,Yle=-2147483648;function Hl(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Qle||e$le||e<0)throw new Error("invalid uint 32: "+e)}function VE(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Kle||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function cD(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let c=FV(o);a.push(c),r[o.name]=c,i[o.no]=c}return{typeName:e,values:a,findName(o){return r[o]},findNumber(o){return i[o]}}}function PV(e,t,n){let r={};for(let i of t){let a=FV(i);r[a.localName]=a.no,r[a.no]=a.localName}return uD(r,e,t,n),r}function FV(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var Ce=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,a=i.makeReadOptions(n);return i.readMessage(this,a.readerFactory(t),t.byteLength,a),this}fromJson(t,n){let r=this.getType(),i=r.runtime.json,a=i.makeReadOptions(n);return i.readMessage(r,t,a,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),a=i.writerFactory();return r.writeMessage(this,a,i),a.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 wV(e,t,n,r){var i;let a=(i=r==null?void 0:r.localName)!==null&&i!==void 0?i:t.substring(t.lastIndexOf(".")+1),o={[a]:function(c){e.util.initFields(this),e.util.initPartial(c,this)}}[a];return Object.setPrototypeOf(o.prototype,new Ce),Object.assign(o,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(c,l){return new o().fromBinary(c,l)},fromJson(c,l){return new o().fromJson(c,l)},fromJsonString(c,l){return new o().fromJsonString(c,l)},equals(c,l){return e.util.equals(o,c,l)}}),o}m();T();N();m();T();N();m();T();N();m();T();N();function CV(){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)<>>a,c=!(!(o>>>7)&&t==0),l=(c?o|128:o)&255;if(n.push(l),!c)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),!!i){for(let a=3;a<31;a=a+7){let o=t>>>a,c=!!(o>>>7),l=(c?o|128:o)&255;if(n.push(l),!c)return}n.push(t>>>31&1)}}var jE=4294967296;function lD(e){let t=e[0]==="-";t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(o,c){let l=Number(e.slice(o,c));i*=n,r=r*n+l,r>=jE&&(i=i+(r/jE|0),r=r%jE)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?UV(r,i):pD(r,i)}function BV(e,t){let n=pD(e,t),r=n.hi&2147483648;r&&(n=UV(n.lo,n.hi));let i=dD(n.lo,n.hi);return r?"-"+i:i}function dD(e,t){if({lo:e,hi:t}=Jle(e,t),t<=2097151)return String(jE*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,c=i*2,l=1e7;return a>=l&&(o+=Math.floor(a/l),a%=l),o>=l&&(c+=Math.floor(o/l),o%=l),c.toString()+LV(o)+LV(a)}function Jle(e,t){return{lo:e>>>0,hi:t>>>0}}function pD(e,t){return{lo:e|0,hi:t|0}}function UV(e,t){return t=~t,e?e=~e+1:t+=1,pD(e,t)}var LV=e=>{let t=String(e);return"0000000".slice(t.length)+t};function fD(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 kV(){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}function Hle(){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 O!="object"||typeof O.env!="object"||O.env.BUF_BIGINT_DISABLE!=="1")){let i=BigInt("-9223372036854775808"),a=BigInt("9223372036854775807"),o=BigInt("0"),c=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(l){let p=typeof l=="bigint"?l:BigInt(l);if(p>a||pc||psn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>sn(/^[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),lD(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),lD(i)},dec(i,a){return BV(i,a)},uDec(i,a){return dD(i,a)}}}var Kn=Hle();m();T();N();var Ne;(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"})(Ne||(Ne={}));var Na;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(Na||(Na={}));function Os(e,t,n){if(t===n)return!0;if(e==Ne.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(zp(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Hl(t),fD(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){VE(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){zp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Hl(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Hl(t),t=(t<<1^t>>31)>>>0,fD(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Kn.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=Kn.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Kn.enc(t);return KE(n.lo,n.hi,this.buf),this}sint64(t){let n=Kn.enc(t),r=n.hi>>31,i=n.lo<<1^r,a=(n.hi<<1|n.lo>>>31)^r;return KE(i,a,this.buf),this}uint64(t){let n=Kn.uEnc(t);return KE(n.lo,n.hi,this.buf),this}},QE=class{constructor(t,n){this.varint64=CV,this.uint32=kV,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 Bn.Varint:for(;this.buf[this.pos++]&128;);break;case Bn.Bit64:this.pos+=4;case Bn.Bit32:this.pos+=4;break;case Bn.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Bn.StartGroup:let i;for(;(i=this.tag()[1])!==Bn.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 Kn.dec(...this.varint64())}uint64(){return Kn.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Kn.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 Kn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Kn.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())}};function MV(e,t,n,r){let i;return{typeName:t,extendee:n,get field(){if(!i){let a=typeof r=="function"?r():r;a.name=t.split(".").pop(),a.jsonName=`[${t}]`,i=e.util.newFieldList([a]).list()[0]}return i},runtime:e}}function YE(e){let t=e.field.localName,n=Object.create(null);return n[t]=zle(e),[n,()=>n[t]]}function zle(e){let t=e.field;if(t.repeated)return[];if(t.default!==void 0)return t.default;switch(t.kind){case"enum":return t.T.values[0].no;case"scalar":return Ta(t.T,t.L);case"message":let n=t.T,r=new n;return n.fieldWrapper?n.fieldWrapper.unwrapField(r):r;case"map":throw"map fields are not allowed to be extensions"}}function xV(e,t){if(!t.repeated&&(t.kind=="enum"||t.kind=="scalar")){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.no)return[e[n]];return[]}return e.filter(n=>n.no===t.no)}m();T();N();m();T();N();var Ds="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),JE=[];for(let e=0;e>4,o=a,i=2;break;case 2:n[r++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:n[r++]=(o&3)<<6|a,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 a=0;a>2],i=(r&3)<<4,n=1;break;case 1:t+=Ds[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Ds[i|r>>6],t+=Ds[r&63],n=0;break}return n&&(t+=Ds[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function qV(e,t,n){jV(t,e);let r=t.runtime.bin.makeReadOptions(n),i=xV(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=YE(t);for(let c of i)t.runtime.bin.readField(a,r.readerFactory(c.data),t.field,c.wireType,r);return o()}function VV(e,t,n,r){jV(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(ND(e,t)){let p=e.getType().runtime.bin.listUnknownFields(e).filter(f=>f.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let f of p)e.getType().runtime.bin.onUnknownField(e,f.no,f.wireType,f.data)}let o=a.writerFactory(),c=t.field;!c.opt&&!c.repeated&&(c.kind=="enum"||c.kind=="scalar")&&(c=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(c,n,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function jV(e,t){sn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function HE(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!GE(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function TD(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?Ta(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ea(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Ce.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function zE(e,t){return Ea(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var IMe={"google.protobuf.DoubleValue":Ne.DOUBLE,"google.protobuf.FloatValue":Ne.FLOAT,"google.protobuf.Int64Value":Ne.INT64,"google.protobuf.UInt64Value":Ne.UINT64,"google.protobuf.Int32Value":Ne.INT32,"google.protobuf.UInt32Value":Ne.UINT32,"google.protobuf.BoolValue":Ne.BOOL,"google.protobuf.StringValue":Ne.STRING,"google.protobuf.BytesValue":Ne.BYTES};var KV={ignoreUnknownFields:!1},GV={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Wle(e){return e?Object.assign(Object.assign({},KV),e):KV}function Xle(e){return e?Object.assign(Object.assign({},GV),e):GV}var ZE=Symbol(),WE=Symbol();function YV(){return{makeReadOptions:Wle,makeWriteOptions:Xle,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${Ja(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,c]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(c===null&&l.kind=="scalar")continue;let p=i.get(l.oneof);if(p!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${p}", "${o}"`);i.set(l.oneof,o)}$V(r,c,l,n,e)}else{let p=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let f=a.findExtension(o.substring(1,o.length-1));if(f&&f.extendee.typeName==e.typeName){p=!0;let[y,g]=YE(f);$V(y,c,f.field,n,f),VV(r,f,g(),n)}}if(!p&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!HE(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!ede(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],c=QV(i,o,t);c!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=c)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let c=a.findExtensionFor(n.typeName,o.no);if(c&&ND(e,c)){let l=qV(e,c,t),p=QV(c.field,l,t);p!==void 0&&(r[c.field.jsonName]=p)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,c=a instanceof Error?a.message:String(a);throw new Error(o+(c.length>0?`: ${c}`:""))}return r},readScalar(e,t,n){return Wp(e,t,n!=null?n:Na.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||GE(e,t)))return XE(e,t)},debug:Ja}}function Ja(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 $V(e,t,n,r,i){let a=n.localName;if(n.repeated){if(sn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`);let o=e[a];for(let c of t){if(c===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(c)}`);switch(n.kind){case"message":o.push(n.T.fromJson(c,r));break;case"enum":let l=ED(n.T,c,r.ignoreUnknownFields,!0);l!==WE&&o.push(l);break;case"scalar":try{o.push(Wp(n.T,c,n.L,!0))}catch(p){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(c)}`;throw p instanceof Error&&p.message.length>0&&(f+=`: ${p.message}`),new Error(f)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`);let o=e[a];for(let[c,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let p;try{p=Zle(n.K,c)}catch(f){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw f instanceof Error&&f.message.length>0&&(y+=`: ${f.message}`),new Error(y)}switch(n.V.kind){case"message":o[p]=n.V.T.fromJson(l,r);break;case"enum":let f=ED(n.V.T,l,r.ignoreUnknownFields,!0);f!==WE&&(o[p]=f);break;case"scalar":try{o[p]=Wp(n.V.T,l,Na.BIGINT,!0)}catch(y){let g=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw y instanceof Error&&y.message.length>0&&(g+=`: ${y.message}`),new Error(g)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let c=e[a];Ea(c)?c.fromJson(t,r):(e[a]=c=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(c)));break;case"enum":let l=ED(n.T,t,r.ignoreUnknownFields,!1);switch(l){case ZE:TD(n,e);break;case WE:break;default:e[a]=l;break}break;case"scalar":try{let p=Wp(n.T,t,n.L,!1);switch(p){case ZE:TD(n,e);break;default:e[a]=p;break}}catch(p){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw p instanceof Error&&p.message.length>0&&(f+=`: ${p.message}`),new Error(f)}break}}function Zle(e,t){if(e===Ne.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return Wp(e,t,Na.BIGINT,!0).toString()}function Wp(e,t,n,r){if(t===null)return r?Ta(e,n):ZE;switch(e){case Ne.DOUBLE:case Ne.FLOAT: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 i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==Ne.FLOAT&&VE(i),i;case Ne.INT32:case Ne.FIXED32:case Ne.SFIXED32:case Ne.SINT32:case Ne.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==Ne.UINT32||e==Ne.FIXED32?zp(a):Hl(a),a;case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Kn.parse(t);return n?o.toString():o;case Ne.FIXED64:case Ne.UINT64:if(typeof t!="number"&&typeof t!="string")break;let c=Kn.uParse(t);return n?c.toString():c;case Ne.BOOL:if(typeof t!="boolean")break;return t;case Ne.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ne.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return mD.dec(t)}throw new Error}function ED(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:ZE;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return WE;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${Ja(t)}`)}function ede(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function QV(e,t,n){if(e.kind=="map"){sn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,c]of i)r[o.toString()]=XE(e.V.T,c);break;case"message":for(let[o,c]of i)r[o.toString()]=c.toJson(n);break;case"enum":let a=e.V.T;for(let[o,c]of i)r[o.toString()]=hD(a,c,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){sn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return XE(e.T,t);case"enum":return hD(e.T,t,n.enumAsInteger);case"message":return zE(e.T,t).toJson(n)}}function hD(e,t,n){var r;if(sn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function XE(e,t){switch(e){case Ne.INT32:case Ne.SFIXED32:case Ne.SINT32:case Ne.FIXED32:case Ne.UINT32:return sn(typeof t=="number"),t;case Ne.FLOAT:case Ne.DOUBLE:return sn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ne.STRING:return sn(typeof t=="string"),t;case Ne.BOOL:return sn(typeof t=="boolean"),t;case Ne.UINT64:case Ne.FIXED64:case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:return sn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ne.BYTES:return sn(t instanceof Uint8Array),mD.enc(t)}}m();T();N();var zl=Symbol("@bufbuild/protobuf/unknown-fields"),JV={readUnknownFields:!0,readerFactory:e=>new QE(e)},HV={writeUnknownFields:!0,writerFactory:()=>new $E};function tde(e){return e?Object.assign(Object.assign({},JV),e):JV}function nde(e){return e?Object.assign(Object.assign({},HV),e):HV}function ZV(){return{makeReadOptions:tde,makeWriteOptions:nde,listUnknownFields(e){var t;return(t=e[zl])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[zl]},writeUnknownFields(e,t){let r=e[zl];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[zl])||(i[zl]=[]),i[zl].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,c,l;for(;t.pos0&&(l=ide),a){let g=e[o];if(r==Bn.LengthDelimited&&c!=Ne.STRING&&c!=Ne.BYTES){let P=t.uint32()+t.pos;for(;t.posEa(g,y)?g:new y(g));else{let g=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?a[i]=Zp(g):a[i]=g:a[i]=Ea(g,y)?g:new y(g)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,c)=>r.T.equals(o,a[c]));case"scalar":return i.every((o,c)=>Os(r.T,o,a[c]));case"enum":return i.every((o,c)=>Os(Ne.INT32,o,a[c]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return Os(Ne.INT32,i,a);case"scalar":return Os(r.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return Os(Ne.INT32,i.value,a.value);case"scalar":return Os(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let c=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return c.every(f=>l.equals(i[f],a[f]));case"enum":return c.every(f=>Os(Ne.INT32,i[f],a[f]));case"scalar":let p=r.V.T;return c.every(f=>Os(p,i[f],a[f]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(nh);else if(i.kind=="map"){o=r[i.localName];for(let[c,l]of Object.entries(a))o[c]=nh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:nh(a.value)}:{case:void 0}:o=nh(a);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function nh(e){if(e===void 0)return e;if(Ea(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Zp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function n1(e,t,n){return{syntax:e,json:YV(),bin:ZV(),util:Object.assign(Object.assign({},t1()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return wV(this,r,i,a)},makeEnum:PV,makeEnumType:cD,getEnumType:RV,makeExtension(r,i,a){return MV(this,r,i,a)}}}m();T();N();var rh=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}};m();T();N();m();T();N();m();T();N();function yD(e,t){let n=a1(e);return t?n:lde(cde(n))}function r1(e){return yD(e,!1)}var i1=a1;function a1(e){let t=!1,n=[];for(let r=0;r`${e}$`,cde=e=>ude.has(e)?s1(e):e,lde=e=>ode.has(e)?s1(e):e;var ih=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=r1(t)}addField(t){sn(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;nnew rh(e,t=>o1(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=Ta(t.T,t.L);break;case"message":break}}});var Wl;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(Wl||(Wl={}));B.util.setEnumType(Wl,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var bs;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(bs||(bs={}));B.util.setEnumType(bs,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var As;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(As||(As={}));B.util.setEnumType(As,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);m();T();N();var ID;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(ID||(ID={}));B.util.setEnumType(ID,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var Oc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(Oc||(Oc={}));B.util.setEnumType(Oc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var hu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(hu||(hu={}));B.util.setEnumType(hu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var ef;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(ef||(ef={}));B.util.setEnumType(ef,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var Bo;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(Bo||(Bo={}));B.util.setEnumType(Bo,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var yu;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(yu||(yu={}));B.util.setEnumType(yu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Dc;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(Dc||(Dc={}));B.util.setEnumType(Dc,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var Rs=class Rs extends Ce{constructor(n){super();_(this,"id","");_(this,"name","");_(this,"routingUrl","");B.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 B.util.equals(Rs,n,r)}};_(Rs,"runtime",B),_(Rs,"typeName","wg.cosmo.node.v1.Subgraph"),_(Rs,"fields",B.util.newFieldList(()=>[{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 ah=Rs,Ps=class Ps extends Ce{constructor(n){super();_(this,"configByFeatureFlagName",{});B.util.initPartial(n,this)}static fromBinary(n,r){return new Ps().fromBinary(n,r)}static fromJson(n,r){return new Ps().fromJson(n,r)}static fromJsonString(n,r){return new Ps().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ps,n,r)}};_(Ps,"runtime",B),_(Ps,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),_(Ps,"fields",B.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:_D}}]));var gD=Ps,Fs=class Fs extends Ce{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Fs().fromBinary(n,r)}static fromJson(n,r){return new Fs().fromJson(n,r)}static fromJsonString(n,r){return new Fs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Fs,n,r)}};_(Fs,"runtime",B),_(Fs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),_(Fs,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Xl},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:ah,repeated:!0}]));var _D=Fs,ws=class ws extends Ce{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);_(this,"featureFlagConfigs");_(this,"compatibilityVersion","");B.util.initPartial(n,this)}static fromBinary(n,r){return new ws().fromBinary(n,r)}static fromJson(n,r){return new ws().fromJson(n,r)}static fromJsonString(n,r){return new ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ws,n,r)}};_(ws,"runtime",B),_(ws,"typeName","wg.cosmo.node.v1.RouterConfig"),_(ws,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Xl},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:ah,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:gD,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var tf=ws,Ls=class Ls extends Ce{constructor(n){super();_(this,"code",Wl.OK);_(this,"details");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ls().fromBinary(n,r)}static fromJson(n,r){return new Ls().fromJson(n,r)}static fromJsonString(n,r){return new Ls().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ls,n,r)}};_(Ls,"runtime",B),_(Ls,"typeName","wg.cosmo.node.v1.Response"),_(Ls,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:B.getEnumType(Wl)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var vD=Ls,Cs=class Cs extends Ce{constructor(n){super();_(this,"code",0);_(this,"message","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Cs().fromBinary(n,r)}static fromJson(n,r){return new Cs().fromJson(n,r)}static fromJsonString(n,r){return new Cs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Cs,n,r)}};_(Cs,"runtime",B),_(Cs,"typeName","wg.cosmo.node.v1.ResponseStatus"),_(Cs,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var u1=Cs,Bs=class Bs extends Ce{constructor(n){super();_(this,"accountLimits");_(this,"graphPublicKey","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Bs().fromBinary(n,r)}static fromJson(n,r){return new Bs().fromJson(n,r)}static fromJsonString(n,r){return new Bs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Bs,n,r)}};_(Bs,"runtime",B),_(Bs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),_(Bs,"fields",B.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:OD},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var SD=Bs,Us=class Us extends Ce{constructor(n){super();_(this,"traceSamplingRate",0);B.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 B.util.equals(Us,n,r)}};_(Us,"runtime",B),_(Us,"typeName","wg.cosmo.node.v1.AccountLimits"),_(Us,"fields",B.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var OD=Us,ks=class ks extends Ce{constructor(t){super(),B.util.initPartial(t,this)}static fromBinary(t,n){return new ks().fromBinary(t,n)}static fromJson(t,n){return new ks().fromJson(t,n)}static fromJsonString(t,n){return new ks().fromJsonString(t,n)}static equals(t,n){return B.util.equals(ks,t,n)}};_(ks,"runtime",B),_(ks,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),_(ks,"fields",B.util.newFieldList(()=>[]));var c1=ks,Ms=class Ms extends Ce{constructor(n){super();_(this,"response");_(this,"registrationInfo");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ms().fromBinary(n,r)}static fromJson(n,r){return new Ms().fromJson(n,r)}static fromJsonString(n,r){return new Ms().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ms,n,r)}};_(Ms,"runtime",B),_(Ms,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),_(Ms,"fields",B.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:vD},{no:2,name:"registrationInfo",kind:"message",T:SD,opt:!0}]));var l1=Ms,xs=class xs extends Ce{constructor(n){super();_(this,"defaultFlushInterval",Kn.zero);_(this,"datasourceConfigurations",[]);_(this,"fieldConfigurations",[]);_(this,"graphqlSchema","");_(this,"typeConfigurations",[]);_(this,"stringStorage",{});_(this,"graphqlClientSchema");B.util.initPartial(n,this)}static fromBinary(n,r){return new xs().fromBinary(n,r)}static fromJson(n,r){return new xs().fromJson(n,r)}static fromJsonString(n,r){return new xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(xs,n,r)}};_(xs,"runtime",B),_(xs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),_(xs,"fields",B.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:nf,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:sf,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:DD,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var Xl=xs,qs=class qs extends Ce{constructor(n){super();_(this,"kind",hu.STATIC);_(this,"rootNodes",[]);_(this,"childNodes",[]);_(this,"overrideFieldPathFromAlias",!1);_(this,"customGraphql");_(this,"customStatic");_(this,"directives",[]);_(this,"requestTimeoutSeconds",Kn.zero);_(this,"id","");_(this,"keys",[]);_(this,"provides",[]);_(this,"requires",[]);_(this,"customEvents");_(this,"entityInterfaces",[]);_(this,"interfaceObjects",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new qs().fromBinary(n,r)}static fromJson(n,r){return new qs().fromJson(n,r)}static fromJsonString(n,r){return new qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(qs,n,r)}};_(qs,"runtime",B),_(qs,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),_(qs,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(hu)},{no:2,name:"root_nodes",kind:"message",T:Zl,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Zl,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:cf},{no:6,name:"custom_static",kind:"message",T:UD},{no:7,name:"directives",kind:"message",T:kD,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:Sc,repeated:!0},{no:11,name:"provides",kind:"message",T:Sc,repeated:!0},{no:12,name:"requires",kind:"message",T:Sc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Ac},{no:14,name:"entity_interfaces",kind:"message",T:ed,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:ed,repeated:!0}]));var nf=qs,Vs=class Vs extends Ce{constructor(n){super();_(this,"name","");_(this,"sourceType",Oc.OBJECT_FIELD);B.util.initPartial(n,this)}static fromBinary(n,r){return new Vs().fromBinary(n,r)}static fromJson(n,r){return new Vs().fromJson(n,r)}static fromJsonString(n,r){return new Vs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Vs,n,r)}};_(Vs,"runtime",B),_(Vs,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),_(Vs,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:B.getEnumType(Oc)}]));var rf=Vs,js=class js extends Ce{constructor(n){super();_(this,"requiredAndScopes",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new js().fromBinary(n,r)}static fromJson(n,r){return new js().fromJson(n,r)}static fromJsonString(n,r){return new js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(js,n,r)}};_(js,"runtime",B),_(js,"typeName","wg.cosmo.node.v1.Scopes"),_(js,"fields",B.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var bc=js,Ks=class Ks extends Ce{constructor(n){super();_(this,"requiresAuthentication",!1);_(this,"requiredOrScopes",[]);_(this,"requiredOrScopesByOr",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ks().fromBinary(n,r)}static fromJson(n,r){return new Ks().fromJson(n,r)}static fromJsonString(n,r){return new Ks().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ks,n,r)}};_(Ks,"runtime",B),_(Ks,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),_(Ks,"fields",B.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:bc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:bc,repeated:!0}]));var af=Ks,Gs=class Gs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"argumentsConfiguration",[]);_(this,"authorizationConfiguration");_(this,"subscriptionFilterCondition");B.util.initPartial(n,this)}static fromBinary(n,r){return new Gs().fromBinary(n,r)}static fromJson(n,r){return new Gs().fromJson(n,r)}static fromJsonString(n,r){return new Gs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gs,n,r)}};_(Gs,"runtime",B),_(Gs,"typeName","wg.cosmo.node.v1.FieldConfiguration"),_(Gs,"fields",B.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:rf,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:af},{no:5,name:"subscription_filter_condition",kind:"message",T:Iu,opt:!0}]));var sf=Gs,$s=class $s extends Ce{constructor(n){super();_(this,"typeName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new $s().fromBinary(n,r)}static fromJson(n,r){return new $s().fromJson(n,r)}static fromJsonString(n,r){return new $s().fromJsonString(n,r)}static equals(n,r){return B.util.equals($s,n,r)}};_($s,"runtime",B),_($s,"typeName","wg.cosmo.node.v1.TypeConfiguration"),_($s,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var DD=$s,Qs=class Qs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldNames",[]);_(this,"externalFieldNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Qs().fromBinary(n,r)}static fromJson(n,r){return new Qs().fromJson(n,r)}static fromJsonString(n,r){return new Qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Qs,n,r)}};_(Qs,"runtime",B),_(Qs,"typeName","wg.cosmo.node.v1.TypeField"),_(Qs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0}]));var Zl=Qs,Ys=class Ys extends Ce{constructor(n){super();_(this,"fieldName","");_(this,"typeName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ys().fromBinary(n,r)}static fromJson(n,r){return new Ys().fromJson(n,r)}static fromJsonString(n,r){return new Ys().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ys,n,r)}};_(Ys,"runtime",B),_(Ys,"typeName","wg.cosmo.node.v1.FieldCoordinates"),_(Ys,"fields",B.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var of=Ys,Js=class Js extends Ce{constructor(n){super();_(this,"fieldCoordinatesPath",[]);_(this,"fieldPath",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Js().fromBinary(n,r)}static fromJson(n,r){return new Js().fromJson(n,r)}static fromJsonString(n,r){return new Js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Js,n,r)}};_(Js,"runtime",B),_(Js,"typeName","wg.cosmo.node.v1.FieldSetCondition"),_(Js,"fields",B.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:of,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var uf=Js,Hs=class Hs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"selectionSet","");_(this,"disableEntityResolver",!1);_(this,"conditions",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Hs().fromBinary(n,r)}static fromJson(n,r){return new Hs().fromJson(n,r)}static fromJsonString(n,r){return new Hs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Hs,n,r)}};_(Hs,"runtime",B),_(Hs,"typeName","wg.cosmo.node.v1.RequiredField"),_(Hs,"fields",B.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},{no:5,name:"conditions",kind:"message",T:uf,repeated:!0}]));var Sc=Hs,zs=class zs extends Ce{constructor(n){super();_(this,"interfaceTypeName","");_(this,"concreteTypeNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new zs().fromBinary(n,r)}static fromJson(n,r){return new zs().fromJson(n,r)}static fromJsonString(n,r){return new zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(zs,n,r)}};_(zs,"runtime",B),_(zs,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),_(zs,"fields",B.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 ed=zs,Ws=class Ws extends Ce{constructor(n){super();_(this,"url");_(this,"method",Dc.GET);_(this,"header",{});_(this,"body");_(this,"query",[]);_(this,"urlEncodeBody",!1);_(this,"mtls");_(this,"baseUrl");_(this,"path");_(this,"httpProxyUrl");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ws().fromBinary(n,r)}static fromJson(n,r){return new Ws().fromJson(n,r)}static fromJsonString(n,r){return new Ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ws,n,r)}};_(Ws,"runtime",B),_(Ws,"typeName","wg.cosmo.node.v1.FetchConfiguration"),_(Ws,"fields",B.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Mr},{no:2,name:"method",kind:"enum",T:B.getEnumType(Dc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:xD}},{no:4,name:"body",kind:"message",T:Mr},{no:5,name:"query",kind:"message",T:MD,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:qD},{no:9,name:"base_url",kind:"message",T:Mr},{no:10,name:"path",kind:"message",T:Mr},{no:11,name:"http_proxy_url",kind:"message",T:Mr,opt:!0}]));var bD=Ws,Xs=class Xs extends Ce{constructor(n){super();_(this,"statusCode",Kn.zero);_(this,"typeName","");_(this,"injectStatusCodeIntoBody",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new Xs().fromBinary(n,r)}static fromJson(n,r){return new Xs().fromJson(n,r)}static fromJsonString(n,r){return new Xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Xs,n,r)}};_(Xs,"runtime",B),_(Xs,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),_(Xs,"fields",B.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 d1=Xs,Zs=class Zs extends Ce{constructor(n){super();_(this,"fetch");_(this,"subscription");_(this,"federation");_(this,"upstreamSchema");_(this,"customScalarTypeFields",[]);_(this,"grpc");B.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Zs,n,r)}};_(Zs,"runtime",B),_(Zs,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),_(Zs,"fields",B.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:bD},{no:2,name:"subscription",kind:"message",T:VD},{no:3,name:"federation",kind:"message",T:jD},{no:4,name:"upstream_schema",kind:"message",T:Nf},{no:6,name:"custom_scalar_type_fields",kind:"message",T:KD,repeated:!0},{no:7,name:"grpc",kind:"message",T:td}]));var cf=Zs,eo=class eo extends Ce{constructor(n){super();_(this,"mapping");_(this,"protoSchema","");_(this,"plugin");B.util.initPartial(n,this)}static fromBinary(n,r){return new eo().fromBinary(n,r)}static fromJson(n,r){return new eo().fromJson(n,r)}static fromJsonString(n,r){return new eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(eo,n,r)}};_(eo,"runtime",B),_(eo,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),_(eo,"fields",B.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:AD},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:lf}]));var td=eo,to=class to extends Ce{constructor(n){super();_(this,"name","");_(this,"version","");B.util.initPartial(n,this)}static fromBinary(n,r){return new to().fromBinary(n,r)}static fromJson(n,r){return new to().fromJson(n,r)}static fromJsonString(n,r){return new to().fromJsonString(n,r)}static equals(n,r){return B.util.equals(to,n,r)}};_(to,"runtime",B),_(to,"typeName","wg.cosmo.node.v1.PluginConfiguration"),_(to,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var lf=to,no=class no extends Ce{constructor(n){super();_(this,"enabled",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new no().fromBinary(n,r)}static fromJson(n,r){return new no().fromJson(n,r)}static fromJsonString(n,r){return new no().fromJsonString(n,r)}static equals(n,r){return B.util.equals(no,n,r)}};_(no,"runtime",B),_(no,"typeName","wg.cosmo.node.v1.SSLConfiguration"),_(no,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var p1=no,ro=class ro extends Ce{constructor(n){super();_(this,"version",0);_(this,"service","");_(this,"operationMappings",[]);_(this,"entityMappings",[]);_(this,"typeFieldMappings",[]);_(this,"enumMappings",[]);B.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 B.util.equals(ro,n,r)}};_(ro,"runtime",B),_(ro,"typeName","wg.cosmo.node.v1.GRPCMapping"),_(ro,"fields",B.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:RD,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:PD,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:FD,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:CD,repeated:!0}]));var AD=ro,io=class io extends Ce{constructor(n){super();_(this,"type",ef.UNSPECIFIED);_(this,"original","");_(this,"mapped","");_(this,"request","");_(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new io().fromBinary(n,r)}static fromJson(n,r){return new io().fromJson(n,r)}static fromJsonString(n,r){return new io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(io,n,r)}};_(io,"runtime",B),_(io,"typeName","wg.cosmo.node.v1.OperationMapping"),_(io,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:B.getEnumType(ef)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var RD=io,ao=class ao extends Ce{constructor(n){super();_(this,"typeName","");_(this,"kind","");_(this,"key","");_(this,"rpc","");_(this,"request","");_(this,"response","");B.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 B.util.equals(ao,n,r)}};_(ao,"runtime",B),_(ao,"typeName","wg.cosmo.node.v1.EntityMapping"),_(ao,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9}]));var PD=ao,so=class so extends Ce{constructor(n){super();_(this,"type","");_(this,"fieldMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new so().fromBinary(n,r)}static fromJson(n,r){return new so().fromJson(n,r)}static fromJsonString(n,r){return new so().fromJsonString(n,r)}static equals(n,r){return B.util.equals(so,n,r)}};_(so,"runtime",B),_(so,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),_(so,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:wD,repeated:!0}]));var FD=so,oo=class oo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");_(this,"argumentMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new oo().fromBinary(n,r)}static fromJson(n,r){return new oo().fromJson(n,r)}static fromJsonString(n,r){return new oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(oo,n,r)}};_(oo,"runtime",B),_(oo,"typeName","wg.cosmo.node.v1.FieldMapping"),_(oo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:LD,repeated:!0}]));var wD=oo,uo=class uo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");B.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 B.util.equals(uo,n,r)}};_(uo,"runtime",B),_(uo,"typeName","wg.cosmo.node.v1.ArgumentMapping"),_(uo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var LD=uo,co=class co extends Ce{constructor(n){super();_(this,"type","");_(this,"values",[]);B.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 B.util.equals(co,n,r)}};_(co,"runtime",B),_(co,"typeName","wg.cosmo.node.v1.EnumMapping"),_(co,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:BD,repeated:!0}]));var CD=co,lo=class lo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");B.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 B.util.equals(lo,n,r)}};_(lo,"runtime",B),_(lo,"typeName","wg.cosmo.node.v1.EnumValueMapping"),_(lo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var BD=lo,po=class po extends Ce{constructor(n){super();_(this,"consumerName","");_(this,"streamName","");_(this,"consumerInactiveThreshold",0);B.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 B.util.equals(po,n,r)}};_(po,"runtime",B),_(po,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),_(po,"fields",B.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var df=po,fo=class fo extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"subjects",[]);_(this,"streamConfiguration");B.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 B.util.equals(fo,n,r)}};_(fo,"runtime",B),_(fo,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),_(fo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:df}]));var pf=fo,mo=class mo extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"topics",[]);B.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 B.util.equals(mo,n,r)}};_(mo,"runtime",B),_(mo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),_(mo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var ff=mo,No=class No extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"channels",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new No().fromBinary(n,r)}static fromJson(n,r){return new No().fromJson(n,r)}static fromJsonString(n,r){return new No().fromJsonString(n,r)}static equals(n,r){return B.util.equals(No,n,r)}};_(No,"runtime",B),_(No,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),_(No,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var mf=No,To=class To extends Ce{constructor(n){super();_(this,"providerId","");_(this,"type",Bo.PUBLISH);_(this,"typeName","");_(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new To().fromBinary(n,r)}static fromJson(n,r){return new To().fromJson(n,r)}static fromJsonString(n,r){return new To().fromJsonString(n,r)}static equals(n,r){return B.util.equals(To,n,r)}};_(To,"runtime",B),_(To,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),_(To,"fields",B.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:B.getEnumType(Bo)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var Uo=To,Eo=class Eo extends Ce{constructor(n){super();_(this,"nats",[]);_(this,"kafka",[]);_(this,"redis",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Eo().fromBinary(n,r)}static fromJson(n,r){return new Eo().fromJson(n,r)}static fromJsonString(n,r){return new Eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Eo,n,r)}};_(Eo,"runtime",B),_(Eo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),_(Eo,"fields",B.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:pf,repeated:!0},{no:2,name:"kafka",kind:"message",T:ff,repeated:!0},{no:3,name:"redis",kind:"message",T:mf,repeated:!0}]));var Ac=Eo,ho=class ho extends Ce{constructor(n){super();_(this,"data");B.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 B.util.equals(ho,n,r)}};_(ho,"runtime",B),_(ho,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),_(ho,"fields",B.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Mr}]));var UD=ho,yo=class yo extends Ce{constructor(n){super();_(this,"kind",yu.STATIC_CONFIGURATION_VARIABLE);_(this,"staticVariableContent","");_(this,"environmentVariableName","");_(this,"environmentVariableDefaultValue","");_(this,"placeholderVariableName","");B.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 B.util.equals(yo,n,r)}};_(yo,"runtime",B),_(yo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),_(yo,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(yu)},{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 Mr=yo,Io=class Io extends Ce{constructor(n){super();_(this,"directiveName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Io().fromBinary(n,r)}static fromJson(n,r){return new Io().fromJson(n,r)}static fromJsonString(n,r){return new Io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Io,n,r)}};_(Io,"runtime",B),_(Io,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),_(Io,"fields",B.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var kD=Io,go=class go extends Ce{constructor(n){super();_(this,"name","");_(this,"value","");B.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 B.util.equals(go,n,r)}};_(go,"runtime",B),_(go,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),_(go,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var MD=go,_o=class _o extends Ce{constructor(n){super();_(this,"values",[]);B.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 B.util.equals(_o,n,r)}};_(_o,"runtime",B),_(_o,"typeName","wg.cosmo.node.v1.HTTPHeader"),_(_o,"fields",B.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Mr,repeated:!0}]));var xD=_o,vo=class vo extends Ce{constructor(n){super();_(this,"key");_(this,"cert");_(this,"insecureSkipVerify",!1);B.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 B.util.equals(vo,n,r)}};_(vo,"runtime",B),_(vo,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),_(vo,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Mr},{no:2,name:"cert",kind:"message",T:Mr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var qD=vo,So=class So extends Ce{constructor(n){super();_(this,"enabled",!1);_(this,"url");_(this,"useSSE");_(this,"protocol");_(this,"websocketSubprotocol");B.util.initPartial(n,this)}static fromBinary(n,r){return new So().fromBinary(n,r)}static fromJson(n,r){return new So().fromJson(n,r)}static fromJsonString(n,r){return new So().fromJsonString(n,r)}static equals(n,r){return B.util.equals(So,n,r)}};_(So,"runtime",B),_(So,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),_(So,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Mr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:B.getEnumType(bs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:B.getEnumType(As),opt:!0}]));var VD=So,Oo=class Oo extends Ce{constructor(n){super();_(this,"enabled",!1);_(this,"serviceSdl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Oo().fromBinary(n,r)}static fromJson(n,r){return new Oo().fromJson(n,r)}static fromJsonString(n,r){return new Oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Oo,n,r)}};_(Oo,"runtime",B),_(Oo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),_(Oo,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var jD=Oo,Do=class Do extends Ce{constructor(n){super();_(this,"key","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Do().fromBinary(n,r)}static fromJson(n,r){return new Do().fromJson(n,r)}static fromJsonString(n,r){return new Do().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Do,n,r)}};_(Do,"runtime",B),_(Do,"typeName","wg.cosmo.node.v1.InternedString"),_(Do,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var Nf=Do,bo=class bo extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");B.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 B.util.equals(bo,n,r)}};_(bo,"runtime",B),_(bo,"typeName","wg.cosmo.node.v1.SingleTypeField"),_(bo,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var KD=bo,Ao=class Ao extends Ce{constructor(n){super();_(this,"fieldPath",[]);_(this,"json","");B.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 B.util.equals(Ao,n,r)}};_(Ao,"runtime",B),_(Ao,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),_(Ao,"fields",B.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var Tf=Ao,Gi=class Gi extends Ce{constructor(n){super();_(this,"and",[]);_(this,"in");_(this,"not");_(this,"or",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Gi().fromBinary(n,r)}static fromJson(n,r){return new Gi().fromJson(n,r)}static fromJsonString(n,r){return new Gi().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gi,n,r)}};_(Gi,"runtime",B),_(Gi,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),_(Gi,"fields",B.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Gi,repeated:!0},{no:2,name:"in",kind:"message",T:Tf,opt:!0},{no:3,name:"not",kind:"message",T:Gi,opt:!0},{no:4,name:"or",kind:"message",T:Gi,repeated:!0}]));var Iu=Gi,Ro=class Ro extends Ce{constructor(n){super();_(this,"operations",[]);B.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 B.util.equals(Ro,n,r)}};_(Ro,"runtime",B),_(Ro,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),_(Ro,"fields",B.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:GD,repeated:!0}]));var f1=Ro,Po=class Po extends Ce{constructor(n){super();_(this,"request");_(this,"client");B.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 B.util.equals(Po,n,r)}};_(Po,"runtime",B),_(Po,"typeName","wg.cosmo.node.v1.Operation"),_(Po,"fields",B.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:$D},{no:2,name:"client",kind:"message",T:JD}]));var GD=Po,Fo=class Fo extends Ce{constructor(n){super();_(this,"operationName","");_(this,"query","");_(this,"extensions");B.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 B.util.equals(Fo,n,r)}};_(Fo,"runtime",B),_(Fo,"typeName","wg.cosmo.node.v1.OperationRequest"),_(Fo,"fields",B.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:QD}]));var $D=Fo,wo=class wo extends Ce{constructor(n){super();_(this,"persistedQuery");B.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 B.util.equals(wo,n,r)}};_(wo,"runtime",B),_(wo,"typeName","wg.cosmo.node.v1.Extension"),_(wo,"fields",B.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:YD}]));var QD=wo,Lo=class Lo extends Ce{constructor(n){super();_(this,"sha256Hash","");_(this,"version",0);B.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 B.util.equals(Lo,n,r)}};_(Lo,"runtime",B),_(Lo,"typeName","wg.cosmo.node.v1.PersistedQuery"),_(Lo,"fields",B.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var YD=Lo,Co=class Co extends Ce{constructor(n){super();_(this,"name","");_(this,"version","");B.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 B.util.equals(Co,n,r)}};_(Co,"runtime",B),_(Co,"typeName","wg.cosmo.node.v1.ClientInfo"),_(Co,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var JD=Co;m();T();N();var nd=ss(CE(),1);function dde(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new of({fieldName:a[1],typeName:a[0]}))}t.push(new uf({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function HD(e,t,n){if(e)for(let r of e){let i=dde(r);t.push(new Sc(x(x({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function zD(e){switch(e){case"publish":return Bo.PUBLISH;case"request":return Bo.REQUEST;case"subscribe":return Bo.SUBSCRIBE}}function m1(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Ac({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Zl({typeName:i,fieldNames:a});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let f=new ed({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(f):t.entityInterfaces.push(f)}HD(r.keys,t.keys,i),HD(r.provides,t.provides,i),HD(r.requires,t.requires,i);let c=[],l=[],p=[];for(let f of(n=r.events)!=null?n:[])switch(f.providerType){case nd.PROVIDER_TYPE_KAFKA:{l.push(new ff({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),topics:f.topics}));break}case nd.PROVIDER_TYPE_NATS:{c.push(new pf(x({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),subjects:f.subjects},f.streamConfiguration?{streamConfiguration:new df({consumerInactiveThreshold:f.streamConfiguration.consumerInactiveThreshold,consumerName:f.streamConfiguration.consumerName,streamName:f.streamConfiguration.streamName})}:{})));break}case nd.PROVIDER_TYPE_REDIS:{p.push(new mf({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),channels:f.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...c),t.events.kafka.push(...l),t.events.redis.push(...p)}return t}function N1(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(f=>new rf({name:f,sourceType:Oc.FIELD_ARGUMENT})),o=new sf({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),c=((n=i.requiredScopes)==null?void 0:n.map(f=>new bc({requiredAndScopes:f})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(f=>new bc({requiredAndScopes:f})))||[],p=c.length>0;if((i.requiresAuthentication||p)&&(o.authorizationConfiguration=new af({requiresAuthentication:i.requiresAuthentication||p,requiredOrScopes:c,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let f=new Iu;sh(f,i.subscriptionFilterCondition),o.subscriptionFilterCondition=f}t.push(o)}return t}function sh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Iu;sh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new Tf({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Iu,sh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Iu;sh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}m();T();N();function WD(e){return new Error(`Normalization failed to return a ${e}.`)}function T1(e){return new Error(`Invalid router compatibility version "${e}".`)}var Rc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Rc||(Rc={}));var pde=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new Nf({key:n})},fde=e=>{switch(e){case"ws":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},mde=e=>{switch(e){case"auto":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},h1=function(e){if(!rd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw T1(e.routerCompatibilityVersion);let t=new Xl({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw WD("ConfigurationDataByTypeName");if(!n.schema)throw WD("GraphQLSchema");let r={enabled:!0},i=pde(t,OV((0,E1.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:c,interfaceObjects:l,keys:p,provides:f,requires:y,rootNodes:g}=m1(n.configurationDataByTypeName),v;switch(n.kind){case Rc.Standard:{r.enabled=!0,r.protocol=fde(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=mde(n.websocketSubprotocol||"auto"),r.url=new Mr({kind:yu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Rc.Plugin:{v=new td({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new lf({name:n.name,version:n.version})});break}case Rc.GRPC:{v=new td({mapping:n.mapping,protoSchema:n.protoSchema});break}}let P,M,K;if(c.kafka.length>0||c.nats.length>0||c.redis.length>0){P=hu.PUBSUB,K=new Ac({kafka:c.kafka,nats:c.nats,redis:c.redis});let Z=fe=>rd.ROOT_TYPE_NAMES.has(fe.typeName),W=0,Te=0;for(;W({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${rd.COMPOSITION_VERSION}`})};m();T();N();var Fc=ss(Ae());function y1(e){let t;try{t=(0,Fc.parse)(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 Nde(e){let t=(0,Pc.federateSubgraphs)(e.map(y1),Pc.LATEST_ROUTER_COMPATIBILITY_VERSION);if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Fc.print)(t.federatedGraphAST)}}function Tde(e){let t=(0,Pc.federateSubgraphs)(e.map(y1),Pc.LATEST_ROUTER_COMPATIBILITY_VERSION);if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return h1({federatedClientSDL:(0,Fc.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Fc.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Pc.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,p;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,c=a==null?void 0:a.configurationDataByTypeName;return{kind:Rc.Standard,id:`${i}`,name:r.name,url:aD(r.url),sdl:r.schema,subscriptionUrl:aD((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(p=r.subscription_protocol)!=null?p:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:c}})}).toJsonString()}return sm(Ede);})(); +`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:o=a,i=1;break;case 1:n[r++]=o<<2|(a&48)>>4,o=a,i=2;break;case 2:n[r++]=(o&15)<<4|(a&60)>>2,o=a,i=3;break;case 3:n[r++]=(o&3)<<6|a,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 a=0;a>2],i=(r&3)<<4,n=1;break;case 1:t+=Ds[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Ds[i|r>>6],t+=Ds[r&63],n=0;break}return n&&(t+=Ds[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function qV(e,t,n){jV(t,e);let r=t.runtime.bin.makeReadOptions(n),i=xV(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=YE(t);for(let c of i)t.runtime.bin.readField(a,r.readerFactory(c.data),t.field,c.wireType,r);return o()}function VV(e,t,n,r){jV(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(ND(e,t)){let p=e.getType().runtime.bin.listUnknownFields(e).filter(f=>f.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let f of p)e.getType().runtime.bin.onUnknownField(e,f.no,f.wireType,f.data)}let o=a.writerFactory(),c=t.field;!c.opt&&!c.repeated&&(c.kind=="enum"||c.kind=="scalar")&&(c=Object.assign(Object.assign({},t.field),{opt:!0})),t.runtime.bin.writeField(c,n,o,a);let l=i.readerFactory(o.finish());for(;l.posr.no==t.field.no)}function jV(e,t){sn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function HE(e,t){let n=e.localName;if(e.repeated)return t[n].length>0;if(e.oneof)return t[e.oneof.localName].case===n;switch(e.kind){case"enum":case"scalar":return e.opt||e.req?t[n]!==void 0:e.kind=="enum"?t[n]!==e.T.values[0].no:!GE(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function TD(e,t){let n=e.localName,r=!e.opt&&!e.req;if(e.repeated)t[n]=[];else if(e.oneof)t[e.oneof.localName]={case:void 0};else switch(e.kind){case"map":t[n]={};break;case"enum":t[n]=r?e.T.values[0].no:void 0;break;case"scalar":t[n]=r?Ta(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ea(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(Ce.prototype).every(r=>r in e&&typeof e[r]=="function"))return!1;let n=e.getType();return n===null||typeof n!="function"||!("typeName"in n)||typeof n.typeName!="string"?!1:t===void 0?!0:n.typeName==t.typeName}function zE(e,t){return Ea(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var IMe={"google.protobuf.DoubleValue":Ne.DOUBLE,"google.protobuf.FloatValue":Ne.FLOAT,"google.protobuf.Int64Value":Ne.INT64,"google.protobuf.UInt64Value":Ne.UINT64,"google.protobuf.Int32Value":Ne.INT32,"google.protobuf.UInt32Value":Ne.UINT32,"google.protobuf.BoolValue":Ne.BOOL,"google.protobuf.StringValue":Ne.STRING,"google.protobuf.BytesValue":Ne.BYTES};var KV={ignoreUnknownFields:!1},GV={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Wle(e){return e?Object.assign(Object.assign({},KV),e):KV}function Xle(e){return e?Object.assign(Object.assign({},GV),e):GV}var ZE=Symbol(),WE=Symbol();function YV(){return{makeReadOptions:Wle,makeWriteOptions:Xle,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${Ja(t)}`);r=r!=null?r:new e;let i=new Map,a=n.typeRegistry;for(let[o,c]of Object.entries(t)){let l=e.fields.findJsonName(o);if(l){if(l.oneof){if(c===null&&l.kind=="scalar")continue;let p=i.get(l.oneof);if(p!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${p}", "${o}"`);i.set(l.oneof,o)}$V(r,c,l,n,e)}else{let p=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let f=a.findExtension(o.substring(1,o.length-1));if(f&&f.extendee.typeName==e.typeName){p=!0;let[y,g]=YE(f);$V(y,c,f.field,n,f),VV(r,f,g(),n)}}if(!p&&!n.ignoreUnknownFields)throw new Error(`cannot decode message ${e.typeName} from JSON: key "${o}" is unknown`)}}return r},writeMessage(e,t){let n=e.getType(),r={},i;try{for(i of n.fields.byNumber()){if(!HE(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!ede(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],c=QV(i,o,t);c!==void 0&&(r[t.useProtoFieldName?i.name:i.jsonName]=c)}let a=t.typeRegistry;if(a!=null&&a.findExtensionFor)for(let o of n.runtime.bin.listUnknownFields(e)){let c=a.findExtensionFor(n.typeName,o.no);if(c&&ND(e,c)){let l=qV(e,c,t),p=QV(c.field,l,t);p!==void 0&&(r[c.field.jsonName]=p)}}}catch(a){let o=i?`cannot encode field ${n.typeName}.${i.name} to JSON`:`cannot encode message ${n.typeName} to JSON`,c=a instanceof Error?a.message:String(a);throw new Error(o+(c.length>0?`: ${c}`:""))}return r},readScalar(e,t,n){return Wp(e,t,n!=null?n:Na.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||GE(e,t)))return XE(e,t)},debug:Ja}}function Ja(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 $V(e,t,n,r,i){let a=n.localName;if(n.repeated){if(sn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`);let o=e[a];for(let c of t){if(c===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(c)}`);switch(n.kind){case"message":o.push(n.T.fromJson(c,r));break;case"enum":let l=ED(n.T,c,r.ignoreUnknownFields,!0);l!==WE&&o.push(l);break;case"scalar":try{o.push(Wp(n.T,c,n.L,!0))}catch(p){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(c)}`;throw p instanceof Error&&p.message.length>0&&(f+=`: ${p.message}`),new Error(f)}break}}}else if(n.kind=="map"){if(t===null)return;if(typeof t!="object"||Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`);let o=e[a];for(let[c,l]of Object.entries(t)){if(l===null)throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: map value null`);let p;try{p=Zle(n.K,c)}catch(f){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw f instanceof Error&&f.message.length>0&&(y+=`: ${f.message}`),new Error(y)}switch(n.V.kind){case"message":o[p]=n.V.T.fromJson(l,r);break;case"enum":let f=ED(n.V.T,l,r.ignoreUnknownFields,!0);f!==WE&&(o[p]=f);break;case"scalar":try{o[p]=Wp(n.V.T,l,Na.BIGINT,!0)}catch(y){let g=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw y instanceof Error&&y.message.length>0&&(g+=`: ${y.message}`),new Error(g)}break}}}else switch(n.oneof&&(e=e[n.oneof.localName]={case:a},a="value"),n.kind){case"message":let o=n.T;if(t===null&&o.typeName!="google.protobuf.Value")return;let c=e[a];Ea(c)?c.fromJson(t,r):(e[a]=c=o.fromJson(t,r),o.fieldWrapper&&!n.oneof&&(e[a]=o.fieldWrapper.unwrapField(c)));break;case"enum":let l=ED(n.T,t,r.ignoreUnknownFields,!1);switch(l){case ZE:TD(n,e);break;case WE:break;default:e[a]=l;break}break;case"scalar":try{let p=Wp(n.T,t,n.L,!1);switch(p){case ZE:TD(n,e);break;default:e[a]=p;break}}catch(p){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${Ja(t)}`;throw p instanceof Error&&p.message.length>0&&(f+=`: ${p.message}`),new Error(f)}break}}function Zle(e,t){if(e===Ne.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return Wp(e,t,Na.BIGINT,!0).toString()}function Wp(e,t,n,r){if(t===null)return r?Ta(e,n):ZE;switch(e){case Ne.DOUBLE:case Ne.FLOAT: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 i=Number(t);if(Number.isNaN(i)||!Number.isFinite(i))break;return e==Ne.FLOAT&&VE(i),i;case Ne.INT32:case Ne.FIXED32:case Ne.SFIXED32:case Ne.SINT32:case Ne.UINT32:let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==Ne.UINT32||e==Ne.FIXED32?zp(a):Hl(a),a;case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Kn.parse(t);return n?o.toString():o;case Ne.FIXED64:case Ne.UINT64:if(typeof t!="number"&&typeof t!="string")break;let c=Kn.uParse(t);return n?c.toString():c;case Ne.BOOL:if(typeof t!="boolean")break;return t;case Ne.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case Ne.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return mD.dec(t)}throw new Error}function ED(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:ZE;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":let i=e.findName(t);if(i!==void 0)return i.no;if(n)return WE;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${Ja(t)}`)}function ede(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function QV(e,t,n){if(e.kind=="map"){sn(typeof t=="object"&&t!=null);let r={},i=Object.entries(t);switch(e.V.kind){case"scalar":for(let[o,c]of i)r[o.toString()]=XE(e.V.T,c);break;case"message":for(let[o,c]of i)r[o.toString()]=c.toJson(n);break;case"enum":let a=e.V.T;for(let[o,c]of i)r[o.toString()]=hD(a,c,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){sn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return XE(e.T,t);case"enum":return hD(e.T,t,n.enumAsInteger);case"message":return zE(e.T,t).toJson(n)}}function hD(e,t,n){var r;if(sn(typeof t=="number"),e.typeName=="google.protobuf.NullValue")return null;if(n)return t;let i=e.findNumber(t);return(r=i==null?void 0:i.name)!==null&&r!==void 0?r:t}function XE(e,t){switch(e){case Ne.INT32:case Ne.SFIXED32:case Ne.SINT32:case Ne.FIXED32:case Ne.UINT32:return sn(typeof t=="number"),t;case Ne.FLOAT:case Ne.DOUBLE:return sn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case Ne.STRING:return sn(typeof t=="string"),t;case Ne.BOOL:return sn(typeof t=="boolean"),t;case Ne.UINT64:case Ne.FIXED64:case Ne.INT64:case Ne.SFIXED64:case Ne.SINT64:return sn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case Ne.BYTES:return sn(t instanceof Uint8Array),mD.enc(t)}}m();T();N();var zl=Symbol("@bufbuild/protobuf/unknown-fields"),JV={readUnknownFields:!0,readerFactory:e=>new QE(e)},HV={writeUnknownFields:!0,writerFactory:()=>new $E};function tde(e){return e?Object.assign(Object.assign({},JV),e):JV}function nde(e){return e?Object.assign(Object.assign({},HV),e):HV}function ZV(){return{makeReadOptions:tde,makeWriteOptions:nde,listUnknownFields(e){var t;return(t=e[zl])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[zl]},writeUnknownFields(e,t){let r=e[zl];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[zl])||(i[zl]=[]),i[zl].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r,i){let a=e.getType(),o=i?t.len:t.pos+n,c,l;for(;t.pos0&&(l=ide),a){let g=e[o];if(r==Bn.LengthDelimited&&c!=Ne.STRING&&c!=Ne.BYTES){let P=t.uint32()+t.pos;for(;t.posEa(g,y)?g:new y(g));else{let g=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?a[i]=Zp(g):a[i]=g:a[i]=Ea(g,y)?g:new y(g)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{let i=t[r.localName],a=n[r.localName];if(r.repeated){if(i.length!==a.length)return!1;switch(r.kind){case"message":return i.every((o,c)=>r.T.equals(o,a[c]));case"scalar":return i.every((o,c)=>Os(r.T,o,a[c]));case"enum":return i.every((o,c)=>Os(Ne.INT32,o,a[c]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(i,a);case"enum":return Os(Ne.INT32,i,a);case"scalar":return Os(r.T,i,a);case"oneof":if(i.case!==a.case)return!1;let o=r.findField(i.case);if(o===void 0)return!0;switch(o.kind){case"message":return o.T.equals(i.value,a.value);case"enum":return Os(Ne.INT32,i.value,a.value);case"scalar":return Os(o.T,i.value,a.value)}throw new Error(`oneof cannot contain ${o.kind}`);case"map":let c=Object.keys(i).concat(Object.keys(a));switch(r.V.kind){case"message":let l=r.V.T;return c.every(f=>l.equals(i[f],a[f]));case"enum":return c.every(f=>Os(Ne.INT32,i[f],a[f]));case"scalar":let p=r.V.T;return c.every(f=>Os(p,i[f],a[f]))}break}})},clone(e){let t=e.getType(),n=new t,r=n;for(let i of t.fields.byMember()){let a=e[i.localName],o;if(i.repeated)o=a.map(nh);else if(i.kind=="map"){o=r[i.localName];for(let[c,l]of Object.entries(a))o[c]=nh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:nh(a.value)}:{case:void 0}:o=nh(a);r[i.localName]=o}for(let i of t.runtime.bin.listUnknownFields(e))t.runtime.bin.onUnknownField(r,i.no,i.wireType,i.data);return n}}}function nh(e){if(e===void 0)return e;if(Ea(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Zp(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function n1(e,t,n){return{syntax:e,json:YV(),bin:ZV(),util:Object.assign(Object.assign({},t1()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return wV(this,r,i,a)},makeEnum:PV,makeEnumType:cD,getEnumType:RV,makeExtension(r,i,a){return MV(this,r,i,a)}}}m();T();N();var rh=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}};m();T();N();m();T();N();m();T();N();function yD(e,t){let n=a1(e);return t?n:lde(cde(n))}function r1(e){return yD(e,!1)}var i1=a1;function a1(e){let t=!1,n=[];for(let r=0;r`${e}$`,cde=e=>ude.has(e)?s1(e):e,lde=e=>ode.has(e)?s1(e):e;var ih=class{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=r1(t)}addField(t){sn(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;nnew rh(e,t=>o1(t,!0)),e=>{for(let t of e.getType().fields.byMember()){if(t.opt)continue;let n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=Ta(t.T,t.L);break;case"message":break}}});var Wl;(function(e){e[e.OK=0]="OK",e[e.ERR=1]="ERR",e[e.ERR_NOT_FOUND=2]="ERR_NOT_FOUND",e[e.ERR_ALREADY_EXISTS=3]="ERR_ALREADY_EXISTS",e[e.ERR_INVALID_SUBGRAPH_SCHEMA=4]="ERR_INVALID_SUBGRAPH_SCHEMA",e[e.ERR_SUBGRAPH_COMPOSITION_FAILED=5]="ERR_SUBGRAPH_COMPOSITION_FAILED",e[e.ERR_SUBGRAPH_CHECK_FAILED=6]="ERR_SUBGRAPH_CHECK_FAILED",e[e.ERR_INVALID_LABELS=7]="ERR_INVALID_LABELS",e[e.ERR_ANALYTICS_DISABLED=8]="ERR_ANALYTICS_DISABLED",e[e.ERROR_NOT_AUTHENTICATED=9]="ERROR_NOT_AUTHENTICATED",e[e.ERR_OPENAI_DISABLED=10]="ERR_OPENAI_DISABLED",e[e.ERR_FREE_TRIAL_EXPIRED=11]="ERR_FREE_TRIAL_EXPIRED",e[e.ERROR_NOT_AUTHORIZED=12]="ERROR_NOT_AUTHORIZED",e[e.ERR_LIMIT_REACHED=13]="ERR_LIMIT_REACHED",e[e.ERR_DEPLOYMENT_FAILED=14]="ERR_DEPLOYMENT_FAILED",e[e.ERR_INVALID_NAME=15]="ERR_INVALID_NAME",e[e.ERR_UPGRADE_PLAN=16]="ERR_UPGRADE_PLAN",e[e.ERR_BAD_REQUEST=17]="ERR_BAD_REQUEST",e[e.ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL=18]="ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"})(Wl||(Wl={}));B.util.setEnumType(Wl,"wg.cosmo.common.EnumStatusCode",[{no:0,name:"OK"},{no:1,name:"ERR"},{no:2,name:"ERR_NOT_FOUND"},{no:3,name:"ERR_ALREADY_EXISTS"},{no:4,name:"ERR_INVALID_SUBGRAPH_SCHEMA"},{no:5,name:"ERR_SUBGRAPH_COMPOSITION_FAILED"},{no:6,name:"ERR_SUBGRAPH_CHECK_FAILED"},{no:7,name:"ERR_INVALID_LABELS"},{no:8,name:"ERR_ANALYTICS_DISABLED"},{no:9,name:"ERROR_NOT_AUTHENTICATED"},{no:10,name:"ERR_OPENAI_DISABLED"},{no:11,name:"ERR_FREE_TRIAL_EXPIRED"},{no:12,name:"ERROR_NOT_AUTHORIZED"},{no:13,name:"ERR_LIMIT_REACHED"},{no:14,name:"ERR_DEPLOYMENT_FAILED"},{no:15,name:"ERR_INVALID_NAME"},{no:16,name:"ERR_UPGRADE_PLAN"},{no:17,name:"ERR_BAD_REQUEST"},{no:18,name:"ERR_SCHEMA_MISMATCH_WITH_APPROVED_PROPOSAL"}]);var bs;(function(e){e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS=0]="GRAPHQL_SUBSCRIPTION_PROTOCOL_WS",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE=1]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE",e[e.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST=2]="GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"})(bs||(bs={}));B.util.setEnumType(bs,"wg.cosmo.common.GraphQLSubscriptionProtocol",[{no:0,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_WS"},{no:1,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE"},{no:2,name:"GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST"}]);var As;(function(e){e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO=0]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS=1]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS",e[e.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS=2]="GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"})(As||(As={}));B.util.setEnumType(As,"wg.cosmo.common.GraphQLWebsocketSubprotocol",[{no:0,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO"},{no:1,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS"},{no:2,name:"GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS"}]);m();T();N();var ID;(function(e){e[e.RENDER_ARGUMENT_DEFAULT=0]="RENDER_ARGUMENT_DEFAULT",e[e.RENDER_ARGUMENT_AS_GRAPHQL_VALUE=1]="RENDER_ARGUMENT_AS_GRAPHQL_VALUE",e[e.RENDER_ARGUMENT_AS_ARRAY_CSV=2]="RENDER_ARGUMENT_AS_ARRAY_CSV"})(ID||(ID={}));B.util.setEnumType(ID,"wg.cosmo.node.v1.ArgumentRenderConfiguration",[{no:0,name:"RENDER_ARGUMENT_DEFAULT"},{no:1,name:"RENDER_ARGUMENT_AS_GRAPHQL_VALUE"},{no:2,name:"RENDER_ARGUMENT_AS_ARRAY_CSV"}]);var Oc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(Oc||(Oc={}));B.util.setEnumType(Oc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var hu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(hu||(hu={}));B.util.setEnumType(hu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var ef;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(ef||(ef={}));B.util.setEnumType(ef,"wg.cosmo.node.v1.OperationType",[{no:0,name:"OPERATION_TYPE_UNSPECIFIED"},{no:1,name:"OPERATION_TYPE_QUERY"},{no:2,name:"OPERATION_TYPE_MUTATION"},{no:3,name:"OPERATION_TYPE_SUBSCRIPTION"}]);var Bo;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(Bo||(Bo={}));B.util.setEnumType(Bo,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var yu;(function(e){e[e.STATIC_CONFIGURATION_VARIABLE=0]="STATIC_CONFIGURATION_VARIABLE",e[e.ENV_CONFIGURATION_VARIABLE=1]="ENV_CONFIGURATION_VARIABLE",e[e.PLACEHOLDER_CONFIGURATION_VARIABLE=2]="PLACEHOLDER_CONFIGURATION_VARIABLE"})(yu||(yu={}));B.util.setEnumType(yu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Dc;(function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.OPTIONS=4]="OPTIONS"})(Dc||(Dc={}));B.util.setEnumType(Dc,"wg.cosmo.node.v1.HTTPMethod",[{no:0,name:"GET"},{no:1,name:"POST"},{no:2,name:"PUT"},{no:3,name:"DELETE"},{no:4,name:"OPTIONS"}]);var Rs=class Rs extends Ce{constructor(n){super();_(this,"id","");_(this,"name","");_(this,"routingUrl","");B.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 B.util.equals(Rs,n,r)}};_(Rs,"runtime",B),_(Rs,"typeName","wg.cosmo.node.v1.Subgraph"),_(Rs,"fields",B.util.newFieldList(()=>[{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 ah=Rs,Ps=class Ps extends Ce{constructor(n){super();_(this,"configByFeatureFlagName",{});B.util.initPartial(n,this)}static fromBinary(n,r){return new Ps().fromBinary(n,r)}static fromJson(n,r){return new Ps().fromJson(n,r)}static fromJsonString(n,r){return new Ps().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ps,n,r)}};_(Ps,"runtime",B),_(Ps,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),_(Ps,"fields",B.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:_D}}]));var gD=Ps,Fs=class Fs extends Ce{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Fs().fromBinary(n,r)}static fromJson(n,r){return new Fs().fromJson(n,r)}static fromJsonString(n,r){return new Fs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Fs,n,r)}};_(Fs,"runtime",B),_(Fs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),_(Fs,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Xl},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:ah,repeated:!0}]));var _D=Fs,ws=class ws extends Ce{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);_(this,"featureFlagConfigs");_(this,"compatibilityVersion","");B.util.initPartial(n,this)}static fromBinary(n,r){return new ws().fromBinary(n,r)}static fromJson(n,r){return new ws().fromJson(n,r)}static fromJsonString(n,r){return new ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(ws,n,r)}};_(ws,"runtime",B),_(ws,"typeName","wg.cosmo.node.v1.RouterConfig"),_(ws,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:Xl},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:ah,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:gD,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var tf=ws,Ls=class Ls extends Ce{constructor(n){super();_(this,"code",Wl.OK);_(this,"details");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ls().fromBinary(n,r)}static fromJson(n,r){return new Ls().fromJson(n,r)}static fromJsonString(n,r){return new Ls().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ls,n,r)}};_(Ls,"runtime",B),_(Ls,"typeName","wg.cosmo.node.v1.Response"),_(Ls,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:B.getEnumType(Wl)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var vD=Ls,Cs=class Cs extends Ce{constructor(n){super();_(this,"code",0);_(this,"message","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Cs().fromBinary(n,r)}static fromJson(n,r){return new Cs().fromJson(n,r)}static fromJsonString(n,r){return new Cs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Cs,n,r)}};_(Cs,"runtime",B),_(Cs,"typeName","wg.cosmo.node.v1.ResponseStatus"),_(Cs,"fields",B.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var u1=Cs,Bs=class Bs extends Ce{constructor(n){super();_(this,"accountLimits");_(this,"graphPublicKey","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Bs().fromBinary(n,r)}static fromJson(n,r){return new Bs().fromJson(n,r)}static fromJsonString(n,r){return new Bs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Bs,n,r)}};_(Bs,"runtime",B),_(Bs,"typeName","wg.cosmo.node.v1.RegistrationInfo"),_(Bs,"fields",B.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:OD},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var SD=Bs,Us=class Us extends Ce{constructor(n){super();_(this,"traceSamplingRate",0);B.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 B.util.equals(Us,n,r)}};_(Us,"runtime",B),_(Us,"typeName","wg.cosmo.node.v1.AccountLimits"),_(Us,"fields",B.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var OD=Us,ks=class ks extends Ce{constructor(t){super(),B.util.initPartial(t,this)}static fromBinary(t,n){return new ks().fromBinary(t,n)}static fromJson(t,n){return new ks().fromJson(t,n)}static fromJsonString(t,n){return new ks().fromJsonString(t,n)}static equals(t,n){return B.util.equals(ks,t,n)}};_(ks,"runtime",B),_(ks,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),_(ks,"fields",B.util.newFieldList(()=>[]));var c1=ks,Ms=class Ms extends Ce{constructor(n){super();_(this,"response");_(this,"registrationInfo");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ms().fromBinary(n,r)}static fromJson(n,r){return new Ms().fromJson(n,r)}static fromJsonString(n,r){return new Ms().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ms,n,r)}};_(Ms,"runtime",B),_(Ms,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),_(Ms,"fields",B.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:vD},{no:2,name:"registrationInfo",kind:"message",T:SD,opt:!0}]));var l1=Ms,xs=class xs extends Ce{constructor(n){super();_(this,"defaultFlushInterval",Kn.zero);_(this,"datasourceConfigurations",[]);_(this,"fieldConfigurations",[]);_(this,"graphqlSchema","");_(this,"typeConfigurations",[]);_(this,"stringStorage",{});_(this,"graphqlClientSchema");B.util.initPartial(n,this)}static fromBinary(n,r){return new xs().fromBinary(n,r)}static fromJson(n,r){return new xs().fromJson(n,r)}static fromJsonString(n,r){return new xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(xs,n,r)}};_(xs,"runtime",B),_(xs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),_(xs,"fields",B.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:nf,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:sf,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:DD,repeated:!0},{no:6,name:"string_storage",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:7,name:"graphql_client_schema",kind:"scalar",T:9,opt:!0}]));var Xl=xs,qs=class qs extends Ce{constructor(n){super();_(this,"kind",hu.STATIC);_(this,"rootNodes",[]);_(this,"childNodes",[]);_(this,"overrideFieldPathFromAlias",!1);_(this,"customGraphql");_(this,"customStatic");_(this,"directives",[]);_(this,"requestTimeoutSeconds",Kn.zero);_(this,"id","");_(this,"keys",[]);_(this,"provides",[]);_(this,"requires",[]);_(this,"customEvents");_(this,"entityInterfaces",[]);_(this,"interfaceObjects",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new qs().fromBinary(n,r)}static fromJson(n,r){return new qs().fromJson(n,r)}static fromJsonString(n,r){return new qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(qs,n,r)}};_(qs,"runtime",B),_(qs,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),_(qs,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(hu)},{no:2,name:"root_nodes",kind:"message",T:Zl,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Zl,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:cf},{no:6,name:"custom_static",kind:"message",T:UD},{no:7,name:"directives",kind:"message",T:kD,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:Sc,repeated:!0},{no:11,name:"provides",kind:"message",T:Sc,repeated:!0},{no:12,name:"requires",kind:"message",T:Sc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Ac},{no:14,name:"entity_interfaces",kind:"message",T:ed,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:ed,repeated:!0}]));var nf=qs,Vs=class Vs extends Ce{constructor(n){super();_(this,"name","");_(this,"sourceType",Oc.OBJECT_FIELD);B.util.initPartial(n,this)}static fromBinary(n,r){return new Vs().fromBinary(n,r)}static fromJson(n,r){return new Vs().fromJson(n,r)}static fromJsonString(n,r){return new Vs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Vs,n,r)}};_(Vs,"runtime",B),_(Vs,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),_(Vs,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:B.getEnumType(Oc)}]));var rf=Vs,js=class js extends Ce{constructor(n){super();_(this,"requiredAndScopes",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new js().fromBinary(n,r)}static fromJson(n,r){return new js().fromJson(n,r)}static fromJsonString(n,r){return new js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(js,n,r)}};_(js,"runtime",B),_(js,"typeName","wg.cosmo.node.v1.Scopes"),_(js,"fields",B.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var bc=js,Ks=class Ks extends Ce{constructor(n){super();_(this,"requiresAuthentication",!1);_(this,"requiredOrScopes",[]);_(this,"requiredOrScopesByOr",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Ks().fromBinary(n,r)}static fromJson(n,r){return new Ks().fromJson(n,r)}static fromJsonString(n,r){return new Ks().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ks,n,r)}};_(Ks,"runtime",B),_(Ks,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),_(Ks,"fields",B.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:bc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:bc,repeated:!0}]));var af=Ks,Gs=class Gs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"argumentsConfiguration",[]);_(this,"authorizationConfiguration");_(this,"subscriptionFilterCondition");B.util.initPartial(n,this)}static fromBinary(n,r){return new Gs().fromBinary(n,r)}static fromJson(n,r){return new Gs().fromJson(n,r)}static fromJsonString(n,r){return new Gs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gs,n,r)}};_(Gs,"runtime",B),_(Gs,"typeName","wg.cosmo.node.v1.FieldConfiguration"),_(Gs,"fields",B.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:rf,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:af},{no:5,name:"subscription_filter_condition",kind:"message",T:Iu,opt:!0}]));var sf=Gs,$s=class $s extends Ce{constructor(n){super();_(this,"typeName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new $s().fromBinary(n,r)}static fromJson(n,r){return new $s().fromJson(n,r)}static fromJsonString(n,r){return new $s().fromJsonString(n,r)}static equals(n,r){return B.util.equals($s,n,r)}};_($s,"runtime",B),_($s,"typeName","wg.cosmo.node.v1.TypeConfiguration"),_($s,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var DD=$s,Qs=class Qs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldNames",[]);_(this,"externalFieldNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Qs().fromBinary(n,r)}static fromJson(n,r){return new Qs().fromJson(n,r)}static fromJsonString(n,r){return new Qs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Qs,n,r)}};_(Qs,"runtime",B),_(Qs,"typeName","wg.cosmo.node.v1.TypeField"),_(Qs,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_names",kind:"scalar",T:9,repeated:!0},{no:3,name:"external_field_names",kind:"scalar",T:9,repeated:!0}]));var Zl=Qs,Ys=class Ys extends Ce{constructor(n){super();_(this,"fieldName","");_(this,"typeName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ys().fromBinary(n,r)}static fromJson(n,r){return new Ys().fromJson(n,r)}static fromJsonString(n,r){return new Ys().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ys,n,r)}};_(Ys,"runtime",B),_(Ys,"typeName","wg.cosmo.node.v1.FieldCoordinates"),_(Ys,"fields",B.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var of=Ys,Js=class Js extends Ce{constructor(n){super();_(this,"fieldCoordinatesPath",[]);_(this,"fieldPath",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Js().fromBinary(n,r)}static fromJson(n,r){return new Js().fromJson(n,r)}static fromJsonString(n,r){return new Js().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Js,n,r)}};_(Js,"runtime",B),_(Js,"typeName","wg.cosmo.node.v1.FieldSetCondition"),_(Js,"fields",B.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:of,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var uf=Js,Hs=class Hs extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"selectionSet","");_(this,"disableEntityResolver",!1);_(this,"conditions",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Hs().fromBinary(n,r)}static fromJson(n,r){return new Hs().fromJson(n,r)}static fromJsonString(n,r){return new Hs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Hs,n,r)}};_(Hs,"runtime",B),_(Hs,"typeName","wg.cosmo.node.v1.RequiredField"),_(Hs,"fields",B.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},{no:5,name:"conditions",kind:"message",T:uf,repeated:!0}]));var Sc=Hs,zs=class zs extends Ce{constructor(n){super();_(this,"interfaceTypeName","");_(this,"concreteTypeNames",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new zs().fromBinary(n,r)}static fromJson(n,r){return new zs().fromJson(n,r)}static fromJsonString(n,r){return new zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(zs,n,r)}};_(zs,"runtime",B),_(zs,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),_(zs,"fields",B.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 ed=zs,Ws=class Ws extends Ce{constructor(n){super();_(this,"url");_(this,"method",Dc.GET);_(this,"header",{});_(this,"body");_(this,"query",[]);_(this,"urlEncodeBody",!1);_(this,"mtls");_(this,"baseUrl");_(this,"path");_(this,"httpProxyUrl");B.util.initPartial(n,this)}static fromBinary(n,r){return new Ws().fromBinary(n,r)}static fromJson(n,r){return new Ws().fromJson(n,r)}static fromJsonString(n,r){return new Ws().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Ws,n,r)}};_(Ws,"runtime",B),_(Ws,"typeName","wg.cosmo.node.v1.FetchConfiguration"),_(Ws,"fields",B.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Mr},{no:2,name:"method",kind:"enum",T:B.getEnumType(Dc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:xD}},{no:4,name:"body",kind:"message",T:Mr},{no:5,name:"query",kind:"message",T:MD,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:qD},{no:9,name:"base_url",kind:"message",T:Mr},{no:10,name:"path",kind:"message",T:Mr},{no:11,name:"http_proxy_url",kind:"message",T:Mr,opt:!0}]));var bD=Ws,Xs=class Xs extends Ce{constructor(n){super();_(this,"statusCode",Kn.zero);_(this,"typeName","");_(this,"injectStatusCodeIntoBody",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new Xs().fromBinary(n,r)}static fromJson(n,r){return new Xs().fromJson(n,r)}static fromJsonString(n,r){return new Xs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Xs,n,r)}};_(Xs,"runtime",B),_(Xs,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),_(Xs,"fields",B.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 d1=Xs,Zs=class Zs extends Ce{constructor(n){super();_(this,"fetch");_(this,"subscription");_(this,"federation");_(this,"upstreamSchema");_(this,"customScalarTypeFields",[]);_(this,"grpc");B.util.initPartial(n,this)}static fromBinary(n,r){return new Zs().fromBinary(n,r)}static fromJson(n,r){return new Zs().fromJson(n,r)}static fromJsonString(n,r){return new Zs().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Zs,n,r)}};_(Zs,"runtime",B),_(Zs,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),_(Zs,"fields",B.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:bD},{no:2,name:"subscription",kind:"message",T:VD},{no:3,name:"federation",kind:"message",T:jD},{no:4,name:"upstream_schema",kind:"message",T:Nf},{no:6,name:"custom_scalar_type_fields",kind:"message",T:KD,repeated:!0},{no:7,name:"grpc",kind:"message",T:td}]));var cf=Zs,eo=class eo extends Ce{constructor(n){super();_(this,"mapping");_(this,"protoSchema","");_(this,"plugin");B.util.initPartial(n,this)}static fromBinary(n,r){return new eo().fromBinary(n,r)}static fromJson(n,r){return new eo().fromJson(n,r)}static fromJsonString(n,r){return new eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(eo,n,r)}};_(eo,"runtime",B),_(eo,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),_(eo,"fields",B.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:AD},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:lf}]));var td=eo,to=class to extends Ce{constructor(n){super();_(this,"name","");_(this,"version","");B.util.initPartial(n,this)}static fromBinary(n,r){return new to().fromBinary(n,r)}static fromJson(n,r){return new to().fromJson(n,r)}static fromJsonString(n,r){return new to().fromJsonString(n,r)}static equals(n,r){return B.util.equals(to,n,r)}};_(to,"runtime",B),_(to,"typeName","wg.cosmo.node.v1.PluginConfiguration"),_(to,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var lf=to,no=class no extends Ce{constructor(n){super();_(this,"enabled",!1);B.util.initPartial(n,this)}static fromBinary(n,r){return new no().fromBinary(n,r)}static fromJson(n,r){return new no().fromJson(n,r)}static fromJsonString(n,r){return new no().fromJsonString(n,r)}static equals(n,r){return B.util.equals(no,n,r)}};_(no,"runtime",B),_(no,"typeName","wg.cosmo.node.v1.SSLConfiguration"),_(no,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var p1=no,ro=class ro extends Ce{constructor(n){super();_(this,"version",0);_(this,"service","");_(this,"operationMappings",[]);_(this,"entityMappings",[]);_(this,"typeFieldMappings",[]);_(this,"enumMappings",[]);B.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 B.util.equals(ro,n,r)}};_(ro,"runtime",B),_(ro,"typeName","wg.cosmo.node.v1.GRPCMapping"),_(ro,"fields",B.util.newFieldList(()=>[{no:1,name:"version",kind:"scalar",T:5},{no:2,name:"service",kind:"scalar",T:9},{no:3,name:"operation_mappings",kind:"message",T:RD,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:PD,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:FD,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:CD,repeated:!0}]));var AD=ro,io=class io extends Ce{constructor(n){super();_(this,"type",ef.UNSPECIFIED);_(this,"original","");_(this,"mapped","");_(this,"request","");_(this,"response","");B.util.initPartial(n,this)}static fromBinary(n,r){return new io().fromBinary(n,r)}static fromJson(n,r){return new io().fromJson(n,r)}static fromJsonString(n,r){return new io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(io,n,r)}};_(io,"runtime",B),_(io,"typeName","wg.cosmo.node.v1.OperationMapping"),_(io,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:B.getEnumType(ef)},{no:2,name:"original",kind:"scalar",T:9},{no:3,name:"mapped",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var RD=io,ao=class ao extends Ce{constructor(n){super();_(this,"typeName","");_(this,"kind","");_(this,"key","");_(this,"rpc","");_(this,"request","");_(this,"response","");B.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 B.util.equals(ao,n,r)}};_(ao,"runtime",B),_(ao,"typeName","wg.cosmo.node.v1.EntityMapping"),_(ao,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"kind",kind:"scalar",T:9},{no:3,name:"key",kind:"scalar",T:9},{no:4,name:"rpc",kind:"scalar",T:9},{no:5,name:"request",kind:"scalar",T:9},{no:6,name:"response",kind:"scalar",T:9}]));var PD=ao,so=class so extends Ce{constructor(n){super();_(this,"type","");_(this,"fieldMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new so().fromBinary(n,r)}static fromJson(n,r){return new so().fromJson(n,r)}static fromJsonString(n,r){return new so().fromJsonString(n,r)}static equals(n,r){return B.util.equals(so,n,r)}};_(so,"runtime",B),_(so,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),_(so,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:wD,repeated:!0}]));var FD=so,oo=class oo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");_(this,"argumentMappings",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new oo().fromBinary(n,r)}static fromJson(n,r){return new oo().fromJson(n,r)}static fromJsonString(n,r){return new oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(oo,n,r)}};_(oo,"runtime",B),_(oo,"typeName","wg.cosmo.node.v1.FieldMapping"),_(oo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9},{no:3,name:"argument_mappings",kind:"message",T:LD,repeated:!0}]));var wD=oo,uo=class uo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");B.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 B.util.equals(uo,n,r)}};_(uo,"runtime",B),_(uo,"typeName","wg.cosmo.node.v1.ArgumentMapping"),_(uo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var LD=uo,co=class co extends Ce{constructor(n){super();_(this,"type","");_(this,"values",[]);B.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 B.util.equals(co,n,r)}};_(co,"runtime",B),_(co,"typeName","wg.cosmo.node.v1.EnumMapping"),_(co,"fields",B.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:BD,repeated:!0}]));var CD=co,lo=class lo extends Ce{constructor(n){super();_(this,"original","");_(this,"mapped","");B.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 B.util.equals(lo,n,r)}};_(lo,"runtime",B),_(lo,"typeName","wg.cosmo.node.v1.EnumValueMapping"),_(lo,"fields",B.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var BD=lo,po=class po extends Ce{constructor(n){super();_(this,"consumerName","");_(this,"streamName","");_(this,"consumerInactiveThreshold",0);B.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 B.util.equals(po,n,r)}};_(po,"runtime",B),_(po,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),_(po,"fields",B.util.newFieldList(()=>[{no:1,name:"consumer_name",kind:"scalar",T:9},{no:2,name:"stream_name",kind:"scalar",T:9},{no:3,name:"consumer_inactive_threshold",kind:"scalar",T:5}]));var df=po,fo=class fo extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"subjects",[]);_(this,"streamConfiguration");B.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 B.util.equals(fo,n,r)}};_(fo,"runtime",B),_(fo,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),_(fo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:df}]));var pf=fo,mo=class mo extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"topics",[]);B.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 B.util.equals(mo,n,r)}};_(mo,"runtime",B),_(mo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),_(mo,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var ff=mo,No=class No extends Ce{constructor(n){super();_(this,"engineEventConfiguration");_(this,"channels",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new No().fromBinary(n,r)}static fromJson(n,r){return new No().fromJson(n,r)}static fromJsonString(n,r){return new No().fromJsonString(n,r)}static equals(n,r){return B.util.equals(No,n,r)}};_(No,"runtime",B),_(No,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),_(No,"fields",B.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Uo},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var mf=No,To=class To extends Ce{constructor(n){super();_(this,"providerId","");_(this,"type",Bo.PUBLISH);_(this,"typeName","");_(this,"fieldName","");B.util.initPartial(n,this)}static fromBinary(n,r){return new To().fromBinary(n,r)}static fromJson(n,r){return new To().fromJson(n,r)}static fromJsonString(n,r){return new To().fromJsonString(n,r)}static equals(n,r){return B.util.equals(To,n,r)}};_(To,"runtime",B),_(To,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),_(To,"fields",B.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:B.getEnumType(Bo)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var Uo=To,Eo=class Eo extends Ce{constructor(n){super();_(this,"nats",[]);_(this,"kafka",[]);_(this,"redis",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Eo().fromBinary(n,r)}static fromJson(n,r){return new Eo().fromJson(n,r)}static fromJsonString(n,r){return new Eo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Eo,n,r)}};_(Eo,"runtime",B),_(Eo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),_(Eo,"fields",B.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:pf,repeated:!0},{no:2,name:"kafka",kind:"message",T:ff,repeated:!0},{no:3,name:"redis",kind:"message",T:mf,repeated:!0}]));var Ac=Eo,ho=class ho extends Ce{constructor(n){super();_(this,"data");B.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 B.util.equals(ho,n,r)}};_(ho,"runtime",B),_(ho,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),_(ho,"fields",B.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Mr}]));var UD=ho,yo=class yo extends Ce{constructor(n){super();_(this,"kind",yu.STATIC_CONFIGURATION_VARIABLE);_(this,"staticVariableContent","");_(this,"environmentVariableName","");_(this,"environmentVariableDefaultValue","");_(this,"placeholderVariableName","");B.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 B.util.equals(yo,n,r)}};_(yo,"runtime",B),_(yo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),_(yo,"fields",B.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:B.getEnumType(yu)},{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 Mr=yo,Io=class Io extends Ce{constructor(n){super();_(this,"directiveName","");_(this,"renameTo","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Io().fromBinary(n,r)}static fromJson(n,r){return new Io().fromJson(n,r)}static fromJsonString(n,r){return new Io().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Io,n,r)}};_(Io,"runtime",B),_(Io,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),_(Io,"fields",B.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var kD=Io,go=class go extends Ce{constructor(n){super();_(this,"name","");_(this,"value","");B.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 B.util.equals(go,n,r)}};_(go,"runtime",B),_(go,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),_(go,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var MD=go,_o=class _o extends Ce{constructor(n){super();_(this,"values",[]);B.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 B.util.equals(_o,n,r)}};_(_o,"runtime",B),_(_o,"typeName","wg.cosmo.node.v1.HTTPHeader"),_(_o,"fields",B.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Mr,repeated:!0}]));var xD=_o,vo=class vo extends Ce{constructor(n){super();_(this,"key");_(this,"cert");_(this,"insecureSkipVerify",!1);B.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 B.util.equals(vo,n,r)}};_(vo,"runtime",B),_(vo,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),_(vo,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Mr},{no:2,name:"cert",kind:"message",T:Mr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var qD=vo,So=class So extends Ce{constructor(n){super();_(this,"enabled",!1);_(this,"url");_(this,"useSSE");_(this,"protocol");_(this,"websocketSubprotocol");B.util.initPartial(n,this)}static fromBinary(n,r){return new So().fromBinary(n,r)}static fromJson(n,r){return new So().fromJson(n,r)}static fromJsonString(n,r){return new So().fromJsonString(n,r)}static equals(n,r){return B.util.equals(So,n,r)}};_(So,"runtime",B),_(So,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),_(So,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Mr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:B.getEnumType(bs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:B.getEnumType(As),opt:!0}]));var VD=So,Oo=class Oo extends Ce{constructor(n){super();_(this,"enabled",!1);_(this,"serviceSdl","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Oo().fromBinary(n,r)}static fromJson(n,r){return new Oo().fromJson(n,r)}static fromJsonString(n,r){return new Oo().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Oo,n,r)}};_(Oo,"runtime",B),_(Oo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),_(Oo,"fields",B.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var jD=Oo,Do=class Do extends Ce{constructor(n){super();_(this,"key","");B.util.initPartial(n,this)}static fromBinary(n,r){return new Do().fromBinary(n,r)}static fromJson(n,r){return new Do().fromJson(n,r)}static fromJsonString(n,r){return new Do().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Do,n,r)}};_(Do,"runtime",B),_(Do,"typeName","wg.cosmo.node.v1.InternedString"),_(Do,"fields",B.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var Nf=Do,bo=class bo extends Ce{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");B.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 B.util.equals(bo,n,r)}};_(bo,"runtime",B),_(bo,"typeName","wg.cosmo.node.v1.SingleTypeField"),_(bo,"fields",B.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var KD=bo,Ao=class Ao extends Ce{constructor(n){super();_(this,"fieldPath",[]);_(this,"json","");B.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 B.util.equals(Ao,n,r)}};_(Ao,"runtime",B),_(Ao,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),_(Ao,"fields",B.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var Tf=Ao,Gi=class Gi extends Ce{constructor(n){super();_(this,"and",[]);_(this,"in");_(this,"not");_(this,"or",[]);B.util.initPartial(n,this)}static fromBinary(n,r){return new Gi().fromBinary(n,r)}static fromJson(n,r){return new Gi().fromJson(n,r)}static fromJsonString(n,r){return new Gi().fromJsonString(n,r)}static equals(n,r){return B.util.equals(Gi,n,r)}};_(Gi,"runtime",B),_(Gi,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),_(Gi,"fields",B.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:Gi,repeated:!0},{no:2,name:"in",kind:"message",T:Tf,opt:!0},{no:3,name:"not",kind:"message",T:Gi,opt:!0},{no:4,name:"or",kind:"message",T:Gi,repeated:!0}]));var Iu=Gi,Ro=class Ro extends Ce{constructor(n){super();_(this,"operations",[]);B.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 B.util.equals(Ro,n,r)}};_(Ro,"runtime",B),_(Ro,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),_(Ro,"fields",B.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:GD,repeated:!0}]));var f1=Ro,Po=class Po extends Ce{constructor(n){super();_(this,"request");_(this,"client");B.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 B.util.equals(Po,n,r)}};_(Po,"runtime",B),_(Po,"typeName","wg.cosmo.node.v1.Operation"),_(Po,"fields",B.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:$D},{no:2,name:"client",kind:"message",T:JD}]));var GD=Po,Fo=class Fo extends Ce{constructor(n){super();_(this,"operationName","");_(this,"query","");_(this,"extensions");B.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 B.util.equals(Fo,n,r)}};_(Fo,"runtime",B),_(Fo,"typeName","wg.cosmo.node.v1.OperationRequest"),_(Fo,"fields",B.util.newFieldList(()=>[{no:1,name:"operation_name",kind:"scalar",T:9},{no:2,name:"query",kind:"scalar",T:9},{no:3,name:"extensions",kind:"message",T:QD}]));var $D=Fo,wo=class wo extends Ce{constructor(n){super();_(this,"persistedQuery");B.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 B.util.equals(wo,n,r)}};_(wo,"runtime",B),_(wo,"typeName","wg.cosmo.node.v1.Extension"),_(wo,"fields",B.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:YD}]));var QD=wo,Lo=class Lo extends Ce{constructor(n){super();_(this,"sha256Hash","");_(this,"version",0);B.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 B.util.equals(Lo,n,r)}};_(Lo,"runtime",B),_(Lo,"typeName","wg.cosmo.node.v1.PersistedQuery"),_(Lo,"fields",B.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var YD=Lo,Co=class Co extends Ce{constructor(n){super();_(this,"name","");_(this,"version","");B.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 B.util.equals(Co,n,r)}};_(Co,"runtime",B),_(Co,"typeName","wg.cosmo.node.v1.ClientInfo"),_(Co,"fields",B.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var JD=Co;m();T();N();var nd=ss(CE(),1);function dde(e){if(!e.conditions)return;let t=[];for(let n of e.conditions){let r=[];for(let i of n.fieldCoordinatesPath){let a=i.split(".");if(a.length!==2)throw new Error(`fatal: malformed conditional field coordinates "${i}" for field set "${e.selectionSet}".`);r.push(new of({fieldName:a[1],typeName:a[0]}))}t.push(new uf({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function HD(e,t,n){if(e)for(let r of e){let i=dde(r);t.push(new Sc(x(x({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function zD(e){switch(e){case"publish":return Bo.PUBLISH;case"request":return Bo.REQUEST;case"subscribe":return Bo.SUBSCRIBE}}function m1(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Ac({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Zl({typeName:i,fieldNames:a});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let f=new ed({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(f):t.entityInterfaces.push(f)}HD(r.keys,t.keys,i),HD(r.provides,t.provides,i),HD(r.requires,t.requires,i);let c=[],l=[],p=[];for(let f of(n=r.events)!=null?n:[])switch(f.providerType){case nd.PROVIDER_TYPE_KAFKA:{l.push(new ff({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),topics:f.topics}));break}case nd.PROVIDER_TYPE_NATS:{c.push(new pf(x({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),subjects:f.subjects},f.streamConfiguration?{streamConfiguration:new df({consumerInactiveThreshold:f.streamConfiguration.consumerInactiveThreshold,consumerName:f.streamConfiguration.consumerName,streamName:f.streamConfiguration.streamName})}:{})));break}case nd.PROVIDER_TYPE_REDIS:{p.push(new mf({engineEventConfiguration:new Uo({fieldName:f.fieldName,providerId:f.providerId,type:zD(f.type),typeName:i}),channels:f.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...c),t.events.kafka.push(...l),t.events.redis.push(...p)}return t}function N1(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(f=>new rf({name:f,sourceType:Oc.FIELD_ARGUMENT})),o=new sf({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),c=((n=i.requiredScopes)==null?void 0:n.map(f=>new bc({requiredAndScopes:f})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(f=>new bc({requiredAndScopes:f})))||[],p=c.length>0;if((i.requiresAuthentication||p)&&(o.authorizationConfiguration=new af({requiresAuthentication:i.requiresAuthentication||p,requiredOrScopes:c,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let f=new Iu;sh(f,i.subscriptionFilterCondition),o.subscriptionFilterCondition=f}t.push(o)}return t}function sh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Iu;sh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new Tf({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Iu,sh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Iu;sh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}m();T();N();function WD(e){return new Error(`Normalization failed to return a ${e}.`)}function T1(e){return new Error(`Invalid router compatibility version "${e}".`)}var Rc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Rc||(Rc={}));var pde=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new Nf({key:n})},fde=e=>{switch(e){case"ws":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return bs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},mde=e=>{switch(e){case"auto":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return As.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},h1=function(e){if(!rd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw T1(e.routerCompatibilityVersion);let t=new Xl({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw WD("ConfigurationDataByTypeName");if(!n.schema)throw WD("GraphQLSchema");let r={enabled:!0},i=pde(t,OV((0,E1.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:c,interfaceObjects:l,keys:p,provides:f,requires:y,rootNodes:g}=m1(n.configurationDataByTypeName),v;switch(n.kind){case Rc.Standard:{r.enabled=!0,r.protocol=fde(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=mde(n.websocketSubprotocol||"auto"),r.url=new Mr({kind:yu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Rc.Plugin:{v=new td({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new lf({name:n.name,version:n.version})});break}case Rc.GRPC:{v=new td({mapping:n.mapping,protoSchema:n.protoSchema});break}}let P,k,K;if(c.kafka.length>0||c.nats.length>0||c.redis.length>0){P=hu.PUBSUB,K=new Ac({kafka:c.kafka,nats:c.nats,redis:c.redis});let Z=fe=>rd.ROOT_TYPE_NAMES.has(fe.typeName),W=0,Te=0;for(;W({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${rd.COMPOSITION_VERSION}`})};m();T();N();var Fc=ss(Ae());function y1(e){let t;try{t=(0,Fc.parse)(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 Nde(e){let t=(0,Pc.federateSubgraphs)(e.map(y1),Pc.LATEST_ROUTER_COMPATIBILITY_VERSION);if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(n=>n.message).join(", ")}`);return{fieldConfigurations:t.fieldConfigurations,sdl:(0,Fc.print)(t.federatedGraphAST)}}function Tde(e){let t=(0,Pc.federateSubgraphs)(e.map(y1),Pc.LATEST_ROUTER_COMPATIBILITY_VERSION);if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return h1({federatedClientSDL:(0,Fc.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Fc.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Pc.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,p;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,c=a==null?void 0:a.configurationDataByTypeName;return{kind:Rc.Standard,id:`${i}`,name:r.name,url:aD(r.url),sdl:r.schema,subscriptionUrl:aD((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(p=r.subscription_protocol)!=null?p:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:c}})}).toJsonString()}return sm(Ede);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition/src/schema-building/types.ts b/composition/src/schema-building/types.ts index 27aafad294..f2d269d315 100644 --- a/composition/src/schema-building/types.ts +++ b/composition/src/schema-building/types.ts @@ -99,6 +99,7 @@ export type FieldData = { directivesByDirectiveName: Map>; externalFieldDataBySubgraphName: Map; federatedCoords: string; + inheritedDirectiveNames: Set; isInaccessible: boolean; isShareableBySubgraphName: Map; kind: Kind.FIELD_DEFINITION; diff --git a/composition/src/v1/federation/federation-factory.ts b/composition/src/v1/federation/federation-factory.ts index 388f73f110..bb59bdab64 100644 --- a/composition/src/v1/federation/federation-factory.ts +++ b/composition/src/v1/federation/federation-factory.ts @@ -991,6 +991,8 @@ export class FederationFactory { directivesByDirectiveName: copyArrayValueMap(sourceData.directivesByDirectiveName), externalFieldDataBySubgraphName: copyObjectValueMap(sourceData.externalFieldDataBySubgraphName), federatedCoords: sourceData.federatedCoords, + // Intentionally reset; only the subgraph fields involve directive inheritance + inheritedDirectiveNames: new Set(), isInaccessible: sourceData.isInaccessible, isShareableBySubgraphName: new Map(sourceData.isShareableBySubgraphName), kind: sourceData.kind, diff --git a/composition/src/v1/normalization/normalization-factory.ts b/composition/src/v1/normalization/normalization-factory.ts index 1ee0c11bf1..a70d321b99 100644 --- a/composition/src/v1/normalization/normalization-factory.ts +++ b/composition/src/v1/normalization/normalization-factory.ts @@ -550,12 +550,17 @@ export class NormalizationFactory { } } - addInheritedDirectivesToFieldData(fieldDirectivesByDirectiveName: Map>) { - if (this.isParentObjectShareable) { - getValueOrDefault(fieldDirectivesByDirectiveName, SHAREABLE, () => [generateSimpleDirective(SHAREABLE)]); + addInheritedDirectivesToFieldData( + fieldDirectivesByDirectiveName: Map>, + inheritedDirectiveNames: Set, + ) { + if (this.isParentObjectShareable && !fieldDirectivesByDirectiveName.has(SHAREABLE)) { + fieldDirectivesByDirectiveName.set(SHAREABLE, [generateSimpleDirective(SHAREABLE)]); + inheritedDirectiveNames.add(SHAREABLE); } - if (this.isParentObjectExternal) { - getValueOrDefault(fieldDirectivesByDirectiveName, EXTERNAL, () => [generateSimpleDirective(EXTERNAL)]); + if (this.isParentObjectExternal && !fieldDirectivesByDirectiveName.has(EXTERNAL)) { + fieldDirectivesByDirectiveName.set(EXTERNAL, [generateSimpleDirective(EXTERNAL)]); + inheritedDirectiveNames.add(EXTERNAL); } return fieldDirectivesByDirectiveName; } @@ -1071,6 +1076,7 @@ export class NormalizationFactory { node: FieldDefinitionNode, argumentDataByArgumentName: Map, directivesByDirectiveName: Map, + inheritedDirectiveNames: Set = new Set(), ): FieldData { const name = node.name.value; const parentTypeName = this.renamedParentTypeName || this.originalParentTypeName; @@ -1088,6 +1094,7 @@ export class NormalizationFactory { [this.subgraphName, newExternalFieldData(isExternal)], ]), federatedCoords: `${parentTypeName}.${name}`, + inheritedDirectiveNames, isInaccessible: directivesByDirectiveName.has(INACCESSIBLE), isShareableBySubgraphName: new Map([[this.subgraphName, isShareable]]), kind: Kind.FIELD_DEFINITION, diff --git a/composition/src/v1/normalization/walkers.ts b/composition/src/v1/normalization/walkers.ts index c4f3939bba..4d32ab3200 100644 --- a/composition/src/v1/normalization/walkers.ts +++ b/composition/src/v1/normalization/walkers.ts @@ -360,9 +360,10 @@ export function upsertParentsAndChildren(nf: NormalizationFactory, document: Doc } const argumentDataByArgumentName = nf.extractArguments(new Map(), node); const directivesByDirectiveName = nf.extractDirectives(node, new Map()); + const inheritedDirectiveNames = new Set(); // Add parent-level shareable and external to the field extraction and repeatable validation if (!isParentDataInterfaceType(parentData)) { - nf.addInheritedDirectivesToFieldData(directivesByDirectiveName); + nf.addInheritedDirectivesToFieldData(directivesByDirectiveName, inheritedDirectiveNames); if (directivesByDirectiveName.has(EXTERNAL)) { nf.unvalidatedExternalFieldCoords.add(`${nf.originalParentTypeName}.${fieldName}`); } @@ -372,6 +373,7 @@ export function upsertParentsAndChildren(nf: NormalizationFactory, document: Doc node, argumentDataByArgumentName, directivesByDirectiveName, + inheritedDirectiveNames, ); if (isParentRootType) { nf.extractEventDirectivesToConfiguration(node, argumentDataByArgumentName);