diff --git a/composition-go/index.global.js b/composition-go/index.global.js index f736c5b2c6..261eebe9fd 100644 --- a/composition-go/index.global.js +++ b/composition-go/index.global.js @@ -15,17 +15,17 @@ class URL { return urlCanParse(url, base || ''); } } -"use strict";var shim=(()=>{var iH=Object.create;var xd=Object.defineProperty,aH=Object.defineProperties,sH=Object.getOwnPropertyDescriptor,oH=Object.getOwnPropertyDescriptors,uH=Object.getOwnPropertyNames,vR=Object.getOwnPropertySymbols,cH=Object.getPrototypeOf,OR=Object.prototype.hasOwnProperty,lH=Object.prototype.propertyIsEnumerable;var ln=Math.pow,iI=(e,t,n)=>t in e?xd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))OR.call(t,n)&&iI(e,n,t[n]);if(vR)for(var n of vR(t))lH.call(t,n)&&iI(e,n,t[n]);return e},$=(e,t)=>aH(e,oH(t));var Hu=(e,t)=>()=>(e&&(t=e(e=0)),t);var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pm=(e,t)=>{for(var n in t)xd(e,n,{get:t[n],enumerable:!0})},SR=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of uH(t))!OR.call(e,i)&&i!==n&&xd(e,i,{get:()=>t[i],enumerable:!(r=sH(t,i))||r.enumerable});return e};var _s=(e,t,n)=>(n=e!=null?iH(cH(e)):{},SR(t||!e||!e.__esModule?xd(n,"default",{value:e,enumerable:!0}):n,e)),Fm=e=>SR(xd({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(iI(e,typeof t!="symbol"?t+"":t,n),n),aI=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var sI=(e,t,n)=>(aI(e,t,"read from private field"),n?n.call(e):t.get(e)),dl=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},oI=(e,t,n,r)=>(aI(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var wm=(e,t,n)=>(aI(e,t,"access private method"),n);var wi=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(d){i(d)}},o=l=>{try{c(n.throw(l))}catch(d){i(d)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=Hu(()=>{"use strict"});var S={};Pm(S,{_debugEnd:()=>fP,_debugProcess:()=>pP,_events:()=>RP,_eventsCount:()=>PP,_exiting:()=>YR,_fatalExceptions:()=>uP,_getActiveHandles:()=>WR,_getActiveRequests:()=>zR,_kill:()=>ZR,_linkedBinding:()=>$R,_maxListeners:()=>AP,_preload_modules:()=>SP,_rawDebug:()=>KR,_startProfilerIdleNotifier:()=>mP,_stopProfilerIdleNotifier:()=>NP,_tickCallback:()=>dP,abort:()=>yP,addListener:()=>FP,allowedNodeEnvironmentFlags:()=>aP,arch:()=>PR,argv:()=>LR,argv0:()=>OP,assert:()=>sP,binding:()=>MR,chdir:()=>VR,config:()=>JR,cpuUsage:()=>Bm,cwd:()=>qR,debugPort:()=>vP,default:()=>qP,dlopen:()=>HR,domain:()=>QR,emit:()=>UP,emitWarning:()=>kR,env:()=>wR,execArgv:()=>CR,execPath:()=>_P,exit:()=>rP,features:()=>oP,hasUncaughtExceptionCaptureCallback:()=>lP,hrtime:()=>Cm,kill:()=>nP,listeners:()=>xP,memoryUsage:()=>tP,moduleLoadList:()=>GR,nextTick:()=>bR,off:()=>LP,on:()=>Os,once:()=>wP,openStdin:()=>iP,pid:()=>IP,platform:()=>FR,ppid:()=>gP,prependListener:()=>kP,prependOnceListener:()=>MP,reallyExit:()=>XR,release:()=>jR,removeAllListeners:()=>BP,removeListener:()=>CP,resourceUsage:()=>eP,setSourceMapsEnabled:()=>DP,setUncaughtExceptionCaptureCallback:()=>cP,stderr:()=>EP,stdin:()=>hP,stdout:()=>TP,title:()=>RR,umask:()=>xR,uptime:()=>bP,version:()=>BR,versions:()=>UR});function lI(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function dH(){!pl||!zu||(pl=!1,zu.length?vs=zu.concat(vs):Lm=-1,vs.length&&DR())}function DR(){if(!pl){var e=setTimeout(dH,0);pl=!0;for(var t=vs.length;t;){for(zu=vs,vs=[];++Lm1)for(var n=1;n{"use strict";m();T();N();vs=[],pl=!1,Lm=-1;AR.prototype.run=function(){this.fun.apply(null,this.array)};RR="browser",PR="x64",FR="browser",wR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},LR=["/usr/bin/node"],CR=[],BR="v16.8.0",UR={},kR=function(e,t){console.warn((t?t+": ":"")+e)},MR=function(e){lI("binding")},xR=function(e){return 0},qR=function(){return"/"},VR=function(e){},jR={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};KR=Dr,GR=[];QR={},YR=!1,JR={};XR=Dr,ZR=Dr,Bm=function(){return{}},eP=Bm,tP=Bm,nP=Dr,rP=Dr,iP=Dr,aP={};oP={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},uP=Dr,cP=Dr;dP=Dr,pP=Dr,fP=Dr,mP=Dr,NP=Dr,TP=void 0,EP=void 0,hP=void 0,yP=Dr,IP=2,gP=1,_P="/bin/usr/node",vP=9229,OP="node",SP=[],DP=Dr,uu={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};uu.now===void 0&&(uI=Date.now(),uu.timing&&uu.timing.navigationStart&&(uI=uu.timing.navigationStart),uu.now=()=>Date.now()-uI);cI=1e9;Cm.bigint=function(e){var t=Cm(e);return typeof BigInt=="undefined"?t[0]*cI+t[1]:BigInt(t[0]*cI)+BigInt(t[1])};AP=10,RP={},PP=0;FP=Os,wP=Os,LP=Os,CP=Os,BP=Os,UP=Dr,kP=Os,MP=Os;qP={version:BR,versions:UR,arch:PR,platform:FR,release:jR,_rawDebug:KR,moduleLoadList:GR,binding:MR,_linkedBinding:$R,_events:RP,_eventsCount:PP,_maxListeners:AP,on:Os,addListener:FP,once:wP,off:LP,removeListener:CP,removeAllListeners:BP,emit:UP,prependListener:kP,prependOnceListener:MP,listeners:xP,domain:QR,_exiting:YR,config:JR,dlopen:HR,uptime:bP,_getActiveRequests:zR,_getActiveHandles:WR,reallyExit:XR,_kill:ZR,cpuUsage:Bm,resourceUsage:eP,memoryUsage:tP,kill:nP,exit:rP,openStdin:iP,allowedNodeEnvironmentFlags:aP,assert:sP,features:oP,_fatalExceptions:uP,setUncaughtExceptionCaptureCallback:cP,hasUncaughtExceptionCaptureCallback:lP,emitWarning:kR,nextTick:bR,_tickCallback:dP,_debugProcess:pP,_debugEnd:fP,_startProfilerIdleNotifier:mP,_stopProfilerIdleNotifier:NP,stdout:TP,stdin:hP,stderr:EP,abort:yP,umask:xR,chdir:VR,cwd:qR,env:wR,title:RR,argv:LR,execArgv:CR,pid:IP,ppid:gP,execPath:_P,debugPort:vP,hrtime:Cm,argv0:OP,_preload_modules:SP,setSourceMapsEnabled:DP}});var N=Hu(()=>{"use strict";VP()});function pH(){if(jP)return qd;jP=!0,qd.byteLength=c,qd.toByteArray=d,qd.fromByteArray=I;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 U=v.indexOf("=");U===-1&&(U=w);var j=U===w?0:4-U%4;return[U,j]}function c(v){var w=o(v),U=w[0],j=w[1];return(U+j)*3/4-j}function l(v,w,U){return(w+U)*3/4-U}function d(v){var w,U=o(v),j=U[0],Y=U[1],re=new n(l(v,j,Y)),ne=0,me=Y>0?j-4:j,ue;for(ue=0;ue>16&255,re[ne++]=w>>8&255,re[ne++]=w&255;return Y===2&&(w=t[v.charCodeAt(ue)]<<2|t[v.charCodeAt(ue+1)]>>4,re[ne++]=w&255),Y===1&&(w=t[v.charCodeAt(ue)]<<10|t[v.charCodeAt(ue+1)]<<4|t[v.charCodeAt(ue+2)]>>2,re[ne++]=w>>8&255,re[ne++]=w&255),re}function f(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function y(v,w,U){for(var j,Y=[],re=w;reme?me:ne+re));return j===1?(w=v[U-1],Y.push(e[w>>2]+e[w<<4&63]+"==")):j===2&&(w=(v[U-2]<<8)+v[U-1],Y.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),Y.join("")}return qd}function fH(){if(KP)return Um;KP=!0;return Um.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,I=n?-1:1,v=e[t+y];for(y+=I,a=v&(1<<-f)-1,v>>=-f,f+=c;f>0;a=a*256+e[t+y],y+=I,f-=8);for(o=a&(1<<-f)-1,a>>=-f,f+=r;f>0;o=o*256+e[t+y],y+=I,f-=8);if(a===0)a=1-d;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-d}return(v?-1:1)*o*Math.pow(2,a-r)},Um.write=function(e,t,n,r,i,a){var o,c,l,d=a*8-i-1,f=(1<>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,w=r?1:-1,U=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+=I/l:t+=I*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+=w,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=w,o/=256,d-=8);e[n+v-w]|=U*128},Um}function mH(){if(GP)return Wu;GP=!0;let e=pH(),t=fH(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Wu.Buffer=o,Wu.SlowBuffer=Y,Wu.INSPECT_MAX_BYTES=50;let r=2147483647;Wu.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 R=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(R,h),R.foo()===42}catch(R){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(R){if(R>r)throw new RangeError('The value "'+R+'" is invalid for option "size"');let h=new Uint8Array(R);return Object.setPrototypeOf(h,o.prototype),h}function o(R,h,g){if(typeof R=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(R)}return c(R,h,g)}o.poolSize=8192;function c(R,h,g){if(typeof R=="string")return y(R,h);if(ArrayBuffer.isView(R))return v(R);if(R==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(qt(R,ArrayBuffer)||R&&qt(R.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(qt(R,SharedArrayBuffer)||R&&qt(R.buffer,SharedArrayBuffer)))return w(R,h,g);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let B=R.valueOf&&R.valueOf();if(B!=null&&B!==R)return o.from(B,h,g);let K=U(R);if(K)return K;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return o.from(R[Symbol.toPrimitive]("string"),h,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}o.from=function(R,h,g){return c(R,h,g)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(R){if(typeof R!="number")throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function d(R,h,g){return l(R),R<=0?a(R):h!==void 0?typeof g=="string"?a(R).fill(h,g):a(R).fill(h):a(R)}o.alloc=function(R,h,g){return d(R,h,g)};function f(R){return l(R),a(R<0?0:j(R)|0)}o.allocUnsafe=function(R){return f(R)},o.allocUnsafeSlow=function(R){return f(R)};function y(R,h){if((typeof h!="string"||h==="")&&(h="utf8"),!o.isEncoding(h))throw new TypeError("Unknown encoding: "+h);let g=re(R,h)|0,B=a(g),K=B.write(R,h);return K!==g&&(B=B.slice(0,K)),B}function I(R){let h=R.length<0?0:j(R.length)|0,g=a(h);for(let B=0;B=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return R|0}function Y(R){return+R!=R&&(R=0),o.alloc(+R)}o.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==o.prototype},o.compare=function(h,g){if(qt(h,Uint8Array)&&(h=o.from(h,h.offset,h.byteLength)),qt(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(h)||!o.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===g)return 0;let B=h.length,K=g.length;for(let ee=0,ce=Math.min(B,K);eeK.length?(o.isBuffer(ce)||(ce=o.from(ce)),ce.copy(K,ee)):Uint8Array.prototype.set.call(K,ce,ee);else if(o.isBuffer(ce))ce.copy(K,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=ce.length}return K};function re(R,h){if(o.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||qt(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);let g=R.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&g===0)return 0;let K=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return ps(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return Ir(R).length;default:if(K)return B?-1:ps(R).length;h=(""+h).toLowerCase(),K=!0}}o.byteLength=re;function ne(R,h,g){let B=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,h>>>=0,g<=h))return"";for(R||(R="utf8");;)switch(R){case"hex":return Mr(this,h,g);case"utf8":case"utf-8":return sn(this,h,g);case"ascii":return En(this,h,g);case"latin1":case"binary":return kr(this,h,g);case"base64":return an(this,h,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vn(this,h,g);default:if(B)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),B=!0}}o.prototype._isBuffer=!0;function me(R,h,g){let B=R[h];R[h]=R[g],R[g]=B}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 g=0;gg&&(h+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(h,g,B,K,ee){if(qt(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(g===void 0&&(g=0),B===void 0&&(B=h?h.length:0),K===void 0&&(K=0),ee===void 0&&(ee=this.length),g<0||B>h.length||K<0||ee>this.length)throw new RangeError("out of range index");if(K>=ee&&g>=B)return 0;if(K>=ee)return-1;if(g>=B)return 1;if(g>>>=0,B>>>=0,K>>>=0,ee>>>=0,this===h)return 0;let ce=ee-K,Tt=B-g,hn=Math.min(ce,Tt),cn=this.slice(K,ee),_n=h.slice(g,B);for(let on=0;on2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,gr(g)&&(g=K?0:R.length-1),g<0&&(g=R.length+g),g>=R.length){if(K)return-1;g=R.length-1}else if(g<0)if(K)g=0;else return-1;if(typeof h=="string"&&(h=o.from(h,B)),o.isBuffer(h))return h.length===0?-1:Ae(R,h,g,B,K);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(R,h,g):Uint8Array.prototype.lastIndexOf.call(R,h,g):Ae(R,[h],g,B,K);throw new TypeError("val must be string, number or Buffer")}function Ae(R,h,g,B,K){let ee=1,ce=R.length,Tt=h.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(R.length<2||h.length<2)return-1;ee=2,ce/=2,Tt/=2,g/=2}function hn(_n,on){return ee===1?_n[on]:_n.readUInt16BE(on*ee)}let cn;if(K){let _n=-1;for(cn=g;cnce&&(g=ce-Tt),cn=g;cn>=0;cn--){let _n=!0;for(let on=0;onK&&(B=K)):B=K;let ee=h.length;B>ee/2&&(B=ee/2);let ce;for(ce=0;ce>>0,isFinite(B)?(B=B>>>0,K===void 0&&(K="utf8")):(K=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ee=this.length-g;if((B===void 0||B>ee)&&(B=ee),h.length>0&&(B<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");let ce=!1;for(;;)switch(K){case"hex":return Me(this,h,g,B);case"utf8":case"utf-8":return nt(this,h,g,B);case"ascii":case"latin1":case"binary":return X(this,h,g,B);case"base64":return _e(this,h,g,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,h,g,B);default:if(ce)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function an(R,h,g){return h===0&&g===R.length?e.fromByteArray(R):e.fromByteArray(R.slice(h,g))}function sn(R,h,g){g=Math.min(R.length,g);let B=[],K=h;for(;K239?4:ee>223?3:ee>191?2:1;if(K+Tt<=g){let hn,cn,_n,on;switch(Tt){case 1:ee<128&&(ce=ee);break;case 2:hn=R[K+1],(hn&192)===128&&(on=(ee&31)<<6|hn&63,on>127&&(ce=on));break;case 3:hn=R[K+1],cn=R[K+2],(hn&192)===128&&(cn&192)===128&&(on=(ee&15)<<12|(hn&63)<<6|cn&63,on>2047&&(on<55296||on>57343)&&(ce=on));break;case 4:hn=R[K+1],cn=R[K+2],_n=R[K+3],(hn&192)===128&&(cn&192)===128&&(_n&192)===128&&(on=(ee&15)<<18|(hn&63)<<12|(cn&63)<<6|_n&63,on>65535&&on<1114112&&(ce=on))}}ce===null?(ce=65533,Tt=1):ce>65535&&(ce-=65536,B.push(ce>>>10&1023|55296),ce=56320|ce&1023),B.push(ce),K+=Tt}return $t(B)}let wn=4096;function $t(R){let h=R.length;if(h<=wn)return String.fromCharCode.apply(String,R);let g="",B=0;for(;BB)&&(g=B);let K="";for(let ee=h;eeB&&(h=B),g<0?(g+=B,g<0&&(g=0)):g>B&&(g=B),gg)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(h,g,B){h=h>>>0,g=g>>>0,B||Ht(h,g,this.length);let K=this[h],ee=1,ce=0;for(;++ce>>0,g=g>>>0,B||Ht(h,g,this.length);let K=this[h+--g],ee=1;for(;g>0&&(ee*=256);)K+=this[h+--g]*ee;return K},o.prototype.readUint8=o.prototype.readUInt8=function(h,g){return h=h>>>0,g||Ht(h,1,this.length),this[h]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(h,g){return h=h>>>0,g||Ht(h,2,this.length),this[h]|this[h+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(h,g){return h=h>>>0,g||Ht(h,2,this.length),this[h]<<8|this[h+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(h,g){return h=h>>>0,g||Ht(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,g){return h=h>>>0,g||Ht(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},o.prototype.readBigUInt64LE=Fa(function(h){h=h>>>0,rt(h,"offset");let g=this[h],B=this[h+7];(g===void 0||B===void 0)&&Ft(h,this.length-8);let K=g+this[++h]*ln(2,8)+this[++h]*ln(2,16)+this[++h]*ln(2,24),ee=this[++h]+this[++h]*ln(2,8)+this[++h]*ln(2,16)+B*ln(2,24);return BigInt(K)+(BigInt(ee)<>>0,rt(h,"offset");let g=this[h],B=this[h+7];(g===void 0||B===void 0)&&Ft(h,this.length-8);let K=g*ln(2,24)+this[++h]*ln(2,16)+this[++h]*ln(2,8)+this[++h],ee=this[++h]*ln(2,24)+this[++h]*ln(2,16)+this[++h]*ln(2,8)+B;return(BigInt(K)<>>0,g=g>>>0,B||Ht(h,g,this.length);let K=this[h],ee=1,ce=0;for(;++ce=ee&&(K-=Math.pow(2,8*g)),K},o.prototype.readIntBE=function(h,g,B){h=h>>>0,g=g>>>0,B||Ht(h,g,this.length);let K=g,ee=1,ce=this[h+--K];for(;K>0&&(ee*=256);)ce+=this[h+--K]*ee;return ee*=128,ce>=ee&&(ce-=Math.pow(2,8*g)),ce},o.prototype.readInt8=function(h,g){return h=h>>>0,g||Ht(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},o.prototype.readInt16LE=function(h,g){h=h>>>0,g||Ht(h,2,this.length);let B=this[h]|this[h+1]<<8;return B&32768?B|4294901760:B},o.prototype.readInt16BE=function(h,g){h=h>>>0,g||Ht(h,2,this.length);let B=this[h+1]|this[h]<<8;return B&32768?B|4294901760:B},o.prototype.readInt32LE=function(h,g){return h=h>>>0,g||Ht(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},o.prototype.readInt32BE=function(h,g){return h=h>>>0,g||Ht(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},o.prototype.readBigInt64LE=Fa(function(h){h=h>>>0,rt(h,"offset");let g=this[h],B=this[h+7];(g===void 0||B===void 0)&&Ft(h,this.length-8);let K=this[h+4]+this[h+5]*ln(2,8)+this[h+6]*ln(2,16)+(B<<24);return(BigInt(K)<>>0,rt(h,"offset");let g=this[h],B=this[h+7];(g===void 0||B===void 0)&&Ft(h,this.length-8);let K=(g<<24)+this[++h]*ln(2,16)+this[++h]*ln(2,8)+this[++h];return(BigInt(K)<>>0,g||Ht(h,4,this.length),t.read(this,h,!0,23,4)},o.prototype.readFloatBE=function(h,g){return h=h>>>0,g||Ht(h,4,this.length),t.read(this,h,!1,23,4)},o.prototype.readDoubleLE=function(h,g){return h=h>>>0,g||Ht(h,8,this.length),t.read(this,h,!0,52,8)},o.prototype.readDoubleBE=function(h,g){return h=h>>>0,g||Ht(h,8,this.length),t.read(this,h,!1,52,8)};function Ln(R,h,g,B,K,ee){if(!o.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>K||hR.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(h,g,B,K){if(h=+h,g=g>>>0,B=B>>>0,!K){let Tt=Math.pow(2,8*B)-1;Ln(this,h,g,B,Tt,0)}let ee=1,ce=0;for(this[g]=h&255;++ce>>0,B=B>>>0,!K){let Tt=Math.pow(2,8*B)-1;Ln(this,h,g,B,Tt,0)}let ee=B-1,ce=1;for(this[g+ee]=h&255;--ee>=0&&(ce*=256);)this[g+ee]=h/ce&255;return g+B},o.prototype.writeUint8=o.prototype.writeUInt8=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,1,255,0),this[g]=h&255,g+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,2,65535,0),this[g]=h&255,this[g+1]=h>>>8,g+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,2,65535,0),this[g]=h>>>8,this[g+1]=h&255,g+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,4,4294967295,0),this[g+3]=h>>>24,this[g+2]=h>>>16,this[g+1]=h>>>8,this[g]=h&255,g+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,4,4294967295,0),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4};function ae(R,h,g,B,K){Ut(h,B,K,R,g,7);let ee=Number(h&BigInt(4294967295));R[g++]=ee,ee=ee>>8,R[g++]=ee,ee=ee>>8,R[g++]=ee,ee=ee>>8,R[g++]=ee;let ce=Number(h>>BigInt(32)&BigInt(4294967295));return R[g++]=ce,ce=ce>>8,R[g++]=ce,ce=ce>>8,R[g++]=ce,ce=ce>>8,R[g++]=ce,g}function De(R,h,g,B,K){Ut(h,B,K,R,g,7);let ee=Number(h&BigInt(4294967295));R[g+7]=ee,ee=ee>>8,R[g+6]=ee,ee=ee>>8,R[g+5]=ee,ee=ee>>8,R[g+4]=ee;let ce=Number(h>>BigInt(32)&BigInt(4294967295));return R[g+3]=ce,ce=ce>>8,R[g+2]=ce,ce=ce>>8,R[g+1]=ce,ce=ce>>8,R[g]=ce,g+8}o.prototype.writeBigUInt64LE=Fa(function(h,g=0){return ae(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Fa(function(h,g=0){return De(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(h,g,B,K){if(h=+h,g=g>>>0,!K){let hn=Math.pow(2,8*B-1);Ln(this,h,g,B,hn-1,-hn)}let ee=0,ce=1,Tt=0;for(this[g]=h&255;++ee>0)-Tt&255;return g+B},o.prototype.writeIntBE=function(h,g,B,K){if(h=+h,g=g>>>0,!K){let hn=Math.pow(2,8*B-1);Ln(this,h,g,B,hn-1,-hn)}let ee=B-1,ce=1,Tt=0;for(this[g+ee]=h&255;--ee>=0&&(ce*=256);)h<0&&Tt===0&&this[g+ee+1]!==0&&(Tt=1),this[g+ee]=(h/ce>>0)-Tt&255;return g+B},o.prototype.writeInt8=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,1,127,-128),h<0&&(h=255+h+1),this[g]=h&255,g+1},o.prototype.writeInt16LE=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,2,32767,-32768),this[g]=h&255,this[g+1]=h>>>8,g+2},o.prototype.writeInt16BE=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,2,32767,-32768),this[g]=h>>>8,this[g+1]=h&255,g+2},o.prototype.writeInt32LE=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,4,2147483647,-2147483648),this[g]=h&255,this[g+1]=h>>>8,this[g+2]=h>>>16,this[g+3]=h>>>24,g+4},o.prototype.writeInt32BE=function(h,g,B){return h=+h,g=g>>>0,B||Ln(this,h,g,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4},o.prototype.writeBigInt64LE=Fa(function(h,g=0){return ae(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Fa(function(h,g=0){return De(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ie(R,h,g,B,K,ee){if(g+B>R.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Le(R,h,g,B,K){return h=+h,g=g>>>0,K||Ie(R,h,g,4),t.write(R,h,g,B,23,4),g+4}o.prototype.writeFloatLE=function(h,g,B){return Le(this,h,g,!0,B)},o.prototype.writeFloatBE=function(h,g,B){return Le(this,h,g,!1,B)};function St(R,h,g,B,K){return h=+h,g=g>>>0,K||Ie(R,h,g,8),t.write(R,h,g,B,52,8),g+8}o.prototype.writeDoubleLE=function(h,g,B){return St(this,h,g,!0,B)},o.prototype.writeDoubleBE=function(h,g,B){return St(this,h,g,!1,B)},o.prototype.copy=function(h,g,B,K){if(!o.isBuffer(h))throw new TypeError("argument should be a Buffer");if(B||(B=0),!K&&K!==0&&(K=this.length),g>=h.length&&(g=h.length),g||(g=0),K>0&&K=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),h.length-g>>0,B=B===void 0?this.length:B>>>0,h||(h=0);let ee;if(typeof h=="number")for(ee=g;eeln(2,32)?K=xe(String(g)):typeof g=="bigint"&&(K=String(g),(g>ln(BigInt(2),BigInt(32))||g<-ln(BigInt(2),BigInt(32)))&&(K=xe(K)),K+="n"),B+=` It must be ${h}. Received ${K}`,B},RangeError);function xe(R){let h="",g=R.length,B=R[0]==="-"?1:0;for(;g>=B+4;g-=3)h=`_${R.slice(g-3,g)}${h}`;return`${R.slice(0,g)}${h}`}function Ye(R,h,g){rt(h,"offset"),(R[h]===void 0||R[h+g]===void 0)&&Ft(h,R.length-(g+1))}function Ut(R,h,g,B,K,ee){if(R>g||R3?h===0||h===BigInt(0)?Tt=`>= 0${ce} and < 2${ce} ** ${(ee+1)*8}${ce}`:Tt=`>= -(2${ce} ** ${(ee+1)*8-1}${ce}) and < 2 ** ${(ee+1)*8-1}${ce}`:Tt=`>= ${h}${ce} and <= ${g}${ce}`,new Q.ERR_OUT_OF_RANGE("value",Tt,R)}Ye(B,K,ee)}function rt(R,h){if(typeof R!="number")throw new Q.ERR_INVALID_ARG_TYPE(h,"number",R)}function Ft(R,h,g){throw Math.floor(R)!==R?(rt(R,g),new Q.ERR_OUT_OF_RANGE(g||"offset","an integer",R)):h<0?new Q.ERR_BUFFER_OUT_OF_BOUNDS:new Q.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${h}`,R)}let ds=/[^+/0-9A-Za-z-_]/g;function Hr(R){if(R=R.split("=")[0],R=R.trim().replace(ds,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function ps(R,h){h=h||1/0;let g,B=R.length,K=null,ee=[];for(let ce=0;ce55295&&g<57344){if(!K){if(g>56319){(h-=3)>-1&&ee.push(239,191,189);continue}else if(ce+1===B){(h-=3)>-1&&ee.push(239,191,189);continue}K=g;continue}if(g<56320){(h-=3)>-1&&ee.push(239,191,189),K=g;continue}g=(K-55296<<10|g-56320)+65536}else K&&(h-=3)>-1&&ee.push(239,191,189);if(K=null,g<128){if((h-=1)<0)break;ee.push(g)}else if(g<2048){if((h-=2)<0)break;ee.push(g>>6|192,g&63|128)}else if(g<65536){if((h-=3)<0)break;ee.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((h-=4)<0)break;ee.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return ee}function Wc(R){let h=[];for(let g=0;g>8,K=g%256,ee.push(K),ee.push(B);return ee}function Ir(R){return e.toByteArray(Hr(R))}function ci(R,h,g,B){let K;for(K=0;K=h.length||K>=R.length);++K)h[K+g]=R[K];return K}function qt(R,h){return R instanceof h||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===h.name}function gr(R){return R!==R}let Mu=function(){let R="0123456789abcdef",h=new Array(256);for(let g=0;g<16;++g){let B=g*16;for(let K=0;K<16;++K)h[B+K]=R[g]+R[K]}return h}();function Fa(R){return typeof BigInt=="undefined"?xu:R}function xu(){throw new Error("BigInt not supported")}return Wu}var qd,jP,Um,KP,Wu,GP,Xu,D,zpe,Wpe,$P=Hu(()=>{"use strict";m();T();N();qd={},jP=!1;Um={},KP=!1;Wu={},GP=!1;Xu=mH();Xu.Buffer;Xu.SlowBuffer;Xu.INSPECT_MAX_BYTES;Xu.kMaxLength;D=Xu.Buffer,zpe=Xu.INSPECT_MAX_BYTES,Wpe=Xu.kMaxLength});var T=Hu(()=>{"use strict";$P()});var QP=F(fl=>{"use strict";m();T();N();Object.defineProperty(fl,"__esModule",{value:!0});fl.versionInfo=fl.version=void 0;var NH="16.9.0";fl.version=NH;var TH=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});fl.versionInfo=TH});var jr=F(dI=>{"use strict";m();T();N();Object.defineProperty(dI,"__esModule",{value:!0});dI.devAssert=EH;function EH(e,t){if(!!!e)throw new Error(t)}});var km=F(pI=>{"use strict";m();T();N();Object.defineProperty(pI,"__esModule",{value:!0});pI.isPromise=hH;function hH(e){return typeof(e==null?void 0:e.then)=="function"}});var Ba=F(fI=>{"use strict";m();T();N();Object.defineProperty(fI,"__esModule",{value:!0});fI.isObjectLike=yH;function yH(e){return typeof e=="object"&&e!==null}});var br=F(mI=>{"use strict";m();T();N();Object.defineProperty(mI,"__esModule",{value:!0});mI.invariant=IH;function IH(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var Mm=F(NI=>{"use strict";m();T();N();Object.defineProperty(NI,"__esModule",{value:!0});NI.getLocation=vH;var gH=br(),_H=/\r\n|[\n\r]/g;function vH(e,t){let n=0,r=1;for(let i of e.body.matchAll(_H)){if(typeof i.index=="number"||(0,gH.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var TI=F(xm=>{"use strict";m();T();N();Object.defineProperty(xm,"__esModule",{value:!0});xm.printLocation=SH;xm.printSourceLocation=JP;var OH=Mm();function SH(e){return JP(e.source,(0,OH.getLocation)(e.source,e.start))}function JP(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,d=`${e.name}:${o}:${l} -`,f=r.split(/\r\n|[\n\r]/g),y=f[i];if(y.length>120){let I=Math.floor(l/80),v=l%80,w=[];for(let U=0;U["|",U]),["|","^".padStart(v)],["|",w[I+1]]])}return d+YP([[`${o-1} |`,f[i-1]],[`${o} |`,y],["|","^".padStart(l)],[`${o+1} |`,f[i+1]]])}function YP(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 ze=F(ml=>{"use strict";m();T();N();Object.defineProperty(ml,"__esModule",{value:!0});ml.GraphQLError=void 0;ml.formatError=RH;ml.printError=AH;var DH=Ba(),HP=Mm(),zP=TI();function bH(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 EI=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:c,positions:l,path:d,originalError:f,extensions:y}=bH(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=f!=null?f:void 0,this.nodes=WP(Array.isArray(o)?o:o?[o]:void 0);let I=WP((r=this.nodes)===null||r===void 0?void 0:r.map(w=>w.loc).filter(w=>w!=null));this.source=c!=null?c:I==null||(i=I[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:I==null?void 0:I.map(w=>w.start),this.locations=l&&c?l.map(w=>(0,HP.getLocation)(c,w)):I==null?void 0:I.map(w=>(0,HP.getLocation)(w.source,w.start));let v=(0,DH.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+=` +"use strict";var shim=(()=>{var SH=Object.create;var Bd=Object.defineProperty,DH=Object.defineProperties,bH=Object.getOwnPropertyDescriptor,AH=Object.getOwnPropertyDescriptors,RH=Object.getOwnPropertyNames,Pm=Object.getOwnPropertySymbols,PH=Object.getPrototypeOf,qy=Object.prototype.hasOwnProperty,BR=Object.prototype.propertyIsEnumerable;var cn=Math.pow,xy=(e,t,n)=>t in e?Bd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||(t={}))qy.call(t,n)&&xy(e,n,t[n]);if(Pm)for(var n of Pm(t))BR.call(t,n)&&xy(e,n,t[n]);return e},Q=(e,t)=>DH(e,AH(t));var UR=(e,t)=>{var n={};for(var r in e)qy.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Pm)for(var r of Pm(e))t.indexOf(r)<0&&BR.call(e,r)&&(n[r]=e[r]);return n};var Qu=(e,t)=>()=>(e&&(t=e(e=0)),t);var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fm=(e,t)=>{for(var n in t)Bd(e,n,{get:t[n],enumerable:!0})},kR=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of RH(t))!qy.call(e,i)&&i!==n&&Bd(e,i,{get:()=>t[i],enumerable:!(r=bH(t,i))||r.enumerable});return e};var ys=(e,t,n)=>(n=e!=null?SH(PH(e)):{},kR(t||!e||!e.__esModule?Bd(n,"default",{value:e,enumerable:!0}):n,e)),wm=e=>kR(Bd({},"__esModule",{value:!0}),e);var _=(e,t,n)=>(xy(e,typeof t!="symbol"?t+"":t,n),n),Vy=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var jy=(e,t,n)=>(Vy(e,t,"read from private field"),n?n.call(e):t.get(e)),Yu=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Ky=(e,t,n,r)=>(Vy(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Ud=(e,t,n)=>(Vy(e,t,"access private method"),n);var Ai=(e,t,n)=>new Promise((r,i)=>{var a=l=>{try{c(n.next(l))}catch(d){i(d)}},o=l=>{try{c(n.throw(l))}catch(d){i(d)}},c=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);c((n=n.apply(e,t)).next())});var m=Qu(()=>{"use strict"});var S={};Fm(S,{_debugEnd:()=>SP,_debugProcess:()=>OP,_events:()=>VP,_eventsCount:()=>jP,_exiting:()=>aP,_fatalExceptions:()=>IP,_getActiveHandles:()=>cP,_getActiveRequests:()=>uP,_kill:()=>dP,_linkedBinding:()=>rP,_maxListeners:()=>qP,_preload_modules:()=>kP,_rawDebug:()=>tP,_startProfilerIdleNotifier:()=>DP,_stopProfilerIdleNotifier:()=>bP,_tickCallback:()=>vP,abort:()=>FP,addListener:()=>KP,allowedNodeEnvironmentFlags:()=>EP,arch:()=>jR,argv:()=>$R,argv0:()=>UP,assert:()=>hP,binding:()=>zR,chdir:()=>ZR,config:()=>sP,cpuUsage:()=>Bm,cwd:()=>XR,debugPort:()=>BP,default:()=>XP,dlopen:()=>oP,domain:()=>iP,emit:()=>JP,emitWarning:()=>HR,env:()=>GR,execArgv:()=>QR,execPath:()=>CP,exit:()=>NP,features:()=>yP,hasUncaughtExceptionCaptureCallback:()=>_P,hrtime:()=>Cm,kill:()=>mP,listeners:()=>WP,memoryUsage:()=>pP,moduleLoadList:()=>nP,nextTick:()=>xR,off:()=>$P,on:()=>gs,once:()=>GP,openStdin:()=>TP,pid:()=>wP,platform:()=>KR,ppid:()=>LP,prependListener:()=>HP,prependOnceListener:()=>zP,reallyExit:()=>lP,release:()=>eP,removeAllListeners:()=>YP,removeListener:()=>QP,resourceUsage:()=>fP,setSourceMapsEnabled:()=>MP,setUncaughtExceptionCaptureCallback:()=>gP,stderr:()=>RP,stdin:()=>PP,stdout:()=>AP,title:()=>VR,umask:()=>WR,uptime:()=>xP,version:()=>YR,versions:()=>JR});function Qy(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function FH(){!cl||!Ju||(cl=!1,Ju.length?Is=Ju.concat(Is):Lm=-1,Is.length&&MR())}function MR(){if(!cl){var e=setTimeout(FH,0);cl=!0;for(var t=Is.length;t;){for(Ju=Is,Is=[];++Lm1)for(var n=1;n{"use strict";m();T();N();Is=[],cl=!1,Lm=-1;qR.prototype.run=function(){this.fun.apply(null,this.array)};VR="browser",jR="x64",KR="browser",GR={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},$R=["/usr/bin/node"],QR=[],YR="v16.8.0",JR={},HR=function(e,t){console.warn((t?t+": ":"")+e)},zR=function(e){Qy("binding")},WR=function(e){return 0},XR=function(){return"/"},ZR=function(e){},eP={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};tP=Or,nP=[];iP={},aP=!1,sP={};lP=Or,dP=Or,Bm=function(){return{}},fP=Bm,pP=Bm,mP=Or,NP=Or,TP=Or,EP={};yP={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},IP=Or,gP=Or;vP=Or,OP=Or,SP=Or,DP=Or,bP=Or,AP=void 0,RP=void 0,PP=void 0,FP=Or,wP=2,LP=1,CP="/bin/usr/node",BP=9229,UP="node",kP=[],MP=Or,su={now:typeof performance!="undefined"?performance.now.bind(performance):void 0,timing:typeof performance!="undefined"?performance.timing:void 0};su.now===void 0&&(Gy=Date.now(),su.timing&&su.timing.navigationStart&&(Gy=su.timing.navigationStart),su.now=()=>Date.now()-Gy);$y=1e9;Cm.bigint=function(e){var t=Cm(e);return typeof BigInt=="undefined"?t[0]*$y+t[1]:BigInt(t[0]*$y)+BigInt(t[1])};qP=10,VP={},jP=0;KP=gs,GP=gs,$P=gs,QP=gs,YP=gs,JP=Or,HP=gs,zP=gs;XP={version:YR,versions:JR,arch:jR,platform:KR,release:eP,_rawDebug:tP,moduleLoadList:nP,binding:zR,_linkedBinding:rP,_events:VP,_eventsCount:jP,_maxListeners:qP,on:gs,addListener:KP,once:GP,off:$P,removeListener:QP,removeAllListeners:YP,emit:JP,prependListener:HP,prependOnceListener:zP,listeners:WP,domain:iP,_exiting:aP,config:sP,dlopen:oP,uptime:xP,_getActiveRequests:uP,_getActiveHandles:cP,reallyExit:lP,_kill:dP,cpuUsage:Bm,resourceUsage:fP,memoryUsage:pP,kill:mP,exit:NP,openStdin:TP,allowedNodeEnvironmentFlags:EP,assert:hP,features:yP,_fatalExceptions:IP,setUncaughtExceptionCaptureCallback:gP,hasUncaughtExceptionCaptureCallback:_P,emitWarning:HR,nextTick:xR,_tickCallback:vP,_debugProcess:OP,_debugEnd:SP,_startProfilerIdleNotifier:DP,_stopProfilerIdleNotifier:bP,stdout:AP,stdin:PP,stderr:RP,abort:FP,umask:WR,chdir:ZR,cwd:XR,env:GR,title:VR,argv:$R,execArgv:QR,pid:wP,ppid:LP,execPath:CP,debugPort:BP,hrtime:Cm,argv0:UP,_preload_modules:kP,setSourceMapsEnabled:MP}});var N=Qu(()=>{"use strict";ZP()});function wH(){if(eF)return kd;eF=!0,kd.byteLength=c,kd.toByteArray=d,kd.fromByteArray=I;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 U=v.indexOf("=");U===-1&&(U=A);var j=U===A?0:4-U%4;return[U,j]}function c(v){var A=o(v),U=A[0],j=A[1];return(U+j)*3/4-j}function l(v,A,U){return(A+U)*3/4-U}function d(v){var A,U=o(v),j=U[0],G=U[1],re=new n(l(v,j,G)),ne=0,me=G>0?j-4:j,ue;for(ue=0;ue>16&255,re[ne++]=A>>8&255,re[ne++]=A&255;return G===2&&(A=t[v.charCodeAt(ue)]<<2|t[v.charCodeAt(ue+1)]>>4,re[ne++]=A&255),G===1&&(A=t[v.charCodeAt(ue)]<<10|t[v.charCodeAt(ue+1)]<<4|t[v.charCodeAt(ue+2)]>>2,re[ne++]=A>>8&255,re[ne++]=A&255),re}function p(v){return e[v>>18&63]+e[v>>12&63]+e[v>>6&63]+e[v&63]}function E(v,A,U){for(var j,G=[],re=A;reme?me:ne+re));return j===1?(A=v[U-1],G.push(e[A>>2]+e[A<<4&63]+"==")):j===2&&(A=(v[U-2]<<8)+v[U-1],G.push(e[A>>10]+e[A>>4&63]+e[A<<2&63]+"=")),G.join("")}return kd}function LH(){if(tF)return Um;tF=!0;return Um.read=function(e,t,n,r,i){var a,o,c=i*8-r-1,l=(1<>1,p=-7,E=n?i-1:0,I=n?-1:1,v=e[t+E];for(E+=I,a=v&(1<<-p)-1,v>>=-p,p+=c;p>0;a=a*256+e[t+E],E+=I,p-=8);for(o=a&(1<<-p)-1,a>>=-p,p+=r;p>0;o=o*256+e[t+E],E+=I,p-=8);if(a===0)a=1-d;else{if(a===l)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,r),a=a-d}return(v?-1:1)*o*Math.pow(2,a-r)},Um.write=function(e,t,n,r,i,a){var o,c,l,d=a*8-i-1,p=(1<>1,I=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=r?0:a-1,A=r?1:-1,U=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=p):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+E>=1?t+=I/l:t+=I*Math.pow(2,1-E),t*l>=2&&(o++,l/=2),o+E>=p?(c=0,o=p):o+E>=1?(c=(t*l-1)*Math.pow(2,i),o=o+E):(c=t*Math.pow(2,E-1)*Math.pow(2,i),o=0));i>=8;e[n+v]=c&255,v+=A,c/=256,i-=8);for(o=o<0;e[n+v]=o&255,v+=A,o/=256,d-=8);e[n+v-A]|=U*128},Um}function CH(){if(nF)return Hu;nF=!0;let e=wH(),t=LH(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Hu.Buffer=o,Hu.SlowBuffer=G,Hu.INSPECT_MAX_BYTES=50;let r=2147483647;Hu.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 P=new Uint8Array(1),y={foo:function(){return 42}};return Object.setPrototypeOf(y,Uint8Array.prototype),Object.setPrototypeOf(P,y),P.foo()===42}catch(P){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(P){if(P>r)throw new RangeError('The value "'+P+'" is invalid for option "size"');let y=new Uint8Array(P);return Object.setPrototypeOf(y,o.prototype),y}function o(P,y,g){if(typeof P=="number"){if(typeof y=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(P)}return c(P,y,g)}o.poolSize=8192;function c(P,y,g){if(typeof P=="string")return E(P,y);if(ArrayBuffer.isView(P))return v(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(xt(P,ArrayBuffer)||P&&xt(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(xt(P,SharedArrayBuffer)||P&&xt(P.buffer,SharedArrayBuffer)))return A(P,y,g);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let B=P.valueOf&&P.valueOf();if(B!=null&&B!==P)return o.from(B,y,g);let K=U(P);if(K)return K;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return o.from(P[Symbol.toPrimitive]("string"),y,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}o.from=function(P,y,g){return c(P,y,g)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function d(P,y,g){return l(P),P<=0?a(P):y!==void 0?typeof g=="string"?a(P).fill(y,g):a(P).fill(y):a(P)}o.alloc=function(P,y,g){return d(P,y,g)};function p(P){return l(P),a(P<0?0:j(P)|0)}o.allocUnsafe=function(P){return p(P)},o.allocUnsafeSlow=function(P){return p(P)};function E(P,y){if((typeof y!="string"||y==="")&&(y="utf8"),!o.isEncoding(y))throw new TypeError("Unknown encoding: "+y);let g=re(P,y)|0,B=a(g),K=B.write(P,y);return K!==g&&(B=B.slice(0,K)),B}function I(P){let y=P.length<0?0:j(P.length)|0,g=a(y);for(let B=0;B=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return P|0}function G(P){return+P!=P&&(P=0),o.alloc(+P)}o.isBuffer=function(y){return y!=null&&y._isBuffer===!0&&y!==o.prototype},o.compare=function(y,g){if(xt(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),xt(g,Uint8Array)&&(g=o.from(g,g.offset,g.byteLength)),!o.isBuffer(y)||!o.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(y===g)return 0;let B=y.length,K=g.length;for(let ee=0,ce=Math.min(B,K);eeK.length?(o.isBuffer(ce)||(ce=o.from(ce)),ce.copy(K,ee)):Uint8Array.prototype.set.call(K,ce,ee);else if(o.isBuffer(ce))ce.copy(K,ee);else throw new TypeError('"list" argument must be an Array of Buffers');ee+=ce.length}return K};function re(P,y){if(o.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||xt(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);let g=P.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&g===0)return 0;let K=!1;for(;;)switch(y){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return cs(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return hr(P).length;default:if(K)return B?-1:cs(P).length;y=(""+y).toLowerCase(),K=!0}}o.byteLength=re;function ne(P,y,g){let B=!1;if((y===void 0||y<0)&&(y=0),y>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,y>>>=0,g<=y))return"";for(P||(P="utf8");;)switch(P){case"hex":return Br(this,y,g);case"utf8":case"utf-8":return an(this,y,g);case"ascii":return Tn(this,y,g);case"latin1":case"binary":return Cr(this,y,g);case"base64":return rn(this,y,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xn(this,y,g);default:if(B)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),B=!0}}o.prototype._isBuffer=!0;function me(P,y,g){let B=P[y];P[y]=P[g],P[g]=B}o.prototype.swap16=function(){let y=this.length;if(y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;gg&&(y+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(y,g,B,K,ee){if(xt(y,Uint8Array)&&(y=o.from(y,y.offset,y.byteLength)),!o.isBuffer(y))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof y);if(g===void 0&&(g=0),B===void 0&&(B=y?y.length:0),K===void 0&&(K=0),ee===void 0&&(ee=this.length),g<0||B>y.length||K<0||ee>this.length)throw new RangeError("out of range index");if(K>=ee&&g>=B)return 0;if(K>=ee)return-1;if(g>=B)return 1;if(g>>>=0,B>>>=0,K>>>=0,ee>>>=0,this===y)return 0;let ce=ee-K,Tt=B-g,En=Math.min(ce,Tt),un=this.slice(K,ee),_n=y.slice(g,B);for(let sn=0;sn2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,yr(g)&&(g=K?0:P.length-1),g<0&&(g=P.length+g),g>=P.length){if(K)return-1;g=P.length-1}else if(g<0)if(K)g=0;else return-1;if(typeof y=="string"&&(y=o.from(y,B)),o.isBuffer(y))return y.length===0?-1:Ae(P,y,g,B,K);if(typeof y=="number")return y=y&255,typeof Uint8Array.prototype.indexOf=="function"?K?Uint8Array.prototype.indexOf.call(P,y,g):Uint8Array.prototype.lastIndexOf.call(P,y,g):Ae(P,[y],g,B,K);throw new TypeError("val must be string, number or Buffer")}function Ae(P,y,g,B,K){let ee=1,ce=P.length,Tt=y.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(P.length<2||y.length<2)return-1;ee=2,ce/=2,Tt/=2,g/=2}function En(_n,sn){return ee===1?_n[sn]:_n.readUInt16BE(sn*ee)}let un;if(K){let _n=-1;for(un=g;unce&&(g=ce-Tt),un=g;un>=0;un--){let _n=!0;for(let sn=0;snK&&(B=K)):B=K;let ee=y.length;B>ee/2&&(B=ee/2);let ce;for(ce=0;ce>>0,isFinite(B)?(B=B>>>0,K===void 0&&(K="utf8")):(K=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let ee=this.length-g;if((B===void 0||B>ee)&&(B=ee),y.length>0&&(B<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");K||(K="utf8");let ce=!1;for(;;)switch(K){case"hex":return xe(this,y,g,B);case"utf8":case"utf-8":return rt(this,y,g,B);case"ascii":case"latin1":case"binary":return Z(this,y,g,B);case"base64":return _e(this,y,g,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,y,g,B);default:if(ce)throw new TypeError("Unknown encoding: "+K);K=(""+K).toLowerCase(),ce=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function rn(P,y,g){return y===0&&g===P.length?e.fromByteArray(P):e.fromByteArray(P.slice(y,g))}function an(P,y,g){g=Math.min(P.length,g);let B=[],K=y;for(;K239?4:ee>223?3:ee>191?2:1;if(K+Tt<=g){let En,un,_n,sn;switch(Tt){case 1:ee<128&&(ce=ee);break;case 2:En=P[K+1],(En&192)===128&&(sn=(ee&31)<<6|En&63,sn>127&&(ce=sn));break;case 3:En=P[K+1],un=P[K+2],(En&192)===128&&(un&192)===128&&(sn=(ee&15)<<12|(En&63)<<6|un&63,sn>2047&&(sn<55296||sn>57343)&&(ce=sn));break;case 4:En=P[K+1],un=P[K+2],_n=P[K+3],(En&192)===128&&(un&192)===128&&(_n&192)===128&&(sn=(ee&15)<<18|(En&63)<<12|(un&63)<<6|_n&63,sn>65535&&sn<1114112&&(ce=sn))}}ce===null?(ce=65533,Tt=1):ce>65535&&(ce-=65536,B.push(ce>>>10&1023|55296),ce=56320|ce&1023),B.push(ce),K+=Tt}return $t(B)}let Fn=4096;function $t(P){let y=P.length;if(y<=Fn)return String.fromCharCode.apply(String,P);let g="",B=0;for(;BB)&&(g=B);let K="";for(let ee=y;eeB&&(y=B),g<0?(g+=B,g<0&&(g=0)):g>B&&(g=B),gg)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(y,g,B){y=y>>>0,g=g>>>0,B||Ht(y,g,this.length);let K=this[y],ee=1,ce=0;for(;++ce>>0,g=g>>>0,B||Ht(y,g,this.length);let K=this[y+--g],ee=1;for(;g>0&&(ee*=256);)K+=this[y+--g]*ee;return K},o.prototype.readUint8=o.prototype.readUInt8=function(y,g){return y=y>>>0,g||Ht(y,1,this.length),this[y]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(y,g){return y=y>>>0,g||Ht(y,2,this.length),this[y]|this[y+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(y,g){return y=y>>>0,g||Ht(y,2,this.length),this[y]<<8|this[y+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),(this[y]|this[y+1]<<8|this[y+2]<<16)+this[y+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),this[y]*16777216+(this[y+1]<<16|this[y+2]<<8|this[y+3])},o.prototype.readBigUInt64LE=Fa(function(y){y=y>>>0,it(y,"offset");let g=this[y],B=this[y+7];(g===void 0||B===void 0)&&Pt(y,this.length-8);let K=g+this[++y]*cn(2,8)+this[++y]*cn(2,16)+this[++y]*cn(2,24),ee=this[++y]+this[++y]*cn(2,8)+this[++y]*cn(2,16)+B*cn(2,24);return BigInt(K)+(BigInt(ee)<>>0,it(y,"offset");let g=this[y],B=this[y+7];(g===void 0||B===void 0)&&Pt(y,this.length-8);let K=g*cn(2,24)+this[++y]*cn(2,16)+this[++y]*cn(2,8)+this[++y],ee=this[++y]*cn(2,24)+this[++y]*cn(2,16)+this[++y]*cn(2,8)+B;return(BigInt(K)<>>0,g=g>>>0,B||Ht(y,g,this.length);let K=this[y],ee=1,ce=0;for(;++ce=ee&&(K-=Math.pow(2,8*g)),K},o.prototype.readIntBE=function(y,g,B){y=y>>>0,g=g>>>0,B||Ht(y,g,this.length);let K=g,ee=1,ce=this[y+--K];for(;K>0&&(ee*=256);)ce+=this[y+--K]*ee;return ee*=128,ce>=ee&&(ce-=Math.pow(2,8*g)),ce},o.prototype.readInt8=function(y,g){return y=y>>>0,g||Ht(y,1,this.length),this[y]&128?(255-this[y]+1)*-1:this[y]},o.prototype.readInt16LE=function(y,g){y=y>>>0,g||Ht(y,2,this.length);let B=this[y]|this[y+1]<<8;return B&32768?B|4294901760:B},o.prototype.readInt16BE=function(y,g){y=y>>>0,g||Ht(y,2,this.length);let B=this[y+1]|this[y]<<8;return B&32768?B|4294901760:B},o.prototype.readInt32LE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),this[y]|this[y+1]<<8|this[y+2]<<16|this[y+3]<<24},o.prototype.readInt32BE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),this[y]<<24|this[y+1]<<16|this[y+2]<<8|this[y+3]},o.prototype.readBigInt64LE=Fa(function(y){y=y>>>0,it(y,"offset");let g=this[y],B=this[y+7];(g===void 0||B===void 0)&&Pt(y,this.length-8);let K=this[y+4]+this[y+5]*cn(2,8)+this[y+6]*cn(2,16)+(B<<24);return(BigInt(K)<>>0,it(y,"offset");let g=this[y],B=this[y+7];(g===void 0||B===void 0)&&Pt(y,this.length-8);let K=(g<<24)+this[++y]*cn(2,16)+this[++y]*cn(2,8)+this[++y];return(BigInt(K)<>>0,g||Ht(y,4,this.length),t.read(this,y,!0,23,4)},o.prototype.readFloatBE=function(y,g){return y=y>>>0,g||Ht(y,4,this.length),t.read(this,y,!1,23,4)},o.prototype.readDoubleLE=function(y,g){return y=y>>>0,g||Ht(y,8,this.length),t.read(this,y,!0,52,8)},o.prototype.readDoubleBE=function(y,g){return y=y>>>0,g||Ht(y,8,this.length),t.read(this,y,!1,52,8)};function wn(P,y,g,B,K,ee){if(!o.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(y>K||yP.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(y,g,B,K){if(y=+y,g=g>>>0,B=B>>>0,!K){let Tt=Math.pow(2,8*B)-1;wn(this,y,g,B,Tt,0)}let ee=1,ce=0;for(this[g]=y&255;++ce>>0,B=B>>>0,!K){let Tt=Math.pow(2,8*B)-1;wn(this,y,g,B,Tt,0)}let ee=B-1,ce=1;for(this[g+ee]=y&255;--ee>=0&&(ce*=256);)this[g+ee]=y/ce&255;return g+B},o.prototype.writeUint8=o.prototype.writeUInt8=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,1,255,0),this[g]=y&255,g+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,2,65535,0),this[g]=y&255,this[g+1]=y>>>8,g+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,2,65535,0),this[g]=y>>>8,this[g+1]=y&255,g+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,4,4294967295,0),this[g+3]=y>>>24,this[g+2]=y>>>16,this[g+1]=y>>>8,this[g]=y&255,g+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,4,4294967295,0),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4};function ae(P,y,g,B,K){Bt(y,B,K,P,g,7);let ee=Number(y&BigInt(4294967295));P[g++]=ee,ee=ee>>8,P[g++]=ee,ee=ee>>8,P[g++]=ee,ee=ee>>8,P[g++]=ee;let ce=Number(y>>BigInt(32)&BigInt(4294967295));return P[g++]=ce,ce=ce>>8,P[g++]=ce,ce=ce>>8,P[g++]=ce,ce=ce>>8,P[g++]=ce,g}function De(P,y,g,B,K){Bt(y,B,K,P,g,7);let ee=Number(y&BigInt(4294967295));P[g+7]=ee,ee=ee>>8,P[g+6]=ee,ee=ee>>8,P[g+5]=ee,ee=ee>>8,P[g+4]=ee;let ce=Number(y>>BigInt(32)&BigInt(4294967295));return P[g+3]=ce,ce=ce>>8,P[g+2]=ce,ce=ce>>8,P[g+1]=ce,ce=ce>>8,P[g]=ce,g+8}o.prototype.writeBigUInt64LE=Fa(function(y,g=0){return ae(this,y,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Fa(function(y,g=0){return De(this,y,g,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(y,g,B,K){if(y=+y,g=g>>>0,!K){let En=Math.pow(2,8*B-1);wn(this,y,g,B,En-1,-En)}let ee=0,ce=1,Tt=0;for(this[g]=y&255;++ee>0)-Tt&255;return g+B},o.prototype.writeIntBE=function(y,g,B,K){if(y=+y,g=g>>>0,!K){let En=Math.pow(2,8*B-1);wn(this,y,g,B,En-1,-En)}let ee=B-1,ce=1,Tt=0;for(this[g+ee]=y&255;--ee>=0&&(ce*=256);)y<0&&Tt===0&&this[g+ee+1]!==0&&(Tt=1),this[g+ee]=(y/ce>>0)-Tt&255;return g+B},o.prototype.writeInt8=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,1,127,-128),y<0&&(y=255+y+1),this[g]=y&255,g+1},o.prototype.writeInt16LE=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,2,32767,-32768),this[g]=y&255,this[g+1]=y>>>8,g+2},o.prototype.writeInt16BE=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,2,32767,-32768),this[g]=y>>>8,this[g+1]=y&255,g+2},o.prototype.writeInt32LE=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,4,2147483647,-2147483648),this[g]=y&255,this[g+1]=y>>>8,this[g+2]=y>>>16,this[g+3]=y>>>24,g+4},o.prototype.writeInt32BE=function(y,g,B){return y=+y,g=g>>>0,B||wn(this,y,g,4,2147483647,-2147483648),y<0&&(y=4294967295+y+1),this[g]=y>>>24,this[g+1]=y>>>16,this[g+2]=y>>>8,this[g+3]=y&255,g+4},o.prototype.writeBigInt64LE=Fa(function(y,g=0){return ae(this,y,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Fa(function(y,g=0){return De(this,y,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ie(P,y,g,B,K,ee){if(g+B>P.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ce(P,y,g,B,K){return y=+y,g=g>>>0,K||Ie(P,y,g,4),t.write(P,y,g,B,23,4),g+4}o.prototype.writeFloatLE=function(y,g,B){return Ce(this,y,g,!0,B)},o.prototype.writeFloatBE=function(y,g,B){return Ce(this,y,g,!1,B)};function Ot(P,y,g,B,K){return y=+y,g=g>>>0,K||Ie(P,y,g,8),t.write(P,y,g,B,52,8),g+8}o.prototype.writeDoubleLE=function(y,g,B){return Ot(this,y,g,!0,B)},o.prototype.writeDoubleBE=function(y,g,B){return Ot(this,y,g,!1,B)},o.prototype.copy=function(y,g,B,K){if(!o.isBuffer(y))throw new TypeError("argument should be a Buffer");if(B||(B=0),!K&&K!==0&&(K=this.length),g>=y.length&&(g=y.length),g||(g=0),K>0&&K=this.length)throw new RangeError("Index out of range");if(K<0)throw new RangeError("sourceEnd out of bounds");K>this.length&&(K=this.length),y.length-g>>0,B=B===void 0?this.length:B>>>0,y||(y=0);let ee;if(typeof y=="number")for(ee=g;eecn(2,32)?K=qe(String(g)):typeof g=="bigint"&&(K=String(g),(g>cn(BigInt(2),BigInt(32))||g<-cn(BigInt(2),BigInt(32)))&&(K=qe(K)),K+="n"),B+=` It must be ${y}. Received ${K}`,B},RangeError);function qe(P){let y="",g=P.length,B=P[0]==="-"?1:0;for(;g>=B+4;g-=3)y=`_${P.slice(g-3,g)}${y}`;return`${P.slice(0,g)}${y}`}function Je(P,y,g){it(y,"offset"),(P[y]===void 0||P[y+g]===void 0)&&Pt(y,P.length-(g+1))}function Bt(P,y,g,B,K,ee){if(P>g||P3?y===0||y===BigInt(0)?Tt=`>= 0${ce} and < 2${ce} ** ${(ee+1)*8}${ce}`:Tt=`>= -(2${ce} ** ${(ee+1)*8-1}${ce}) and < 2 ** ${(ee+1)*8-1}${ce}`:Tt=`>= ${y}${ce} and <= ${g}${ce}`,new Y.ERR_OUT_OF_RANGE("value",Tt,P)}Je(B,K,ee)}function it(P,y){if(typeof P!="number")throw new Y.ERR_INVALID_ARG_TYPE(y,"number",P)}function Pt(P,y,g){throw Math.floor(P)!==P?(it(P,g),new Y.ERR_OUT_OF_RANGE(g||"offset","an integer",P)):y<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${y}`,P)}let us=/[^+/0-9A-Za-z-_]/g;function Qr(P){if(P=P.split("=")[0],P=P.trim().replace(us,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function cs(P,y){y=y||1/0;let g,B=P.length,K=null,ee=[];for(let ce=0;ce55295&&g<57344){if(!K){if(g>56319){(y-=3)>-1&&ee.push(239,191,189);continue}else if(ce+1===B){(y-=3)>-1&&ee.push(239,191,189);continue}K=g;continue}if(g<56320){(y-=3)>-1&&ee.push(239,191,189),K=g;continue}g=(K-55296<<10|g-56320)+65536}else K&&(y-=3)>-1&&ee.push(239,191,189);if(K=null,g<128){if((y-=1)<0)break;ee.push(g)}else if(g<2048){if((y-=2)<0)break;ee.push(g>>6|192,g&63|128)}else if(g<65536){if((y-=3)<0)break;ee.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((y-=4)<0)break;ee.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return ee}function Hc(P){let y=[];for(let g=0;g>8,K=g%256,ee.push(K),ee.push(B);return ee}function hr(P){return e.toByteArray(Qr(P))}function si(P,y,g,B){let K;for(K=0;K=y.length||K>=P.length);++K)y[K+g]=P[K];return K}function xt(P,y){return P instanceof y||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===y.name}function yr(P){return P!==P}let Bu=function(){let P="0123456789abcdef",y=new Array(256);for(let g=0;g<16;++g){let B=g*16;for(let K=0;K<16;++K)y[B+K]=P[g]+P[K]}return y}();function Fa(P){return typeof BigInt=="undefined"?Uu:P}function Uu(){throw new Error("BigInt not supported")}return Hu}var kd,eF,Um,tF,Hu,nF,zu,D,Dpe,bpe,rF=Qu(()=>{"use strict";m();T();N();kd={},eF=!1;Um={},tF=!1;Hu={},nF=!1;zu=CH();zu.Buffer;zu.SlowBuffer;zu.INSPECT_MAX_BYTES;zu.kMaxLength;D=zu.Buffer,Dpe=zu.INSPECT_MAX_BYTES,bpe=zu.kMaxLength});var T=Qu(()=>{"use strict";rF()});var iF=w(ll=>{"use strict";m();T();N();Object.defineProperty(ll,"__esModule",{value:!0});ll.versionInfo=ll.version=void 0;var BH="16.9.0";ll.version=BH;var UH=Object.freeze({major:16,minor:9,patch:0,preReleaseTag:null});ll.versionInfo=UH});var xr=w(Yy=>{"use strict";m();T();N();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.devAssert=kH;function kH(e,t){if(!!!e)throw new Error(t)}});var km=w(Jy=>{"use strict";m();T();N();Object.defineProperty(Jy,"__esModule",{value:!0});Jy.isPromise=MH;function MH(e){return typeof(e==null?void 0:e.then)=="function"}});var Ba=w(Hy=>{"use strict";m();T();N();Object.defineProperty(Hy,"__esModule",{value:!0});Hy.isObjectLike=xH;function xH(e){return typeof e=="object"&&e!==null}});var Sr=w(zy=>{"use strict";m();T();N();Object.defineProperty(zy,"__esModule",{value:!0});zy.invariant=qH;function qH(e,t){if(!!!e)throw new Error(t!=null?t:"Unexpected invariant triggered.")}});var Mm=w(Wy=>{"use strict";m();T();N();Object.defineProperty(Wy,"__esModule",{value:!0});Wy.getLocation=KH;var VH=Sr(),jH=/\r\n|[\n\r]/g;function KH(e,t){let n=0,r=1;for(let i of e.body.matchAll(jH)){if(typeof i.index=="number"||(0,VH.invariant)(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}});var Xy=w(xm=>{"use strict";m();T();N();Object.defineProperty(xm,"__esModule",{value:!0});xm.printLocation=$H;xm.printSourceLocation=sF;var GH=Mm();function $H(e){return sF(e.source,(0,GH.getLocation)(e.source,e.start))}function sF(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,d=`${e.name}:${o}:${l} +`,p=r.split(/\r\n|[\n\r]/g),E=p[i];if(E.length>120){let I=Math.floor(l/80),v=l%80,A=[];for(let U=0;U["|",U]),["|","^".padStart(v)],["|",A[I+1]]])}return d+aF([[`${o-1} |`,p[i-1]],[`${o} |`,E],["|","^".padStart(l)],[`${o+1} |`,p[i+1]]])}function aF(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 ze=w(dl=>{"use strict";m();T();N();Object.defineProperty(dl,"__esModule",{value:!0});dl.GraphQLError=void 0;dl.formatError=HH;dl.printError=JH;var QH=Ba(),oF=Mm(),uF=Xy();function YH(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 Zy=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:c,positions:l,path:d,originalError:p,extensions:E}=YH(n);super(t),this.name="GraphQLError",this.path=d!=null?d:void 0,this.originalError=p!=null?p:void 0,this.nodes=cF(Array.isArray(o)?o:o?[o]:void 0);let I=cF((r=this.nodes)===null||r===void 0?void 0:r.map(A=>A.loc).filter(A=>A!=null));this.source=c!=null?c:I==null||(i=I[0])===null||i===void 0?void 0:i.source,this.positions=l!=null?l:I==null?void 0:I.map(A=>A.start),this.locations=l&&c?l.map(A=>(0,oF.getLocation)(c,A)):I==null?void 0:I.map(A=>(0,oF.getLocation)(A.source,A.start));let v=(0,QH.isObjectLike)(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(a=E!=null?E: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}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.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,zP.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` +`+(0,uF.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=` -`+(0,zP.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};ml.GraphQLError=EI;function WP(e){return e===void 0||e.length===0?void 0:e}function AH(e){return e.toString()}function RH(e){return e.toJSON()}});var qm=F(hI=>{"use strict";m();T();N();Object.defineProperty(hI,"__esModule",{value:!0});hI.syntaxError=FH;var PH=ze();function FH(e,t,n){return new PH.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var Ua=F(Li=>{"use strict";m();T();N();Object.defineProperty(Li,"__esModule",{value:!0});Li.Token=Li.QueryDocumentKeys=Li.OperationTypeNode=Li.Location=void 0;Li.isNode=LH;var yI=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Li.Location=yI;var II=class{constructor(t,n,r,i,a,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Li.Token=II;var XP={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Li.QueryDocumentKeys=XP;var wH=new Set(Object.keys(XP));function LH(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&wH.has(t)}var gI;Li.OperationTypeNode=gI;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(gI||(Li.OperationTypeNode=gI={}))});var Nl=F(Vd=>{"use strict";m();T();N();Object.defineProperty(Vd,"__esModule",{value:!0});Vd.DirectiveLocation=void 0;var _I;Vd.DirectiveLocation=_I;(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"})(_I||(Vd.DirectiveLocation=_I={}))});var Lt=F(jd=>{"use strict";m();T();N();Object.defineProperty(jd,"__esModule",{value:!0});jd.Kind=void 0;var vI;jd.Kind=vI;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(vI||(jd.Kind=vI={}))});var Vm=F(Zu=>{"use strict";m();T();N();Object.defineProperty(Zu,"__esModule",{value:!0});Zu.isDigit=ZP;Zu.isLetter=OI;Zu.isNameContinue=UH;Zu.isNameStart=BH;Zu.isWhiteSpace=CH;function CH(e){return e===9||e===32}function ZP(e){return e>=48&&e<=57}function OI(e){return e>=97&&e<=122||e>=65&&e<=90}function BH(e){return OI(e)||e===95}function UH(e){return OI(e)||ZP(e)||e===95}});var Gd=F(Kd=>{"use strict";m();T();N();Object.defineProperty(Kd,"__esModule",{value:!0});Kd.dedentBlockStringLines=kH;Kd.isPrintableAsBlockString=xH;Kd.printBlockString=qH;var SI=Vm();function kH(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;oc===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function MH(e){let t=0;for(;t1&&r.slice(1).every(v=>v.length===0||(0,SI.isWhiteSpace)(v.charCodeAt(0))),o=n.endsWith('\\"""'),c=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=c||l,f=!(t!=null&&t.minimize)&&(!i||e.length>70||d||a||o),y="",I=i&&(0,SI.isWhiteSpace)(e.charCodeAt(0));return(f&&!I||a)&&(y+=` -`),y+=n,(f||d)&&(y+=` -`),'"""'+y+'"""'}});var Qd=F($d=>{"use strict";m();T();N();Object.defineProperty($d,"__esModule",{value:!0});$d.TokenKind=void 0;var DI;$d.TokenKind=DI;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(DI||($d.TokenKind=DI={}))});var Km=F(Jd=>{"use strict";m();T();N();Object.defineProperty(Jd,"__esModule",{value:!0});Jd.Lexer=void 0;Jd.isPunctuatorTokenKind=jH;var ua=qm(),tF=Ua(),VH=Gd(),ec=Vm(),_t=Qd(),AI=class{constructor(t){let n=new tF.Token(_t.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==_t.TokenKind.EOF)do if(t.next)t=t.next;else{let n=KH(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===_t.TokenKind.COMMENT);return t}};Jd.Lexer=AI;function jH(e){return e===_t.TokenKind.BANG||e===_t.TokenKind.DOLLAR||e===_t.TokenKind.AMP||e===_t.TokenKind.PAREN_L||e===_t.TokenKind.PAREN_R||e===_t.TokenKind.SPREAD||e===_t.TokenKind.COLON||e===_t.TokenKind.EQUALS||e===_t.TokenKind.AT||e===_t.TokenKind.BRACKET_L||e===_t.TokenKind.BRACKET_R||e===_t.TokenKind.BRACE_L||e===_t.TokenKind.PIPE||e===_t.TokenKind.BRACE_R}function Tl(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function jm(e,t){return nF(e.charCodeAt(t))&&rF(e.charCodeAt(t+1))}function nF(e){return e>=55296&&e<=56319}function rF(e){return e>=56320&&e<=57343}function tc(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return _t.TokenKind.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function zn(e,t,n,r,i){let a=e.line,o=1+n-e.lineStart;return new tF.Token(t,n,r,a,o,i)}function KH(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function HH(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` -`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,ua.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function zH(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,c="",l=[];for(;a{"use strict";m();T();N();Object.defineProperty(RI,"__esModule",{value:!0});RI.inspect=ZH;var XH=10,iF=2;function ZH(e){return Gm(e,[])}function Gm(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return e3(e,t);default:return String(e)}}function e3(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(t3(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Gm(r,n)}else if(Array.isArray(e))return r3(e,n);return n3(e,n)}function t3(e){return typeof e.toJSON=="function"}function n3(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>iF?"["+i3(e)+"]":"{ "+n.map(([i,a])=>i+": "+Gm(a,t)).join(", ")+" }"}function r3(e,t){if(e.length===0)return"[]";if(t.length>iF)return"[Array]";let n=Math.min(XH,e.length),r=e.length-n,i=[];for(let a=0;a1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function i3(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var Hd=F($m=>{"use strict";m();T();N();Object.defineProperty($m,"__esModule",{value:!0});$m.instanceOf=void 0;var a3=Wt(),s3=globalThis.process&&S.env.NODE_ENV==="production",o3=s3?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===a){let o=(0,a3.inspect)(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. +`+(0,uF.printSourceLocation)(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};dl.GraphQLError=Zy;function cF(e){return e===void 0||e.length===0?void 0:e}function JH(e){return e.toString()}function HH(e){return e.toJSON()}});var qm=w(eI=>{"use strict";m();T();N();Object.defineProperty(eI,"__esModule",{value:!0});eI.syntaxError=WH;var zH=ze();function WH(e,t,n){return new zH.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}});var Ua=w(Ri=>{"use strict";m();T();N();Object.defineProperty(Ri,"__esModule",{value:!0});Ri.Token=Ri.QueryDocumentKeys=Ri.OperationTypeNode=Ri.Location=void 0;Ri.isNode=ZH;var tI=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};Ri.Location=tI;var nI=class{constructor(t,n,r,i,a,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};Ri.Token=nI;var lF={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};Ri.QueryDocumentKeys=lF;var XH=new Set(Object.keys(lF));function ZH(e){let t=e==null?void 0:e.kind;return typeof t=="string"&&XH.has(t)}var rI;Ri.OperationTypeNode=rI;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(rI||(Ri.OperationTypeNode=rI={}))});var fl=w(Md=>{"use strict";m();T();N();Object.defineProperty(Md,"__esModule",{value:!0});Md.DirectiveLocation=void 0;var iI;Md.DirectiveLocation=iI;(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"})(iI||(Md.DirectiveLocation=iI={}))});var wt=w(xd=>{"use strict";m();T();N();Object.defineProperty(xd,"__esModule",{value:!0});xd.Kind=void 0;var aI;xd.Kind=aI;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(aI||(xd.Kind=aI={}))});var Vm=w(Wu=>{"use strict";m();T();N();Object.defineProperty(Wu,"__esModule",{value:!0});Wu.isDigit=dF;Wu.isLetter=sI;Wu.isNameContinue=n3;Wu.isNameStart=t3;Wu.isWhiteSpace=e3;function e3(e){return e===9||e===32}function dF(e){return e>=48&&e<=57}function sI(e){return e>=97&&e<=122||e>=65&&e<=90}function t3(e){return sI(e)||e===95}function n3(e){return sI(e)||dF(e)||e===95}});var Vd=w(qd=>{"use strict";m();T();N();Object.defineProperty(qd,"__esModule",{value:!0});qd.dedentBlockStringLines=r3;qd.isPrintableAsBlockString=a3;qd.printBlockString=s3;var oI=Vm();function r3(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;oc===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function i3(e){let t=0;for(;t1&&r.slice(1).every(v=>v.length===0||(0,oI.isWhiteSpace)(v.charCodeAt(0))),o=n.endsWith('\\"""'),c=e.endsWith('"')&&!o,l=e.endsWith("\\"),d=c||l,p=!(t!=null&&t.minimize)&&(!i||e.length>70||d||a||o),E="",I=i&&(0,oI.isWhiteSpace)(e.charCodeAt(0));return(p&&!I||a)&&(E+=` +`),E+=n,(p||d)&&(E+=` +`),'"""'+E+'"""'}});var Kd=w(jd=>{"use strict";m();T();N();Object.defineProperty(jd,"__esModule",{value:!0});jd.TokenKind=void 0;var uI;jd.TokenKind=uI;(function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(uI||(jd.TokenKind=uI={}))});var Km=w($d=>{"use strict";m();T();N();Object.defineProperty($d,"__esModule",{value:!0});$d.Lexer=void 0;$d.isPunctuatorTokenKind=u3;var sa=qm(),pF=Ua(),o3=Vd(),Xu=Vm(),gt=Kd(),lI=class{constructor(t){let n=new pF.Token(gt.TokenKind.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==gt.TokenKind.EOF)do if(t.next)t=t.next;else{let n=c3(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===gt.TokenKind.COMMENT);return t}};$d.Lexer=lI;function u3(e){return e===gt.TokenKind.BANG||e===gt.TokenKind.DOLLAR||e===gt.TokenKind.AMP||e===gt.TokenKind.PAREN_L||e===gt.TokenKind.PAREN_R||e===gt.TokenKind.SPREAD||e===gt.TokenKind.COLON||e===gt.TokenKind.EQUALS||e===gt.TokenKind.AT||e===gt.TokenKind.BRACKET_L||e===gt.TokenKind.BRACKET_R||e===gt.TokenKind.BRACE_L||e===gt.TokenKind.PIPE||e===gt.TokenKind.BRACE_R}function pl(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function jm(e,t){return mF(e.charCodeAt(t))&&NF(e.charCodeAt(t+1))}function mF(e){return e>=55296&&e<=56319}function NF(e){return e>=56320&&e<=57343}function Zu(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return gt.TokenKind.EOF;if(n>=32&&n<=126){let r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Yn(e,t,n,r,i){let a=e.line,o=1+n-e.lineStart;return new pF.Token(t,n,r,a,o,i)}function c3(e,t){let n=e.source.body,r=n.length,i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function N3(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:` +`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw(0,sa.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function T3(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,c="",l=[];for(;a{"use strict";m();T();N();Object.defineProperty(dI,"__esModule",{value:!0});dI.inspect=y3;var h3=10,TF=2;function y3(e){return Gm(e,[])}function Gm(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return I3(e,t);default:return String(e)}}function I3(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(g3(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:Gm(r,n)}else if(Array.isArray(e))return v3(e,n);return _3(e,n)}function g3(e){return typeof e.toJSON=="function"}function _3(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>TF?"["+O3(e)+"]":"{ "+n.map(([i,a])=>i+": "+Gm(a,t)).join(", ")+" }"}function v3(e,t){if(e.length===0)return"[]";if(t.length>TF)return"[Array]";let n=Math.min(h3,e.length),r=e.length-n,i=[];for(let a=0;a1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function O3(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}});var Qd=w($m=>{"use strict";m();T();N();Object.defineProperty($m,"__esModule",{value:!0});$m.instanceOf=void 0;var S3=Wt(),D3=globalThis.process&&S.env.NODE_ENV==="production",b3=D3?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;let i=n.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===a){let o=(0,S3.inspect)(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm. Ensure that there is only one instance of "graphql" in the node_modules directory. If different versions of "graphql" are the dependencies of other @@ -36,42 +36,42 @@ https://yarnpkg.com/en/docs/selective-version-resolutions Duplicate "graphql" modules cannot be used at the same time since different versions may have different capabilities and behavior. The data from one version used in the function from another could produce confusing and -spurious results.`)}}return!1};$m.instanceOf=o3});var Ym=F(zd=>{"use strict";m();T();N();Object.defineProperty(zd,"__esModule",{value:!0});zd.Source=void 0;zd.isSource=l3;var PI=jr(),u3=Wt(),c3=Hd(),Qm=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,PI.devAssert)(!1,`Body must be a string. Received: ${(0,u3.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,PI.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,PI.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};zd.Source=Qm;function l3(e){return(0,c3.instanceOf)(e,Qm)}});var El=F(cu=>{"use strict";m();T();N();Object.defineProperty(cu,"__esModule",{value:!0});cu.Parser=void 0;cu.parse=p3;cu.parseConstValue=m3;cu.parseType=N3;cu.parseValue=f3;var nc=qm(),Wd=Ua(),d3=Nl(),ot=Lt(),sF=Km(),aF=Ym(),Se=Qd();function p3(e,t){return new rc(e,t).parseDocument()}function f3(e,t){let n=new rc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function m3(e,t){let n=new rc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function N3(e,t){let n=new rc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var rc=class{constructor(t,n={}){let r=(0,aF.isSource)(t)?t:new aF.Source(t);this._lexer=new sF.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:ot.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:ot.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,nc.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:ot.Kind.OPERATION_DEFINITION,operation:Wd.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:ot.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 Wd.OperationTypeNode.QUERY;case"mutation":return Wd.OperationTypeNode.MUTATION;case"subscription":return Wd.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:ot.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:ot.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ot.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:ot.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:ot.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:ot.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:ot.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:ot.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:ot.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:ot.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:ot.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:ot.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:ot.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:ot.Kind.NULL});default:return this.node(n,{kind:ot.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,nc.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:ot.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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,nc.syntaxError)(this._lexer.source,this._lexer.token.start,`${Jm(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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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(d3.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Wd.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,nc.syntaxError)(this._lexer.source,n.start,`Expected ${oF(t)}, found ${Jm(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,nc.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${Jm(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,nc.syntaxError)(this._lexer.source,n.start,`Unexpected ${Jm(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,nc.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};cu.Parser=rc;function Jm(e){let t=e.value;return oF(e.kind)+(t!=null?` "${t}"`:"")}function oF(e){return(0,sF.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var lu=F(FI=>{"use strict";m();T();N();Object.defineProperty(FI,"__esModule",{value:!0});FI.didYouMean=E3;var T3=5;function E3(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,T3),c=o.pop();return i+o.join(", ")+", or "+c+"?"}});var uF=F(wI=>{"use strict";m();T();N();Object.defineProperty(wI,"__esModule",{value:!0});wI.identityFunc=h3;function h3(e){return e}});var du=F(LI=>{"use strict";m();T();N();Object.defineProperty(LI,"__esModule",{value:!0});LI.keyMap=y3;function y3(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var Xd=F(CI=>{"use strict";m();T();N();Object.defineProperty(CI,"__esModule",{value:!0});CI.keyValMap=I3;function I3(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var UI=F(BI=>{"use strict";m();T();N();Object.defineProperty(BI,"__esModule",{value:!0});BI.mapValue=g3;function g3(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var Zd=F(MI=>{"use strict";m();T();N();Object.defineProperty(MI,"__esModule",{value:!0});MI.naturalCompare=_3;function _3(e,t){let n=0,r=0;for(;n0);let c=0;do++r,c=c*10+a-kI,a=t.charCodeAt(r);while(Hm(a)&&c>0);if(oc)return 1}else{if(ia)return 1;++n,++r}}return e.length-t.length}var kI=48,v3=57;function Hm(e){return!isNaN(e)&&kI<=e&&e<=v3}});var pu=F(qI=>{"use strict";m();T();N();Object.defineProperty(qI,"__esModule",{value:!0});qI.suggestionList=S3;var O3=Zd();function S3(e,t){let n=Object.create(null),r=new xI(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,O3.naturalCompare)(a,o)})}var xI=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=cF(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=cF(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],I=l[f%3],v=I[0]=f;for(let w=1;w<=c;w++){let U=i[f-1]===a[w-1]?0:1,j=Math.min(y[w]+1,I[w-1]+1,y[w-1]+U);if(f>1&&w>1&&i[f-1]===a[w-2]&&i[f-2]===a[w-1]){let Y=l[(f-2)%3][w-2];j=Math.min(j,Y+1)}jn)return}let d=l[o%3][c];return d<=n?d:void 0}};function cF(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();N();Object.defineProperty(VI,"__esModule",{value:!0});VI.toObjMap=D3;function D3(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 lF=F(jI=>{"use strict";m();T();N();Object.defineProperty(jI,"__esModule",{value:!0});jI.printString=b3;function b3(e){return`"${e.replace(A3,R3)}"`}var A3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function R3(e){return P3[e.charCodeAt(0)]}var P3=["\\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 ic=F(fu=>{"use strict";m();T();N();Object.defineProperty(fu,"__esModule",{value:!0});fu.BREAK=void 0;fu.getEnterLeaveForKind=Wm;fu.getVisitFn=B3;fu.visit=L3;fu.visitInParallel=C3;var F3=jr(),w3=Wt(),KI=Ua(),dF=Lt(),hl=Object.freeze({});fu.BREAK=hl;function L3(e,t,n=KI.QueryDocumentKeys){let r=new Map;for(let Y of Object.values(dF.Kind))r.set(Y,Wm(t,Y));let i,a=Array.isArray(e),o=[e],c=-1,l=[],d=e,f,y,I=[],v=[];do{c++;let Y=c===o.length,re=Y&&l.length!==0;if(Y){if(f=v.length===0?void 0:I[I.length-1],d=y,y=v.pop(),re)if(a){d=d.slice();let me=0;for(let[ue,Ae]of l){let Me=ue-me;Ae===null?(d.splice(Me,1),me++):d[Me]=Ae}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[me,ue]of l)d[me]=ue}c=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(y){if(f=a?c:o[c],d=y[f],d==null)continue;I.push(f)}let ne;if(!Array.isArray(d)){var w,U;(0,KI.isNode)(d)||(0,F3.devAssert)(!1,`Invalid AST Node: ${(0,w3.inspect)(d)}.`);let me=Y?(w=r.get(d.kind))===null||w===void 0?void 0:w.leave:(U=r.get(d.kind))===null||U===void 0?void 0:U.enter;if(ne=me==null?void 0:me.call(t,d,f,y,I,v),ne===hl)break;if(ne===!1){if(!Y){I.pop();continue}}else if(ne!==void 0&&(l.push([f,ne]),!Y))if((0,KI.isNode)(ne))d=ne;else{I.pop();continue}}if(ne===void 0&&re&&l.push([f,d]),Y)I.pop();else{var j;i={inArray:a,index:c,keys:o,edits:l,prev:i},a=Array.isArray(d),o=a?d:(j=n[d.kind])!==null&&j!==void 0?j:[],c=-1,l=[],y&&v.push(y),y=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function C3(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(dF.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(GI,"__esModule",{value:!0});GI.print=x3;var U3=Gd(),k3=lF(),M3=ic();function x3(e){return(0,M3.visit)(e,V3)}var q3=80,V3={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>qe(e.definitions,` +spurious results.`)}}return!1};$m.instanceOf=b3});var Ym=w(Yd=>{"use strict";m();T();N();Object.defineProperty(Yd,"__esModule",{value:!0});Yd.Source=void 0;Yd.isSource=P3;var fI=xr(),A3=Wt(),R3=Qd(),Qm=class{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||(0,fI.devAssert)(!1,`Body must be a string. Received: ${(0,A3.inspect)(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||(0,fI.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,fI.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};Yd.Source=Qm;function P3(e){return(0,R3.instanceOf)(e,Qm)}});var ml=w(ou=>{"use strict";m();T();N();Object.defineProperty(ou,"__esModule",{value:!0});ou.Parser=void 0;ou.parse=w3;ou.parseConstValue=C3;ou.parseType=B3;ou.parseValue=L3;var ec=qm(),Jd=Ua(),F3=fl(),ot=wt(),hF=Km(),EF=Ym(),Se=Kd();function w3(e,t){return new tc(e,t).parseDocument()}function L3(e,t){let n=new tc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(Se.TokenKind.EOF),r}function C3(e,t){let n=new tc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseConstValueLiteral();return n.expectToken(Se.TokenKind.EOF),r}function B3(e,t){let n=new tc(e,t);n.expectToken(Se.TokenKind.SOF);let r=n.parseTypeReference();return n.expectToken(Se.TokenKind.EOF),r}var tc=class{constructor(t,n={}){let r=(0,EF.isSource)(t)?t:new EF.Source(t);this._lexer=new hF.Lexer(r),this._options=n,this._tokenCounter=0}parseName(){let t=this.expectToken(Se.TokenKind.NAME);return this.node(t,{kind:ot.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:ot.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,ec.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:ot.Kind.OPERATION_DEFINITION,operation:Jd.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:ot.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 Jd.OperationTypeNode.QUERY;case"mutation":return Jd.OperationTypeNode.MUTATION;case"subscription":return Jd.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:ot.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:ot.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ot.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:ot.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:ot.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:ot.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:ot.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:ot.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:ot.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:ot.Kind.INT,value:n.value});case Se.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:ot.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:ot.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:ot.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:ot.Kind.NULL});default:return this.node(n,{kind:ot.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,ec.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.Kind.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Se.TokenKind.BANG)?this.node(t,{kind:ot.Kind.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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,ec.syntaxError)(this._lexer.source,this._lexer.token.start,`${Jm(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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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:ot.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(F3.DirectiveLocation,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Jd.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,ec.syntaxError)(this._lexer.source,n.start,`Expected ${yF(t)}, found ${Jm(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,ec.syntaxError)(this._lexer.source,n.start,`Expected "${t}", found ${Jm(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,ec.syntaxError)(this._lexer.source,n.start,`Unexpected ${Jm(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,ec.syntaxError)(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}};ou.Parser=tc;function Jm(e){let t=e.value;return yF(e.kind)+(t!=null?` "${t}"`:"")}function yF(e){return(0,hF.isPunctuatorTokenKind)(e)?`"${e}"`:e}});var uu=w(pI=>{"use strict";m();T();N();Object.defineProperty(pI,"__esModule",{value:!0});pI.didYouMean=k3;var U3=5;function k3(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,U3),c=o.pop();return i+o.join(", ")+", or "+c+"?"}});var IF=w(mI=>{"use strict";m();T();N();Object.defineProperty(mI,"__esModule",{value:!0});mI.identityFunc=M3;function M3(e){return e}});var cu=w(NI=>{"use strict";m();T();N();Object.defineProperty(NI,"__esModule",{value:!0});NI.keyMap=x3;function x3(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}});var Hd=w(TI=>{"use strict";m();T();N();Object.defineProperty(TI,"__esModule",{value:!0});TI.keyValMap=q3;function q3(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}});var hI=w(EI=>{"use strict";m();T();N();Object.defineProperty(EI,"__esModule",{value:!0});EI.mapValue=V3;function V3(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}});var zd=w(II=>{"use strict";m();T();N();Object.defineProperty(II,"__esModule",{value:!0});II.naturalCompare=j3;function j3(e,t){let n=0,r=0;for(;n0);let c=0;do++r,c=c*10+a-yI,a=t.charCodeAt(r);while(Hm(a)&&c>0);if(oc)return 1}else{if(ia)return 1;++n,++r}}return e.length-t.length}var yI=48,K3=57;function Hm(e){return!isNaN(e)&&yI<=e&&e<=K3}});var lu=w(_I=>{"use strict";m();T();N();Object.defineProperty(_I,"__esModule",{value:!0});_I.suggestionList=$3;var G3=zd();function $3(e,t){let n=Object.create(null),r=new gI(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,G3.naturalCompare)(a,o)})}var gI=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=gF(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=gF(r),a=this._inputArray;if(i.lengthn)return;let l=this._rows;for(let p=0;p<=c;p++)l[0][p]=p;for(let p=1;p<=o;p++){let E=l[(p-1)%3],I=l[p%3],v=I[0]=p;for(let A=1;A<=c;A++){let U=i[p-1]===a[A-1]?0:1,j=Math.min(E[A]+1,I[A-1]+1,E[A-1]+U);if(p>1&&A>1&&i[p-1]===a[A-2]&&i[p-2]===a[A-1]){let G=l[(p-2)%3][A-2];j=Math.min(j,G+1)}jn)return}let d=l[o%3][c];return d<=n?d:void 0}};function gF(e){let t=e.length,n=new Array(t);for(let r=0;r{"use strict";m();T();N();Object.defineProperty(vI,"__esModule",{value:!0});vI.toObjMap=Q3;function Q3(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 _F=w(OI=>{"use strict";m();T();N();Object.defineProperty(OI,"__esModule",{value:!0});OI.printString=Y3;function Y3(e){return`"${e.replace(J3,H3)}"`}var J3=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function H3(e){return z3[e.charCodeAt(0)]}var z3=["\\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 nc=w(du=>{"use strict";m();T();N();Object.defineProperty(du,"__esModule",{value:!0});du.BREAK=void 0;du.getEnterLeaveForKind=Wm;du.getVisitFn=t6;du.visit=Z3;du.visitInParallel=e6;var W3=xr(),X3=Wt(),SI=Ua(),vF=wt(),Nl=Object.freeze({});du.BREAK=Nl;function Z3(e,t,n=SI.QueryDocumentKeys){let r=new Map;for(let G of Object.values(vF.Kind))r.set(G,Wm(t,G));let i,a=Array.isArray(e),o=[e],c=-1,l=[],d=e,p,E,I=[],v=[];do{c++;let G=c===o.length,re=G&&l.length!==0;if(G){if(p=v.length===0?void 0:I[I.length-1],d=E,E=v.pop(),re)if(a){d=d.slice();let me=0;for(let[ue,Ae]of l){let xe=ue-me;Ae===null?(d.splice(xe,1),me++):d[xe]=Ae}}else{d=Object.defineProperties({},Object.getOwnPropertyDescriptors(d));for(let[me,ue]of l)d[me]=ue}c=i.index,o=i.keys,l=i.edits,a=i.inArray,i=i.prev}else if(E){if(p=a?c:o[c],d=E[p],d==null)continue;I.push(p)}let ne;if(!Array.isArray(d)){var A,U;(0,SI.isNode)(d)||(0,W3.devAssert)(!1,`Invalid AST Node: ${(0,X3.inspect)(d)}.`);let me=G?(A=r.get(d.kind))===null||A===void 0?void 0:A.leave:(U=r.get(d.kind))===null||U===void 0?void 0:U.enter;if(ne=me==null?void 0:me.call(t,d,p,E,I,v),ne===Nl)break;if(ne===!1){if(!G){I.pop();continue}}else if(ne!==void 0&&(l.push([p,ne]),!G))if((0,SI.isNode)(ne))d=ne;else{I.pop();continue}}if(ne===void 0&&re&&l.push([p,d]),G)I.pop();else{var j;i={inArray:a,index:c,keys:o,edits:l,prev:i},a=Array.isArray(d),o=a?d:(j=n[d.kind])!==null&&j!==void 0?j:[],c=-1,l=[],E&&v.push(E),E=d}}while(i!==void 0);return l.length!==0?l[l.length-1][1]:e}function e6(e){let t=new Array(e.length).fill(null),n=Object.create(null);for(let r of Object.values(vF.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(DI,"__esModule",{value:!0});DI.print=a6;var n6=Vd(),r6=_F(),i6=nc();function a6(e){return(0,i6.visit)(e,o6)}var s6=80,o6={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Ve(e.definitions,` -`)},OperationDefinition:{leave(e){let t=Rt("(",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+Rt(" = ",n)+Rt(" ",qe(r," "))},SelectionSet:{leave:({selections:e})=>ca(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=Rt("",e,": ")+t,o=a+Rt("(",qe(n,", "),")");return o.length>q3&&(o=a+Rt(`( -`,Xm(qe(n,` +`)},OperationDefinition:{leave(e){let t=At("(",Ve(e.variableDefinitions,", "),")"),n=Ve([e.operation,Ve([e.name,t]),Ve(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+At(" = ",n)+At(" ",Ve(r," "))},SelectionSet:{leave:({selections:e})=>oa(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=At("",e,": ")+t,o=a+At("(",Ve(n,", "),")");return o.length>s6&&(o=a+At(`( +`,Xm(Ve(n,` `)),` -)`)),qe([o,qe(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Rt(" ",qe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>qe(["...",Rt("on ",e),qe(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${Rt("(",qe(n,", "),")")} on ${t} ${Rt("",qe(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,U3.printBlockString)(e):(0,k3.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+qe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+qe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Rt("(",qe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Rt("",e,` -`)+qe(["schema",qe(t," "),ca(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Rt("",e,` -`)+qe(["scalar",t,qe(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Rt("",e,` -`)+qe(["type",t,Rt("implements ",qe(n," & ")),qe(r," "),ca(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Rt("",e,` -`)+t+(pF(n)?Rt(`( -`,Xm(qe(n,` +)`)),Ve([o,Ve(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+At(" ",Ve(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ve(["...",At("on ",e),Ve(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${At("(",Ve(n,", "),")")} on ${t} ${At("",Ve(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n6.printBlockString)(e):(0,r6.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Ve(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Ve(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+At("(",Ve(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>At("",e,` +`)+Ve(["schema",Ve(t," "),oa(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>At("",e,` +`)+Ve(["scalar",t,Ve(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>At("",e,` +`)+Ve(["type",t,At("implements ",Ve(n," & ")),Ve(r," "),oa(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>At("",e,` +`)+t+(OF(n)?At(`( +`,Xm(Ve(n,` `)),` -)`):Rt("(",qe(n,", "),")"))+": "+r+Rt(" ",qe(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Rt("",e,` -`)+qe([t+": "+n,Rt("= ",r),qe(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Rt("",e,` -`)+qe(["interface",t,Rt("implements ",qe(n," & ")),qe(r," "),ca(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Rt("",e,` -`)+qe(["union",t,qe(n," "),Rt("= ",qe(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Rt("",e,` -`)+qe(["enum",t,qe(n," "),ca(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Rt("",e,` -`)+qe([t,qe(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Rt("",e,` -`)+qe(["input",t,qe(n," "),ca(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Rt("",e,` -`)+"directive @"+t+(pF(n)?Rt(`( -`,Xm(qe(n,` +)`):At("(",Ve(n,", "),")"))+": "+r+At(" ",Ve(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>At("",e,` +`)+Ve([t+": "+n,At("= ",r),Ve(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>At("",e,` +`)+Ve(["interface",t,At("implements ",Ve(n," & ")),Ve(r," "),oa(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>At("",e,` +`)+Ve(["union",t,Ve(n," "),At("= ",Ve(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>At("",e,` +`)+Ve(["enum",t,Ve(n," "),oa(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>At("",e,` +`)+Ve([t,Ve(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>At("",e,` +`)+Ve(["input",t,Ve(n," "),oa(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>At("",e,` +`)+"directive @"+t+(OF(n)?At(`( +`,Xm(Ve(n,` `)),` -)`):Rt("(",qe(n,", "),")"))+(r?" repeatable":"")+" on "+qe(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>qe(["extend schema",qe(e," "),ca(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>qe(["extend scalar",e,qe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["extend type",e,Rt("implements ",qe(t," & ")),qe(n," "),ca(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>qe(["extend interface",e,Rt("implements ",qe(t," & ")),qe(n," "),ca(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>qe(["extend union",e,qe(t," "),Rt("= ",qe(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>qe(["extend enum",e,qe(t," "),ca(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>qe(["extend input",e,qe(t," "),ca(n)]," ")}};function qe(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ca(e){return Rt(`{ -`,Xm(qe(e,` +)`):At("(",Ve(n,", "),")"))+(r?" repeatable":"")+" on "+Ve(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ve(["extend schema",Ve(e," "),oa(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ve(["extend scalar",e,Ve(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["extend type",e,At("implements ",Ve(t," & ")),Ve(n," "),oa(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ve(["extend interface",e,At("implements ",Ve(t," & ")),Ve(n," "),oa(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ve(["extend union",e,Ve(t," "),At("= ",Ve(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ve(["extend enum",e,Ve(t," "),oa(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ve(["extend input",e,Ve(t," "),oa(n)]," ")}};function Ve(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function oa(e){return At(`{ +`,Xm(Ve(e,` `)),` -}`)}function Rt(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Xm(e){return Rt(" ",e.replace(/\n/g,` - `))}function pF(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!==null&&t!==void 0?t:!1}});var YI=F(QI=>{"use strict";m();T();N();Object.defineProperty(QI,"__esModule",{value:!0});QI.valueFromASTUntyped=$I;var j3=Xd(),Ss=Lt();function $I(e,t){switch(e.kind){case Ss.Kind.NULL:return null;case Ss.Kind.INT:return parseInt(e.value,10);case Ss.Kind.FLOAT:return parseFloat(e.value);case Ss.Kind.STRING:case Ss.Kind.ENUM:case Ss.Kind.BOOLEAN:return e.value;case Ss.Kind.LIST:return e.values.map(n=>$I(n,t));case Ss.Kind.OBJECT:return(0,j3.keyValMap)(e.fields,n=>n.name.value,n=>$I(n.value,t));case Ss.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var ep=F(eN=>{"use strict";m();T();N();Object.defineProperty(eN,"__esModule",{value:!0});eN.assertEnumValueName=K3;eN.assertName=NF;var fF=jr(),Zm=ze(),mF=Vm();function NF(e){if(e!=null||(0,fF.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,fF.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new Zm.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();N();Object.defineProperty($e,"__esModule",{value:!0});$e.GraphQLUnionType=$e.GraphQLScalarType=$e.GraphQLObjectType=$e.GraphQLNonNull=$e.GraphQLList=$e.GraphQLInterfaceType=$e.GraphQLInputObjectType=$e.GraphQLEnumType=void 0;$e.argsToArgsConfig=AF;$e.assertAbstractType=c6;$e.assertCompositeType=u6;$e.assertEnumType=t6;$e.assertInputObjectType=n6;$e.assertInputType=a6;$e.assertInterfaceType=Z3;$e.assertLeafType=o6;$e.assertListType=r6;$e.assertNamedType=f6;$e.assertNonNullType=i6;$e.assertNullableType=d6;$e.assertObjectType=X3;$e.assertOutputType=s6;$e.assertScalarType=W3;$e.assertType=z3;$e.assertUnionType=e6;$e.assertWrappingType=l6;$e.defineArguments=DF;$e.getNamedType=m6;$e.getNullableType=p6;$e.isAbstractType=_F;$e.isCompositeType=gF;$e.isEnumType=uc;$e.isInputObjectType=np;$e.isInputType=JI;$e.isInterfaceType=sc;$e.isLeafType=IF;$e.isListType=pN;$e.isNamedType=vF;$e.isNonNullType=Nu;$e.isNullableType=zI;$e.isObjectType=Il;$e.isOutputType=HI;$e.isRequiredArgument=N6;$e.isRequiredInputField=h6;$e.isScalarType=ac;$e.isType=dN;$e.isUnionType=oc;$e.isWrappingType=rp;$e.resolveObjMapThunk=XI;$e.resolveReadonlyArrayThunk=WI;var fr=jr(),G3=lu(),TF=uF(),Tn=Wt(),mu=Hd(),$3=Ba(),Q3=du(),yF=Xd(),lN=UI(),Y3=pu(),ka=zm(),tp=ze(),J3=Lt(),EF=Ti(),H3=YI(),Ma=ep();function dN(e){return ac(e)||Il(e)||sc(e)||oc(e)||uc(e)||np(e)||pN(e)||Nu(e)}function z3(e){if(!dN(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL type.`);return e}function ac(e){return(0,mu.instanceOf)(e,iN)}function W3(e){if(!ac(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function Il(e){return(0,mu.instanceOf)(e,aN)}function X3(e){if(!Il(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL Object type.`);return e}function sc(e){return(0,mu.instanceOf)(e,sN)}function Z3(e){if(!sc(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL Interface type.`);return e}function oc(e){return(0,mu.instanceOf)(e,oN)}function e6(e){if(!oc(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL Union type.`);return e}function uc(e){return(0,mu.instanceOf)(e,uN)}function t6(e){if(!uc(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL Enum type.`);return e}function np(e){return(0,mu.instanceOf)(e,cN)}function n6(e){if(!np(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function pN(e){return(0,mu.instanceOf)(e,nN)}function r6(e){if(!pN(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL List type.`);return e}function Nu(e){return(0,mu.instanceOf)(e,rN)}function i6(e){if(!Nu(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function JI(e){return ac(e)||uc(e)||np(e)||rp(e)&&JI(e.ofType)}function a6(e){if(!JI(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL input type.`);return e}function HI(e){return ac(e)||Il(e)||sc(e)||oc(e)||uc(e)||rp(e)&&HI(e.ofType)}function s6(e){if(!HI(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL output type.`);return e}function IF(e){return ac(e)||uc(e)}function o6(e){if(!IF(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL leaf type.`);return e}function gF(e){return Il(e)||sc(e)||oc(e)}function u6(e){if(!gF(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL composite type.`);return e}function _F(e){return sc(e)||oc(e)}function c6(e){if(!_F(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL abstract type.`);return e}var nN=class{constructor(t){dN(t)||(0,fr.devAssert)(!1,`Expected ${(0,Tn.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};$e.GraphQLList=nN;var rN=class{constructor(t){zI(t)||(0,fr.devAssert)(!1,`Expected ${(0,Tn.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()}};$e.GraphQLNonNull=rN;function rp(e){return pN(e)||Nu(e)}function l6(e){if(!rp(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function zI(e){return dN(e)&&!Nu(e)}function d6(e){if(!zI(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL nullable type.`);return e}function p6(e){if(e)return Nu(e)?e.ofType:e}function vF(e){return ac(e)||Il(e)||sc(e)||oc(e)||uc(e)||np(e)}function f6(e){if(!vF(e))throw new Error(`Expected ${(0,Tn.inspect)(e)} to be a GraphQL named type.`);return e}function m6(e){if(e){let t=e;for(;rp(t);)t=t.ofType;return t}}function WI(e){return typeof e=="function"?e():e}function XI(e){return typeof e=="function"?e():e}var iN=class{constructor(t){var n,r,i,a;let o=(n=t.parseValue)!==null&&n!==void 0?n:TF.identityFunc;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:TF.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,l)=>o((0,H3.valueFromASTUntyped)(c,l)),this.extensions=(0,ka.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,fr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Tn.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,fr.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,fr.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()}};$e.GraphQLScalarType=iN;var aN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>SF(t),this._interfaces=()=>OF(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,fr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Tn.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:bF(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};$e.GraphQLObjectType=aN;function OF(e){var t;let n=WI((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,fr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function SF(e){let t=XI(e.fields);return yl(t)||(0,fr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,lN.mapValue)(t,(n,r)=>{var i;yl(n)||(0,fr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,fr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Tn.inspect)(n.resolve)}.`);let a=(i=n.args)!==null&&i!==void 0?i:{};return yl(a)||(0,fr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Ma.assertName)(r),description:n.description,type:n.type,args:DF(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}})}function DF(e){return Object.entries(e).map(([t,n])=>({name:(0,Ma.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}))}function yl(e){return(0,$3.isObjectLike)(e)&&!Array.isArray(e)}function bF(e){return(0,lN.mapValue)(e,t=>({description:t.description,type:t.type,args:AF(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function AF(e){return(0,yF.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 N6(e){return Nu(e.type)&&e.defaultValue===void 0}var sN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=SF.bind(void 0,t),this._interfaces=OF.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,fr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Tn.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:bF(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};$e.GraphQLInterfaceType=sN;var oN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=T6.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,fr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Tn.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()}};$e.GraphQLUnionType=oN;function T6(e){let t=WI(e.types);return Array.isArray(t)||(0,fr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var uN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.extensions=(0,ka.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:hF(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=hF(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,Q3.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 tp.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Tn.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Tn.inspect)(t);throw new tp.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+tN(this,r))}let n=this.getValue(t);if(n==null)throw new tp.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+tN(this,t));return n.value}parseLiteral(t,n){if(t.kind!==J3.Kind.ENUM){let i=(0,EF.print)(t);throw new tp.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+tN(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,EF.print)(t);throw new tp.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+tN(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,yF.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()}};$e.GraphQLEnumType=uN;function tN(e,t){let n=e.getValues().map(i=>i.name),r=(0,Y3.suggestionList)(t,n);return(0,G3.didYouMean)("the enum value",r)}function hF(e,t){return yl(t)||(0,fr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(yl(r)||(0,fr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Tn.inspect)(r)}.`),{name:(0,Ma.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,ka.toObjMap)(r.extensions),astNode:r.astNode}))}var cN=class{constructor(t){var n,r;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.extensions=(0,ka.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=E6.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,lN.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()}};$e.GraphQLInputObjectType=cN;function E6(e){let t=XI(e.fields);return yl(t)||(0,fr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,lN.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,fr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Ma.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}))}function h6(e){return Nu(e.type)&&e.defaultValue===void 0}});var ap=F(ip=>{"use strict";m();T();N();Object.defineProperty(ip,"__esModule",{value:!0});ip.doTypesOverlap=y6;ip.isEqualType=ZI;ip.isTypeSubTypeOf=fN;var Ar=Ct();function ZI(e,t){return e===t?!0:(0,Ar.isNonNullType)(e)&&(0,Ar.isNonNullType)(t)||(0,Ar.isListType)(e)&&(0,Ar.isListType)(t)?ZI(e.ofType,t.ofType):!1}function fN(e,t,n){return t===n?!0:(0,Ar.isNonNullType)(n)?(0,Ar.isNonNullType)(t)?fN(e,t.ofType,n.ofType):!1:(0,Ar.isNonNullType)(t)?fN(e,t.ofType,n):(0,Ar.isListType)(n)?(0,Ar.isListType)(t)?fN(e,t.ofType,n.ofType):!1:(0,Ar.isListType)(t)?!1:(0,Ar.isAbstractType)(n)&&((0,Ar.isInterfaceType)(t)||(0,Ar.isObjectType)(t))&&e.isSubType(n,t)}function y6(e,t,n){return t===n?!0:(0,Ar.isAbstractType)(t)?(0,Ar.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,Ar.isAbstractType)(n)?e.isSubType(n,t):!1}});var xa=F(nr=>{"use strict";m();T();N();Object.defineProperty(nr,"__esModule",{value:!0});nr.GraphQLString=nr.GraphQLInt=nr.GraphQLID=nr.GraphQLFloat=nr.GraphQLBoolean=nr.GRAPHQL_MIN_INT=nr.GRAPHQL_MAX_INT=void 0;nr.isSpecifiedScalarType=I6;nr.specifiedScalarTypes=void 0;var la=Wt(),RF=Ba(),mr=ze(),cc=Lt(),sp=Ti(),op=Ct(),mN=2147483647;nr.GRAPHQL_MAX_INT=mN;var NN=-2147483648;nr.GRAPHQL_MIN_INT=NN;var PF=new op.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=up(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 mr.GraphQLError(`Int cannot represent non-integer value: ${(0,la.inspect)(t)}`);if(n>mN||nmN||emN||te.name===t)}function up(e){if((0,RF.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,RF.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var ei=F(Gn=>{"use strict";m();T();N();Object.defineProperty(Gn,"__esModule",{value:!0});Gn.GraphQLSpecifiedByDirective=Gn.GraphQLSkipDirective=Gn.GraphQLOneOfDirective=Gn.GraphQLIncludeDirective=Gn.GraphQLDirective=Gn.GraphQLDeprecatedDirective=Gn.DEFAULT_DEPRECATION_REASON=void 0;Gn.assertDirective=D6;Gn.isDirective=kF;Gn.isSpecifiedDirective=b6;Gn.specifiedDirectives=void 0;var UF=jr(),g6=Wt(),_6=Hd(),v6=Ba(),O6=zm(),Ci=Nl(),S6=ep(),cp=Ct(),TN=xa();function kF(e){return(0,_6.instanceOf)(e,Ds)}function D6(e){if(!kF(e))throw new Error(`Expected ${(0,g6.inspect)(e)} to be a GraphQL directive.`);return e}var Ds=class{constructor(t){var n,r;this.name=(0,S6.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,O6.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,UF.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,v6.isObjectLike)(i)&&!Array.isArray(i)||(0,UF.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,cp.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,cp.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};Gn.GraphQLDirective=Ds;var MF=new Ds({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Ci.DirectiveLocation.FIELD,Ci.DirectiveLocation.FRAGMENT_SPREAD,Ci.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new cp.GraphQLNonNull(TN.GraphQLBoolean),description:"Included when true."}}});Gn.GraphQLIncludeDirective=MF;var xF=new Ds({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Ci.DirectiveLocation.FIELD,Ci.DirectiveLocation.FRAGMENT_SPREAD,Ci.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new cp.GraphQLNonNull(TN.GraphQLBoolean),description:"Skipped when true."}}});Gn.GraphQLSkipDirective=xF;var qF="No longer supported";Gn.DEFAULT_DEPRECATION_REASON=qF;var VF=new Ds({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Ci.DirectiveLocation.FIELD_DEFINITION,Ci.DirectiveLocation.ARGUMENT_DEFINITION,Ci.DirectiveLocation.INPUT_FIELD_DEFINITION,Ci.DirectiveLocation.ENUM_VALUE],args:{reason:{type:TN.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:qF}}});Gn.GraphQLDeprecatedDirective=VF;var jF=new Ds({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Ci.DirectiveLocation.SCALAR],args:{url:{type:new cp.GraphQLNonNull(TN.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});Gn.GraphQLSpecifiedByDirective=jF;var KF=new Ds({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Ci.DirectiveLocation.INPUT_OBJECT],args:{}});Gn.GraphQLOneOfDirective=KF;var GF=Object.freeze([MF,xF,VF,jF,KF]);Gn.specifiedDirectives=GF;function b6(e){return GF.some(({name:t})=>t===e.name)}});var EN=F(eg=>{"use strict";m();T();N();Object.defineProperty(eg,"__esModule",{value:!0});eg.isIterableObject=A6;function A6(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var pp=F(tg=>{"use strict";m();T();N();Object.defineProperty(tg,"__esModule",{value:!0});tg.astFromValue=dp;var $F=Wt(),R6=br(),P6=EN(),F6=Ba(),Bi=Lt(),lp=Ct(),w6=xa();function dp(e,t){if((0,lp.isNonNullType)(t)){let n=dp(e,t.ofType);return(n==null?void 0:n.kind)===Bi.Kind.NULL?null:n}if(e===null)return{kind:Bi.Kind.NULL};if(e===void 0)return null;if((0,lp.isListType)(t)){let n=t.ofType;if((0,P6.isIterableObject)(e)){let r=[];for(let i of e){let a=dp(i,n);a!=null&&r.push(a)}return{kind:Bi.Kind.LIST,values:r}}return dp(e,n)}if((0,lp.isInputObjectType)(t)){if(!(0,F6.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=dp(e[r.name],r.type);i&&n.push({kind:Bi.Kind.OBJECT_FIELD,name:{kind:Bi.Kind.NAME,value:r.name},value:i})}return{kind:Bi.Kind.OBJECT,fields:n}}if((0,lp.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Bi.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return QF.test(r)?{kind:Bi.Kind.INT,value:r}:{kind:Bi.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,lp.isEnumType)(t)?{kind:Bi.Kind.ENUM,value:n}:t===w6.GraphQLID&&QF.test(n)?{kind:Bi.Kind.INT,value:n}:{kind:Bi.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,$F.inspect)(n)}.`)}(0,R6.invariant)(!1,"Unexpected input type: "+(0,$F.inspect)(t))}var QF=/^-?(?:0|[1-9][0-9]*)$/});var ki=F(Xt=>{"use strict";m();T();N();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.introspectionTypes=Xt.__TypeKind=Xt.__Type=Xt.__Schema=Xt.__InputValue=Xt.__Field=Xt.__EnumValue=Xt.__DirectiveLocation=Xt.__Directive=Xt.TypeNameMetaFieldDef=Xt.TypeMetaFieldDef=Xt.TypeKind=Xt.SchemaMetaFieldDef=void 0;Xt.isIntrospectionType=q6;var L6=Wt(),C6=br(),rr=Nl(),B6=Ti(),U6=pp(),Ue=Ct(),dn=xa(),ng=new Ue.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:dn.GraphQLString,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ue.GraphQLNonNull(new Ue.GraphQLList(new Ue.GraphQLNonNull(Ui))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ue.GraphQLNonNull(Ui),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ui,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ui,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ue.GraphQLNonNull(new Ue.GraphQLList(new Ue.GraphQLNonNull(rg))),resolve:e=>e.getDirectives()}})});Xt.__Schema=ng;var rg=new Ue.GraphQLObjectType({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. +}`)}function At(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function Xm(e){return At(" ",e.replace(/\n/g,` + `))}function OF(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!==null&&t!==void 0?t:!1}});var RI=w(AI=>{"use strict";m();T();N();Object.defineProperty(AI,"__esModule",{value:!0});AI.valueFromASTUntyped=bI;var u6=Hd(),_s=wt();function bI(e,t){switch(e.kind){case _s.Kind.NULL:return null;case _s.Kind.INT:return parseInt(e.value,10);case _s.Kind.FLOAT:return parseFloat(e.value);case _s.Kind.STRING:case _s.Kind.ENUM:case _s.Kind.BOOLEAN:return e.value;case _s.Kind.LIST:return e.values.map(n=>bI(n,t));case _s.Kind.OBJECT:return(0,u6.keyValMap)(e.fields,n=>n.name.value,n=>bI(n.value,t));case _s.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}}});var Wd=w(eN=>{"use strict";m();T();N();Object.defineProperty(eN,"__esModule",{value:!0});eN.assertEnumValueName=c6;eN.assertName=bF;var SF=xr(),Zm=ze(),DF=Vm();function bF(e){if(e!=null||(0,SF.devAssert)(!1,"Must provide name."),typeof e=="string"||(0,SF.devAssert)(!1,"Expected name to be a string."),e.length===0)throw new Zm.GraphQLError("Expected name to be a non-empty string.");for(let t=1;t{"use strict";m();T();N();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.GraphQLUnionType=Qe.GraphQLScalarType=Qe.GraphQLObjectType=Qe.GraphQLNonNull=Qe.GraphQLList=Qe.GraphQLInterfaceType=Qe.GraphQLInputObjectType=Qe.GraphQLEnumType=void 0;Qe.argsToArgsConfig=qF;Qe.assertAbstractType=R6;Qe.assertCompositeType=A6;Qe.assertEnumType=g6;Qe.assertInputObjectType=_6;Qe.assertInputType=S6;Qe.assertInterfaceType=y6;Qe.assertLeafType=b6;Qe.assertListType=v6;Qe.assertNamedType=L6;Qe.assertNonNullType=O6;Qe.assertNullableType=F6;Qe.assertObjectType=h6;Qe.assertOutputType=D6;Qe.assertScalarType=E6;Qe.assertType=T6;Qe.assertUnionType=I6;Qe.assertWrappingType=P6;Qe.defineArguments=MF;Qe.getNamedType=C6;Qe.getNullableType=w6;Qe.isAbstractType=CF;Qe.isCompositeType=LF;Qe.isEnumType=sc;Qe.isInputObjectType=Zd;Qe.isInputType=PI;Qe.isInterfaceType=ic;Qe.isLeafType=wF;Qe.isListType=fN;Qe.isNamedType=BF;Qe.isNonNullType=pu;Qe.isNullableType=wI;Qe.isObjectType=El;Qe.isOutputType=FI;Qe.isRequiredArgument=B6;Qe.isRequiredInputField=M6;Qe.isScalarType=rc;Qe.isType=dN;Qe.isUnionType=ac;Qe.isWrappingType=ef;Qe.resolveObjMapThunk=CI;Qe.resolveReadonlyArrayThunk=LI;var fr=xr(),l6=uu(),AF=IF(),Nn=Wt(),fu=Qd(),d6=Ba(),f6=cu(),FF=Hd(),lN=hI(),p6=lu(),ka=zm(),Xd=ze(),m6=wt(),RF=pi(),N6=RI(),Ma=Wd();function dN(e){return rc(e)||El(e)||ic(e)||ac(e)||sc(e)||Zd(e)||fN(e)||pu(e)}function T6(e){if(!dN(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL type.`);return e}function rc(e){return(0,fu.instanceOf)(e,iN)}function E6(e){if(!rc(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Scalar type.`);return e}function El(e){return(0,fu.instanceOf)(e,aN)}function h6(e){if(!El(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Object type.`);return e}function ic(e){return(0,fu.instanceOf)(e,sN)}function y6(e){if(!ic(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Interface type.`);return e}function ac(e){return(0,fu.instanceOf)(e,oN)}function I6(e){if(!ac(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Union type.`);return e}function sc(e){return(0,fu.instanceOf)(e,uN)}function g6(e){if(!sc(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Enum type.`);return e}function Zd(e){return(0,fu.instanceOf)(e,cN)}function _6(e){if(!Zd(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Input Object type.`);return e}function fN(e){return(0,fu.instanceOf)(e,nN)}function v6(e){if(!fN(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL List type.`);return e}function pu(e){return(0,fu.instanceOf)(e,rN)}function O6(e){if(!pu(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL Non-Null type.`);return e}function PI(e){return rc(e)||sc(e)||Zd(e)||ef(e)&&PI(e.ofType)}function S6(e){if(!PI(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL input type.`);return e}function FI(e){return rc(e)||El(e)||ic(e)||ac(e)||sc(e)||ef(e)&&FI(e.ofType)}function D6(e){if(!FI(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL output type.`);return e}function wF(e){return rc(e)||sc(e)}function b6(e){if(!wF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL leaf type.`);return e}function LF(e){return El(e)||ic(e)||ac(e)}function A6(e){if(!LF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL composite type.`);return e}function CF(e){return ic(e)||ac(e)}function R6(e){if(!CF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL abstract type.`);return e}var nN=class{constructor(t){dN(t)||(0,fr.devAssert)(!1,`Expected ${(0,Nn.inspect)(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}};Qe.GraphQLList=nN;var rN=class{constructor(t){wI(t)||(0,fr.devAssert)(!1,`Expected ${(0,Nn.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()}};Qe.GraphQLNonNull=rN;function ef(e){return fN(e)||pu(e)}function P6(e){if(!ef(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL wrapping type.`);return e}function wI(e){return dN(e)&&!pu(e)}function F6(e){if(!wI(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL nullable type.`);return e}function w6(e){if(e)return pu(e)?e.ofType:e}function BF(e){return rc(e)||El(e)||ic(e)||ac(e)||sc(e)||Zd(e)}function L6(e){if(!BF(e))throw new Error(`Expected ${(0,Nn.inspect)(e)} to be a GraphQL named type.`);return e}function C6(e){if(e){let t=e;for(;ef(t);)t=t.ofType;return t}}function LI(e){return typeof e=="function"?e():e}function CI(e){return typeof e=="function"?e():e}var iN=class{constructor(t){var n,r,i,a;let o=(n=t.parseValue)!==null&&n!==void 0?n:AF.identityFunc;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:AF.identityFunc,this.parseValue=o,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,l)=>o((0,N6.valueFromASTUntyped)(c,l)),this.extensions=(0,ka.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,fr.devAssert)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,Nn.inspect)(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||(0,fr.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,fr.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()}};Qe.GraphQLScalarType=iN;var aN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>kF(t),this._interfaces=()=>UF(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||(0,fr.devAssert)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,Nn.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:xF(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLObjectType=aN;function UF(e){var t;let n=LI((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||(0,fr.devAssert)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function kF(e){let t=CI(e.fields);return Tl(t)||(0,fr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,lN.mapValue)(t,(n,r)=>{var i;Tl(n)||(0,fr.devAssert)(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||(0,fr.devAssert)(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${(0,Nn.inspect)(n.resolve)}.`);let a=(i=n.args)!==null&&i!==void 0?i:{};return Tl(a)||(0,fr.devAssert)(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:(0,Ma.assertName)(r),description:n.description,type:n.type,args:MF(a),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}})}function MF(e){return Object.entries(e).map(([t,n])=>({name:(0,Ma.assertName)(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}))}function Tl(e){return(0,d6.isObjectLike)(e)&&!Array.isArray(e)}function xF(e){return(0,lN.mapValue)(e,t=>({description:t.description,type:t.type,args:qF(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function qF(e){return(0,FF.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 B6(e){return pu(e.type)&&e.defaultValue===void 0}var sN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=kF.bind(void 0,t),this._interfaces=UF.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,fr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Nn.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:xF(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};Qe.GraphQLInterfaceType=sN;var oN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=(0,ka.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=U6.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||(0,fr.devAssert)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,Nn.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()}};Qe.GraphQLUnionType=oN;function U6(e){let t=LI(e.types);return Array.isArray(t)||(0,fr.devAssert)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}var uN=class{constructor(t){var n;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.extensions=(0,ka.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:PF(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=PF(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=(0,f6.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 Xd.GraphQLError(`Enum "${this.name}" cannot represent value: ${(0,Nn.inspect)(t)}`);return n.name}parseValue(t){if(typeof t!="string"){let r=(0,Nn.inspect)(t);throw new Xd.GraphQLError(`Enum "${this.name}" cannot represent non-string value: ${r}.`+tN(this,r))}let n=this.getValue(t);if(n==null)throw new Xd.GraphQLError(`Value "${t}" does not exist in "${this.name}" enum.`+tN(this,t));return n.value}parseLiteral(t,n){if(t.kind!==m6.Kind.ENUM){let i=(0,RF.print)(t);throw new Xd.GraphQLError(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+tN(this,i),{nodes:t})}let r=this.getValue(t.value);if(r==null){let i=(0,RF.print)(t);throw new Xd.GraphQLError(`Value "${i}" does not exist in "${this.name}" enum.`+tN(this,i),{nodes:t})}return r.value}toConfig(){let t=(0,FF.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()}};Qe.GraphQLEnumType=uN;function tN(e,t){let n=e.getValues().map(i=>i.name),r=(0,p6.suggestionList)(t,n);return(0,l6.didYouMean)("the enum value",r)}function PF(e,t){return Tl(t)||(0,fr.devAssert)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Tl(r)||(0,fr.devAssert)(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${(0,Nn.inspect)(r)}.`),{name:(0,Ma.assertEnumValueName)(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:(0,ka.toObjMap)(r.extensions),astNode:r.astNode}))}var cN=class{constructor(t){var n,r;this.name=(0,Ma.assertName)(t.name),this.description=t.description,this.extensions=(0,ka.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=k6.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,lN.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()}};Qe.GraphQLInputObjectType=cN;function k6(e){let t=CI(e.fields);return Tl(t)||(0,fr.devAssert)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,lN.mapValue)(t,(n,r)=>(!("resolve"in n)||(0,fr.devAssert)(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,Ma.assertName)(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:(0,ka.toObjMap)(n.extensions),astNode:n.astNode}))}function M6(e){return pu(e.type)&&e.defaultValue===void 0}});var nf=w(tf=>{"use strict";m();T();N();Object.defineProperty(tf,"__esModule",{value:!0});tf.doTypesOverlap=x6;tf.isEqualType=BI;tf.isTypeSubTypeOf=pN;var Dr=Lt();function BI(e,t){return e===t?!0:(0,Dr.isNonNullType)(e)&&(0,Dr.isNonNullType)(t)||(0,Dr.isListType)(e)&&(0,Dr.isListType)(t)?BI(e.ofType,t.ofType):!1}function pN(e,t,n){return t===n?!0:(0,Dr.isNonNullType)(n)?(0,Dr.isNonNullType)(t)?pN(e,t.ofType,n.ofType):!1:(0,Dr.isNonNullType)(t)?pN(e,t.ofType,n):(0,Dr.isListType)(n)?(0,Dr.isListType)(t)?pN(e,t.ofType,n.ofType):!1:(0,Dr.isListType)(t)?!1:(0,Dr.isAbstractType)(n)&&((0,Dr.isInterfaceType)(t)||(0,Dr.isObjectType)(t))&&e.isSubType(n,t)}function x6(e,t,n){return t===n?!0:(0,Dr.isAbstractType)(t)?(0,Dr.isAbstractType)(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):(0,Dr.isAbstractType)(n)?e.isSubType(n,t):!1}});var xa=w(nr=>{"use strict";m();T();N();Object.defineProperty(nr,"__esModule",{value:!0});nr.GraphQLString=nr.GraphQLInt=nr.GraphQLID=nr.GraphQLFloat=nr.GraphQLBoolean=nr.GRAPHQL_MIN_INT=nr.GRAPHQL_MAX_INT=void 0;nr.isSpecifiedScalarType=q6;nr.specifiedScalarTypes=void 0;var ua=Wt(),VF=Ba(),pr=ze(),oc=wt(),rf=pi(),af=Lt(),mN=2147483647;nr.GRAPHQL_MAX_INT=mN;var NN=-2147483648;nr.GRAPHQL_MIN_INT=NN;var jF=new af.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=sf(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 pr.GraphQLError(`Int cannot represent non-integer value: ${(0,ua.inspect)(t)}`);if(n>mN||nmN||emN||te.name===t)}function sf(e){if((0,VF.isObjectLike)(e)){if(typeof e.valueOf=="function"){let t=e.valueOf();if(!(0,VF.isObjectLike)(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}});var Wr=w(jn=>{"use strict";m();T();N();Object.defineProperty(jn,"__esModule",{value:!0});jn.GraphQLSpecifiedByDirective=jn.GraphQLSkipDirective=jn.GraphQLOneOfDirective=jn.GraphQLIncludeDirective=jn.GraphQLDirective=jn.GraphQLDeprecatedDirective=jn.DEFAULT_DEPRECATION_REASON=void 0;jn.assertDirective=Q6;jn.isDirective=HF;jn.isSpecifiedDirective=Y6;jn.specifiedDirectives=void 0;var JF=xr(),V6=Wt(),j6=Qd(),K6=Ba(),G6=zm(),Pi=fl(),$6=Wd(),of=Lt(),TN=xa();function HF(e){return(0,j6.instanceOf)(e,vs)}function Q6(e){if(!HF(e))throw new Error(`Expected ${(0,V6.inspect)(e)} to be a GraphQL directive.`);return e}var vs=class{constructor(t){var n,r;this.name=(0,$6.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,G6.toObjMap)(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||(0,JF.devAssert)(!1,`@${t.name} locations must be an Array.`);let i=(r=t.args)!==null&&r!==void 0?r:{};(0,K6.isObjectLike)(i)&&!Array.isArray(i)||(0,JF.devAssert)(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=(0,of.defineArguments)(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,of.argsToArgsConfig)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}};jn.GraphQLDirective=vs;var zF=new vs({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[Pi.DirectiveLocation.FIELD,Pi.DirectiveLocation.FRAGMENT_SPREAD,Pi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new of.GraphQLNonNull(TN.GraphQLBoolean),description:"Included when true."}}});jn.GraphQLIncludeDirective=zF;var WF=new vs({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[Pi.DirectiveLocation.FIELD,Pi.DirectiveLocation.FRAGMENT_SPREAD,Pi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new of.GraphQLNonNull(TN.GraphQLBoolean),description:"Skipped when true."}}});jn.GraphQLSkipDirective=WF;var XF="No longer supported";jn.DEFAULT_DEPRECATION_REASON=XF;var ZF=new vs({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[Pi.DirectiveLocation.FIELD_DEFINITION,Pi.DirectiveLocation.ARGUMENT_DEFINITION,Pi.DirectiveLocation.INPUT_FIELD_DEFINITION,Pi.DirectiveLocation.ENUM_VALUE],args:{reason:{type:TN.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:XF}}});jn.GraphQLDeprecatedDirective=ZF;var ew=new vs({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[Pi.DirectiveLocation.SCALAR],args:{url:{type:new of.GraphQLNonNull(TN.GraphQLString),description:"The URL that specifies the behavior of this scalar."}}});jn.GraphQLSpecifiedByDirective=ew;var tw=new vs({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[Pi.DirectiveLocation.INPUT_OBJECT],args:{}});jn.GraphQLOneOfDirective=tw;var nw=Object.freeze([zF,WF,ZF,ew,tw]);jn.specifiedDirectives=nw;function Y6(e){return nw.some(({name:t})=>t===e.name)}});var EN=w(UI=>{"use strict";m();T();N();Object.defineProperty(UI,"__esModule",{value:!0});UI.isIterableObject=J6;function J6(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}});var lf=w(kI=>{"use strict";m();T();N();Object.defineProperty(kI,"__esModule",{value:!0});kI.astFromValue=cf;var rw=Wt(),H6=Sr(),z6=EN(),W6=Ba(),Fi=wt(),uf=Lt(),X6=xa();function cf(e,t){if((0,uf.isNonNullType)(t)){let n=cf(e,t.ofType);return(n==null?void 0:n.kind)===Fi.Kind.NULL?null:n}if(e===null)return{kind:Fi.Kind.NULL};if(e===void 0)return null;if((0,uf.isListType)(t)){let n=t.ofType;if((0,z6.isIterableObject)(e)){let r=[];for(let i of e){let a=cf(i,n);a!=null&&r.push(a)}return{kind:Fi.Kind.LIST,values:r}}return cf(e,n)}if((0,uf.isInputObjectType)(t)){if(!(0,W6.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=cf(e[r.name],r.type);i&&n.push({kind:Fi.Kind.OBJECT_FIELD,name:{kind:Fi.Kind.NAME,value:r.name},value:i})}return{kind:Fi.Kind.OBJECT,fields:n}}if((0,uf.isLeafType)(t)){let n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Fi.Kind.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){let r=String(n);return iw.test(r)?{kind:Fi.Kind.INT,value:r}:{kind:Fi.Kind.FLOAT,value:r}}if(typeof n=="string")return(0,uf.isEnumType)(t)?{kind:Fi.Kind.ENUM,value:n}:t===X6.GraphQLID&&iw.test(n)?{kind:Fi.Kind.INT,value:n}:{kind:Fi.Kind.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${(0,rw.inspect)(n)}.`)}(0,H6.invariant)(!1,"Unexpected input type: "+(0,rw.inspect)(t))}var iw=/^-?(?:0|[1-9][0-9]*)$/});var Li=w(Xt=>{"use strict";m();T();N();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.introspectionTypes=Xt.__TypeKind=Xt.__Type=Xt.__Schema=Xt.__InputValue=Xt.__Field=Xt.__EnumValue=Xt.__DirectiveLocation=Xt.__Directive=Xt.TypeNameMetaFieldDef=Xt.TypeMetaFieldDef=Xt.TypeKind=Xt.SchemaMetaFieldDef=void 0;Xt.isIntrospectionType=sz;var Z6=Wt(),ez=Sr(),rr=fl(),tz=pi(),nz=lf(),ke=Lt(),ln=xa(),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:ln.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(wi))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new ke.GraphQLNonNull(wi),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:wi,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:wi,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(xI))),resolve:e=>e.getDirectives()}})});Xt.__Schema=MI;var xI=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 Ue.GraphQLNonNull(dn.GraphQLString),resolve:e=>e.name},description:{type:dn.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new Ue.GraphQLNonNull(dn.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new Ue.GraphQLNonNull(new Ue.GraphQLList(new Ue.GraphQLNonNull(ig))),resolve:e=>e.locations},args:{type:new Ue.GraphQLNonNull(new Ue.GraphQLList(new Ue.GraphQLNonNull(fp))),args:{includeDeprecated:{type:dn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Xt.__Directive=rg;var ig=new Ue.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:rr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:rr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:rr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:rr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:rr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:rr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:rr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:rr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:rr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:rr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:rr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:rr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:rr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:rr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:rr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:rr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:rr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:rr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:rr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Xt.__DirectiveLocation=ig;var Ui=new Ue.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 Ue.GraphQLNonNull(og),resolve(e){if((0,Ue.isScalarType)(e))return ir.SCALAR;if((0,Ue.isObjectType)(e))return ir.OBJECT;if((0,Ue.isInterfaceType)(e))return ir.INTERFACE;if((0,Ue.isUnionType)(e))return ir.UNION;if((0,Ue.isEnumType)(e))return ir.ENUM;if((0,Ue.isInputObjectType)(e))return ir.INPUT_OBJECT;if((0,Ue.isListType)(e))return ir.LIST;if((0,Ue.isNonNullType)(e))return ir.NON_NULL;(0,C6.invariant)(!1,`Unexpected type: "${(0,L6.inspect)(e)}".`)}},name:{type:dn.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:dn.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:dn.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ue.GraphQLList(new Ue.GraphQLNonNull(ag)),args:{includeDeprecated:{type:dn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ue.isObjectType)(e)||(0,Ue.isInterfaceType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new Ue.GraphQLList(new Ue.GraphQLNonNull(Ui)),resolve(e){if((0,Ue.isObjectType)(e)||(0,Ue.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new Ue.GraphQLList(new Ue.GraphQLNonNull(Ui)),resolve(e,t,n,{schema:r}){if((0,Ue.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new Ue.GraphQLList(new Ue.GraphQLNonNull(sg)),args:{includeDeprecated:{type:dn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ue.isEnumType)(e)){let n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new Ue.GraphQLList(new Ue.GraphQLNonNull(fp)),args:{includeDeprecated:{type:dn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if((0,Ue.isInputObjectType)(e)){let n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Ui,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:dn.GraphQLBoolean,resolve:e=>{if((0,Ue.isInputObjectType)(e))return e.isOneOf}}})});Xt.__Type=Ui;var ag=new Ue.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 Ue.GraphQLNonNull(dn.GraphQLString),resolve:e=>e.name},description:{type:dn.GraphQLString,resolve:e=>e.description},args:{type:new Ue.GraphQLNonNull(new Ue.GraphQLList(new Ue.GraphQLNonNull(fp))),args:{includeDeprecated:{type:dn.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Ue.GraphQLNonNull(Ui),resolve:e=>e.type},isDeprecated:{type:new Ue.GraphQLNonNull(dn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:dn.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__Field=ag;var fp=new Ue.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 Ue.GraphQLNonNull(dn.GraphQLString),resolve:e=>e.name},description:{type:dn.GraphQLString,resolve:e=>e.description},type:{type:new Ue.GraphQLNonNull(Ui),resolve:e=>e.type},defaultValue:{type:dn.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,U6.astFromValue)(n,t);return r?(0,B6.print)(r):null}},isDeprecated:{type:new Ue.GraphQLNonNull(dn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:dn.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__InputValue=fp;var sg=new Ue.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 Ue.GraphQLNonNull(dn.GraphQLString),resolve:e=>e.name},description:{type:dn.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new Ue.GraphQLNonNull(dn.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:dn.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__EnumValue=sg;var ir;Xt.TypeKind=ir;(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"})(ir||(Xt.TypeKind=ir={}));var og=new Ue.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ir.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ir.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ir.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ir.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ir.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ir.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ir.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ir.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Xt.__TypeKind=og;var k6={name:"__schema",type:new Ue.GraphQLNonNull(ng),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};Xt.SchemaMetaFieldDef=k6;var M6={name:"__type",type:Ui,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ue.GraphQLNonNull(dn.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};Xt.TypeMetaFieldDef=M6;var x6={name:"__typename",type:new Ue.GraphQLNonNull(dn.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};Xt.TypeNameMetaFieldDef=x6;var YF=Object.freeze([ng,rg,ig,Ui,ag,fp,sg,og]);Xt.introspectionTypes=YF;function q6(e){return YF.some(({name:t})=>e.name===t)}});var lc=F(gl=>{"use strict";m();T();N();Object.defineProperty(gl,"__esModule",{value:!0});gl.GraphQLSchema=void 0;gl.assertSchema=$6;gl.isSchema=HF;var hN=jr(),cg=Wt(),V6=Hd(),j6=Ba(),K6=zm(),ug=Ua(),da=Ct(),JF=ei(),G6=ki();function HF(e){return(0,V6.instanceOf)(e,yN)}function $6(e){if(!HF(e))throw new Error(`Expected ${(0,cg.inspect)(e)} to be a GraphQL schema.`);return e}var yN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,j6.isObjectLike)(t)||(0,hN.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,hN.devAssert)(!1,`"types" must be Array if provided but got: ${(0,cg.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,hN.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,cg.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,K6.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:JF.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),pa(a,i);this._queryType!=null&&pa(this._queryType,i),this._mutationType!=null&&pa(this._mutationType,i),this._subscriptionType!=null&&pa(this._subscriptionType,i);for(let a of this._directives)if((0,JF.isDirective)(a))for(let o of a.args)pa(o.type,i);pa(G6.__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,hN.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,da.isInterfaceType)(a)){for(let c of a.getInterfaces())if((0,da.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,da.isObjectType)(a)){for(let c of a.getInterfaces())if((0,da.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 ug.OperationTypeNode.QUERY:return this.getQueryType();case ug.OperationTypeNode.MUTATION:return this.getMutationType();case ug.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,da.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,da.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}}};gl.GraphQLSchema=yN;function pa(e,t){let n=(0,da.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,da.isUnionType)(n))for(let r of n.getTypes())pa(r,t);else if((0,da.isObjectType)(n)||(0,da.isInterfaceType)(n)){for(let r of n.getInterfaces())pa(r,t);for(let r of Object.values(n.getFields())){pa(r.type,t);for(let i of r.args)pa(i.type,t)}}else if((0,da.isInputObjectType)(n))for(let r of Object.values(n.getFields()))pa(r.type,t)}return t}});var Np=F(IN=>{"use strict";m();T();N();Object.defineProperty(IN,"__esModule",{value:!0});IN.assertValidSchema=H6;IN.validateSchema=tw;var Rr=Wt(),Q6=ze(),lg=Ua(),zF=ap(),Bn=Ct(),ew=ei(),Y6=ki(),J6=lc();function tw(e){if((0,J6.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new pg(e);z6(t),W6(t),X6(t);let n=t.getErrors();return e.__validationErrors=n,n}function H6(e){let t=tw(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new ke.GraphQLNonNull(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},isRepeatable:{type:new ke.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.isRepeatable},locations:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(qI))),resolve:e=>e.locations},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(df))),args:{includeDeprecated:{type:ln.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})});Xt.__Directive=xI;var qI=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:rr.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:rr.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:rr.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:rr.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:rr.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:rr.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:rr.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:rr.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:rr.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:rr.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:rr.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:rr.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:rr.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:rr.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:rr.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:rr.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:rr.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:rr.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:rr.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Xt.__DirectiveLocation=qI;var wi=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(KI),resolve(e){if((0,ke.isScalarType)(e))return ir.SCALAR;if((0,ke.isObjectType)(e))return ir.OBJECT;if((0,ke.isInterfaceType)(e))return ir.INTERFACE;if((0,ke.isUnionType)(e))return ir.UNION;if((0,ke.isEnumType)(e))return ir.ENUM;if((0,ke.isInputObjectType)(e))return ir.INPUT_OBJECT;if((0,ke.isListType)(e))return ir.LIST;if((0,ke.isNonNullType)(e))return ir.NON_NULL;(0,ez.invariant)(!1,`Unexpected type: "${(0,Z6.inspect)(e)}".`)}},name:{type:ln.GraphQLString,resolve:e=>"name"in e?e.name:void 0},description:{type:ln.GraphQLString,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:ln.GraphQLString,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ke.GraphQLList(new ke.GraphQLNonNull(VI)),args:{includeDeprecated:{type:ln.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(wi)),resolve(e){if((0,ke.isObjectType)(e)||(0,ke.isInterfaceType)(e))return e.getInterfaces()}},possibleTypes:{type:new ke.GraphQLList(new ke.GraphQLNonNull(wi)),resolve(e,t,n,{schema:r}){if((0,ke.isAbstractType)(e))return r.getPossibleTypes(e)}},enumValues:{type:new ke.GraphQLList(new ke.GraphQLNonNull(jI)),args:{includeDeprecated:{type:ln.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(df)),args:{includeDeprecated:{type:ln.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:wi,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:ln.GraphQLBoolean,resolve:e=>{if((0,ke.isInputObjectType)(e))return e.isOneOf}}})});Xt.__Type=wi;var VI=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(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},args:{type:new ke.GraphQLNonNull(new ke.GraphQLList(new ke.GraphQLNonNull(df))),args:{includeDeprecated:{type:ln.GraphQLBoolean,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new ke.GraphQLNonNull(wi),resolve:e=>e.type},isDeprecated:{type:new ke.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__Field=VI;var df=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(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},type:{type:new ke.GraphQLNonNull(wi),resolve:e=>e.type},defaultValue:{type:ln.GraphQLString,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=(0,nz.astFromValue)(n,t);return r?(0,tz.print)(r):null}},isDeprecated:{type:new ke.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__InputValue=df;var jI=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(ln.GraphQLString),resolve:e=>e.name},description:{type:ln.GraphQLString,resolve:e=>e.description},isDeprecated:{type:new ke.GraphQLNonNull(ln.GraphQLBoolean),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:ln.GraphQLString,resolve:e=>e.deprecationReason}})});Xt.__EnumValue=jI;var ir;Xt.TypeKind=ir;(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"})(ir||(Xt.TypeKind=ir={}));var KI=new ke.GraphQLEnumType({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:ir.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:ir.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:ir.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:ir.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:ir.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:ir.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:ir.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:ir.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}});Xt.__TypeKind=KI;var rz={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};Xt.SchemaMetaFieldDef=rz;var iz={name:"__type",type:wi,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new ke.GraphQLNonNull(ln.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};Xt.TypeMetaFieldDef=iz;var az={name:"__typename",type:new ke.GraphQLNonNull(ln.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};Xt.TypeNameMetaFieldDef=az;var aw=Object.freeze([MI,xI,qI,wi,VI,df,jI,KI]);Xt.introspectionTypes=aw;function sz(e){return aw.some(({name:t})=>e.name===t)}});var uc=w(hl=>{"use strict";m();T();N();Object.defineProperty(hl,"__esModule",{value:!0});hl.GraphQLSchema=void 0;hl.assertSchema=dz;hl.isSchema=ow;var hN=xr(),$I=Wt(),oz=Qd(),uz=Ba(),cz=zm(),GI=Ua(),ca=Lt(),sw=Wr(),lz=Li();function ow(e){return(0,oz.instanceOf)(e,yN)}function dz(e){if(!ow(e))throw new Error(`Expected ${(0,$I.inspect)(e)} to be a GraphQL schema.`);return e}var yN=class{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,(0,uz.isObjectLike)(t)||(0,hN.devAssert)(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||(0,hN.devAssert)(!1,`"types" must be Array if provided but got: ${(0,$I.inspect)(t.types)}.`),!t.directives||Array.isArray(t.directives)||(0,hN.devAssert)(!1,`"directives" must be Array if provided but got: ${(0,$I.inspect)(t.directives)}.`),this.description=t.description,this.extensions=(0,cz.toObjMap)(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:sw.specifiedDirectives;let i=new Set(t.types);if(t.types!=null)for(let a of t.types)i.delete(a),la(a,i);this._queryType!=null&&la(this._queryType,i),this._mutationType!=null&&la(this._mutationType,i),this._subscriptionType!=null&&la(this._subscriptionType,i);for(let a of this._directives)if((0,sw.isDirective)(a))for(let o of a.args)la(o.type,i);la(lz.__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,hN.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,ca.isInterfaceType)(a)){for(let c of a.getInterfaces())if((0,ca.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,ca.isObjectType)(a)){for(let c of a.getInterfaces())if((0,ca.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 GI.OperationTypeNode.QUERY:return this.getQueryType();case GI.OperationTypeNode.MUTATION:return this.getMutationType();case GI.OperationTypeNode.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return(0,ca.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,ca.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}}};hl.GraphQLSchema=yN;function la(e,t){let n=(0,ca.getNamedType)(e);if(!t.has(n)){if(t.add(n),(0,ca.isUnionType)(n))for(let r of n.getTypes())la(r,t);else if((0,ca.isObjectType)(n)||(0,ca.isInterfaceType)(n)){for(let r of n.getInterfaces())la(r,t);for(let r of Object.values(n.getFields())){la(r.type,t);for(let i of r.args)la(i.type,t)}}else if((0,ca.isInputObjectType)(n))for(let r of Object.values(n.getFields()))la(r.type,t)}return t}});var pf=w(IN=>{"use strict";m();T();N();Object.defineProperty(IN,"__esModule",{value:!0});IN.assertValidSchema=Nz;IN.validateSchema=pw;var br=Wt(),fz=ze(),QI=Ua(),uw=nf(),Cn=Lt(),fw=Wr(),pz=Li(),mz=uc();function pw(e){if((0,mz.assertSchema)(e),e.__validationErrors)return e.__validationErrors;let t=new JI(e);Tz(t),Ez(t),hz(t);let n=t.getErrors();return e.__validationErrors=n,n}function Nz(e){let t=pw(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}var pg=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Q6.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function z6(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Bn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,Rr.inspect)(n)}.`,(r=dg(t,lg.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Bn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,Rr.inspect)(i)}.`,(a=dg(t,lg.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Bn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,Rr.inspect)(o)}.`,(c=dg(t,lg.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function dg(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 W6(e){for(let n of e.schema.getDirectives()){if(!(0,ew.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,Rr.inspect)(n)}.`,n==null?void 0:n.astNode);continue}dc(e,n);for(let r of n.args)if(dc(e,r),(0,Bn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,Rr.inspect)(r.type)}.`,r.astNode),(0,Bn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[fg(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function dc(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function X6(e){let t=az(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Bn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,Rr.inspect)(r)}.`,r.astNode);continue}(0,Y6.isIntrospectionType)(r)||dc(e,r),(0,Bn.isObjectType)(r)||(0,Bn.isInterfaceType)(r)?(WF(e,r),XF(e,r)):(0,Bn.isUnionType)(r)?tz(e,r):(0,Bn.isEnumType)(r)?nz(e,r):(0,Bn.isInputObjectType)(r)&&(rz(e,r),t(r))}}function WF(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(dc(e,o),!(0,Bn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,Rr.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(dc(e,c),!(0,Bn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,Rr.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Bn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[fg(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function XF(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Bn.isInterfaceType)(r)){e.reportError(`Type ${(0,Rr.inspect)(t)} must only implement Interface types, it cannot implement ${(0,Rr.inspect)(r)}.`,mp(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,mp(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,mp(t,r));continue}n[r.name]=!0,ez(e,t,r),Z6(e,t,r)}}function Z6(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,f=r[d];if(!f){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,zF.isTypeSubTypeOf)(e.schema,f.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,Rr.inspect)(l.type)} but ${t.name}.${d} is type ${(0,Rr.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 I=y.name,v=f.args.find(w=>w.name===I);if(!v){e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expected but ${t.name}.${d} does not provide it.`,[y.astNode,f.astNode]);continue}if(!(0,zF.isEqualType)(y.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expects type ${(0,Rr.inspect)(y.type)} but ${t.name}.${d}(${I}:) is type ${(0,Rr.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 I=y.name;!l.args.find(w=>w.name===I)&&(0,Bn.isRequiredArgument)(y)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${I} that is missing from the Interface field ${n.name}.${d}.`,[y.astNode,l.astNode])}}}function ez(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}.`,[...mp(n,i),...mp(t,n)])}function tz(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.`,ZF(t,i.name));continue}r[i.name]=!0,(0,Bn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,Rr.inspect)(i)}.`,ZF(t,String(i)))}}function nz(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)dc(e,r)}function rz(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(dc(e,a),!(0,Bn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,Rr.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Bn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[fg(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&iz(t,a,e)}}function iz(e,t,n){if((0,Bn.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 az(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,Bn.isNonNullType)(c.type)&&(0,Bn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,d=r[l.name];if(n.push(c),d===void 0)i(l);else{let f=n.slice(d),y=f.map(I=>I.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${y}".`,f.map(I=>I.astNode))}n.pop()}r[a.name]=void 0}}function mp(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 ZF(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 fg(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===ew.GraphQLDeprecatedDirective.name)}});var qa=F(Tg=>{"use strict";m();T();N();Object.defineProperty(Tg,"__esModule",{value:!0});Tg.typeFromAST=Ng;var mg=Lt(),nw=Ct();function Ng(e,t){switch(t.kind){case mg.Kind.LIST_TYPE:{let n=Ng(e,t.type);return n&&new nw.GraphQLList(n)}case mg.Kind.NON_NULL_TYPE:{let n=Ng(e,t.type);return n&&new nw.GraphQLNonNull(n)}case mg.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var gN=F(Tp=>{"use strict";m();T();N();Object.defineProperty(Tp,"__esModule",{value:!0});Tp.TypeInfo=void 0;Tp.visitWithTypeInfo=uz;var sz=Ua(),Un=Lt(),rw=ic(),kn=Ct(),_l=ki(),iw=qa(),Eg=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:oz,n&&((0,kn.isInputType)(n)&&this._inputTypeStack.push(n),(0,kn.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,kn.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 Un.Kind.SELECTION_SET:{let i=(0,kn.getNamedType)(this.getType());this._parentTypeStack.push((0,kn.isCompositeType)(i)?i:void 0);break}case Un.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,kn.isOutputType)(o)?o:void 0);break}case Un.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Un.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,kn.isObjectType)(i)?i:void 0);break}case Un.Kind.INLINE_FRAGMENT:case Un.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,iw.typeFromAST)(n,i):(0,kn.getNamedType)(this.getType());this._typeStack.push((0,kn.isOutputType)(a)?a:void 0);break}case Un.Kind.VARIABLE_DEFINITION:{let i=(0,iw.typeFromAST)(n,t.type);this._inputTypeStack.push((0,kn.isInputType)(i)?i:void 0);break}case Un.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,kn.isInputType)(a)?a:void 0);break}case Un.Kind.LIST:{let i=(0,kn.getNullableType)(this.getInputType()),a=(0,kn.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,kn.isInputType)(a)?a:void 0);break}case Un.Kind.OBJECT_FIELD:{let i=(0,kn.getNamedType)(this.getInputType()),a,o;(0,kn.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,kn.isInputType)(a)?a:void 0);break}case Un.Kind.ENUM:{let i=(0,kn.getNamedType)(this.getInputType()),a;(0,kn.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Un.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Un.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Un.Kind.DIRECTIVE:this._directive=null;break;case Un.Kind.OPERATION_DEFINITION:case Un.Kind.INLINE_FRAGMENT:case Un.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Un.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Un.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Un.Kind.LIST:case Un.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Un.Kind.ENUM:this._enumValue=null;break;default:}}};Tp.TypeInfo=Eg;function oz(e,t,n){let r=n.name.value;if(r===_l.SchemaMetaFieldDef.name&&e.getQueryType()===t)return _l.SchemaMetaFieldDef;if(r===_l.TypeMetaFieldDef.name&&e.getQueryType()===t)return _l.TypeMetaFieldDef;if(r===_l.TypeNameMetaFieldDef.name&&(0,kn.isCompositeType)(t))return _l.TypeNameMetaFieldDef;if((0,kn.isObjectType)(t)||(0,kn.isInterfaceType)(t))return t.getFields()[r]}function uz(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,rw.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,sz.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,rw.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var pc=F(Mi=>{"use strict";m();T();N();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.isConstValueNode=hg;Mi.isDefinitionNode=cz;Mi.isExecutableDefinitionNode=aw;Mi.isSelectionNode=lz;Mi.isTypeDefinitionNode=uw;Mi.isTypeExtensionNode=lw;Mi.isTypeNode=dz;Mi.isTypeSystemDefinitionNode=ow;Mi.isTypeSystemExtensionNode=cw;Mi.isValueNode=sw;var Bt=Lt();function cz(e){return aw(e)||ow(e)||cw(e)}function aw(e){return e.kind===Bt.Kind.OPERATION_DEFINITION||e.kind===Bt.Kind.FRAGMENT_DEFINITION}function lz(e){return e.kind===Bt.Kind.FIELD||e.kind===Bt.Kind.FRAGMENT_SPREAD||e.kind===Bt.Kind.INLINE_FRAGMENT}function sw(e){return e.kind===Bt.Kind.VARIABLE||e.kind===Bt.Kind.INT||e.kind===Bt.Kind.FLOAT||e.kind===Bt.Kind.STRING||e.kind===Bt.Kind.BOOLEAN||e.kind===Bt.Kind.NULL||e.kind===Bt.Kind.ENUM||e.kind===Bt.Kind.LIST||e.kind===Bt.Kind.OBJECT}function hg(e){return sw(e)&&(e.kind===Bt.Kind.LIST?e.values.some(hg):e.kind===Bt.Kind.OBJECT?e.fields.some(t=>hg(t.value)):e.kind!==Bt.Kind.VARIABLE)}function dz(e){return e.kind===Bt.Kind.NAMED_TYPE||e.kind===Bt.Kind.LIST_TYPE||e.kind===Bt.Kind.NON_NULL_TYPE}function ow(e){return e.kind===Bt.Kind.SCHEMA_DEFINITION||uw(e)||e.kind===Bt.Kind.DIRECTIVE_DEFINITION}function uw(e){return e.kind===Bt.Kind.SCALAR_TYPE_DEFINITION||e.kind===Bt.Kind.OBJECT_TYPE_DEFINITION||e.kind===Bt.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Bt.Kind.UNION_TYPE_DEFINITION||e.kind===Bt.Kind.ENUM_TYPE_DEFINITION||e.kind===Bt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function cw(e){return e.kind===Bt.Kind.SCHEMA_EXTENSION||lw(e)}function lw(e){return e.kind===Bt.Kind.SCALAR_TYPE_EXTENSION||e.kind===Bt.Kind.OBJECT_TYPE_EXTENSION||e.kind===Bt.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Bt.Kind.UNION_TYPE_EXTENSION||e.kind===Bt.Kind.ENUM_TYPE_EXTENSION||e.kind===Bt.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var Ig=F(yg=>{"use strict";m();T();N();Object.defineProperty(yg,"__esModule",{value:!0});yg.ExecutableDefinitionsRule=mz;var pz=ze(),dw=Lt(),fz=pc();function mz(e){return{Document(t){for(let n of t.definitions)if(!(0,fz.isExecutableDefinitionNode)(n)){let r=n.kind===dw.Kind.SCHEMA_DEFINITION||n.kind===dw.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new pz.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var _g=F(gg=>{"use strict";m();T();N();Object.defineProperty(gg,"__esModule",{value:!0});gg.FieldsOnCorrectTypeRule=hz;var pw=lu(),Nz=Zd(),Tz=pu(),Ez=ze(),Ep=Ct();function hz(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,pw.didYouMean)("to use an inline fragment on",yz(i,n,a));o===""&&(o=(0,pw.didYouMean)(Iz(n,a))),e.reportError(new Ez.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function yz(e,t,n){if(!(0,Ep.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,Ep.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,Ep.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,Nz.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function Iz(e,t){if((0,Ep.isObjectType)(e)||(0,Ep.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,Tz.suggestionList)(t,n)}return[]}});var Og=F(vg=>{"use strict";m();T();N();Object.defineProperty(vg,"__esModule",{value:!0});vg.FragmentsOnCompositeTypesRule=gz;var fw=ze(),mw=Ti(),Nw=Ct(),Tw=qa();function gz(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,Tw.typeFromAST)(e.getSchema(),n);if(r&&!(0,Nw.isCompositeType)(r)){let i=(0,mw.print)(n);e.reportError(new fw.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,Tw.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,Nw.isCompositeType)(n)){let r=(0,mw.print)(t.typeCondition);e.reportError(new fw.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var Sg=F(_N=>{"use strict";m();T();N();Object.defineProperty(_N,"__esModule",{value:!0});_N.KnownArgumentNamesOnDirectivesRule=Iw;_N.KnownArgumentNamesRule=Oz;var Ew=lu(),hw=pu(),yw=ze(),_z=Lt(),vz=ei();function Oz(e){return $(M({},Iw(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,hw.suggestionList)(a,o);e.reportError(new yw.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,Ew.didYouMean)(c),{nodes:t}))}}})}function Iw(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vz.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===_z.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 d of o.arguments){let f=d.name.value;if(!l.includes(f)){let y=(0,hw.suggestionList)(f,l);e.reportError(new yw.GraphQLError(`Unknown argument "${f}" on directive "@${c}".`+(0,Ew.didYouMean)(y),{nodes:d}))}}return!1}}}});var Rg=F(Ag=>{"use strict";m();T();N();Object.defineProperty(Ag,"__esModule",{value:!0});Ag.KnownDirectivesRule=bz;var Sz=Wt(),Dg=br(),gw=ze(),bg=Ua(),ar=Nl(),gn=Lt(),Dz=ei();function bz(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Dz.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===gn.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,d){let f=a.name.value,y=t[f];if(!y){e.reportError(new gw.GraphQLError(`Unknown directive "@${f}".`,{nodes:a}));return}let I=Az(d);I&&!y.includes(I)&&e.reportError(new gw.GraphQLError(`Directive "@${f}" may not be used on ${I}.`,{nodes:a}))}}}function Az(e){let t=e[e.length-1];switch("kind"in t||(0,Dg.invariant)(!1),t.kind){case gn.Kind.OPERATION_DEFINITION:return Rz(t.operation);case gn.Kind.FIELD:return ar.DirectiveLocation.FIELD;case gn.Kind.FRAGMENT_SPREAD:return ar.DirectiveLocation.FRAGMENT_SPREAD;case gn.Kind.INLINE_FRAGMENT:return ar.DirectiveLocation.INLINE_FRAGMENT;case gn.Kind.FRAGMENT_DEFINITION:return ar.DirectiveLocation.FRAGMENT_DEFINITION;case gn.Kind.VARIABLE_DEFINITION:return ar.DirectiveLocation.VARIABLE_DEFINITION;case gn.Kind.SCHEMA_DEFINITION:case gn.Kind.SCHEMA_EXTENSION:return ar.DirectiveLocation.SCHEMA;case gn.Kind.SCALAR_TYPE_DEFINITION:case gn.Kind.SCALAR_TYPE_EXTENSION:return ar.DirectiveLocation.SCALAR;case gn.Kind.OBJECT_TYPE_DEFINITION:case gn.Kind.OBJECT_TYPE_EXTENSION:return ar.DirectiveLocation.OBJECT;case gn.Kind.FIELD_DEFINITION:return ar.DirectiveLocation.FIELD_DEFINITION;case gn.Kind.INTERFACE_TYPE_DEFINITION:case gn.Kind.INTERFACE_TYPE_EXTENSION:return ar.DirectiveLocation.INTERFACE;case gn.Kind.UNION_TYPE_DEFINITION:case gn.Kind.UNION_TYPE_EXTENSION:return ar.DirectiveLocation.UNION;case gn.Kind.ENUM_TYPE_DEFINITION:case gn.Kind.ENUM_TYPE_EXTENSION:return ar.DirectiveLocation.ENUM;case gn.Kind.ENUM_VALUE_DEFINITION:return ar.DirectiveLocation.ENUM_VALUE;case gn.Kind.INPUT_OBJECT_TYPE_DEFINITION:case gn.Kind.INPUT_OBJECT_TYPE_EXTENSION:return ar.DirectiveLocation.INPUT_OBJECT;case gn.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,Dg.invariant)(!1),n.kind===gn.Kind.INPUT_OBJECT_TYPE_DEFINITION?ar.DirectiveLocation.INPUT_FIELD_DEFINITION:ar.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,Dg.invariant)(!1,"Unexpected kind: "+(0,Sz.inspect)(t.kind))}}function Rz(e){switch(e){case bg.OperationTypeNode.QUERY:return ar.DirectiveLocation.QUERY;case bg.OperationTypeNode.MUTATION:return ar.DirectiveLocation.MUTATION;case bg.OperationTypeNode.SUBSCRIPTION:return ar.DirectiveLocation.SUBSCRIPTION}}});var Fg=F(Pg=>{"use strict";m();T();N();Object.defineProperty(Pg,"__esModule",{value:!0});Pg.KnownFragmentNamesRule=Fz;var Pz=ze();function Fz(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new Pz.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var Cg=F(Lg=>{"use strict";m();T();N();Object.defineProperty(Lg,"__esModule",{value:!0});Lg.KnownTypeNamesRule=kz;var wz=lu(),Lz=pu(),Cz=ze(),wg=pc(),Bz=ki(),Uz=xa();function kz(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,wg.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,d){let f=a.name.value;if(!n[f]&&!r[f]){var y;let I=(y=d[2])!==null&&y!==void 0?y:c,v=I!=null&&Mz(I);if(v&&_w.includes(f))return;let w=(0,Lz.suggestionList)(f,v?_w.concat(i):i);e.reportError(new Cz.GraphQLError(`Unknown type "${f}".`+(0,wz.didYouMean)(w),{nodes:a}))}}}}var _w=[...Uz.specifiedScalarTypes,...Bz.introspectionTypes].map(e=>e.name);function Mz(e){return"kind"in e&&((0,wg.isTypeSystemDefinitionNode)(e)||(0,wg.isTypeSystemExtensionNode)(e))}});var Ug=F(Bg=>{"use strict";m();T();N();Object.defineProperty(Bg,"__esModule",{value:!0});Bg.LoneAnonymousOperationRule=Vz;var xz=ze(),qz=Lt();function Vz(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===qz.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new xz.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var Mg=F(kg=>{"use strict";m();T();N();Object.defineProperty(kg,"__esModule",{value:!0});kg.LoneSchemaDefinitionRule=jz;var vw=ze();function jz(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 vw.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new vw.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var qg=F(xg=>{"use strict";m();T();N();Object.defineProperty(xg,"__esModule",{value:!0});xg.MaxIntrospectionDepthRule=$z;var Kz=ze(),Ow=Lt(),Gz=3;function $z(e){function t(n,r=Object.create(null),i=0){if(n.kind===Ow.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===Ow.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=Gz))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 Kz.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var jg=F(Vg=>{"use strict";m();T();N();Object.defineProperty(Vg,"__esModule",{value:!0});Vg.NoFragmentCyclesRule=Yz;var Qz=ze();function Yz(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 d=l.name.value,f=r[d];if(n.push(l),f===void 0){let y=e.getFragment(d);y&&i(y)}else{let y=n.slice(f),I=y.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new Qz.GraphQLError(`Cannot spread fragment "${d}" within itself`+(I!==""?` via ${I}.`:"."),{nodes:y}))}n.pop()}r[o]=void 0}}}});var Gg=F(Kg=>{"use strict";m();T();N();Object.defineProperty(Kg,"__esModule",{value:!0});Kg.NoUndefinedVariablesRule=Hz;var Jz=ze();function Hz(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 Jz.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 Qg=F($g=>{"use strict";m();T();N();Object.defineProperty($g,"__esModule",{value:!0});$g.NoUnusedFragmentsRule=Wz;var zz=ze();function Wz(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 zz.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var Jg=F(Yg=>{"use strict";m();T();N();Object.defineProperty(Yg,"__esModule",{value:!0});Yg.NoUnusedVariablesRule=Zz;var Xz=ze();function Zz(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 Xz.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 Wg=F(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.sortValueNode=Hg;var eW=Zd(),bs=Lt();function Hg(e){switch(e.kind){case bs.Kind.OBJECT:return $(M({},e),{fields:tW(e.fields)});case bs.Kind.LIST:return $(M({},e),{values:e.values.map(Hg)});case bs.Kind.INT:case bs.Kind.FLOAT:case bs.Kind.STRING:case bs.Kind.BOOLEAN:case bs.Kind.NULL:case bs.Kind.ENUM:case bs.Kind.VARIABLE:return e}}function tW(e){return e.map(t=>$(M({},t),{value:Hg(t.value)})).sort((t,n)=>(0,eW.naturalCompare)(t.name.value,n.name.value))}});var i_=F(r_=>{"use strict";m();T();N();Object.defineProperty(r_,"__esModule",{value:!0});r_.OverlappingFieldsCanBeMergedRule=aW;var Sw=Wt(),nW=ze(),Xg=Lt(),rW=Ti(),ti=Ct(),iW=Wg(),bw=qa();function Aw(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+Aw(n)).join(" and "):e}function aW(e){let t=new t_,n=new Map;return{SelectionSet(r){let i=sW(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let d=Aw(o);e.reportError(new nW.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function sW(e,t,n,r,i){let a=[],[o,c]=SN(e,t,r,i);if(uW(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:Dw(o)===Dw(c)})}function Dw(e){return(0,rW.print)((0,iW.sortValueNode)(e))}function Zg(e,t){return(0,ti.isListType)(e)?(0,ti.isListType)(t)?Zg(e.ofType,t.ofType):!0:(0,ti.isListType)(t)?!0:(0,ti.isNonNullType)(e)?(0,ti.isNonNullType)(t)?Zg(e.ofType,t.ofType):!0:(0,ti.isNonNullType)(t)?!0:(0,ti.isLeafType)(e)||(0,ti.isLeafType)(t)?e!==t:!1}function SN(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);Pw(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function e_(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,bw.typeFromAST)(e.getSchema(),n.typeCondition);return SN(e,t,i,n.selectionSet)}function Pw(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case Xg.Kind.FIELD:{let o=a.name.value,c;((0,ti.isObjectType)(t)||(0,ti.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 Xg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case Xg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,bw.typeFromAST)(e.getSchema(),o):t;Pw(e,c,a.selectionSet,r,i);break}}}function lW(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 t_=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.PossibleFragmentSpreadsRule=pW;var DN=Wt(),Fw=ze(),a_=Ct(),ww=ap(),dW=qa();function pW(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,a_.isCompositeType)(n)&&(0,a_.isCompositeType)(r)&&!(0,ww.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,DN.inspect)(r),a=(0,DN.inspect)(n);e.reportError(new Fw.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=fW(e,n),i=e.getParentType();if(r&&i&&!(0,ww.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,DN.inspect)(i),o=(0,DN.inspect)(r);e.reportError(new Fw.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function fW(e,t){let n=e.getFragment(t);if(n){let r=(0,dW.typeFromAST)(e.getSchema(),n.typeCondition);if((0,a_.isCompositeType)(r))return r}}});var c_=F(u_=>{"use strict";m();T();N();Object.defineProperty(u_,"__esModule",{value:!0});u_.PossibleTypeExtensionsRule=EW;var mW=lu(),Cw=Wt(),Bw=br(),NW=pu(),Lw=ze(),On=Lt(),TW=pc(),vl=Ct();function EW(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,TW.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=hW[o.kind]:c&&(l=yW(c)),l){if(l!==i.kind){let d=IW(i.kind);e.reportError(new Lw.GraphQLError(`Cannot extend non-${d} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(M(M({},n),t==null?void 0:t.getTypeMap())),f=(0,NW.suggestionList)(a,d);e.reportError(new Lw.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,mW.didYouMean)(f),{nodes:i.name}))}}}var hW={[On.Kind.SCALAR_TYPE_DEFINITION]:On.Kind.SCALAR_TYPE_EXTENSION,[On.Kind.OBJECT_TYPE_DEFINITION]:On.Kind.OBJECT_TYPE_EXTENSION,[On.Kind.INTERFACE_TYPE_DEFINITION]:On.Kind.INTERFACE_TYPE_EXTENSION,[On.Kind.UNION_TYPE_DEFINITION]:On.Kind.UNION_TYPE_EXTENSION,[On.Kind.ENUM_TYPE_DEFINITION]:On.Kind.ENUM_TYPE_EXTENSION,[On.Kind.INPUT_OBJECT_TYPE_DEFINITION]:On.Kind.INPUT_OBJECT_TYPE_EXTENSION};function yW(e){if((0,vl.isScalarType)(e))return On.Kind.SCALAR_TYPE_EXTENSION;if((0,vl.isObjectType)(e))return On.Kind.OBJECT_TYPE_EXTENSION;if((0,vl.isInterfaceType)(e))return On.Kind.INTERFACE_TYPE_EXTENSION;if((0,vl.isUnionType)(e))return On.Kind.UNION_TYPE_EXTENSION;if((0,vl.isEnumType)(e))return On.Kind.ENUM_TYPE_EXTENSION;if((0,vl.isInputObjectType)(e))return On.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Bw.invariant)(!1,"Unexpected type: "+(0,Cw.inspect)(e))}function IW(e){switch(e){case On.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case On.Kind.OBJECT_TYPE_EXTENSION:return"object";case On.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case On.Kind.UNION_TYPE_EXTENSION:return"union";case On.Kind.ENUM_TYPE_EXTENSION:return"enum";case On.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Bw.invariant)(!1,"Unexpected kind: "+(0,Cw.inspect)(e))}}});var d_=F(bN=>{"use strict";m();T();N();Object.defineProperty(bN,"__esModule",{value:!0});bN.ProvidedRequiredArgumentsOnDirectivesRule=qw;bN.ProvidedRequiredArgumentsRule=vW;var kw=Wt(),Uw=du(),Mw=ze(),xw=Lt(),gW=Ti(),l_=Ct(),_W=ei();function vW(e){return $(M({},qw(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,l_.isRequiredArgument)(a)){let o=(0,kw.inspect)(a.type);e.reportError(new Mw.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function qw(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:_W.specifiedDirectives;for(let c of i)n[c.name]=(0,Uw.keyMap)(c.args.filter(l_.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===xw.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,Uw.keyMap)(l.filter(OW),d=>d.name.value)}return{Directive:{leave(c){let l=c.name.value,d=n[l];if(d){var f;let y=(f=c.arguments)!==null&&f!==void 0?f:[],I=new Set(y.map(v=>v.name.value));for(let[v,w]of Object.entries(d))if(!I.has(v)){let U=(0,l_.isType)(w.type)?(0,kw.inspect)(w.type):(0,gW.print)(w.type);e.reportError(new Mw.GraphQLError(`Directive "@${l}" argument "${v}" of type "${U}" is required, but it was not provided.`,{nodes:c}))}}}}}}function OW(e){return e.type.kind===xw.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var f_=F(p_=>{"use strict";m();T();N();Object.defineProperty(p_,"__esModule",{value:!0});p_.ScalarLeafsRule=SW;var Vw=Wt(),jw=ze(),Kw=Ct();function SW(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,Kw.isLeafType)((0,Kw.getNamedType)(n))){if(r){let i=t.name.value,a=(0,Vw.inspect)(n);e.reportError(new jw.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,Vw.inspect)(n);e.reportError(new jw.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var N_=F(m_=>{"use strict";m();T();N();Object.defineProperty(m_,"__esModule",{value:!0});m_.printPathArray=DW;function DW(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var hp=F(AN=>{"use strict";m();T();N();Object.defineProperty(AN,"__esModule",{value:!0});AN.addPath=bW;AN.pathToArray=AW;function bW(e,t,n){return{prev:e,key:t,typename:n}}function AW(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var E_=F(T_=>{"use strict";m();T();N();Object.defineProperty(T_,"__esModule",{value:!0});T_.coerceInputValue=BW;var RW=lu(),RN=Wt(),PW=br(),FW=EN(),wW=Ba(),fa=hp(),LW=N_(),CW=pu(),As=ze(),yp=Ct();function BW(e,t,n=UW){return Ip(e,t,n,void 0)}function UW(e,t,n){let r="Invalid value "+(0,RN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,LW.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function Ip(e,t,n,r){if((0,yp.isNonNullType)(t)){if(e!=null)return Ip(e,t.ofType,n,r);n((0,fa.pathToArray)(r),e,new As.GraphQLError(`Expected non-nullable type "${(0,RN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,yp.isListType)(t)){let i=t.ofType;return(0,FW.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,fa.addPath)(r,o,void 0);return Ip(a,i,n,c)}):[Ip(e,i,n,r)]}if((0,yp.isInputObjectType)(t)){if(!(0,wW.isObjectLike)(e)){n((0,fa.pathToArray)(r),e,new As.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,yp.isNonNullType)(o.type)){let l=(0,RN.inspect)(o.type);n((0,fa.pathToArray)(r),e,new As.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=Ip(c,o.type,n,(0,fa.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,CW.suggestionList)(o,Object.keys(t.getFields()));n((0,fa.pathToArray)(r),e,new As.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,RW.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,fa.pathToArray)(r),e,new As.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,fa.pathToArray)(r).concat(c),l,new As.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,yp.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof As.GraphQLError?n((0,fa.pathToArray)(r),e,a):n((0,fa.pathToArray)(r),e,new As.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,fa.pathToArray)(r),e,new As.GraphQLError(`Expected type "${t.name}".`)),i}(0,PW.invariant)(!1,"Unexpected input type: "+(0,RN.inspect)(t))}});var _p=F(h_=>{"use strict";m();T();N();Object.defineProperty(h_,"__esModule",{value:!0});h_.valueFromAST=gp;var kW=Wt(),MW=br(),xW=du(),Ol=Lt(),fc=Ct();function gp(e,t,n){if(e){if(e.kind===Ol.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,fc.isNonNullType)(t)?void 0:i}if((0,fc.isNonNullType)(t))return e.kind===Ol.Kind.NULL?void 0:gp(e,t.ofType,n);if(e.kind===Ol.Kind.NULL)return null;if((0,fc.isListType)(t)){let r=t.ofType;if(e.kind===Ol.Kind.LIST){let a=[];for(let o of e.values)if(Gw(o,n)){if((0,fc.isNonNullType)(r))return;a.push(null)}else{let c=gp(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=gp(e,r,n);return i===void 0?void 0:[i]}if((0,fc.isInputObjectType)(t)){if(e.kind!==Ol.Kind.OBJECT)return;let r=Object.create(null),i=(0,xW.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||Gw(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,fc.isNonNullType)(a.type))return;continue}let c=gp(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,fc.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,MW.invariant)(!1,"Unexpected input type: "+(0,kW.inspect)(t))}}function Gw(e,t){return e.kind===Ol.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var bl=F(vp=>{"use strict";m();T();N();Object.defineProperty(vp,"__esModule",{value:!0});vp.getArgumentValues=Jw;vp.getDirectiveValues=QW;vp.getVariableValues=GW;var Sl=Wt(),qW=du(),VW=N_(),Rs=ze(),$w=Lt(),Qw=Ti(),Dl=Ct(),jW=E_(),KW=qa(),Yw=_p();function GW(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=$W(e,t,n,c=>{if(a!=null&&i.length>=a)throw new Rs.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 $W(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,KW.typeFromAST)(e,a.type);if(!(0,Dl.isInputType)(c)){let d=(0,Qw.print)(a.type);r(new Rs.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!Hw(n,o)){if(a.defaultValue)i[o]=(0,Yw.valueFromAST)(a.defaultValue,c);else if((0,Dl.isNonNullType)(c)){let d=(0,Sl.inspect)(c);r(new Rs.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,Dl.isNonNullType)(c)){let d=(0,Sl.inspect)(c);r(new Rs.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:a}));continue}i[o]=(0,jW.coerceInputValue)(l,c,(d,f,y)=>{let I=`Variable "$${o}" got invalid value `+(0,Sl.inspect)(f);d.length>0&&(I+=` at "${o}${(0,VW.printPathArray)(d)}"`),r(new Rs.GraphQLError(I+"; "+y.message,{nodes:a,originalError:y}))})}return i}function Jw(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,qW.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,d=c.type,f=o[l];if(!f){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,Dl.isNonNullType)(d))throw new Rs.GraphQLError(`Argument "${l}" of required type "${(0,Sl.inspect)(d)}" was not provided.`,{nodes:t});continue}let y=f.value,I=y.kind===$w.Kind.NULL;if(y.kind===$w.Kind.VARIABLE){let w=y.name.value;if(n==null||!Hw(n,w)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,Dl.isNonNullType)(d))throw new Rs.GraphQLError(`Argument "${l}" of required type "${(0,Sl.inspect)(d)}" was provided the variable "$${w}" which was not provided a runtime value.`,{nodes:y});continue}I=n[w]==null}if(I&&(0,Dl.isNonNullType)(d))throw new Rs.GraphQLError(`Argument "${l}" of non-null type "${(0,Sl.inspect)(d)}" must not be null.`,{nodes:y});let v=(0,Yw.valueFromAST)(y,d,n);if(v===void 0)throw new Rs.GraphQLError(`Argument "${l}" has invalid value ${(0,Qw.print)(y)}.`,{nodes:y});i[l]=v}return i}function QW(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 Jw(e,i,n)}function Hw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var wN=F(FN=>{"use strict";m();T();N();Object.defineProperty(FN,"__esModule",{value:!0});FN.collectFields=HW;FN.collectSubfields=zW;var y_=Lt(),YW=Ct(),zw=ei(),JW=qa(),Ww=bl();function HW(e,t,n,r,i){let a=new Map;return PN(e,t,n,r,i,a,new Set),a}function zW(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&PN(e,t,n,r,c.selectionSet,a,o);return a}function PN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case y_.Kind.FIELD:{if(!I_(n,c))continue;let l=WW(c),d=a.get(l);d!==void 0?d.push(c):a.set(l,[c]);break}case y_.Kind.INLINE_FRAGMENT:{if(!I_(n,c)||!Xw(e,c,r))continue;PN(e,t,n,r,c.selectionSet,a,o);break}case y_.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!I_(n,c))continue;o.add(l);let d=t[l];if(!d||!Xw(e,d,r))continue;PN(e,t,n,r,d.selectionSet,a,o);break}}}function I_(e,t){let n=(0,Ww.getDirectiveValues)(zw.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Ww.getDirectiveValues)(zw.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function Xw(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,JW.typeFromAST)(e,r);return i===n?!0:(0,YW.isAbstractType)(i)?e.isSubType(i,n):!1}function WW(e){return e.alias?e.alias.value:e.name.value}});var __=F(g_=>{"use strict";m();T();N();Object.defineProperty(g_,"__esModule",{value:!0});g_.SingleFieldSubscriptionsRule=e4;var Zw=ze(),XW=Lt(),ZW=wN();function e4(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 d of o.definitions)d.kind===XW.Kind.FRAGMENT_DEFINITION&&(c[d.name.value]=d);let l=(0,ZW.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let y=[...l.values()].slice(1).flat();e.reportError(new Zw.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 d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new Zw.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var LN=F(v_=>{"use strict";m();T();N();Object.defineProperty(v_,"__esModule",{value:!0});v_.groupBy=t4;function t4(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 S_=F(O_=>{"use strict";m();T();N();Object.defineProperty(O_,"__esModule",{value:!0});O_.UniqueArgumentDefinitionNamesRule=i4;var n4=LN(),r4=ze();function i4(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 d=l.name.value,f=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${d}`,f)}return!1}function n(r,i){let a=(0,n4.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new r4.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var b_=F(D_=>{"use strict";m();T();N();Object.defineProperty(D_,"__esModule",{value:!0});D_.UniqueArgumentNamesRule=o4;var a4=LN(),s4=ze();function o4(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,a4.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new s4.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var R_=F(A_=>{"use strict";m();T();N();Object.defineProperty(A_,"__esModule",{value:!0});A_.UniqueDirectiveNamesRule=u4;var eL=ze();function u4(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 eL.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new eL.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var w_=F(F_=>{"use strict";m();T();N();Object.defineProperty(F_,"__esModule",{value:!0});F_.UniqueDirectivesPerLocationRule=d4;var c4=ze(),P_=Lt(),tL=pc(),l4=ei();function d4(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():l4.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===P_.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===P_.Kind.SCHEMA_DEFINITION||c.kind===P_.Kind.SCHEMA_EXTENSION)l=a;else if((0,tL.isTypeDefinitionNode)(c)||(0,tL.isTypeExtensionNode)(c)){let d=c.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of c.directives){let f=d.name.value;t[f]&&(l[f]?e.reportError(new c4.GraphQLError(`The directive "@${f}" can only be used once at this location.`,{nodes:[l[f],d]})):l[f]=d)}}}}});var C_=F(L_=>{"use strict";m();T();N();Object.defineProperty(L_,"__esModule",{value:!0});L_.UniqueEnumValueNamesRule=f4;var nL=ze(),p4=Ct();function f4(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:[],d=r[c];for(let f of l){let y=f.name.value,I=n[c];(0,p4.isEnumType)(I)&&I.getValue(y)?e.reportError(new nL.GraphQLError(`Enum value "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):d[y]?e.reportError(new nL.GraphQLError(`Enum value "${c}.${y}" can only be defined once.`,{nodes:[d[y],f.name]})):d[y]=f.name}return!1}}});var k_=F(U_=>{"use strict";m();T();N();Object.defineProperty(U_,"__esModule",{value:!0});U_.UniqueFieldDefinitionNamesRule=m4;var rL=ze(),B_=Ct();function m4(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:[],d=r[c];for(let f of l){let y=f.name.value;N4(n[c],y)?e.reportError(new rL.GraphQLError(`Field "${c}.${y}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:f.name})):d[y]?e.reportError(new rL.GraphQLError(`Field "${c}.${y}" can only be defined once.`,{nodes:[d[y],f.name]})):d[y]=f.name}return!1}}function N4(e,t){return(0,B_.isObjectType)(e)||(0,B_.isInterfaceType)(e)||(0,B_.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var x_=F(M_=>{"use strict";m();T();N();Object.defineProperty(M_,"__esModule",{value:!0});M_.UniqueFragmentNamesRule=E4;var T4=ze();function E4(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new T4.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var V_=F(q_=>{"use strict";m();T();N();Object.defineProperty(q_,"__esModule",{value:!0});q_.UniqueInputFieldNamesRule=I4;var h4=br(),y4=ze();function I4(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,h4.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new y4.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var K_=F(j_=>{"use strict";m();T();N();Object.defineProperty(j_,"__esModule",{value:!0});j_.UniqueOperationNamesRule=_4;var g4=ze();function _4(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new g4.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var $_=F(G_=>{"use strict";m();T();N();Object.defineProperty(G_,"__esModule",{value:!0});G_.UniqueOperationTypesRule=v4;var iL=ze();function v4(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 d=l.operation,f=n[d];r[d]?e.reportError(new iL.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):f?e.reportError(new iL.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[f,l]})):n[d]=l}return!1}}});var Y_=F(Q_=>{"use strict";m();T();N();Object.defineProperty(Q_,"__esModule",{value:!0});Q_.UniqueTypeNamesRule=O4;var aL=ze();function O4(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 aL.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 aL.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var H_=F(J_=>{"use strict";m();T();N();Object.defineProperty(J_,"__esModule",{value:!0});J_.UniqueVariableNamesRule=b4;var S4=LN(),D4=ze();function b4(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,S4.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new D4.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var X_=F(W_=>{"use strict";m();T();N();Object.defineProperty(W_,"__esModule",{value:!0});W_.ValuesOfCorrectTypeRule=F4;var A4=lu(),Op=Wt(),R4=du(),P4=pu(),ja=ze(),z_=Lt(),CN=Ti(),Va=Ct();function F4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Va.getNullableType)(e.getParentInputType());if(!(0,Va.isListType)(r))return mc(e,n),!1},ObjectValue(n){let r=(0,Va.getNamedType)(e.getInputType());if(!(0,Va.isInputObjectType)(r))return mc(e,n),!1;let i=(0,R4.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,Va.isRequiredInputField)(a)){let c=(0,Op.inspect)(a.type);e.reportError(new ja.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&w4(e,n,r,i,t)},ObjectField(n){let r=(0,Va.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Va.isInputObjectType)(r)){let a=(0,P4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new ja.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,A4.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Va.isNonNullType)(r)&&e.reportError(new ja.GraphQLError(`Expected value of type "${(0,Op.inspect)(r)}", found ${(0,CN.print)(n)}.`,{nodes:n}))},EnumValue:n=>mc(e,n),IntValue:n=>mc(e,n),FloatValue:n=>mc(e,n),StringValue:n=>mc(e,n),BooleanValue:n=>mc(e,n)}}function mc(e,t){let n=e.getInputType();if(!n)return;let r=(0,Va.getNamedType)(n);if(!(0,Va.isLeafType)(r)){let i=(0,Op.inspect)(n);e.reportError(new ja.GraphQLError(`Expected value of type "${i}", found ${(0,CN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,Op.inspect)(n);e.reportError(new ja.GraphQLError(`Expected value of type "${a}", found ${(0,CN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,Op.inspect)(n);i instanceof ja.GraphQLError?e.reportError(i):e.reportError(new ja.GraphQLError(`Expected value of type "${a}", found ${(0,CN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function w4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new ja.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,d=!l||l.kind===z_.Kind.NULL,f=(l==null?void 0:l.kind)===z_.Kind.VARIABLE;if(d){e.reportError(new ja.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(f){let y=l.name.value;i[y].type.kind!==z_.Kind.NON_NULL_TYPE&&e.reportError(new ja.GraphQLError(`Variable "${y}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var ev=F(Z_=>{"use strict";m();T();N();Object.defineProperty(Z_,"__esModule",{value:!0});Z_.VariablesAreInputTypesRule=k4;var L4=ze(),C4=Ti(),B4=Ct(),U4=qa();function k4(e){return{VariableDefinition(t){let n=(0,U4.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,B4.isInputType)(n)){let r=t.variable.name.value,i=(0,C4.print)(t.type);e.reportError(new L4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var nv=F(tv=>{"use strict";m();T();N();Object.defineProperty(tv,"__esModule",{value:!0});tv.VariablesInAllowedPositionRule=V4;var sL=Wt(),M4=ze(),x4=Lt(),oL=Ct(),uL=ap(),q4=qa();function V4(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 d=e.getSchema(),f=(0,q4.typeFromAST)(d,l.type);if(f&&!j4(d,f,l.defaultValue,a,o)){let y=(0,sL.inspect)(f),I=(0,sL.inspect)(a);e.reportError(new M4.GraphQLError(`Variable "$${c}" of type "${y}" used in position expecting type "${I}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function j4(e,t,n,r,i){if((0,oL.isNonNullType)(r)&&!(0,oL.isNonNullType)(t)){if(!(n!=null&&n.kind!==x4.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,uL.isTypeSubTypeOf)(e,t,c)}return(0,uL.isTypeSubTypeOf)(e,t,r)}});var rv=F(Tu=>{"use strict";m();T();N();Object.defineProperty(Tu,"__esModule",{value:!0});Tu.specifiedSDLRules=Tu.specifiedRules=Tu.recommendedRules=void 0;var K4=Ig(),G4=_g(),$4=Og(),cL=Sg(),lL=Rg(),Q4=Fg(),dL=Cg(),Y4=Ug(),J4=Mg(),H4=qg(),z4=jg(),W4=Gg(),X4=Qg(),Z4=Jg(),e8=i_(),t8=o_(),n8=c_(),pL=d_(),r8=f_(),i8=__(),a8=S_(),fL=b_(),s8=R_(),mL=w_(),o8=C_(),u8=k_(),c8=x_(),NL=V_(),l8=K_(),d8=$_(),p8=Y_(),f8=H_(),m8=X_(),N8=ev(),T8=nv(),TL=Object.freeze([H4.MaxIntrospectionDepthRule]);Tu.recommendedRules=TL;var E8=Object.freeze([K4.ExecutableDefinitionsRule,l8.UniqueOperationNamesRule,Y4.LoneAnonymousOperationRule,i8.SingleFieldSubscriptionsRule,dL.KnownTypeNamesRule,$4.FragmentsOnCompositeTypesRule,N8.VariablesAreInputTypesRule,r8.ScalarLeafsRule,G4.FieldsOnCorrectTypeRule,c8.UniqueFragmentNamesRule,Q4.KnownFragmentNamesRule,X4.NoUnusedFragmentsRule,t8.PossibleFragmentSpreadsRule,z4.NoFragmentCyclesRule,f8.UniqueVariableNamesRule,W4.NoUndefinedVariablesRule,Z4.NoUnusedVariablesRule,lL.KnownDirectivesRule,mL.UniqueDirectivesPerLocationRule,cL.KnownArgumentNamesRule,fL.UniqueArgumentNamesRule,m8.ValuesOfCorrectTypeRule,pL.ProvidedRequiredArgumentsRule,T8.VariablesInAllowedPositionRule,e8.OverlappingFieldsCanBeMergedRule,NL.UniqueInputFieldNamesRule,...TL]);Tu.specifiedRules=E8;var h8=Object.freeze([J4.LoneSchemaDefinitionRule,d8.UniqueOperationTypesRule,p8.UniqueTypeNamesRule,o8.UniqueEnumValueNamesRule,u8.UniqueFieldDefinitionNamesRule,a8.UniqueArgumentDefinitionNamesRule,s8.UniqueDirectiveNamesRule,dL.KnownTypeNamesRule,lL.KnownDirectivesRule,mL.UniqueDirectivesPerLocationRule,n8.PossibleTypeExtensionsRule,cL.KnownArgumentNamesOnDirectivesRule,fL.UniqueArgumentNamesRule,NL.UniqueInputFieldNamesRule,pL.ProvidedRequiredArgumentsOnDirectivesRule]);Tu.specifiedSDLRules=h8});var sv=F(Eu=>{"use strict";m();T();N();Object.defineProperty(Eu,"__esModule",{value:!0});Eu.ValidationContext=Eu.SDLValidationContext=Eu.ASTValidationContext=void 0;var EL=Lt(),y8=ic(),hL=gN(),Sp=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===EL.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===EL.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}};Eu.ASTValidationContext=Sp;var iv=class extends Sp{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Eu.SDLValidationContext=iv;var av=class extends Sp{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 hL.TypeInfo(this._schema);(0,y8.visit)(t,(0,hL.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()}};Eu.ValidationContext=av});var Rl=F(Al=>{"use strict";m();T();N();Object.defineProperty(Al,"__esModule",{value:!0});Al.assertValidSDL=O8;Al.assertValidSDLExtension=S8;Al.validate=v8;Al.validateSDL=ov;var I8=jr(),g8=ze(),BN=ic(),_8=Np(),yL=gN(),IL=rv(),gL=sv();function v8(e,t,n=IL.specifiedRules,r,i=new yL.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,I8.devAssert)(!1,"Must provide document."),(0,_8.assertValidSchema)(e);let c=Object.freeze({}),l=[],d=new gL.ValidationContext(e,t,i,y=>{if(l.length>=o)throw l.push(new g8.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(y)}),f=(0,BN.visitInParallel)(n.map(y=>y(d)));try{(0,BN.visit)(t,(0,yL.visitWithTypeInfo)(i,f))}catch(y){if(y!==c)throw y}return l}function ov(e,t,n=IL.specifiedSDLRules){let r=[],i=new gL.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,BN.visit)(e,(0,BN.visitInParallel)(a)),r}function O8(e){let t=ov(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` +`))}var JI=class{constructor(t){this._errors=[],this.schema=t}reportError(t,n){let r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new fz.GraphQLError(t,{nodes:r}))}getErrors(){return this._errors}};function Tz(e){let t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,Cn.isObjectType)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,br.inspect)(n)}.`,(r=YI(t,QI.OperationTypeNode.QUERY))!==null&&r!==void 0?r:n.astNode)}let i=t.getMutationType();if(i&&!(0,Cn.isObjectType)(i)){var a;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,br.inspect)(i)}.`,(a=YI(t,QI.OperationTypeNode.MUTATION))!==null&&a!==void 0?a:i.astNode)}let o=t.getSubscriptionType();if(o&&!(0,Cn.isObjectType)(o)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,br.inspect)(o)}.`,(c=YI(t,QI.OperationTypeNode.SUBSCRIPTION))!==null&&c!==void 0?c:o.astNode)}}function YI(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 Ez(e){for(let n of e.schema.getDirectives()){if(!(0,fw.isDirective)(n)){e.reportError(`Expected directive but got: ${(0,br.inspect)(n)}.`,n==null?void 0:n.astNode);continue}cc(e,n);for(let r of n.args)if(cc(e,r),(0,Cn.isInputType)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,br.inspect)(r.type)}.`,r.astNode),(0,Cn.isRequiredArgument)(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[HI(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function cc(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function hz(e){let t=Sz(e),n=e.schema.getTypeMap();for(let r of Object.values(n)){if(!(0,Cn.isNamedType)(r)){e.reportError(`Expected GraphQL named type but got: ${(0,br.inspect)(r)}.`,r.astNode);continue}(0,pz.isIntrospectionType)(r)||cc(e,r),(0,Cn.isObjectType)(r)||(0,Cn.isInterfaceType)(r)?(cw(e,r),lw(e,r)):(0,Cn.isUnionType)(r)?gz(e,r):(0,Cn.isEnumType)(r)?_z(e,r):(0,Cn.isInputObjectType)(r)&&(vz(e,r),t(r))}}function cw(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(cc(e,o),!(0,Cn.isOutputType)(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Output Type but got: ${(0,br.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(cc(e,c),!(0,Cn.isInputType)(c.type)){var i;e.reportError(`The type of ${t.name}.${o.name}(${l}:) must be Input Type but got: ${(0,br.inspect)(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if((0,Cn.isRequiredArgument)(c)&&c.deprecationReason!=null){var a;e.reportError(`Required argument ${t.name}.${o.name}(${l}:) cannot be deprecated.`,[HI(c.astNode),(a=c.astNode)===null||a===void 0?void 0:a.type])}}}}function lw(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!(0,Cn.isInterfaceType)(r)){e.reportError(`Type ${(0,br.inspect)(t)} must only implement Interface types, it cannot implement ${(0,br.inspect)(r)}.`,ff(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,ff(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,ff(t,r));continue}n[r.name]=!0,Iz(e,t,r),yz(e,t,r)}}function yz(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){let d=l.name,p=r[d];if(!p){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!(0,uw.isTypeSubTypeOf)(e.schema,p.type,l.type)){var i,a;e.reportError(`Interface field ${n.name}.${d} expects type ${(0,br.inspect)(l.type)} but ${t.name}.${d} is type ${(0,br.inspect)(p.type)}.`,[(i=l.astNode)===null||i===void 0?void 0:i.type,(a=p.astNode)===null||a===void 0?void 0:a.type])}for(let E of l.args){let I=E.name,v=p.args.find(A=>A.name===I);if(!v){e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expected but ${t.name}.${d} does not provide it.`,[E.astNode,p.astNode]);continue}if(!(0,uw.isEqualType)(E.type,v.type)){var o,c;e.reportError(`Interface field argument ${n.name}.${d}(${I}:) expects type ${(0,br.inspect)(E.type)} but ${t.name}.${d}(${I}:) is type ${(0,br.inspect)(v.type)}.`,[(o=E.astNode)===null||o===void 0?void 0:o.type,(c=v.astNode)===null||c===void 0?void 0:c.type])}}for(let E of p.args){let I=E.name;!l.args.find(A=>A.name===I)&&(0,Cn.isRequiredArgument)(E)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${I} that is missing from the Interface field ${n.name}.${d}.`,[E.astNode,l.astNode])}}}function Iz(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}.`,[...ff(n,i),...ff(t,n)])}function gz(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.`,dw(t,i.name));continue}r[i.name]=!0,(0,Cn.isObjectType)(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,br.inspect)(i)}.`,dw(t,String(i)))}}function _z(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)cc(e,r)}function vz(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(cc(e,a),!(0,Cn.isInputType)(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Input Type but got: ${(0,br.inspect)(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}if((0,Cn.isRequiredInputField)(a)&&a.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${a.name} cannot be deprecated.`,[HI(a.astNode),(i=a.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&Oz(t,a,e)}}function Oz(e,t,n){if((0,Cn.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 Sz(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,Cn.isNonNullType)(c.type)&&(0,Cn.isInputObjectType)(c.type.ofType)){let l=c.type.ofType,d=r[l.name];if(n.push(c),d===void 0)i(l);else{let p=n.slice(d),E=p.map(I=>I.name).join(".");e.reportError(`Cannot reference Input Object "${l.name}" within itself through a series of non-null fields: "${E}".`,p.map(I=>I.astNode))}n.pop()}r[a.name]=void 0}}function ff(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 dw(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 HI(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===fw.GraphQLDeprecatedDirective.name)}});var qa=w(XI=>{"use strict";m();T();N();Object.defineProperty(XI,"__esModule",{value:!0});XI.typeFromAST=WI;var zI=wt(),mw=Lt();function WI(e,t){switch(t.kind){case zI.Kind.LIST_TYPE:{let n=WI(e,t.type);return n&&new mw.GraphQLList(n)}case zI.Kind.NON_NULL_TYPE:{let n=WI(e,t.type);return n&&new mw.GraphQLNonNull(n)}case zI.Kind.NAMED_TYPE:return e.getType(t.name.value)}}});var gN=w(mf=>{"use strict";m();T();N();Object.defineProperty(mf,"__esModule",{value:!0});mf.TypeInfo=void 0;mf.visitWithTypeInfo=Az;var Dz=Ua(),Bn=wt(),Nw=nc(),Un=Lt(),yl=Li(),Tw=qa(),ZI=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:bz,n&&((0,Un.isInputType)(n)&&this._inputTypeStack.push(n),(0,Un.isCompositeType)(n)&&this._parentTypeStack.push(n),(0,Un.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 Bn.Kind.SELECTION_SET:{let i=(0,Un.getNamedType)(this.getType());this._parentTypeStack.push((0,Un.isCompositeType)(i)?i:void 0);break}case Bn.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,Un.isOutputType)(o)?o:void 0);break}case Bn.Kind.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Bn.Kind.OPERATION_DEFINITION:{let i=n.getRootType(t.operation);this._typeStack.push((0,Un.isObjectType)(i)?i:void 0);break}case Bn.Kind.INLINE_FRAGMENT:case Bn.Kind.FRAGMENT_DEFINITION:{let i=t.typeCondition,a=i?(0,Tw.typeFromAST)(n,i):(0,Un.getNamedType)(this.getType());this._typeStack.push((0,Un.isOutputType)(a)?a:void 0);break}case Bn.Kind.VARIABLE_DEFINITION:{let i=(0,Tw.typeFromAST)(n,t.type);this._inputTypeStack.push((0,Un.isInputType)(i)?i:void 0);break}case Bn.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,Un.isInputType)(a)?a:void 0);break}case Bn.Kind.LIST:{let i=(0,Un.getNullableType)(this.getInputType()),a=(0,Un.isListType)(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push((0,Un.isInputType)(a)?a:void 0);break}case Bn.Kind.OBJECT_FIELD:{let i=(0,Un.getNamedType)(this.getInputType()),a,o;(0,Un.isInputObjectType)(i)&&(o=i.getFields()[t.name.value],o&&(a=o.type)),this._defaultValueStack.push(o?o.defaultValue:void 0),this._inputTypeStack.push((0,Un.isInputType)(a)?a:void 0);break}case Bn.Kind.ENUM:{let i=(0,Un.getNamedType)(this.getInputType()),a;(0,Un.isEnumType)(i)&&(a=i.getValue(t.value)),this._enumValue=a;break}default:}}leave(t){switch(t.kind){case Bn.Kind.SELECTION_SET:this._parentTypeStack.pop();break;case Bn.Kind.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Bn.Kind.DIRECTIVE:this._directive=null;break;case Bn.Kind.OPERATION_DEFINITION:case Bn.Kind.INLINE_FRAGMENT:case Bn.Kind.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Bn.Kind.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Bn.Kind.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Bn.Kind.LIST:case Bn.Kind.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Bn.Kind.ENUM:this._enumValue=null;break;default:}}};mf.TypeInfo=ZI;function bz(e,t,n){let r=n.name.value;if(r===yl.SchemaMetaFieldDef.name&&e.getQueryType()===t)return yl.SchemaMetaFieldDef;if(r===yl.TypeMetaFieldDef.name&&e.getQueryType()===t)return yl.TypeMetaFieldDef;if(r===yl.TypeNameMetaFieldDef.name&&(0,Un.isCompositeType)(t))return yl.TypeNameMetaFieldDef;if((0,Un.isObjectType)(t)||(0,Un.isInterfaceType)(t))return t.getFields()[r]}function Az(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=(0,Nw.getEnterLeaveForKind)(t,r.kind).enter;if(i){let a=i.apply(t,n);return a!==void 0&&(e.leave(r),(0,Dz.isNode)(a)&&e.enter(a)),a}},leave(...n){let r=n[0],i=(0,Nw.getEnterLeaveForKind)(t,r.kind).leave,a;return i&&(a=i.apply(t,n)),e.leave(r),a}}}});var lc=w(Ci=>{"use strict";m();T();N();Object.defineProperty(Ci,"__esModule",{value:!0});Ci.isConstValueNode=eg;Ci.isDefinitionNode=Rz;Ci.isExecutableDefinitionNode=Ew;Ci.isSelectionNode=Pz;Ci.isTypeDefinitionNode=Iw;Ci.isTypeExtensionNode=_w;Ci.isTypeNode=Fz;Ci.isTypeSystemDefinitionNode=yw;Ci.isTypeSystemExtensionNode=gw;Ci.isValueNode=hw;var Ct=wt();function Rz(e){return Ew(e)||yw(e)||gw(e)}function Ew(e){return e.kind===Ct.Kind.OPERATION_DEFINITION||e.kind===Ct.Kind.FRAGMENT_DEFINITION}function Pz(e){return e.kind===Ct.Kind.FIELD||e.kind===Ct.Kind.FRAGMENT_SPREAD||e.kind===Ct.Kind.INLINE_FRAGMENT}function hw(e){return e.kind===Ct.Kind.VARIABLE||e.kind===Ct.Kind.INT||e.kind===Ct.Kind.FLOAT||e.kind===Ct.Kind.STRING||e.kind===Ct.Kind.BOOLEAN||e.kind===Ct.Kind.NULL||e.kind===Ct.Kind.ENUM||e.kind===Ct.Kind.LIST||e.kind===Ct.Kind.OBJECT}function eg(e){return hw(e)&&(e.kind===Ct.Kind.LIST?e.values.some(eg):e.kind===Ct.Kind.OBJECT?e.fields.some(t=>eg(t.value)):e.kind!==Ct.Kind.VARIABLE)}function Fz(e){return e.kind===Ct.Kind.NAMED_TYPE||e.kind===Ct.Kind.LIST_TYPE||e.kind===Ct.Kind.NON_NULL_TYPE}function yw(e){return e.kind===Ct.Kind.SCHEMA_DEFINITION||Iw(e)||e.kind===Ct.Kind.DIRECTIVE_DEFINITION}function Iw(e){return e.kind===Ct.Kind.SCALAR_TYPE_DEFINITION||e.kind===Ct.Kind.OBJECT_TYPE_DEFINITION||e.kind===Ct.Kind.INTERFACE_TYPE_DEFINITION||e.kind===Ct.Kind.UNION_TYPE_DEFINITION||e.kind===Ct.Kind.ENUM_TYPE_DEFINITION||e.kind===Ct.Kind.INPUT_OBJECT_TYPE_DEFINITION}function gw(e){return e.kind===Ct.Kind.SCHEMA_EXTENSION||_w(e)}function _w(e){return e.kind===Ct.Kind.SCALAR_TYPE_EXTENSION||e.kind===Ct.Kind.OBJECT_TYPE_EXTENSION||e.kind===Ct.Kind.INTERFACE_TYPE_EXTENSION||e.kind===Ct.Kind.UNION_TYPE_EXTENSION||e.kind===Ct.Kind.ENUM_TYPE_EXTENSION||e.kind===Ct.Kind.INPUT_OBJECT_TYPE_EXTENSION}});var ng=w(tg=>{"use strict";m();T();N();Object.defineProperty(tg,"__esModule",{value:!0});tg.ExecutableDefinitionsRule=Cz;var wz=ze(),vw=wt(),Lz=lc();function Cz(e){return{Document(t){for(let n of t.definitions)if(!(0,Lz.isExecutableDefinitionNode)(n)){let r=n.kind===vw.Kind.SCHEMA_DEFINITION||n.kind===vw.Kind.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new wz.GraphQLError(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}});var ig=w(rg=>{"use strict";m();T();N();Object.defineProperty(rg,"__esModule",{value:!0});rg.FieldsOnCorrectTypeRule=Mz;var Ow=uu(),Bz=zd(),Uz=lu(),kz=ze(),Nf=Lt();function Mz(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){let i=e.getSchema(),a=t.name.value,o=(0,Ow.didYouMean)("to use an inline fragment on",xz(i,n,a));o===""&&(o=(0,Ow.didYouMean)(qz(n,a))),e.reportError(new kz.GraphQLError(`Cannot query field "${a}" on type "${n.name}".`+o,{nodes:t}))}}}}function xz(e,t,n){if(!(0,Nf.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,Nf.isInterfaceType)(o)&&e.isSubType(o,c)?-1:(0,Nf.isInterfaceType)(c)&&e.isSubType(c,o)?1:(0,Bz.naturalCompare)(o.name,c.name)}).map(o=>o.name)}function qz(e,t){if((0,Nf.isObjectType)(e)||(0,Nf.isInterfaceType)(e)){let n=Object.keys(e.getFields());return(0,Uz.suggestionList)(t,n)}return[]}});var sg=w(ag=>{"use strict";m();T();N();Object.defineProperty(ag,"__esModule",{value:!0});ag.FragmentsOnCompositeTypesRule=Vz;var Sw=ze(),Dw=pi(),bw=Lt(),Aw=qa();function Vz(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let r=(0,Aw.typeFromAST)(e.getSchema(),n);if(r&&!(0,bw.isCompositeType)(r)){let i=(0,Dw.print)(n);e.reportError(new Sw.GraphQLError(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){let n=(0,Aw.typeFromAST)(e.getSchema(),t.typeCondition);if(n&&!(0,bw.isCompositeType)(n)){let r=(0,Dw.print)(t.typeCondition);e.reportError(new Sw.GraphQLError(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}});var og=w(_N=>{"use strict";m();T();N();Object.defineProperty(_N,"__esModule",{value:!0});_N.KnownArgumentNamesOnDirectivesRule=ww;_N.KnownArgumentNamesRule=Gz;var Rw=uu(),Pw=lu(),Fw=ze(),jz=wt(),Kz=Wr();function Gz(e){return Q(M({},ww(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,Pw.suggestionList)(a,o);e.reportError(new Fw.GraphQLError(`Unknown argument "${a}" on field "${i.name}.${r.name}".`+(0,Rw.didYouMean)(c),{nodes:t}))}}})}function ww(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Kz.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===jz.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 d of o.arguments){let p=d.name.value;if(!l.includes(p)){let E=(0,Pw.suggestionList)(p,l);e.reportError(new Fw.GraphQLError(`Unknown argument "${p}" on directive "@${c}".`+(0,Rw.didYouMean)(E),{nodes:d}))}}return!1}}}});var dg=w(lg=>{"use strict";m();T();N();Object.defineProperty(lg,"__esModule",{value:!0});lg.KnownDirectivesRule=Yz;var $z=Wt(),ug=Sr(),Lw=ze(),cg=Ua(),ar=fl(),In=wt(),Qz=Wr();function Yz(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Qz.specifiedDirectives;for(let a of r)t[a.name]=a.locations;let i=e.getDocument().definitions;for(let a of i)a.kind===In.Kind.DIRECTIVE_DEFINITION&&(t[a.name.value]=a.locations.map(o=>o.value));return{Directive(a,o,c,l,d){let p=a.name.value,E=t[p];if(!E){e.reportError(new Lw.GraphQLError(`Unknown directive "@${p}".`,{nodes:a}));return}let I=Jz(d);I&&!E.includes(I)&&e.reportError(new Lw.GraphQLError(`Directive "@${p}" may not be used on ${I}.`,{nodes:a}))}}}function Jz(e){let t=e[e.length-1];switch("kind"in t||(0,ug.invariant)(!1),t.kind){case In.Kind.OPERATION_DEFINITION:return Hz(t.operation);case In.Kind.FIELD:return ar.DirectiveLocation.FIELD;case In.Kind.FRAGMENT_SPREAD:return ar.DirectiveLocation.FRAGMENT_SPREAD;case In.Kind.INLINE_FRAGMENT:return ar.DirectiveLocation.INLINE_FRAGMENT;case In.Kind.FRAGMENT_DEFINITION:return ar.DirectiveLocation.FRAGMENT_DEFINITION;case In.Kind.VARIABLE_DEFINITION:return ar.DirectiveLocation.VARIABLE_DEFINITION;case In.Kind.SCHEMA_DEFINITION:case In.Kind.SCHEMA_EXTENSION:return ar.DirectiveLocation.SCHEMA;case In.Kind.SCALAR_TYPE_DEFINITION:case In.Kind.SCALAR_TYPE_EXTENSION:return ar.DirectiveLocation.SCALAR;case In.Kind.OBJECT_TYPE_DEFINITION:case In.Kind.OBJECT_TYPE_EXTENSION:return ar.DirectiveLocation.OBJECT;case In.Kind.FIELD_DEFINITION:return ar.DirectiveLocation.FIELD_DEFINITION;case In.Kind.INTERFACE_TYPE_DEFINITION:case In.Kind.INTERFACE_TYPE_EXTENSION:return ar.DirectiveLocation.INTERFACE;case In.Kind.UNION_TYPE_DEFINITION:case In.Kind.UNION_TYPE_EXTENSION:return ar.DirectiveLocation.UNION;case In.Kind.ENUM_TYPE_DEFINITION:case In.Kind.ENUM_TYPE_EXTENSION:return ar.DirectiveLocation.ENUM;case In.Kind.ENUM_VALUE_DEFINITION:return ar.DirectiveLocation.ENUM_VALUE;case In.Kind.INPUT_OBJECT_TYPE_DEFINITION:case In.Kind.INPUT_OBJECT_TYPE_EXTENSION:return ar.DirectiveLocation.INPUT_OBJECT;case In.Kind.INPUT_VALUE_DEFINITION:{let n=e[e.length-3];return"kind"in n||(0,ug.invariant)(!1),n.kind===In.Kind.INPUT_OBJECT_TYPE_DEFINITION?ar.DirectiveLocation.INPUT_FIELD_DEFINITION:ar.DirectiveLocation.ARGUMENT_DEFINITION}default:(0,ug.invariant)(!1,"Unexpected kind: "+(0,$z.inspect)(t.kind))}}function Hz(e){switch(e){case cg.OperationTypeNode.QUERY:return ar.DirectiveLocation.QUERY;case cg.OperationTypeNode.MUTATION:return ar.DirectiveLocation.MUTATION;case cg.OperationTypeNode.SUBSCRIPTION:return ar.DirectiveLocation.SUBSCRIPTION}}});var pg=w(fg=>{"use strict";m();T();N();Object.defineProperty(fg,"__esModule",{value:!0});fg.KnownFragmentNamesRule=Wz;var zz=ze();function Wz(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new zz.GraphQLError(`Unknown fragment "${n}".`,{nodes:t.name}))}}}});var Tg=w(Ng=>{"use strict";m();T();N();Object.defineProperty(Ng,"__esModule",{value:!0});Ng.KnownTypeNamesRule=rW;var Xz=uu(),Zz=lu(),eW=ze(),mg=lc(),tW=Li(),nW=xa();function rW(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let a of e.getDocument().definitions)(0,mg.isTypeDefinitionNode)(a)&&(r[a.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(a,o,c,l,d){let p=a.name.value;if(!n[p]&&!r[p]){var E;let I=(E=d[2])!==null&&E!==void 0?E:c,v=I!=null&&iW(I);if(v&&Cw.includes(p))return;let A=(0,Zz.suggestionList)(p,v?Cw.concat(i):i);e.reportError(new eW.GraphQLError(`Unknown type "${p}".`+(0,Xz.didYouMean)(A),{nodes:a}))}}}}var Cw=[...nW.specifiedScalarTypes,...tW.introspectionTypes].map(e=>e.name);function iW(e){return"kind"in e&&((0,mg.isTypeSystemDefinitionNode)(e)||(0,mg.isTypeSystemExtensionNode)(e))}});var hg=w(Eg=>{"use strict";m();T();N();Object.defineProperty(Eg,"__esModule",{value:!0});Eg.LoneAnonymousOperationRule=oW;var aW=ze(),sW=wt();function oW(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===sW.Kind.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new aW.GraphQLError("This anonymous operation must be the only defined operation.",{nodes:n}))}}}});var Ig=w(yg=>{"use strict";m();T();N();Object.defineProperty(yg,"__esModule",{value:!0});yg.LoneSchemaDefinitionRule=uW;var Bw=ze();function uW(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 Bw.GraphQLError("Cannot define a new schema within a schema extension.",{nodes:c}));return}o>0&&e.reportError(new Bw.GraphQLError("Must provide only one schema definition.",{nodes:c})),++o}}}});var _g=w(gg=>{"use strict";m();T();N();Object.defineProperty(gg,"__esModule",{value:!0});gg.MaxIntrospectionDepthRule=dW;var cW=ze(),Uw=wt(),lW=3;function dW(e){function t(n,r=Object.create(null),i=0){if(n.kind===Uw.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===Uw.Kind.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=lW))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 cW.GraphQLError("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}});var Og=w(vg=>{"use strict";m();T();N();Object.defineProperty(vg,"__esModule",{value:!0});vg.NoFragmentCyclesRule=pW;var fW=ze();function pW(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 d=l.name.value,p=r[d];if(n.push(l),p===void 0){let E=e.getFragment(d);E&&i(E)}else{let E=n.slice(p),I=E.slice(0,-1).map(v=>'"'+v.name.value+'"').join(", ");e.reportError(new fW.GraphQLError(`Cannot spread fragment "${d}" within itself`+(I!==""?` via ${I}.`:"."),{nodes:E}))}n.pop()}r[o]=void 0}}}});var Dg=w(Sg=>{"use strict";m();T();N();Object.defineProperty(Sg,"__esModule",{value:!0});Sg.NoUndefinedVariablesRule=NW;var mW=ze();function NW(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 mW.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 Ag=w(bg=>{"use strict";m();T();N();Object.defineProperty(bg,"__esModule",{value:!0});bg.NoUnusedFragmentsRule=EW;var TW=ze();function EW(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 TW.GraphQLError(`Fragment "${a}" is never used.`,{nodes:i}))}}}}}});var Pg=w(Rg=>{"use strict";m();T();N();Object.defineProperty(Rg,"__esModule",{value:!0});Rg.NoUnusedVariablesRule=yW;var hW=ze();function yW(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 hW.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 Lg=w(wg=>{"use strict";m();T();N();Object.defineProperty(wg,"__esModule",{value:!0});wg.sortValueNode=Fg;var IW=zd(),Os=wt();function Fg(e){switch(e.kind){case Os.Kind.OBJECT:return Q(M({},e),{fields:gW(e.fields)});case Os.Kind.LIST:return Q(M({},e),{values:e.values.map(Fg)});case Os.Kind.INT:case Os.Kind.FLOAT:case Os.Kind.STRING:case Os.Kind.BOOLEAN:case Os.Kind.NULL:case Os.Kind.ENUM:case Os.Kind.VARIABLE:return e}}function gW(e){return e.map(t=>Q(M({},t),{value:Fg(t.value)})).sort((t,n)=>(0,IW.naturalCompare)(t.name.value,n.name.value))}});var qg=w(xg=>{"use strict";m();T();N();Object.defineProperty(xg,"__esModule",{value:!0});xg.OverlappingFieldsCanBeMergedRule=SW;var kw=Wt(),_W=ze(),Cg=wt(),vW=pi(),Xr=Lt(),OW=Lg(),xw=qa();function qw(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+qw(n)).join(" and "):e}function SW(e){let t=new kg,n=new Map;return{SelectionSet(r){let i=DW(e,n,t,e.getParentType(),r);for(let[[a,o],c,l]of i){let d=qw(o);e.reportError(new _W.GraphQLError(`Fields "${a}" conflict because ${d}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:c.concat(l)}))}}}}function DW(e,t,n,r,i){let a=[],[o,c]=SN(e,t,r,i);if(AW(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:Mw(o)===Mw(c)})}function Mw(e){return(0,vW.print)((0,OW.sortValueNode)(e))}function Bg(e,t){return(0,Xr.isListType)(e)?(0,Xr.isListType)(t)?Bg(e.ofType,t.ofType):!0:(0,Xr.isListType)(t)?!0:(0,Xr.isNonNullType)(e)?(0,Xr.isNonNullType)(t)?Bg(e.ofType,t.ofType):!0:(0,Xr.isNonNullType)(t)?!0:(0,Xr.isLeafType)(e)||(0,Xr.isLeafType)(t)?e!==t:!1}function SN(e,t,n,r){let i=t.get(r);if(i)return i;let a=Object.create(null),o=Object.create(null);jw(e,n,r,a,o);let c=[a,Object.keys(o)];return t.set(r,c),c}function Ug(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=(0,xw.typeFromAST)(e.getSchema(),n.typeCondition);return SN(e,t,i,n.selectionSet)}function jw(e,t,n,r,i){for(let a of n.selections)switch(a.kind){case Cg.Kind.FIELD:{let o=a.name.value,c;((0,Xr.isObjectType)(t)||(0,Xr.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 Cg.Kind.FRAGMENT_SPREAD:i[a.name.value]=!0;break;case Cg.Kind.INLINE_FRAGMENT:{let o=a.typeCondition,c=o?(0,xw.typeFromAST)(e.getSchema(),o):t;jw(e,c,a.selectionSet,r,i);break}}}function PW(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 kg=class{constructor(){this._data=new Map}has(t,n,r){var i;let[a,o]=t{"use strict";m();T();N();Object.defineProperty(jg,"__esModule",{value:!0});jg.PossibleFragmentSpreadsRule=wW;var DN=Wt(),Kw=ze(),Vg=Lt(),Gw=nf(),FW=qa();function wW(e){return{InlineFragment(t){let n=e.getType(),r=e.getParentType();if((0,Vg.isCompositeType)(n)&&(0,Vg.isCompositeType)(r)&&!(0,Gw.doTypesOverlap)(e.getSchema(),n,r)){let i=(0,DN.inspect)(r),a=(0,DN.inspect)(n);e.reportError(new Kw.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=LW(e,n),i=e.getParentType();if(r&&i&&!(0,Gw.doTypesOverlap)(e.getSchema(),r,i)){let a=(0,DN.inspect)(i),o=(0,DN.inspect)(r);e.reportError(new Kw.GraphQLError(`Fragment "${n}" cannot be spread here as objects of type "${a}" can never be of type "${o}".`,{nodes:t}))}}}}function LW(e,t){let n=e.getFragment(t);if(n){let r=(0,FW.typeFromAST)(e.getSchema(),n.typeCondition);if((0,Vg.isCompositeType)(r))return r}}});var $g=w(Gg=>{"use strict";m();T();N();Object.defineProperty(Gg,"__esModule",{value:!0});Gg.PossibleTypeExtensionsRule=kW;var CW=uu(),Qw=Wt(),Yw=Sr(),BW=lu(),$w=ze(),On=wt(),UW=lc(),Il=Lt();function kW(e){let t=e.getSchema(),n=Object.create(null);for(let i of e.getDocument().definitions)(0,UW.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=MW[o.kind]:c&&(l=xW(c)),l){if(l!==i.kind){let d=qW(i.kind);e.reportError(new $w.GraphQLError(`Cannot extend non-${d} type "${a}".`,{nodes:o?[o,i]:i}))}}else{let d=Object.keys(M(M({},n),t==null?void 0:t.getTypeMap())),p=(0,BW.suggestionList)(a,d);e.reportError(new $w.GraphQLError(`Cannot extend type "${a}" because it is not defined.`+(0,CW.didYouMean)(p),{nodes:i.name}))}}}var MW={[On.Kind.SCALAR_TYPE_DEFINITION]:On.Kind.SCALAR_TYPE_EXTENSION,[On.Kind.OBJECT_TYPE_DEFINITION]:On.Kind.OBJECT_TYPE_EXTENSION,[On.Kind.INTERFACE_TYPE_DEFINITION]:On.Kind.INTERFACE_TYPE_EXTENSION,[On.Kind.UNION_TYPE_DEFINITION]:On.Kind.UNION_TYPE_EXTENSION,[On.Kind.ENUM_TYPE_DEFINITION]:On.Kind.ENUM_TYPE_EXTENSION,[On.Kind.INPUT_OBJECT_TYPE_DEFINITION]:On.Kind.INPUT_OBJECT_TYPE_EXTENSION};function xW(e){if((0,Il.isScalarType)(e))return On.Kind.SCALAR_TYPE_EXTENSION;if((0,Il.isObjectType)(e))return On.Kind.OBJECT_TYPE_EXTENSION;if((0,Il.isInterfaceType)(e))return On.Kind.INTERFACE_TYPE_EXTENSION;if((0,Il.isUnionType)(e))return On.Kind.UNION_TYPE_EXTENSION;if((0,Il.isEnumType)(e))return On.Kind.ENUM_TYPE_EXTENSION;if((0,Il.isInputObjectType)(e))return On.Kind.INPUT_OBJECT_TYPE_EXTENSION;(0,Yw.invariant)(!1,"Unexpected type: "+(0,Qw.inspect)(e))}function qW(e){switch(e){case On.Kind.SCALAR_TYPE_EXTENSION:return"scalar";case On.Kind.OBJECT_TYPE_EXTENSION:return"object";case On.Kind.INTERFACE_TYPE_EXTENSION:return"interface";case On.Kind.UNION_TYPE_EXTENSION:return"union";case On.Kind.ENUM_TYPE_EXTENSION:return"enum";case On.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:(0,Yw.invariant)(!1,"Unexpected kind: "+(0,Qw.inspect)(e))}}});var Yg=w(bN=>{"use strict";m();T();N();Object.defineProperty(bN,"__esModule",{value:!0});bN.ProvidedRequiredArgumentsOnDirectivesRule=Xw;bN.ProvidedRequiredArgumentsRule=KW;var Hw=Wt(),Jw=cu(),zw=ze(),Ww=wt(),VW=pi(),Qg=Lt(),jW=Wr();function KW(e){return Q(M({},Xw(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,Qg.isRequiredArgument)(a)){let o=(0,Hw.inspect)(a.type);e.reportError(new zw.GraphQLError(`Field "${r.name}" argument "${a.name}" of type "${o}" is required, but it was not provided.`,{nodes:t}))}}}})}function Xw(e){var t;let n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:jW.specifiedDirectives;for(let c of i)n[c.name]=(0,Jw.keyMap)(c.args.filter(Qg.isRequiredArgument),l=>l.name);let a=e.getDocument().definitions;for(let c of a)if(c.kind===Ww.Kind.DIRECTIVE_DEFINITION){var o;let l=(o=c.arguments)!==null&&o!==void 0?o:[];n[c.name.value]=(0,Jw.keyMap)(l.filter(GW),d=>d.name.value)}return{Directive:{leave(c){let l=c.name.value,d=n[l];if(d){var p;let E=(p=c.arguments)!==null&&p!==void 0?p:[],I=new Set(E.map(v=>v.name.value));for(let[v,A]of Object.entries(d))if(!I.has(v)){let U=(0,Qg.isType)(A.type)?(0,Hw.inspect)(A.type):(0,VW.print)(A.type);e.reportError(new zw.GraphQLError(`Directive "@${l}" argument "${v}" of type "${U}" is required, but it was not provided.`,{nodes:c}))}}}}}}function GW(e){return e.type.kind===Ww.Kind.NON_NULL_TYPE&&e.defaultValue==null}});var Hg=w(Jg=>{"use strict";m();T();N();Object.defineProperty(Jg,"__esModule",{value:!0});Jg.ScalarLeafsRule=$W;var Zw=Wt(),eL=ze(),tL=Lt();function $W(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n){if((0,tL.isLeafType)((0,tL.getNamedType)(n))){if(r){let i=t.name.value,a=(0,Zw.inspect)(n);e.reportError(new eL.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,Zw.inspect)(n);e.reportError(new eL.GraphQLError(`Field "${i}" of type "${a}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}}});var Wg=w(zg=>{"use strict";m();T();N();Object.defineProperty(zg,"__esModule",{value:!0});zg.printPathArray=QW;function QW(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var Tf=w(AN=>{"use strict";m();T();N();Object.defineProperty(AN,"__esModule",{value:!0});AN.addPath=YW;AN.pathToArray=JW;function YW(e,t,n){return{prev:e,key:t,typename:n}}function JW(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}});var Zg=w(Xg=>{"use strict";m();T();N();Object.defineProperty(Xg,"__esModule",{value:!0});Xg.coerceInputValue=t4;var HW=uu(),RN=Wt(),zW=Sr(),WW=EN(),XW=Ba(),da=Tf(),ZW=Wg(),e4=lu(),Ss=ze(),Ef=Lt();function t4(e,t,n=n4){return hf(e,t,n,void 0)}function n4(e,t,n){let r="Invalid value "+(0,RN.inspect)(t);throw e.length>0&&(r+=` at "value${(0,ZW.printPathArray)(e)}"`),n.message=r+": "+n.message,n}function hf(e,t,n,r){if((0,Ef.isNonNullType)(t)){if(e!=null)return hf(e,t.ofType,n,r);n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Expected non-nullable type "${(0,RN.inspect)(t)}" not to be null.`));return}if(e==null)return null;if((0,Ef.isListType)(t)){let i=t.ofType;return(0,WW.isIterableObject)(e)?Array.from(e,(a,o)=>{let c=(0,da.addPath)(r,o,void 0);return hf(a,i,n,c)}):[hf(e,i,n,r)]}if((0,Ef.isInputObjectType)(t)){if(!(0,XW.isObjectLike)(e)){n((0,da.pathToArray)(r),e,new Ss.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,Ef.isNonNullType)(o.type)){let l=(0,RN.inspect)(o.type);n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Field "${o.name}" of required type "${l}" was not provided.`))}continue}i[o.name]=hf(c,o.type,n,(0,da.addPath)(r,o.name,t.name))}for(let o of Object.keys(e))if(!a[o]){let c=(0,e4.suggestionList)(o,Object.keys(t.getFields()));n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Field "${o}" is not defined by type "${t.name}".`+(0,HW.didYouMean)(c)))}if(t.isOneOf){let o=Object.keys(i);o.length!==1&&n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Exactly one key must be specified for OneOf type "${t.name}".`));let c=o[0],l=i[c];l===null&&n((0,da.pathToArray)(r).concat(c),l,new Ss.GraphQLError(`Field "${c}" must be non-null.`))}return i}if((0,Ef.isLeafType)(t)){let i;try{i=t.parseValue(e)}catch(a){a instanceof Ss.GraphQLError?n((0,da.pathToArray)(r),e,a):n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Expected type "${t.name}". `+a.message,{originalError:a}));return}return i===void 0&&n((0,da.pathToArray)(r),e,new Ss.GraphQLError(`Expected type "${t.name}".`)),i}(0,zW.invariant)(!1,"Unexpected input type: "+(0,RN.inspect)(t))}});var If=w(e_=>{"use strict";m();T();N();Object.defineProperty(e_,"__esModule",{value:!0});e_.valueFromAST=yf;var r4=Wt(),i4=Sr(),a4=cu(),gl=wt(),dc=Lt();function yf(e,t,n){if(e){if(e.kind===gl.Kind.VARIABLE){let r=e.name.value;if(n==null||n[r]===void 0)return;let i=n[r];return i===null&&(0,dc.isNonNullType)(t)?void 0:i}if((0,dc.isNonNullType)(t))return e.kind===gl.Kind.NULL?void 0:yf(e,t.ofType,n);if(e.kind===gl.Kind.NULL)return null;if((0,dc.isListType)(t)){let r=t.ofType;if(e.kind===gl.Kind.LIST){let a=[];for(let o of e.values)if(nL(o,n)){if((0,dc.isNonNullType)(r))return;a.push(null)}else{let c=yf(o,r,n);if(c===void 0)return;a.push(c)}return a}let i=yf(e,r,n);return i===void 0?void 0:[i]}if((0,dc.isInputObjectType)(t)){if(e.kind!==gl.Kind.OBJECT)return;let r=Object.create(null),i=(0,a4.keyMap)(e.fields,a=>a.name.value);for(let a of Object.values(t.getFields())){let o=i[a.name];if(!o||nL(o.value,n)){if(a.defaultValue!==void 0)r[a.name]=a.defaultValue;else if((0,dc.isNonNullType)(a.type))return;continue}let c=yf(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,dc.isLeafType)(t)){let r;try{r=t.parseLiteral(e,n)}catch(i){return}return r===void 0?void 0:r}(0,i4.invariant)(!1,"Unexpected input type: "+(0,r4.inspect)(t))}}function nL(e,t){return e.kind===gl.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var Ol=w(gf=>{"use strict";m();T();N();Object.defineProperty(gf,"__esModule",{value:!0});gf.getArgumentValues=sL;gf.getDirectiveValues=f4;gf.getVariableValues=l4;var _l=Wt(),s4=cu(),o4=Wg(),Ds=ze(),rL=wt(),iL=pi(),vl=Lt(),u4=Zg(),c4=qa(),aL=If();function l4(e,t,n,r){let i=[],a=r==null?void 0:r.maxErrors;try{let o=d4(e,t,n,c=>{if(a!=null&&i.length>=a)throw new Ds.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 d4(e,t,n,r){let i={};for(let a of t){let o=a.variable.name.value,c=(0,c4.typeFromAST)(e,a.type);if(!(0,vl.isInputType)(c)){let d=(0,iL.print)(a.type);r(new Ds.GraphQLError(`Variable "$${o}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:a.type}));continue}if(!oL(n,o)){if(a.defaultValue)i[o]=(0,aL.valueFromAST)(a.defaultValue,c);else if((0,vl.isNonNullType)(c)){let d=(0,_l.inspect)(c);r(new Ds.GraphQLError(`Variable "$${o}" of required type "${d}" was not provided.`,{nodes:a}))}continue}let l=n[o];if(l===null&&(0,vl.isNonNullType)(c)){let d=(0,_l.inspect)(c);r(new Ds.GraphQLError(`Variable "$${o}" of non-null type "${d}" must not be null.`,{nodes:a}));continue}i[o]=(0,u4.coerceInputValue)(l,c,(d,p,E)=>{let I=`Variable "$${o}" got invalid value `+(0,_l.inspect)(p);d.length>0&&(I+=` at "${o}${(0,o4.printPathArray)(d)}"`),r(new Ds.GraphQLError(I+"; "+E.message,{nodes:a,originalError:E}))})}return i}function sL(e,t,n){var r;let i={},a=(r=t.arguments)!==null&&r!==void 0?r:[],o=(0,s4.keyMap)(a,c=>c.name.value);for(let c of e.args){let l=c.name,d=c.type,p=o[l];if(!p){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,vl.isNonNullType)(d))throw new Ds.GraphQLError(`Argument "${l}" of required type "${(0,_l.inspect)(d)}" was not provided.`,{nodes:t});continue}let E=p.value,I=E.kind===rL.Kind.NULL;if(E.kind===rL.Kind.VARIABLE){let A=E.name.value;if(n==null||!oL(n,A)){if(c.defaultValue!==void 0)i[l]=c.defaultValue;else if((0,vl.isNonNullType)(d))throw new Ds.GraphQLError(`Argument "${l}" of required type "${(0,_l.inspect)(d)}" was provided the variable "$${A}" which was not provided a runtime value.`,{nodes:E});continue}I=n[A]==null}if(I&&(0,vl.isNonNullType)(d))throw new Ds.GraphQLError(`Argument "${l}" of non-null type "${(0,_l.inspect)(d)}" must not be null.`,{nodes:E});let v=(0,aL.valueFromAST)(E,d,n);if(v===void 0)throw new Ds.GraphQLError(`Argument "${l}" has invalid value ${(0,iL.print)(E)}.`,{nodes:E});i[l]=v}return i}function f4(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 sL(e,i,n)}function oL(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var wN=w(FN=>{"use strict";m();T();N();Object.defineProperty(FN,"__esModule",{value:!0});FN.collectFields=N4;FN.collectSubfields=T4;var t_=wt(),p4=Lt(),uL=Wr(),m4=qa(),cL=Ol();function N4(e,t,n,r,i){let a=new Map;return PN(e,t,n,r,i,a,new Set),a}function T4(e,t,n,r,i){let a=new Map,o=new Set;for(let c of i)c.selectionSet&&PN(e,t,n,r,c.selectionSet,a,o);return a}function PN(e,t,n,r,i,a,o){for(let c of i.selections)switch(c.kind){case t_.Kind.FIELD:{if(!n_(n,c))continue;let l=E4(c),d=a.get(l);d!==void 0?d.push(c):a.set(l,[c]);break}case t_.Kind.INLINE_FRAGMENT:{if(!n_(n,c)||!lL(e,c,r))continue;PN(e,t,n,r,c.selectionSet,a,o);break}case t_.Kind.FRAGMENT_SPREAD:{let l=c.name.value;if(o.has(l)||!n_(n,c))continue;o.add(l);let d=t[l];if(!d||!lL(e,d,r))continue;PN(e,t,n,r,d.selectionSet,a,o);break}}}function n_(e,t){let n=(0,cL.getDirectiveValues)(uL.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,cL.getDirectiveValues)(uL.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function lL(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,m4.typeFromAST)(e,r);return i===n?!0:(0,p4.isAbstractType)(i)?e.isSubType(i,n):!1}function E4(e){return e.alias?e.alias.value:e.name.value}});var i_=w(r_=>{"use strict";m();T();N();Object.defineProperty(r_,"__esModule",{value:!0});r_.SingleFieldSubscriptionsRule=I4;var dL=ze(),h4=wt(),y4=wN();function I4(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 d of o.definitions)d.kind===h4.Kind.FRAGMENT_DEFINITION&&(c[d.name.value]=d);let l=(0,y4.collectFields)(n,c,a,r,t.selectionSet);if(l.size>1){let E=[...l.values()].slice(1).flat();e.reportError(new dL.GraphQLError(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:E}))}for(let d of l.values())d[0].name.value.startsWith("__")&&e.reportError(new dL.GraphQLError(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}});var LN=w(a_=>{"use strict";m();T();N();Object.defineProperty(a_,"__esModule",{value:!0});a_.groupBy=g4;function g4(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 o_=w(s_=>{"use strict";m();T();N();Object.defineProperty(s_,"__esModule",{value:!0});s_.UniqueArgumentDefinitionNamesRule=O4;var _4=LN(),v4=ze();function O4(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 d=l.name.value,p=(c=l.arguments)!==null&&c!==void 0?c:[];n(`${a}.${d}`,p)}return!1}function n(r,i){let a=(0,_4.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new v4.GraphQLError(`Argument "${r}(${o}:)" can only be defined once.`,{nodes:c.map(l=>l.name)}));return!1}}});var c_=w(u_=>{"use strict";m();T();N();Object.defineProperty(u_,"__esModule",{value:!0});u_.UniqueArgumentNamesRule=b4;var S4=LN(),D4=ze();function b4(e){return{Field:t,Directive:t};function t(n){var r;let i=(r=n.arguments)!==null&&r!==void 0?r:[],a=(0,S4.groupBy)(i,o=>o.name.value);for(let[o,c]of a)c.length>1&&e.reportError(new D4.GraphQLError(`There can be only one argument named "${o}".`,{nodes:c.map(l=>l.name)}))}}});var d_=w(l_=>{"use strict";m();T();N();Object.defineProperty(l_,"__esModule",{value:!0});l_.UniqueDirectiveNamesRule=A4;var fL=ze();function A4(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 fL.GraphQLError(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new fL.GraphQLError(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}});var m_=w(p_=>{"use strict";m();T();N();Object.defineProperty(p_,"__esModule",{value:!0});p_.UniqueDirectivesPerLocationRule=F4;var R4=ze(),f_=wt(),pL=lc(),P4=Wr();function F4(e){let t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():P4.specifiedDirectives;for(let c of r)t[c.name]=!c.isRepeatable;let i=e.getDocument().definitions;for(let c of i)c.kind===f_.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===f_.Kind.SCHEMA_DEFINITION||c.kind===f_.Kind.SCHEMA_EXTENSION)l=a;else if((0,pL.isTypeDefinitionNode)(c)||(0,pL.isTypeExtensionNode)(c)){let d=c.name.value;l=o[d],l===void 0&&(o[d]=l=Object.create(null))}else l=Object.create(null);for(let d of c.directives){let p=d.name.value;t[p]&&(l[p]?e.reportError(new R4.GraphQLError(`The directive "@${p}" can only be used once at this location.`,{nodes:[l[p],d]})):l[p]=d)}}}}});var T_=w(N_=>{"use strict";m();T();N();Object.defineProperty(N_,"__esModule",{value:!0});N_.UniqueEnumValueNamesRule=L4;var mL=ze(),w4=Lt();function L4(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:[],d=r[c];for(let p of l){let E=p.name.value,I=n[c];(0,w4.isEnumType)(I)&&I.getValue(E)?e.reportError(new mL.GraphQLError(`Enum value "${c}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[E]?e.reportError(new mL.GraphQLError(`Enum value "${c}.${E}" can only be defined once.`,{nodes:[d[E],p.name]})):d[E]=p.name}return!1}}});var y_=w(h_=>{"use strict";m();T();N();Object.defineProperty(h_,"__esModule",{value:!0});h_.UniqueFieldDefinitionNamesRule=C4;var NL=ze(),E_=Lt();function C4(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:[],d=r[c];for(let p of l){let E=p.name.value;B4(n[c],E)?e.reportError(new NL.GraphQLError(`Field "${c}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):d[E]?e.reportError(new NL.GraphQLError(`Field "${c}.${E}" can only be defined once.`,{nodes:[d[E],p.name]})):d[E]=p.name}return!1}}function B4(e,t){return(0,E_.isObjectType)(e)||(0,E_.isInterfaceType)(e)||(0,E_.isInputObjectType)(e)?e.getFields()[t]!=null:!1}});var g_=w(I_=>{"use strict";m();T();N();Object.defineProperty(I_,"__esModule",{value:!0});I_.UniqueFragmentNamesRule=k4;var U4=ze();function k4(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new U4.GraphQLError(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}});var v_=w(__=>{"use strict";m();T();N();Object.defineProperty(__,"__esModule",{value:!0});__.UniqueInputFieldNamesRule=q4;var M4=Sr(),x4=ze();function q4(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let r=t.pop();r||(0,M4.invariant)(!1),n=r}},ObjectField(r){let i=r.name.value;n[i]?e.reportError(new x4.GraphQLError(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}});var S_=w(O_=>{"use strict";m();T();N();Object.defineProperty(O_,"__esModule",{value:!0});O_.UniqueOperationNamesRule=j4;var V4=ze();function j4(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new V4.GraphQLError(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}});var b_=w(D_=>{"use strict";m();T();N();Object.defineProperty(D_,"__esModule",{value:!0});D_.UniqueOperationTypesRule=K4;var TL=ze();function K4(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 d=l.operation,p=n[d];r[d]?e.reportError(new TL.GraphQLError(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:l})):p?e.reportError(new TL.GraphQLError(`There can be only one ${d} type in schema.`,{nodes:[p,l]})):n[d]=l}return!1}}});var R_=w(A_=>{"use strict";m();T();N();Object.defineProperty(A_,"__esModule",{value:!0});A_.UniqueTypeNamesRule=G4;var EL=ze();function G4(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 EL.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 EL.GraphQLError(`There can be only one type named "${a}".`,{nodes:[t[a],i.name]})):t[a]=i.name,!1}}});var F_=w(P_=>{"use strict";m();T();N();Object.defineProperty(P_,"__esModule",{value:!0});P_.UniqueVariableNamesRule=Y4;var $4=LN(),Q4=ze();function Y4(e){return{OperationDefinition(t){var n;let r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=(0,$4.groupBy)(r,a=>a.variable.name.value);for(let[a,o]of i)o.length>1&&e.reportError(new Q4.GraphQLError(`There can be only one variable named "$${a}".`,{nodes:o.map(c=>c.variable.name)}))}}}});var C_=w(L_=>{"use strict";m();T();N();Object.defineProperty(L_,"__esModule",{value:!0});L_.ValuesOfCorrectTypeRule=W4;var J4=uu(),_f=Wt(),H4=cu(),z4=lu(),ja=ze(),w_=wt(),CN=pi(),Va=Lt();function W4(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){let r=(0,Va.getNullableType)(e.getParentInputType());if(!(0,Va.isListType)(r))return fc(e,n),!1},ObjectValue(n){let r=(0,Va.getNamedType)(e.getInputType());if(!(0,Va.isInputObjectType)(r))return fc(e,n),!1;let i=(0,H4.keyMap)(n.fields,a=>a.name.value);for(let a of Object.values(r.getFields()))if(!i[a.name]&&(0,Va.isRequiredInputField)(a)){let c=(0,_f.inspect)(a.type);e.reportError(new ja.GraphQLError(`Field "${r.name}.${a.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&X4(e,n,r,i,t)},ObjectField(n){let r=(0,Va.getNamedType)(e.getParentInputType());if(!e.getInputType()&&(0,Va.isInputObjectType)(r)){let a=(0,z4.suggestionList)(n.name.value,Object.keys(r.getFields()));e.reportError(new ja.GraphQLError(`Field "${n.name.value}" is not defined by type "${r.name}".`+(0,J4.didYouMean)(a),{nodes:n}))}},NullValue(n){let r=e.getInputType();(0,Va.isNonNullType)(r)&&e.reportError(new ja.GraphQLError(`Expected value of type "${(0,_f.inspect)(r)}", found ${(0,CN.print)(n)}.`,{nodes:n}))},EnumValue:n=>fc(e,n),IntValue:n=>fc(e,n),FloatValue:n=>fc(e,n),StringValue:n=>fc(e,n),BooleanValue:n=>fc(e,n)}}function fc(e,t){let n=e.getInputType();if(!n)return;let r=(0,Va.getNamedType)(n);if(!(0,Va.isLeafType)(r)){let i=(0,_f.inspect)(n);e.reportError(new ja.GraphQLError(`Expected value of type "${i}", found ${(0,CN.print)(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){let a=(0,_f.inspect)(n);e.reportError(new ja.GraphQLError(`Expected value of type "${a}", found ${(0,CN.print)(t)}.`,{nodes:t}))}}catch(i){let a=(0,_f.inspect)(n);i instanceof ja.GraphQLError?e.reportError(i):e.reportError(new ja.GraphQLError(`Expected value of type "${a}", found ${(0,CN.print)(t)}; `+i.message,{nodes:t,originalError:i}))}}function X4(e,t,n,r,i){var a;let o=Object.keys(r);if(o.length!==1){e.reportError(new ja.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,d=!l||l.kind===w_.Kind.NULL,p=(l==null?void 0:l.kind)===w_.Kind.VARIABLE;if(d){e.reportError(new ja.GraphQLError(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}));return}if(p){let E=l.name.value;i[E].type.kind!==w_.Kind.NON_NULL_TYPE&&e.reportError(new ja.GraphQLError(`Variable "${E}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}});var U_=w(B_=>{"use strict";m();T();N();Object.defineProperty(B_,"__esModule",{value:!0});B_.VariablesAreInputTypesRule=r8;var Z4=ze(),e8=pi(),t8=Lt(),n8=qa();function r8(e){return{VariableDefinition(t){let n=(0,n8.typeFromAST)(e.getSchema(),t.type);if(n!==void 0&&!(0,t8.isInputType)(n)){let r=t.variable.name.value,i=(0,e8.print)(t.type);e.reportError(new Z4.GraphQLError(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}});var M_=w(k_=>{"use strict";m();T();N();Object.defineProperty(k_,"__esModule",{value:!0});k_.VariablesInAllowedPositionRule=o8;var hL=Wt(),i8=ze(),a8=wt(),yL=Lt(),IL=nf(),s8=qa();function o8(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 d=e.getSchema(),p=(0,s8.typeFromAST)(d,l.type);if(p&&!u8(d,p,l.defaultValue,a,o)){let E=(0,hL.inspect)(p),I=(0,hL.inspect)(a);e.reportError(new i8.GraphQLError(`Variable "$${c}" of type "${E}" used in position expecting type "${I}".`,{nodes:[l,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function u8(e,t,n,r,i){if((0,yL.isNonNullType)(r)&&!(0,yL.isNonNullType)(t)){if(!(n!=null&&n.kind!==a8.Kind.NULL)&&!(i!==void 0))return!1;let c=r.ofType;return(0,IL.isTypeSubTypeOf)(e,t,c)}return(0,IL.isTypeSubTypeOf)(e,t,r)}});var x_=w(mu=>{"use strict";m();T();N();Object.defineProperty(mu,"__esModule",{value:!0});mu.specifiedSDLRules=mu.specifiedRules=mu.recommendedRules=void 0;var c8=ng(),l8=ig(),d8=sg(),gL=og(),_L=dg(),f8=pg(),vL=Tg(),p8=hg(),m8=Ig(),N8=_g(),T8=Og(),E8=Dg(),h8=Ag(),y8=Pg(),I8=qg(),g8=Kg(),_8=$g(),OL=Yg(),v8=Hg(),O8=i_(),S8=o_(),SL=c_(),D8=d_(),DL=m_(),b8=T_(),A8=y_(),R8=g_(),bL=v_(),P8=S_(),F8=b_(),w8=R_(),L8=F_(),C8=C_(),B8=U_(),U8=M_(),AL=Object.freeze([N8.MaxIntrospectionDepthRule]);mu.recommendedRules=AL;var k8=Object.freeze([c8.ExecutableDefinitionsRule,P8.UniqueOperationNamesRule,p8.LoneAnonymousOperationRule,O8.SingleFieldSubscriptionsRule,vL.KnownTypeNamesRule,d8.FragmentsOnCompositeTypesRule,B8.VariablesAreInputTypesRule,v8.ScalarLeafsRule,l8.FieldsOnCorrectTypeRule,R8.UniqueFragmentNamesRule,f8.KnownFragmentNamesRule,h8.NoUnusedFragmentsRule,g8.PossibleFragmentSpreadsRule,T8.NoFragmentCyclesRule,L8.UniqueVariableNamesRule,E8.NoUndefinedVariablesRule,y8.NoUnusedVariablesRule,_L.KnownDirectivesRule,DL.UniqueDirectivesPerLocationRule,gL.KnownArgumentNamesRule,SL.UniqueArgumentNamesRule,C8.ValuesOfCorrectTypeRule,OL.ProvidedRequiredArgumentsRule,U8.VariablesInAllowedPositionRule,I8.OverlappingFieldsCanBeMergedRule,bL.UniqueInputFieldNamesRule,...AL]);mu.specifiedRules=k8;var M8=Object.freeze([m8.LoneSchemaDefinitionRule,F8.UniqueOperationTypesRule,w8.UniqueTypeNamesRule,b8.UniqueEnumValueNamesRule,A8.UniqueFieldDefinitionNamesRule,S8.UniqueArgumentDefinitionNamesRule,D8.UniqueDirectiveNamesRule,vL.KnownTypeNamesRule,_L.KnownDirectivesRule,DL.UniqueDirectivesPerLocationRule,_8.PossibleTypeExtensionsRule,gL.KnownArgumentNamesOnDirectivesRule,SL.UniqueArgumentNamesRule,bL.UniqueInputFieldNamesRule,OL.ProvidedRequiredArgumentsOnDirectivesRule]);mu.specifiedSDLRules=M8});var j_=w(Nu=>{"use strict";m();T();N();Object.defineProperty(Nu,"__esModule",{value:!0});Nu.ValidationContext=Nu.SDLValidationContext=Nu.ASTValidationContext=void 0;var RL=wt(),x8=nc(),PL=gN(),vf=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===RL.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===RL.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=vf;var q_=class extends vf{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}};Nu.SDLValidationContext=q_;var V_=class extends vf{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 PL.TypeInfo(this._schema);(0,x8.visit)(t,(0,PL.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=V_});var Dl=w(Sl=>{"use strict";m();T();N();Object.defineProperty(Sl,"__esModule",{value:!0});Sl.assertValidSDL=G8;Sl.assertValidSDLExtension=$8;Sl.validate=K8;Sl.validateSDL=K_;var q8=xr(),V8=ze(),BN=nc(),j8=pf(),FL=gN(),wL=x_(),LL=j_();function K8(e,t,n=wL.specifiedRules,r,i=new FL.TypeInfo(e)){var a;let o=(a=r==null?void 0:r.maxErrors)!==null&&a!==void 0?a:100;t||(0,q8.devAssert)(!1,"Must provide document."),(0,j8.assertValidSchema)(e);let c=Object.freeze({}),l=[],d=new LL.ValidationContext(e,t,i,E=>{if(l.length>=o)throw l.push(new V8.GraphQLError("Too many validation errors, error limit reached. Validation aborted.")),c;l.push(E)}),p=(0,BN.visitInParallel)(n.map(E=>E(d)));try{(0,BN.visit)(t,(0,FL.visitWithTypeInfo)(i,p))}catch(E){if(E!==c)throw E}return l}function K_(e,t,n=wL.specifiedSDLRules){let r=[],i=new LL.SDLValidationContext(e,t,o=>{r.push(o)}),a=n.map(o=>o(i));return(0,BN.visit)(e,(0,BN.visitInParallel)(a)),r}function G8(e){let t=K_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(` -`))}function S8(e,t){let n=ov(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` +`))}function $8(e,t){let n=K_(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(` -`))}});var _L=F(uv=>{"use strict";m();T();N();Object.defineProperty(uv,"__esModule",{value:!0});uv.memoize3=D8;function D8(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 vL=F(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.promiseForObject=b8;function b8(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 OL=F(lv=>{"use strict";m();T();N();Object.defineProperty(lv,"__esModule",{value:!0});lv.promiseReduce=R8;var A8=km();function R8(e,t,n){let r=n;for(let i of e)r=(0,A8.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var SL=F(pv=>{"use strict";m();T();N();Object.defineProperty(pv,"__esModule",{value:!0});pv.toError=F8;var P8=Wt();function F8(e){return e instanceof Error?e:new dv(e)}var dv=class extends Error{constructor(t){super("Unexpected error value: "+(0,P8.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var UN=F(fv=>{"use strict";m();T();N();Object.defineProperty(fv,"__esModule",{value:!0});fv.locatedError=C8;var w8=SL(),L8=ze();function C8(e,t,n){var r;let i=(0,w8.toError)(e);return B8(i)?i:new L8.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function B8(e){return Array.isArray(e.path)}});var bp=F(qi=>{"use strict";m();T();N();Object.defineProperty(qi,"__esModule",{value:!0});qi.assertValidExecutionArguments=LL;qi.buildExecutionContext=CL;qi.buildResolveInfo=UL;qi.defaultTypeResolver=qi.defaultFieldResolver=void 0;qi.execute=wL;qi.executeSync=j8;qi.getFieldDef=ML;var Nv=jr(),Nc=Wt(),U8=br(),k8=EN(),hv=Ba(),ma=km(),M8=_L(),Tc=hp(),DL=vL(),x8=OL(),xi=ze(),MN=UN(),mv=Ua(),bL=Lt(),hu=Ct(),Pl=ki(),q8=Np(),PL=wN(),FL=bl(),V8=(0,M8.memoize3)((e,t,n)=>(0,PL.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function wL(e){arguments.length<2||(0,Nv.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;LL(t,n,r);let a=CL(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=K8(a,o,i);return(0,ma.isPromise)(c)?c.then(l=>kN(l,a.errors),l=>(a.errors.push(l),kN(null,a.errors))):kN(c,a.errors)}catch(o){return a.errors.push(o),kN(null,a.errors)}}function j8(e){let t=wL(e);if((0,ma.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function kN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function LL(e,t,n){t||(0,Nv.devAssert)(!1,"Must provide document."),(0,q8.assertValidSchema)(e),n==null||(0,hv.isObjectLike)(n)||(0,Nv.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 CL(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:d,typeResolver:f,subscribeFieldResolver:y}=e,I,v=Object.create(null);for(let j of i.definitions)switch(j.kind){case bL.Kind.OPERATION_DEFINITION:if(l==null){if(I!==void 0)return[new xi.GraphQLError("Must provide operation name if query contains multiple operations.")];I=j}else((t=j.name)===null||t===void 0?void 0:t.value)===l&&(I=j);break;case bL.Kind.FRAGMENT_DEFINITION:v[j.name.value]=j;break;default:}if(!I)return l!=null?[new xi.GraphQLError(`Unknown operation named "${l}".`)]:[new xi.GraphQLError("Must provide an operation.")];let w=(n=I.variableDefinitions)!==null&&n!==void 0?n:[],U=(0,FL.getVariableValues)(r,w,c!=null?c:{},{maxErrors:50});return U.errors?U.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:I,variableValues:U.coerced,fieldResolver:d!=null?d:Ev,typeResolver:f!=null?f:kL,subscribeFieldResolver:y!=null?y:Ev,errors:[]}}function K8(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new xi.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,PL.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case mv.OperationTypeNode.QUERY:return xN(e,r,n,a,i);case mv.OperationTypeNode.MUTATION:return G8(e,r,n,a,i);case mv.OperationTypeNode.SUBSCRIPTION:return xN(e,r,n,a,i)}}function G8(e,t,n,r,i){return(0,x8.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,Tc.addPath)(r,o,t.name),d=BL(e,t,n,c,l);return d===void 0?a:(0,ma.isPromise)(d)?d.then(f=>(a[o]=f,a)):(a[o]=d,a)},Object.create(null))}function xN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let d=(0,Tc.addPath)(r,c,t.name),f=BL(e,t,n,l,d);f!==void 0&&(a[c]=f,(0,ma.isPromise)(f)&&(o=!0))}}catch(c){if(o)return(0,DL.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,DL.promiseForObject)(a):a}function BL(e,t,n,r,i){var a;let o=ML(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,d=UL(e,o,r,t,i);try{let f=(0,FL.getArgumentValues)(o,r[0],e.variableValues),y=e.contextValue,I=l(n,f,y,d),v;return(0,ma.isPromise)(I)?v=I.then(w=>Dp(e,c,r,d,i,w)):v=Dp(e,c,r,d,i,I),(0,ma.isPromise)(v)?v.then(void 0,w=>{let U=(0,MN.locatedError)(w,r,(0,Tc.pathToArray)(i));return qN(U,c,e)}):v}catch(f){let y=(0,MN.locatedError)(f,r,(0,Tc.pathToArray)(i));return qN(y,c,e)}}function UL(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 qN(e,t,n){if((0,hu.isNonNullType)(t))throw e;return n.errors.push(e),null}function Dp(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,hu.isNonNullType)(t)){let o=Dp(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,hu.isListType)(t))return $8(e,t,n,r,i,a);if((0,hu.isLeafType)(t))return Q8(t,a);if((0,hu.isAbstractType)(t))return Y8(e,t,n,r,i,a);if((0,hu.isObjectType)(t))return Tv(e,t,n,r,i,a);(0,U8.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,Nc.inspect)(t))}function $8(e,t,n,r,i,a){if(!(0,k8.isIterableObject)(a))throw new xi.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,(d,f)=>{let y=(0,Tc.addPath)(i,f,void 0);try{let I;return(0,ma.isPromise)(d)?I=d.then(v=>Dp(e,o,n,r,y,v)):I=Dp(e,o,n,r,y,d),(0,ma.isPromise)(I)?(c=!0,I.then(void 0,v=>{let w=(0,MN.locatedError)(v,n,(0,Tc.pathToArray)(y));return qN(w,o,e)})):I}catch(I){let v=(0,MN.locatedError)(I,n,(0,Tc.pathToArray)(y));return qN(v,o,e)}});return c?Promise.all(l):l}function Q8(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,Nc.inspect)(e)}.serialize(${(0,Nc.inspect)(t)})\` to return non-nullable value, returned: ${(0,Nc.inspect)(n)}`);return n}function Y8(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=c(a,l,r,t);return(0,ma.isPromise)(d)?d.then(f=>Tv(e,AL(f,e,t,n,r,a),n,r,i,a)):Tv(e,AL(d,e,t,n,r,a),n,r,i,a)}function AL(e,t,n,r,i,a){if(e==null)throw new xi.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,hu.isObjectType)(e))throw new xi.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 xi.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,Nc.inspect)(a)}, received "${(0,Nc.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new xi.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,hu.isObjectType)(o))throw new xi.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new xi.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function Tv(e,t,n,r,i,a){let o=V8(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,ma.isPromise)(c))return c.then(l=>{if(!l)throw RL(t,a,n);return xN(e,t,a,i,o)});if(!c)throw RL(t,a,n)}return xN(e,t,a,i,o)}function RL(e,t,n){return new xi.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,Nc.inspect)(t)}.`,{nodes:n})}var kL=function(e,t,n,r){if((0,hv.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(VN,"__esModule",{value:!0});VN.graphql=eX;VN.graphqlSync=tX;var J8=jr(),H8=km(),z8=El(),W8=Np(),X8=Rl(),Z8=bp();function eX(e){return new Promise(t=>t(xL(e)))}function tX(e){let t=xL(e);if((0,H8.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function xL(e){arguments.length<2||(0,J8.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,d=(0,W8.validateSchema)(t);if(d.length>0)return{errors:d};let f;try{f=(0,z8.parse)(n)}catch(I){return{errors:[I]}}let y=(0,X8.validate)(t,f);return y.length>0?{errors:y}:(0,Z8.execute)({schema:t,document:f,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var KL=F(he=>{"use strict";m();T();N();Object.defineProperty(he,"__esModule",{value:!0});Object.defineProperty(he,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return Na.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(he,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return Ps.GRAPHQL_MAX_INT}});Object.defineProperty(he,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return Ps.GRAPHQL_MIN_INT}});Object.defineProperty(he,"GraphQLBoolean",{enumerable:!0,get:function(){return Ps.GraphQLBoolean}});Object.defineProperty(he,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return Na.GraphQLDeprecatedDirective}});Object.defineProperty(he,"GraphQLDirective",{enumerable:!0,get:function(){return Na.GraphQLDirective}});Object.defineProperty(he,"GraphQLEnumType",{enumerable:!0,get:function(){return it.GraphQLEnumType}});Object.defineProperty(he,"GraphQLFloat",{enumerable:!0,get:function(){return Ps.GraphQLFloat}});Object.defineProperty(he,"GraphQLID",{enumerable:!0,get:function(){return Ps.GraphQLID}});Object.defineProperty(he,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return Na.GraphQLIncludeDirective}});Object.defineProperty(he,"GraphQLInputObjectType",{enumerable:!0,get:function(){return it.GraphQLInputObjectType}});Object.defineProperty(he,"GraphQLInt",{enumerable:!0,get:function(){return Ps.GraphQLInt}});Object.defineProperty(he,"GraphQLInterfaceType",{enumerable:!0,get:function(){return it.GraphQLInterfaceType}});Object.defineProperty(he,"GraphQLList",{enumerable:!0,get:function(){return it.GraphQLList}});Object.defineProperty(he,"GraphQLNonNull",{enumerable:!0,get:function(){return it.GraphQLNonNull}});Object.defineProperty(he,"GraphQLObjectType",{enumerable:!0,get:function(){return it.GraphQLObjectType}});Object.defineProperty(he,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return Na.GraphQLOneOfDirective}});Object.defineProperty(he,"GraphQLScalarType",{enumerable:!0,get:function(){return it.GraphQLScalarType}});Object.defineProperty(he,"GraphQLSchema",{enumerable:!0,get:function(){return yv.GraphQLSchema}});Object.defineProperty(he,"GraphQLSkipDirective",{enumerable:!0,get:function(){return Na.GraphQLSkipDirective}});Object.defineProperty(he,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return Na.GraphQLSpecifiedByDirective}});Object.defineProperty(he,"GraphQLString",{enumerable:!0,get:function(){return Ps.GraphQLString}});Object.defineProperty(he,"GraphQLUnionType",{enumerable:!0,get:function(){return it.GraphQLUnionType}});Object.defineProperty(he,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ni.SchemaMetaFieldDef}});Object.defineProperty(he,"TypeKind",{enumerable:!0,get:function(){return ni.TypeKind}});Object.defineProperty(he,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ni.TypeMetaFieldDef}});Object.defineProperty(he,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ni.TypeNameMetaFieldDef}});Object.defineProperty(he,"__Directive",{enumerable:!0,get:function(){return ni.__Directive}});Object.defineProperty(he,"__DirectiveLocation",{enumerable:!0,get:function(){return ni.__DirectiveLocation}});Object.defineProperty(he,"__EnumValue",{enumerable:!0,get:function(){return ni.__EnumValue}});Object.defineProperty(he,"__Field",{enumerable:!0,get:function(){return ni.__Field}});Object.defineProperty(he,"__InputValue",{enumerable:!0,get:function(){return ni.__InputValue}});Object.defineProperty(he,"__Schema",{enumerable:!0,get:function(){return ni.__Schema}});Object.defineProperty(he,"__Type",{enumerable:!0,get:function(){return ni.__Type}});Object.defineProperty(he,"__TypeKind",{enumerable:!0,get:function(){return ni.__TypeKind}});Object.defineProperty(he,"assertAbstractType",{enumerable:!0,get:function(){return it.assertAbstractType}});Object.defineProperty(he,"assertCompositeType",{enumerable:!0,get:function(){return it.assertCompositeType}});Object.defineProperty(he,"assertDirective",{enumerable:!0,get:function(){return Na.assertDirective}});Object.defineProperty(he,"assertEnumType",{enumerable:!0,get:function(){return it.assertEnumType}});Object.defineProperty(he,"assertEnumValueName",{enumerable:!0,get:function(){return jL.assertEnumValueName}});Object.defineProperty(he,"assertInputObjectType",{enumerable:!0,get:function(){return it.assertInputObjectType}});Object.defineProperty(he,"assertInputType",{enumerable:!0,get:function(){return it.assertInputType}});Object.defineProperty(he,"assertInterfaceType",{enumerable:!0,get:function(){return it.assertInterfaceType}});Object.defineProperty(he,"assertLeafType",{enumerable:!0,get:function(){return it.assertLeafType}});Object.defineProperty(he,"assertListType",{enumerable:!0,get:function(){return it.assertListType}});Object.defineProperty(he,"assertName",{enumerable:!0,get:function(){return jL.assertName}});Object.defineProperty(he,"assertNamedType",{enumerable:!0,get:function(){return it.assertNamedType}});Object.defineProperty(he,"assertNonNullType",{enumerable:!0,get:function(){return it.assertNonNullType}});Object.defineProperty(he,"assertNullableType",{enumerable:!0,get:function(){return it.assertNullableType}});Object.defineProperty(he,"assertObjectType",{enumerable:!0,get:function(){return it.assertObjectType}});Object.defineProperty(he,"assertOutputType",{enumerable:!0,get:function(){return it.assertOutputType}});Object.defineProperty(he,"assertScalarType",{enumerable:!0,get:function(){return it.assertScalarType}});Object.defineProperty(he,"assertSchema",{enumerable:!0,get:function(){return yv.assertSchema}});Object.defineProperty(he,"assertType",{enumerable:!0,get:function(){return it.assertType}});Object.defineProperty(he,"assertUnionType",{enumerable:!0,get:function(){return it.assertUnionType}});Object.defineProperty(he,"assertValidSchema",{enumerable:!0,get:function(){return VL.assertValidSchema}});Object.defineProperty(he,"assertWrappingType",{enumerable:!0,get:function(){return it.assertWrappingType}});Object.defineProperty(he,"getNamedType",{enumerable:!0,get:function(){return it.getNamedType}});Object.defineProperty(he,"getNullableType",{enumerable:!0,get:function(){return it.getNullableType}});Object.defineProperty(he,"introspectionTypes",{enumerable:!0,get:function(){return ni.introspectionTypes}});Object.defineProperty(he,"isAbstractType",{enumerable:!0,get:function(){return it.isAbstractType}});Object.defineProperty(he,"isCompositeType",{enumerable:!0,get:function(){return it.isCompositeType}});Object.defineProperty(he,"isDirective",{enumerable:!0,get:function(){return Na.isDirective}});Object.defineProperty(he,"isEnumType",{enumerable:!0,get:function(){return it.isEnumType}});Object.defineProperty(he,"isInputObjectType",{enumerable:!0,get:function(){return it.isInputObjectType}});Object.defineProperty(he,"isInputType",{enumerable:!0,get:function(){return it.isInputType}});Object.defineProperty(he,"isInterfaceType",{enumerable:!0,get:function(){return it.isInterfaceType}});Object.defineProperty(he,"isIntrospectionType",{enumerable:!0,get:function(){return ni.isIntrospectionType}});Object.defineProperty(he,"isLeafType",{enumerable:!0,get:function(){return it.isLeafType}});Object.defineProperty(he,"isListType",{enumerable:!0,get:function(){return it.isListType}});Object.defineProperty(he,"isNamedType",{enumerable:!0,get:function(){return it.isNamedType}});Object.defineProperty(he,"isNonNullType",{enumerable:!0,get:function(){return it.isNonNullType}});Object.defineProperty(he,"isNullableType",{enumerable:!0,get:function(){return it.isNullableType}});Object.defineProperty(he,"isObjectType",{enumerable:!0,get:function(){return it.isObjectType}});Object.defineProperty(he,"isOutputType",{enumerable:!0,get:function(){return it.isOutputType}});Object.defineProperty(he,"isRequiredArgument",{enumerable:!0,get:function(){return it.isRequiredArgument}});Object.defineProperty(he,"isRequiredInputField",{enumerable:!0,get:function(){return it.isRequiredInputField}});Object.defineProperty(he,"isScalarType",{enumerable:!0,get:function(){return it.isScalarType}});Object.defineProperty(he,"isSchema",{enumerable:!0,get:function(){return yv.isSchema}});Object.defineProperty(he,"isSpecifiedDirective",{enumerable:!0,get:function(){return Na.isSpecifiedDirective}});Object.defineProperty(he,"isSpecifiedScalarType",{enumerable:!0,get:function(){return Ps.isSpecifiedScalarType}});Object.defineProperty(he,"isType",{enumerable:!0,get:function(){return it.isType}});Object.defineProperty(he,"isUnionType",{enumerable:!0,get:function(){return it.isUnionType}});Object.defineProperty(he,"isWrappingType",{enumerable:!0,get:function(){return it.isWrappingType}});Object.defineProperty(he,"resolveObjMapThunk",{enumerable:!0,get:function(){return it.resolveObjMapThunk}});Object.defineProperty(he,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return it.resolveReadonlyArrayThunk}});Object.defineProperty(he,"specifiedDirectives",{enumerable:!0,get:function(){return Na.specifiedDirectives}});Object.defineProperty(he,"specifiedScalarTypes",{enumerable:!0,get:function(){return Ps.specifiedScalarTypes}});Object.defineProperty(he,"validateSchema",{enumerable:!0,get:function(){return VL.validateSchema}});var yv=lc(),it=Ct(),Na=ei(),Ps=xa(),ni=ki(),VL=Np(),jL=ep()});var $L=F(kt=>{"use strict";m();T();N();Object.defineProperty(kt,"__esModule",{value:!0});Object.defineProperty(kt,"BREAK",{enumerable:!0,get:function(){return Ap.BREAK}});Object.defineProperty(kt,"DirectiveLocation",{enumerable:!0,get:function(){return uX.DirectiveLocation}});Object.defineProperty(kt,"Kind",{enumerable:!0,get:function(){return iX.Kind}});Object.defineProperty(kt,"Lexer",{enumerable:!0,get:function(){return sX.Lexer}});Object.defineProperty(kt,"Location",{enumerable:!0,get:function(){return Iv.Location}});Object.defineProperty(kt,"OperationTypeNode",{enumerable:!0,get:function(){return Iv.OperationTypeNode}});Object.defineProperty(kt,"Source",{enumerable:!0,get:function(){return nX.Source}});Object.defineProperty(kt,"Token",{enumerable:!0,get:function(){return Iv.Token}});Object.defineProperty(kt,"TokenKind",{enumerable:!0,get:function(){return aX.TokenKind}});Object.defineProperty(kt,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Ap.getEnterLeaveForKind}});Object.defineProperty(kt,"getLocation",{enumerable:!0,get:function(){return rX.getLocation}});Object.defineProperty(kt,"getVisitFn",{enumerable:!0,get:function(){return Ap.getVisitFn}});Object.defineProperty(kt,"isConstValueNode",{enumerable:!0,get:function(){return Ka.isConstValueNode}});Object.defineProperty(kt,"isDefinitionNode",{enumerable:!0,get:function(){return Ka.isDefinitionNode}});Object.defineProperty(kt,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ka.isExecutableDefinitionNode}});Object.defineProperty(kt,"isSelectionNode",{enumerable:!0,get:function(){return Ka.isSelectionNode}});Object.defineProperty(kt,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ka.isTypeDefinitionNode}});Object.defineProperty(kt,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ka.isTypeExtensionNode}});Object.defineProperty(kt,"isTypeNode",{enumerable:!0,get:function(){return Ka.isTypeNode}});Object.defineProperty(kt,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ka.isTypeSystemDefinitionNode}});Object.defineProperty(kt,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ka.isTypeSystemExtensionNode}});Object.defineProperty(kt,"isValueNode",{enumerable:!0,get:function(){return Ka.isValueNode}});Object.defineProperty(kt,"parse",{enumerable:!0,get:function(){return jN.parse}});Object.defineProperty(kt,"parseConstValue",{enumerable:!0,get:function(){return jN.parseConstValue}});Object.defineProperty(kt,"parseType",{enumerable:!0,get:function(){return jN.parseType}});Object.defineProperty(kt,"parseValue",{enumerable:!0,get:function(){return jN.parseValue}});Object.defineProperty(kt,"print",{enumerable:!0,get:function(){return oX.print}});Object.defineProperty(kt,"printLocation",{enumerable:!0,get:function(){return GL.printLocation}});Object.defineProperty(kt,"printSourceLocation",{enumerable:!0,get:function(){return GL.printSourceLocation}});Object.defineProperty(kt,"visit",{enumerable:!0,get:function(){return Ap.visit}});Object.defineProperty(kt,"visitInParallel",{enumerable:!0,get:function(){return Ap.visitInParallel}});var nX=Ym(),rX=Mm(),GL=TI(),iX=Lt(),aX=Qd(),sX=Km(),jN=El(),oX=Ti(),Ap=ic(),Iv=Ua(),Ka=pc(),uX=Nl()});var QL=F(gv=>{"use strict";m();T();N();Object.defineProperty(gv,"__esModule",{value:!0});gv.isAsyncIterable=cX;function cX(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var YL=F(_v=>{"use strict";m();T();N();Object.defineProperty(_v,"__esModule",{value:!0});_v.mapAsyncIterator=lX;function lX(e,t){let n=e[Symbol.asyncIterator]();function r(a){return wi(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 wi(this,null,function*(){return r(yield n.next())})},return(){return wi(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return wi(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var WL=F(KN=>{"use strict";m();T();N();Object.defineProperty(KN,"__esModule",{value:!0});KN.createSourceEventStream=zL;KN.subscribe=EX;var dX=jr(),pX=Wt(),HL=QL(),JL=hp(),vv=ze(),fX=UN(),mX=wN(),Rp=bp(),NX=YL(),TX=bl();function EX(t){return wi(this,arguments,function*(e){arguments.length<2||(0,dX.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield zL(e);if(!(0,HL.isAsyncIterable)(n))return n;let r=i=>(0,Rp.execute)($(M({},e),{rootValue:i}));return(0,NX.mapAsyncIterator)(n,r)})}function hX(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 zL(...e){return wi(this,null,function*(){let t=hX(e),{schema:n,document:r,variableValues:i}=t;(0,Rp.assertValidExecutionArguments)(n,r,i);let a=(0,Rp.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield yX(a);if(!(0,HL.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,pX.inspect)(o)}.`);return o}catch(o){if(o instanceof vv.GraphQLError)return{errors:[o]};throw o}})}function yX(e){return wi(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new vv.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,mX.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...c.entries()][0],f=(0,Rp.getFieldDef)(t,o,d[0]);if(!f){let w=d[0].name.value;throw new vv.GraphQLError(`The subscription field "${w}" is not defined.`,{nodes:d})}let y=(0,JL.addPath)(void 0,l,o.name),I=(0,Rp.buildResolveInfo)(e,f,d,o,y);try{var v;let w=(0,TX.getArgumentValues)(f,d[0],i),U=e.contextValue,Y=yield((v=f.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,w,U,I);if(Y instanceof Error)throw Y;return Y}catch(w){throw(0,fX.locatedError)(w,d,(0,JL.pathToArray)(y))}})}});var ZL=F(Vi=>{"use strict";m();T();N();Object.defineProperty(Vi,"__esModule",{value:!0});Object.defineProperty(Vi,"createSourceEventStream",{enumerable:!0,get:function(){return XL.createSourceEventStream}});Object.defineProperty(Vi,"defaultFieldResolver",{enumerable:!0,get:function(){return GN.defaultFieldResolver}});Object.defineProperty(Vi,"defaultTypeResolver",{enumerable:!0,get:function(){return GN.defaultTypeResolver}});Object.defineProperty(Vi,"execute",{enumerable:!0,get:function(){return GN.execute}});Object.defineProperty(Vi,"executeSync",{enumerable:!0,get:function(){return GN.executeSync}});Object.defineProperty(Vi,"getArgumentValues",{enumerable:!0,get:function(){return Ov.getArgumentValues}});Object.defineProperty(Vi,"getDirectiveValues",{enumerable:!0,get:function(){return Ov.getDirectiveValues}});Object.defineProperty(Vi,"getVariableValues",{enumerable:!0,get:function(){return Ov.getVariableValues}});Object.defineProperty(Vi,"responsePathAsArray",{enumerable:!0,get:function(){return IX.pathToArray}});Object.defineProperty(Vi,"subscribe",{enumerable:!0,get:function(){return XL.subscribe}});var IX=hp(),GN=bp(),XL=WL(),Ov=bl()});var eC=F(bv=>{"use strict";m();T();N();Object.defineProperty(bv,"__esModule",{value:!0});bv.NoDeprecatedCustomRule=gX;var Sv=br(),Pp=ze(),Dv=Ct();function gX(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,Sv.invariant)(!1),e.reportError(new Pp.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 Pp.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,Sv.invariant)(!1),e.reportError(new Pp.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,Dv.getNamedType)(e.getParentInputType());if((0,Dv.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Pp.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,Dv.getNamedType)(e.getInputType());i!=null||(0,Sv.invariant)(!1),e.reportError(new Pp.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var tC=F(Av=>{"use strict";m();T();N();Object.defineProperty(Av,"__esModule",{value:!0});Av.NoSchemaIntrospectionCustomRule=SX;var _X=ze(),vX=Ct(),OX=ki();function SX(e){return{Field(t){let n=(0,vX.getNamedType)(e.getType());n&&(0,OX.isIntrospectionType)(n)&&e.reportError(new _X.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var rC=F(mt=>{"use strict";m();T();N();Object.defineProperty(mt,"__esModule",{value:!0});Object.defineProperty(mt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return AX.ExecutableDefinitionsRule}});Object.defineProperty(mt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return RX.FieldsOnCorrectTypeRule}});Object.defineProperty(mt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return PX.FragmentsOnCompositeTypesRule}});Object.defineProperty(mt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return FX.KnownArgumentNamesRule}});Object.defineProperty(mt,"KnownDirectivesRule",{enumerable:!0,get:function(){return wX.KnownDirectivesRule}});Object.defineProperty(mt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return LX.KnownFragmentNamesRule}});Object.defineProperty(mt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return CX.KnownTypeNamesRule}});Object.defineProperty(mt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return BX.LoneAnonymousOperationRule}});Object.defineProperty(mt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return t5.LoneSchemaDefinitionRule}});Object.defineProperty(mt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return e5.MaxIntrospectionDepthRule}});Object.defineProperty(mt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return c5.NoDeprecatedCustomRule}});Object.defineProperty(mt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return UX.NoFragmentCyclesRule}});Object.defineProperty(mt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return l5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(mt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return kX.NoUndefinedVariablesRule}});Object.defineProperty(mt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return MX.NoUnusedFragmentsRule}});Object.defineProperty(mt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return xX.NoUnusedVariablesRule}});Object.defineProperty(mt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return qX.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(mt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return VX.PossibleFragmentSpreadsRule}});Object.defineProperty(mt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return u5.PossibleTypeExtensionsRule}});Object.defineProperty(mt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return jX.ProvidedRequiredArgumentsRule}});Object.defineProperty(mt,"ScalarLeafsRule",{enumerable:!0,get:function(){return KX.ScalarLeafsRule}});Object.defineProperty(mt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return GX.SingleFieldSubscriptionsRule}});Object.defineProperty(mt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return s5.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(mt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return $X.UniqueArgumentNamesRule}});Object.defineProperty(mt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return o5.UniqueDirectiveNamesRule}});Object.defineProperty(mt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return QX.UniqueDirectivesPerLocationRule}});Object.defineProperty(mt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return i5.UniqueEnumValueNamesRule}});Object.defineProperty(mt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return a5.UniqueFieldDefinitionNamesRule}});Object.defineProperty(mt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return YX.UniqueFragmentNamesRule}});Object.defineProperty(mt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return JX.UniqueInputFieldNamesRule}});Object.defineProperty(mt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return HX.UniqueOperationNamesRule}});Object.defineProperty(mt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return n5.UniqueOperationTypesRule}});Object.defineProperty(mt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return r5.UniqueTypeNamesRule}});Object.defineProperty(mt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return zX.UniqueVariableNamesRule}});Object.defineProperty(mt,"ValidationContext",{enumerable:!0,get:function(){return bX.ValidationContext}});Object.defineProperty(mt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return WX.ValuesOfCorrectTypeRule}});Object.defineProperty(mt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return XX.VariablesAreInputTypesRule}});Object.defineProperty(mt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return ZX.VariablesInAllowedPositionRule}});Object.defineProperty(mt,"recommendedRules",{enumerable:!0,get:function(){return nC.recommendedRules}});Object.defineProperty(mt,"specifiedRules",{enumerable:!0,get:function(){return nC.specifiedRules}});Object.defineProperty(mt,"validate",{enumerable:!0,get:function(){return DX.validate}});var DX=Rl(),bX=sv(),nC=rv(),AX=Ig(),RX=_g(),PX=Og(),FX=Sg(),wX=Rg(),LX=Fg(),CX=Cg(),BX=Ug(),UX=jg(),kX=Gg(),MX=Qg(),xX=Jg(),qX=i_(),VX=o_(),jX=d_(),KX=f_(),GX=__(),$X=b_(),QX=w_(),YX=x_(),JX=V_(),HX=K_(),zX=H_(),WX=X_(),XX=ev(),ZX=nv(),e5=qg(),t5=Mg(),n5=$_(),r5=Y_(),i5=C_(),a5=k_(),s5=S_(),o5=R_(),u5=c_(),c5=eC(),l5=tC()});var iC=F(Ec=>{"use strict";m();T();N();Object.defineProperty(Ec,"__esModule",{value:!0});Object.defineProperty(Ec,"GraphQLError",{enumerable:!0,get:function(){return Rv.GraphQLError}});Object.defineProperty(Ec,"formatError",{enumerable:!0,get:function(){return Rv.formatError}});Object.defineProperty(Ec,"locatedError",{enumerable:!0,get:function(){return p5.locatedError}});Object.defineProperty(Ec,"printError",{enumerable:!0,get:function(){return Rv.printError}});Object.defineProperty(Ec,"syntaxError",{enumerable:!0,get:function(){return d5.syntaxError}});var Rv=ze(),d5=qm(),p5=UN()});var Fv=F(Pv=>{"use strict";m();T();N();Object.defineProperty(Pv,"__esModule",{value:!0});Pv.getIntrospectionQuery=f5;function f5(e){let t=M({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 CL=w(G_=>{"use strict";m();T();N();Object.defineProperty(G_,"__esModule",{value:!0});G_.memoize3=Q8;function Q8(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 BL=w($_=>{"use strict";m();T();N();Object.defineProperty($_,"__esModule",{value:!0});$_.promiseForObject=Y8;function Y8(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 UL=w(Q_=>{"use strict";m();T();N();Object.defineProperty(Q_,"__esModule",{value:!0});Q_.promiseReduce=H8;var J8=km();function H8(e,t,n){let r=n;for(let i of e)r=(0,J8.isPromise)(r)?r.then(a=>t(a,i)):t(r,i);return r}});var kL=w(J_=>{"use strict";m();T();N();Object.defineProperty(J_,"__esModule",{value:!0});J_.toError=W8;var z8=Wt();function W8(e){return e instanceof Error?e:new Y_(e)}var Y_=class extends Error{constructor(t){super("Unexpected error value: "+(0,z8.inspect)(t)),this.name="NonErrorThrown",this.thrownValue=t}}});var UN=w(H_=>{"use strict";m();T();N();Object.defineProperty(H_,"__esModule",{value:!0});H_.locatedError=eX;var X8=kL(),Z8=ze();function eX(e,t,n){var r;let i=(0,X8.toError)(e);return tX(i)?i:new Z8.GraphQLError(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function tX(e){return Array.isArray(e.path)}});var Sf=w(Ui=>{"use strict";m();T();N();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.assertValidExecutionArguments=$L;Ui.buildExecutionContext=QL;Ui.buildResolveInfo=JL;Ui.defaultTypeResolver=Ui.defaultFieldResolver=void 0;Ui.execute=GL;Ui.executeSync=uX;Ui.getFieldDef=zL;var W_=xr(),pc=Wt(),nX=Sr(),rX=EN(),ev=Ba(),fa=km(),iX=CL(),mc=Tf(),ML=BL(),aX=UL(),Bi=ze(),MN=UN(),z_=Ua(),xL=wt(),Tu=Lt(),bl=Li(),sX=pf(),jL=wN(),KL=Ol(),oX=(0,iX.memoize3)((e,t,n)=>(0,jL.collectSubfields)(e.schema,e.fragments,e.variableValues,t,n));function GL(e){arguments.length<2||(0,W_.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;$L(t,n,r);let a=QL(e);if(!("schema"in a))return{errors:a};try{let{operation:o}=a,c=cX(a,o,i);return(0,fa.isPromise)(c)?c.then(l=>kN(l,a.errors),l=>(a.errors.push(l),kN(null,a.errors))):kN(c,a.errors)}catch(o){return a.errors.push(o),kN(null,a.errors)}}function uX(e){let t=GL(e);if((0,fa.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function kN(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function $L(e,t,n){t||(0,W_.devAssert)(!1,"Must provide document."),(0,sX.assertValidSchema)(e),n==null||(0,ev.isObjectLike)(n)||(0,W_.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 QL(e){var t,n;let{schema:r,document:i,rootValue:a,contextValue:o,variableValues:c,operationName:l,fieldResolver:d,typeResolver:p,subscribeFieldResolver:E}=e,I,v=Object.create(null);for(let j of i.definitions)switch(j.kind){case xL.Kind.OPERATION_DEFINITION:if(l==null){if(I!==void 0)return[new Bi.GraphQLError("Must provide operation name if query contains multiple operations.")];I=j}else((t=j.name)===null||t===void 0?void 0:t.value)===l&&(I=j);break;case xL.Kind.FRAGMENT_DEFINITION:v[j.name.value]=j;break;default:}if(!I)return l!=null?[new Bi.GraphQLError(`Unknown operation named "${l}".`)]:[new Bi.GraphQLError("Must provide an operation.")];let A=(n=I.variableDefinitions)!==null&&n!==void 0?n:[],U=(0,KL.getVariableValues)(r,A,c!=null?c:{},{maxErrors:50});return U.errors?U.errors:{schema:r,fragments:v,rootValue:a,contextValue:o,operation:I,variableValues:U.coerced,fieldResolver:d!=null?d:Z_,typeResolver:p!=null?p:HL,subscribeFieldResolver:E!=null?E:Z_,errors:[]}}function cX(e,t,n){let r=e.schema.getRootType(t.operation);if(r==null)throw new Bi.GraphQLError(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=(0,jL.collectFields)(e.schema,e.fragments,e.variableValues,r,t.selectionSet),a=void 0;switch(t.operation){case z_.OperationTypeNode.QUERY:return xN(e,r,n,a,i);case z_.OperationTypeNode.MUTATION:return lX(e,r,n,a,i);case z_.OperationTypeNode.SUBSCRIPTION:return xN(e,r,n,a,i)}}function lX(e,t,n,r,i){return(0,aX.promiseReduce)(i.entries(),(a,[o,c])=>{let l=(0,mc.addPath)(r,o,t.name),d=YL(e,t,n,c,l);return d===void 0?a:(0,fa.isPromise)(d)?d.then(p=>(a[o]=p,a)):(a[o]=d,a)},Object.create(null))}function xN(e,t,n,r,i){let a=Object.create(null),o=!1;try{for(let[c,l]of i.entries()){let d=(0,mc.addPath)(r,c,t.name),p=YL(e,t,n,l,d);p!==void 0&&(a[c]=p,(0,fa.isPromise)(p)&&(o=!0))}}catch(c){if(o)return(0,ML.promiseForObject)(a).finally(()=>{throw c});throw c}return o?(0,ML.promiseForObject)(a):a}function YL(e,t,n,r,i){var a;let o=zL(e.schema,t,r[0]);if(!o)return;let c=o.type,l=(a=o.resolve)!==null&&a!==void 0?a:e.fieldResolver,d=JL(e,o,r,t,i);try{let p=(0,KL.getArgumentValues)(o,r[0],e.variableValues),E=e.contextValue,I=l(n,p,E,d),v;return(0,fa.isPromise)(I)?v=I.then(A=>Of(e,c,r,d,i,A)):v=Of(e,c,r,d,i,I),(0,fa.isPromise)(v)?v.then(void 0,A=>{let U=(0,MN.locatedError)(A,r,(0,mc.pathToArray)(i));return qN(U,c,e)}):v}catch(p){let E=(0,MN.locatedError)(p,r,(0,mc.pathToArray)(i));return qN(E,c,e)}}function JL(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 qN(e,t,n){if((0,Tu.isNonNullType)(t))throw e;return n.errors.push(e),null}function Of(e,t,n,r,i,a){if(a instanceof Error)throw a;if((0,Tu.isNonNullType)(t)){let o=Of(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,Tu.isListType)(t))return dX(e,t,n,r,i,a);if((0,Tu.isLeafType)(t))return fX(t,a);if((0,Tu.isAbstractType)(t))return pX(e,t,n,r,i,a);if((0,Tu.isObjectType)(t))return X_(e,t,n,r,i,a);(0,nX.invariant)(!1,"Cannot complete value of unexpected output type: "+(0,pc.inspect)(t))}function dX(e,t,n,r,i,a){if(!(0,rX.isIterableObject)(a))throw new Bi.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,(d,p)=>{let E=(0,mc.addPath)(i,p,void 0);try{let I;return(0,fa.isPromise)(d)?I=d.then(v=>Of(e,o,n,r,E,v)):I=Of(e,o,n,r,E,d),(0,fa.isPromise)(I)?(c=!0,I.then(void 0,v=>{let A=(0,MN.locatedError)(v,n,(0,mc.pathToArray)(E));return qN(A,o,e)})):I}catch(I){let v=(0,MN.locatedError)(I,n,(0,mc.pathToArray)(E));return qN(v,o,e)}});return c?Promise.all(l):l}function fX(e,t){let n=e.serialize(t);if(n==null)throw new Error(`Expected \`${(0,pc.inspect)(e)}.serialize(${(0,pc.inspect)(t)})\` to return non-nullable value, returned: ${(0,pc.inspect)(n)}`);return n}function pX(e,t,n,r,i,a){var o;let c=(o=t.resolveType)!==null&&o!==void 0?o:e.typeResolver,l=e.contextValue,d=c(a,l,r,t);return(0,fa.isPromise)(d)?d.then(p=>X_(e,qL(p,e,t,n,r,a),n,r,i,a)):X_(e,qL(d,e,t,n,r,a),n,r,i,a)}function qL(e,t,n,r,i,a){if(e==null)throw new Bi.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,Tu.isObjectType)(e))throw new Bi.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 Bi.GraphQLError(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${(0,pc.inspect)(a)}, received "${(0,pc.inspect)(e)}".`);let o=t.schema.getType(e);if(o==null)throw new Bi.GraphQLError(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!(0,Tu.isObjectType)(o))throw new Bi.GraphQLError(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,o))throw new Bi.GraphQLError(`Runtime Object type "${o.name}" is not a possible type for "${n.name}".`,{nodes:r});return o}function X_(e,t,n,r,i,a){let o=oX(e,t,n);if(t.isTypeOf){let c=t.isTypeOf(a,e.contextValue,r);if((0,fa.isPromise)(c))return c.then(l=>{if(!l)throw VL(t,a,n);return xN(e,t,a,i,o)});if(!c)throw VL(t,a,n)}return xN(e,t,a,i,o)}function VL(e,t,n){return new Bi.GraphQLError(`Expected value of type "${e.name}" but got: ${(0,pc.inspect)(t)}.`,{nodes:n})}var HL=function(e,t,n,r){if((0,ev.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(VN,"__esModule",{value:!0});VN.graphql=IX;VN.graphqlSync=gX;var mX=xr(),NX=km(),TX=ml(),EX=pf(),hX=Dl(),yX=Sf();function IX(e){return new Promise(t=>t(WL(e)))}function gX(e){let t=WL(e);if((0,NX.isPromise)(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function WL(e){arguments.length<2||(0,mX.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,d=(0,EX.validateSchema)(t);if(d.length>0)return{errors:d};let p;try{p=(0,TX.parse)(n)}catch(I){return{errors:[I]}}let E=(0,hX.validate)(t,p);return E.length>0?{errors:E}:(0,yX.execute)({schema:t,document:p,rootValue:r,contextValue:i,variableValues:a,operationName:o,fieldResolver:c,typeResolver:l})}});var tC=w(he=>{"use strict";m();T();N();Object.defineProperty(he,"__esModule",{value:!0});Object.defineProperty(he,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return pa.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(he,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return bs.GRAPHQL_MAX_INT}});Object.defineProperty(he,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return bs.GRAPHQL_MIN_INT}});Object.defineProperty(he,"GraphQLBoolean",{enumerable:!0,get:function(){return bs.GraphQLBoolean}});Object.defineProperty(he,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return pa.GraphQLDeprecatedDirective}});Object.defineProperty(he,"GraphQLDirective",{enumerable:!0,get:function(){return pa.GraphQLDirective}});Object.defineProperty(he,"GraphQLEnumType",{enumerable:!0,get:function(){return at.GraphQLEnumType}});Object.defineProperty(he,"GraphQLFloat",{enumerable:!0,get:function(){return bs.GraphQLFloat}});Object.defineProperty(he,"GraphQLID",{enumerable:!0,get:function(){return bs.GraphQLID}});Object.defineProperty(he,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return pa.GraphQLIncludeDirective}});Object.defineProperty(he,"GraphQLInputObjectType",{enumerable:!0,get:function(){return at.GraphQLInputObjectType}});Object.defineProperty(he,"GraphQLInt",{enumerable:!0,get:function(){return bs.GraphQLInt}});Object.defineProperty(he,"GraphQLInterfaceType",{enumerable:!0,get:function(){return at.GraphQLInterfaceType}});Object.defineProperty(he,"GraphQLList",{enumerable:!0,get:function(){return at.GraphQLList}});Object.defineProperty(he,"GraphQLNonNull",{enumerable:!0,get:function(){return at.GraphQLNonNull}});Object.defineProperty(he,"GraphQLObjectType",{enumerable:!0,get:function(){return at.GraphQLObjectType}});Object.defineProperty(he,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return pa.GraphQLOneOfDirective}});Object.defineProperty(he,"GraphQLScalarType",{enumerable:!0,get:function(){return at.GraphQLScalarType}});Object.defineProperty(he,"GraphQLSchema",{enumerable:!0,get:function(){return tv.GraphQLSchema}});Object.defineProperty(he,"GraphQLSkipDirective",{enumerable:!0,get:function(){return pa.GraphQLSkipDirective}});Object.defineProperty(he,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return pa.GraphQLSpecifiedByDirective}});Object.defineProperty(he,"GraphQLString",{enumerable:!0,get:function(){return bs.GraphQLString}});Object.defineProperty(he,"GraphQLUnionType",{enumerable:!0,get:function(){return at.GraphQLUnionType}});Object.defineProperty(he,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return Zr.SchemaMetaFieldDef}});Object.defineProperty(he,"TypeKind",{enumerable:!0,get:function(){return Zr.TypeKind}});Object.defineProperty(he,"TypeMetaFieldDef",{enumerable:!0,get:function(){return Zr.TypeMetaFieldDef}});Object.defineProperty(he,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return Zr.TypeNameMetaFieldDef}});Object.defineProperty(he,"__Directive",{enumerable:!0,get:function(){return Zr.__Directive}});Object.defineProperty(he,"__DirectiveLocation",{enumerable:!0,get:function(){return Zr.__DirectiveLocation}});Object.defineProperty(he,"__EnumValue",{enumerable:!0,get:function(){return Zr.__EnumValue}});Object.defineProperty(he,"__Field",{enumerable:!0,get:function(){return Zr.__Field}});Object.defineProperty(he,"__InputValue",{enumerable:!0,get:function(){return Zr.__InputValue}});Object.defineProperty(he,"__Schema",{enumerable:!0,get:function(){return Zr.__Schema}});Object.defineProperty(he,"__Type",{enumerable:!0,get:function(){return Zr.__Type}});Object.defineProperty(he,"__TypeKind",{enumerable:!0,get:function(){return Zr.__TypeKind}});Object.defineProperty(he,"assertAbstractType",{enumerable:!0,get:function(){return at.assertAbstractType}});Object.defineProperty(he,"assertCompositeType",{enumerable:!0,get:function(){return at.assertCompositeType}});Object.defineProperty(he,"assertDirective",{enumerable:!0,get:function(){return pa.assertDirective}});Object.defineProperty(he,"assertEnumType",{enumerable:!0,get:function(){return at.assertEnumType}});Object.defineProperty(he,"assertEnumValueName",{enumerable:!0,get:function(){return eC.assertEnumValueName}});Object.defineProperty(he,"assertInputObjectType",{enumerable:!0,get:function(){return at.assertInputObjectType}});Object.defineProperty(he,"assertInputType",{enumerable:!0,get:function(){return at.assertInputType}});Object.defineProperty(he,"assertInterfaceType",{enumerable:!0,get:function(){return at.assertInterfaceType}});Object.defineProperty(he,"assertLeafType",{enumerable:!0,get:function(){return at.assertLeafType}});Object.defineProperty(he,"assertListType",{enumerable:!0,get:function(){return at.assertListType}});Object.defineProperty(he,"assertName",{enumerable:!0,get:function(){return eC.assertName}});Object.defineProperty(he,"assertNamedType",{enumerable:!0,get:function(){return at.assertNamedType}});Object.defineProperty(he,"assertNonNullType",{enumerable:!0,get:function(){return at.assertNonNullType}});Object.defineProperty(he,"assertNullableType",{enumerable:!0,get:function(){return at.assertNullableType}});Object.defineProperty(he,"assertObjectType",{enumerable:!0,get:function(){return at.assertObjectType}});Object.defineProperty(he,"assertOutputType",{enumerable:!0,get:function(){return at.assertOutputType}});Object.defineProperty(he,"assertScalarType",{enumerable:!0,get:function(){return at.assertScalarType}});Object.defineProperty(he,"assertSchema",{enumerable:!0,get:function(){return tv.assertSchema}});Object.defineProperty(he,"assertType",{enumerable:!0,get:function(){return at.assertType}});Object.defineProperty(he,"assertUnionType",{enumerable:!0,get:function(){return at.assertUnionType}});Object.defineProperty(he,"assertValidSchema",{enumerable:!0,get:function(){return ZL.assertValidSchema}});Object.defineProperty(he,"assertWrappingType",{enumerable:!0,get:function(){return at.assertWrappingType}});Object.defineProperty(he,"getNamedType",{enumerable:!0,get:function(){return at.getNamedType}});Object.defineProperty(he,"getNullableType",{enumerable:!0,get:function(){return at.getNullableType}});Object.defineProperty(he,"introspectionTypes",{enumerable:!0,get:function(){return Zr.introspectionTypes}});Object.defineProperty(he,"isAbstractType",{enumerable:!0,get:function(){return at.isAbstractType}});Object.defineProperty(he,"isCompositeType",{enumerable:!0,get:function(){return at.isCompositeType}});Object.defineProperty(he,"isDirective",{enumerable:!0,get:function(){return pa.isDirective}});Object.defineProperty(he,"isEnumType",{enumerable:!0,get:function(){return at.isEnumType}});Object.defineProperty(he,"isInputObjectType",{enumerable:!0,get:function(){return at.isInputObjectType}});Object.defineProperty(he,"isInputType",{enumerable:!0,get:function(){return at.isInputType}});Object.defineProperty(he,"isInterfaceType",{enumerable:!0,get:function(){return at.isInterfaceType}});Object.defineProperty(he,"isIntrospectionType",{enumerable:!0,get:function(){return Zr.isIntrospectionType}});Object.defineProperty(he,"isLeafType",{enumerable:!0,get:function(){return at.isLeafType}});Object.defineProperty(he,"isListType",{enumerable:!0,get:function(){return at.isListType}});Object.defineProperty(he,"isNamedType",{enumerable:!0,get:function(){return at.isNamedType}});Object.defineProperty(he,"isNonNullType",{enumerable:!0,get:function(){return at.isNonNullType}});Object.defineProperty(he,"isNullableType",{enumerable:!0,get:function(){return at.isNullableType}});Object.defineProperty(he,"isObjectType",{enumerable:!0,get:function(){return at.isObjectType}});Object.defineProperty(he,"isOutputType",{enumerable:!0,get:function(){return at.isOutputType}});Object.defineProperty(he,"isRequiredArgument",{enumerable:!0,get:function(){return at.isRequiredArgument}});Object.defineProperty(he,"isRequiredInputField",{enumerable:!0,get:function(){return at.isRequiredInputField}});Object.defineProperty(he,"isScalarType",{enumerable:!0,get:function(){return at.isScalarType}});Object.defineProperty(he,"isSchema",{enumerable:!0,get:function(){return tv.isSchema}});Object.defineProperty(he,"isSpecifiedDirective",{enumerable:!0,get:function(){return pa.isSpecifiedDirective}});Object.defineProperty(he,"isSpecifiedScalarType",{enumerable:!0,get:function(){return bs.isSpecifiedScalarType}});Object.defineProperty(he,"isType",{enumerable:!0,get:function(){return at.isType}});Object.defineProperty(he,"isUnionType",{enumerable:!0,get:function(){return at.isUnionType}});Object.defineProperty(he,"isWrappingType",{enumerable:!0,get:function(){return at.isWrappingType}});Object.defineProperty(he,"resolveObjMapThunk",{enumerable:!0,get:function(){return at.resolveObjMapThunk}});Object.defineProperty(he,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return at.resolveReadonlyArrayThunk}});Object.defineProperty(he,"specifiedDirectives",{enumerable:!0,get:function(){return pa.specifiedDirectives}});Object.defineProperty(he,"specifiedScalarTypes",{enumerable:!0,get:function(){return bs.specifiedScalarTypes}});Object.defineProperty(he,"validateSchema",{enumerable:!0,get:function(){return ZL.validateSchema}});var tv=uc(),at=Lt(),pa=Wr(),bs=xa(),Zr=Li(),ZL=pf(),eC=Wd()});var rC=w(Ut=>{"use strict";m();T();N();Object.defineProperty(Ut,"__esModule",{value:!0});Object.defineProperty(Ut,"BREAK",{enumerable:!0,get:function(){return Df.BREAK}});Object.defineProperty(Ut,"DirectiveLocation",{enumerable:!0,get:function(){return AX.DirectiveLocation}});Object.defineProperty(Ut,"Kind",{enumerable:!0,get:function(){return OX.Kind}});Object.defineProperty(Ut,"Lexer",{enumerable:!0,get:function(){return DX.Lexer}});Object.defineProperty(Ut,"Location",{enumerable:!0,get:function(){return nv.Location}});Object.defineProperty(Ut,"OperationTypeNode",{enumerable:!0,get:function(){return nv.OperationTypeNode}});Object.defineProperty(Ut,"Source",{enumerable:!0,get:function(){return _X.Source}});Object.defineProperty(Ut,"Token",{enumerable:!0,get:function(){return nv.Token}});Object.defineProperty(Ut,"TokenKind",{enumerable:!0,get:function(){return SX.TokenKind}});Object.defineProperty(Ut,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Df.getEnterLeaveForKind}});Object.defineProperty(Ut,"getLocation",{enumerable:!0,get:function(){return vX.getLocation}});Object.defineProperty(Ut,"getVisitFn",{enumerable:!0,get:function(){return Df.getVisitFn}});Object.defineProperty(Ut,"isConstValueNode",{enumerable:!0,get:function(){return Ka.isConstValueNode}});Object.defineProperty(Ut,"isDefinitionNode",{enumerable:!0,get:function(){return Ka.isDefinitionNode}});Object.defineProperty(Ut,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Ka.isExecutableDefinitionNode}});Object.defineProperty(Ut,"isSelectionNode",{enumerable:!0,get:function(){return Ka.isSelectionNode}});Object.defineProperty(Ut,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Ka.isTypeDefinitionNode}});Object.defineProperty(Ut,"isTypeExtensionNode",{enumerable:!0,get:function(){return Ka.isTypeExtensionNode}});Object.defineProperty(Ut,"isTypeNode",{enumerable:!0,get:function(){return Ka.isTypeNode}});Object.defineProperty(Ut,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Ka.isTypeSystemDefinitionNode}});Object.defineProperty(Ut,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Ka.isTypeSystemExtensionNode}});Object.defineProperty(Ut,"isValueNode",{enumerable:!0,get:function(){return Ka.isValueNode}});Object.defineProperty(Ut,"parse",{enumerable:!0,get:function(){return jN.parse}});Object.defineProperty(Ut,"parseConstValue",{enumerable:!0,get:function(){return jN.parseConstValue}});Object.defineProperty(Ut,"parseType",{enumerable:!0,get:function(){return jN.parseType}});Object.defineProperty(Ut,"parseValue",{enumerable:!0,get:function(){return jN.parseValue}});Object.defineProperty(Ut,"print",{enumerable:!0,get:function(){return bX.print}});Object.defineProperty(Ut,"printLocation",{enumerable:!0,get:function(){return nC.printLocation}});Object.defineProperty(Ut,"printSourceLocation",{enumerable:!0,get:function(){return nC.printSourceLocation}});Object.defineProperty(Ut,"visit",{enumerable:!0,get:function(){return Df.visit}});Object.defineProperty(Ut,"visitInParallel",{enumerable:!0,get:function(){return Df.visitInParallel}});var _X=Ym(),vX=Mm(),nC=Xy(),OX=wt(),SX=Kd(),DX=Km(),jN=ml(),bX=pi(),Df=nc(),nv=Ua(),Ka=lc(),AX=fl()});var iC=w(rv=>{"use strict";m();T();N();Object.defineProperty(rv,"__esModule",{value:!0});rv.isAsyncIterable=RX;function RX(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}});var aC=w(iv=>{"use strict";m();T();N();Object.defineProperty(iv,"__esModule",{value:!0});iv.mapAsyncIterator=PX;function PX(e,t){let n=e[Symbol.asyncIterator]();function r(a){return Ai(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 Ai(this,null,function*(){return r(yield n.next())})},return(){return Ai(this,null,function*(){return typeof n.return=="function"?r(yield n.return()):{value:void 0,done:!0}})},throw(a){return Ai(this,null,function*(){if(typeof n.throw=="function")return r(yield n.throw(a));throw a})},[Symbol.asyncIterator](){return this}}}});var cC=w(KN=>{"use strict";m();T();N();Object.defineProperty(KN,"__esModule",{value:!0});KN.createSourceEventStream=uC;KN.subscribe=kX;var FX=xr(),wX=Wt(),oC=iC(),sC=Tf(),av=ze(),LX=UN(),CX=wN(),bf=Sf(),BX=aC(),UX=Ol();function kX(t){return Ai(this,arguments,function*(e){arguments.length<2||(0,FX.devAssert)(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let n=yield uC(e);if(!(0,oC.isAsyncIterable)(n))return n;let r=i=>(0,bf.execute)(Q(M({},e),{rootValue:i}));return(0,BX.mapAsyncIterator)(n,r)})}function MX(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 uC(...e){return Ai(this,null,function*(){let t=MX(e),{schema:n,document:r,variableValues:i}=t;(0,bf.assertValidExecutionArguments)(n,r,i);let a=(0,bf.buildExecutionContext)(t);if(!("schema"in a))return{errors:a};try{let o=yield xX(a);if(!(0,oC.isAsyncIterable)(o))throw new Error(`Subscription field must return Async Iterable. Received: ${(0,wX.inspect)(o)}.`);return o}catch(o){if(o instanceof av.GraphQLError)return{errors:[o]};throw o}})}function xX(e){return Ai(this,null,function*(){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:a}=e,o=t.getSubscriptionType();if(o==null)throw new av.GraphQLError("Schema is not configured to execute subscription operation.",{nodes:r});let c=(0,CX.collectFields)(t,n,i,o,r.selectionSet),[l,d]=[...c.entries()][0],p=(0,bf.getFieldDef)(t,o,d[0]);if(!p){let A=d[0].name.value;throw new av.GraphQLError(`The subscription field "${A}" is not defined.`,{nodes:d})}let E=(0,sC.addPath)(void 0,l,o.name),I=(0,bf.buildResolveInfo)(e,p,d,o,E);try{var v;let A=(0,UX.getArgumentValues)(p,d[0],i),U=e.contextValue,G=yield((v=p.subscribe)!==null&&v!==void 0?v:e.subscribeFieldResolver)(a,A,U,I);if(G instanceof Error)throw G;return G}catch(A){throw(0,LX.locatedError)(A,d,(0,sC.pathToArray)(E))}})}});var dC=w(ki=>{"use strict";m();T();N();Object.defineProperty(ki,"__esModule",{value:!0});Object.defineProperty(ki,"createSourceEventStream",{enumerable:!0,get:function(){return lC.createSourceEventStream}});Object.defineProperty(ki,"defaultFieldResolver",{enumerable:!0,get:function(){return GN.defaultFieldResolver}});Object.defineProperty(ki,"defaultTypeResolver",{enumerable:!0,get:function(){return GN.defaultTypeResolver}});Object.defineProperty(ki,"execute",{enumerable:!0,get:function(){return GN.execute}});Object.defineProperty(ki,"executeSync",{enumerable:!0,get:function(){return GN.executeSync}});Object.defineProperty(ki,"getArgumentValues",{enumerable:!0,get:function(){return sv.getArgumentValues}});Object.defineProperty(ki,"getDirectiveValues",{enumerable:!0,get:function(){return sv.getDirectiveValues}});Object.defineProperty(ki,"getVariableValues",{enumerable:!0,get:function(){return sv.getVariableValues}});Object.defineProperty(ki,"responsePathAsArray",{enumerable:!0,get:function(){return qX.pathToArray}});Object.defineProperty(ki,"subscribe",{enumerable:!0,get:function(){return lC.subscribe}});var qX=Tf(),GN=Sf(),lC=cC(),sv=Ol()});var fC=w(cv=>{"use strict";m();T();N();Object.defineProperty(cv,"__esModule",{value:!0});cv.NoDeprecatedCustomRule=VX;var ov=Sr(),Af=ze(),uv=Lt();function VX(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,ov.invariant)(!1),e.reportError(new Af.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 Af.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,ov.invariant)(!1),e.reportError(new Af.GraphQLError(`Field "${a.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=(0,uv.getNamedType)(e.getParentInputType());if((0,uv.isInputObjectType)(n)){let r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Af.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,uv.getNamedType)(e.getInputType());i!=null||(0,ov.invariant)(!1),e.reportError(new Af.GraphQLError(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}});var pC=w(lv=>{"use strict";m();T();N();Object.defineProperty(lv,"__esModule",{value:!0});lv.NoSchemaIntrospectionCustomRule=$X;var jX=ze(),KX=Lt(),GX=Li();function $X(e){return{Field(t){let n=(0,KX.getNamedType)(e.getType());n&&(0,GX.isIntrospectionType)(n)&&e.reportError(new jX.GraphQLError(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}});var NC=w(pt=>{"use strict";m();T();N();Object.defineProperty(pt,"__esModule",{value:!0});Object.defineProperty(pt,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return JX.ExecutableDefinitionsRule}});Object.defineProperty(pt,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return HX.FieldsOnCorrectTypeRule}});Object.defineProperty(pt,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return zX.FragmentsOnCompositeTypesRule}});Object.defineProperty(pt,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return WX.KnownArgumentNamesRule}});Object.defineProperty(pt,"KnownDirectivesRule",{enumerable:!0,get:function(){return XX.KnownDirectivesRule}});Object.defineProperty(pt,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return ZX.KnownFragmentNamesRule}});Object.defineProperty(pt,"KnownTypeNamesRule",{enumerable:!0,get:function(){return e5.KnownTypeNamesRule}});Object.defineProperty(pt,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return t5.LoneAnonymousOperationRule}});Object.defineProperty(pt,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return g5.LoneSchemaDefinitionRule}});Object.defineProperty(pt,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return I5.MaxIntrospectionDepthRule}});Object.defineProperty(pt,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return R5.NoDeprecatedCustomRule}});Object.defineProperty(pt,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return n5.NoFragmentCyclesRule}});Object.defineProperty(pt,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return P5.NoSchemaIntrospectionCustomRule}});Object.defineProperty(pt,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return r5.NoUndefinedVariablesRule}});Object.defineProperty(pt,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return i5.NoUnusedFragmentsRule}});Object.defineProperty(pt,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return a5.NoUnusedVariablesRule}});Object.defineProperty(pt,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return s5.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(pt,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return o5.PossibleFragmentSpreadsRule}});Object.defineProperty(pt,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return A5.PossibleTypeExtensionsRule}});Object.defineProperty(pt,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return u5.ProvidedRequiredArgumentsRule}});Object.defineProperty(pt,"ScalarLeafsRule",{enumerable:!0,get:function(){return c5.ScalarLeafsRule}});Object.defineProperty(pt,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return l5.SingleFieldSubscriptionsRule}});Object.defineProperty(pt,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return D5.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(pt,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return d5.UniqueArgumentNamesRule}});Object.defineProperty(pt,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return b5.UniqueDirectiveNamesRule}});Object.defineProperty(pt,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return f5.UniqueDirectivesPerLocationRule}});Object.defineProperty(pt,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return O5.UniqueEnumValueNamesRule}});Object.defineProperty(pt,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return S5.UniqueFieldDefinitionNamesRule}});Object.defineProperty(pt,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return p5.UniqueFragmentNamesRule}});Object.defineProperty(pt,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return m5.UniqueInputFieldNamesRule}});Object.defineProperty(pt,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return N5.UniqueOperationNamesRule}});Object.defineProperty(pt,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return _5.UniqueOperationTypesRule}});Object.defineProperty(pt,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return v5.UniqueTypeNamesRule}});Object.defineProperty(pt,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return T5.UniqueVariableNamesRule}});Object.defineProperty(pt,"ValidationContext",{enumerable:!0,get:function(){return YX.ValidationContext}});Object.defineProperty(pt,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return E5.ValuesOfCorrectTypeRule}});Object.defineProperty(pt,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return h5.VariablesAreInputTypesRule}});Object.defineProperty(pt,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return y5.VariablesInAllowedPositionRule}});Object.defineProperty(pt,"recommendedRules",{enumerable:!0,get:function(){return mC.recommendedRules}});Object.defineProperty(pt,"specifiedRules",{enumerable:!0,get:function(){return mC.specifiedRules}});Object.defineProperty(pt,"validate",{enumerable:!0,get:function(){return QX.validate}});var QX=Dl(),YX=j_(),mC=x_(),JX=ng(),HX=ig(),zX=sg(),WX=og(),XX=dg(),ZX=pg(),e5=Tg(),t5=hg(),n5=Og(),r5=Dg(),i5=Ag(),a5=Pg(),s5=qg(),o5=Kg(),u5=Yg(),c5=Hg(),l5=i_(),d5=c_(),f5=m_(),p5=g_(),m5=v_(),N5=S_(),T5=F_(),E5=C_(),h5=U_(),y5=M_(),I5=_g(),g5=Ig(),_5=b_(),v5=R_(),O5=T_(),S5=y_(),D5=o_(),b5=d_(),A5=$g(),R5=fC(),P5=pC()});var TC=w(Nc=>{"use strict";m();T();N();Object.defineProperty(Nc,"__esModule",{value:!0});Object.defineProperty(Nc,"GraphQLError",{enumerable:!0,get:function(){return dv.GraphQLError}});Object.defineProperty(Nc,"formatError",{enumerable:!0,get:function(){return dv.formatError}});Object.defineProperty(Nc,"locatedError",{enumerable:!0,get:function(){return w5.locatedError}});Object.defineProperty(Nc,"printError",{enumerable:!0,get:function(){return dv.printError}});Object.defineProperty(Nc,"syntaxError",{enumerable:!0,get:function(){return F5.syntaxError}});var dv=ze(),F5=qm(),w5=UN()});var pv=w(fv=>{"use strict";m();T();N();Object.defineProperty(fv,"__esModule",{value:!0});fv.getIntrospectionQuery=L5;function L5(e){let t=M({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} @@ -177,88 +177,89 @@ In some cases, you need to provide options to alter GraphQL's execution behavior } } } - `}});var aC=F(wv=>{"use strict";m();T();N();Object.defineProperty(wv,"__esModule",{value:!0});wv.getOperationAST=N5;var m5=Lt();function N5(e,t){let n=null;for(let i of e.definitions)if(i.kind===m5.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 sC=F(Lv=>{"use strict";m();T();N();Object.defineProperty(Lv,"__esModule",{value:!0});Lv.getOperationRootType=T5;var $N=ze();function T5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new $N.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 $N.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new $N.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new $N.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var oC=F(Cv=>{"use strict";m();T();N();Object.defineProperty(Cv,"__esModule",{value:!0});Cv.introspectionFromSchema=g5;var E5=br(),h5=El(),y5=bp(),I5=Fv();function g5(e,t){let n=M({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,h5.parse)((0,I5.getIntrospectionQuery)(n)),i=(0,y5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,E5.invariant)(!1),i.data}});var cC=F(Bv=>{"use strict";m();T();N();Object.defineProperty(Bv,"__esModule",{value:!0});Bv.buildClientSchema=A5;var _5=jr(),Ei=Wt(),uC=Ba(),QN=Xd(),v5=El(),hi=Ct(),O5=ei(),Ga=ki(),S5=xa(),D5=lc(),b5=_p();function A5(e,t){(0,uC.isObjectLike)(e)&&(0,uC.isObjectLike)(e.__schema)||(0,_5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,Ei.inspect)(e)}.`);let n=e.__schema,r=(0,QN.keyValMap)(n.types,X=>X.name,X=>I(X));for(let X of[...S5.specifiedScalarTypes,...Ga.introspectionTypes])r[X.name]&&(r[X.name]=X);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(nt):[];return new D5.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(X){if(X.kind===Ga.TypeKind.LIST){let _e=X.ofType;if(!_e)throw new Error("Decorated type deeper than introspection query.");return new hi.GraphQLList(l(_e))}if(X.kind===Ga.TypeKind.NON_NULL){let _e=X.ofType;if(!_e)throw new Error("Decorated type deeper than introspection query.");let vt=l(_e);return new hi.GraphQLNonNull((0,hi.assertNullableType)(vt))}return d(X)}function d(X){let _e=X.name;if(!_e)throw new Error(`Unknown type reference: ${(0,Ei.inspect)(X)}.`);let vt=r[_e];if(!vt)throw new Error(`Invalid or incomplete schema, unknown type: ${_e}. Ensure that a full introspection query is used in order to build a client schema.`);return vt}function f(X){return(0,hi.assertObjectType)(d(X))}function y(X){return(0,hi.assertInterfaceType)(d(X))}function I(X){if(X!=null&&X.name!=null&&X.kind!=null)switch(X.kind){case Ga.TypeKind.SCALAR:return v(X);case Ga.TypeKind.OBJECT:return U(X);case Ga.TypeKind.INTERFACE:return j(X);case Ga.TypeKind.UNION:return Y(X);case Ga.TypeKind.ENUM:return re(X);case Ga.TypeKind.INPUT_OBJECT:return ne(X)}let _e=(0,Ei.inspect)(X);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${_e}.`)}function v(X){return new hi.GraphQLScalarType({name:X.name,description:X.description,specifiedByURL:X.specifiedByURL})}function w(X){if(X.interfaces===null&&X.kind===Ga.TypeKind.INTERFACE)return[];if(!X.interfaces){let _e=(0,Ei.inspect)(X);throw new Error(`Introspection result missing interfaces: ${_e}.`)}return X.interfaces.map(y)}function U(X){return new hi.GraphQLObjectType({name:X.name,description:X.description,interfaces:()=>w(X),fields:()=>me(X)})}function j(X){return new hi.GraphQLInterfaceType({name:X.name,description:X.description,interfaces:()=>w(X),fields:()=>me(X)})}function Y(X){if(!X.possibleTypes){let _e=(0,Ei.inspect)(X);throw new Error(`Introspection result missing possibleTypes: ${_e}.`)}return new hi.GraphQLUnionType({name:X.name,description:X.description,types:()=>X.possibleTypes.map(f)})}function re(X){if(!X.enumValues){let _e=(0,Ei.inspect)(X);throw new Error(`Introspection result missing enumValues: ${_e}.`)}return new hi.GraphQLEnumType({name:X.name,description:X.description,values:(0,QN.keyValMap)(X.enumValues,_e=>_e.name,_e=>({description:_e.description,deprecationReason:_e.deprecationReason}))})}function ne(X){if(!X.inputFields){let _e=(0,Ei.inspect)(X);throw new Error(`Introspection result missing inputFields: ${_e}.`)}return new hi.GraphQLInputObjectType({name:X.name,description:X.description,fields:()=>Ae(X.inputFields),isOneOf:X.isOneOf})}function me(X){if(!X.fields)throw new Error(`Introspection result missing fields: ${(0,Ei.inspect)(X)}.`);return(0,QN.keyValMap)(X.fields,_e=>_e.name,ue)}function ue(X){let _e=l(X.type);if(!(0,hi.isOutputType)(_e)){let vt=(0,Ei.inspect)(_e);throw new Error(`Introspection must provide output type for fields, but received: ${vt}.`)}if(!X.args){let vt=(0,Ei.inspect)(X);throw new Error(`Introspection result missing field args: ${vt}.`)}return{description:X.description,deprecationReason:X.deprecationReason,type:_e,args:Ae(X.args)}}function Ae(X){return(0,QN.keyValMap)(X,_e=>_e.name,Me)}function Me(X){let _e=l(X.type);if(!(0,hi.isInputType)(_e)){let an=(0,Ei.inspect)(_e);throw new Error(`Introspection must provide input type for arguments, but received: ${an}.`)}let vt=X.defaultValue!=null?(0,b5.valueFromAST)((0,v5.parseValue)(X.defaultValue),_e):void 0;return{description:X.description,type:_e,defaultValue:vt,deprecationReason:X.deprecationReason}}function nt(X){if(!X.args){let _e=(0,Ei.inspect)(X);throw new Error(`Introspection result missing directive args: ${_e}.`)}if(!X.locations){let _e=(0,Ei.inspect)(X);throw new Error(`Introspection result missing directive locations: ${_e}.`)}return new O5.GraphQLDirective({name:X.name,description:X.description,isRepeatable:X.isRepeatable,locations:X.locations.slice(),args:Ae(X.args)})}}});var kv=F(JN=>{"use strict";m();T();N();Object.defineProperty(JN,"__esModule",{value:!0});JN.extendSchema=C5;JN.extendSchemaImpl=EC;var R5=jr(),P5=Wt(),F5=br(),w5=du(),Fp=UI(),ji=Lt(),lC=pc(),Sn=Ct(),wp=ei(),NC=ki(),TC=xa(),dC=lc(),L5=Rl(),Uv=bl(),pC=_p();function C5(e,t,n){(0,dC.assertSchema)(e),t!=null&&t.kind===ji.Kind.DOCUMENT||(0,R5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,L5.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=EC(r,t,n);return r===i?e:new dC.GraphQLSchema(i)}function EC(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),d=[],f,y=[];for(let ae of t.definitions)if(ae.kind===ji.Kind.SCHEMA_DEFINITION)f=ae;else if(ae.kind===ji.Kind.SCHEMA_EXTENSION)y.push(ae);else if((0,lC.isTypeDefinitionNode)(ae))c.push(ae);else if((0,lC.isTypeExtensionNode)(ae)){let De=ae.name.value,Ie=l[De];l[De]=Ie?Ie.concat([ae]):[ae]}else ae.kind===ji.Kind.DIRECTIVE_DEFINITION&&d.push(ae);if(Object.keys(l).length===0&&c.length===0&&d.length===0&&y.length===0&&f==null)return e;let I=Object.create(null);for(let ae of e.types)I[ae.name]=re(ae);for(let ae of c){var v;let De=ae.name.value;I[De]=(v=fC[De])!==null&&v!==void 0?v:Ln(ae)}let w=M(M({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},f&&vt([f])),vt(y));return $(M({description:(r=f)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},w),{types:Object.values(I),directives:[...e.directives.map(Y),...d.map(wn)],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 U(ae){return(0,Sn.isListType)(ae)?new Sn.GraphQLList(U(ae.ofType)):(0,Sn.isNonNullType)(ae)?new Sn.GraphQLNonNull(U(ae.ofType)):j(ae)}function j(ae){return I[ae.name]}function Y(ae){let De=ae.toConfig();return new wp.GraphQLDirective($(M({},De),{args:(0,Fp.mapValue)(De.args,_e)}))}function re(ae){if((0,NC.isIntrospectionType)(ae)||(0,TC.isSpecifiedScalarType)(ae))return ae;if((0,Sn.isScalarType)(ae))return ue(ae);if((0,Sn.isObjectType)(ae))return Ae(ae);if((0,Sn.isInterfaceType)(ae))return Me(ae);if((0,Sn.isUnionType)(ae))return nt(ae);if((0,Sn.isEnumType)(ae))return me(ae);if((0,Sn.isInputObjectType)(ae))return ne(ae);(0,F5.invariant)(!1,"Unexpected type: "+(0,P5.inspect)(ae))}function ne(ae){var De;let Ie=ae.toConfig(),Le=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLInputObjectType($(M({},Ie),{fields:()=>M(M({},(0,Fp.mapValue)(Ie.fields,St=>$(M({},St),{type:U(St.type)}))),kr(Le)),extensionASTNodes:Ie.extensionASTNodes.concat(Le)}))}function me(ae){var De;let Ie=ae.toConfig(),Le=(De=l[ae.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLEnumType($(M({},Ie),{values:M(M({},Ie.values),Mr(Le)),extensionASTNodes:Ie.extensionASTNodes.concat(Le)}))}function ue(ae){var De;let Ie=ae.toConfig(),Le=(De=l[Ie.name])!==null&&De!==void 0?De:[],St=Ie.specifiedByURL;for(let ie of Le){var Q;St=(Q=mC(ie))!==null&&Q!==void 0?Q:St}return new Sn.GraphQLScalarType($(M({},Ie),{specifiedByURL:St,extensionASTNodes:Ie.extensionASTNodes.concat(Le)}))}function Ae(ae){var De;let Ie=ae.toConfig(),Le=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLObjectType($(M({},Ie),{interfaces:()=>[...ae.getInterfaces().map(j),...Vn(Le)],fields:()=>M(M({},(0,Fp.mapValue)(Ie.fields,X)),$t(Le)),extensionASTNodes:Ie.extensionASTNodes.concat(Le)}))}function Me(ae){var De;let Ie=ae.toConfig(),Le=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLInterfaceType($(M({},Ie),{interfaces:()=>[...ae.getInterfaces().map(j),...Vn(Le)],fields:()=>M(M({},(0,Fp.mapValue)(Ie.fields,X)),$t(Le)),extensionASTNodes:Ie.extensionASTNodes.concat(Le)}))}function nt(ae){var De;let Ie=ae.toConfig(),Le=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLUnionType($(M({},Ie),{types:()=>[...ae.getTypes().map(j),...Ht(Le)],extensionASTNodes:Ie.extensionASTNodes.concat(Le)}))}function X(ae){return $(M({},ae),{type:U(ae.type),args:ae.args&&(0,Fp.mapValue)(ae.args,_e)})}function _e(ae){return $(M({},ae),{type:U(ae.type)})}function vt(ae){let De={};for(let Le of ae){var Ie;let St=(Ie=Le.operationTypes)!==null&&Ie!==void 0?Ie:[];for(let Q of St)De[Q.operation]=an(Q.type)}return De}function an(ae){var De;let Ie=ae.name.value,Le=(De=fC[Ie])!==null&&De!==void 0?De:I[Ie];if(Le===void 0)throw new Error(`Unknown type: "${Ie}".`);return Le}function sn(ae){return ae.kind===ji.Kind.LIST_TYPE?new Sn.GraphQLList(sn(ae.type)):ae.kind===ji.Kind.NON_NULL_TYPE?new Sn.GraphQLNonNull(sn(ae.type)):an(ae)}function wn(ae){var De;return new wp.GraphQLDirective({name:ae.name.value,description:(De=ae.description)===null||De===void 0?void 0:De.value,locations:ae.locations.map(({value:Ie})=>Ie),isRepeatable:ae.repeatable,args:En(ae.arguments),astNode:ae})}function $t(ae){let De=Object.create(null);for(let St of ae){var Ie;let Q=(Ie=St.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of Q){var Le;De[ie.name.value]={type:sn(ie.type),description:(Le=ie.description)===null||Le===void 0?void 0:Le.value,args:En(ie.arguments),deprecationReason:YN(ie),astNode:ie}}}return De}function En(ae){let De=ae!=null?ae:[],Ie=Object.create(null);for(let St of De){var Le;let Q=sn(St.type);Ie[St.name.value]={type:Q,description:(Le=St.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,pC.valueFromAST)(St.defaultValue,Q),deprecationReason:YN(St),astNode:St}}return Ie}function kr(ae){let De=Object.create(null);for(let St of ae){var Ie;let Q=(Ie=St.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of Q){var Le;let xe=sn(ie.type);De[ie.name.value]={type:xe,description:(Le=ie.description)===null||Le===void 0?void 0:Le.value,defaultValue:(0,pC.valueFromAST)(ie.defaultValue,xe),deprecationReason:YN(ie),astNode:ie}}}return De}function Mr(ae){let De=Object.create(null);for(let St of ae){var Ie;let Q=(Ie=St.values)!==null&&Ie!==void 0?Ie:[];for(let ie of Q){var Le;De[ie.name.value]={description:(Le=ie.description)===null||Le===void 0?void 0:Le.value,deprecationReason:YN(ie),astNode:ie}}}return De}function Vn(ae){return ae.flatMap(De=>{var Ie,Le;return(Ie=(Le=De.interfaces)===null||Le===void 0?void 0:Le.map(an))!==null&&Ie!==void 0?Ie:[]})}function Ht(ae){return ae.flatMap(De=>{var Ie,Le;return(Ie=(Le=De.types)===null||Le===void 0?void 0:Le.map(an))!==null&&Ie!==void 0?Ie:[]})}function Ln(ae){var De;let Ie=ae.name.value,Le=(De=l[Ie])!==null&&De!==void 0?De:[];switch(ae.kind){case ji.Kind.OBJECT_TYPE_DEFINITION:{var St;let rt=[ae,...Le];return new Sn.GraphQLObjectType({name:Ie,description:(St=ae.description)===null||St===void 0?void 0:St.value,interfaces:()=>Vn(rt),fields:()=>$t(rt),astNode:ae,extensionASTNodes:Le})}case ji.Kind.INTERFACE_TYPE_DEFINITION:{var Q;let rt=[ae,...Le];return new Sn.GraphQLInterfaceType({name:Ie,description:(Q=ae.description)===null||Q===void 0?void 0:Q.value,interfaces:()=>Vn(rt),fields:()=>$t(rt),astNode:ae,extensionASTNodes:Le})}case ji.Kind.ENUM_TYPE_DEFINITION:{var ie;let rt=[ae,...Le];return new Sn.GraphQLEnumType({name:Ie,description:(ie=ae.description)===null||ie===void 0?void 0:ie.value,values:Mr(rt),astNode:ae,extensionASTNodes:Le})}case ji.Kind.UNION_TYPE_DEFINITION:{var xe;let rt=[ae,...Le];return new Sn.GraphQLUnionType({name:Ie,description:(xe=ae.description)===null||xe===void 0?void 0:xe.value,types:()=>Ht(rt),astNode:ae,extensionASTNodes:Le})}case ji.Kind.SCALAR_TYPE_DEFINITION:{var Ye;return new Sn.GraphQLScalarType({name:Ie,description:(Ye=ae.description)===null||Ye===void 0?void 0:Ye.value,specifiedByURL:mC(ae),astNode:ae,extensionASTNodes:Le})}case ji.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Ut;let rt=[ae,...Le];return new Sn.GraphQLInputObjectType({name:Ie,description:(Ut=ae.description)===null||Ut===void 0?void 0:Ut.value,fields:()=>kr(rt),astNode:ae,extensionASTNodes:Le,isOneOf:B5(ae)})}}}}var fC=(0,w5.keyMap)([...TC.specifiedScalarTypes,...NC.introspectionTypes],e=>e.name);function YN(e){let t=(0,Uv.getDirectiveValues)(wp.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function mC(e){let t=(0,Uv.getDirectiveValues)(wp.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function B5(e){return!!(0,Uv.getDirectiveValues)(wp.GraphQLOneOfDirective,e)}});var yC=F(HN=>{"use strict";m();T();N();Object.defineProperty(HN,"__esModule",{value:!0});HN.buildASTSchema=hC;HN.buildSchema=K5;var U5=jr(),k5=Lt(),M5=El(),x5=ei(),q5=lc(),V5=Rl(),j5=kv();function hC(e,t){e!=null&&e.kind===k5.Kind.DOCUMENT||(0,U5.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,V5.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,j5.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,...x5.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new q5.GraphQLSchema($(M({},r),{directives:i}))}function K5(e,t){let n=(0,M5.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return hC(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var _C=F(xv=>{"use strict";m();T();N();Object.defineProperty(xv,"__esModule",{value:!0});xv.lexicographicSortSchema=z5;var G5=Wt(),$5=br(),Q5=Xd(),IC=Zd(),Kr=Ct(),Y5=ei(),J5=ki(),H5=lc();function z5(e){let t=e.toConfig(),n=(0,Q5.keyValMap)(Mv(t.types),I=>I.name,y);return new H5.GraphQLSchema($(M({},t),{types:Object.values(n),directives:Mv(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(I){return(0,Kr.isListType)(I)?new Kr.GraphQLList(r(I.ofType)):(0,Kr.isNonNullType)(I)?new Kr.GraphQLNonNull(r(I.ofType)):i(I)}function i(I){return n[I.name]}function a(I){return I&&i(I)}function o(I){let v=I.toConfig();return new Y5.GraphQLDirective($(M({},v),{locations:gC(v.locations,w=>w),args:c(v.args)}))}function c(I){return zN(I,v=>$(M({},v),{type:r(v.type)}))}function l(I){return zN(I,v=>$(M({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function d(I){return zN(I,v=>$(M({},v),{type:r(v.type)}))}function f(I){return Mv(I).map(i)}function y(I){if((0,Kr.isScalarType)(I)||(0,J5.isIntrospectionType)(I))return I;if((0,Kr.isObjectType)(I)){let v=I.toConfig();return new Kr.GraphQLObjectType($(M({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Kr.isInterfaceType)(I)){let v=I.toConfig();return new Kr.GraphQLInterfaceType($(M({},v),{interfaces:()=>f(v.interfaces),fields:()=>l(v.fields)}))}if((0,Kr.isUnionType)(I)){let v=I.toConfig();return new Kr.GraphQLUnionType($(M({},v),{types:()=>f(v.types)}))}if((0,Kr.isEnumType)(I)){let v=I.toConfig();return new Kr.GraphQLEnumType($(M({},v),{values:zN(v.values,w=>w)}))}if((0,Kr.isInputObjectType)(I)){let v=I.toConfig();return new Kr.GraphQLInputObjectType($(M({},v),{fields:()=>d(v.fields)}))}(0,$5.invariant)(!1,"Unexpected type: "+(0,G5.inspect)(I))}}function zN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(IC.naturalCompare))n[r]=t(e[r]);return n}function Mv(e){return gC(e,t=>t.name)}function gC(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,IC.naturalCompare)(i,a)})}});var RC=F(Lp=>{"use strict";m();T();N();Object.defineProperty(Lp,"__esModule",{value:!0});Lp.printIntrospectionSchema=r9;Lp.printSchema=n9;Lp.printType=SC;var W5=Wt(),X5=br(),Z5=Gd(),Vv=Lt(),WN=Ti(),Fl=Ct(),jv=ei(),vC=ki(),e9=xa(),t9=pp();function n9(e){return OC(e,t=>!(0,jv.isSpecifiedDirective)(t),i9)}function r9(e){return OC(e,jv.isSpecifiedDirective,vC.isIntrospectionType)}function i9(e){return!(0,e9.isSpecifiedScalarType)(e)&&!(0,vC.isIntrospectionType)(e)}function OC(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[a9(e),...r.map(a=>f9(a)),...i.map(a=>SC(a))].filter(Boolean).join(` + `}});var EC=w(mv=>{"use strict";m();T();N();Object.defineProperty(mv,"__esModule",{value:!0});mv.getOperationAST=B5;var C5=wt();function B5(e,t){let n=null;for(let i of e.definitions)if(i.kind===C5.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 hC=w(Nv=>{"use strict";m();T();N();Object.defineProperty(Nv,"__esModule",{value:!0});Nv.getOperationRootType=U5;var $N=ze();function U5(e,t){if(t.operation==="query"){let n=e.getQueryType();if(!n)throw new $N.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 $N.GraphQLError("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){let n=e.getSubscriptionType();if(!n)throw new $N.GraphQLError("Schema is not configured for subscriptions.",{nodes:t});return n}throw new $N.GraphQLError("Can only have query, mutation and subscription operations.",{nodes:t})}});var yC=w(Tv=>{"use strict";m();T();N();Object.defineProperty(Tv,"__esModule",{value:!0});Tv.introspectionFromSchema=V5;var k5=Sr(),M5=ml(),x5=Sf(),q5=pv();function V5(e,t){let n=M({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0},t),r=(0,M5.parse)((0,q5.getIntrospectionQuery)(n)),i=(0,x5.executeSync)({schema:e,document:r});return!i.errors&&i.data||(0,k5.invariant)(!1),i.data}});var gC=w(Ev=>{"use strict";m();T();N();Object.defineProperty(Ev,"__esModule",{value:!0});Ev.buildClientSchema=J5;var j5=xr(),mi=Wt(),IC=Ba(),QN=Hd(),K5=ml(),Ni=Lt(),G5=Wr(),Ga=Li(),$5=xa(),Q5=uc(),Y5=If();function J5(e,t){(0,IC.isObjectLike)(e)&&(0,IC.isObjectLike)(e.__schema)||(0,j5.devAssert)(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0,mi.inspect)(e)}.`);let n=e.__schema,r=(0,QN.keyValMap)(n.types,Z=>Z.name,Z=>I(Z));for(let Z of[...$5.specifiedScalarTypes,...Ga.introspectionTypes])r[Z.name]&&(r[Z.name]=Z);let i=n.queryType?p(n.queryType):null,a=n.mutationType?p(n.mutationType):null,o=n.subscriptionType?p(n.subscriptionType):null,c=n.directives?n.directives.map(rt):[];return new Q5.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(Z){if(Z.kind===Ga.TypeKind.LIST){let _e=Z.ofType;if(!_e)throw new Error("Decorated type deeper than introspection query.");return new Ni.GraphQLList(l(_e))}if(Z.kind===Ga.TypeKind.NON_NULL){let _e=Z.ofType;if(!_e)throw new Error("Decorated type deeper than introspection query.");let _t=l(_e);return new Ni.GraphQLNonNull((0,Ni.assertNullableType)(_t))}return d(Z)}function d(Z){let _e=Z.name;if(!_e)throw new Error(`Unknown type reference: ${(0,mi.inspect)(Z)}.`);let _t=r[_e];if(!_t)throw new Error(`Invalid or incomplete schema, unknown type: ${_e}. Ensure that a full introspection query is used in order to build a client schema.`);return _t}function p(Z){return(0,Ni.assertObjectType)(d(Z))}function E(Z){return(0,Ni.assertInterfaceType)(d(Z))}function I(Z){if(Z!=null&&Z.name!=null&&Z.kind!=null)switch(Z.kind){case Ga.TypeKind.SCALAR:return v(Z);case Ga.TypeKind.OBJECT:return U(Z);case Ga.TypeKind.INTERFACE:return j(Z);case Ga.TypeKind.UNION:return G(Z);case Ga.TypeKind.ENUM:return re(Z);case Ga.TypeKind.INPUT_OBJECT:return ne(Z)}let _e=(0,mi.inspect)(Z);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${_e}.`)}function v(Z){return new Ni.GraphQLScalarType({name:Z.name,description:Z.description,specifiedByURL:Z.specifiedByURL})}function A(Z){if(Z.interfaces===null&&Z.kind===Ga.TypeKind.INTERFACE)return[];if(!Z.interfaces){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing interfaces: ${_e}.`)}return Z.interfaces.map(E)}function U(Z){return new Ni.GraphQLObjectType({name:Z.name,description:Z.description,interfaces:()=>A(Z),fields:()=>me(Z)})}function j(Z){return new Ni.GraphQLInterfaceType({name:Z.name,description:Z.description,interfaces:()=>A(Z),fields:()=>me(Z)})}function G(Z){if(!Z.possibleTypes){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing possibleTypes: ${_e}.`)}return new Ni.GraphQLUnionType({name:Z.name,description:Z.description,types:()=>Z.possibleTypes.map(p)})}function re(Z){if(!Z.enumValues){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing enumValues: ${_e}.`)}return new Ni.GraphQLEnumType({name:Z.name,description:Z.description,values:(0,QN.keyValMap)(Z.enumValues,_e=>_e.name,_e=>({description:_e.description,deprecationReason:_e.deprecationReason}))})}function ne(Z){if(!Z.inputFields){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing inputFields: ${_e}.`)}return new Ni.GraphQLInputObjectType({name:Z.name,description:Z.description,fields:()=>Ae(Z.inputFields),isOneOf:Z.isOneOf})}function me(Z){if(!Z.fields)throw new Error(`Introspection result missing fields: ${(0,mi.inspect)(Z)}.`);return(0,QN.keyValMap)(Z.fields,_e=>_e.name,ue)}function ue(Z){let _e=l(Z.type);if(!(0,Ni.isOutputType)(_e)){let _t=(0,mi.inspect)(_e);throw new Error(`Introspection must provide output type for fields, but received: ${_t}.`)}if(!Z.args){let _t=(0,mi.inspect)(Z);throw new Error(`Introspection result missing field args: ${_t}.`)}return{description:Z.description,deprecationReason:Z.deprecationReason,type:_e,args:Ae(Z.args)}}function Ae(Z){return(0,QN.keyValMap)(Z,_e=>_e.name,xe)}function xe(Z){let _e=l(Z.type);if(!(0,Ni.isInputType)(_e)){let rn=(0,mi.inspect)(_e);throw new Error(`Introspection must provide input type for arguments, but received: ${rn}.`)}let _t=Z.defaultValue!=null?(0,Y5.valueFromAST)((0,K5.parseValue)(Z.defaultValue),_e):void 0;return{description:Z.description,type:_e,defaultValue:_t,deprecationReason:Z.deprecationReason}}function rt(Z){if(!Z.args){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing directive args: ${_e}.`)}if(!Z.locations){let _e=(0,mi.inspect)(Z);throw new Error(`Introspection result missing directive locations: ${_e}.`)}return new G5.GraphQLDirective({name:Z.name,description:Z.description,isRepeatable:Z.isRepeatable,locations:Z.locations.slice(),args:Ae(Z.args)})}}});var yv=w(JN=>{"use strict";m();T();N();Object.defineProperty(JN,"__esModule",{value:!0});JN.extendSchema=e9;JN.extendSchemaImpl=RC;var H5=xr(),z5=Wt(),W5=Sr(),X5=cu(),Rf=hI(),Mi=wt(),_C=lc(),Sn=Lt(),Pf=Wr(),bC=Li(),AC=xa(),vC=uc(),Z5=Dl(),hv=Ol(),OC=If();function e9(e,t,n){(0,vC.assertSchema)(e),t!=null&&t.kind===Mi.Kind.DOCUMENT||(0,H5.devAssert)(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&(0,Z5.assertValidSDLExtension)(t,e);let r=e.toConfig(),i=RC(r,t,n);return r===i?e:new vC.GraphQLSchema(i)}function RC(e,t,n){var r,i,a,o;let c=[],l=Object.create(null),d=[],p,E=[];for(let ae of t.definitions)if(ae.kind===Mi.Kind.SCHEMA_DEFINITION)p=ae;else if(ae.kind===Mi.Kind.SCHEMA_EXTENSION)E.push(ae);else if((0,_C.isTypeDefinitionNode)(ae))c.push(ae);else if((0,_C.isTypeExtensionNode)(ae)){let De=ae.name.value,Ie=l[De];l[De]=Ie?Ie.concat([ae]):[ae]}else ae.kind===Mi.Kind.DIRECTIVE_DEFINITION&&d.push(ae);if(Object.keys(l).length===0&&c.length===0&&d.length===0&&E.length===0&&p==null)return e;let I=Object.create(null);for(let ae of e.types)I[ae.name]=re(ae);for(let ae of c){var v;let De=ae.name.value;I[De]=(v=SC[De])!==null&&v!==void 0?v:wn(ae)}let A=M(M({query:e.query&&j(e.query),mutation:e.mutation&&j(e.mutation),subscription:e.subscription&&j(e.subscription)},p&&_t([p])),_t(E));return Q(M({description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value},A),{types:Object.values(I),directives:[...e.directives.map(G),...d.map(Fn)],extensions:Object.create(null),astNode:(a=p)!==null&&a!==void 0?a:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(E),assumeValid:(o=n==null?void 0:n.assumeValid)!==null&&o!==void 0?o:!1});function U(ae){return(0,Sn.isListType)(ae)?new Sn.GraphQLList(U(ae.ofType)):(0,Sn.isNonNullType)(ae)?new Sn.GraphQLNonNull(U(ae.ofType)):j(ae)}function j(ae){return I[ae.name]}function G(ae){let De=ae.toConfig();return new Pf.GraphQLDirective(Q(M({},De),{args:(0,Rf.mapValue)(De.args,_e)}))}function re(ae){if((0,bC.isIntrospectionType)(ae)||(0,AC.isSpecifiedScalarType)(ae))return ae;if((0,Sn.isScalarType)(ae))return ue(ae);if((0,Sn.isObjectType)(ae))return Ae(ae);if((0,Sn.isInterfaceType)(ae))return xe(ae);if((0,Sn.isUnionType)(ae))return rt(ae);if((0,Sn.isEnumType)(ae))return me(ae);if((0,Sn.isInputObjectType)(ae))return ne(ae);(0,W5.invariant)(!1,"Unexpected type: "+(0,z5.inspect)(ae))}function ne(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLInputObjectType(Q(M({},Ie),{fields:()=>M(M({},(0,Rf.mapValue)(Ie.fields,Ot=>Q(M({},Ot),{type:U(Ot.type)}))),Cr(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function me(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[ae.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLEnumType(Q(M({},Ie),{values:M(M({},Ie.values),Br(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function ue(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[],Ot=Ie.specifiedByURL;for(let ie of Ce){var Y;Ot=(Y=DC(ie))!==null&&Y!==void 0?Y:Ot}return new Sn.GraphQLScalarType(Q(M({},Ie),{specifiedByURL:Ot,extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Ae(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLObjectType(Q(M({},Ie),{interfaces:()=>[...ae.getInterfaces().map(j),...xn(Ce)],fields:()=>M(M({},(0,Rf.mapValue)(Ie.fields,Z)),$t(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function xe(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLInterfaceType(Q(M({},Ie),{interfaces:()=>[...ae.getInterfaces().map(j),...xn(Ce)],fields:()=>M(M({},(0,Rf.mapValue)(Ie.fields,Z)),$t(Ce)),extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function rt(ae){var De;let Ie=ae.toConfig(),Ce=(De=l[Ie.name])!==null&&De!==void 0?De:[];return new Sn.GraphQLUnionType(Q(M({},Ie),{types:()=>[...ae.getTypes().map(j),...Ht(Ce)],extensionASTNodes:Ie.extensionASTNodes.concat(Ce)}))}function Z(ae){return Q(M({},ae),{type:U(ae.type),args:ae.args&&(0,Rf.mapValue)(ae.args,_e)})}function _e(ae){return Q(M({},ae),{type:U(ae.type)})}function _t(ae){let De={};for(let Ce of ae){var Ie;let Ot=(Ie=Ce.operationTypes)!==null&&Ie!==void 0?Ie:[];for(let Y of Ot)De[Y.operation]=rn(Y.type)}return De}function rn(ae){var De;let Ie=ae.name.value,Ce=(De=SC[Ie])!==null&&De!==void 0?De:I[Ie];if(Ce===void 0)throw new Error(`Unknown type: "${Ie}".`);return Ce}function an(ae){return ae.kind===Mi.Kind.LIST_TYPE?new Sn.GraphQLList(an(ae.type)):ae.kind===Mi.Kind.NON_NULL_TYPE?new Sn.GraphQLNonNull(an(ae.type)):rn(ae)}function Fn(ae){var De;return new Pf.GraphQLDirective({name:ae.name.value,description:(De=ae.description)===null||De===void 0?void 0:De.value,locations:ae.locations.map(({value:Ie})=>Ie),isRepeatable:ae.repeatable,args:Tn(ae.arguments),astNode:ae})}function $t(ae){let De=Object.create(null);for(let Ot of ae){var Ie;let Y=(Ie=Ot.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of Y){var Ce;De[ie.name.value]={type:an(ie.type),description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,args:Tn(ie.arguments),deprecationReason:YN(ie),astNode:ie}}}return De}function Tn(ae){let De=ae!=null?ae:[],Ie=Object.create(null);for(let Ot of De){var Ce;let Y=an(Ot.type);Ie[Ot.name.value]={type:Y,description:(Ce=Ot.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,OC.valueFromAST)(Ot.defaultValue,Y),deprecationReason:YN(Ot),astNode:Ot}}return Ie}function Cr(ae){let De=Object.create(null);for(let Ot of ae){var Ie;let Y=(Ie=Ot.fields)!==null&&Ie!==void 0?Ie:[];for(let ie of Y){var Ce;let qe=an(ie.type);De[ie.name.value]={type:qe,description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,defaultValue:(0,OC.valueFromAST)(ie.defaultValue,qe),deprecationReason:YN(ie),astNode:ie}}}return De}function Br(ae){let De=Object.create(null);for(let Ot of ae){var Ie;let Y=(Ie=Ot.values)!==null&&Ie!==void 0?Ie:[];for(let ie of Y){var Ce;De[ie.name.value]={description:(Ce=ie.description)===null||Ce===void 0?void 0:Ce.value,deprecationReason:YN(ie),astNode:ie}}}return De}function xn(ae){return ae.flatMap(De=>{var Ie,Ce;return(Ie=(Ce=De.interfaces)===null||Ce===void 0?void 0:Ce.map(rn))!==null&&Ie!==void 0?Ie:[]})}function Ht(ae){return ae.flatMap(De=>{var Ie,Ce;return(Ie=(Ce=De.types)===null||Ce===void 0?void 0:Ce.map(rn))!==null&&Ie!==void 0?Ie:[]})}function wn(ae){var De;let Ie=ae.name.value,Ce=(De=l[Ie])!==null&&De!==void 0?De:[];switch(ae.kind){case Mi.Kind.OBJECT_TYPE_DEFINITION:{var Ot;let it=[ae,...Ce];return new Sn.GraphQLObjectType({name:Ie,description:(Ot=ae.description)===null||Ot===void 0?void 0:Ot.value,interfaces:()=>xn(it),fields:()=>$t(it),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.INTERFACE_TYPE_DEFINITION:{var Y;let it=[ae,...Ce];return new Sn.GraphQLInterfaceType({name:Ie,description:(Y=ae.description)===null||Y===void 0?void 0:Y.value,interfaces:()=>xn(it),fields:()=>$t(it),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.ENUM_TYPE_DEFINITION:{var ie;let it=[ae,...Ce];return new Sn.GraphQLEnumType({name:Ie,description:(ie=ae.description)===null||ie===void 0?void 0:ie.value,values:Br(it),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.UNION_TYPE_DEFINITION:{var qe;let it=[ae,...Ce];return new Sn.GraphQLUnionType({name:Ie,description:(qe=ae.description)===null||qe===void 0?void 0:qe.value,types:()=>Ht(it),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.SCALAR_TYPE_DEFINITION:{var Je;return new Sn.GraphQLScalarType({name:Ie,description:(Je=ae.description)===null||Je===void 0?void 0:Je.value,specifiedByURL:DC(ae),astNode:ae,extensionASTNodes:Ce})}case Mi.Kind.INPUT_OBJECT_TYPE_DEFINITION:{var Bt;let it=[ae,...Ce];return new Sn.GraphQLInputObjectType({name:Ie,description:(Bt=ae.description)===null||Bt===void 0?void 0:Bt.value,fields:()=>Cr(it),astNode:ae,extensionASTNodes:Ce,isOneOf:t9(ae)})}}}}var SC=(0,X5.keyMap)([...AC.specifiedScalarTypes,...bC.introspectionTypes],e=>e.name);function YN(e){let t=(0,hv.getDirectiveValues)(Pf.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function DC(e){let t=(0,hv.getDirectiveValues)(Pf.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}function t9(e){return!!(0,hv.getDirectiveValues)(Pf.GraphQLOneOfDirective,e)}});var FC=w(HN=>{"use strict";m();T();N();Object.defineProperty(HN,"__esModule",{value:!0});HN.buildASTSchema=PC;HN.buildSchema=c9;var n9=xr(),r9=wt(),i9=ml(),a9=Wr(),s9=uc(),o9=Dl(),u9=yv();function PC(e,t){e!=null&&e.kind===r9.Kind.DOCUMENT||(0,n9.devAssert)(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,o9.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,u9.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,...a9.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new s9.GraphQLSchema(Q(M({},r),{directives:i}))}function c9(e,t){let n=(0,i9.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return PC(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var CC=w(gv=>{"use strict";m();T();N();Object.defineProperty(gv,"__esModule",{value:!0});gv.lexicographicSortSchema=T9;var l9=Wt(),d9=Sr(),f9=Hd(),wC=zd(),qr=Lt(),p9=Wr(),m9=Li(),N9=uc();function T9(e){let t=e.toConfig(),n=(0,f9.keyValMap)(Iv(t.types),I=>I.name,E);return new N9.GraphQLSchema(Q(M({},t),{types:Object.values(n),directives:Iv(t.directives).map(o),query:a(t.query),mutation:a(t.mutation),subscription:a(t.subscription)}));function r(I){return(0,qr.isListType)(I)?new qr.GraphQLList(r(I.ofType)):(0,qr.isNonNullType)(I)?new qr.GraphQLNonNull(r(I.ofType)):i(I)}function i(I){return n[I.name]}function a(I){return I&&i(I)}function o(I){let v=I.toConfig();return new p9.GraphQLDirective(Q(M({},v),{locations:LC(v.locations,A=>A),args:c(v.args)}))}function c(I){return zN(I,v=>Q(M({},v),{type:r(v.type)}))}function l(I){return zN(I,v=>Q(M({},v),{type:r(v.type),args:v.args&&c(v.args)}))}function d(I){return zN(I,v=>Q(M({},v),{type:r(v.type)}))}function p(I){return Iv(I).map(i)}function E(I){if((0,qr.isScalarType)(I)||(0,m9.isIntrospectionType)(I))return I;if((0,qr.isObjectType)(I)){let v=I.toConfig();return new qr.GraphQLObjectType(Q(M({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,qr.isInterfaceType)(I)){let v=I.toConfig();return new qr.GraphQLInterfaceType(Q(M({},v),{interfaces:()=>p(v.interfaces),fields:()=>l(v.fields)}))}if((0,qr.isUnionType)(I)){let v=I.toConfig();return new qr.GraphQLUnionType(Q(M({},v),{types:()=>p(v.types)}))}if((0,qr.isEnumType)(I)){let v=I.toConfig();return new qr.GraphQLEnumType(Q(M({},v),{values:zN(v.values,A=>A)}))}if((0,qr.isInputObjectType)(I)){let v=I.toConfig();return new qr.GraphQLInputObjectType(Q(M({},v),{fields:()=>d(v.fields)}))}(0,d9.invariant)(!1,"Unexpected type: "+(0,l9.inspect)(I))}}function zN(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(wC.naturalCompare))n[r]=t(e[r]);return n}function Iv(e){return LC(e,t=>t.name)}function LC(e,t){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);return(0,wC.naturalCompare)(i,a)})}});var VC=w(Ff=>{"use strict";m();T();N();Object.defineProperty(Ff,"__esModule",{value:!0});Ff.printIntrospectionSchema=v9;Ff.printSchema=_9;Ff.printType=kC;var E9=Wt(),h9=Sr(),y9=Vd(),vv=wt(),WN=pi(),Al=Lt(),Ov=Wr(),BC=Li(),I9=xa(),g9=lf();function _9(e){return UC(e,t=>!(0,Ov.isSpecifiedDirective)(t),O9)}function v9(e){return UC(e,Ov.isSpecifiedDirective,BC.isIntrospectionType)}function O9(e){return!(0,I9.isSpecifiedScalarType)(e)&&!(0,BC.isIntrospectionType)(e)}function UC(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[S9(e),...r.map(a=>L9(a)),...i.map(a=>kC(a))].filter(Boolean).join(` -`)}function a9(e){if(e.description==null&&s9(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}`),Ki(e)+`schema { +`)}function S9(e){if(e.description==null&&D9(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}`),xi(e)+`schema { ${t.join(` `)} -}`}function s9(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function SC(e){if((0,Fl.isScalarType)(e))return o9(e);if((0,Fl.isObjectType)(e))return u9(e);if((0,Fl.isInterfaceType)(e))return c9(e);if((0,Fl.isUnionType)(e))return l9(e);if((0,Fl.isEnumType)(e))return d9(e);if((0,Fl.isInputObjectType)(e))return p9(e);(0,X5.invariant)(!1,"Unexpected type: "+(0,W5.inspect)(e))}function o9(e){return Ki(e)+`scalar ${e.name}`+m9(e)}function DC(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function u9(e){return Ki(e)+`type ${e.name}`+DC(e)+bC(e)}function c9(e){return Ki(e)+`interface ${e.name}`+DC(e)+bC(e)}function l9(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Ki(e)+"union "+e.name+n}function d9(e){let t=e.getValues().map((n,r)=>Ki(n," ",!r)+" "+n.name+Gv(n.deprecationReason));return Ki(e)+`enum ${e.name}`+Kv(t)}function p9(e){let t=Object.values(e.getFields()).map((n,r)=>Ki(n," ",!r)+" "+qv(n));return Ki(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Kv(t)}function bC(e){let t=Object.values(e.getFields()).map((n,r)=>Ki(n," ",!r)+" "+n.name+AC(n.args," ")+": "+String(n.type)+Gv(n.deprecationReason));return Kv(t)}function Kv(e){return e.length!==0?` { +}`}function D9(e){let t=e.getQueryType();if(t&&t.name!=="Query")return!1;let n=e.getMutationType();if(n&&n.name!=="Mutation")return!1;let r=e.getSubscriptionType();return!(r&&r.name!=="Subscription")}function kC(e){if((0,Al.isScalarType)(e))return b9(e);if((0,Al.isObjectType)(e))return A9(e);if((0,Al.isInterfaceType)(e))return R9(e);if((0,Al.isUnionType)(e))return P9(e);if((0,Al.isEnumType)(e))return F9(e);if((0,Al.isInputObjectType)(e))return w9(e);(0,h9.invariant)(!1,"Unexpected type: "+(0,E9.inspect)(e))}function b9(e){return xi(e)+`scalar ${e.name}`+C9(e)}function MC(e){let t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function A9(e){return xi(e)+`type ${e.name}`+MC(e)+xC(e)}function R9(e){return xi(e)+`interface ${e.name}`+MC(e)+xC(e)}function P9(e){let t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return xi(e)+"union "+e.name+n}function F9(e){let t=e.getValues().map((n,r)=>xi(n," ",!r)+" "+n.name+Dv(n.deprecationReason));return xi(e)+`enum ${e.name}`+Sv(t)}function w9(e){let t=Object.values(e.getFields()).map((n,r)=>xi(n," ",!r)+" "+_v(n));return xi(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+Sv(t)}function xC(e){let t=Object.values(e.getFields()).map((n,r)=>xi(n," ",!r)+" "+n.name+qC(n.args," ")+": "+String(n.type)+Dv(n.deprecationReason));return Sv(t)}function Sv(e){return e.length!==0?` { `+e.join(` `)+` -}`:""}function AC(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(qv).join(", ")+")":`( -`+e.map((n,r)=>Ki(n," "+t,!r)+" "+t+qv(n)).join(` +}`:""}function qC(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(_v).join(", ")+")":`( +`+e.map((n,r)=>xi(n," "+t,!r)+" "+t+_v(n)).join(` `)+` -`+t+")"}function qv(e){let t=(0,t9.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,WN.print)(t)}`),n+Gv(e.deprecationReason)}function f9(e){return Ki(e)+"directive @"+e.name+AC(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Gv(e){return e==null?"":e!==jv.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,WN.print)({kind:Vv.Kind.STRING,value:e})})`:" @deprecated"}function m9(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,WN.print)({kind:Vv.Kind.STRING,value:e.specifiedByURL})})`}function Ki(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,WN.print)({kind:Vv.Kind.STRING,value:r,block:(0,Z5.isPrintableAsBlockString)(r)});return(t&&!n?` +`+t+")"}function _v(e){let t=(0,g9.astFromValue)(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,WN.print)(t)}`),n+Dv(e.deprecationReason)}function L9(e){return xi(e)+"directive @"+e.name+qC(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Dv(e){return e==null?"":e!==Ov.DEFAULT_DEPRECATION_REASON?` @deprecated(reason: ${(0,WN.print)({kind:vv.Kind.STRING,value:e})})`:" @deprecated"}function C9(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${(0,WN.print)({kind:vv.Kind.STRING,value:e.specifiedByURL})})`}function xi(e,t="",n=!0){let{description:r}=e;if(r==null)return"";let i=(0,WN.print)({kind:vv.Kind.STRING,value:r,block:(0,y9.isPrintableAsBlockString)(r)});return(t&&!n?` `+t:t)+i.replace(/\n/g,` `+t)+` -`}});var PC=F($v=>{"use strict";m();T();N();Object.defineProperty($v,"__esModule",{value:!0});$v.concatAST=T9;var N9=Lt();function T9(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:N9.Kind.DOCUMENT,definitions:t}}});var LC=F(Qv=>{"use strict";m();T();N();Object.defineProperty(Qv,"__esModule",{value:!0});Qv.separateOperations=h9;var XN=Lt(),E9=ic();function h9(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case XN.Kind.OPERATION_DEFINITION:t.push(i);break;case XN.Kind.FRAGMENT_DEFINITION:n[i.name.value]=FC(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let a=new Set;for(let c of FC(i.selectionSet))wC(a,n,c);let o=i.name?i.name.value:"";r[o]={kind:XN.Kind.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===XN.Kind.FRAGMENT_DEFINITION&&a.has(c.name.value))}}return r}function wC(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)wC(e,t,i)}}function FC(e){let t=[];return(0,E9.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var UC=F(Jv=>{"use strict";m();T();N();Object.defineProperty(Jv,"__esModule",{value:!0});Jv.stripIgnoredCharacters=I9;var y9=Gd(),CC=Km(),BC=Ym(),Yv=Qd();function I9(e){let t=(0,BC.isSource)(e)?e:new BC.Source(e),n=t.body,r=new CC.Lexer(t),i="",a=!1;for(;r.advance().kind!==Yv.TokenKind.EOF;){let o=r.token,c=o.kind,l=!(0,CC.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===Yv.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);c===Yv.TokenKind.BLOCK_STRING?i+=(0,y9.printBlockString)(o.value,{minimize:!0}):i+=d,a=l}return i}});var MC=F(ZN=>{"use strict";m();T();N();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.assertValidName=O9;ZN.isValidNameError=kC;var g9=jr(),_9=ze(),v9=ep();function O9(e){let t=kC(e);if(t)throw t;return e}function kC(e){if(typeof e=="string"||(0,g9.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new _9.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,v9.assertName)(e)}catch(t){return t}}});var QC=F($a=>{"use strict";m();T();N();Object.defineProperty($a,"__esModule",{value:!0});$a.DangerousChangeType=$a.BreakingChangeType=void 0;$a.findBreakingChanges=P9;$a.findDangerousChanges=F9;var S9=Wt(),GC=br(),xC=du(),D9=Ti(),Vt=Ct(),b9=xa(),A9=pp(),R9=Wg(),Mn;$a.BreakingChangeType=Mn;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(Mn||($a.BreakingChangeType=Mn={}));var Ta;$a.DangerousChangeType=Ta;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(Ta||($a.DangerousChangeType=Ta={}));function P9(e,t){return $C(e,t).filter(n=>n.type in Mn)}function F9(e,t){return $C(e,t).filter(n=>n.type in Ta)}function $C(e,t){return[...L9(e,t),...w9(e,t)]}function w9(e,t){let n=[],r=Fs(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:Mn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of r.persisted){let o=Fs(i.args,a.args);for(let c of o.added)(0,Vt.isRequiredArgument)(c)&&n.push({type:Mn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${c.name} on directive ${i.name} was added.`});for(let c of o.removed)n.push({type:Mn.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:Mn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let c of i.locations)a.locations.includes(c)||n.push({type:Mn.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function L9(e,t){let n=[],r=Fs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:Mn.TYPE_REMOVED,description:(0,b9.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of r.persisted)(0,Vt.isEnumType)(i)&&(0,Vt.isEnumType)(a)?n.push(...U9(i,a)):(0,Vt.isUnionType)(i)&&(0,Vt.isUnionType)(a)?n.push(...B9(i,a)):(0,Vt.isInputObjectType)(i)&&(0,Vt.isInputObjectType)(a)?n.push(...C9(i,a)):(0,Vt.isObjectType)(i)&&(0,Vt.isObjectType)(a)?n.push(...VC(i,a),...qC(i,a)):(0,Vt.isInterfaceType)(i)&&(0,Vt.isInterfaceType)(a)?n.push(...VC(i,a),...qC(i,a)):i.constructor!==a.constructor&&n.push({type:Mn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${jC(i)} to ${jC(a)}.`});return n}function C9(e,t){let n=[],r=Fs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,Vt.isRequiredInputField)(i)?n.push({type:Mn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:Ta.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:Mn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)Bp(i.type,a.type)||n.push({type:Mn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function B9(e,t){let n=[],r=Fs(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:Ta.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:Mn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function U9(e,t){let n=[],r=Fs(e.getValues(),t.getValues());for(let i of r.added)n.push({type:Ta.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:Mn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function qC(e,t){let n=[],r=Fs(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:Ta.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:Mn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function VC(e,t){let n=[],r=Fs(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:Mn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)n.push(...k9(e,i,a)),Cp(i.type,a.type)||n.push({type:Mn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function k9(e,t,n){let r=[],i=Fs(t.args,n.args);for(let a of i.removed)r.push({type:Mn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!Bp(a.type,o.type))r.push({type:Mn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:Ta.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=KC(a.defaultValue,a.type),d=KC(o.defaultValue,o.type);l!==d&&r.push({type:Ta.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${d}.`})}for(let a of i.added)(0,Vt.isRequiredArgument)(a)?r.push({type:Mn.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):r.push({type:Ta.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return r}function Cp(e,t){return(0,Vt.isListType)(e)?(0,Vt.isListType)(t)&&Cp(e.ofType,t.ofType)||(0,Vt.isNonNullType)(t)&&Cp(e,t.ofType):(0,Vt.isNonNullType)(e)?(0,Vt.isNonNullType)(t)&&Cp(e.ofType,t.ofType):(0,Vt.isNamedType)(t)&&e.name===t.name||(0,Vt.isNonNullType)(t)&&Cp(e,t.ofType)}function Bp(e,t){return(0,Vt.isListType)(e)?(0,Vt.isListType)(t)&&Bp(e.ofType,t.ofType):(0,Vt.isNonNullType)(e)?(0,Vt.isNonNullType)(t)&&Bp(e.ofType,t.ofType)||!(0,Vt.isNonNullType)(t)&&Bp(e.ofType,t):(0,Vt.isNamedType)(t)&&e.name===t.name}function jC(e){if((0,Vt.isScalarType)(e))return"a Scalar type";if((0,Vt.isObjectType)(e))return"an Object type";if((0,Vt.isInterfaceType)(e))return"an Interface type";if((0,Vt.isUnionType)(e))return"a Union type";if((0,Vt.isEnumType)(e))return"an Enum type";if((0,Vt.isInputObjectType)(e))return"an Input type";(0,GC.invariant)(!1,"Unexpected type: "+(0,S9.inspect)(e))}function KC(e,t){let n=(0,A9.astFromValue)(e,t);return n!=null||(0,GC.invariant)(!1),(0,D9.print)((0,R9.sortValueNode)(n))}function Fs(e,t){let n=[],r=[],i=[],a=(0,xC.keyMap)(e,({name:c})=>c),o=(0,xC.keyMap)(t,({name:c})=>c);for(let c of e){let l=o[c.name];l===void 0?r.push(c):i.push([c,l])}for(let c of t)a[c.name]===void 0&&n.push(c);return{added:n,persisted:i,removed:r}}});var zC=F(Mt=>{"use strict";m();T();N();Object.defineProperty(Mt,"__esModule",{value:!0});Object.defineProperty(Mt,"BreakingChangeType",{enumerable:!0,get:function(){return eT.BreakingChangeType}});Object.defineProperty(Mt,"DangerousChangeType",{enumerable:!0,get:function(){return eT.DangerousChangeType}});Object.defineProperty(Mt,"TypeInfo",{enumerable:!0,get:function(){return JC.TypeInfo}});Object.defineProperty(Mt,"assertValidName",{enumerable:!0,get:function(){return HC.assertValidName}});Object.defineProperty(Mt,"astFromValue",{enumerable:!0,get:function(){return J9.astFromValue}});Object.defineProperty(Mt,"buildASTSchema",{enumerable:!0,get:function(){return YC.buildASTSchema}});Object.defineProperty(Mt,"buildClientSchema",{enumerable:!0,get:function(){return j9.buildClientSchema}});Object.defineProperty(Mt,"buildSchema",{enumerable:!0,get:function(){return YC.buildSchema}});Object.defineProperty(Mt,"coerceInputValue",{enumerable:!0,get:function(){return H9.coerceInputValue}});Object.defineProperty(Mt,"concatAST",{enumerable:!0,get:function(){return z9.concatAST}});Object.defineProperty(Mt,"doTypesOverlap",{enumerable:!0,get:function(){return zv.doTypesOverlap}});Object.defineProperty(Mt,"extendSchema",{enumerable:!0,get:function(){return K9.extendSchema}});Object.defineProperty(Mt,"findBreakingChanges",{enumerable:!0,get:function(){return eT.findBreakingChanges}});Object.defineProperty(Mt,"findDangerousChanges",{enumerable:!0,get:function(){return eT.findDangerousChanges}});Object.defineProperty(Mt,"getIntrospectionQuery",{enumerable:!0,get:function(){return M9.getIntrospectionQuery}});Object.defineProperty(Mt,"getOperationAST",{enumerable:!0,get:function(){return x9.getOperationAST}});Object.defineProperty(Mt,"getOperationRootType",{enumerable:!0,get:function(){return q9.getOperationRootType}});Object.defineProperty(Mt,"introspectionFromSchema",{enumerable:!0,get:function(){return V9.introspectionFromSchema}});Object.defineProperty(Mt,"isEqualType",{enumerable:!0,get:function(){return zv.isEqualType}});Object.defineProperty(Mt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return zv.isTypeSubTypeOf}});Object.defineProperty(Mt,"isValidNameError",{enumerable:!0,get:function(){return HC.isValidNameError}});Object.defineProperty(Mt,"lexicographicSortSchema",{enumerable:!0,get:function(){return G9.lexicographicSortSchema}});Object.defineProperty(Mt,"printIntrospectionSchema",{enumerable:!0,get:function(){return Hv.printIntrospectionSchema}});Object.defineProperty(Mt,"printSchema",{enumerable:!0,get:function(){return Hv.printSchema}});Object.defineProperty(Mt,"printType",{enumerable:!0,get:function(){return Hv.printType}});Object.defineProperty(Mt,"separateOperations",{enumerable:!0,get:function(){return W9.separateOperations}});Object.defineProperty(Mt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return X9.stripIgnoredCharacters}});Object.defineProperty(Mt,"typeFromAST",{enumerable:!0,get:function(){return $9.typeFromAST}});Object.defineProperty(Mt,"valueFromAST",{enumerable:!0,get:function(){return Q9.valueFromAST}});Object.defineProperty(Mt,"valueFromASTUntyped",{enumerable:!0,get:function(){return Y9.valueFromASTUntyped}});Object.defineProperty(Mt,"visitWithTypeInfo",{enumerable:!0,get:function(){return JC.visitWithTypeInfo}});var M9=Fv(),x9=aC(),q9=sC(),V9=oC(),j9=cC(),YC=yC(),K9=kv(),G9=_C(),Hv=RC(),$9=qa(),Q9=_p(),Y9=YI(),J9=pp(),JC=gN(),H9=E_(),z9=PC(),W9=LC(),X9=UC(),zv=ap(),HC=MC(),eT=QC()});var Oe=F(q=>{"use strict";m();T();N();Object.defineProperty(q,"__esModule",{value:!0});Object.defineProperty(q,"BREAK",{enumerable:!0,get:function(){return Yt.BREAK}});Object.defineProperty(q,"BreakingChangeType",{enumerable:!0,get:function(){return Jt.BreakingChangeType}});Object.defineProperty(q,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ye.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(q,"DangerousChangeType",{enumerable:!0,get:function(){return Jt.DangerousChangeType}});Object.defineProperty(q,"DirectiveLocation",{enumerable:!0,get:function(){return Yt.DirectiveLocation}});Object.defineProperty(q,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return ht.ExecutableDefinitionsRule}});Object.defineProperty(q,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return ht.FieldsOnCorrectTypeRule}});Object.defineProperty(q,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return ht.FragmentsOnCompositeTypesRule}});Object.defineProperty(q,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ye.GRAPHQL_MAX_INT}});Object.defineProperty(q,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ye.GRAPHQL_MIN_INT}});Object.defineProperty(q,"GraphQLBoolean",{enumerable:!0,get:function(){return ye.GraphQLBoolean}});Object.defineProperty(q,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ye.GraphQLDeprecatedDirective}});Object.defineProperty(q,"GraphQLDirective",{enumerable:!0,get:function(){return ye.GraphQLDirective}});Object.defineProperty(q,"GraphQLEnumType",{enumerable:!0,get:function(){return ye.GraphQLEnumType}});Object.defineProperty(q,"GraphQLError",{enumerable:!0,get:function(){return Up.GraphQLError}});Object.defineProperty(q,"GraphQLFloat",{enumerable:!0,get:function(){return ye.GraphQLFloat}});Object.defineProperty(q,"GraphQLID",{enumerable:!0,get:function(){return ye.GraphQLID}});Object.defineProperty(q,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ye.GraphQLIncludeDirective}});Object.defineProperty(q,"GraphQLInputObjectType",{enumerable:!0,get:function(){return ye.GraphQLInputObjectType}});Object.defineProperty(q,"GraphQLInt",{enumerable:!0,get:function(){return ye.GraphQLInt}});Object.defineProperty(q,"GraphQLInterfaceType",{enumerable:!0,get:function(){return ye.GraphQLInterfaceType}});Object.defineProperty(q,"GraphQLList",{enumerable:!0,get:function(){return ye.GraphQLList}});Object.defineProperty(q,"GraphQLNonNull",{enumerable:!0,get:function(){return ye.GraphQLNonNull}});Object.defineProperty(q,"GraphQLObjectType",{enumerable:!0,get:function(){return ye.GraphQLObjectType}});Object.defineProperty(q,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ye.GraphQLOneOfDirective}});Object.defineProperty(q,"GraphQLScalarType",{enumerable:!0,get:function(){return ye.GraphQLScalarType}});Object.defineProperty(q,"GraphQLSchema",{enumerable:!0,get:function(){return ye.GraphQLSchema}});Object.defineProperty(q,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ye.GraphQLSkipDirective}});Object.defineProperty(q,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ye.GraphQLSpecifiedByDirective}});Object.defineProperty(q,"GraphQLString",{enumerable:!0,get:function(){return ye.GraphQLString}});Object.defineProperty(q,"GraphQLUnionType",{enumerable:!0,get:function(){return ye.GraphQLUnionType}});Object.defineProperty(q,"Kind",{enumerable:!0,get:function(){return Yt.Kind}});Object.defineProperty(q,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return ht.KnownArgumentNamesRule}});Object.defineProperty(q,"KnownDirectivesRule",{enumerable:!0,get:function(){return ht.KnownDirectivesRule}});Object.defineProperty(q,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return ht.KnownFragmentNamesRule}});Object.defineProperty(q,"KnownTypeNamesRule",{enumerable:!0,get:function(){return ht.KnownTypeNamesRule}});Object.defineProperty(q,"Lexer",{enumerable:!0,get:function(){return Yt.Lexer}});Object.defineProperty(q,"Location",{enumerable:!0,get:function(){return Yt.Location}});Object.defineProperty(q,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return ht.LoneAnonymousOperationRule}});Object.defineProperty(q,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return ht.LoneSchemaDefinitionRule}});Object.defineProperty(q,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return ht.MaxIntrospectionDepthRule}});Object.defineProperty(q,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return ht.NoDeprecatedCustomRule}});Object.defineProperty(q,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return ht.NoFragmentCyclesRule}});Object.defineProperty(q,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return ht.NoSchemaIntrospectionCustomRule}});Object.defineProperty(q,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return ht.NoUndefinedVariablesRule}});Object.defineProperty(q,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return ht.NoUnusedFragmentsRule}});Object.defineProperty(q,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return ht.NoUnusedVariablesRule}});Object.defineProperty(q,"OperationTypeNode",{enumerable:!0,get:function(){return Yt.OperationTypeNode}});Object.defineProperty(q,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return ht.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(q,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return ht.PossibleFragmentSpreadsRule}});Object.defineProperty(q,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return ht.PossibleTypeExtensionsRule}});Object.defineProperty(q,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return ht.ProvidedRequiredArgumentsRule}});Object.defineProperty(q,"ScalarLeafsRule",{enumerable:!0,get:function(){return ht.ScalarLeafsRule}});Object.defineProperty(q,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ye.SchemaMetaFieldDef}});Object.defineProperty(q,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return ht.SingleFieldSubscriptionsRule}});Object.defineProperty(q,"Source",{enumerable:!0,get:function(){return Yt.Source}});Object.defineProperty(q,"Token",{enumerable:!0,get:function(){return Yt.Token}});Object.defineProperty(q,"TokenKind",{enumerable:!0,get:function(){return Yt.TokenKind}});Object.defineProperty(q,"TypeInfo",{enumerable:!0,get:function(){return Jt.TypeInfo}});Object.defineProperty(q,"TypeKind",{enumerable:!0,get:function(){return ye.TypeKind}});Object.defineProperty(q,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ye.TypeMetaFieldDef}});Object.defineProperty(q,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ye.TypeNameMetaFieldDef}});Object.defineProperty(q,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return ht.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(q,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return ht.UniqueArgumentNamesRule}});Object.defineProperty(q,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return ht.UniqueDirectiveNamesRule}});Object.defineProperty(q,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return ht.UniqueDirectivesPerLocationRule}});Object.defineProperty(q,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return ht.UniqueEnumValueNamesRule}});Object.defineProperty(q,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return ht.UniqueFieldDefinitionNamesRule}});Object.defineProperty(q,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return ht.UniqueFragmentNamesRule}});Object.defineProperty(q,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return ht.UniqueInputFieldNamesRule}});Object.defineProperty(q,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ht.UniqueOperationNamesRule}});Object.defineProperty(q,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return ht.UniqueOperationTypesRule}});Object.defineProperty(q,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return ht.UniqueTypeNamesRule}});Object.defineProperty(q,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return ht.UniqueVariableNamesRule}});Object.defineProperty(q,"ValidationContext",{enumerable:!0,get:function(){return ht.ValidationContext}});Object.defineProperty(q,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return ht.ValuesOfCorrectTypeRule}});Object.defineProperty(q,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return ht.VariablesAreInputTypesRule}});Object.defineProperty(q,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return ht.VariablesInAllowedPositionRule}});Object.defineProperty(q,"__Directive",{enumerable:!0,get:function(){return ye.__Directive}});Object.defineProperty(q,"__DirectiveLocation",{enumerable:!0,get:function(){return ye.__DirectiveLocation}});Object.defineProperty(q,"__EnumValue",{enumerable:!0,get:function(){return ye.__EnumValue}});Object.defineProperty(q,"__Field",{enumerable:!0,get:function(){return ye.__Field}});Object.defineProperty(q,"__InputValue",{enumerable:!0,get:function(){return ye.__InputValue}});Object.defineProperty(q,"__Schema",{enumerable:!0,get:function(){return ye.__Schema}});Object.defineProperty(q,"__Type",{enumerable:!0,get:function(){return ye.__Type}});Object.defineProperty(q,"__TypeKind",{enumerable:!0,get:function(){return ye.__TypeKind}});Object.defineProperty(q,"assertAbstractType",{enumerable:!0,get:function(){return ye.assertAbstractType}});Object.defineProperty(q,"assertCompositeType",{enumerable:!0,get:function(){return ye.assertCompositeType}});Object.defineProperty(q,"assertDirective",{enumerable:!0,get:function(){return ye.assertDirective}});Object.defineProperty(q,"assertEnumType",{enumerable:!0,get:function(){return ye.assertEnumType}});Object.defineProperty(q,"assertEnumValueName",{enumerable:!0,get:function(){return ye.assertEnumValueName}});Object.defineProperty(q,"assertInputObjectType",{enumerable:!0,get:function(){return ye.assertInputObjectType}});Object.defineProperty(q,"assertInputType",{enumerable:!0,get:function(){return ye.assertInputType}});Object.defineProperty(q,"assertInterfaceType",{enumerable:!0,get:function(){return ye.assertInterfaceType}});Object.defineProperty(q,"assertLeafType",{enumerable:!0,get:function(){return ye.assertLeafType}});Object.defineProperty(q,"assertListType",{enumerable:!0,get:function(){return ye.assertListType}});Object.defineProperty(q,"assertName",{enumerable:!0,get:function(){return ye.assertName}});Object.defineProperty(q,"assertNamedType",{enumerable:!0,get:function(){return ye.assertNamedType}});Object.defineProperty(q,"assertNonNullType",{enumerable:!0,get:function(){return ye.assertNonNullType}});Object.defineProperty(q,"assertNullableType",{enumerable:!0,get:function(){return ye.assertNullableType}});Object.defineProperty(q,"assertObjectType",{enumerable:!0,get:function(){return ye.assertObjectType}});Object.defineProperty(q,"assertOutputType",{enumerable:!0,get:function(){return ye.assertOutputType}});Object.defineProperty(q,"assertScalarType",{enumerable:!0,get:function(){return ye.assertScalarType}});Object.defineProperty(q,"assertSchema",{enumerable:!0,get:function(){return ye.assertSchema}});Object.defineProperty(q,"assertType",{enumerable:!0,get:function(){return ye.assertType}});Object.defineProperty(q,"assertUnionType",{enumerable:!0,get:function(){return ye.assertUnionType}});Object.defineProperty(q,"assertValidName",{enumerable:!0,get:function(){return Jt.assertValidName}});Object.defineProperty(q,"assertValidSchema",{enumerable:!0,get:function(){return ye.assertValidSchema}});Object.defineProperty(q,"assertWrappingType",{enumerable:!0,get:function(){return ye.assertWrappingType}});Object.defineProperty(q,"astFromValue",{enumerable:!0,get:function(){return Jt.astFromValue}});Object.defineProperty(q,"buildASTSchema",{enumerable:!0,get:function(){return Jt.buildASTSchema}});Object.defineProperty(q,"buildClientSchema",{enumerable:!0,get:function(){return Jt.buildClientSchema}});Object.defineProperty(q,"buildSchema",{enumerable:!0,get:function(){return Jt.buildSchema}});Object.defineProperty(q,"coerceInputValue",{enumerable:!0,get:function(){return Jt.coerceInputValue}});Object.defineProperty(q,"concatAST",{enumerable:!0,get:function(){return Jt.concatAST}});Object.defineProperty(q,"createSourceEventStream",{enumerable:!0,get:function(){return Qa.createSourceEventStream}});Object.defineProperty(q,"defaultFieldResolver",{enumerable:!0,get:function(){return Qa.defaultFieldResolver}});Object.defineProperty(q,"defaultTypeResolver",{enumerable:!0,get:function(){return Qa.defaultTypeResolver}});Object.defineProperty(q,"doTypesOverlap",{enumerable:!0,get:function(){return Jt.doTypesOverlap}});Object.defineProperty(q,"execute",{enumerable:!0,get:function(){return Qa.execute}});Object.defineProperty(q,"executeSync",{enumerable:!0,get:function(){return Qa.executeSync}});Object.defineProperty(q,"extendSchema",{enumerable:!0,get:function(){return Jt.extendSchema}});Object.defineProperty(q,"findBreakingChanges",{enumerable:!0,get:function(){return Jt.findBreakingChanges}});Object.defineProperty(q,"findDangerousChanges",{enumerable:!0,get:function(){return Jt.findDangerousChanges}});Object.defineProperty(q,"formatError",{enumerable:!0,get:function(){return Up.formatError}});Object.defineProperty(q,"getArgumentValues",{enumerable:!0,get:function(){return Qa.getArgumentValues}});Object.defineProperty(q,"getDirectiveValues",{enumerable:!0,get:function(){return Qa.getDirectiveValues}});Object.defineProperty(q,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Yt.getEnterLeaveForKind}});Object.defineProperty(q,"getIntrospectionQuery",{enumerable:!0,get:function(){return Jt.getIntrospectionQuery}});Object.defineProperty(q,"getLocation",{enumerable:!0,get:function(){return Yt.getLocation}});Object.defineProperty(q,"getNamedType",{enumerable:!0,get:function(){return ye.getNamedType}});Object.defineProperty(q,"getNullableType",{enumerable:!0,get:function(){return ye.getNullableType}});Object.defineProperty(q,"getOperationAST",{enumerable:!0,get:function(){return Jt.getOperationAST}});Object.defineProperty(q,"getOperationRootType",{enumerable:!0,get:function(){return Jt.getOperationRootType}});Object.defineProperty(q,"getVariableValues",{enumerable:!0,get:function(){return Qa.getVariableValues}});Object.defineProperty(q,"getVisitFn",{enumerable:!0,get:function(){return Yt.getVisitFn}});Object.defineProperty(q,"graphql",{enumerable:!0,get:function(){return XC.graphql}});Object.defineProperty(q,"graphqlSync",{enumerable:!0,get:function(){return XC.graphqlSync}});Object.defineProperty(q,"introspectionFromSchema",{enumerable:!0,get:function(){return Jt.introspectionFromSchema}});Object.defineProperty(q,"introspectionTypes",{enumerable:!0,get:function(){return ye.introspectionTypes}});Object.defineProperty(q,"isAbstractType",{enumerable:!0,get:function(){return ye.isAbstractType}});Object.defineProperty(q,"isCompositeType",{enumerable:!0,get:function(){return ye.isCompositeType}});Object.defineProperty(q,"isConstValueNode",{enumerable:!0,get:function(){return Yt.isConstValueNode}});Object.defineProperty(q,"isDefinitionNode",{enumerable:!0,get:function(){return Yt.isDefinitionNode}});Object.defineProperty(q,"isDirective",{enumerable:!0,get:function(){return ye.isDirective}});Object.defineProperty(q,"isEnumType",{enumerable:!0,get:function(){return ye.isEnumType}});Object.defineProperty(q,"isEqualType",{enumerable:!0,get:function(){return Jt.isEqualType}});Object.defineProperty(q,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Yt.isExecutableDefinitionNode}});Object.defineProperty(q,"isInputObjectType",{enumerable:!0,get:function(){return ye.isInputObjectType}});Object.defineProperty(q,"isInputType",{enumerable:!0,get:function(){return ye.isInputType}});Object.defineProperty(q,"isInterfaceType",{enumerable:!0,get:function(){return ye.isInterfaceType}});Object.defineProperty(q,"isIntrospectionType",{enumerable:!0,get:function(){return ye.isIntrospectionType}});Object.defineProperty(q,"isLeafType",{enumerable:!0,get:function(){return ye.isLeafType}});Object.defineProperty(q,"isListType",{enumerable:!0,get:function(){return ye.isListType}});Object.defineProperty(q,"isNamedType",{enumerable:!0,get:function(){return ye.isNamedType}});Object.defineProperty(q,"isNonNullType",{enumerable:!0,get:function(){return ye.isNonNullType}});Object.defineProperty(q,"isNullableType",{enumerable:!0,get:function(){return ye.isNullableType}});Object.defineProperty(q,"isObjectType",{enumerable:!0,get:function(){return ye.isObjectType}});Object.defineProperty(q,"isOutputType",{enumerable:!0,get:function(){return ye.isOutputType}});Object.defineProperty(q,"isRequiredArgument",{enumerable:!0,get:function(){return ye.isRequiredArgument}});Object.defineProperty(q,"isRequiredInputField",{enumerable:!0,get:function(){return ye.isRequiredInputField}});Object.defineProperty(q,"isScalarType",{enumerable:!0,get:function(){return ye.isScalarType}});Object.defineProperty(q,"isSchema",{enumerable:!0,get:function(){return ye.isSchema}});Object.defineProperty(q,"isSelectionNode",{enumerable:!0,get:function(){return Yt.isSelectionNode}});Object.defineProperty(q,"isSpecifiedDirective",{enumerable:!0,get:function(){return ye.isSpecifiedDirective}});Object.defineProperty(q,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ye.isSpecifiedScalarType}});Object.defineProperty(q,"isType",{enumerable:!0,get:function(){return ye.isType}});Object.defineProperty(q,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Yt.isTypeDefinitionNode}});Object.defineProperty(q,"isTypeExtensionNode",{enumerable:!0,get:function(){return Yt.isTypeExtensionNode}});Object.defineProperty(q,"isTypeNode",{enumerable:!0,get:function(){return Yt.isTypeNode}});Object.defineProperty(q,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Jt.isTypeSubTypeOf}});Object.defineProperty(q,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Yt.isTypeSystemDefinitionNode}});Object.defineProperty(q,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Yt.isTypeSystemExtensionNode}});Object.defineProperty(q,"isUnionType",{enumerable:!0,get:function(){return ye.isUnionType}});Object.defineProperty(q,"isValidNameError",{enumerable:!0,get:function(){return Jt.isValidNameError}});Object.defineProperty(q,"isValueNode",{enumerable:!0,get:function(){return Yt.isValueNode}});Object.defineProperty(q,"isWrappingType",{enumerable:!0,get:function(){return ye.isWrappingType}});Object.defineProperty(q,"lexicographicSortSchema",{enumerable:!0,get:function(){return Jt.lexicographicSortSchema}});Object.defineProperty(q,"locatedError",{enumerable:!0,get:function(){return Up.locatedError}});Object.defineProperty(q,"parse",{enumerable:!0,get:function(){return Yt.parse}});Object.defineProperty(q,"parseConstValue",{enumerable:!0,get:function(){return Yt.parseConstValue}});Object.defineProperty(q,"parseType",{enumerable:!0,get:function(){return Yt.parseType}});Object.defineProperty(q,"parseValue",{enumerable:!0,get:function(){return Yt.parseValue}});Object.defineProperty(q,"print",{enumerable:!0,get:function(){return Yt.print}});Object.defineProperty(q,"printError",{enumerable:!0,get:function(){return Up.printError}});Object.defineProperty(q,"printIntrospectionSchema",{enumerable:!0,get:function(){return Jt.printIntrospectionSchema}});Object.defineProperty(q,"printLocation",{enumerable:!0,get:function(){return Yt.printLocation}});Object.defineProperty(q,"printSchema",{enumerable:!0,get:function(){return Jt.printSchema}});Object.defineProperty(q,"printSourceLocation",{enumerable:!0,get:function(){return Yt.printSourceLocation}});Object.defineProperty(q,"printType",{enumerable:!0,get:function(){return Jt.printType}});Object.defineProperty(q,"recommendedRules",{enumerable:!0,get:function(){return ht.recommendedRules}});Object.defineProperty(q,"resolveObjMapThunk",{enumerable:!0,get:function(){return ye.resolveObjMapThunk}});Object.defineProperty(q,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return ye.resolveReadonlyArrayThunk}});Object.defineProperty(q,"responsePathAsArray",{enumerable:!0,get:function(){return Qa.responsePathAsArray}});Object.defineProperty(q,"separateOperations",{enumerable:!0,get:function(){return Jt.separateOperations}});Object.defineProperty(q,"specifiedDirectives",{enumerable:!0,get:function(){return ye.specifiedDirectives}});Object.defineProperty(q,"specifiedRules",{enumerable:!0,get:function(){return ht.specifiedRules}});Object.defineProperty(q,"specifiedScalarTypes",{enumerable:!0,get:function(){return ye.specifiedScalarTypes}});Object.defineProperty(q,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Jt.stripIgnoredCharacters}});Object.defineProperty(q,"subscribe",{enumerable:!0,get:function(){return Qa.subscribe}});Object.defineProperty(q,"syntaxError",{enumerable:!0,get:function(){return Up.syntaxError}});Object.defineProperty(q,"typeFromAST",{enumerable:!0,get:function(){return Jt.typeFromAST}});Object.defineProperty(q,"validate",{enumerable:!0,get:function(){return ht.validate}});Object.defineProperty(q,"validateSchema",{enumerable:!0,get:function(){return ye.validateSchema}});Object.defineProperty(q,"valueFromAST",{enumerable:!0,get:function(){return Jt.valueFromAST}});Object.defineProperty(q,"valueFromASTUntyped",{enumerable:!0,get:function(){return Jt.valueFromASTUntyped}});Object.defineProperty(q,"version",{enumerable:!0,get:function(){return WC.version}});Object.defineProperty(q,"versionInfo",{enumerable:!0,get:function(){return WC.versionInfo}});Object.defineProperty(q,"visit",{enumerable:!0,get:function(){return Yt.visit}});Object.defineProperty(q,"visitInParallel",{enumerable:!0,get:function(){return Yt.visitInParallel}});Object.defineProperty(q,"visitWithTypeInfo",{enumerable:!0,get:function(){return Jt.visitWithTypeInfo}});var WC=QP(),XC=qL(),ye=KL(),Yt=$L(),Qa=ZL(),ht=rC(),Up=iC(),Jt=zC()});var sr=F(A=>{"use strict";m();T();N();Object.defineProperty(A,"__esModule",{value:!0});A.FIELD_UPPER=A.FIELD_PATH=A.FIELD=A.EXTENSIONS=A.EXTENDS=A.EXTERNAL=A.EXECUTION=A.ENUM_VALUE_UPPER=A.ENUM_VALUE=A.ENUM_UPPER=A.ENUM=A.ENTITY_UNION=A.ENTITIES_FIELD=A.ENTITIES=A.EDFS_REDIS_SUBSCRIBE=A.EDFS_REDIS_PUBLISH=A.EDFS_NATS_STREAM_CONFIGURATION=A.EDFS_PUBLISH_RESULT=A.EDFS_NATS_SUBSCRIBE=A.EDFS_NATS_REQUEST=A.EDFS_NATS_PUBLISH=A.EDFS_KAFKA_SUBSCRIBE=A.EDFS_KAFKA_PUBLISH=A.DIRECTIVE_DEFINITION=A.DESCRIPTION_OVERRIDE=A.DEPRECATED_DEFAULT_ARGUMENT_VALUE=A.DEPRECATED=A.DEFAULT_SUBSCRIPTION=A.DEFAULT_QUERY=A.DEFAULT_MUTATION=A.DEFAULT_EDFS_PROVIDER_ID=A.DEFAULT=A.CONTEXT=A.CONNECT_FIELD_RESOLVER=A.CONSUMER_NAME=A.CONSUMER_INACTIVE_THRESHOLD=A.CONFIGURE_CHILD_DESCRIPTIONS=A.CONFIGURE_DESCRIPTION=A.CONDITION=A.COMPOSE_DIRECTIVE=A.CHANNELS=A.CHANNEL=A.BOOLEAN_SCALAR=A.BOOLEAN=A.ARGUMENT_DEFINITION_UPPER=A.AUTHENTICATED=A.ARGUMENT=A.ANY_SCALAR=A.AND_UPPER=A.AS=void 0;A.NULL=A.NOT_UPPER=A.NON_NULLABLE_STRING=A.NON_NULLABLE_INT=A.NON_NULLABLE_BOOLEAN=A.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=A.NAME=A.NOT_APPLICABLE=A.PROVIDER_TYPE_REDIS=A.PROVIDER_TYPE_NATS=A.PROVIDER_TYPE_KAFKA=A.PROPAGATE=A.MUTATION_UPPER=A.MUTATION=A.NUMBER=A.LITERAL_NEW_LINE=A.LITERAL_SPACE=A.LIST=A.LINK_PURPOSE=A.LINK_IMPORT=A.LINK=A.LEVELS=A.LEFT_PARENTHESIS=A.KEY=A.INTERFACE_OBJECT=A.INTERFACE_UPPER=A.INTERFACE=A.INT_SCALAR=A.INPUT_VALUE=A.INPUT_OBJECT_UPPER=A.INPUT_OBJECT=A.INPUT_FIELD_DEFINITION_UPPER=A.INPUT_FIELD=A.INPUT=A.INLINE_FRAGMENT_UPPER=A.INLINE_FRAGMENT=A.INACCESSIBLE=A.IN_UPPER=A.IMPORT=A.ID_SCALAR=A.HYPHEN_JOIN=A.FROM=A.FRAGMENT_SPREAD_UPPER=A.FRAGMENT_DEFINITION_UPPER=A.FOR=A.FLOAT_SCALAR=A.FIRST_ORDINAL=A.FIELD_DEFINITION_UPPER=A.FIELDS=A.FIELD_SET_SCALAR=void 0;A.TAG=A.SUCCESS=A.SUBSCRIPTION_UPPER=A.SUBSCRIBE=A.SUBSCRIPTION_FILTER_VALUE=A.SUBSCRIPTION_FILTER_CONDITION=A.SUBSCRIPTION_FILTER=A.SUBSCRIPTION_FIELD_CONDITION=A.SUBSCRIPTION=A.SUBJECTS=A.SUBJECT=A.STRING_SCALAR=A.STRING=A.STREAM_NAME=A.STREAM_CONFIGURATION=A.SPECIFIED_BY=A.SHAREABLE=A.SERVICE_FIELD=A.SERVICE_OBJECT=A.SEMANTIC_NON_NULL=A.SELECTION_REPRESENTATION=A.SECURITY=A.SCOPE_SCALAR=A.SCOPES=A.SCHEMA_UPPER=A.SCHEMA=A.SCALAR_UPPER=A.SCALAR=A.RESOLVABLE=A.REQUIRES_SCOPES=A.REQUIRES=A.REQUIRE_FETCH_REASONS=A.REQUEST=A.REASON=A.QUOTATION_JOIN=A.QUERY_UPPER=A.QUERY=A.PUBLISH=A.PROVIDES=A.PROVIDER_ID=A.PERIOD=A.PARENT_EXTENSION_DATA_MAP=A.PARENT_DEFINITION_DATA_MAP=A.PARENT_DEFINITION_DATA=A.OVERRIDE=A.OR_UPPER=A.OBJECT_UPPER=A.OBJECT=A.OPERATION_TO_DEFAULT=A.ONE_OF=void 0;A.NON_REPEATABLE_PERSISTED_DIRECTIVES=A.OUTPUT_NODE_KINDS=A.INPUT_NODE_KINDS=A.IGNORED_FIELDS=A.INHERITABLE_DIRECTIVE_NAMES=A.PERSISTED_CLIENT_DIRECTIVES=A.AUTHORIZATION_DIRECTIVES=A.ROOT_TYPE_NAMES=A.EXECUTABLE_DIRECTIVE_LOCATIONS=A.VARIABLE_DEFINITION_UPPER=A.VALUES=A.URL_LOWER=A.UNION_UPPER=A.UNION=A.TOPICS=A.TOPIC=void 0;var yu=Oe();A.AS="as";A.AND_UPPER="AND";A.ANY_SCALAR="_Any";A.ARGUMENT="argument";A.AUTHENTICATED="authenticated";A.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";A.BOOLEAN="boolean";A.BOOLEAN_SCALAR="Boolean";A.CHANNEL="channel";A.CHANNELS="channels";A.COMPOSE_DIRECTIVE="composeDirective";A.CONDITION="condition";A.CONFIGURE_DESCRIPTION="openfed__configureDescription";A.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";A.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";A.CONSUMER_NAME="consumerName";A.CONNECT_FIELD_RESOLVER="connect__fieldResolver";A.CONTEXT="context";A.DEFAULT="default";A.DEFAULT_EDFS_PROVIDER_ID="default";A.DEFAULT_MUTATION="Mutation";A.DEFAULT_QUERY="Query";A.DEFAULT_SUBSCRIPTION="Subscription";A.DEPRECATED="deprecated";A.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";A.DESCRIPTION_OVERRIDE="descriptionOverride";A.DIRECTIVE_DEFINITION="directive definition";A.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";A.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";A.EDFS_NATS_PUBLISH="edfs__natsPublish";A.EDFS_NATS_REQUEST="edfs__natsRequest";A.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";A.EDFS_PUBLISH_RESULT="edfs__PublishResult";A.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";A.EDFS_REDIS_PUBLISH="edfs__redisPublish";A.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";A.ENTITIES="entities";A.ENTITIES_FIELD="_entities";A.ENTITY_UNION="_Entity";A.ENUM="Enum";A.ENUM_UPPER="ENUM";A.ENUM_VALUE="Enum Value";A.ENUM_VALUE_UPPER="ENUM_VALUE";A.EXECUTION="EXECUTION";A.EXTERNAL="external";A.EXTENDS="extends";A.EXTENSIONS="extensions";A.FIELD="field";A.FIELD_PATH="fieldPath";A.FIELD_UPPER="FIELD";A.FIELD_SET_SCALAR="openfed__FieldSet";A.FIELDS="fields";A.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";A.FIRST_ORDINAL="1st";A.FLOAT_SCALAR="Float";A.FOR="for";A.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";A.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";A.FROM="from";A.HYPHEN_JOIN=` - -`;A.ID_SCALAR="ID";A.IMPORT="import";A.IN_UPPER="IN";A.INACCESSIBLE="inaccessible";A.INLINE_FRAGMENT="inlineFragment";A.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";A.INPUT="Input";A.INPUT_FIELD="Input field";A.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";A.INPUT_OBJECT="Input Object";A.INPUT_OBJECT_UPPER="INPUT_OBJECT";A.INPUT_VALUE="Input Value";A.INT_SCALAR="Int";A.INTERFACE="Interface";A.INTERFACE_UPPER="INTERFACE";A.INTERFACE_OBJECT="interfaceObject";A.KEY="key";A.LEFT_PARENTHESIS="(";A.LEVELS="levels";A.LINK="link";A.LINK_IMPORT="link__Import";A.LINK_PURPOSE="link__Purpose";A.LIST="list";A.LITERAL_SPACE=" ";A.LITERAL_NEW_LINE=` -`;A.NUMBER="number";A.MUTATION="Mutation";A.MUTATION_UPPER="MUTATION";A.PROPAGATE="propagate";A.PROVIDER_TYPE_KAFKA="kafka";A.PROVIDER_TYPE_NATS="nats";A.PROVIDER_TYPE_REDIS="redis";A.NOT_APPLICABLE="N/A";A.NAME="name";A.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";A.NON_NULLABLE_BOOLEAN="Boolean!";A.NON_NULLABLE_INT="Int!";A.NON_NULLABLE_STRING="String!";A.NOT_UPPER="NOT";A.NULL="Null";A.ONE_OF="oneOf";A.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";A.OBJECT="Object";A.OBJECT_UPPER="OBJECT";A.OR_UPPER="OR";A.OVERRIDE="override";A.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";A.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";A.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";A.PERIOD=".";A.PROVIDER_ID="providerId";A.PROVIDES="provides";A.PUBLISH="publish";A.QUERY="Query";A.QUERY_UPPER="QUERY";A.QUOTATION_JOIN='", "';A.REASON="reason";A.REQUEST="request";A.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";A.REQUIRES="requires";A.REQUIRES_SCOPES="requiresScopes";A.RESOLVABLE="resolvable";A.SCALAR="Scalar";A.SCALAR_UPPER="SCALAR";A.SCHEMA="schema";A.SCHEMA_UPPER="SCHEMA";A.SCOPES="scopes";A.SCOPE_SCALAR="openfed__Scope";A.SECURITY="SECURITY";A.SELECTION_REPRESENTATION=" { ... }";A.SEMANTIC_NON_NULL="semanticNonNull";A.SERVICE_OBJECT="_Service";A.SERVICE_FIELD="_service";A.SHAREABLE="shareable";A.SPECIFIED_BY="specifiedBy";A.STREAM_CONFIGURATION="streamConfiguration";A.STREAM_NAME="streamName";A.STRING="string";A.STRING_SCALAR="String";A.SUBJECT="subject";A.SUBJECTS="subjects";A.SUBSCRIPTION="Subscription";A.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";A.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";A.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";A.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";A.SUBSCRIBE="subscribe";A.SUBSCRIPTION_UPPER="SUBSCRIPTION";A.SUCCESS="success";A.TAG="tag";A.TOPIC="topic";A.TOPICS="topics";A.UNION="Union";A.UNION_UPPER="UNION";A.URL_LOWER="url";A.VALUES="values";A.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";A.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([A.FIELD_UPPER,A.FRAGMENT_DEFINITION_UPPER,A.FRAGMENT_SPREAD_UPPER,A.INLINE_FRAGMENT_UPPER,A.MUTATION_UPPER,A.QUERY_UPPER,A.SUBSCRIPTION_UPPER]);A.ROOT_TYPE_NAMES=new Set([A.MUTATION,A.QUERY,A.SUBSCRIPTION]);A.AUTHORIZATION_DIRECTIVES=new Set([A.AUTHENTICATED,A.REQUIRES_SCOPES]);A.PERSISTED_CLIENT_DIRECTIVES=new Set([A.DEPRECATED,A.ONE_OF,A.SEMANTIC_NON_NULL]);A.INHERITABLE_DIRECTIVE_NAMES=new Set([A.EXTERNAL,A.REQUIRE_FETCH_REASONS,A.SHAREABLE]);A.IGNORED_FIELDS=new Set([A.ENTITIES_FIELD,A.SERVICE_FIELD]);A.INPUT_NODE_KINDS=new Set([yu.Kind.ENUM_TYPE_DEFINITION,yu.Kind.INPUT_OBJECT_TYPE_DEFINITION,yu.Kind.SCALAR_TYPE_DEFINITION]);A.OUTPUT_NODE_KINDS=new Set([yu.Kind.ENUM_TYPE_DEFINITION,yu.Kind.INTERFACE_TYPE_DEFINITION,yu.Kind.OBJECT_TYPE_DEFINITION,yu.Kind.SCALAR_TYPE_DEFINITION,yu.Kind.UNION_TYPE_DEFINITION]);A.NON_REPEATABLE_PERSISTED_DIRECTIVES=new Set([A.INACCESSIBLE,A.ONE_OF,A.SEMANTIC_NON_NULL])});var Pr=F(Wn=>{"use strict";m();T();N();Object.defineProperty(Wn,"__esModule",{value:!0});Wn.operationTypeNodeToDefaultType=void 0;Wn.isObjectLikeNodeEntity=Z9;Wn.isNodeInterfaceObject=e7;Wn.stringToNameNode=nT;Wn.stringArrayToNameNodeArray=t7;Wn.setToNameNodeArray=n7;Wn.stringToNamedTypeNode=ZC;Wn.setToNamedTypeNodeArray=r7;Wn.nodeKindToDirectiveLocation=i7;Wn.isKindAbstract=a7;Wn.extractExecutableDirectiveLocations=s7;Wn.formatDescription=o7;Wn.lexicographicallySortArgumentNodes=eB;Wn.lexicographicallySortSelectionSetNode=tT;Wn.lexicographicallySortDocumentNode=u7;Wn.parse=tB;Wn.safeParse=c7;var xt=Oe(),bn=sr();function Z9(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===bn.KEY)return!0;return!1}function e7(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===bn.INTERFACE_OBJECT)return!0;return!1}function nT(e){return{kind:xt.Kind.NAME,value:e}}function t7(e){let t=[];for(let n of e)t.push(nT(n));return t}function n7(e){let t=[];for(let n of e)t.push(nT(n));return t}function ZC(e){return{kind:xt.Kind.NAMED_TYPE,name:nT(e)}}function r7(e){let t=[];for(let n of e)t.push(ZC(n));return t}function i7(e){switch(e){case xt.Kind.ARGUMENT:return bn.ARGUMENT_DEFINITION_UPPER;case xt.Kind.ENUM_TYPE_DEFINITION:case xt.Kind.ENUM_TYPE_EXTENSION:return bn.ENUM_UPPER;case xt.Kind.ENUM_VALUE_DEFINITION:return bn.ENUM_VALUE_UPPER;case xt.Kind.FIELD_DEFINITION:return bn.FIELD_DEFINITION_UPPER;case xt.Kind.FRAGMENT_DEFINITION:return bn.FRAGMENT_DEFINITION_UPPER;case xt.Kind.FRAGMENT_SPREAD:return bn.FRAGMENT_SPREAD_UPPER;case xt.Kind.INLINE_FRAGMENT:return bn.INLINE_FRAGMENT_UPPER;case xt.Kind.INPUT_VALUE_DEFINITION:return bn.INPUT_FIELD_DEFINITION_UPPER;case xt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case xt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return bn.INPUT_OBJECT_UPPER;case xt.Kind.INTERFACE_TYPE_DEFINITION:case xt.Kind.INTERFACE_TYPE_EXTENSION:return bn.INTERFACE_UPPER;case xt.Kind.OBJECT_TYPE_DEFINITION:case xt.Kind.OBJECT_TYPE_EXTENSION:return bn.OBJECT_UPPER;case xt.Kind.SCALAR_TYPE_DEFINITION:case xt.Kind.SCALAR_TYPE_EXTENSION:return bn.SCALAR_UPPER;case xt.Kind.SCHEMA_DEFINITION:case xt.Kind.SCHEMA_EXTENSION:return bn.SCHEMA_UPPER;case xt.Kind.UNION_TYPE_DEFINITION:case xt.Kind.UNION_TYPE_EXTENSION:return bn.UNION_UPPER;default:return e}}Wn.operationTypeNodeToDefaultType=new Map([[xt.OperationTypeNode.MUTATION,bn.MUTATION],[xt.OperationTypeNode.QUERY,bn.QUERY],[xt.OperationTypeNode.SUBSCRIPTION,bn.SUBSCRIPTION]]);function a7(e){return e===xt.Kind.INTERFACE_TYPE_DEFINITION||e===xt.Kind.UNION_TYPE_DEFINITION}function s7(e,t){for(let n of e){let r=n.value;bn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function o7(e){if(!e)return e;let t=e.value;if(e.block){let n=t.split(` +`}});var jC=w(bv=>{"use strict";m();T();N();Object.defineProperty(bv,"__esModule",{value:!0});bv.concatAST=U9;var B9=wt();function U9(e){let t=[];for(let n of e)t.push(...n.definitions);return{kind:B9.Kind.DOCUMENT,definitions:t}}});var $C=w(Av=>{"use strict";m();T();N();Object.defineProperty(Av,"__esModule",{value:!0});Av.separateOperations=M9;var XN=wt(),k9=nc();function M9(e){let t=[],n=Object.create(null);for(let i of e.definitions)switch(i.kind){case XN.Kind.OPERATION_DEFINITION:t.push(i);break;case XN.Kind.FRAGMENT_DEFINITION:n[i.name.value]=KC(i.selectionSet);break;default:}let r=Object.create(null);for(let i of t){let a=new Set;for(let c of KC(i.selectionSet))GC(a,n,c);let o=i.name?i.name.value:"";r[o]={kind:XN.Kind.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===XN.Kind.FRAGMENT_DEFINITION&&a.has(c.name.value))}}return r}function GC(e,t,n){if(!e.has(n)){e.add(n);let r=t[n];if(r!==void 0)for(let i of r)GC(e,t,i)}}function KC(e){let t=[];return(0,k9.visit)(e,{FragmentSpread(n){t.push(n.name.value)}}),t}});var JC=w(Pv=>{"use strict";m();T();N();Object.defineProperty(Pv,"__esModule",{value:!0});Pv.stripIgnoredCharacters=q9;var x9=Vd(),QC=Km(),YC=Ym(),Rv=Kd();function q9(e){let t=(0,YC.isSource)(e)?e:new YC.Source(e),n=t.body,r=new QC.Lexer(t),i="",a=!1;for(;r.advance().kind!==Rv.TokenKind.EOF;){let o=r.token,c=o.kind,l=!(0,QC.isPunctuatorTokenKind)(o.kind);a&&(l||o.kind===Rv.TokenKind.SPREAD)&&(i+=" ");let d=n.slice(o.start,o.end);c===Rv.TokenKind.BLOCK_STRING?i+=(0,x9.printBlockString)(o.value,{minimize:!0}):i+=d,a=l}return i}});var zC=w(ZN=>{"use strict";m();T();N();Object.defineProperty(ZN,"__esModule",{value:!0});ZN.assertValidName=G9;ZN.isValidNameError=HC;var V9=xr(),j9=ze(),K9=Wd();function G9(e){let t=HC(e);if(t)throw t;return e}function HC(e){if(typeof e=="string"||(0,V9.devAssert)(!1,"Expected name to be a string."),e.startsWith("__"))return new j9.GraphQLError(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{(0,K9.assertName)(e)}catch(t){return t}}});var iB=w($a=>{"use strict";m();T();N();Object.defineProperty($a,"__esModule",{value:!0});$a.DangerousChangeType=$a.BreakingChangeType=void 0;$a.findBreakingChanges=z9;$a.findDangerousChanges=W9;var $9=Wt(),nB=Sr(),WC=cu(),Q9=pi(),qt=Lt(),Y9=xa(),J9=lf(),H9=Lg(),kn;$a.BreakingChangeType=kn;(function(e){e.TYPE_REMOVED="TYPE_REMOVED",e.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",e.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",e.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",e.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",e.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",e.FIELD_REMOVED="FIELD_REMOVED",e.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",e.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",e.ARG_REMOVED="ARG_REMOVED",e.ARG_CHANGED_KIND="ARG_CHANGED_KIND",e.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",e.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",e.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",e.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",e.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED"})(kn||($a.BreakingChangeType=kn={}));var ma;$a.DangerousChangeType=ma;(function(e){e.VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",e.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",e.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",e.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",e.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",e.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE"})(ma||($a.DangerousChangeType=ma={}));function z9(e,t){return rB(e,t).filter(n=>n.type in kn)}function W9(e,t){return rB(e,t).filter(n=>n.type in ma)}function rB(e,t){return[...Z9(e,t),...X9(e,t)]}function X9(e,t){let n=[],r=As(e.getDirectives(),t.getDirectives());for(let i of r.removed)n.push({type:kn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(let[i,a]of r.persisted){let o=As(i.args,a.args);for(let c of o.added)(0,qt.isRequiredArgument)(c)&&n.push({type:kn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${c.name} on directive ${i.name} was added.`});for(let c of o.removed)n.push({type:kn.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!a.isRepeatable&&n.push({type:kn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(let c of i.locations)a.locations.includes(c)||n.push({type:kn.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function Z9(e,t){let n=[],r=As(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let i of r.removed)n.push({type:kn.TYPE_REMOVED,description:(0,Y9.isSpecifiedScalarType)(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(let[i,a]of r.persisted)(0,qt.isEnumType)(i)&&(0,qt.isEnumType)(a)?n.push(...n7(i,a)):(0,qt.isUnionType)(i)&&(0,qt.isUnionType)(a)?n.push(...t7(i,a)):(0,qt.isInputObjectType)(i)&&(0,qt.isInputObjectType)(a)?n.push(...e7(i,a)):(0,qt.isObjectType)(i)&&(0,qt.isObjectType)(a)?n.push(...ZC(i,a),...XC(i,a)):(0,qt.isInterfaceType)(i)&&(0,qt.isInterfaceType)(a)?n.push(...ZC(i,a),...XC(i,a)):i.constructor!==a.constructor&&n.push({type:kn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${eB(i)} to ${eB(a)}.`});return n}function e7(e,t){let n=[],r=As(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.added)(0,qt.isRequiredInputField)(i)?n.push({type:kn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ma.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(let i of r.removed)n.push({type:kn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)Lf(i.type,a.type)||n.push({type:kn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function t7(e,t){let n=[],r=As(e.getTypes(),t.getTypes());for(let i of r.added)n.push({type:ma.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(let i of r.removed)n.push({type:kn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function n7(e,t){let n=[],r=As(e.getValues(),t.getValues());for(let i of r.added)n.push({type:ma.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(let i of r.removed)n.push({type:kn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function XC(e,t){let n=[],r=As(e.getInterfaces(),t.getInterfaces());for(let i of r.added)n.push({type:ma.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(let i of r.removed)n.push({type:kn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function ZC(e,t){let n=[],r=As(Object.values(e.getFields()),Object.values(t.getFields()));for(let i of r.removed)n.push({type:kn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(let[i,a]of r.persisted)n.push(...r7(e,i,a)),wf(i.type,a.type)||n.push({type:kn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(a.type)}.`});return n}function r7(e,t,n){let r=[],i=As(t.args,n.args);for(let a of i.removed)r.push({type:kn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${a.name} was removed.`});for(let[a,o]of i.persisted)if(!Lf(a.type,o.type))r.push({type:kn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${a.name} has changed type from ${String(a.type)} to ${String(o.type)}.`});else if(a.defaultValue!==void 0)if(o.defaultValue===void 0)r.push({type:ma.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} defaultValue was removed.`});else{let l=tB(a.defaultValue,a.type),d=tB(o.defaultValue,o.type);l!==d&&r.push({type:ma.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${a.name} has changed defaultValue from ${l} to ${d}.`})}for(let a of i.added)(0,qt.isRequiredArgument)(a)?r.push({type:kn.REQUIRED_ARG_ADDED,description:`A required arg ${a.name} on ${e.name}.${t.name} was added.`}):r.push({type:ma.OPTIONAL_ARG_ADDED,description:`An optional arg ${a.name} on ${e.name}.${t.name} was added.`});return r}function wf(e,t){return(0,qt.isListType)(e)?(0,qt.isListType)(t)&&wf(e.ofType,t.ofType)||(0,qt.isNonNullType)(t)&&wf(e,t.ofType):(0,qt.isNonNullType)(e)?(0,qt.isNonNullType)(t)&&wf(e.ofType,t.ofType):(0,qt.isNamedType)(t)&&e.name===t.name||(0,qt.isNonNullType)(t)&&wf(e,t.ofType)}function Lf(e,t){return(0,qt.isListType)(e)?(0,qt.isListType)(t)&&Lf(e.ofType,t.ofType):(0,qt.isNonNullType)(e)?(0,qt.isNonNullType)(t)&&Lf(e.ofType,t.ofType)||!(0,qt.isNonNullType)(t)&&Lf(e.ofType,t):(0,qt.isNamedType)(t)&&e.name===t.name}function eB(e){if((0,qt.isScalarType)(e))return"a Scalar type";if((0,qt.isObjectType)(e))return"an Object type";if((0,qt.isInterfaceType)(e))return"an Interface type";if((0,qt.isUnionType)(e))return"a Union type";if((0,qt.isEnumType)(e))return"an Enum type";if((0,qt.isInputObjectType)(e))return"an Input type";(0,nB.invariant)(!1,"Unexpected type: "+(0,$9.inspect)(e))}function tB(e,t){let n=(0,J9.astFromValue)(e,t);return n!=null||(0,nB.invariant)(!1),(0,Q9.print)((0,H9.sortValueNode)(n))}function As(e,t){let n=[],r=[],i=[],a=(0,WC.keyMap)(e,({name:c})=>c),o=(0,WC.keyMap)(t,({name:c})=>c);for(let c of e){let l=o[c.name];l===void 0?r.push(c):i.push([c,l])}for(let c of t)a[c.name]===void 0&&n.push(c);return{added:n,persisted:i,removed:r}}});var uB=w(kt=>{"use strict";m();T();N();Object.defineProperty(kt,"__esModule",{value:!0});Object.defineProperty(kt,"BreakingChangeType",{enumerable:!0,get:function(){return eT.BreakingChangeType}});Object.defineProperty(kt,"DangerousChangeType",{enumerable:!0,get:function(){return eT.DangerousChangeType}});Object.defineProperty(kt,"TypeInfo",{enumerable:!0,get:function(){return sB.TypeInfo}});Object.defineProperty(kt,"assertValidName",{enumerable:!0,get:function(){return oB.assertValidName}});Object.defineProperty(kt,"astFromValue",{enumerable:!0,get:function(){return m7.astFromValue}});Object.defineProperty(kt,"buildASTSchema",{enumerable:!0,get:function(){return aB.buildASTSchema}});Object.defineProperty(kt,"buildClientSchema",{enumerable:!0,get:function(){return u7.buildClientSchema}});Object.defineProperty(kt,"buildSchema",{enumerable:!0,get:function(){return aB.buildSchema}});Object.defineProperty(kt,"coerceInputValue",{enumerable:!0,get:function(){return N7.coerceInputValue}});Object.defineProperty(kt,"concatAST",{enumerable:!0,get:function(){return T7.concatAST}});Object.defineProperty(kt,"doTypesOverlap",{enumerable:!0,get:function(){return wv.doTypesOverlap}});Object.defineProperty(kt,"extendSchema",{enumerable:!0,get:function(){return c7.extendSchema}});Object.defineProperty(kt,"findBreakingChanges",{enumerable:!0,get:function(){return eT.findBreakingChanges}});Object.defineProperty(kt,"findDangerousChanges",{enumerable:!0,get:function(){return eT.findDangerousChanges}});Object.defineProperty(kt,"getIntrospectionQuery",{enumerable:!0,get:function(){return i7.getIntrospectionQuery}});Object.defineProperty(kt,"getOperationAST",{enumerable:!0,get:function(){return a7.getOperationAST}});Object.defineProperty(kt,"getOperationRootType",{enumerable:!0,get:function(){return s7.getOperationRootType}});Object.defineProperty(kt,"introspectionFromSchema",{enumerable:!0,get:function(){return o7.introspectionFromSchema}});Object.defineProperty(kt,"isEqualType",{enumerable:!0,get:function(){return wv.isEqualType}});Object.defineProperty(kt,"isTypeSubTypeOf",{enumerable:!0,get:function(){return wv.isTypeSubTypeOf}});Object.defineProperty(kt,"isValidNameError",{enumerable:!0,get:function(){return oB.isValidNameError}});Object.defineProperty(kt,"lexicographicSortSchema",{enumerable:!0,get:function(){return l7.lexicographicSortSchema}});Object.defineProperty(kt,"printIntrospectionSchema",{enumerable:!0,get:function(){return Fv.printIntrospectionSchema}});Object.defineProperty(kt,"printSchema",{enumerable:!0,get:function(){return Fv.printSchema}});Object.defineProperty(kt,"printType",{enumerable:!0,get:function(){return Fv.printType}});Object.defineProperty(kt,"separateOperations",{enumerable:!0,get:function(){return E7.separateOperations}});Object.defineProperty(kt,"stripIgnoredCharacters",{enumerable:!0,get:function(){return h7.stripIgnoredCharacters}});Object.defineProperty(kt,"typeFromAST",{enumerable:!0,get:function(){return d7.typeFromAST}});Object.defineProperty(kt,"valueFromAST",{enumerable:!0,get:function(){return f7.valueFromAST}});Object.defineProperty(kt,"valueFromASTUntyped",{enumerable:!0,get:function(){return p7.valueFromASTUntyped}});Object.defineProperty(kt,"visitWithTypeInfo",{enumerable:!0,get:function(){return sB.visitWithTypeInfo}});var i7=pv(),a7=EC(),s7=hC(),o7=yC(),u7=gC(),aB=FC(),c7=yv(),l7=CC(),Fv=VC(),d7=qa(),f7=If(),p7=RI(),m7=lf(),sB=gN(),N7=Zg(),T7=jC(),E7=$C(),h7=JC(),wv=nf(),oB=zC(),eT=iB()});var Oe=w(q=>{"use strict";m();T();N();Object.defineProperty(q,"__esModule",{value:!0});Object.defineProperty(q,"BREAK",{enumerable:!0,get:function(){return Yt.BREAK}});Object.defineProperty(q,"BreakingChangeType",{enumerable:!0,get:function(){return Jt.BreakingChangeType}});Object.defineProperty(q,"DEFAULT_DEPRECATION_REASON",{enumerable:!0,get:function(){return ye.DEFAULT_DEPRECATION_REASON}});Object.defineProperty(q,"DangerousChangeType",{enumerable:!0,get:function(){return Jt.DangerousChangeType}});Object.defineProperty(q,"DirectiveLocation",{enumerable:!0,get:function(){return Yt.DirectiveLocation}});Object.defineProperty(q,"ExecutableDefinitionsRule",{enumerable:!0,get:function(){return ht.ExecutableDefinitionsRule}});Object.defineProperty(q,"FieldsOnCorrectTypeRule",{enumerable:!0,get:function(){return ht.FieldsOnCorrectTypeRule}});Object.defineProperty(q,"FragmentsOnCompositeTypesRule",{enumerable:!0,get:function(){return ht.FragmentsOnCompositeTypesRule}});Object.defineProperty(q,"GRAPHQL_MAX_INT",{enumerable:!0,get:function(){return ye.GRAPHQL_MAX_INT}});Object.defineProperty(q,"GRAPHQL_MIN_INT",{enumerable:!0,get:function(){return ye.GRAPHQL_MIN_INT}});Object.defineProperty(q,"GraphQLBoolean",{enumerable:!0,get:function(){return ye.GraphQLBoolean}});Object.defineProperty(q,"GraphQLDeprecatedDirective",{enumerable:!0,get:function(){return ye.GraphQLDeprecatedDirective}});Object.defineProperty(q,"GraphQLDirective",{enumerable:!0,get:function(){return ye.GraphQLDirective}});Object.defineProperty(q,"GraphQLEnumType",{enumerable:!0,get:function(){return ye.GraphQLEnumType}});Object.defineProperty(q,"GraphQLError",{enumerable:!0,get:function(){return Cf.GraphQLError}});Object.defineProperty(q,"GraphQLFloat",{enumerable:!0,get:function(){return ye.GraphQLFloat}});Object.defineProperty(q,"GraphQLID",{enumerable:!0,get:function(){return ye.GraphQLID}});Object.defineProperty(q,"GraphQLIncludeDirective",{enumerable:!0,get:function(){return ye.GraphQLIncludeDirective}});Object.defineProperty(q,"GraphQLInputObjectType",{enumerable:!0,get:function(){return ye.GraphQLInputObjectType}});Object.defineProperty(q,"GraphQLInt",{enumerable:!0,get:function(){return ye.GraphQLInt}});Object.defineProperty(q,"GraphQLInterfaceType",{enumerable:!0,get:function(){return ye.GraphQLInterfaceType}});Object.defineProperty(q,"GraphQLList",{enumerable:!0,get:function(){return ye.GraphQLList}});Object.defineProperty(q,"GraphQLNonNull",{enumerable:!0,get:function(){return ye.GraphQLNonNull}});Object.defineProperty(q,"GraphQLObjectType",{enumerable:!0,get:function(){return ye.GraphQLObjectType}});Object.defineProperty(q,"GraphQLOneOfDirective",{enumerable:!0,get:function(){return ye.GraphQLOneOfDirective}});Object.defineProperty(q,"GraphQLScalarType",{enumerable:!0,get:function(){return ye.GraphQLScalarType}});Object.defineProperty(q,"GraphQLSchema",{enumerable:!0,get:function(){return ye.GraphQLSchema}});Object.defineProperty(q,"GraphQLSkipDirective",{enumerable:!0,get:function(){return ye.GraphQLSkipDirective}});Object.defineProperty(q,"GraphQLSpecifiedByDirective",{enumerable:!0,get:function(){return ye.GraphQLSpecifiedByDirective}});Object.defineProperty(q,"GraphQLString",{enumerable:!0,get:function(){return ye.GraphQLString}});Object.defineProperty(q,"GraphQLUnionType",{enumerable:!0,get:function(){return ye.GraphQLUnionType}});Object.defineProperty(q,"Kind",{enumerable:!0,get:function(){return Yt.Kind}});Object.defineProperty(q,"KnownArgumentNamesRule",{enumerable:!0,get:function(){return ht.KnownArgumentNamesRule}});Object.defineProperty(q,"KnownDirectivesRule",{enumerable:!0,get:function(){return ht.KnownDirectivesRule}});Object.defineProperty(q,"KnownFragmentNamesRule",{enumerable:!0,get:function(){return ht.KnownFragmentNamesRule}});Object.defineProperty(q,"KnownTypeNamesRule",{enumerable:!0,get:function(){return ht.KnownTypeNamesRule}});Object.defineProperty(q,"Lexer",{enumerable:!0,get:function(){return Yt.Lexer}});Object.defineProperty(q,"Location",{enumerable:!0,get:function(){return Yt.Location}});Object.defineProperty(q,"LoneAnonymousOperationRule",{enumerable:!0,get:function(){return ht.LoneAnonymousOperationRule}});Object.defineProperty(q,"LoneSchemaDefinitionRule",{enumerable:!0,get:function(){return ht.LoneSchemaDefinitionRule}});Object.defineProperty(q,"MaxIntrospectionDepthRule",{enumerable:!0,get:function(){return ht.MaxIntrospectionDepthRule}});Object.defineProperty(q,"NoDeprecatedCustomRule",{enumerable:!0,get:function(){return ht.NoDeprecatedCustomRule}});Object.defineProperty(q,"NoFragmentCyclesRule",{enumerable:!0,get:function(){return ht.NoFragmentCyclesRule}});Object.defineProperty(q,"NoSchemaIntrospectionCustomRule",{enumerable:!0,get:function(){return ht.NoSchemaIntrospectionCustomRule}});Object.defineProperty(q,"NoUndefinedVariablesRule",{enumerable:!0,get:function(){return ht.NoUndefinedVariablesRule}});Object.defineProperty(q,"NoUnusedFragmentsRule",{enumerable:!0,get:function(){return ht.NoUnusedFragmentsRule}});Object.defineProperty(q,"NoUnusedVariablesRule",{enumerable:!0,get:function(){return ht.NoUnusedVariablesRule}});Object.defineProperty(q,"OperationTypeNode",{enumerable:!0,get:function(){return Yt.OperationTypeNode}});Object.defineProperty(q,"OverlappingFieldsCanBeMergedRule",{enumerable:!0,get:function(){return ht.OverlappingFieldsCanBeMergedRule}});Object.defineProperty(q,"PossibleFragmentSpreadsRule",{enumerable:!0,get:function(){return ht.PossibleFragmentSpreadsRule}});Object.defineProperty(q,"PossibleTypeExtensionsRule",{enumerable:!0,get:function(){return ht.PossibleTypeExtensionsRule}});Object.defineProperty(q,"ProvidedRequiredArgumentsRule",{enumerable:!0,get:function(){return ht.ProvidedRequiredArgumentsRule}});Object.defineProperty(q,"ScalarLeafsRule",{enumerable:!0,get:function(){return ht.ScalarLeafsRule}});Object.defineProperty(q,"SchemaMetaFieldDef",{enumerable:!0,get:function(){return ye.SchemaMetaFieldDef}});Object.defineProperty(q,"SingleFieldSubscriptionsRule",{enumerable:!0,get:function(){return ht.SingleFieldSubscriptionsRule}});Object.defineProperty(q,"Source",{enumerable:!0,get:function(){return Yt.Source}});Object.defineProperty(q,"Token",{enumerable:!0,get:function(){return Yt.Token}});Object.defineProperty(q,"TokenKind",{enumerable:!0,get:function(){return Yt.TokenKind}});Object.defineProperty(q,"TypeInfo",{enumerable:!0,get:function(){return Jt.TypeInfo}});Object.defineProperty(q,"TypeKind",{enumerable:!0,get:function(){return ye.TypeKind}});Object.defineProperty(q,"TypeMetaFieldDef",{enumerable:!0,get:function(){return ye.TypeMetaFieldDef}});Object.defineProperty(q,"TypeNameMetaFieldDef",{enumerable:!0,get:function(){return ye.TypeNameMetaFieldDef}});Object.defineProperty(q,"UniqueArgumentDefinitionNamesRule",{enumerable:!0,get:function(){return ht.UniqueArgumentDefinitionNamesRule}});Object.defineProperty(q,"UniqueArgumentNamesRule",{enumerable:!0,get:function(){return ht.UniqueArgumentNamesRule}});Object.defineProperty(q,"UniqueDirectiveNamesRule",{enumerable:!0,get:function(){return ht.UniqueDirectiveNamesRule}});Object.defineProperty(q,"UniqueDirectivesPerLocationRule",{enumerable:!0,get:function(){return ht.UniqueDirectivesPerLocationRule}});Object.defineProperty(q,"UniqueEnumValueNamesRule",{enumerable:!0,get:function(){return ht.UniqueEnumValueNamesRule}});Object.defineProperty(q,"UniqueFieldDefinitionNamesRule",{enumerable:!0,get:function(){return ht.UniqueFieldDefinitionNamesRule}});Object.defineProperty(q,"UniqueFragmentNamesRule",{enumerable:!0,get:function(){return ht.UniqueFragmentNamesRule}});Object.defineProperty(q,"UniqueInputFieldNamesRule",{enumerable:!0,get:function(){return ht.UniqueInputFieldNamesRule}});Object.defineProperty(q,"UniqueOperationNamesRule",{enumerable:!0,get:function(){return ht.UniqueOperationNamesRule}});Object.defineProperty(q,"UniqueOperationTypesRule",{enumerable:!0,get:function(){return ht.UniqueOperationTypesRule}});Object.defineProperty(q,"UniqueTypeNamesRule",{enumerable:!0,get:function(){return ht.UniqueTypeNamesRule}});Object.defineProperty(q,"UniqueVariableNamesRule",{enumerable:!0,get:function(){return ht.UniqueVariableNamesRule}});Object.defineProperty(q,"ValidationContext",{enumerable:!0,get:function(){return ht.ValidationContext}});Object.defineProperty(q,"ValuesOfCorrectTypeRule",{enumerable:!0,get:function(){return ht.ValuesOfCorrectTypeRule}});Object.defineProperty(q,"VariablesAreInputTypesRule",{enumerable:!0,get:function(){return ht.VariablesAreInputTypesRule}});Object.defineProperty(q,"VariablesInAllowedPositionRule",{enumerable:!0,get:function(){return ht.VariablesInAllowedPositionRule}});Object.defineProperty(q,"__Directive",{enumerable:!0,get:function(){return ye.__Directive}});Object.defineProperty(q,"__DirectiveLocation",{enumerable:!0,get:function(){return ye.__DirectiveLocation}});Object.defineProperty(q,"__EnumValue",{enumerable:!0,get:function(){return ye.__EnumValue}});Object.defineProperty(q,"__Field",{enumerable:!0,get:function(){return ye.__Field}});Object.defineProperty(q,"__InputValue",{enumerable:!0,get:function(){return ye.__InputValue}});Object.defineProperty(q,"__Schema",{enumerable:!0,get:function(){return ye.__Schema}});Object.defineProperty(q,"__Type",{enumerable:!0,get:function(){return ye.__Type}});Object.defineProperty(q,"__TypeKind",{enumerable:!0,get:function(){return ye.__TypeKind}});Object.defineProperty(q,"assertAbstractType",{enumerable:!0,get:function(){return ye.assertAbstractType}});Object.defineProperty(q,"assertCompositeType",{enumerable:!0,get:function(){return ye.assertCompositeType}});Object.defineProperty(q,"assertDirective",{enumerable:!0,get:function(){return ye.assertDirective}});Object.defineProperty(q,"assertEnumType",{enumerable:!0,get:function(){return ye.assertEnumType}});Object.defineProperty(q,"assertEnumValueName",{enumerable:!0,get:function(){return ye.assertEnumValueName}});Object.defineProperty(q,"assertInputObjectType",{enumerable:!0,get:function(){return ye.assertInputObjectType}});Object.defineProperty(q,"assertInputType",{enumerable:!0,get:function(){return ye.assertInputType}});Object.defineProperty(q,"assertInterfaceType",{enumerable:!0,get:function(){return ye.assertInterfaceType}});Object.defineProperty(q,"assertLeafType",{enumerable:!0,get:function(){return ye.assertLeafType}});Object.defineProperty(q,"assertListType",{enumerable:!0,get:function(){return ye.assertListType}});Object.defineProperty(q,"assertName",{enumerable:!0,get:function(){return ye.assertName}});Object.defineProperty(q,"assertNamedType",{enumerable:!0,get:function(){return ye.assertNamedType}});Object.defineProperty(q,"assertNonNullType",{enumerable:!0,get:function(){return ye.assertNonNullType}});Object.defineProperty(q,"assertNullableType",{enumerable:!0,get:function(){return ye.assertNullableType}});Object.defineProperty(q,"assertObjectType",{enumerable:!0,get:function(){return ye.assertObjectType}});Object.defineProperty(q,"assertOutputType",{enumerable:!0,get:function(){return ye.assertOutputType}});Object.defineProperty(q,"assertScalarType",{enumerable:!0,get:function(){return ye.assertScalarType}});Object.defineProperty(q,"assertSchema",{enumerable:!0,get:function(){return ye.assertSchema}});Object.defineProperty(q,"assertType",{enumerable:!0,get:function(){return ye.assertType}});Object.defineProperty(q,"assertUnionType",{enumerable:!0,get:function(){return ye.assertUnionType}});Object.defineProperty(q,"assertValidName",{enumerable:!0,get:function(){return Jt.assertValidName}});Object.defineProperty(q,"assertValidSchema",{enumerable:!0,get:function(){return ye.assertValidSchema}});Object.defineProperty(q,"assertWrappingType",{enumerable:!0,get:function(){return ye.assertWrappingType}});Object.defineProperty(q,"astFromValue",{enumerable:!0,get:function(){return Jt.astFromValue}});Object.defineProperty(q,"buildASTSchema",{enumerable:!0,get:function(){return Jt.buildASTSchema}});Object.defineProperty(q,"buildClientSchema",{enumerable:!0,get:function(){return Jt.buildClientSchema}});Object.defineProperty(q,"buildSchema",{enumerable:!0,get:function(){return Jt.buildSchema}});Object.defineProperty(q,"coerceInputValue",{enumerable:!0,get:function(){return Jt.coerceInputValue}});Object.defineProperty(q,"concatAST",{enumerable:!0,get:function(){return Jt.concatAST}});Object.defineProperty(q,"createSourceEventStream",{enumerable:!0,get:function(){return Qa.createSourceEventStream}});Object.defineProperty(q,"defaultFieldResolver",{enumerable:!0,get:function(){return Qa.defaultFieldResolver}});Object.defineProperty(q,"defaultTypeResolver",{enumerable:!0,get:function(){return Qa.defaultTypeResolver}});Object.defineProperty(q,"doTypesOverlap",{enumerable:!0,get:function(){return Jt.doTypesOverlap}});Object.defineProperty(q,"execute",{enumerable:!0,get:function(){return Qa.execute}});Object.defineProperty(q,"executeSync",{enumerable:!0,get:function(){return Qa.executeSync}});Object.defineProperty(q,"extendSchema",{enumerable:!0,get:function(){return Jt.extendSchema}});Object.defineProperty(q,"findBreakingChanges",{enumerable:!0,get:function(){return Jt.findBreakingChanges}});Object.defineProperty(q,"findDangerousChanges",{enumerable:!0,get:function(){return Jt.findDangerousChanges}});Object.defineProperty(q,"formatError",{enumerable:!0,get:function(){return Cf.formatError}});Object.defineProperty(q,"getArgumentValues",{enumerable:!0,get:function(){return Qa.getArgumentValues}});Object.defineProperty(q,"getDirectiveValues",{enumerable:!0,get:function(){return Qa.getDirectiveValues}});Object.defineProperty(q,"getEnterLeaveForKind",{enumerable:!0,get:function(){return Yt.getEnterLeaveForKind}});Object.defineProperty(q,"getIntrospectionQuery",{enumerable:!0,get:function(){return Jt.getIntrospectionQuery}});Object.defineProperty(q,"getLocation",{enumerable:!0,get:function(){return Yt.getLocation}});Object.defineProperty(q,"getNamedType",{enumerable:!0,get:function(){return ye.getNamedType}});Object.defineProperty(q,"getNullableType",{enumerable:!0,get:function(){return ye.getNullableType}});Object.defineProperty(q,"getOperationAST",{enumerable:!0,get:function(){return Jt.getOperationAST}});Object.defineProperty(q,"getOperationRootType",{enumerable:!0,get:function(){return Jt.getOperationRootType}});Object.defineProperty(q,"getVariableValues",{enumerable:!0,get:function(){return Qa.getVariableValues}});Object.defineProperty(q,"getVisitFn",{enumerable:!0,get:function(){return Yt.getVisitFn}});Object.defineProperty(q,"graphql",{enumerable:!0,get:function(){return lB.graphql}});Object.defineProperty(q,"graphqlSync",{enumerable:!0,get:function(){return lB.graphqlSync}});Object.defineProperty(q,"introspectionFromSchema",{enumerable:!0,get:function(){return Jt.introspectionFromSchema}});Object.defineProperty(q,"introspectionTypes",{enumerable:!0,get:function(){return ye.introspectionTypes}});Object.defineProperty(q,"isAbstractType",{enumerable:!0,get:function(){return ye.isAbstractType}});Object.defineProperty(q,"isCompositeType",{enumerable:!0,get:function(){return ye.isCompositeType}});Object.defineProperty(q,"isConstValueNode",{enumerable:!0,get:function(){return Yt.isConstValueNode}});Object.defineProperty(q,"isDefinitionNode",{enumerable:!0,get:function(){return Yt.isDefinitionNode}});Object.defineProperty(q,"isDirective",{enumerable:!0,get:function(){return ye.isDirective}});Object.defineProperty(q,"isEnumType",{enumerable:!0,get:function(){return ye.isEnumType}});Object.defineProperty(q,"isEqualType",{enumerable:!0,get:function(){return Jt.isEqualType}});Object.defineProperty(q,"isExecutableDefinitionNode",{enumerable:!0,get:function(){return Yt.isExecutableDefinitionNode}});Object.defineProperty(q,"isInputObjectType",{enumerable:!0,get:function(){return ye.isInputObjectType}});Object.defineProperty(q,"isInputType",{enumerable:!0,get:function(){return ye.isInputType}});Object.defineProperty(q,"isInterfaceType",{enumerable:!0,get:function(){return ye.isInterfaceType}});Object.defineProperty(q,"isIntrospectionType",{enumerable:!0,get:function(){return ye.isIntrospectionType}});Object.defineProperty(q,"isLeafType",{enumerable:!0,get:function(){return ye.isLeafType}});Object.defineProperty(q,"isListType",{enumerable:!0,get:function(){return ye.isListType}});Object.defineProperty(q,"isNamedType",{enumerable:!0,get:function(){return ye.isNamedType}});Object.defineProperty(q,"isNonNullType",{enumerable:!0,get:function(){return ye.isNonNullType}});Object.defineProperty(q,"isNullableType",{enumerable:!0,get:function(){return ye.isNullableType}});Object.defineProperty(q,"isObjectType",{enumerable:!0,get:function(){return ye.isObjectType}});Object.defineProperty(q,"isOutputType",{enumerable:!0,get:function(){return ye.isOutputType}});Object.defineProperty(q,"isRequiredArgument",{enumerable:!0,get:function(){return ye.isRequiredArgument}});Object.defineProperty(q,"isRequiredInputField",{enumerable:!0,get:function(){return ye.isRequiredInputField}});Object.defineProperty(q,"isScalarType",{enumerable:!0,get:function(){return ye.isScalarType}});Object.defineProperty(q,"isSchema",{enumerable:!0,get:function(){return ye.isSchema}});Object.defineProperty(q,"isSelectionNode",{enumerable:!0,get:function(){return Yt.isSelectionNode}});Object.defineProperty(q,"isSpecifiedDirective",{enumerable:!0,get:function(){return ye.isSpecifiedDirective}});Object.defineProperty(q,"isSpecifiedScalarType",{enumerable:!0,get:function(){return ye.isSpecifiedScalarType}});Object.defineProperty(q,"isType",{enumerable:!0,get:function(){return ye.isType}});Object.defineProperty(q,"isTypeDefinitionNode",{enumerable:!0,get:function(){return Yt.isTypeDefinitionNode}});Object.defineProperty(q,"isTypeExtensionNode",{enumerable:!0,get:function(){return Yt.isTypeExtensionNode}});Object.defineProperty(q,"isTypeNode",{enumerable:!0,get:function(){return Yt.isTypeNode}});Object.defineProperty(q,"isTypeSubTypeOf",{enumerable:!0,get:function(){return Jt.isTypeSubTypeOf}});Object.defineProperty(q,"isTypeSystemDefinitionNode",{enumerable:!0,get:function(){return Yt.isTypeSystemDefinitionNode}});Object.defineProperty(q,"isTypeSystemExtensionNode",{enumerable:!0,get:function(){return Yt.isTypeSystemExtensionNode}});Object.defineProperty(q,"isUnionType",{enumerable:!0,get:function(){return ye.isUnionType}});Object.defineProperty(q,"isValidNameError",{enumerable:!0,get:function(){return Jt.isValidNameError}});Object.defineProperty(q,"isValueNode",{enumerable:!0,get:function(){return Yt.isValueNode}});Object.defineProperty(q,"isWrappingType",{enumerable:!0,get:function(){return ye.isWrappingType}});Object.defineProperty(q,"lexicographicSortSchema",{enumerable:!0,get:function(){return Jt.lexicographicSortSchema}});Object.defineProperty(q,"locatedError",{enumerable:!0,get:function(){return Cf.locatedError}});Object.defineProperty(q,"parse",{enumerable:!0,get:function(){return Yt.parse}});Object.defineProperty(q,"parseConstValue",{enumerable:!0,get:function(){return Yt.parseConstValue}});Object.defineProperty(q,"parseType",{enumerable:!0,get:function(){return Yt.parseType}});Object.defineProperty(q,"parseValue",{enumerable:!0,get:function(){return Yt.parseValue}});Object.defineProperty(q,"print",{enumerable:!0,get:function(){return Yt.print}});Object.defineProperty(q,"printError",{enumerable:!0,get:function(){return Cf.printError}});Object.defineProperty(q,"printIntrospectionSchema",{enumerable:!0,get:function(){return Jt.printIntrospectionSchema}});Object.defineProperty(q,"printLocation",{enumerable:!0,get:function(){return Yt.printLocation}});Object.defineProperty(q,"printSchema",{enumerable:!0,get:function(){return Jt.printSchema}});Object.defineProperty(q,"printSourceLocation",{enumerable:!0,get:function(){return Yt.printSourceLocation}});Object.defineProperty(q,"printType",{enumerable:!0,get:function(){return Jt.printType}});Object.defineProperty(q,"recommendedRules",{enumerable:!0,get:function(){return ht.recommendedRules}});Object.defineProperty(q,"resolveObjMapThunk",{enumerable:!0,get:function(){return ye.resolveObjMapThunk}});Object.defineProperty(q,"resolveReadonlyArrayThunk",{enumerable:!0,get:function(){return ye.resolveReadonlyArrayThunk}});Object.defineProperty(q,"responsePathAsArray",{enumerable:!0,get:function(){return Qa.responsePathAsArray}});Object.defineProperty(q,"separateOperations",{enumerable:!0,get:function(){return Jt.separateOperations}});Object.defineProperty(q,"specifiedDirectives",{enumerable:!0,get:function(){return ye.specifiedDirectives}});Object.defineProperty(q,"specifiedRules",{enumerable:!0,get:function(){return ht.specifiedRules}});Object.defineProperty(q,"specifiedScalarTypes",{enumerable:!0,get:function(){return ye.specifiedScalarTypes}});Object.defineProperty(q,"stripIgnoredCharacters",{enumerable:!0,get:function(){return Jt.stripIgnoredCharacters}});Object.defineProperty(q,"subscribe",{enumerable:!0,get:function(){return Qa.subscribe}});Object.defineProperty(q,"syntaxError",{enumerable:!0,get:function(){return Cf.syntaxError}});Object.defineProperty(q,"typeFromAST",{enumerable:!0,get:function(){return Jt.typeFromAST}});Object.defineProperty(q,"validate",{enumerable:!0,get:function(){return ht.validate}});Object.defineProperty(q,"validateSchema",{enumerable:!0,get:function(){return ye.validateSchema}});Object.defineProperty(q,"valueFromAST",{enumerable:!0,get:function(){return Jt.valueFromAST}});Object.defineProperty(q,"valueFromASTUntyped",{enumerable:!0,get:function(){return Jt.valueFromASTUntyped}});Object.defineProperty(q,"version",{enumerable:!0,get:function(){return cB.version}});Object.defineProperty(q,"versionInfo",{enumerable:!0,get:function(){return cB.versionInfo}});Object.defineProperty(q,"visit",{enumerable:!0,get:function(){return Yt.visit}});Object.defineProperty(q,"visitInParallel",{enumerable:!0,get:function(){return Yt.visitInParallel}});Object.defineProperty(q,"visitWithTypeInfo",{enumerable:!0,get:function(){return Jt.visitWithTypeInfo}});var cB=iF(),lB=XL(),ye=tC(),Yt=rC(),Qa=dC(),ht=NC(),Cf=TC(),Jt=uB()});var sr=w(R=>{"use strict";m();T();N();Object.defineProperty(R,"__esModule",{value:!0});R.FIELD_UPPER=R.FIELD_PATH=R.FIELD=R.EXTENSIONS=R.EXTENDS=R.EXTERNAL=R.EXECUTION=R.ENUM_VALUE_UPPER=R.ENUM_VALUE=R.ENUM_UPPER=R.ENUM=R.ENTITY_UNION=R.ENTITIES_FIELD=R.ENTITIES=R.EDFS_REDIS_SUBSCRIBE=R.EDFS_REDIS_PUBLISH=R.EDFS_NATS_STREAM_CONFIGURATION=R.EDFS_PUBLISH_RESULT=R.EDFS_NATS_SUBSCRIBE=R.EDFS_NATS_REQUEST=R.EDFS_NATS_PUBLISH=R.EDFS_KAFKA_SUBSCRIBE=R.EDFS_KAFKA_PUBLISH=R.DIRECTIVE_DEFINITION=R.DESCRIPTION_OVERRIDE=R.DEPRECATED_DEFAULT_ARGUMENT_VALUE=R.DEPRECATED=R.DEFAULT_SUBSCRIPTION=R.DEFAULT_QUERY=R.DEFAULT_MUTATION=R.DEFAULT_EDFS_PROVIDER_ID=R.DEFAULT=R.CONTEXT=R.CONNECT_FIELD_RESOLVER=R.CONSUMER_NAME=R.CONSUMER_INACTIVE_THRESHOLD=R.CONFIGURE_CHILD_DESCRIPTIONS=R.CONFIGURE_DESCRIPTION=R.CONDITION=R.COMPOSE_DIRECTIVE=R.CHANNELS=R.CHANNEL=R.BOOLEAN_SCALAR=R.BOOLEAN=R.ARGUMENT_DEFINITION_UPPER=R.AUTHENTICATED=R.ARGUMENT=R.ANY_SCALAR=R.AND_UPPER=R.AS=void 0;R.NULL=R.NOT_UPPER=R.NON_NULLABLE_STRING=R.NON_NULLABLE_INT=R.NON_NULLABLE_BOOLEAN=R.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT=R.NAME=R.NOT_APPLICABLE=R.PROVIDER_TYPE_REDIS=R.PROVIDER_TYPE_NATS=R.PROVIDER_TYPE_KAFKA=R.PROPAGATE=R.MUTATION_UPPER=R.MUTATION=R.NUMBER=R.LITERAL_NEW_LINE=R.LITERAL_SPACE=R.LIST=R.LINK_PURPOSE=R.LINK_IMPORT=R.LINK=R.LEVELS=R.LEFT_PARENTHESIS=R.KEY=R.INTERFACE_OBJECT=R.INTERFACE_UPPER=R.INTERFACE=R.INT_SCALAR=R.INPUT_VALUE=R.INPUT_OBJECT_UPPER=R.INPUT_OBJECT=R.INPUT_FIELD_DEFINITION_UPPER=R.INPUT_FIELD=R.INPUT=R.INLINE_FRAGMENT_UPPER=R.INLINE_FRAGMENT=R.INACCESSIBLE=R.IN_UPPER=R.IMPORT=R.ID_SCALAR=R.HYPHEN_JOIN=R.FROM=R.FRAGMENT_SPREAD_UPPER=R.FRAGMENT_DEFINITION_UPPER=R.FOR=R.FLOAT_SCALAR=R.FIRST_ORDINAL=R.FIELD_DEFINITION_UPPER=R.FIELDS=R.FIELD_SET_SCALAR=void 0;R.TAG=R.SUCCESS=R.SUBSCRIPTION_UPPER=R.SUBSCRIBE=R.SUBSCRIPTION_FILTER_VALUE=R.SUBSCRIPTION_FILTER_CONDITION=R.SUBSCRIPTION_FILTER=R.SUBSCRIPTION_FIELD_CONDITION=R.SUBSCRIPTION=R.SUBJECTS=R.SUBJECT=R.STRING_SCALAR=R.STRING=R.STREAM_NAME=R.STREAM_CONFIGURATION=R.SPECIFIED_BY=R.SHAREABLE=R.SERVICE_FIELD=R.SERVICE_OBJECT=R.SEMANTIC_NON_NULL=R.SELECTION_REPRESENTATION=R.SECURITY=R.SCOPE_SCALAR=R.SCOPES=R.SCHEMA_UPPER=R.SCHEMA=R.SCALAR_UPPER=R.SCALAR=R.RESOLVABLE=R.REQUIRES_SCOPES=R.REQUIRES=R.REQUIRE_FETCH_REASONS=R.REQUEST=R.REASON=R.QUOTATION_JOIN=R.QUERY_UPPER=R.QUERY=R.PUBLISH=R.PROVIDES=R.PROVIDER_ID=R.PERIOD=R.PARENT_EXTENSION_DATA_MAP=R.PARENT_DEFINITION_DATA_MAP=R.PARENT_DEFINITION_DATA=R.OVERRIDE=R.OR_UPPER=R.OBJECT_UPPER=R.OBJECT=R.OPERATION_TO_DEFAULT=R.ONE_OF=void 0;R.NON_REPEATABLE_PERSISTED_DIRECTIVES=R.OUTPUT_NODE_KINDS=R.INPUT_NODE_KINDS=R.IGNORED_FIELDS=R.INHERITABLE_DIRECTIVE_NAMES=R.PERSISTED_CLIENT_DIRECTIVES=R.AUTHORIZATION_DIRECTIVES=R.ROOT_TYPE_NAMES=R.EXECUTABLE_DIRECTIVE_LOCATIONS=R.VARIABLE_DEFINITION_UPPER=R.VALUES=R.URL_LOWER=R.UNION_UPPER=R.UNION=R.TOPICS=R.TOPIC=void 0;var Eu=Oe();R.AS="as";R.AND_UPPER="AND";R.ANY_SCALAR="_Any";R.ARGUMENT="argument";R.AUTHENTICATED="authenticated";R.ARGUMENT_DEFINITION_UPPER="ARGUMENT_DEFINITION";R.BOOLEAN="boolean";R.BOOLEAN_SCALAR="Boolean";R.CHANNEL="channel";R.CHANNELS="channels";R.COMPOSE_DIRECTIVE="composeDirective";R.CONDITION="condition";R.CONFIGURE_DESCRIPTION="openfed__configureDescription";R.CONFIGURE_CHILD_DESCRIPTIONS="openfed__configureChildDescriptions";R.CONSUMER_INACTIVE_THRESHOLD="consumerInactiveThreshold";R.CONSUMER_NAME="consumerName";R.CONNECT_FIELD_RESOLVER="connect__fieldResolver";R.CONTEXT="context";R.DEFAULT="default";R.DEFAULT_EDFS_PROVIDER_ID="default";R.DEFAULT_MUTATION="Mutation";R.DEFAULT_QUERY="Query";R.DEFAULT_SUBSCRIPTION="Subscription";R.DEPRECATED="deprecated";R.DEPRECATED_DEFAULT_ARGUMENT_VALUE="No longer supported";R.DESCRIPTION_OVERRIDE="descriptionOverride";R.DIRECTIVE_DEFINITION="directive definition";R.EDFS_KAFKA_PUBLISH="edfs__kafkaPublish";R.EDFS_KAFKA_SUBSCRIBE="edfs__kafkaSubscribe";R.EDFS_NATS_PUBLISH="edfs__natsPublish";R.EDFS_NATS_REQUEST="edfs__natsRequest";R.EDFS_NATS_SUBSCRIBE="edfs__natsSubscribe";R.EDFS_PUBLISH_RESULT="edfs__PublishResult";R.EDFS_NATS_STREAM_CONFIGURATION="edfs__NatsStreamConfiguration";R.EDFS_REDIS_PUBLISH="edfs__redisPublish";R.EDFS_REDIS_SUBSCRIBE="edfs__redisSubscribe";R.ENTITIES="entities";R.ENTITIES_FIELD="_entities";R.ENTITY_UNION="_Entity";R.ENUM="Enum";R.ENUM_UPPER="ENUM";R.ENUM_VALUE="Enum Value";R.ENUM_VALUE_UPPER="ENUM_VALUE";R.EXECUTION="EXECUTION";R.EXTERNAL="external";R.EXTENDS="extends";R.EXTENSIONS="extensions";R.FIELD="field";R.FIELD_PATH="fieldPath";R.FIELD_UPPER="FIELD";R.FIELD_SET_SCALAR="openfed__FieldSet";R.FIELDS="fields";R.FIELD_DEFINITION_UPPER="FIELD_DEFINITION";R.FIRST_ORDINAL="1st";R.FLOAT_SCALAR="Float";R.FOR="for";R.FRAGMENT_DEFINITION_UPPER="FRAGMENT_DEFINITION";R.FRAGMENT_SPREAD_UPPER="FRAGMENT_SPREAD";R.FROM="from";R.HYPHEN_JOIN=` + -`;R.ID_SCALAR="ID";R.IMPORT="import";R.IN_UPPER="IN";R.INACCESSIBLE="inaccessible";R.INLINE_FRAGMENT="inlineFragment";R.INLINE_FRAGMENT_UPPER="INLINE_FRAGMENT";R.INPUT="Input";R.INPUT_FIELD="Input field";R.INPUT_FIELD_DEFINITION_UPPER="INPUT_FIELD_DEFINITION";R.INPUT_OBJECT="Input Object";R.INPUT_OBJECT_UPPER="INPUT_OBJECT";R.INPUT_VALUE="Input Value";R.INT_SCALAR="Int";R.INTERFACE="Interface";R.INTERFACE_UPPER="INTERFACE";R.INTERFACE_OBJECT="interfaceObject";R.KEY="key";R.LEFT_PARENTHESIS="(";R.LEVELS="levels";R.LINK="link";R.LINK_IMPORT="link__Import";R.LINK_PURPOSE="link__Purpose";R.LIST="list";R.LITERAL_SPACE=" ";R.LITERAL_NEW_LINE=` +`;R.NUMBER="number";R.MUTATION="Mutation";R.MUTATION_UPPER="MUTATION";R.PROPAGATE="propagate";R.PROVIDER_TYPE_KAFKA="kafka";R.PROVIDER_TYPE_NATS="nats";R.PROVIDER_TYPE_REDIS="redis";R.NOT_APPLICABLE="N/A";R.NAME="name";R.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT="edfs__PublishResult!";R.NON_NULLABLE_BOOLEAN="Boolean!";R.NON_NULLABLE_INT="Int!";R.NON_NULLABLE_STRING="String!";R.NOT_UPPER="NOT";R.NULL="Null";R.ONE_OF="oneOf";R.OPERATION_TO_DEFAULT="operationTypeNodeToDefaultType";R.OBJECT="Object";R.OBJECT_UPPER="OBJECT";R.OR_UPPER="OR";R.OVERRIDE="override";R.PARENT_DEFINITION_DATA="parentDefinitionDataByTypeName";R.PARENT_DEFINITION_DATA_MAP="parentDefinitionDataByParentTypeName";R.PARENT_EXTENSION_DATA_MAP="parentExtensionDataByParentTypeName";R.PERIOD=".";R.PROVIDER_ID="providerId";R.PROVIDES="provides";R.PUBLISH="publish";R.QUERY="Query";R.QUERY_UPPER="QUERY";R.QUOTATION_JOIN='", "';R.REASON="reason";R.REQUEST="request";R.REQUIRE_FETCH_REASONS="openfed__requireFetchReasons";R.REQUIRES="requires";R.REQUIRES_SCOPES="requiresScopes";R.RESOLVABLE="resolvable";R.SCALAR="Scalar";R.SCALAR_UPPER="SCALAR";R.SCHEMA="schema";R.SCHEMA_UPPER="SCHEMA";R.SCOPES="scopes";R.SCOPE_SCALAR="openfed__Scope";R.SECURITY="SECURITY";R.SELECTION_REPRESENTATION=" { ... }";R.SEMANTIC_NON_NULL="semanticNonNull";R.SERVICE_OBJECT="_Service";R.SERVICE_FIELD="_service";R.SHAREABLE="shareable";R.SPECIFIED_BY="specifiedBy";R.STREAM_CONFIGURATION="streamConfiguration";R.STREAM_NAME="streamName";R.STRING="string";R.STRING_SCALAR="String";R.SUBJECT="subject";R.SUBJECTS="subjects";R.SUBSCRIPTION="Subscription";R.SUBSCRIPTION_FIELD_CONDITION="openfed__SubscriptionFieldCondition";R.SUBSCRIPTION_FILTER="openfed__subscriptionFilter";R.SUBSCRIPTION_FILTER_CONDITION="openfed__SubscriptionFilterCondition";R.SUBSCRIPTION_FILTER_VALUE="openfed__SubscriptionFilterValue";R.SUBSCRIBE="subscribe";R.SUBSCRIPTION_UPPER="SUBSCRIPTION";R.SUCCESS="success";R.TAG="tag";R.TOPIC="topic";R.TOPICS="topics";R.UNION="Union";R.UNION_UPPER="UNION";R.URL_LOWER="url";R.VALUES="values";R.VARIABLE_DEFINITION_UPPER="VARIABLE_DEFINITION";R.EXECUTABLE_DIRECTIVE_LOCATIONS=new Set([R.FIELD_UPPER,R.FRAGMENT_DEFINITION_UPPER,R.FRAGMENT_SPREAD_UPPER,R.INLINE_FRAGMENT_UPPER,R.MUTATION_UPPER,R.QUERY_UPPER,R.SUBSCRIPTION_UPPER]);R.ROOT_TYPE_NAMES=new Set([R.MUTATION,R.QUERY,R.SUBSCRIPTION]);R.AUTHORIZATION_DIRECTIVES=new Set([R.AUTHENTICATED,R.REQUIRES_SCOPES]);R.PERSISTED_CLIENT_DIRECTIVES=new Set([R.DEPRECATED,R.ONE_OF,R.SEMANTIC_NON_NULL]);R.INHERITABLE_DIRECTIVE_NAMES=new Set([R.EXTERNAL,R.REQUIRE_FETCH_REASONS,R.SHAREABLE]);R.IGNORED_FIELDS=new Set([R.ENTITIES_FIELD,R.SERVICE_FIELD]);R.INPUT_NODE_KINDS=new Set([Eu.Kind.ENUM_TYPE_DEFINITION,Eu.Kind.INPUT_OBJECT_TYPE_DEFINITION,Eu.Kind.SCALAR_TYPE_DEFINITION]);R.OUTPUT_NODE_KINDS=new Set([Eu.Kind.ENUM_TYPE_DEFINITION,Eu.Kind.INTERFACE_TYPE_DEFINITION,Eu.Kind.OBJECT_TYPE_DEFINITION,Eu.Kind.SCALAR_TYPE_DEFINITION,Eu.Kind.UNION_TYPE_DEFINITION]);R.NON_REPEATABLE_PERSISTED_DIRECTIVES=new Set([R.INACCESSIBLE,R.ONE_OF,R.SEMANTIC_NON_NULL])});var Ar=w(Jn=>{"use strict";m();T();N();Object.defineProperty(Jn,"__esModule",{value:!0});Jn.operationTypeNodeToDefaultType=void 0;Jn.isObjectLikeNodeEntity=y7;Jn.isNodeInterfaceObject=I7;Jn.stringToNameNode=nT;Jn.stringArrayToNameNodeArray=g7;Jn.setToNameNodeArray=_7;Jn.stringToNamedTypeNode=dB;Jn.setToNamedTypeNodeArray=v7;Jn.nodeKindToDirectiveLocation=O7;Jn.isKindAbstract=S7;Jn.extractExecutableDirectiveLocations=D7;Jn.formatDescription=b7;Jn.lexicographicallySortArgumentNodes=fB;Jn.lexicographicallySortSelectionSetNode=tT;Jn.lexicographicallySortDocumentNode=A7;Jn.parse=pB;Jn.safeParse=R7;var Mt=Oe(),bn=sr();function y7(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===bn.KEY)return!0;return!1}function I7(e){var t;if(!((t=e.directives)!=null&&t.length))return!1;for(let n of e.directives)if(n.name.value===bn.INTERFACE_OBJECT)return!0;return!1}function nT(e){return{kind:Mt.Kind.NAME,value:e}}function g7(e){let t=[];for(let n of e)t.push(nT(n));return t}function _7(e){let t=[];for(let n of e)t.push(nT(n));return t}function dB(e){return{kind:Mt.Kind.NAMED_TYPE,name:nT(e)}}function v7(e){let t=[];for(let n of e)t.push(dB(n));return t}function O7(e){switch(e){case Mt.Kind.ARGUMENT:return bn.ARGUMENT_DEFINITION_UPPER;case Mt.Kind.ENUM_TYPE_DEFINITION:case Mt.Kind.ENUM_TYPE_EXTENSION:return bn.ENUM_UPPER;case Mt.Kind.ENUM_VALUE_DEFINITION:return bn.ENUM_VALUE_UPPER;case Mt.Kind.FIELD_DEFINITION:return bn.FIELD_DEFINITION_UPPER;case Mt.Kind.FRAGMENT_DEFINITION:return bn.FRAGMENT_DEFINITION_UPPER;case Mt.Kind.FRAGMENT_SPREAD:return bn.FRAGMENT_SPREAD_UPPER;case Mt.Kind.INLINE_FRAGMENT:return bn.INLINE_FRAGMENT_UPPER;case Mt.Kind.INPUT_VALUE_DEFINITION:return bn.INPUT_FIELD_DEFINITION_UPPER;case Mt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Mt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return bn.INPUT_OBJECT_UPPER;case Mt.Kind.INTERFACE_TYPE_DEFINITION:case Mt.Kind.INTERFACE_TYPE_EXTENSION:return bn.INTERFACE_UPPER;case Mt.Kind.OBJECT_TYPE_DEFINITION:case Mt.Kind.OBJECT_TYPE_EXTENSION:return bn.OBJECT_UPPER;case Mt.Kind.SCALAR_TYPE_DEFINITION:case Mt.Kind.SCALAR_TYPE_EXTENSION:return bn.SCALAR_UPPER;case Mt.Kind.SCHEMA_DEFINITION:case Mt.Kind.SCHEMA_EXTENSION:return bn.SCHEMA_UPPER;case Mt.Kind.UNION_TYPE_DEFINITION:case Mt.Kind.UNION_TYPE_EXTENSION:return bn.UNION_UPPER;default:return e}}Jn.operationTypeNodeToDefaultType=new Map([[Mt.OperationTypeNode.MUTATION,bn.MUTATION],[Mt.OperationTypeNode.QUERY,bn.QUERY],[Mt.OperationTypeNode.SUBSCRIPTION,bn.SUBSCRIPTION]]);function S7(e){return e===Mt.Kind.INTERFACE_TYPE_DEFINITION||e===Mt.Kind.UNION_TYPE_DEFINITION}function D7(e,t){for(let n of e){let r=n.value;bn.EXECUTABLE_DIRECTIVE_LOCATIONS.has(r)&&t.add(r)}return t}function b7(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 $(M({},e),{value:t,block:!0})}function eB(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function tT(e){let t=e.selections;return $(M({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return bn.NAME in n?bn.NAME in r?n.name.value.localeCompare(r.name.value):-1:bn.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 xt.Kind.FIELD:return $(M({},n),{arguments:eB(n),selectionSet:n.selectionSet?tT(n.selectionSet):n.selectionSet});case xt.Kind.FRAGMENT_SPREAD:return n;case xt.Kind.INLINE_FRAGMENT:return $(M({},n),{selectionSet:tT(n.selectionSet)})}})})}function u7(e){return $(M({},e),{definitions:e.definitions.map(t=>t.kind!==xt.Kind.OPERATION_DEFINITION?t:$(M({},t),{selectionSet:tT(t.selectionSet)}))})}function tB(e,t=!0){return(0,xt.parse)(e,{noLocation:t})}function c7(e,t=!0){try{return{documentNode:tB(e,t)}}catch(n){return{error:n}}}});var iB=F(Ll=>{"use strict";m();T();N();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.AccumulatorMap=void 0;Ll.mapValue=wl;Ll.extendSchemaImpl=l7;var Be=Oe(),ws=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)}};Ll.AccumulatorMap=ws;function wl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function l7(e,t,n){var De,Ie,Le,St;let r=[],i=new ws,a=new ws,o=new ws,c=new ws,l=new ws,d=new ws,f=[],y,I=[],v=!1;for(let Q of t.definitions){switch(Q.kind){case Be.Kind.SCHEMA_DEFINITION:y=Q;break;case Be.Kind.SCHEMA_EXTENSION:I.push(Q);break;case Be.Kind.DIRECTIVE_DEFINITION:f.push(Q);break;case Be.Kind.SCALAR_TYPE_DEFINITION:case Be.Kind.OBJECT_TYPE_DEFINITION:case Be.Kind.INTERFACE_TYPE_DEFINITION:case Be.Kind.UNION_TYPE_DEFINITION:case Be.Kind.ENUM_TYPE_DEFINITION:case Be.Kind.INPUT_OBJECT_TYPE_DEFINITION:r.push(Q);break;case Be.Kind.SCALAR_TYPE_EXTENSION:i.add(Q.name.value,Q);break;case Be.Kind.OBJECT_TYPE_EXTENSION:a.add(Q.name.value,Q);break;case Be.Kind.INTERFACE_TYPE_EXTENSION:o.add(Q.name.value,Q);break;case Be.Kind.UNION_TYPE_EXTENSION:c.add(Q.name.value,Q);break;case Be.Kind.ENUM_TYPE_EXTENSION:l.add(Q.name.value,Q);break;case Be.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(Q.name.value,Q);break;default:continue}v=!0}if(!v)return e;let w=new Map;for(let Q of e.types){let ie=ne(Q);ie&&w.set(Q.name,ie)}for(let Q of r){let ie=Q.name.value;w.set(ie,(De=nB.get(ie))!=null?De:ae(Q))}for(let[Q,ie]of a)w.set(Q,new Be.GraphQLObjectType({name:Q,interfaces:()=>Ht(ie),fields:()=>En(ie),extensionASTNodes:ie}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[Q,ie]of o)w.set(Q,new Be.GraphQLInterfaceType({name:Q,interfaces:()=>Ht(ie),fields:()=>En(ie),extensionASTNodes:ie}));for(let[Q,ie]of l)w.set(Q,new Be.GraphQLEnumType({name:Q,values:Vn(ie),extensionASTNodes:ie}));for(let[Q,ie]of c)w.set(Q,new Be.GraphQLUnionType({name:Q,types:()=>Ln(ie),extensionASTNodes:ie}));for(let[Q,ie]of i)w.set(Q,new Be.GraphQLScalarType({name:Q,extensionASTNodes:ie}));for(let[Q,ie]of d)w.set(Q,new Be.GraphQLInputObjectType({name:Q,fields:()=>Mr(ie),extensionASTNodes:ie}))}let U=M(M({query:e.query&&Y(e.query),mutation:e.mutation&&Y(e.mutation),subscription:e.subscription&&Y(e.subscription)},y&&an([y])),an(I));return $(M({description:(Le=(Ie=y==null?void 0:y.description)==null?void 0:Ie.value)!=null?Le:e.description},U),{types:Array.from(w.values()),directives:[...e.directives.map(re),...f.map($t)],extensions:e.extensions,astNode:y!=null?y:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(I),assumeValid:(St=n==null?void 0:n.assumeValid)!=null?St:!1});function j(Q){return(0,Be.isListType)(Q)?new Be.GraphQLList(j(Q.ofType)):(0,Be.isNonNullType)(Q)?new Be.GraphQLNonNull(j(Q.ofType)):Y(Q)}function Y(Q){return w.get(Q.name)}function re(Q){if((0,Be.isSpecifiedDirective)(Q))return Q;let ie=Q.toConfig();return new Be.GraphQLDirective($(M({},ie),{args:wl(ie.args,vt)}))}function ne(Q){if((0,Be.isIntrospectionType)(Q)||(0,Be.isSpecifiedScalarType)(Q))return Q;if((0,Be.isScalarType)(Q))return Ae(Q);if((0,Be.isObjectType)(Q))return Me(Q);if((0,Be.isInterfaceType)(Q))return nt(Q);if((0,Be.isUnionType)(Q))return X(Q);if((0,Be.isEnumType)(Q))return ue(Q);if((0,Be.isInputObjectType)(Q))return me(Q)}function me(Q){var Ye;let ie=Q.toConfig(),xe=(Ye=d.get(ie.name))!=null?Ye:[];return new Be.GraphQLInputObjectType($(M({},ie),{fields:()=>M(M({},wl(ie.fields,Ut=>$(M({},Ut),{type:j(Ut.type)}))),Mr(xe)),extensionASTNodes:ie.extensionASTNodes.concat(xe)}))}function ue(Q){var Ye;let ie=Q.toConfig(),xe=(Ye=l.get(Q.name))!=null?Ye:[];return new Be.GraphQLEnumType($(M({},ie),{values:M(M({},ie.values),Vn(xe)),extensionASTNodes:ie.extensionASTNodes.concat(xe)}))}function Ae(Q){var Ut,rt;let ie=Q.toConfig(),xe=(Ut=i.get(ie.name))!=null?Ut:[],Ye=ie.specifiedByURL;for(let Ft of xe)Ye=(rt=rB(Ft))!=null?rt:Ye;return new Be.GraphQLScalarType($(M({},ie),{specifiedByURL:Ye,extensionASTNodes:ie.extensionASTNodes.concat(xe)}))}function Me(Q){var Ye;let ie=Q.toConfig(),xe=(Ye=a.get(ie.name))!=null?Ye:[];return new Be.GraphQLObjectType($(M({},ie),{interfaces:()=>[...Q.getInterfaces().map(Y),...Ht(xe)],fields:()=>M(M({},wl(ie.fields,_e)),En(xe)),extensionASTNodes:ie.extensionASTNodes.concat(xe)}))}function nt(Q){var Ye;let ie=Q.toConfig(),xe=(Ye=o.get(ie.name))!=null?Ye:[];return new Be.GraphQLInterfaceType($(M({},ie),{interfaces:()=>[...Q.getInterfaces().map(Y),...Ht(xe)],fields:()=>M(M({},wl(ie.fields,_e)),En(xe)),extensionASTNodes:ie.extensionASTNodes.concat(xe)}))}function X(Q){var Ye;let ie=Q.toConfig(),xe=(Ye=c.get(ie.name))!=null?Ye:[];return new Be.GraphQLUnionType($(M({},ie),{types:()=>[...Q.getTypes().map(Y),...Ln(xe)],extensionASTNodes:ie.extensionASTNodes.concat(xe)}))}function _e(Q){return $(M({},Q),{type:j(Q.type),args:Q.args&&wl(Q.args,vt)})}function vt(Q){return $(M({},Q),{type:j(Q.type)})}function an(Q){var xe;let ie={};for(let Ye of Q){let Ut=(xe=Ye.operationTypes)!=null?xe:[];for(let rt of Ut)ie[rt.operation]=sn(rt.type)}return ie}function sn(Q){var Ye;let ie=Q.name.value,xe=(Ye=nB.get(ie))!=null?Ye:w.get(ie);if(xe===void 0)throw new Error(`Unknown type: "${ie}".`);return xe}function wn(Q){return Q.kind===Be.Kind.LIST_TYPE?new Be.GraphQLList(wn(Q.type)):Q.kind===Be.Kind.NON_NULL_TYPE?new Be.GraphQLNonNull(wn(Q.type)):sn(Q)}function $t(Q){var ie;return new Be.GraphQLDirective({name:Q.name.value,description:(ie=Q.description)==null?void 0:ie.value,locations:Q.locations.map(({value:xe})=>xe),isRepeatable:Q.repeatable,args:kr(Q.arguments),astNode:Q})}function En(Q){var xe,Ye;let ie=Object.create(null);for(let Ut of Q){let rt=(xe=Ut.fields)!=null?xe:[];for(let Ft of rt)ie[Ft.name.value]={type:wn(Ft.type),description:(Ye=Ft.description)==null?void 0:Ye.value,args:kr(Ft.arguments),deprecationReason:rT(Ft),astNode:Ft}}return ie}function kr(Q){var Ye;let ie=Q!=null?Q:[],xe=Object.create(null);for(let Ut of ie){let rt=wn(Ut.type);xe[Ut.name.value]={type:rt,description:(Ye=Ut.description)==null?void 0:Ye.value,defaultValue:(0,Be.valueFromAST)(Ut.defaultValue,rt),deprecationReason:rT(Ut),astNode:Ut}}return xe}function Mr(Q){var xe,Ye;let ie=Object.create(null);for(let Ut of Q){let rt=(xe=Ut.fields)!=null?xe:[];for(let Ft of rt){let ds=wn(Ft.type);ie[Ft.name.value]={type:ds,description:(Ye=Ft.description)==null?void 0:Ye.value,defaultValue:(0,Be.valueFromAST)(Ft.defaultValue,ds),deprecationReason:rT(Ft),astNode:Ft}}}return ie}function Vn(Q){var xe,Ye;let ie=Object.create(null);for(let Ut of Q){let rt=(xe=Ut.values)!=null?xe:[];for(let Ft of rt)ie[Ft.name.value]={description:(Ye=Ft.description)==null?void 0:Ye.value,deprecationReason:rT(Ft),astNode:Ft}}return ie}function Ht(Q){return Q.flatMap(ie=>{var xe,Ye;return(Ye=(xe=ie.interfaces)==null?void 0:xe.map(sn))!=null?Ye:[]})}function Ln(Q){return Q.flatMap(ie=>{var xe,Ye;return(Ye=(xe=ie.types)==null?void 0:xe.map(sn))!=null?Ye:[]})}function ae(Q){var xe,Ye,Ut,rt,Ft,ds,Hr,ps,Wc,Pa,Ir,ci;let ie=Q.name.value;switch(Q.kind){case Be.Kind.OBJECT_TYPE_DEFINITION:{let qt=(xe=a.get(ie))!=null?xe:[],gr=[Q,...qt];return a.delete(ie),new Be.GraphQLObjectType({name:ie,description:(Ye=Q.description)==null?void 0:Ye.value,interfaces:()=>Ht(gr),fields:()=>En(gr),astNode:Q,extensionASTNodes:qt})}case Be.Kind.INTERFACE_TYPE_DEFINITION:{let qt=(Ut=o.get(ie))!=null?Ut:[],gr=[Q,...qt];return o.delete(ie),new Be.GraphQLInterfaceType({name:ie,description:(rt=Q.description)==null?void 0:rt.value,interfaces:()=>Ht(gr),fields:()=>En(gr),astNode:Q,extensionASTNodes:qt})}case Be.Kind.ENUM_TYPE_DEFINITION:{let qt=(Ft=l.get(ie))!=null?Ft:[],gr=[Q,...qt];return l.delete(ie),new Be.GraphQLEnumType({name:ie,description:(ds=Q.description)==null?void 0:ds.value,values:Vn(gr),astNode:Q,extensionASTNodes:qt})}case Be.Kind.UNION_TYPE_DEFINITION:{let qt=(Hr=c.get(ie))!=null?Hr:[],gr=[Q,...qt];return c.delete(ie),new Be.GraphQLUnionType({name:ie,description:(ps=Q.description)==null?void 0:ps.value,types:()=>Ln(gr),astNode:Q,extensionASTNodes:qt})}case Be.Kind.SCALAR_TYPE_DEFINITION:{let qt=(Wc=i.get(ie))!=null?Wc:[];return i.delete(ie),new Be.GraphQLScalarType({name:ie,description:(Pa=Q.description)==null?void 0:Pa.value,specifiedByURL:rB(Q),astNode:Q,extensionASTNodes:qt})}case Be.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let qt=(Ir=d.get(ie))!=null?Ir:[],gr=[Q,...qt];return d.delete(ie),new Be.GraphQLInputObjectType({name:ie,description:(ci=Q.description)==null?void 0:ci.value,fields:()=>Mr(gr),astNode:Q,extensionASTNodes:qt})}}}}var nB=new Map([...Be.specifiedScalarTypes,...Be.introspectionTypes].map(e=>[e.name,e]));function rT(e){let t=(0,Be.getDirectiveValues)(Be.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function rB(e){let t=(0,Be.getDirectiveValues)(Be.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var Xv=F(Wv=>{"use strict";m();T();N();Object.defineProperty(Wv,"__esModule",{value:!0});Wv.buildASTSchema=f7;var aB=Oe(),d7=Rl(),p7=iB();function f7(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,d7.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,p7.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,...aB.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new aB.GraphQLSchema($(M({},r),{directives:i}))}});var Cl=F(Iu=>{"use strict";m();T();N();Object.defineProperty(Iu,"__esModule",{value:!0});Iu.MAX_INT32=Iu.MAX_SUBSCRIPTION_FILTER_DEPTH=Iu.MAXIMUM_TYPE_NESTING=void 0;Iu.MAXIMUM_TYPE_NESTING=30;Iu.MAX_SUBSCRIPTION_FILTER_DEPTH=5;Iu.MAX_INT32=ln(2,31)-1});var Fr=F(or=>{"use strict";m();T();N();Object.defineProperty(or,"__esModule",{value:!0});or.getOrThrowError=N7;or.getEntriesNotInHashSet=T7;or.numberToOrdinal=E7;or.addIterableToSet=h7;or.addOptionalIterableToSet=y7;or.addSets=I7;or.kindToNodeType=g7;or.getValueOrDefault=_7;or.add=v7;or.generateSimpleDirective=O7;or.generateRequiresScopesDirective=S7;or.generateSemanticNonNullDirective=D7;or.copyObjectValueMap=b7;or.addNewObjectValueMapEntries=A7;or.copyArrayValueMap=R7;or.addMapEntries=P7;or.getFirstEntry=F7;var jt=Oe(),Nr=sr(),m7=Gi(),kp=Pr();function N7(e,t,n){let r=e.get(t);if(r===void 0)throw(0,m7.invalidKeyFatalError)(t,n);return r}function T7(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function E7(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 h7({source:e,target:t}){for(let n of e)t.add(n)}function y7({source:e,target:t}){if(e)for(let n of e)t.add(n)}function I7(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function g7(e){switch(e){case jt.Kind.BOOLEAN:return Nr.BOOLEAN_SCALAR;case jt.Kind.ENUM:case jt.Kind.ENUM_TYPE_DEFINITION:return Nr.ENUM;case jt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case jt.Kind.ENUM_VALUE_DEFINITION:return Nr.ENUM_VALUE;case jt.Kind.FIELD_DEFINITION:return Nr.FIELD;case jt.Kind.FLOAT:return Nr.FLOAT_SCALAR;case jt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return Nr.INPUT_OBJECT;case jt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case jt.Kind.INPUT_VALUE_DEFINITION:return Nr.INPUT_VALUE;case jt.Kind.INT:return Nr.INT_SCALAR;case jt.Kind.INTERFACE_TYPE_DEFINITION:return Nr.INTERFACE;case jt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case jt.Kind.NULL:return Nr.NULL;case jt.Kind.OBJECT:case jt.Kind.OBJECT_TYPE_DEFINITION:return Nr.OBJECT;case jt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case jt.Kind.STRING:return Nr.STRING_SCALAR;case jt.Kind.SCALAR_TYPE_DEFINITION:return Nr.SCALAR;case jt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case jt.Kind.UNION_TYPE_DEFINITION:return Nr.UNION;case jt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function _7(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function v7(e,t){return e.has(t)?!1:(e.add(t),!0)}function O7(e){return{kind:jt.Kind.DIRECTIVE,name:(0,kp.stringToNameNode)(e)}}function S7(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:jt.Kind.STRING,value:i});t.push({kind:jt.Kind.LIST,values:r})}return{kind:jt.Kind.DIRECTIVE,name:(0,kp.stringToNameNode)(Nr.REQUIRES_SCOPES),arguments:[{kind:jt.Kind.ARGUMENT,name:(0,kp.stringToNameNode)(Nr.SCOPES),value:{kind:jt.Kind.LIST,values:t}}]}}function D7(e){let t=Array.from(e).sort((r,i)=>r-i),n=new Array;for(let r of t)n.push({kind:jt.Kind.INT,value:r.toString()});return{kind:jt.Kind.DIRECTIVE,name:(0,kp.stringToNameNode)(Nr.SEMANTIC_NON_NULL),arguments:[{kind:jt.Kind.ARGUMENT,name:(0,kp.stringToNameNode)(Nr.LEVELS),value:{kind:jt.Kind.LIST,values:n}}]}}function b7(e){let t=new Map;for(let[n,r]of e)t.set(n,M({},r));return t}function A7(e,t){for(let[n,r]of e)t.set(n,M({},r))}function R7(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function P7({source:e,target:t}){for(let[n,r]of e)t.set(n,r)}function F7(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Mp=F(iT=>{"use strict";m();T();N();Object.defineProperty(iT,"__esModule",{value:!0});iT.ExtensionType=void 0;var sB;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(sB||(iT.ExtensionType=sB={}))});var gu=F(Lr=>{"use strict";m();T();N();Object.defineProperty(Lr,"__esModule",{value:!0});Lr.getMutableDirectiveDefinitionNode=L7;Lr.getMutableEnumNode=C7;Lr.getMutableEnumValueNode=B7;Lr.getMutableFieldNode=U7;Lr.getMutableInputObjectNode=k7;Lr.getMutableInputValueNode=M7;Lr.getMutableInterfaceNode=x7;Lr.getMutableObjectNode=q7;Lr.getMutableObjectExtensionNode=V7;Lr.getMutableScalarNode=j7;Lr.getMutableTypeNode=Zv;Lr.getMutableUnionNode=K7;Lr.getTypeNodeNamedTypeName=eO;Lr.getNamedTypeNode=uB;var wr=Oe(),Bl=Pr(),oB=Gi(),w7=Cl();function L7(e){return{arguments:[],kind:e.kind,locations:[],name:M({},e.name),repeatable:e.repeatable,description:(0,Bl.formatDescription)(e.description)}}function C7(e){return{kind:wr.Kind.ENUM_TYPE_DEFINITION,name:M({},e)}}function B7(e){return{directives:[],kind:e.kind,name:M({},e.name),description:(0,Bl.formatDescription)(e.description)}}function U7(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:M({},e.name),type:Zv(e.type,t,n),description:(0,Bl.formatDescription)(e.description)}}function k7(e){return{kind:wr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:M({},e)}}function M7(e,t,n){return{directives:[],kind:e.kind,name:M({},e.name),type:Zv(e.type,t,n),defaultValue:e.defaultValue,description:(0,Bl.formatDescription)(e.description)}}function x7(e){return{kind:wr.Kind.INTERFACE_TYPE_DEFINITION,name:M({},e)}}function q7(e){return{kind:wr.Kind.OBJECT_TYPE_DEFINITION,name:M({},e)}}function V7(e){let t=e.kind===wr.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:wr.Kind.OBJECT_TYPE_EXTENSION,name:M({},e.name),description:(0,Bl.formatDescription)(t)}}function j7(e){return{kind:wr.Kind.SCALAR_TYPE_DEFINITION,name:M({},e)}}function Zv(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(Ul,"__esModule",{value:!0});Ul.REQUIRED_FIELDSET_TYPE_NODE=Ul.REQUIRED_STRING_TYPE_NODE=void 0;var cB=Oe(),lB=Pr(),dB=sr();Ul.REQUIRED_STRING_TYPE_NODE={kind:cB.Kind.NON_NULL_TYPE,type:(0,lB.stringToNamedTypeNode)(dB.STRING_SCALAR)};Ul.REQUIRED_FIELDSET_TYPE_NODE={kind:cB.Kind.NON_NULL_TYPE,type:(0,lB.stringToNamedTypeNode)(dB.FIELD_SET_SCALAR)}});var xp=F(Ve=>{"use strict";m();T();N();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.TAG_DEFINITION=Ve.SUBSCRIPTION_FILTER_DEFINITION=Ve.SPECIFIED_BY_DEFINITION=Ve.SHAREABLE_DEFINITION=Ve.SEMANTIC_NON_NULL_DEFINITION=Ve.REQUIRES_SCOPES_DEFINITION=Ve.REQUIRES_DEFINITION=Ve.REQUIRE_FETCH_REASONS_DEFINITION=Ve.PROVIDES_DEFINITION=Ve.OVERRIDE_DEFINITION=Ve.ONE_OF_DEFINITION=Ve.LINK_DEFINITION=Ve.KEY_DEFINITION=Ve.INTERFACE_OBJECT_DEFINITION=Ve.INACCESSIBLE_DEFINITION=Ve.EDFS_REDIS_SUBSCRIBE_DEFINITION=Ve.EDFS_REDIS_PUBLISH_DEFINITION=Ve.EDFS_NATS_SUBSCRIBE_DEFINITION=Ve.EDFS_NATS_REQUEST_DEFINITION=Ve.EDFS_NATS_PUBLISH_DEFINITION=Ve.EDFS_KAFKA_SUBSCRIBE_DEFINITION=Ve.EDFS_KAFKA_PUBLISH_DEFINITION=Ve.EXTERNAL_DEFINITION=Ve.EXTENDS_DEFINITION=Ve.DEPRECATED_DEFINITION=Ve.CONNECT_FIELD_RESOLVER_DEFINITION=Ve.CONFIGURE_DESCRIPTION_DEFINITION=Ve.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=Ve.COMPOSE_DIRECTIVE_DEFINITION=Ve.AUTHENTICATED_DEFINITION=void 0;var Ee=Oe(),fe=Pr(),H=sr(),vr=aT();Ve.AUTHENTICATED_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,fe.stringToNameNode)(H.AUTHENTICATED),repeatable:!1};Ve.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.NAME),type:vr.REQUIRED_STRING_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,fe.stringToNameNode)(H.COMPOSE_DIRECTIVE),repeatable:!0};Ve.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROPAGATE),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR)},defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,fe.stringToNameNode)(H.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};Ve.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROPAGATE),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR)},defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}},{directives:[],kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.DESCRIPTION_OVERRIDE),type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR)}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.INPUT_OBJECT_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.SCHEMA_UPPER,H.UNION_UPPER]),name:(0,fe.stringToNameNode)(H.CONFIGURE_DESCRIPTION),repeatable:!1};Ve.CONNECT_FIELD_RESOLVER_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.CONTEXT),type:vr.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,fe.stringToNameNode)(H.CONNECT_FIELD_RESOLVER),repeatable:!1};Ve.DEPRECATED_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.REASON),type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR),defaultValue:{kind:Ee.Kind.STRING,value:Ee.DEFAULT_DEPRECATION_REASON}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER]),name:(0,fe.stringToNameNode)(H.DEPRECATED),repeatable:!1};Ve.EXTENDS_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,fe.stringToNameNode)(H.EXTENDS),repeatable:!1};Ve.EXTERNAL_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,fe.stringToNameNode)(H.EXTERNAL),repeatable:!1};Ve.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.TOPIC),type:vr.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROVIDER_ID),type:vr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.EDFS_KAFKA_PUBLISH),repeatable:!1};Ve.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.TOPICS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:vr.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROVIDER_ID),type:vr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};Ve.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.SUBJECT),type:vr.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROVIDER_ID),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.EDFS_NATS_PUBLISH),repeatable:!1};Ve.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.SUBJECT),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROVIDER_ID),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.EDFS_NATS_REQUEST),repeatable:!1};Ve.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.SUBJECTS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:vr.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROVIDER_ID),type:vr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.STREAM_CONFIGURATION),type:(0,fe.stringToNamedTypeNode)(H.EDFS_NATS_STREAM_CONFIGURATION)}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.EDFS_NATS_SUBSCRIBE),repeatable:!1};Ve.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.CHANNEL),type:vr.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROVIDER_ID),type:vr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.EDFS_REDIS_PUBLISH),repeatable:!1};Ve.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.CHANNELS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:vr.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.PROVIDER_ID),type:vr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.EDFS_REDIS_SUBSCRIBE),repeatable:!1};Ve.INACCESSIBLE_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,fe.stringToNameNode)(H.INACCESSIBLE),repeatable:!1};Ve.INTERFACE_OBJECT_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.OBJECT_UPPER]),name:(0,fe.stringToNameNode)(H.INTERFACE_OBJECT),repeatable:!1};Ve.KEY_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.FIELDS),type:vr.REQUIRED_FIELDSET_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.RESOLVABLE),type:(0,fe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR),defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,fe.stringToNameNode)(H.KEY),repeatable:!0};Ve.LINK_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.URL_LOWER),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.AS),type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR)},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.FOR),type:(0,fe.stringToNamedTypeNode)(H.LINK_PURPOSE)},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.IMPORT),type:{kind:Ee.Kind.LIST_TYPE,type:(0,fe.stringToNamedTypeNode)(H.LINK_IMPORT)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,fe.stringToNameNode)(H.LINK),repeatable:!0};Ve.ONE_OF_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.INPUT_OBJECT_UPPER]),name:(0,fe.stringToNameNode)(H.ONE_OF),repeatable:!1};Ve.OVERRIDE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.FROM),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,fe.stringToNameNode)(H.OVERRIDE),repeatable:!1};Ve.PROVIDES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.FIELDS),type:vr.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.PROVIDES),repeatable:!1};Ve.REQUIRE_FETCH_REASONS_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,fe.stringToNameNode)(H.REQUIRE_FETCH_REASONS),repeatable:!0};Ve.REQUIRES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.FIELDS),type:vr.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.REQUIRES),repeatable:!1};Ve.REQUIRES_SCOPES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.SCOPES),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.SCOPE_SCALAR)}}}}}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,fe.stringToNameNode)(H.REQUIRES_SCOPES),repeatable:!1};Ve.SEMANTIC_NON_NULL_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.LEVELS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.INT_SCALAR)}}},defaultValue:{kind:Ee.Kind.LIST,values:[{kind:Ee.Kind.INT,value:"0"}]}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,fe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,fe.stringToNameNode)(H.SEMANTIC_NON_NULL),repeatable:!1};Ve.SHAREABLE_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,fe.stringToNameNode)(H.SHAREABLE),repeatable:!0};Ve.SPECIFIED_BY_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.URL_LOWER),type:vr.REQUIRED_STRING_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.SCALAR_UPPER]),name:(0,fe.stringToNameNode)(H.SPECIFIED_BY),repeatable:!1};Ve.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.CONDITION),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,fe.stringToNameNode)(H.SUBSCRIPTION_FILTER),repeatable:!1};Ve.TAG_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,fe.stringToNameNode)(H.NAME),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,fe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,fe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,fe.stringToNameNode)(H.TAG),repeatable:!0}});var _u=F($i=>{"use strict";m();T();N();Object.defineProperty($i,"__esModule",{value:!0});$i.MAX_OR_SCOPES=$i.EDFS_ARGS_REGEXP=$i.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=$i.BASE_SCALARS=$i.DIRECTIVE_DEFINITION_BY_NAME=void 0;var ut=sr(),Ot=xp();$i.DIRECTIVE_DEFINITION_BY_NAME=new Map([[ut.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[ut.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[ut.CONFIGURE_DESCRIPTION,Ot.CONFIGURE_DESCRIPTION_DEFINITION],[ut.CONFIGURE_CHILD_DESCRIPTIONS,Ot.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION],[ut.CONNECT_FIELD_RESOLVER,Ot.CONNECT_FIELD_RESOLVER_DEFINITION],[ut.DEPRECATED,Ot.DEPRECATED_DEFINITION],[ut.EDFS_KAFKA_PUBLISH,Ot.EDFS_KAFKA_PUBLISH_DEFINITION],[ut.EDFS_KAFKA_SUBSCRIBE,Ot.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[ut.EDFS_NATS_PUBLISH,Ot.EDFS_NATS_PUBLISH_DEFINITION],[ut.EDFS_NATS_REQUEST,Ot.EDFS_NATS_REQUEST_DEFINITION],[ut.EDFS_NATS_SUBSCRIBE,Ot.EDFS_NATS_SUBSCRIBE_DEFINITION],[ut.EDFS_REDIS_PUBLISH,Ot.EDFS_REDIS_PUBLISH_DEFINITION],[ut.EDFS_REDIS_SUBSCRIBE,Ot.EDFS_REDIS_SUBSCRIBE_DEFINITION],[ut.EXTENDS,Ot.EXTENDS_DEFINITION],[ut.EXTERNAL,Ot.EXTERNAL_DEFINITION],[ut.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[ut.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[ut.KEY,Ot.KEY_DEFINITION],[ut.LINK,Ot.LINK_DEFINITION],[ut.ONE_OF,Ot.ONE_OF_DEFINITION],[ut.OVERRIDE,Ot.OVERRIDE_DEFINITION],[ut.PROVIDES,Ot.PROVIDES_DEFINITION],[ut.REQUIRE_FETCH_REASONS,Ot.REQUIRE_FETCH_REASONS_DEFINITION],[ut.REQUIRES,Ot.REQUIRES_DEFINITION],[ut.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[ut.SEMANTIC_NON_NULL,Ot.SEMANTIC_NON_NULL_DEFINITION],[ut.SHAREABLE,Ot.SHAREABLE_DEFINITION],[ut.SPECIFIED_BY,Ot.SPECIFIED_BY_DEFINITION],[ut.SUBSCRIPTION_FILTER,Ot.SUBSCRIPTION_FILTER_DEFINITION],[ut.TAG,Ot.TAG_DEFINITION]]);$i.BASE_SCALARS=new Set(["_Any","_Entities",ut.BOOLEAN_SCALAR,ut.FLOAT_SCALAR,ut.ID_SCALAR,ut.INT_SCALAR,ut.FIELD_SET_SCALAR,ut.SCOPE_SCALAR,ut.STRING_SCALAR]);$i.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[ut.AUTHENTICATED,Ot.AUTHENTICATED_DEFINITION],[ut.COMPOSE_DIRECTIVE,Ot.COMPOSE_DIRECTIVE_DEFINITION],[ut.INACCESSIBLE,Ot.INACCESSIBLE_DEFINITION],[ut.INTERFACE_OBJECT,Ot.INTERFACE_OBJECT_DEFINITION],[ut.LINK,Ot.LINK_DEFINITION],[ut.OVERRIDE,Ot.OVERRIDE_DEFINITION],[ut.REQUIRES_SCOPES,Ot.REQUIRES_SCOPES_DEFINITION],[ut.SHAREABLE,Ot.SHAREABLE_DEFINITION]]);$i.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;$i.MAX_OR_SCOPES=16});var sT=F(hc=>{"use strict";m();T();N();Object.defineProperty(hc,"__esModule",{value:!0});hc.newParentTagData=Y7;hc.newChildTagData=J7;hc.validateImplicitFieldSets=H7;hc.newContractTagOptionsFromArrays=z7;hc.getDescriptionFromString=W7;var ri=Oe(),G7=gu(),$7=_u(),Q7=Pr(),pB=Fr();function Y7(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function J7(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function H7({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,pB.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,d]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let f=[i],y=[],I=[],v=-1,w=!0,U=!0;(0,ri.visit)(d,{Argument:{enter(){return U=!1,ri.BREAK}},Field:{enter(j){let Y=f[v];if(w)return U=!1,ri.BREAK;let re=j.name.value,ne=Y.fieldDataByName.get(re);if(!ne||ne.argumentDataByName.size||y[v].has(re))return U=!1,ri.BREAK;let{isUnconditionallyProvided:me}=(0,pB.getOrThrowError)(ne.externalFieldDataBySubgraphName,t,`${ne.originalParentTypeName}.${re}.externalFieldDataBySubgraphName`),ue=e.get(`${ne.renamedParentTypeName}.${re}`);if(ue){if(ue.providedBy.length>0)I.push(...ue.providedBy);else if(ue.requiredBy.length>0)return U=!1,ri.BREAK}else if(!me)return U=!1,ri.BREAK;y[v].add(re);let Ae=(0,G7.getTypeNodeNamedTypeName)(ne.node.type);if($7.BASE_SCALARS.has(Ae))return;let Me=a.get(Ae);if(!Me)return U=!1,ri.BREAK;if(Me.kind===ri.Kind.OBJECT_TYPE_DEFINITION){w=!0,f.push(Me);return}if((0,Q7.isKindAbstract)(Me.kind))return U=!1,ri.BREAK}},InlineFragment:{enter(){return U=!1,ri.BREAK}},SelectionSet:{enter(){if(!w||(v+=1,w=!1,v<0||v>=f.length))return U=!1,ri.BREAK;y.push(new Set)},leave(){if(w)return U=!1,ri.BREAK;v-=1,f.pop(),y.pop()}}}),U&&(r.push($(M({fieldName:"",selectionSet:l},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function z7(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function W7(e){if(e)return{block:!0,kind:ri.Kind.STRING,value:e}}});var kl=F(Nt=>{"use strict";m();T();N();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.MergeMethod=void 0;Nt.newPersistedDirectivesData=Z7;Nt.isNodeExternalOrShareable=eZ;Nt.isTypeRequired=tZ;Nt.areDefaultValuesCompatible=mB;Nt.compareAndValidateInputValueDefaultValues=nZ;Nt.setMutualExecutableLocations=rZ;Nt.isTypeNameRootType=iZ;Nt.getRenamedRootTypeName=aZ;Nt.childMapToValueArray=oZ;Nt.setLongestDescription=uZ;Nt.isParentDataRootType=NB;Nt.isInterfaceDefinitionData=cZ;Nt.setParentDataExtensionType=lZ;Nt.upsertDeprecatedDirective=dZ;Nt.upsertTagDirectives=pZ;Nt.propagateAuthDirectives=fZ;Nt.propagateFieldAuthDirectives=mZ;Nt.generateDeprecatedDirective=iO;Nt.getClientPersistedDirectiveNodes=nO;Nt.getClientSchemaFieldNodeByFieldData=EZ;Nt.getNodeWithPersistedDirectivesByInputValueData=TB;Nt.addValidPersistedDirectiveDefinitionNodeByData=yZ;Nt.newInvalidFieldNames=IZ;Nt.validateExternalAndShareable=gZ;Nt.isTypeValidImplementation=oT;Nt.isNodeDataInaccessible=EB;Nt.isLeafKind=_Z;Nt.getSubscriptionFilterValue=vZ;Nt.getParentTypeName=OZ;Nt.newConditionalFieldData=SZ;Nt.getDefinitionDataCoords=DZ;Nt.isParentDataCompositeOutputType=bZ;Nt.newExternalFieldData=AZ;Nt.getInitialFederatedDescription=RZ;Nt.areKindsEqual=PZ;Nt.isFieldData=aO;Nt.isInputObjectDefinitionData=FZ;Nt.isInputNodeKind=wZ;Nt.isOutputNodeKind=LZ;var st=Oe(),tO=Mp(),qp=Pr(),rO=Gi(),Zt=sr(),yc=Fr(),X7=sT();function Z7(){return{deprecatedReason:"",directivesByDirectiveName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function eZ(e,t,n){var i;let r={isExternal:n.has(Zt.EXTERNAL),isShareable:t||n.has(Zt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===Zt.EXTERNAL){r.isExternal=!0;continue}o===Zt.SHAREABLE&&(r.isShareable=!0)}return r}function tZ(e){return e.kind===st.Kind.NON_NULL_TYPE}function mB(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 Zt.BOOLEAN_SCALAR:return t.kind===st.Kind.BOOLEAN;case Zt.FLOAT_SCALAR:return t.kind===st.Kind.INT||t.kind===st.Kind.FLOAT;case Zt.INT_SCALAR:return t.kind===st.Kind.INT;case Zt.STRING_SCALAR:return t.kind===st.Kind.STRING;default:return!0}case st.Kind.NON_NULL_TYPE:return t.kind===st.Kind.NULL?!1:mB(e.type,t)}}function nZ(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,rO.incompatibleInputValueDefaultValuesError)(`${e.isArgument?Zt.ARGUMENT:Zt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function rZ(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function iZ(e,t){return Zt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function aZ(e,t){let n=t.get(e);if(!n)return e;switch(n){case st.OperationTypeNode.MUTATION:return Zt.MUTATION;case st.OperationTypeNode.SUBSCRIPTION:return Zt.SUBSCRIPTION;default:return Zt.QUERY}}function sZ(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 oZ(e){let t=[];for(let n of e.values()){aO(n)&&sZ(n);for(let r of n.directivesByDirectiveName.values())n.node.directives.push(...r);t.push(n.node)}return t}function uZ(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(Zt.REQUIRES_SCOPES,[(0,yc.generateRequiresScopesDirective)(t.requiredScopes)]))}function mZ(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByDirectiveName.set(Zt.AUTHENTICATED,[(0,yc.generateSimpleDirective)(Zt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByDirectiveName.set(Zt.REQUIRES_SCOPES,[(0,yc.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function iO(e){return{kind:st.Kind.DIRECTIVE,name:(0,qp.stringToNameNode)(Zt.DEPRECATED),arguments:[{kind:st.Kind.ARGUMENT,name:(0,qp.stringToNameNode)(Zt.REASON),value:{kind:st.Kind.STRING,value:e||Zt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function NZ(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,rO.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function TZ(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(iO(e.persistedDirectivesData.deprecatedReason)),r.push(...NZ(e.persistedDirectivesData.directivesByDirectiveName,t,e.name,n)),r}function nO(e){var n;let t=[];e.persistedDirectivesData.isDeprecated&&t.push(iO(e.persistedDirectivesData.deprecatedReason));for(let[r,i]of e.persistedDirectivesData.directivesByDirectiveName){if(r===Zt.SEMANTIC_NON_NULL&&aO(e)){t.push((0,yc.generateSemanticNonNullDirective)((n=(0,yc.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?n:new Set([0])));continue}Zt.PERSISTED_CLIENT_DIRECTIVES.has(r)&&t.push(i[0])}return t}function EZ(e){let t=nO(e),n=[];for(let r of e.argumentDataByName.values())EB(r)||n.push($(M({},r.node),{directives:nO(r)}));return $(M({},e.node),{directives:t,arguments:n})}function TB(e,t,n){return e.node.name=(0,qp.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=TZ(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function hZ(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByName){let l=(0,yc.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(TB(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,rO.invalidRequiredInputValueError)(Zt.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function yZ(e,t,n,r){let i=[];hZ(i,t,n,r)&&e.push({arguments:i,kind:st.Kind.DIRECTIVE_DEFINITION,locations:(0,qp.setToNameNodeArray)(t.executableLocations),name:(0,qp.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function IZ(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function gZ(e,t){let n=e.isShareableBySubgraphName.size,r=new Array,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 fB;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(fB||(Nt.MergeMethod=fB={}));function oT(e,t,n){if(e.kind===st.Kind.NON_NULL_TYPE)return t.kind!==st.Kind.NON_NULL_TYPE?!1:oT(e.type,t.type,n);if(t.kind===st.Kind.NON_NULL_TYPE)return oT(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?oT(e.type,t.type,n):!1}}function EB(e){return e.persistedDirectivesData.directivesByDirectiveName.has(Zt.INACCESSIBLE)||e.directivesByDirectiveName.has(Zt.INACCESSIBLE)}function _Z(e){return e===st.Kind.SCALAR_TYPE_DEFINITION||e===st.Kind.ENUM_TYPE_DEFINITION}function vZ(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 OZ(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function SZ(){return{providedBy:[],requiredBy:[]}}function DZ(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 bZ(e){return e.kind===st.Kind.OBJECT_TYPE_DEFINITION||e.kind===st.Kind.INTERFACE_TYPE_DEFINITION}function AZ(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function RZ(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,X7.getDescriptionFromString)(t.description)||e.description}function PZ(e,t){return e.kind===t.kind}function aO(e){return e.kind===st.Kind.FIELD_DEFINITION}function FZ(e){return e.kind===st.Kind.INPUT_OBJECT_TYPE_DEFINITION}function wZ(e){return Zt.INPUT_NODE_KINDS.has(e)}function LZ(e){return Zt.OUTPUT_NODE_KINDS.has(e)}});var uO={};Pm(uO,{__addDisposableResource:()=>MB,__assign:()=>uT,__asyncDelegator:()=>PB,__asyncGenerator:()=>RB,__asyncValues:()=>FB,__await:()=>Ml,__awaiter:()=>vB,__classPrivateFieldGet:()=>BB,__classPrivateFieldIn:()=>kB,__classPrivateFieldSet:()=>UB,__createBinding:()=>lT,__decorate:()=>IB,__disposeResources:()=>xB,__esDecorate:()=>CZ,__exportStar:()=>SB,__extends:()=>hB,__generator:()=>OB,__importDefault:()=>CB,__importStar:()=>LB,__makeTemplateObject:()=>wB,__metadata:()=>_B,__param:()=>gB,__propKey:()=>UZ,__read:()=>oO,__rest:()=>yB,__runInitializers:()=>BZ,__setFunctionName:()=>kZ,__spread:()=>DB,__spreadArray:()=>AB,__spreadArrays:()=>bB,__values:()=>cT,default:()=>qZ});function hB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sO(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function yB(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 gB(e,t){return function(n,r){t(n,r,e)}}function CZ(e,t,n,r,i,a){function o(Y){if(Y!==void 0&&typeof Y!="function")throw new TypeError("Function expected");return Y}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,f=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,I=!1,v=n.length-1;v>=0;v--){var w={};for(var U in r)w[U]=U==="access"?{}:r[U];for(var U in r.access)w.access[U]=r.access[U];w.addInitializer=function(Y){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(Y||null))};var j=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],w);if(c==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(y=o(j.get))&&(f.get=y),(y=o(j.set))&&(f.set=y),(y=o(j.init))&&i.unshift(y)}else(y=o(j))&&(c==="field"?i.unshift(y):f[l]=y)}d&&Object.defineProperty(d,r.name,f),I=!0}function BZ(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[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 oO(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 DB(){for(var e=[],t=0;t1||c(I,v)})})}function c(I,v){try{l(r[I](v))}catch(w){y(a[0][3],w)}}function l(I){I.value instanceof Ml?Promise.resolve(I.value.v).then(d,f):y(a[0][2],I)}function d(I){c("next",I)}function f(I){c("throw",I)}function y(I,v){I(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function PB(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:Ml(e[i](o)),done:!1}:a?a(o):o}:a}}function FB(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 cT=="function"?cT(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(d){a({value:d,done:c})},o)}}function wB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function LB(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)&&lT(t,e,n);return MZ(t,e),t}function CB(e){return e&&e.__esModule?e:{default:e}}function BB(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 UB(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 kB(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 MB(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 xB(e){function t(r){e.error=e.hasError?new xZ(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 sO,uT,lT,MZ,xZ,qZ,cO=Hu(()=>{"use strict";m();T();N();sO=function(e,t){return sO=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])},sO(e,t)};uT=function(){return uT=Object.assign||function(t){for(var n,r=1,i=arguments.length;rsU,__assign:()=>dT,__asyncDelegator:()=>XB,__asyncGenerator:()=>WB,__asyncValues:()=>ZB,__await:()=>xl,__awaiter:()=>$B,__classPrivateFieldGet:()=>rU,__classPrivateFieldIn:()=>aU,__classPrivateFieldSet:()=>iU,__createBinding:()=>fT,__decorate:()=>jB,__disposeResources:()=>oU,__esDecorate:()=>VZ,__exportStar:()=>YB,__extends:()=>qB,__generator:()=>QB,__importDefault:()=>nU,__importStar:()=>tU,__makeTemplateObject:()=>eU,__metadata:()=>GB,__param:()=>KB,__propKey:()=>KZ,__read:()=>dO,__rest:()=>VB,__runInitializers:()=>jZ,__setFunctionName:()=>GZ,__spread:()=>JB,__spreadArray:()=>zB,__spreadArrays:()=>HB,__values:()=>pT,default:()=>YZ});function qB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lO(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function VB(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 KB(e,t){return function(n,r){t(n,r,e)}}function VZ(e,t,n,r,i,a){function o(Y){if(Y!==void 0&&typeof Y!="function")throw new TypeError("Function expected");return Y}for(var c=r.kind,l=c==="getter"?"get":c==="setter"?"set":"value",d=!t&&e?r.static?e:e.prototype:null,f=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),y,I=!1,v=n.length-1;v>=0;v--){var w={};for(var U in r)w[U]=U==="access"?{}:r[U];for(var U in r.access)w.access[U]=r.access[U];w.addInitializer=function(Y){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(Y||null))};var j=(0,n[v])(c==="accessor"?{get:f.get,set:f.set}:f[l],w);if(c==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(y=o(j.get))&&(f.get=y),(y=o(j.set))&&(f.set=y),(y=o(j.init))&&i.unshift(y)}else(y=o(j))&&(c==="field"?i.unshift(y):f[l]=y)}d&&Object.defineProperty(d,r.name,f),I=!0}function jZ(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[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 dO(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 JB(){for(var e=[],t=0;t1||c(I,v)})})}function c(I,v){try{l(r[I](v))}catch(w){y(a[0][3],w)}}function l(I){I.value instanceof xl?Promise.resolve(I.value.v).then(d,f):y(a[0][2],I)}function d(I){c("next",I)}function f(I){c("throw",I)}function y(I,v){I(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function XB(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:xl(e[i](o)),done:!1}:a?a(o):o}:a}}function ZB(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 pT=="function"?pT(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(d){a({value:d,done:c})},o)}}function eU(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function tU(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)&&fT(t,e,n);return $Z(t,e),t}function nU(e){return e&&e.__esModule?e:{default:e}}function rU(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 iU(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 aU(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 sU(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 oU(e){function t(r){e.error=e.hasError?new QZ(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 lO,dT,fT,$Z,QZ,YZ,cU=Hu(()=>{"use strict";m();T();N();lO=function(e,t){return lO=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])},lO(e,t)};dT=function(){return dT=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var Vp=F(Tr=>{"use strict";m();T();N();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.assertSome=Tr.isSome=Tr.compareNodes=Tr.nodeToString=Tr.compareStrings=Tr.isValidPath=Tr.isDocumentString=Tr.asArray=void 0;var JZ=Oe(),HZ=e=>Array.isArray(e)?e:e?[e]:[];Tr.asArray=HZ;var zZ=/\.[a-z0-9]+$/i;function WZ(e){if(typeof e!="string"||zZ.test(e))return!1;try{return(0,JZ.parse)(e),!0}catch(t){}return!1}Tr.isDocumentString=WZ;var XZ=/[‘“!%^<>`]/;function ZZ(e){return typeof e=="string"&&!XZ.test(e)}Tr.isValidPath=ZZ;function dU(e,t){return String(e)String(t)?1:0}Tr.compareStrings=dU;function pO(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}Tr.nodeToString=pO;function eee(e,t,n){let r=pO(e),i=pO(t);return typeof n=="function"?n(r,i):dU(r,i)}Tr.compareNodes=eee;function tee(e){return e!=null}Tr.isSome=tee;function nee(e,t="Value should be something"){if(e==null)throw new Error(t)}Tr.assertSome=nee});var jp=F(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.inspect=void 0;var mU=3;function ree(e){return mT(e,[])}NT.inspect=ree;function mT(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return iee(e,t);default:return String(e)}}function pU(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; - ${e.stack}`}function iee(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?pU(e)+` -`+fU(e.errors,t):pU(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(aee(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:mT(r,n)}else if(Array.isArray(e))return fU(e,n);return see(e,n)}function aee(e){return typeof e.toJSON=="function"}function see(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>mU?"["+oee(e)+"]":"{ "+n.map(([i,a])=>i+": "+mT(a,t)).join(", ")+" }"}function fU(e,t){if(e.length===0)return"[]";if(t.length>mU)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(ql,"__esModule",{value:!0});ql.relocatedError=ql.createGraphQLError=void 0;var fO=Oe(),uee=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function cee(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>uee.includes(t))}function mO(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&cee(t.originalError)&&(t.originalError=mO(t.originalError.message,t.originalError)),fO.versionInfo.major>=17?new fO.GraphQLError(e,t):new fO.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)}ql.createGraphQLError=mO;function lee(e,t){return mO(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}ql.relocatedError=lee});var Kp=F(Qi=>{"use strict";m();T();N();Object.defineProperty(Qi,"__esModule",{value:!0});Qi.hasOwnProperty=Qi.promiseReduce=Qi.isPromise=Qi.isObjectLike=Qi.isIterableObject=void 0;function dee(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}Qi.isIterableObject=dee;function pee(e){return typeof e=="object"&&e!==null}Qi.isObjectLike=pee;function NU(e){return(e==null?void 0:e.then)!=null}Qi.isPromise=NU;function fee(e,t,n){let r=n;for(let i of e)r=NU(r)?r.then(a=>t(a,i)):t(r,i);return r}Qi.promiseReduce=fee;function mee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Qi.hasOwnProperty=mee});var TO=F(hT=>{"use strict";m();T();N();Object.defineProperty(hT,"__esModule",{value:!0});hT.getArgumentValues=void 0;var NO=jp(),Ic=Oe(),ET=TT(),Nee=Kp();function Tee(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>$(M({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:d}of e.args){let f=a[c];if(!f){if(d!==void 0)r[c]=d;else if((0,Ic.isNonNullType)(l))throw(0,ET.createGraphQLError)(`Argument "${c}" of required type "${(0,NO.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let y=f.value,I=y.kind===Ic.Kind.NULL;if(y.kind===Ic.Kind.VARIABLE){let w=y.name.value;if(n==null||!(0,Nee.hasOwnProperty)(n,w)){if(d!==void 0)r[c]=d;else if((0,Ic.isNonNullType)(l))throw(0,ET.createGraphQLError)(`Argument "${c}" of required type "${(0,NO.inspect)(l)}" was provided the variable "$${w}" which was not provided a runtime value.`,{nodes:[y]});continue}I=n[w]==null}if(I&&(0,Ic.isNonNullType)(l))throw(0,ET.createGraphQLError)(`Argument "${c}" of non-null type "${(0,NO.inspect)(l)}" must not be null.`,{nodes:[y]});let v=(0,Ic.valueFromAST)(y,l,n);if(v===void 0)throw(0,ET.createGraphQLError)(`Argument "${c}" has invalid value ${(0,Ic.print)(y)}.`,{nodes:[y]});r[c]=v}return r}hT.getArgumentValues=Tee});var EO=F(Ya=>{"use strict";m();T();N();Object.defineProperty(Ya,"__esModule",{value:!0});Ya.getDirective=Ya.getDirectives=Ya.getDirectiveInExtensions=Ya.getDirectivesInExtensions=void 0;var EU=TO();function hU(e,t=["directives"]){return t.reduce((n,r)=>n==null?n:n[r],e==null?void 0:e.extensions)}Ya.getDirectivesInExtensions=hU;function TU(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 yU(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 TU(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 TU(i,t)}Ya.getDirectiveInExtensions=yU;function Eee(e,t,n=["directives"]){let r=hU(t,n);if(r!=null&&r.length>0)return r;let a=(e&&e.getDirectives?e.getDirectives():[]).reduce((l,d)=>(l[d.name]=d,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 d of l.directives){let f=a[d.name.value];f&&c.push({name:d.name.value,args:(0,EU.getArgumentValues)(f,d)})}return c}Ya.getDirectives=Eee;function hee(e,t,n,r=["directives"]){let i=yU(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 d of l.directives)d.name.value===n&&c.push((0,EU.getArgumentValues)(a,d));if(c.length)return c}Ya.getDirective=hee});var hO=F(yT=>{"use strict";m();T();N();Object.defineProperty(yT,"__esModule",{value:!0});yT.getFieldsWithDirectives=void 0;var yee=Oe();function Iee(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,d=`${o}.${l}`,f=c.directives.map(y=>({name:y.name.value,args:(y.arguments||[]).reduce((I,v)=>$(M({},I),{[v.name.value]:(0,yee.valueFromASTUntyped)(v.value)}),{})}));n[d]=f}}}return n}yT.getFieldsWithDirectives=Iee});var IU=F(IT=>{"use strict";m();T();N();Object.defineProperty(IT,"__esModule",{value:!0});IT.getArgumentsWithDirectives=void 0;var yO=Oe();function gee(e){return e.kind===yO.Kind.OBJECT_TYPE_DEFINITION||e.kind===yO.Kind.OBJECT_TYPE_EXTENSION}function _ee(e){var r;let t={},n=e.definitions.filter(gee);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 d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let d=l.directives.map(f=>({name:f.name.value,args:(f.arguments||[]).reduce((y,I)=>$(M({},y),{[I.name.value]:(0,yO.valueFromASTUntyped)(I.value)}),{})}));c[l.name.value]=d}}return t}IT.getArgumentsWithDirectives=_ee});var IO=F(gT=>{"use strict";m();T();N();Object.defineProperty(gT,"__esModule",{value:!0});gT.getImplementingTypes=void 0;var vee=Oe();function Oee(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];(0,vee.isObjectType)(a)&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}gT.getImplementingTypes=Oee});var _O=F(_T=>{"use strict";m();T();N();Object.defineProperty(_T,"__esModule",{value:!0});_T.astFromType=void 0;var See=jp(),gc=Oe();function gO(e){if((0,gc.isNonNullType)(e)){let t=gO(e.ofType);if(t.kind===gc.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,See.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:gc.Kind.NON_NULL_TYPE,type:t}}else if((0,gc.isListType)(e))return{kind:gc.Kind.LIST_TYPE,type:gO(e.ofType)};return{kind:gc.Kind.NAMED_TYPE,name:{kind:gc.Kind.NAME,value:e.name}}}_T.astFromType=gO});var OT=F(vT=>{"use strict";m();T();N();Object.defineProperty(vT,"__esModule",{value:!0});vT.astFromValueUntyped=void 0;var Ja=Oe();function vO(e){if(e===null)return{kind:Ja.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=vO(n);r!=null&&t.push(r)}return{kind:Ja.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=vO(r);i&&t.push({kind:Ja.Kind.OBJECT_FIELD,name:{kind:Ja.Kind.NAME,value:n},value:i})}return{kind:Ja.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ja.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ja.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Dee.test(t)?{kind:Ja.Kind.INT,value:t}:{kind:Ja.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ja.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}vT.astFromValueUntyped=vO;var Dee=/^-?(?:0|[1-9][0-9]*)$/});var _U=F(ST=>{"use strict";m();T();N();Object.defineProperty(ST,"__esModule",{value:!0});ST.astFromValue=void 0;var bee=jp(),yi=Oe(),Aee=OT(),gU=Kp();function Gp(e,t){if((0,yi.isNonNullType)(t)){let n=Gp(e,t.ofType);return(n==null?void 0:n.kind)===yi.Kind.NULL?null:n}if(e===null)return{kind:yi.Kind.NULL};if(e===void 0)return null;if((0,yi.isListType)(t)){let n=t.ofType;if((0,gU.isIterableObject)(e)){let r=[];for(let i of e){let a=Gp(i,n);a!=null&&r.push(a)}return{kind:yi.Kind.LIST,values:r}}return Gp(e,n)}if((0,yi.isInputObjectType)(t)){if(!(0,gU.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Gp(e[r.name],r.type);i&&n.push({kind:yi.Kind.OBJECT_FIELD,name:{kind:yi.Kind.NAME,value:r.name},value:i})}return{kind:yi.Kind.OBJECT,fields:n}}if((0,yi.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,yi.isEnumType)(t)?{kind:yi.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&Ree.test(n)?{kind:yi.Kind.INT,value:n}:(0,Aee.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,bee.inspect)(t))}ST.astFromValue=Gp;var Ree=/^-?(?:0|[1-9][0-9]*)$/});var vU=F(DT=>{"use strict";m();T();N();Object.defineProperty(DT,"__esModule",{value:!0});DT.getDescriptionNode=void 0;var Pee=Oe();function Fee(e){var t;if((t=e.astNode)!=null&&t.description)return $(M({},e.astNode.description),{block:!0});if(e.description)return{kind:Pee.Kind.STRING,value:e.description,block:!0}}DT.getDescriptionNode=Fee});var Vl=F(Cr=>{"use strict";m();T();N();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.memoize2of5=Cr.memoize2of4=Cr.memoize5=Cr.memoize4=Cr.memoize3=Cr.memoize2=Cr.memoize1=void 0;function wee(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}}Cr.memoize1=wee;function Lee(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}}Cr.memoize2=Lee;function Cee(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 d=new WeakMap;o.set(i,d);let f=e(r,i,a);return d.set(a,f),f}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let d=e(r,i,a);return c.set(a,d),d}let l=c.get(a);if(l===void 0){let d=e(r,i,a);return c.set(a,d),d}return l}}Cr.memoize3=Cee;function Bee(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 I=new WeakMap;y.set(a,I);let v=e(r,i,a,o);return I.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 I=e(r,i,a,o);return y.set(o,I),I}let d=l.get(a);if(!d){let y=new WeakMap;l.set(a,y);let I=e(r,i,a,o);return y.set(o,I),I}let f=d.get(o);if(f===void 0){let y=e(r,i,a,o);return d.set(o,y),y}return f}}Cr.memoize4=Bee;function Uee(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 w=new WeakMap;v.set(a,w);let U=new WeakMap;w.set(o,U);let j=e(r,i,a,o,c);return U.set(c,j),j}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let v=new WeakMap;d.set(a,v);let w=new WeakMap;v.set(o,w);let U=e(r,i,a,o,c);return w.set(c,U),U}let f=d.get(a);if(!f){f=new WeakMap,d.set(a,f);let v=new WeakMap;f.set(o,v);let w=e(r,i,a,o,c);return v.set(c,w),w}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 I=y.get(c);if(I===void 0){let v=e(r,i,a,o,c);return y.set(c,v),v}return I}}Cr.memoize5=Uee;function kee(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 d=e(r,i,a,o);return c.set(i,d),d}let l=c.get(i);if(l===void 0){let d=e(r,i,a,o);return c.set(i,d),d}return l}}Cr.memoize2of4=kee;function Mee(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 d=l.get(i);if(d===void 0){let f=e(r,i,a,o,c);return l.set(i,f),f}return d}}Cr.memoize2of5=Mee});var $p=F(Ii=>{"use strict";m();T();N();Object.defineProperty(Ii,"__esModule",{value:!0});Ii.getRootTypeMap=Ii.getRootTypes=Ii.getRootTypeNames=Ii.getDefinedRootType=void 0;var xee=TT(),OO=Vl();function qee(e,t,n){let i=(0,Ii.getRootTypeMap)(e).get(t);if(i==null)throw(0,xee.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Ii.getDefinedRootType=qee;Ii.getRootTypeNames=(0,OO.memoize1)(function(t){let n=(0,Ii.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Ii.getRootTypes=(0,OO.memoize1)(function(t){let n=(0,Ii.getRootTypeMap)(t);return new Set(n.values())});Ii.getRootTypeMap=(0,OO.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 RO=F(It=>{"use strict";m();T();N();Object.defineProperty(It,"__esModule",{value:!0});It.makeDirectiveNodes=It.makeDirectiveNode=It.makeDeprecatedDirective=It.astFromEnumValue=It.astFromInputField=It.astFromField=It.astFromScalarType=It.astFromEnumType=It.astFromInputObjectType=It.astFromUnionType=It.astFromInterfaceType=It.astFromObjectType=It.astFromArg=It.getDeprecatableDirectiveNodes=It.getDirectiveNodes=It.astFromDirective=It.astFromSchema=It.printSchemaWithDirectives=It.getDocumentNodeFromSchema=void 0;var dt=Oe(),_c=_O(),SO=_U(),Vee=OT(),Yi=vU(),DO=EO(),jee=Vp(),Kee=$p();function OU(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=SU(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,dt.isSpecifiedDirective)(c)||a.push(DU(c,e,n));for(let c in r){let l=r[c],d=(0,dt.isSpecifiedScalarType)(l),f=(0,dt.isIntrospectionType)(l);if(!(d||f))if((0,dt.isObjectType)(l))a.push(bU(l,e,n));else if((0,dt.isInterfaceType)(l))a.push(AU(l,e,n));else if((0,dt.isUnionType)(l))a.push(RU(l,e,n));else if((0,dt.isInputObjectType)(l))a.push(PU(l,e,n));else if((0,dt.isEnumType)(l))a.push(FU(l,e,n));else if((0,dt.isScalarType)(l))a.push(wU(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:dt.Kind.DOCUMENT,definitions:a}}It.getDocumentNodeFromSchema=OU;function Gee(e,t={}){let n=OU(e,t);return(0,dt.print)(n)}It.printSchemaWithDirectives=Gee;function SU(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 d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let f of d.operationTypes)n.set(f.operation,f);let i=(0,Kee.getRootTypeMap)(e);for(let[d,f]of n){let y=i.get(d);if(y!=null){let I=(0,_c.astFromType)(y);f!=null?f.type=I:n.set(d,{kind:dt.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:I})}}let a=[...n.values()].filter(jee.isSome),o=vc(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a!=null?dt.Kind.SCHEMA_DEFINITION:dt.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Yi.getDescriptionNode)(e);return l&&(c.description=l),c}It.astFromSchema=SU;function DU(e,t,n){var r,i;return{kind:dt.Kind.DIRECTIVE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>bO(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:dt.Kind.NAME,value:a})))||[]}}It.astFromDirective=DU;function vc(e,t,n){let r=(0,DO.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=bT(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}It.getDirectiveNodes=vc;function Yp(e,t,n){var c,l;let r=[],i=null,a=(0,DO.getDirectivesInExtensions)(e,n),o;return a!=null?o=bT(t,a):o=(c=e.astNode)==null?void 0:c.directives,o!=null&&(r=o.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(i=(l=o.filter(d=>d.name.value==="deprecated"))==null?void 0:l[0])),e.deprecationReason!=null&&i==null&&(i=BU(e.deprecationReason)),i==null?r:[i].concat(r)}It.getDeprecatableDirectiveNodes=Yp;function bO(e,t,n){var r;return{kind:dt.Kind.INPUT_VALUE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},type:(0,_c.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,SO.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Yp(e,t,n)}}It.astFromArg=bO;function bU(e,t,n){return{kind:dt.Kind.OBJECT_TYPE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>AO(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,_c.astFromType)(r)),directives:vc(e,t,n)}}It.astFromObjectType=bU;function AU(e,t,n){let r={kind:dt.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>AO(i,t,n)),directives:vc(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,_c.astFromType)(i))),r}It.astFromInterfaceType=AU;function RU(e,t,n){return{kind:dt.Kind.UNION_TYPE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},directives:vc(e,t,n),types:e.getTypes().map(r=>(0,_c.astFromType)(r))}}It.astFromUnionType=RU;function PU(e,t,n){return{kind:dt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>LU(r,t,n)),directives:vc(e,t,n)}}It.astFromInputObjectType=PU;function FU(e,t,n){return{kind:dt.Kind.ENUM_TYPE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>CU(r,t,n)),directives:vc(e,t,n)}}It.astFromEnumType=FU;function wU(e,t,n){var o;let r=(0,DO.getDirectivesInExtensions)(e,n),i=r?bT(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(Qp("specifiedBy",c))}return{kind:dt.Kind.SCALAR_TYPE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},directives:i}}It.astFromScalarType=wU;function AO(e,t,n){return{kind:dt.Kind.FIELD_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},arguments:e.args.map(r=>bO(r,t,n)),type:(0,_c.astFromType)(e.type),directives:Yp(e,t,n)}}It.astFromField=AO;function LU(e,t,n){var r;return{kind:dt.Kind.INPUT_VALUE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},type:(0,_c.astFromType)(e.type),directives:Yp(e,t,n),defaultValue:(r=(0,SO.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}It.astFromInputField=LU;function CU(e,t,n){return{kind:dt.Kind.ENUM_VALUE_DEFINITION,description:(0,Yi.getDescriptionNode)(e),name:{kind:dt.Kind.NAME,value:e.name},directives:Yp(e,t,n)}}It.astFromEnumValue=CU;function BU(e){return Qp("deprecated",{reason:e},dt.GraphQLDeprecatedDirective)}It.makeDeprecatedDirective=BU;function Qp(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,SO.astFromValue)(o,i.type);c&&r.push({kind:dt.Kind.ARGUMENT,name:{kind:dt.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=(0,Vee.astFromValueUntyped)(a);o&&r.push({kind:dt.Kind.ARGUMENT,name:{kind:dt.Kind.NAME,value:i},value:o})}return{kind:dt.Kind.DIRECTIVE,name:{kind:dt.Kind.NAME,value:e},arguments:r}}It.makeDirectiveNode=Qp;function bT(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(Qp(r,o,a));else n.push(Qp(r,i,a))}return n}It.makeDirectiveNodes=bT});var kU=F(jl=>{"use strict";m();T();N();Object.defineProperty(jl,"__esModule",{value:!0});jl.createDefaultRules=jl.validateGraphQlDocuments=void 0;var Jp=Oe();function $ee(e,t,n=UU()){var c;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Jp.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let a={kind:Jp.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Jp.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` - at ${(c=l.source)==null?void 0:c.name}:${d.line}:${d.column}`;return o}jl.validateGraphQlDocuments=$ee;function UU(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Jp.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Jp.specifiedRules.filter(t=>!e.includes(t.name))}jl.createDefaultRules=UU});var MU=F(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.parseGraphQLJSON=void 0;var Qee=Oe();function Yee(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function Jee(e){return JSON.parse(Yee(e))}function Hee(e,t,n){let r=Jee(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,Qee.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")}AT.parseGraphQLJSON=Hee});var FO=F(xn=>{"use strict";m();T();N();Object.defineProperty(xn,"__esModule",{value:!0});xn.getBlockStringIndentation=xn.dedentBlockStringValue=xn.getLeadingCommentBlock=xn.getComment=xn.getDescription=xn.printWithComments=xn.printComment=xn.pushComment=xn.collectComment=xn.resetComments=void 0;var jU=Oe(),zee=80,Kl={};function Wee(){Kl={}}xn.resetComments=Wee;function Xee(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(Hp(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)Hp(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(Hp(r,t,r.name.value),rte(r)&&r.arguments)for(let i of r.arguments)Hp(i,t,r.name.value,i.name.value)}break}}xn.collectComment=Xee;function Hp(e,t,n,r){let i=PO(e);if(typeof i!="string"||i.length===0)return;let a=[t];n&&(a.push(n),r&&a.push(r));let o=a.join(".");Kl[o]||(Kl[o]=[]),Kl[o].push(i)}xn.pushComment=Hp;function KU(e){return` +`))}return Q(M({},e),{value:t,block:!0})}function fB(e){return e.arguments?e.arguments.sort((n,r)=>n.name.value.localeCompare(r.name.value)):e.arguments}function tT(e){let t=e.selections;return Q(M({},e),{selections:t.sort((n,r)=>{var a,o,c,l;return bn.NAME in n?bn.NAME in r?n.name.value.localeCompare(r.name.value):-1:bn.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 Mt.Kind.FIELD:return Q(M({},n),{arguments:fB(n),selectionSet:n.selectionSet?tT(n.selectionSet):n.selectionSet});case Mt.Kind.FRAGMENT_SPREAD:return n;case Mt.Kind.INLINE_FRAGMENT:return Q(M({},n),{selectionSet:tT(n.selectionSet)})}})})}function A7(e){return Q(M({},e),{definitions:e.definitions.map(t=>t.kind!==Mt.Kind.OPERATION_DEFINITION?t:Q(M({},t),{selectionSet:tT(t.selectionSet)}))})}function pB(e,t=!0){return(0,Mt.parse)(e,{noLocation:t})}function R7(e,t=!0){try{return{documentNode:pB(e,t)}}catch(n){return{error:n}}}});var TB=w(Pl=>{"use strict";m();T();N();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.AccumulatorMap=void 0;Pl.mapValue=Rl;Pl.extendSchemaImpl=P7;var Ue=Oe(),Rs=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)}};Pl.AccumulatorMap=Rs;function Rl(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function P7(e,t,n){var De,Ie,Ce,Ot;let r=[],i=new Rs,a=new Rs,o=new Rs,c=new Rs,l=new Rs,d=new Rs,p=[],E,I=[],v=!1;for(let Y of t.definitions){switch(Y.kind){case Ue.Kind.SCHEMA_DEFINITION:E=Y;break;case Ue.Kind.SCHEMA_EXTENSION:I.push(Y);break;case Ue.Kind.DIRECTIVE_DEFINITION:p.push(Y);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(Y);break;case Ue.Kind.SCALAR_TYPE_EXTENSION:i.add(Y.name.value,Y);break;case Ue.Kind.OBJECT_TYPE_EXTENSION:a.add(Y.name.value,Y);break;case Ue.Kind.INTERFACE_TYPE_EXTENSION:o.add(Y.name.value,Y);break;case Ue.Kind.UNION_TYPE_EXTENSION:c.add(Y.name.value,Y);break;case Ue.Kind.ENUM_TYPE_EXTENSION:l.add(Y.name.value,Y);break;case Ue.Kind.INPUT_OBJECT_TYPE_EXTENSION:d.add(Y.name.value,Y);break;default:continue}v=!0}if(!v)return e;let A=new Map;for(let Y of e.types){let ie=ne(Y);ie&&A.set(Y.name,ie)}for(let Y of r){let ie=Y.name.value;A.set(ie,(De=mB.get(ie))!=null?De:ae(Y))}for(let[Y,ie]of a)A.set(Y,new Ue.GraphQLObjectType({name:Y,interfaces:()=>Ht(ie),fields:()=>Tn(ie),extensionASTNodes:ie}));if(n!=null&&n.addInvalidExtensionOrphans){for(let[Y,ie]of o)A.set(Y,new Ue.GraphQLInterfaceType({name:Y,interfaces:()=>Ht(ie),fields:()=>Tn(ie),extensionASTNodes:ie}));for(let[Y,ie]of l)A.set(Y,new Ue.GraphQLEnumType({name:Y,values:xn(ie),extensionASTNodes:ie}));for(let[Y,ie]of c)A.set(Y,new Ue.GraphQLUnionType({name:Y,types:()=>wn(ie),extensionASTNodes:ie}));for(let[Y,ie]of i)A.set(Y,new Ue.GraphQLScalarType({name:Y,extensionASTNodes:ie}));for(let[Y,ie]of d)A.set(Y,new Ue.GraphQLInputObjectType({name:Y,fields:()=>Br(ie),extensionASTNodes:ie}))}let U=M(M({query:e.query&&G(e.query),mutation:e.mutation&&G(e.mutation),subscription:e.subscription&&G(e.subscription)},E&&rn([E])),rn(I));return Q(M({description:(Ce=(Ie=E==null?void 0:E.description)==null?void 0:Ie.value)!=null?Ce:e.description},U),{types:Array.from(A.values()),directives:[...e.directives.map(re),...p.map($t)],extensions:e.extensions,astNode:E!=null?E:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(I),assumeValid:(Ot=n==null?void 0:n.assumeValid)!=null?Ot:!1});function j(Y){return(0,Ue.isListType)(Y)?new Ue.GraphQLList(j(Y.ofType)):(0,Ue.isNonNullType)(Y)?new Ue.GraphQLNonNull(j(Y.ofType)):G(Y)}function G(Y){return A.get(Y.name)}function re(Y){if((0,Ue.isSpecifiedDirective)(Y))return Y;let ie=Y.toConfig();return new Ue.GraphQLDirective(Q(M({},ie),{args:Rl(ie.args,_t)}))}function ne(Y){if((0,Ue.isIntrospectionType)(Y)||(0,Ue.isSpecifiedScalarType)(Y))return Y;if((0,Ue.isScalarType)(Y))return Ae(Y);if((0,Ue.isObjectType)(Y))return xe(Y);if((0,Ue.isInterfaceType)(Y))return rt(Y);if((0,Ue.isUnionType)(Y))return Z(Y);if((0,Ue.isEnumType)(Y))return ue(Y);if((0,Ue.isInputObjectType)(Y))return me(Y)}function me(Y){var Je;let ie=Y.toConfig(),qe=(Je=d.get(ie.name))!=null?Je:[];return new Ue.GraphQLInputObjectType(Q(M({},ie),{fields:()=>M(M({},Rl(ie.fields,Bt=>Q(M({},Bt),{type:j(Bt.type)}))),Br(qe)),extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function ue(Y){var Je;let ie=Y.toConfig(),qe=(Je=l.get(Y.name))!=null?Je:[];return new Ue.GraphQLEnumType(Q(M({},ie),{values:M(M({},ie.values),xn(qe)),extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function Ae(Y){var Bt,it;let ie=Y.toConfig(),qe=(Bt=i.get(ie.name))!=null?Bt:[],Je=ie.specifiedByURL;for(let Pt of qe)Je=(it=NB(Pt))!=null?it:Je;return new Ue.GraphQLScalarType(Q(M({},ie),{specifiedByURL:Je,extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function xe(Y){var Je;let ie=Y.toConfig(),qe=(Je=a.get(ie.name))!=null?Je:[];return new Ue.GraphQLObjectType(Q(M({},ie),{interfaces:()=>[...Y.getInterfaces().map(G),...Ht(qe)],fields:()=>M(M({},Rl(ie.fields,_e)),Tn(qe)),extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function rt(Y){var Je;let ie=Y.toConfig(),qe=(Je=o.get(ie.name))!=null?Je:[];return new Ue.GraphQLInterfaceType(Q(M({},ie),{interfaces:()=>[...Y.getInterfaces().map(G),...Ht(qe)],fields:()=>M(M({},Rl(ie.fields,_e)),Tn(qe)),extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function Z(Y){var Je;let ie=Y.toConfig(),qe=(Je=c.get(ie.name))!=null?Je:[];return new Ue.GraphQLUnionType(Q(M({},ie),{types:()=>[...Y.getTypes().map(G),...wn(qe)],extensionASTNodes:ie.extensionASTNodes.concat(qe)}))}function _e(Y){return Q(M({},Y),{type:j(Y.type),args:Y.args&&Rl(Y.args,_t)})}function _t(Y){return Q(M({},Y),{type:j(Y.type)})}function rn(Y){var qe;let ie={};for(let Je of Y){let Bt=(qe=Je.operationTypes)!=null?qe:[];for(let it of Bt)ie[it.operation]=an(it.type)}return ie}function an(Y){var Je;let ie=Y.name.value,qe=(Je=mB.get(ie))!=null?Je:A.get(ie);if(qe===void 0)throw new Error(`Unknown type: "${ie}".`);return qe}function Fn(Y){return Y.kind===Ue.Kind.LIST_TYPE?new Ue.GraphQLList(Fn(Y.type)):Y.kind===Ue.Kind.NON_NULL_TYPE?new Ue.GraphQLNonNull(Fn(Y.type)):an(Y)}function $t(Y){var ie;return new Ue.GraphQLDirective({name:Y.name.value,description:(ie=Y.description)==null?void 0:ie.value,locations:Y.locations.map(({value:qe})=>qe),isRepeatable:Y.repeatable,args:Cr(Y.arguments),astNode:Y})}function Tn(Y){var qe,Je;let ie=Object.create(null);for(let Bt of Y){let it=(qe=Bt.fields)!=null?qe:[];for(let Pt of it)ie[Pt.name.value]={type:Fn(Pt.type),description:(Je=Pt.description)==null?void 0:Je.value,args:Cr(Pt.arguments),deprecationReason:rT(Pt),astNode:Pt}}return ie}function Cr(Y){var Je;let ie=Y!=null?Y:[],qe=Object.create(null);for(let Bt of ie){let it=Fn(Bt.type);qe[Bt.name.value]={type:it,description:(Je=Bt.description)==null?void 0:Je.value,defaultValue:(0,Ue.valueFromAST)(Bt.defaultValue,it),deprecationReason:rT(Bt),astNode:Bt}}return qe}function Br(Y){var qe,Je;let ie=Object.create(null);for(let Bt of Y){let it=(qe=Bt.fields)!=null?qe:[];for(let Pt of it){let us=Fn(Pt.type);ie[Pt.name.value]={type:us,description:(Je=Pt.description)==null?void 0:Je.value,defaultValue:(0,Ue.valueFromAST)(Pt.defaultValue,us),deprecationReason:rT(Pt),astNode:Pt}}}return ie}function xn(Y){var qe,Je;let ie=Object.create(null);for(let Bt of Y){let it=(qe=Bt.values)!=null?qe:[];for(let Pt of it)ie[Pt.name.value]={description:(Je=Pt.description)==null?void 0:Je.value,deprecationReason:rT(Pt),astNode:Pt}}return ie}function Ht(Y){return Y.flatMap(ie=>{var qe,Je;return(Je=(qe=ie.interfaces)==null?void 0:qe.map(an))!=null?Je:[]})}function wn(Y){return Y.flatMap(ie=>{var qe,Je;return(Je=(qe=ie.types)==null?void 0:qe.map(an))!=null?Je:[]})}function ae(Y){var qe,Je,Bt,it,Pt,us,Qr,cs,Hc,Pa,hr,si;let ie=Y.name.value;switch(Y.kind){case Ue.Kind.OBJECT_TYPE_DEFINITION:{let xt=(qe=a.get(ie))!=null?qe:[],yr=[Y,...xt];return a.delete(ie),new Ue.GraphQLObjectType({name:ie,description:(Je=Y.description)==null?void 0:Je.value,interfaces:()=>Ht(yr),fields:()=>Tn(yr),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.INTERFACE_TYPE_DEFINITION:{let xt=(Bt=o.get(ie))!=null?Bt:[],yr=[Y,...xt];return o.delete(ie),new Ue.GraphQLInterfaceType({name:ie,description:(it=Y.description)==null?void 0:it.value,interfaces:()=>Ht(yr),fields:()=>Tn(yr),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.ENUM_TYPE_DEFINITION:{let xt=(Pt=l.get(ie))!=null?Pt:[],yr=[Y,...xt];return l.delete(ie),new Ue.GraphQLEnumType({name:ie,description:(us=Y.description)==null?void 0:us.value,values:xn(yr),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.UNION_TYPE_DEFINITION:{let xt=(Qr=c.get(ie))!=null?Qr:[],yr=[Y,...xt];return c.delete(ie),new Ue.GraphQLUnionType({name:ie,description:(cs=Y.description)==null?void 0:cs.value,types:()=>wn(yr),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.SCALAR_TYPE_DEFINITION:{let xt=(Hc=i.get(ie))!=null?Hc:[];return i.delete(ie),new Ue.GraphQLScalarType({name:ie,description:(Pa=Y.description)==null?void 0:Pa.value,specifiedByURL:NB(Y),astNode:Y,extensionASTNodes:xt})}case Ue.Kind.INPUT_OBJECT_TYPE_DEFINITION:{let xt=(hr=d.get(ie))!=null?hr:[],yr=[Y,...xt];return d.delete(ie),new Ue.GraphQLInputObjectType({name:ie,description:(si=Y.description)==null?void 0:si.value,fields:()=>Br(yr),astNode:Y,extensionASTNodes:xt})}}}}var mB=new Map([...Ue.specifiedScalarTypes,...Ue.introspectionTypes].map(e=>[e.name,e]));function rT(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLDeprecatedDirective,e);return t==null?void 0:t.reason}function NB(e){let t=(0,Ue.getDirectiveValues)(Ue.GraphQLSpecifiedByDirective,e);return t==null?void 0:t.url}});var Cv=w(Lv=>{"use strict";m();T();N();Object.defineProperty(Lv,"__esModule",{value:!0});Lv.buildASTSchema=L7;var EB=Oe(),F7=Dl(),w7=TB();function L7(e,t){(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,F7.assertValidSDL)(e);let n={description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},r=(0,w7.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,...EB.specifiedDirectives.filter(a=>r.directives.every(o=>o.name!==a.name))];return new EB.GraphQLSchema(Q(M({},r),{directives:i}))}});var Fl=w(hu=>{"use strict";m();T();N();Object.defineProperty(hu,"__esModule",{value:!0});hu.MAX_INT32=hu.MAX_SUBSCRIPTION_FILTER_DEPTH=hu.MAXIMUM_TYPE_NESTING=void 0;hu.MAXIMUM_TYPE_NESTING=30;hu.MAX_SUBSCRIPTION_FILTER_DEPTH=5;hu.MAX_INT32=cn(2,31)-1});var Rr=w(or=>{"use strict";m();T();N();Object.defineProperty(or,"__esModule",{value:!0});or.getOrThrowError=B7;or.getEntriesNotInHashSet=U7;or.numberToOrdinal=k7;or.addIterableToSet=M7;or.addOptionalIterableToSet=x7;or.addSets=q7;or.kindToNodeType=V7;or.getValueOrDefault=j7;or.add=K7;or.generateSimpleDirective=G7;or.generateRequiresScopesDirective=$7;or.generateSemanticNonNullDirective=Q7;or.copyObjectValueMap=Y7;or.addNewObjectValueMapEntries=J7;or.copyArrayValueMap=H7;or.addMapEntries=z7;or.getFirstEntry=W7;var Vt=Oe(),mr=sr(),C7=qi(),Bf=Ar();function B7(e,t,n){let r=e.get(t);if(r===void 0)throw(0,C7.invalidKeyFatalError)(t,n);return r}function U7(e,t){let n=[];for(let r of e)t.has(r)||n.push(r);return n}function k7(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 M7({source:e,target:t}){for(let n of e)t.add(n)}function x7({source:e,target:t}){if(e)for(let n of e)t.add(n)}function q7(e,t){let n=new Set(e);for(let r of t)n.add(r);return n}function V7(e){switch(e){case Vt.Kind.BOOLEAN:return mr.BOOLEAN_SCALAR;case Vt.Kind.ENUM:case Vt.Kind.ENUM_TYPE_DEFINITION:return mr.ENUM;case Vt.Kind.ENUM_TYPE_EXTENSION:return"Enum extension";case Vt.Kind.ENUM_VALUE_DEFINITION:return mr.ENUM_VALUE;case Vt.Kind.FIELD_DEFINITION:return mr.FIELD;case Vt.Kind.FLOAT:return mr.FLOAT_SCALAR;case Vt.Kind.INPUT_OBJECT_TYPE_DEFINITION:return mr.INPUT_OBJECT;case Vt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return"Input Object extension";case Vt.Kind.INPUT_VALUE_DEFINITION:return mr.INPUT_VALUE;case Vt.Kind.INT:return mr.INT_SCALAR;case Vt.Kind.INTERFACE_TYPE_DEFINITION:return mr.INTERFACE;case Vt.Kind.INTERFACE_TYPE_EXTENSION:return"Interface extension";case Vt.Kind.NULL:return mr.NULL;case Vt.Kind.OBJECT:case Vt.Kind.OBJECT_TYPE_DEFINITION:return mr.OBJECT;case Vt.Kind.OBJECT_TYPE_EXTENSION:return"Object extension";case Vt.Kind.STRING:return mr.STRING_SCALAR;case Vt.Kind.SCALAR_TYPE_DEFINITION:return mr.SCALAR;case Vt.Kind.SCALAR_TYPE_EXTENSION:return"Scalar extension";case Vt.Kind.UNION_TYPE_DEFINITION:return mr.UNION;case Vt.Kind.UNION_TYPE_EXTENSION:return"Union extension";default:return e}}function j7(e,t,n){let r=e.get(t);if(r)return r;let i=n();return e.set(t,i),i}function K7(e,t){return e.has(t)?!1:(e.add(t),!0)}function G7(e){return{kind:Vt.Kind.DIRECTIVE,name:(0,Bf.stringToNameNode)(e)}}function $7(e){let t=[];for(let n of e){let r=[];for(let i of n)r.push({kind:Vt.Kind.STRING,value:i});t.push({kind:Vt.Kind.LIST,values:r})}return{kind:Vt.Kind.DIRECTIVE,name:(0,Bf.stringToNameNode)(mr.REQUIRES_SCOPES),arguments:[{kind:Vt.Kind.ARGUMENT,name:(0,Bf.stringToNameNode)(mr.SCOPES),value:{kind:Vt.Kind.LIST,values:t}}]}}function Q7(e){let t=Array.from(e).sort((r,i)=>r-i),n=new Array;for(let r of t)n.push({kind:Vt.Kind.INT,value:r.toString()});return{kind:Vt.Kind.DIRECTIVE,name:(0,Bf.stringToNameNode)(mr.SEMANTIC_NON_NULL),arguments:[{kind:Vt.Kind.ARGUMENT,name:(0,Bf.stringToNameNode)(mr.LEVELS),value:{kind:Vt.Kind.LIST,values:n}}]}}function Y7(e){let t=new Map;for(let[n,r]of e)t.set(n,M({},r));return t}function J7(e,t){for(let[n,r]of e)t.set(n,M({},r))}function H7(e){let t=new Map;for(let[n,r]of e)t.set(n,[...r]);return t}function z7({source:e,target:t}){for(let[n,r]of e)t.set(n,r)}function W7(e){let{value:t,done:n}=e.values().next();if(!n)return t}});var Uf=w(iT=>{"use strict";m();T();N();Object.defineProperty(iT,"__esModule",{value:!0});iT.ExtensionType=void 0;var hB;(function(e){e[e.EXTENDS=0]="EXTENDS",e[e.NONE=1]="NONE",e[e.REAL=2]="REAL"})(hB||(iT.ExtensionType=hB={}))});var yu=w(Fr=>{"use strict";m();T();N();Object.defineProperty(Fr,"__esModule",{value:!0});Fr.getMutableDirectiveDefinitionNode=Z7;Fr.getMutableEnumNode=eZ;Fr.getMutableEnumValueNode=tZ;Fr.getMutableFieldNode=nZ;Fr.getMutableInputObjectNode=rZ;Fr.getMutableInputValueNode=iZ;Fr.getMutableInterfaceNode=aZ;Fr.getMutableObjectNode=sZ;Fr.getMutableObjectExtensionNode=oZ;Fr.getMutableScalarNode=uZ;Fr.getMutableTypeNode=Bv;Fr.getMutableUnionNode=cZ;Fr.getTypeNodeNamedTypeName=Uv;Fr.getNamedTypeNode=IB;var Pr=Oe(),wl=Ar(),yB=qi(),X7=Fl();function Z7(e){return{arguments:[],kind:e.kind,locations:[],name:M({},e.name),repeatable:e.repeatable,description:(0,wl.formatDescription)(e.description)}}function eZ(e){return{kind:Pr.Kind.ENUM_TYPE_DEFINITION,name:M({},e)}}function tZ(e){return{directives:[],kind:e.kind,name:M({},e.name),description:(0,wl.formatDescription)(e.description)}}function nZ(e,t,n){return{arguments:[],directives:[],kind:e.kind,name:M({},e.name),type:Bv(e.type,t,n),description:(0,wl.formatDescription)(e.description)}}function rZ(e){return{kind:Pr.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:M({},e)}}function iZ(e,t,n){return{directives:[],kind:e.kind,name:M({},e.name),type:Bv(e.type,t,n),defaultValue:e.defaultValue,description:(0,wl.formatDescription)(e.description)}}function aZ(e){return{kind:Pr.Kind.INTERFACE_TYPE_DEFINITION,name:M({},e)}}function sZ(e){return{kind:Pr.Kind.OBJECT_TYPE_DEFINITION,name:M({},e)}}function oZ(e){let t=e.kind===Pr.Kind.OBJECT_TYPE_DEFINITION?e.description:void 0;return{kind:Pr.Kind.OBJECT_TYPE_EXTENSION,name:M({},e.name),description:(0,wl.formatDescription)(t)}}function uZ(e){return{kind:Pr.Kind.SCALAR_TYPE_DEFINITION,name:M({},e)}}function Bv(e,t,n){let r={kind:e.kind},i=r;for(let a=0;a{"use strict";m();T();N();Object.defineProperty(Ll,"__esModule",{value:!0});Ll.REQUIRED_FIELDSET_TYPE_NODE=Ll.REQUIRED_STRING_TYPE_NODE=void 0;var gB=Oe(),_B=Ar(),vB=sr();Ll.REQUIRED_STRING_TYPE_NODE={kind:gB.Kind.NON_NULL_TYPE,type:(0,_B.stringToNamedTypeNode)(vB.STRING_SCALAR)};Ll.REQUIRED_FIELDSET_TYPE_NODE={kind:gB.Kind.NON_NULL_TYPE,type:(0,_B.stringToNamedTypeNode)(vB.FIELD_SET_SCALAR)}});var kf=w(Ke=>{"use strict";m();T();N();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.TAG_DEFINITION=Ke.SUBSCRIPTION_FILTER_DEFINITION=Ke.SPECIFIED_BY_DEFINITION=Ke.SHAREABLE_DEFINITION=Ke.SEMANTIC_NON_NULL_DEFINITION=Ke.REQUIRES_SCOPES_DEFINITION=Ke.REQUIRES_DEFINITION=Ke.REQUIRE_FETCH_REASONS_DEFINITION=Ke.PROVIDES_DEFINITION=Ke.OVERRIDE_DEFINITION=Ke.ONE_OF_DEFINITION=Ke.LINK_DEFINITION=Ke.KEY_DEFINITION=Ke.INTERFACE_OBJECT_DEFINITION=Ke.INACCESSIBLE_DEFINITION=Ke.EDFS_REDIS_SUBSCRIBE_DEFINITION=Ke.EDFS_REDIS_PUBLISH_DEFINITION=Ke.EDFS_NATS_SUBSCRIBE_DEFINITION=Ke.EDFS_NATS_REQUEST_DEFINITION=Ke.EDFS_NATS_PUBLISH_DEFINITION=Ke.EDFS_KAFKA_SUBSCRIBE_DEFINITION=Ke.EDFS_KAFKA_PUBLISH_DEFINITION=Ke.EXTERNAL_DEFINITION=Ke.EXTENDS_DEFINITION=Ke.DEPRECATED_DEFINITION=Ke.CONNECT_FIELD_RESOLVER_DEFINITION=Ke.CONFIGURE_DESCRIPTION_DEFINITION=Ke.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION=Ke.COMPOSE_DIRECTIVE_DEFINITION=Ke.AUTHENTICATED_DEFINITION=void 0;var Ee=Oe(),pe=Ar(),H=sr(),gr=aT();Ke.AUTHENTICATED_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.AUTHENTICATED),repeatable:!1};Ke.COMPOSE_DIRECTIVE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NAME),type:gr.REQUIRED_STRING_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(H.COMPOSE_DIRECTIVE),repeatable:!0};Ke.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROPAGATE),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR)},defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.CONFIGURE_CHILD_DESCRIPTIONS),repeatable:!1};Ke.CONFIGURE_DESCRIPTION_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROPAGATE),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR)},defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}},{directives:[],kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.DESCRIPTION_OVERRIDE),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.INPUT_OBJECT_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.SCHEMA_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.CONFIGURE_DESCRIPTION),repeatable:!1};Ke.CONNECT_FIELD_RESOLVER_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONTEXT),type:gr.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.CONNECT_FIELD_RESOLVER),repeatable:!1};Ke.DEPRECATED_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.REASON),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR),defaultValue:{kind:Ee.Kind.STRING,value:Ee.DEFAULT_DEPRECATION_REASON}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.DEPRECATED),repeatable:!1};Ke.EXTENDS_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.EXTENDS),repeatable:!1};Ke.EXTERNAL_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.EXTERNAL),repeatable:!1};Ke.EDFS_KAFKA_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.TOPIC),type:gr.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:gr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_KAFKA_PUBLISH),repeatable:!1};Ke.EDFS_KAFKA_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.TOPICS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:gr.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:gr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_KAFKA_SUBSCRIBE),repeatable:!1};Ke.EDFS_NATS_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECT),type:gr.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_PUBLISH),repeatable:!1};Ke.EDFS_NATS_REQUEST_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECT),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_REQUEST),repeatable:!1};Ke.EDFS_NATS_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SUBJECTS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:gr.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:gr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.STREAM_CONFIGURATION),type:(0,pe.stringToNamedTypeNode)(H.EDFS_NATS_STREAM_CONFIGURATION)}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_NATS_SUBSCRIBE),repeatable:!1};Ke.EDFS_REDIS_PUBLISH_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CHANNEL),type:gr.REQUIRED_STRING_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:gr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_REDIS_PUBLISH),repeatable:!1};Ke.EDFS_REDIS_SUBSCRIBE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CHANNELS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:gr.REQUIRED_STRING_TYPE_NODE}}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.PROVIDER_ID),type:gr.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Ee.Kind.STRING,value:H.DEFAULT_EDFS_PROVIDER_ID}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.EDFS_REDIS_SUBSCRIBE),repeatable:!1};Ke.INACCESSIBLE_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.INACCESSIBLE),repeatable:!1};Ke.INTERFACE_OBJECT_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.INTERFACE_OBJECT),repeatable:!1};Ke.KEY_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:gr.REQUIRED_FIELDSET_TYPE_NODE},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.RESOLVABLE),type:(0,pe.stringToNamedTypeNode)(H.BOOLEAN_SCALAR),defaultValue:{kind:Ee.Kind.BOOLEAN,value:!0}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.KEY),repeatable:!0};Ke.LINK_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.URL_LOWER),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.AS),type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FOR),type:(0,pe.stringToNamedTypeNode)(H.LINK_PURPOSE)},{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.IMPORT),type:{kind:Ee.Kind.LIST_TYPE,type:(0,pe.stringToNamedTypeNode)(H.LINK_IMPORT)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCHEMA_UPPER]),name:(0,pe.stringToNameNode)(H.LINK),repeatable:!0};Ke.ONE_OF_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.INPUT_OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.ONE_OF),repeatable:!1};Ke.OVERRIDE_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FROM),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.OVERRIDE),repeatable:!1};Ke.PROVIDES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:gr.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.PROVIDES),repeatable:!1};Ke.REQUIRE_FETCH_REASONS_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.REQUIRE_FETCH_REASONS),repeatable:!0};Ke.REQUIRES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.FIELDS),type:gr.REQUIRED_FIELDSET_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.REQUIRES),repeatable:!1};Ke.REQUIRES_SCOPES_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.SCOPES),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SCOPE_SCALAR)}}}}}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ENUM_UPPER,H.FIELD_DEFINITION_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.REQUIRES_SCOPES),repeatable:!1};Ke.SEMANTIC_NON_NULL_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.LEVELS),type:{kind:Ee.Kind.NON_NULL_TYPE,type:{kind:Ee.Kind.LIST_TYPE,type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.INT_SCALAR)}}},defaultValue:{kind:Ee.Kind.LIST,values:[{kind:Ee.Kind.INT,value:"0"}]}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:[(0,pe.stringToNameNode)(H.FIELD_DEFINITION_UPPER)],name:(0,pe.stringToNameNode)(H.SEMANTIC_NON_NULL),repeatable:!1};Ke.SHAREABLE_DEFINITION={kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER,H.OBJECT_UPPER]),name:(0,pe.stringToNameNode)(H.SHAREABLE),repeatable:!0};Ke.SPECIFIED_BY_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.URL_LOWER),type:gr.REQUIRED_STRING_TYPE_NODE}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.SCALAR_UPPER]),name:(0,pe.stringToNameNode)(H.SPECIFIED_BY),repeatable:!1};Ke.SUBSCRIPTION_FILTER_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.CONDITION),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.SUBSCRIPTION_FILTER_CONDITION)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.FIELD_DEFINITION_UPPER]),name:(0,pe.stringToNameNode)(H.SUBSCRIPTION_FILTER),repeatable:!1};Ke.TAG_DEFINITION={arguments:[{kind:Ee.Kind.INPUT_VALUE_DEFINITION,name:(0,pe.stringToNameNode)(H.NAME),type:{kind:Ee.Kind.NON_NULL_TYPE,type:(0,pe.stringToNamedTypeNode)(H.STRING_SCALAR)}}],kind:Ee.Kind.DIRECTIVE_DEFINITION,locations:(0,pe.stringArrayToNameNodeArray)([H.ARGUMENT_DEFINITION_UPPER,H.ENUM_UPPER,H.ENUM_VALUE_UPPER,H.FIELD_DEFINITION_UPPER,H.INPUT_FIELD_DEFINITION_UPPER,H.INPUT_OBJECT_UPPER,H.INTERFACE_UPPER,H.OBJECT_UPPER,H.SCALAR_UPPER,H.UNION_UPPER]),name:(0,pe.stringToNameNode)(H.TAG),repeatable:!0}});var Iu=w(Vi=>{"use strict";m();T();N();Object.defineProperty(Vi,"__esModule",{value:!0});Vi.MAX_OR_SCOPES=Vi.EDFS_ARGS_REGEXP=Vi.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=Vi.BASE_SCALARS=Vi.DIRECTIVE_DEFINITION_BY_NAME=void 0;var ut=sr(),vt=kf();Vi.DIRECTIVE_DEFINITION_BY_NAME=new Map([[ut.AUTHENTICATED,vt.AUTHENTICATED_DEFINITION],[ut.COMPOSE_DIRECTIVE,vt.COMPOSE_DIRECTIVE_DEFINITION],[ut.CONFIGURE_DESCRIPTION,vt.CONFIGURE_DESCRIPTION_DEFINITION],[ut.CONFIGURE_CHILD_DESCRIPTIONS,vt.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION],[ut.CONNECT_FIELD_RESOLVER,vt.CONNECT_FIELD_RESOLVER_DEFINITION],[ut.DEPRECATED,vt.DEPRECATED_DEFINITION],[ut.EDFS_KAFKA_PUBLISH,vt.EDFS_KAFKA_PUBLISH_DEFINITION],[ut.EDFS_KAFKA_SUBSCRIBE,vt.EDFS_KAFKA_SUBSCRIBE_DEFINITION],[ut.EDFS_NATS_PUBLISH,vt.EDFS_NATS_PUBLISH_DEFINITION],[ut.EDFS_NATS_REQUEST,vt.EDFS_NATS_REQUEST_DEFINITION],[ut.EDFS_NATS_SUBSCRIBE,vt.EDFS_NATS_SUBSCRIBE_DEFINITION],[ut.EDFS_REDIS_PUBLISH,vt.EDFS_REDIS_PUBLISH_DEFINITION],[ut.EDFS_REDIS_SUBSCRIBE,vt.EDFS_REDIS_SUBSCRIBE_DEFINITION],[ut.EXTENDS,vt.EXTENDS_DEFINITION],[ut.EXTERNAL,vt.EXTERNAL_DEFINITION],[ut.INACCESSIBLE,vt.INACCESSIBLE_DEFINITION],[ut.INTERFACE_OBJECT,vt.INTERFACE_OBJECT_DEFINITION],[ut.KEY,vt.KEY_DEFINITION],[ut.LINK,vt.LINK_DEFINITION],[ut.ONE_OF,vt.ONE_OF_DEFINITION],[ut.OVERRIDE,vt.OVERRIDE_DEFINITION],[ut.PROVIDES,vt.PROVIDES_DEFINITION],[ut.REQUIRE_FETCH_REASONS,vt.REQUIRE_FETCH_REASONS_DEFINITION],[ut.REQUIRES,vt.REQUIRES_DEFINITION],[ut.REQUIRES_SCOPES,vt.REQUIRES_SCOPES_DEFINITION],[ut.SEMANTIC_NON_NULL,vt.SEMANTIC_NON_NULL_DEFINITION],[ut.SHAREABLE,vt.SHAREABLE_DEFINITION],[ut.SPECIFIED_BY,vt.SPECIFIED_BY_DEFINITION],[ut.SUBSCRIPTION_FILTER,vt.SUBSCRIPTION_FILTER_DEFINITION],[ut.TAG,vt.TAG_DEFINITION]]);Vi.BASE_SCALARS=new Set(["_Any","_Entities",ut.BOOLEAN_SCALAR,ut.FLOAT_SCALAR,ut.ID_SCALAR,ut.INT_SCALAR,ut.FIELD_SET_SCALAR,ut.SCOPE_SCALAR,ut.STRING_SCALAR]);Vi.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME=new Map([[ut.AUTHENTICATED,vt.AUTHENTICATED_DEFINITION],[ut.COMPOSE_DIRECTIVE,vt.COMPOSE_DIRECTIVE_DEFINITION],[ut.INACCESSIBLE,vt.INACCESSIBLE_DEFINITION],[ut.INTERFACE_OBJECT,vt.INTERFACE_OBJECT_DEFINITION],[ut.LINK,vt.LINK_DEFINITION],[ut.OVERRIDE,vt.OVERRIDE_DEFINITION],[ut.REQUIRES_SCOPES,vt.REQUIRES_SCOPES_DEFINITION],[ut.SHAREABLE,vt.SHAREABLE_DEFINITION]]);Vi.EDFS_ARGS_REGEXP=/{{\s*args\.([a-zA-Z0-9_]+)\s*}}/g;Vi.MAX_OR_SCOPES=16});var sT=w(Tc=>{"use strict";m();T();N();Object.defineProperty(Tc,"__esModule",{value:!0});Tc.newParentTagData=pZ;Tc.newChildTagData=mZ;Tc.validateImplicitFieldSets=NZ;Tc.newContractTagOptionsFromArrays=TZ;Tc.getDescriptionFromString=EZ;var ei=Oe(),lZ=yu(),dZ=Iu(),fZ=Ar(),OB=Rr();function pZ(e){return{childTagDataByChildName:new Map,tagNames:new Set,typeName:e}}function mZ(e){return{name:e,tagNames:new Set,tagNamesByArgumentName:new Map}}function NZ({conditionalFieldDataByCoords:e,currentSubgraphName:t,entityData:n,implicitKeys:r,objectData:i,parentDefinitionDataByTypeName:a,graphNode:o}){let c=(0,OB.getValueOrDefault)(n.keyFieldSetDatasBySubgraphName,t,()=>new Map);for(let[l,d]of n.documentNodeByKeyFieldSet){if(c.has(l))continue;let p=[i],E=[],I=[],v=-1,A=!0,U=!0;(0,ei.visit)(d,{Argument:{enter(){return U=!1,ei.BREAK}},Field:{enter(j){let G=p[v];if(A)return U=!1,ei.BREAK;let re=j.name.value,ne=G.fieldDataByName.get(re);if(!ne||ne.argumentDataByName.size||E[v].has(re))return U=!1,ei.BREAK;let{isUnconditionallyProvided:me}=(0,OB.getOrThrowError)(ne.externalFieldDataBySubgraphName,t,`${ne.originalParentTypeName}.${re}.externalFieldDataBySubgraphName`),ue=e.get(`${ne.renamedParentTypeName}.${re}`);if(ue){if(ue.providedBy.length>0)I.push(...ue.providedBy);else if(ue.requiredBy.length>0)return U=!1,ei.BREAK}else if(!me)return U=!1,ei.BREAK;E[v].add(re);let Ae=(0,lZ.getTypeNodeNamedTypeName)(ne.node.type);if(dZ.BASE_SCALARS.has(Ae))return;let xe=a.get(Ae);if(!xe)return U=!1,ei.BREAK;if(xe.kind===ei.Kind.OBJECT_TYPE_DEFINITION){A=!0,p.push(xe);return}if((0,fZ.isKindAbstract)(xe.kind))return U=!1,ei.BREAK}},InlineFragment:{enter(){return U=!1,ei.BREAK}},SelectionSet:{enter(){if(!A||(v+=1,A=!1,v<0||v>=p.length))return U=!1,ei.BREAK;E.push(new Set)},leave(){if(A)return U=!1,ei.BREAK;v-=1,p.pop(),E.pop()}}}),U&&(r.push(Q(M({fieldName:"",selectionSet:l},I.length>0?{conditions:I}:{}),{disableEntityResolver:!0})),o&&o.satisfiedFieldSets.add(l))}}function TZ(e,t){return{tagNamesToExclude:new Set(e),tagNamesToInclude:new Set(t)}}function EZ(e){if(e)return{block:!0,kind:ei.Kind.STRING,value:e}}});var Bl=w(mt=>{"use strict";m();T();N();Object.defineProperty(mt,"__esModule",{value:!0});mt.MergeMethod=void 0;mt.newPersistedDirectivesData=IZ;mt.isNodeExternalOrShareable=gZ;mt.isTypeRequired=_Z;mt.areDefaultValuesCompatible=DB;mt.compareAndValidateInputValueDefaultValues=vZ;mt.setMutualExecutableLocations=OZ;mt.isTypeNameRootType=SZ;mt.getRenamedRootTypeName=DZ;mt.childMapToValueArray=AZ;mt.setLongestDescription=RZ;mt.isParentDataRootType=bB;mt.isInterfaceDefinitionData=PZ;mt.setParentDataExtensionType=FZ;mt.upsertDeprecatedDirective=wZ;mt.upsertTagDirectives=LZ;mt.propagateAuthDirectives=CZ;mt.propagateFieldAuthDirectives=BZ;mt.generateDeprecatedDirective=qv;mt.getClientPersistedDirectiveNodes=Mv;mt.getClientSchemaFieldNodeByFieldData=MZ;mt.getNodeWithPersistedDirectivesByInputValueData=AB;mt.addValidPersistedDirectiveDefinitionNodeByData=qZ;mt.newInvalidFieldNames=VZ;mt.validateExternalAndShareable=jZ;mt.isTypeValidImplementation=oT;mt.isNodeDataInaccessible=RB;mt.isLeafKind=KZ;mt.getSubscriptionFilterValue=GZ;mt.getParentTypeName=$Z;mt.newConditionalFieldData=QZ;mt.getDefinitionDataCoords=YZ;mt.isParentDataCompositeOutputType=JZ;mt.newExternalFieldData=HZ;mt.getInitialFederatedDescription=zZ;mt.areKindsEqual=WZ;mt.isFieldData=Vv;mt.isInputObjectDefinitionData=XZ;mt.isInputNodeKind=ZZ;mt.isOutputNodeKind=eee;var nt=Oe(),kv=Uf(),Cl=Ar(),xv=qi(),jt=sr(),Ec=Rr(),hZ=sT(),yZ=Oe();function IZ(){return{deprecatedReason:"",directivesByDirectiveName:new Map,isDeprecated:!1,tagDirectiveByName:new Map}}function gZ(e,t,n){var i;let r={isExternal:n.has(jt.EXTERNAL),isShareable:t||n.has(jt.SHAREABLE)};if(!((i=e.directives)!=null&&i.length))return r;for(let a of e.directives){let o=a.name.value;if(o===jt.EXTERNAL){r.isExternal=!0;continue}o===jt.SHAREABLE&&(r.isShareable=!0)}return r}function _Z(e){return e.kind===nt.Kind.NON_NULL_TYPE}function DB(e,t){switch(e.kind){case nt.Kind.LIST_TYPE:return t.kind===nt.Kind.LIST||t.kind===nt.Kind.NULL;case nt.Kind.NAMED_TYPE:if(t.kind===nt.Kind.NULL)return!0;switch(e.name.value){case jt.BOOLEAN_SCALAR:return t.kind===nt.Kind.BOOLEAN;case jt.FLOAT_SCALAR:return t.kind===nt.Kind.INT||t.kind===nt.Kind.FLOAT;case jt.INT_SCALAR:return t.kind===nt.Kind.INT;case jt.STRING_SCALAR:return t.kind===nt.Kind.STRING;default:return!0}case nt.Kind.NON_NULL_TYPE:return t.kind===nt.Kind.NULL?!1:DB(e.type,t)}}function vZ(e,t,n){if(!e.defaultValue)return;if(!t.defaultValue){e.includeDefaultValue=!1;return}let r=(0,nt.print)(e.defaultValue),i=(0,nt.print)(t.defaultValue);if(r!==i){n.push((0,xv.incompatibleInputValueDefaultValuesError)(`${e.isArgument?jt.ARGUMENT:jt.INPUT_FIELD} "${e.name}"`,e.originalCoords,[...t.subgraphNames],r,i));return}}function OZ(e,t){let n=new Set;for(let r of t)e.executableLocations.has(r)&&n.add(r);e.executableLocations=n}function SZ(e,t){return jt.ROOT_TYPE_NAMES.has(e)||t.has(e)}function DZ(e,t){let n=t.get(e);if(!n)return e;switch(n){case nt.OperationTypeNode.MUTATION:return jt.MUTATION;case nt.OperationTypeNode.SUBSCRIPTION:return jt.SUBSCRIPTION;default:return jt.QUERY}}function bZ(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 AZ(e){var n;let t=[];for(let r of e.values()){Vv(r)&&bZ(r);for(let[i,a]of r.directivesByDirectiveName){if(i===jt.DEPRECATED){let o=a[0];if(!o)continue;if((n=o.arguments)!=null&&n.length){r.node.directives.push(o);continue}r.node.directives.push(Q(M({},o),{arguments:[{kind:nt.Kind.ARGUMENT,value:{kind:nt.Kind.STRING,value:yZ.DEFAULT_DEPRECATION_REASON},name:(0,Cl.stringToNameNode)(jt.REASON)}]}));continue}r.node.directives.push(...a)}t.push(r.node)}return t}function RZ(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(jt.REQUIRES_SCOPES,[(0,Ec.generateRequiresScopesDirective)(t.requiredScopes)]))}function BZ(e,t){if(!t)return;let n=t.fieldAuthDataByFieldName.get(e.name);n&&(n.originalData.requiresAuthentication&&e.persistedDirectivesData.directivesByDirectiveName.set(jt.AUTHENTICATED,[(0,Ec.generateSimpleDirective)(jt.AUTHENTICATED)]),n.originalData.requiredScopes.length>0&&e.persistedDirectivesData.directivesByDirectiveName.set(jt.REQUIRES_SCOPES,[(0,Ec.generateRequiresScopesDirective)(n.originalData.requiredScopes)]))}function qv(e){return{kind:nt.Kind.DIRECTIVE,name:(0,Cl.stringToNameNode)(jt.DEPRECATED),arguments:[{kind:nt.Kind.ARGUMENT,name:(0,Cl.stringToNameNode)(jt.REASON),value:{kind:nt.Kind.STRING,value:e||jt.DEPRECATED_DEFAULT_ARGUMENT_VALUE}}]}}function UZ(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,xv.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}i.push(...o)}}return i}function kZ(e,t,n){let r=[...e.persistedDirectivesData.tagDirectiveByName.values()];return e.persistedDirectivesData.isDeprecated&&r.push(qv(e.persistedDirectivesData.deprecatedReason)),r.push(...UZ(e.persistedDirectivesData.directivesByDirectiveName,t,e.name,n)),r}function Mv(e){var n;let t=[];e.persistedDirectivesData.isDeprecated&&t.push(qv(e.persistedDirectivesData.deprecatedReason));for(let[r,i]of e.persistedDirectivesData.directivesByDirectiveName){if(r===jt.SEMANTIC_NON_NULL&&Vv(e)){t.push((0,Ec.generateSemanticNonNullDirective)((n=(0,Ec.getFirstEntry)(e.nullLevelsBySubgraphName))!=null?n:new Set([0])));continue}jt.PERSISTED_CLIENT_DIRECTIVES.has(r)&&t.push(i[0])}return t}function MZ(e){let t=Mv(e),n=[];for(let r of e.argumentDataByName.values())RB(r)||n.push(Q(M({},r.node),{directives:Mv(r)}));return Q(M({},e.node),{directives:t,arguments:n})}function AB(e,t,n){return e.node.name=(0,Cl.stringToNameNode)(e.name),e.node.type=e.type,e.node.description=e.description,e.node.directives=kZ(e,t,n),e.includeDefaultValue&&(e.node.defaultValue=e.defaultValue),e.node}function xZ(e,t,n,r,i){let a=[];for(let[o,c]of t.argumentDataByName){let l=(0,Ec.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(AB(c,n,r)),i&&i.add(o)}return a.length>0?(r.push((0,xv.invalidRequiredInputValueError)(jt.DIRECTIVE_DEFINITION,`@${t.name}`,a)),!1):!0}function qZ(e,t,n,r){let i=[];xZ(i,t,n,r)&&e.push({arguments:i,kind:nt.Kind.DIRECTIVE_DEFINITION,locations:(0,Cl.setToNameNodeArray)(t.executableLocations),name:(0,Cl.stringToNameNode)(t.name),repeatable:t.repeatable,description:t.description})}function VZ(){return{byShareable:new Set,subgraphNamesByExternalFieldName:new Map}}function jZ(e,t){let n=e.isShareableBySubgraphName.size,r=new Array,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 SB;(function(e){e[e.UNION=0]="UNION",e[e.INTERSECTION=1]="INTERSECTION",e[e.CONSISTENT=2]="CONSISTENT"})(SB||(mt.MergeMethod=SB={}));function oT(e,t,n){if(e.kind===nt.Kind.NON_NULL_TYPE)return t.kind!==nt.Kind.NON_NULL_TYPE?!1:oT(e.type,t.type,n);if(t.kind===nt.Kind.NON_NULL_TYPE)return oT(e,t.type,n);switch(e.kind){case nt.Kind.NAMED_TYPE:if(t.kind===nt.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===nt.Kind.LIST_TYPE?oT(e.type,t.type,n):!1}}function RB(e){return e.persistedDirectivesData.directivesByDirectiveName.has(jt.INACCESSIBLE)||e.directivesByDirectiveName.has(jt.INACCESSIBLE)}function KZ(e){return e===nt.Kind.SCALAR_TYPE_DEFINITION||e===nt.Kind.ENUM_TYPE_DEFINITION}function GZ(e){switch(e.kind){case nt.Kind.BOOLEAN:return e.value;case nt.Kind.ENUM:case nt.Kind.STRING:return e.value;case nt.Kind.FLOAT:case nt.Kind.INT:try{return parseFloat(e.value)}catch(t){return"NaN"}case nt.Kind.NULL:return null}}function $Z(e){return e.kind===nt.Kind.OBJECT_TYPE_DEFINITION&&e.renamedTypeName||e.name}function QZ(){return{providedBy:[],requiredBy:[]}}function YZ(e,t){switch(e.kind){case nt.Kind.ENUM_VALUE_DEFINITION:return`${e.parentTypeName}.${e.name}`;case nt.Kind.FIELD_DEFINITION:return`${t?e.renamedParentTypeName:e.originalParentTypeName}.${e.name}`;case nt.Kind.ARGUMENT:case nt.Kind.INPUT_VALUE_DEFINITION:return t?e.federatedCoords:e.originalCoords;case nt.Kind.OBJECT_TYPE_DEFINITION:return t?e.renamedTypeName:e.name;default:return e.name}}function JZ(e){return e.kind===nt.Kind.OBJECT_TYPE_DEFINITION||e.kind===nt.Kind.INTERFACE_TYPE_DEFINITION}function HZ(e){return{isDefinedExternal:e,isUnconditionallyProvided:!e}}function zZ(e){let{value:t,done:n}=e.configureDescriptionDataBySubgraphName.values().next();if(n)return e.description;if(t.propagate)return(0,hZ.getDescriptionFromString)(t.description)||e.description}function WZ(e,t){return e.kind===t.kind}function Vv(e){return e.kind===nt.Kind.FIELD_DEFINITION}function XZ(e){return e.kind===nt.Kind.INPUT_OBJECT_TYPE_DEFINITION}function ZZ(e){return jt.INPUT_NODE_KINDS.has(e)}function eee(e){return jt.OUTPUT_NODE_KINDS.has(e)}});var Gv={};Fm(Gv,{__addDisposableResource:()=>zB,__assign:()=>uT,__asyncDelegator:()=>jB,__asyncGenerator:()=>VB,__asyncValues:()=>KB,__await:()=>Ul,__awaiter:()=>BB,__classPrivateFieldGet:()=>YB,__classPrivateFieldIn:()=>HB,__classPrivateFieldSet:()=>JB,__createBinding:()=>lT,__decorate:()=>wB,__disposeResources:()=>WB,__esDecorate:()=>tee,__exportStar:()=>kB,__extends:()=>PB,__generator:()=>UB,__importDefault:()=>QB,__importStar:()=>$B,__makeTemplateObject:()=>GB,__metadata:()=>CB,__param:()=>LB,__propKey:()=>ree,__read:()=>Kv,__rest:()=>FB,__runInitializers:()=>nee,__setFunctionName:()=>iee,__spread:()=>MB,__spreadArray:()=>qB,__spreadArrays:()=>xB,__values:()=>cT,default:()=>oee});function PB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");jv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function FB(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 LB(e,t){return function(n,r){t(n,r,e)}}function tee(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",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),E,I=!1,v=n.length-1;v>=0;v--){var A={};for(var U in r)A[U]=U==="access"?{}:r[U];for(var U in r.access)A.access[U]=r.access[U];A.addInitializer=function(G){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var j=(0,n[v])(c==="accessor"?{get:p.get,set:p.set}:p[l],A);if(c==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(E=o(j.get))&&(p.get=E),(E=o(j.set))&&(p.set=E),(E=o(j.init))&&i.unshift(E)}else(E=o(j))&&(c==="field"?i.unshift(E):p[l]=E)}d&&Object.defineProperty(d,r.name,p),I=!0}function nee(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[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 Kv(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 MB(){for(var e=[],t=0;t1||c(I,v)})})}function c(I,v){try{l(r[I](v))}catch(A){E(a[0][3],A)}}function l(I){I.value instanceof Ul?Promise.resolve(I.value.v).then(d,p):E(a[0][2],I)}function d(I){c("next",I)}function p(I){c("throw",I)}function E(I,v){I(v),a.shift(),a.length&&c(a[0][0],a[0][1])}}function jB(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:Ul(e[i](o)),done:!1}:a?a(o):o}:a}}function KB(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 cT=="function"?cT(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(d){a({value:d,done:c})},o)}}function GB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function $B(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)&&lT(t,e,n);return aee(t,e),t}function QB(e){return e&&e.__esModule?e:{default:e}}function YB(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 JB(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 HB(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 zB(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 WB(e){function t(r){e.error=e.hasError?new see(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 jv,uT,lT,aee,see,oee,$v=Qu(()=>{"use strict";m();T();N();jv=function(e,t){return jv=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])},jv(e,t)};uT=function(){return uT=Object.assign||function(t){for(var n,r=1,i=arguments.length;r_U,__assign:()=>dT,__asyncDelegator:()=>mU,__asyncGenerator:()=>pU,__asyncValues:()=>NU,__await:()=>kl,__awaiter:()=>oU,__classPrivateFieldGet:()=>yU,__classPrivateFieldIn:()=>gU,__classPrivateFieldSet:()=>IU,__createBinding:()=>pT,__decorate:()=>eU,__disposeResources:()=>vU,__esDecorate:()=>nU,__exportStar:()=>cU,__extends:()=>XB,__generator:()=>uU,__importDefault:()=>hU,__importStar:()=>EU,__makeTemplateObject:()=>TU,__metadata:()=>sU,__param:()=>tU,__propKey:()=>iU,__read:()=>Jv,__rest:()=>ZB,__rewriteRelativeImportExtension:()=>OU,__runInitializers:()=>rU,__setFunctionName:()=>aU,__spread:()=>lU,__spreadArray:()=>fU,__spreadArrays:()=>dU,__values:()=>fT,default:()=>lee});function XB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Qv(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function ZB(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 tU(e,t){return function(n,r){t(n,r,e)}}function nU(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",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),E,I=!1,v=n.length-1;v>=0;v--){var A={};for(var U in r)A[U]=U==="access"?{}:r[U];for(var U in r.access)A.access[U]=r.access[U];A.addInitializer=function(G){if(I)throw new TypeError("Cannot add initializers after decoration has completed");a.push(o(G||null))};var j=(0,n[v])(c==="accessor"?{get:p.get,set:p.set}:p[l],A);if(c==="accessor"){if(j===void 0)continue;if(j===null||typeof j!="object")throw new TypeError("Object expected");(E=o(j.get))&&(p.get=E),(E=o(j.set))&&(p.set=E),(E=o(j.init))&&i.unshift(E)}else(E=o(j))&&(c==="field"?i.unshift(E):p[l]=E)}d&&Object.defineProperty(d,r.name,p),I=!0}function rU(e,t,n){for(var r=arguments.length>2,i=0;i0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[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 Jv(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 lU(){for(var e=[],t=0;t1||l(v,U)})},A&&(i[v]=A(i[v])))}function l(v,A){try{d(r[v](A))}catch(U){I(a[0][3],U)}}function d(v){v.value instanceof kl?Promise.resolve(v.value.v).then(p,E):I(a[0][2],v)}function p(v){l("next",v)}function E(v){l("throw",v)}function I(v,A){v(A),a.shift(),a.length&&l(a[0][0],a[0][1])}}function mU(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:kl(e[i](o)),done:!1}:a?a(o):o}:a}}function NU(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 fT=="function"?fT(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(d){a({value:d,done:c})},o)}}function TU(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function EU(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Yv(e),r=0;r{"use strict";m();T();N();Qv=function(e,t){return Qv=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])},Qv(e,t)};dT=function(){return dT=Object.assign||function(t){for(var n,r=1,i=arguments.length;r{"use strict";m();T();N()});var Ml=w(ji=>{"use strict";m();T();N();Object.defineProperty(ji,"__esModule",{value:!0});ji.asArray=void 0;ji.isUrl=AU;ji.isDocumentString=Nee;ji.isValidPath=Eee;ji.compareStrings=RU;ji.nodeToString=Hv;ji.compareNodes=hee;ji.isSome=yee;ji.assertSome=Iee;var dee=Oe(),fee=/^(https?|wss?|file):\/\//;function AU(e){if(typeof e!="string"||!fee.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch(t){return!1}}var pee=e=>Array.isArray(e)?e:e?[e]:[];ji.asArray=pee;var mee=/\.[a-z0-9]+$/i;function Nee(e){if(typeof e!="string"||mee.test(e)||AU(e))return!1;try{return(0,dee.parse)(e),!0}catch(t){if(!t.message.includes("EOF")&&e.replace(/(\#[^*]*)/g,"").trim()!==""&&e.includes(" "))throw new Error(`Failed to parse the GraphQL document. ${t.message} +${e}`)}return!1}var Tee=/[‘“!%^<>`\n]/;function Eee(e){return typeof e=="string"&&!Tee.test(e)}function RU(e,t){return String(e)String(t)?1:0}function Hv(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}function hee(e,t,n){let r=Hv(e),i=Hv(t);return typeof n=="function"?n(r,i):RU(r,i)}function yee(e){return e!=null}function Iee(e,t="Value should be something"){if(e==null)throw new Error(t)}});var Mf=w(NT=>{"use strict";m();T();N();Object.defineProperty(NT,"__esModule",{value:!0});NT.inspect=void 0;var wU=3;function gee(e){return mT(e,[])}NT.inspect=gee;function mT(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return _ee(e,t);default:return String(e)}}function PU(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message}; + ${e.stack}`}function _ee(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?PU(e)+` +`+FU(e.errors,t):PU(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(vee(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:mT(r,n)}else if(Array.isArray(e))return FU(e,n);return Oee(e,n)}function vee(e){return typeof e.toJSON=="function"}function Oee(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>wU?"["+See(e)+"]":"{ "+n.map(([i,a])=>i+": "+mT(a,t)).join(", ")+" }"}function FU(e,t){if(e.length===0)return"[]";if(t.length>wU)return"[Array]";let n=e.length,r=[];for(let i=0;i{"use strict";m();T();N();Object.defineProperty(TT,"__esModule",{value:!0});TT.createGraphQLError=Wv;TT.relocatedError=Aee;var zv=Oe(),Dee=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function bee(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>Dee.includes(t))}function Wv(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&bee(t.originalError)&&(t.originalError=Wv(t.originalError.message,t.originalError)),zv.versionInfo.major>=17?new zv.GraphQLError(e,t):new zv.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)}function Aee(e,t){return Wv(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t==null?e.path:t,originalError:e,extensions:e.extensions})}});var xf=w(ti=>{"use strict";m();T();N();Object.defineProperty(ti,"__esModule",{value:!0});ti.isPromise=hT;ti.isActualPromise=CU;ti.handleMaybePromise=gu;ti.fakePromise=Ya;ti.createDeferredPromise=Ree;ti.iterateAsync=BU;ti.iterateAsyncVoid=BU;ti.fakeRejectPromise=hc;ti.mapMaybePromise=Pee;ti.mapAsyncIterator=Fee;ti.promiseLikeFinally=UU;ti.unfakePromise=kU;var yT=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function hT(e){return(e==null?void 0:e.then)!=null}function CU(e){let t=e;return t&&t.then&&t.catch&&t.finally}function gu(e,t,n,r){let i=Ya().then(e).then(t,n);return r&&(i=i.finally(r)),kU(i)}function Ya(e){return e&&CU(e)?e:hT(e)?{then:(t,n)=>Ya(e.then(t,n)),catch:t=>Ya(e.then(n=>n,t)),finally:t=>Ya(t?UU(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return Ya(t(e))}catch(n){return hc(n)}return this},catch(){return this},finally(t){if(t)try{return Ya(t()).then(()=>e,()=>e)}catch(n){return hc(n)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[yT]:"resolved"}}function Ree(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise(function(i,a){e=i,t=a}),get resolve(){return e},get reject(){return t}}}function BU(e,t,n){if((e==null?void 0:e.length)===0)return;let r=e[Symbol.iterator](),i=0;function a(){let{done:o,value:c}=r.next();if(o)return;let l=!1;function d(){l=!0}return gu(function(){return t(c,d,i++)},function(E){if(E&&(n==null||n.push(E)),!l)return a()})}return a()}function hc(e){return{then(t,n){if(n)try{return Ya(n(e))}catch(r){return hc(r)}return this},catch(t){if(t)try{return Ya(t(e))}catch(n){return hc(n)}return this},finally(t){if(t)try{t()}catch(n){return hc(n)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[yT]:"rejected"}}function Pee(e,t,n){return gu(()=>e,t,n)}function Fee(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,a,o;if(r){let d;o=p=>(d||(d=gu(r,()=>p,()=>p)),d)}typeof e.return=="function"&&(i=e.return,a=d=>{let p=()=>{throw d};return i.call(e).then(p,p)});function c(d){return d.done?o?o(d):d:gu(()=>d.value,p=>gu(()=>t(p),LU,a))}let l;if(n){let d,p=n;l=E=>(d||(d=gu(()=>E,I=>gu(()=>p(I),LU,a))),d)}return{next(){return e.next().then(c,l)},return(){let d=i?i.call(e).then(c,l):Ya({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(c,l):a?a(d):hc(d)},[Symbol.asyncIterator](){return this}}}function LU(e){return{value:e,done:!1}}function wee(e){return(e==null?void 0:e[yT])==="resolved"}function Lee(e){return(e==null?void 0:e[yT])==="rejected"}function UU(e,t){return"finally"in e?e.finally(t):e.then(n=>{let r=t();return hT(r)?r.then(()=>n):n},n=>{let r=t();if(hT(r))return r.then(()=>{throw n});throw n})}function kU(e){if(wee(e))return e.__fakePromiseValue;if(Lee(e))throw e.__fakeRejectError;return e}});var IT=w(_u=>{"use strict";m();T();N();Object.defineProperty(_u,"__esModule",{value:!0});_u.isPromise=void 0;_u.isIterableObject=Cee;_u.isObjectLike=Bee;_u.promiseReduce=Uee;_u.hasOwnProperty=kee;var MU=xf();Object.defineProperty(_u,"isPromise",{enumerable:!0,get:function(){return MU.isPromise}});function Cee(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function Bee(e){return typeof e=="object"&&e!==null}function Uee(e,t,n){let r=n;for(let i of e)r=(0,MU.handleMaybePromise)(()=>r,a=>t(a,i));return r}function kee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}});var eO=w(Zv=>{"use strict";m();T();N();Object.defineProperty(Zv,"__esModule",{value:!0});Zv.getArgumentValues=xee;var Xv=Mf(),yc=Oe(),gT=ET(),Mee=IT();function xee(e,t,n={}){var o;let r={},a=((o=t.arguments)!=null?o:[]).reduce((c,l)=>Q(M({},c),{[l.name.value]:l}),{});for(let{name:c,type:l,defaultValue:d}of e.args){let p=a[c];if(!p){if(d!==void 0)r[c]=d;else if((0,yc.isNonNullType)(l))throw(0,gT.createGraphQLError)(`Argument "${c}" of required type "${(0,Xv.inspect)(l)}" was not provided.`,{nodes:[t]});continue}let E=p.value,I=E.kind===yc.Kind.NULL;if(E.kind===yc.Kind.VARIABLE){let A=E.name.value;if(n==null||!(0,Mee.hasOwnProperty)(n,A)){if(d!==void 0)r[c]=d;else if((0,yc.isNonNullType)(l))throw(0,gT.createGraphQLError)(`Argument "${c}" of required type "${(0,Xv.inspect)(l)}" was provided the variable "$${A}" which was not provided a runtime value.`,{nodes:[E]});continue}I=n[A]==null}if(I&&(0,yc.isNonNullType)(l))throw(0,gT.createGraphQLError)(`Argument "${c}" of non-null type "${(0,Xv.inspect)(l)}" must not be null.`,{nodes:[E]});let v=(0,yc.valueFromAST)(E,l,n);if(v===void 0)throw(0,gT.createGraphQLError)(`Argument "${c}" has invalid value ${(0,yc.print)(E)}.`,{nodes:[E]});r[c]=v}return r}});var vu=w(Ps=>{"use strict";m();T();N();Object.defineProperty(Ps,"__esModule",{value:!0});Ps.memoize1=qee;Ps.memoize2=Vee;Ps.memoize3=jee;Ps.memoize4=Kee;Ps.memoize5=Gee;Ps.memoize2of4=$ee;Ps.memoize2of5=Qee;function qee(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}}function Vee(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}}function jee(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 d=new WeakMap;o.set(i,d);let p=e(r,i,a);return d.set(a,p),p}let c=o.get(i);if(!c){c=new WeakMap,o.set(i,c);let d=e(r,i,a);return c.set(a,d),d}let l=c.get(a);if(l===void 0){let d=e(r,i,a);return c.set(a,d),d}return l}}function Kee(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 E=new WeakMap;c.set(i,E);let I=new WeakMap;E.set(a,I);let v=e(r,i,a,o);return I.set(o,v),v}let l=c.get(i);if(!l){l=new WeakMap,c.set(i,l);let E=new WeakMap;l.set(a,E);let I=e(r,i,a,o);return E.set(o,I),I}let d=l.get(a);if(!d){let E=new WeakMap;l.set(a,E);let I=e(r,i,a,o);return E.set(o,I),I}let p=d.get(o);if(p===void 0){let E=e(r,i,a,o);return d.set(o,E),E}return p}}function Gee(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 A=new WeakMap;v.set(a,A);let U=new WeakMap;A.set(o,U);let j=e(r,i,a,o,c);return U.set(c,j),j}let d=l.get(i);if(!d){d=new WeakMap,l.set(i,d);let v=new WeakMap;d.set(a,v);let A=new WeakMap;v.set(o,A);let U=e(r,i,a,o,c);return A.set(c,U),U}let p=d.get(a);if(!p){p=new WeakMap,d.set(a,p);let v=new WeakMap;p.set(o,v);let A=e(r,i,a,o,c);return v.set(c,A),A}let E=p.get(o);if(!E){E=new WeakMap,p.set(o,E);let v=e(r,i,a,o,c);return E.set(c,v),v}let I=E.get(c);if(I===void 0){let v=e(r,i,a,o,c);return E.set(c,v),v}return I}}function $ee(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 d=e(r,i,a,o);return c.set(i,d),d}let l=c.get(i);if(l===void 0){let d=e(r,i,a,o);return c.set(i,d),d}return l}}function Qee(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 p=e(r,i,a,o,c);return l.set(i,p),p}let d=l.get(i);if(d===void 0){let p=e(r,i,a,o,c);return l.set(i,p),p}return d}}});var nO=w(tO=>{"use strict";m();T();N();Object.defineProperty(tO,"__esModule",{value:!0});tO.getDirectiveExtensions=Hee;var xU=Oe(),Yee=eO(),Jee=vu();function Hee(e,t,n=["directives"]){var o;let r={};if(e.extensions){let c=e.extensions;for(let l of n)c=c==null?void 0:c[l];if(c!=null)for(let l in c){let d=c[l],p=l;if(Array.isArray(d))for(let E of d){let I=r[p];I||(I=[],r[p]=I),I.push(E)}else{let E=r[p];E||(E=[],r[p]=E),E.push(d)}}}let i=(0,Jee.memoize1)(c=>JSON.stringify(c)),a=[];e.astNode&&a.push(e.astNode),e.extensionASTNodes&&a.push(...e.extensionASTNodes);for(let c of a)if((o=c.directives)!=null&&o.length)for(let l of c.directives){let d=l.name.value,p=r[d];p||(p=[],r[d]=p);let E=t==null?void 0:t.getDirective(d),I={};if(E&&(I=(0,Yee.getArgumentValues)(E,l)),l.arguments)for(let v of l.arguments){let A=v.name.value;if(I[A]==null){let U=E==null?void 0:E.args.find(j=>j.name===A);U&&(I[A]=(0,xU.valueFromAST)(v.value,U.type))}I[A]==null&&(I[A]=(0,xU.valueFromASTUntyped)(v.value))}if(a.length>0&&p.length>0){let v=i(I);if(p.some(A=>i(A)===v))continue}p.push(I)}return r}});var rO=w(xl=>{"use strict";m();T();N();Object.defineProperty(xl,"__esModule",{value:!0});xl.getDirectivesInExtensions=zee;xl.getDirectiveInExtensions=Wee;xl.getDirectives=Xee;xl.getDirective=Zee;var _T=nO();function zee(e,t=["directives"]){let n=(0,_T.getDirectiveExtensions)(e,void 0,t);return Object.entries(n).map(([r,i])=>i==null?void 0:i.map(a=>({name:r,args:a}))).flat(1/0).filter(Boolean)}function Wee(e,t,n=["directives"]){return(0,_T.getDirectiveExtensions)(e,void 0,n)[t]}function Xee(e,t,n=["directives"]){let r=(0,_T.getDirectiveExtensions)(t,e,n);return Object.entries(r).map(([i,a])=>a==null?void 0:a.map(o=>({name:i,args:o}))).flat(1/0).filter(Boolean)}function Zee(e,t,n,r=["directives"]){return(0,_T.getDirectiveExtensions)(t,e,r)[n]}});var aO=w(iO=>{"use strict";m();T();N();Object.defineProperty(iO,"__esModule",{value:!0});iO.getFieldsWithDirectives=tte;var ete=Oe();function tte(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,d=`${o}.${l}`,p=c.directives.map(E=>({name:E.name.value,args:(E.arguments||[]).reduce((I,v)=>Q(M({},I),{[v.name.value]:(0,ete.valueFromASTUntyped)(v.value)}),{})}));n[d]=p}}}return n}});var qU=w(oO=>{"use strict";m();T();N();Object.defineProperty(oO,"__esModule",{value:!0});oO.getArgumentsWithDirectives=rte;var sO=Oe();function nte(e){return e.kind===sO.Kind.OBJECT_TYPE_DEFINITION||e.kind===sO.Kind.OBJECT_TYPE_EXTENSION}function rte(e){var r;let t={},n=e.definitions.filter(nte);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 d;return(d=l.directives)==null?void 0:d.length});if(!(o!=null&&o.length))continue;let c=t[`${i.name.value}.${a.name.value}`]={};for(let l of o){let d=l.directives.map(p=>({name:p.name.value,args:(p.arguments||[]).reduce((E,I)=>Q(M({},E),{[I.name.value]:(0,sO.valueFromASTUntyped)(I.value)}),{})}));c[l.name.value]=d}}return t}});var cO=w(uO=>{"use strict";m();T();N();Object.defineProperty(uO,"__esModule",{value:!0});uO.getImplementingTypes=ite;function ite(e,t){let n=t.getTypeMap(),r=[];for(let i in n){let a=n[i];"getInterfaces"in a&&a.getInterfaces().find(c=>c.name===e)&&r.push(a.name)}return r}});var vT=w(dO=>{"use strict";m();T();N();Object.defineProperty(dO,"__esModule",{value:!0});dO.astFromType=lO;var ate=Mf(),Ic=Oe();function lO(e){if((0,Ic.isNonNullType)(e)){let t=lO(e.ofType);if(t.kind===Ic.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${(0,ate.inspect)(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Ic.Kind.NON_NULL_TYPE,type:t}}else if((0,Ic.isListType)(e))return{kind:Ic.Kind.LIST_TYPE,type:lO(e.ofType)};return{kind:Ic.Kind.NAMED_TYPE,name:{kind:Ic.Kind.NAME,value:e.name}}}});var qf=w(fO=>{"use strict";m();T();N();Object.defineProperty(fO,"__esModule",{value:!0});fO.astFromValueUntyped=OT;var Ja=Oe();function OT(e){if(e===null)return{kind:Ja.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=OT(n);r!=null&&t.push(r)}return{kind:Ja.Kind.LIST,values:t}}if(typeof e=="object"){if(e!=null&&e.toJSON)return OT(e.toJSON());let t=[];for(let n in e){let r=e[n],i=OT(r);i&&t.push({kind:Ja.Kind.OBJECT_FIELD,name:{kind:Ja.Kind.NAME,value:n},value:i})}return{kind:Ja.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:Ja.Kind.BOOLEAN,value:e};if(typeof e=="bigint")return{kind:Ja.Kind.INT,value:String(e)};if(typeof e=="number"&&isFinite(e)){let t=String(e);return ste.test(t)?{kind:Ja.Kind.INT,value:t}:{kind:Ja.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:Ja.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var ste=/^-?(?:0|[1-9][0-9]*)$/});var jU=w(pO=>{"use strict";m();T();N();Object.defineProperty(pO,"__esModule",{value:!0});pO.astFromValue=Vf;var ote=Mf(),Ti=Oe(),ute=qf(),VU=IT();function Vf(e,t){if((0,Ti.isNonNullType)(t)){let n=Vf(e,t.ofType);return(n==null?void 0:n.kind)===Ti.Kind.NULL?null:n}if(e===null)return{kind:Ti.Kind.NULL};if(e===void 0)return null;if((0,Ti.isListType)(t)){let n=t.ofType;if((0,VU.isIterableObject)(e)){let r=[];for(let i of e){let a=Vf(i,n);a!=null&&r.push(a)}return{kind:Ti.Kind.LIST,values:r}}return Vf(e,n)}if((0,Ti.isInputObjectType)(t)){if(!(0,VU.isObjectLike)(e))return null;let n=[];for(let r of Object.values(t.getFields())){let i=Vf(e[r.name],r.type);i&&n.push({kind:Ti.Kind.OBJECT_FIELD,name:{kind:Ti.Kind.NAME,value:r.name},value:i})}return{kind:Ti.Kind.OBJECT,fields:n}}if((0,Ti.isLeafType)(t)){let n=t.serialize(e);return n==null?null:(0,Ti.isEnumType)(t)?{kind:Ti.Kind.ENUM,value:n}:t.name==="ID"&&typeof n=="string"&&cte.test(n)?{kind:Ti.Kind.INT,value:n}:(0,ute.astFromValueUntyped)(n)}console.assert(!1,"Unexpected input type: "+(0,ote.inspect)(t))}var cte=/^-?(?:0|[1-9][0-9]*)$/});var KU=w(mO=>{"use strict";m();T();N();Object.defineProperty(mO,"__esModule",{value:!0});mO.getDescriptionNode=dte;var lte=Oe();function dte(e){var t;if((t=e.astNode)!=null&&t.description)return Q(M({},e.astNode.description),{block:!0});if(e.description)return{kind:lte.Kind.STRING,value:e.description,block:!0}}});var jf=w(Ki=>{"use strict";m();T();N();Object.defineProperty(Ki,"__esModule",{value:!0});Ki.getRootTypeMap=Ki.getRootTypes=Ki.getRootTypeNames=void 0;Ki.getDefinedRootType=pte;var fte=ET(),NO=vu();function pte(e,t,n){let i=(0,Ki.getRootTypeMap)(e).get(t);if(i==null)throw(0,fte.createGraphQLError)(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}Ki.getRootTypeNames=(0,NO.memoize1)(function(t){let n=(0,Ki.getRootTypes)(t);return new Set([...n].map(r=>r.name))});Ki.getRootTypes=(0,NO.memoize1)(function(t){let n=(0,Ki.getRootTypeMap)(t);return new Set(n.values())});Ki.getRootTypeMap=(0,NO.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 IO=w(Hn=>{"use strict";m();T();N();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.getDocumentNodeFromSchema=$U;Hn.printSchemaWithDirectives=Ete;Hn.astFromSchema=QU;Hn.astFromDirective=YU;Hn.getDirectiveNodes=Na;Hn.astFromArg=EO;Hn.astFromObjectType=JU;Hn.astFromInterfaceType=HU;Hn.astFromUnionType=zU;Hn.astFromInputObjectType=WU;Hn.astFromEnumType=XU;Hn.astFromScalarType=ZU;Hn.astFromField=hO;Hn.astFromInputField=ek;Hn.astFromEnumValue=tk;Hn.makeDeprecatedDirective=nk;Hn.makeDirectiveNode=ql;Hn.makeDirectiveNodes=yO;var Nt=Oe(),gc=vT(),TO=jU(),mte=qf(),Gi=KU(),GU=rO(),Nte=Ml(),Tte=jf();function $U(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=QU(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,Nt.isSpecifiedDirective)(c)||a.push(YU(c,e,n));for(let c in r){let l=r[c],d=(0,Nt.isSpecifiedScalarType)(l),p=(0,Nt.isIntrospectionType)(l);if(!(d||p))if((0,Nt.isObjectType)(l))a.push(JU(l,e,n));else if((0,Nt.isInterfaceType)(l))a.push(HU(l,e,n));else if((0,Nt.isUnionType)(l))a.push(zU(l,e,n));else if((0,Nt.isInputObjectType)(l))a.push(WU(l,e,n));else if((0,Nt.isEnumType)(l))a.push(XU(l,e,n));else if((0,Nt.isScalarType)(l))a.push(ZU(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:Nt.Kind.DOCUMENT,definitions:a}}function Ete(e,t={}){let n=$U(e,t);return(0,Nt.print)(n)}function QU(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 d of e.extensionASTNodes)r.push(d);for(let d of r)if(d.operationTypes)for(let p of d.operationTypes)n.set(p.operation,p);let i=(0,Tte.getRootTypeMap)(e);for(let[d,p]of n){let E=i.get(d);if(E!=null){let I=(0,gc.astFromType)(E);p!=null?p.type=I:n.set(d,{kind:Nt.Kind.OPERATION_TYPE_DEFINITION,operation:d,type:I})}}let a=[...n.values()].filter(Nte.isSome),o=Na(e,e,t);if(!a.length&&!o.length)return null;let c={kind:a.length?Nt.Kind.SCHEMA_DEFINITION:Nt.Kind.SCHEMA_EXTENSION,operationTypes:a,directives:o},l=(0,Gi.getDescriptionNode)(e);return l&&(c.description=l),c}function YU(e,t,n){var r,i;return{kind:Nt.Kind.DIRECTIVE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},arguments:(r=e.args)==null?void 0:r.map(a=>EO(a,t,n)),repeatable:e.isRepeatable,locations:((i=e.locations)==null?void 0:i.map(a=>({kind:Nt.Kind.NAME,value:a})))||[]}}function Na(e,t,n){let r=[],i=(0,GU.getDirectivesInExtensions)(e,n),a;i!=null&&(a=yO(t,i));let o=null,c=null,l=null;if(a!=null&&(r=a.filter(d=>Nt.specifiedDirectives.every(p=>p.name!==d.name.value)),o=a.find(d=>d.name.value==="deprecated"),c=a.find(d=>d.name.value==="specifiedBy"),l=a.find(d=>d.name.value==="oneOf")),e.deprecationReason!=null&&o==null&&(o=nk(e.deprecationReason)),e.specifiedByUrl!=null||e.specifiedByURL!=null&&c==null){let p={url:e.specifiedByUrl||e.specifiedByURL};c=ql("specifiedBy",p)}return e.isOneOf&&l==null&&(l=ql("oneOf")),o!=null&&r.push(o),c!=null&&r.push(c),l!=null&&r.push(l),r}function EO(e,t,n){var r;return{kind:Nt.Kind.INPUT_VALUE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},type:(0,gc.astFromType)(e.type),defaultValue:e.defaultValue!==void 0&&(r=(0,TO.astFromValue)(e.defaultValue,e.type))!=null?r:void 0,directives:Na(e,t,n)}}function JU(e,t,n){return{kind:Nt.Kind.OBJECT_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>hO(r,t,n)),interfaces:Object.values(e.getInterfaces()).map(r=>(0,gc.astFromType)(r)),directives:Na(e,t,n)}}function HU(e,t,n){let r={kind:Nt.Kind.INTERFACE_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(i=>hO(i,t,n)),directives:Na(e,t,n)};return"getInterfaces"in e&&(r.interfaces=Object.values(e.getInterfaces()).map(i=>(0,gc.astFromType)(i))),r}function zU(e,t,n){return{kind:Nt.Kind.UNION_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},directives:Na(e,t,n),types:e.getTypes().map(r=>(0,gc.astFromType)(r))}}function WU(e,t,n){return{kind:Nt.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(r=>ek(r,t,n)),directives:Na(e,t,n)}}function XU(e,t,n){return{kind:Nt.Kind.ENUM_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(r=>tk(r,t,n)),directives:Na(e,t,n)}}function ZU(e,t,n){let r=(0,GU.getDirectivesInExtensions)(e,n),i=yO(t,r),a=e.specifiedByUrl||e.specifiedByURL;if(a&&!i.some(o=>o.name.value==="specifiedBy")){let o={url:a};i.push(ql("specifiedBy",o))}return{kind:Nt.Kind.SCALAR_TYPE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},directives:i}}function hO(e,t,n){return{kind:Nt.Kind.FIELD_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},arguments:e.args.map(r=>EO(r,t,n)),type:(0,gc.astFromType)(e.type),directives:Na(e,t,n)}}function ek(e,t,n){var r;return{kind:Nt.Kind.INPUT_VALUE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},type:(0,gc.astFromType)(e.type),directives:Na(e,t,n),defaultValue:(r=(0,TO.astFromValue)(e.defaultValue,e.type))!=null?r:void 0}}function tk(e,t,n){return{kind:Nt.Kind.ENUM_VALUE_DEFINITION,description:(0,Gi.getDescriptionNode)(e),name:{kind:Nt.Kind.NAME,value:e.name},directives:Na(e,t,n)}}function nk(e){return ql("deprecated",{reason:e},Nt.GraphQLDeprecatedDirective)}function ql(e,t,n){let r=[];for(let i in t){let a=t[i],o;if(n!=null){let c=n.args.find(l=>l.name===i);c&&(o=(0,TO.astFromValue)(a,c.type))}o==null&&(o=(0,mte.astFromValueUntyped)(a)),o!=null&&r.push({kind:Nt.Kind.ARGUMENT,name:{kind:Nt.Kind.NAME,value:i},value:o})}return{kind:Nt.Kind.DIRECTIVE,name:{kind:Nt.Kind.NAME,value:e},arguments:r}}function yO(e,t){let n=[];for(let{name:r,args:i}of t){let a=e==null?void 0:e.getDirective(r);n.push(ql(r,i,a))}return n}});var ik=w(ST=>{"use strict";m();T();N();Object.defineProperty(ST,"__esModule",{value:!0});ST.validateGraphQlDocuments=hte;ST.createDefaultRules=rk;var Kf=Oe();function hte(e,t,n=rk()){var c;let r=new Set,i=new Map;for(let l of t)for(let d of l.definitions)d.kind===Kf.Kind.FRAGMENT_DEFINITION?i.set(d.name.value,d):r.add(d);let a={kind:Kf.Kind.DOCUMENT,definitions:Array.from([...r,...i.values()])},o=(0,Kf.validate)(e,a,n);for(let l of o)if(l.stack=l.message,l.locations)for(let d of l.locations)l.stack+=` + at ${(c=l.source)==null?void 0:c.name}:${d.line}:${d.column}`;return o}function rk(){let e=["NoUnusedFragmentsRule","NoUnusedVariablesRule","KnownDirectivesRule"];return Kf.versionInfo.major<15&&(e=e.map(t=>t.replace(/Rule$/,""))),Kf.specifiedRules.filter(t=>!e.includes(t.name))}});var ak=w(gO=>{"use strict";m();T();N();Object.defineProperty(gO,"__esModule",{value:!0});gO.parseGraphQLJSON=_te;var yte=Oe();function Ite(e){return e=e.toString(),e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function gte(e){return JSON.parse(Ite(e))}function _te(e,t,n){let r=gte(t);if(r.data&&(r=r.data),r.kind==="Document")return{location:e,document:r};if(r.__schema){let i=(0,yte.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")}});var vO=w($i=>{"use strict";m();T();N();Object.defineProperty($i,"__esModule",{value:!0});$i.resetComments=Ote;$i.collectComment=Ste;$i.pushComment=Gf;$i.printComment=lk;$i.printWithComments=Rte;$i.getDescription=Fte;$i.getComment=_O;$i.getLeadingCommentBlock=dk;$i.dedentBlockStringValue=fk;$i.getBlockStringIndentation=pk;var ck=Oe(),vte=80,Vl={};function Ote(){Vl={}}function Ste(e){var n;let t=(n=e.name)==null?void 0:n.value;if(t!=null)switch(Gf(e,t),e.kind){case"EnumTypeDefinition":if(e.values)for(let r of e.values)Gf(r,t,r.name.value);break;case"ObjectTypeDefinition":case"InputObjectTypeDefinition":case"InterfaceTypeDefinition":if(e.fields){for(let r of e.fields)if(Gf(r,t,r.name.value),Pte(r)&&r.arguments)for(let i of r.arguments)Gf(i,t,r.name.value,i.name.value)}break}}function Gf(e,t,n,r){let i=_O(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)}function lk(e){return` # `+e.replace(/\n/g,` -# `)}xn.printComment=KU;function ke(e,t){return e?e.filter(n=>n).join(t||""):""}function xU(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` -`)))!=null?t:!1}function Zee(e){return(t,n,r,i,a)=>{var f;let o=[],c=i.reduce((y,I)=>(["fields","arguments","values"].includes(I)&&y.name&&o.push(y.name.value),y[I]),a[0]),l=[...o,(f=c==null?void 0:c.name)==null?void 0:f.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&Kl[l]&&d.push(...Kl[l]),ke([...d.map(KU),t.description,e(t,n,r,i,a)],` -`)}}function zp(e){return e&&` ${e.replace(/\n/g,` - `)}`}function Ea(e){return e&&e.length!==0?`{ -${zp(ke(e,` +# `)}function Me(e,t){return e?e.filter(n=>n).join(t||""):""}function sk(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(` +`)))!=null?t:!1}function Dte(e){return(t,n,r,i,a)=>{var p;let o=[],c=i.reduce((E,I)=>(["fields","arguments","values"].includes(I)&&E.name&&o.push(E.name.value),E[I]),a[0]),l=[...o,(p=c==null?void 0:c.name)==null?void 0:p.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&Vl[l]&&d.push(...Vl[l]),Me([...d.map(lk),t.description,e(t,n,r,i,a)],` +`)}}function $f(e){return e&&` ${e.replace(/\n/g,` + `)}`}function Ta(e){return e&&e.length!==0?`{ +${$f(Me(e,` `))} -}`:""}function An(e,t,n){return t?e+t+(n||""):""}function ete(e,t=!1){let n=e.replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` +}`:""}function An(e,t,n){return t?e+t+(n||""):""}function bte(e,t=!1){let n=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(` `)===-1?`"""${n.replace(/"$/,`" `)}"""`:`""" -${t?n:zp(n)} -"""`}var qU={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ke(e.definitions,` +${t?n:$f(n)} +"""`}var ok={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Me(e.definitions,` -`)},OperationDefinition:{leave:e=>{let t=An("(",ke(e.variableDefinitions,", "),")");return ke([e.operation,ke([e.name,t]),ke(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+An(" = ",n)+An(" ",ke(r," "))},SelectionSet:{leave:({selections:e})=>Ea(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=An("",e,": ")+t,o=a+An("(",ke(n,", "),")");return o.length>zee&&(o=a+An(`( -`,zp(ke(n,` +`)},OperationDefinition:{leave:e=>{let t=An("(",Me(e.variableDefinitions,", "),")");return Me([e.operation,Me([e.name,t]),Me(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+An(" = ",n)+An(" ",Me(r," "))},SelectionSet:{leave:({selections:e})=>Ta(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=An("",e,": ")+t,o=a+An("(",Me(n,", "),")");return o.length>vte&&(o=a+An(`( +`,$f(Me(n,` `)),` -)`)),ke([o,ke(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+An(" ",ke(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ke(["...",An("on ",e),ke(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${An("(",ke(n,", "),")")} on ${t} ${An("",ke(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?ete(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ke(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ke(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+An("(",ke(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>ke(["schema",ke(e," "),Ea(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>ke(["scalar",e,ke(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ke(["type",e,An("implements ",ke(t," & ")),ke(n," "),Ea(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(xU(t)?An(`( -`,zp(ke(t,` +)`)),Me([o,Me(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+An(" ",Me(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Me(["...",An("on ",e),Me(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${An("(",Me(n,", "),")")} on ${t} ${An("",Me(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?bte(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Me(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Me(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+An("(",Me(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>Me(["schema",Me(e," "),Ta(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>Me(["scalar",e,Me(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["type",e,An("implements ",Me(t," & ")),Me(n," "),Ta(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(sk(t)?An(`( +`,$f(Me(t,` `)),` -)`):An("(",ke(t,", "),")"))+": "+n+An(" ",ke(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>ke([e+": "+t,An("= ",n),ke(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ke(["interface",e,An("implements ",ke(t," & ")),ke(n," "),Ea(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>ke(["union",e,ke(t," "),An("= ",ke(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>ke(["enum",e,ke(t," "),Ea(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>ke([e,ke(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>ke(["input",e,ke(t," "),Ea(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(xU(t)?An(`( -`,zp(ke(t,` +)`):An("(",Me(t,", "),")"))+": "+n+An(" ",Me(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>Me([e+": "+t,An("= ",n),Me(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["interface",e,An("implements ",Me(t," & ")),Me(n," "),Ta(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>Me(["union",e,Me(t," "),An("= ",Me(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>Me(["enum",e,Me(t," "),Ta(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>Me([e,Me(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>Me(["input",e,Me(t," "),Ta(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(sk(t)?An(`( +`,$f(Me(t,` `)),` -)`):An("(",ke(t,", "),")"))+(n?" repeatable":"")+" on "+ke(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ke(["extend schema",ke(e," "),Ea(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ke(["extend scalar",e,ke(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ke(["extend type",e,An("implements ",ke(t," & ")),ke(n," "),Ea(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ke(["extend interface",e,An("implements ",ke(t," & ")),ke(n," "),Ea(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ke(["extend union",e,ke(t," "),An("= ",ke(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ke(["extend enum",e,ke(t," "),Ea(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ke(["extend input",e,ke(t," "),Ea(n)]," ")}},tte=Object.keys(qU).reduce((e,t)=>$(M({},e),{[t]:{leave:Zee(qU[t].leave)}}),{});function nte(e){return(0,jU.visit)(e,tte)}xn.printWithComments=nte;function rte(e){return e.kind==="FieldDefinition"}function ite(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return PO(e)}xn.getDescription=ite;function PO(e){let t=GU(e);if(t!==void 0)return $U(` -${t}`)}xn.getComment=PO;function GU(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===jU.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` -`):void 0}xn.getLeadingCommentBlock=GU;function $U(e){let t=e.split(/\r\n|[\n\r]/g),n=QU(t);if(n!==0)for(let r=1;r0&&VU(t[0]);)t.shift();for(;t.length>0&&VU(t[t.length-1]);)t.pop();return t.join(` -`)}xn.dedentBlockStringValue=$U;function QU(e){let t=null;for(let n=1;n{"use strict";m();T();N();Object.defineProperty(vu,"__esModule",{value:!0});vu.isDescribable=vu.transformCommentsToDescriptions=vu.parseGraphQLSDL=void 0;var Ji=Oe(),JU=FO();function ate(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=HU(t,n),n.noLocation&&(r=(0,Ji.parse)((0,Ji.print)(r),n))):r=(0,Ji.parse)(new Ji.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Ji.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}vu.parseGraphQLSDL=ate;function HU(e,t={}){let n=(0,Ji.parse)(e,$(M({},t),{noLocation:!1}));return(0,Ji.visit)(n,{leave:i=>{if(zU(i)){let a=(0,JU.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,JU.dedentBlockStringValue)(` +)`):An("(",Me(t,", "),")"))+(n?" repeatable":"")+" on "+Me(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Me(["extend schema",Me(e," "),Ta(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Me(["extend scalar",e,Me(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["extend type",e,An("implements ",Me(t," & ")),Me(n," "),Ta(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Me(["extend interface",e,An("implements ",Me(t," & ")),Me(n," "),Ta(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Me(["extend union",e,Me(t," "),An("= ",Me(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Me(["extend enum",e,Me(t," "),Ta(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Me(["extend input",e,Me(t," "),Ta(n)]," ")}},Ate=Object.keys(ok).reduce((e,t)=>Q(M({},e),{[t]:{leave:Dte(ok[t].leave)}}),{});function Rte(e){return(0,ck.visit)(e,Ate)}function Pte(e){return e.kind==="FieldDefinition"}function Fte(e,t){if(e.description!=null)return e.description.value;if(t!=null&&t.commentDescriptions)return _O(e)}function _O(e){let t=dk(e);if(t!==void 0)return fk(` +${t}`)}function dk(e){let t=e.loc;if(!t)return;let n=[],r=t.startToken.prev;for(;r!=null&&r.kind===ck.TokenKind.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){let i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(` +`):void 0}function fk(e){let t=e.split(/\r\n|[\n\r]/g),n=pk(t);if(n!==0)for(let r=1;r0&&uk(t[0]);)t.shift();for(;t.length>0&&uk(t[t.length-1]);)t.pop();return t.join(` +`)}function pk(e){let t=null;for(let n=1;n{"use strict";m();T();N();Object.defineProperty(Qf,"__esModule",{value:!0});Qf.parseGraphQLSDL=wte;Qf.transformCommentsToDescriptions=Tk;Qf.isDescribable=Ek;var Qi=Oe(),Nk=vO();function wte(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=Tk(t,n),n.noLocation&&(r=(0,Qi.parse)((0,Qi.print)(r),n))):r=(0,Qi.parse)(new Qi.Source(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Qi.Kind.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function Tk(e,t={}){let n=(0,Qi.parse)(e,Q(M({},t),{noLocation:!1}));return(0,Qi.visit)(n,{leave:i=>{if(Ek(i)){let a=(0,Nk.getLeadingCommentBlock)(i);if(a!==void 0){let o=(0,Nk.dedentBlockStringValue)(` `+a),c=o.includes(` -`);return i.description?$(M({},i),{description:$(M({},i.description),{value:i.description.value+` -`+o,block:!0})}):$(M({},i),{description:{kind:Ji.Kind.STRING,value:o,block:c}})}}}})}vu.transformCommentsToDescriptions=HU;function zU(e){return(0,Ji.isTypeSystemDefinitionNode)(e)||e.kind===Ji.Kind.FIELD_DEFINITION||e.kind===Ji.Kind.INPUT_VALUE_DEFINITION||e.kind===Ji.Kind.ENUM_VALUE_DEFINITION}vu.isDescribable=zU});var ak=F(PT=>{"use strict";m();T();N();Object.defineProperty(PT,"__esModule",{value:!0});PT.buildOperationNodeForField=void 0;var pt=Oe(),tk=$p(),CO=[],RT=new Map;function nk(e){CO.push(e)}function XU(){CO=[]}function ZU(){RT=new Map}function ste({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){XU(),ZU();let d=(0,tk.getRootTypeNames)(e),f=ote({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:d});return f.variableDefinitions=[...CO],XU(),ZU(),f}PT.buildOperationNodeForField=ste;function ote({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:d}){let f=(0,tk.getDefinedRootType)(e,n),y=f.getFields()[t],I=`${t}_${n}`;if(y.args)for(let v of y.args){let w=v.name;(!c||c.includes(w))&&nk(rk(v,w))}return{kind:pt.Kind.OPERATION_DEFINITION,operation:n,name:{kind:pt.Kind.NAME,value:I},variableDefinitions:[],selectionSet:{kind:pt.Kind.SELECTION_SET,selections:[ik({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:d})]}}}function LO({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:f,argNames:y,selectedFields:I,rootTypeNames:v}){if(!(typeof I=="boolean"&&f>c)){if((0,pt.isUnionType)(t)){let w=t.getTypes();return{kind:pt.Kind.SELECTION_SET,selections:w.filter(U=>!wO([...a,U],{depth:l})).map(U=>({kind:pt.Kind.INLINE_FRAGMENT,typeCondition:{kind:pt.Kind.NAMED_TYPE,name:{kind:pt.Kind.NAME,value:U.name}},selectionSet:LO({parent:t,type:U,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:f,argNames:y,selectedFields:I,rootTypeNames:v})})).filter(U=>{var j,Y;return((Y=(j=U==null?void 0:U.selectionSet)==null?void 0:j.selections)==null?void 0:Y.length)>0})}}if((0,pt.isInterfaceType)(t)){let w=Object.values(d.getTypeMap()).filter(U=>(0,pt.isObjectType)(U)&&U.getInterfaces().includes(t));return{kind:pt.Kind.SELECTION_SET,selections:w.filter(U=>!wO([...a,U],{depth:l})).map(U=>({kind:pt.Kind.INLINE_FRAGMENT,typeCondition:{kind:pt.Kind.NAMED_TYPE,name:{kind:pt.Kind.NAME,value:U.name}},selectionSet:LO({parent:t,type:U,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:f,argNames:y,selectedFields:I,rootTypeNames:v})})).filter(U=>{var j,Y;return((Y=(j=U==null?void 0:U.selectionSet)==null?void 0:j.selections)==null?void 0:Y.length)>0})}}if((0,pt.isObjectType)(t)&&!v.has(t.name)){let w=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),U=n.includes(t.name);if(!r&&U&&!w)return{kind:pt.Kind.SELECTION_SET,selections:[{kind:pt.Kind.FIELD,name:{kind:pt.Kind.NAME,value:"id"}}]};let j=t.getFields();return{kind:pt.Kind.SELECTION_SET,selections:Object.keys(j).filter(Y=>!wO([...a,(0,pt.getNamedType)(j[Y].type)],{depth:l})).map(Y=>{let re=typeof I=="object"?I[Y]:!0;return re?ik({type:t,field:j[Y],models:n,path:[...i,Y],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:f,argNames:y,selectedFields:re,rootTypeNames:v}):null}).filter(Y=>{var re,ne;return Y==null?!1:"selectionSet"in Y?!!((ne=(re=Y.selectionSet)==null?void 0:re.selections)!=null&&ne.length):!0})}}}}function rk(e,t){function n(r){return(0,pt.isListType)(r)?{kind:pt.Kind.LIST_TYPE,type:n(r.ofType)}:(0,pt.isNonNullType)(r)?{kind:pt.Kind.NON_NULL_TYPE,type:n(r.ofType)}:{kind:pt.Kind.NAMED_TYPE,name:{kind:pt.Kind.NAME,value:r.name}}}return{kind:pt.Kind.VARIABLE_DEFINITION,variable:{kind:pt.Kind.VARIABLE,name:{kind:pt.Kind.NAME,value:t||e.name}},type:n(e.type)}}function ek(e,t){return[...t,e].join("_")}function ik({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:f,argNames:y,selectedFields:I,rootTypeNames:v}){let w=(0,pt.getNamedType)(t.type),U=[],j=!1;if(t.args&&t.args.length&&(U=t.args.map(me=>{let ue=ek(me.name,i);return y&&!y.includes(ue)?((0,pt.isNonNullType)(me.type)&&(j=!0),null):(r||nk(rk(me,ue)),{kind:pt.Kind.ARGUMENT,name:{kind:pt.Kind.NAME,value:me.name},value:{kind:pt.Kind.VARIABLE,name:{kind:pt.Kind.NAME,value:ek(me.name,i)}}})}).filter(Boolean)),j)return null;let Y=[...i,t.name],re=Y.join("."),ne=t.name;return RT.has(re)&&RT.get(re)!==t.type.toString()&&(ne+=t.type.toString().replace("!","NonNull").replace("[","List").replace("]","")),RT.set(re,t.type.toString()),!(0,pt.isScalarType)(w)&&!(0,pt.isEnumType)(w)?$(M({kind:pt.Kind.FIELD,name:{kind:pt.Kind.NAME,value:t.name}},ne!==t.name&&{alias:{kind:pt.Kind.NAME,value:ne}}),{selectionSet:LO({parent:e,type:w,models:n,firstCall:r,path:Y,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:f+1,argNames:y,selectedFields:I,rootTypeNames:v})||void 0,arguments:U}):$(M({kind:pt.Kind.FIELD,name:{kind:pt.Kind.NAME,value:t.name}},ne!==t.name&&{alias:{kind:pt.Kind.NAME,value:ne}}),{arguments:U})}function wO(e,t={depth:1}){let n=e[e.length-1];return(0,pt.isScalarType)(n)?!1:e.filter(i=>i.name===n.name).length>t.depth}});var ok=F(FT=>{"use strict";m();T();N();Object.defineProperty(FT,"__esModule",{value:!0});FT.DirectiveLocation=void 0;var sk;(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"})(sk||(FT.DirectiveLocation=sk={}))});var Oc=F(wT=>{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.MapperKind=void 0;var uk;(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"})(uk||(wT.MapperKind=uk={}))});var BO=F(LT=>{"use strict";m();T();N();Object.defineProperty(LT,"__esModule",{value:!0});LT.getObjectTypeFromTypeMap=void 0;var ute=Oe();function cte(e,t){if(t){let n=e[t.name];if((0,ute.isObjectType)(n))return n}}LT.getObjectTypeFromTypeMap=cte});var MO=F(Ha=>{"use strict";m();T();N();Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getBuiltInForStub=Ha.isNamedStub=Ha.createStub=Ha.createNamedStub=void 0;var Er=Oe();function UO(e,t){let n;return t==="object"?n=Er.GraphQLObjectType:t==="interface"?n=Er.GraphQLInterfaceType:n=Er.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:Er.GraphQLString}}})}Ha.createNamedStub=UO;function kO(e,t){switch(e.kind){case Er.Kind.LIST_TYPE:return new Er.GraphQLList(kO(e.type,t));case Er.Kind.NON_NULL_TYPE:return new Er.GraphQLNonNull(kO(e.type,t));default:return t==="output"?UO(e.name.value,"object"):UO(e.name.value,"input")}}Ha.createStub=kO;function lte(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}Ha.isNamedStub=lte;function dte(e){switch(e.name){case Er.GraphQLInt.name:return Er.GraphQLInt;case Er.GraphQLFloat.name:return Er.GraphQLFloat;case Er.GraphQLString.name:return Er.GraphQLString;case Er.GraphQLBoolean.name:return Er.GraphQLBoolean;case Er.GraphQLID.name:return Er.GraphQLID;default:return e}}Ha.getBuiltInForStub=dte});var BT=F(CT=>{"use strict";m();T();N();Object.defineProperty(CT,"__esModule",{value:!0});CT.rewireTypes=void 0;var Xn=Oe(),ck=MO();function pte(e,t){let n=Object.create(null);for(let I in e)n[I]=e[I];let r=Object.create(null);for(let I in n){let v=n[I];if(v==null||I.startsWith("__"))continue;let w=v.name;if(!w.startsWith("__")){if(r[w]!=null){console.warn(`Duplicate schema type name ${w} found; keeping the existing one found in the schema`);continue}r[w]=v}}for(let I in r)r[I]=c(r[I]);let i=t.map(I=>a(I));return{typeMap:r,directives:i};function a(I){if((0,Xn.isSpecifiedDirective)(I))return I;let v=I.toConfig();return v.args=o(v.args),new Xn.GraphQLDirective(v)}function o(I){let v={};for(let w in I){let U=I[w],j=y(U.type);j!=null&&(U.type=j,v[w]=U)}return v}function c(I){if((0,Xn.isObjectType)(I)){let v=I.toConfig(),w=$(M({},v),{fields:()=>l(v.fields),interfaces:()=>f(v.interfaces)});return new Xn.GraphQLObjectType(w)}else if((0,Xn.isInterfaceType)(I)){let v=I.toConfig(),w=$(M({},v),{fields:()=>l(v.fields)});return"interfaces"in w&&(w.interfaces=()=>f(v.interfaces)),new Xn.GraphQLInterfaceType(w)}else if((0,Xn.isUnionType)(I)){let v=I.toConfig(),w=$(M({},v),{types:()=>f(v.types)});return new Xn.GraphQLUnionType(w)}else if((0,Xn.isInputObjectType)(I)){let v=I.toConfig(),w=$(M({},v),{fields:()=>d(v.fields)});return new Xn.GraphQLInputObjectType(w)}else if((0,Xn.isEnumType)(I)){let v=I.toConfig();return new Xn.GraphQLEnumType(v)}else if((0,Xn.isScalarType)(I)){if((0,Xn.isSpecifiedScalarType)(I))return I;let v=I.toConfig();return new Xn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${I}`)}function l(I){let v={};for(let w in I){let U=I[w],j=y(U.type);j!=null&&U.args&&(U.type=j,U.args=o(U.args),v[w]=U)}return v}function d(I){let v={};for(let w in I){let U=I[w],j=y(U.type);j!=null&&(U.type=j,v[w]=U)}return v}function f(I){let v=[];for(let w of I){let U=y(w);U!=null&&v.push(U)}return v}function y(I){if((0,Xn.isListType)(I)){let v=y(I.ofType);return v!=null?new Xn.GraphQLList(v):null}else if((0,Xn.isNonNullType)(I)){let v=y(I.ofType);return v!=null?new Xn.GraphQLNonNull(v):null}else if((0,Xn.isNamedType)(I)){let v=n[I.name];return v===void 0&&(v=(0,ck.isNamedStub)(I)?(0,ck.getBuiltInForStub)(I):c(I),r[v.name]=n[I.name]=v),v!=null?r[v.name]:null}return null}}CT.rewireTypes=pte});var xO=F(za=>{"use strict";m();T();N();Object.defineProperty(za,"__esModule",{value:!0});za.parseInputValueLiteral=za.parseInputValue=za.serializeInputValue=za.transformInputValue=void 0;var UT=Oe(),fte=Vp();function Gl(e,t,n=null,r=null){if(t==null)return t;let i=(0,UT.getNullableType)(e);if((0,UT.isLeafType)(i))return n!=null?n(i,t):t;if((0,UT.isListType)(i))return(0,fte.asArray)(t).map(a=>Gl(i.ofType,a,n,r));if((0,UT.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Gl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}za.transformInputValue=Gl;function mte(e,t){return Gl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}za.serializeInputValue=mte;function Nte(e,t){return Gl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}za.parseInputValue=Nte;function Tte(e,t){return Gl(e,t,(n,r)=>n.parseLiteral(r,{}))}za.parseInputValueLiteral=Tte});var Yl=F(Ql=>{"use strict";m();T();N();Object.defineProperty(Ql,"__esModule",{value:!0});Ql.correctASTNodes=Ql.mapSchema=void 0;var at=Oe(),$l=BO(),Pt=Oc(),Ete=BT(),lk=xO();function hte(e,t={}){let n=fk(pk(qO(dk(yte(qO(dk(e.getTypeMap(),e,lk.serializeInputValue),e,t,c=>(0,at.isLeafType)(c)),e,t),e,lk.parseInputValue),e,t,c=>!(0,at.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=Ite(r,e,t),{typeMap:a,directives:o}=(0,Ete.rewireTypes)(n,i);return new at.GraphQLSchema($(M({},e.toConfig()),{query:(0,$l.getObjectTypeFromTypeMap)(a,(0,$l.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,$l.getObjectTypeFromTypeMap)(a,(0,$l.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,$l.getObjectTypeFromTypeMap)(a,(0,$l.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}Ql.mapSchema=hte;function qO(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=_te(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 yte(e,t,n){let r=bte(n);return r?qO(e,t,{[Pt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let d=o[l],f=r(d,i.name,t,l);if(f===void 0)c[l]=d;else if(Array.isArray(f)){let[y,I]=f;c[y]=I===void 0?d:I}else f!==null&&(c[l]=f)}return Wp(new at.GraphQLEnumType($(M({},a),{values:c})))}},i=>(0,at.isEnumType)(i)):e}function dk(e,t,n){let r=fk(e,t,{[Pt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=kT(e,i.type);if(a!=null)return $(M({},i),{defaultValue:n(a,i.defaultValue)})}});return pk(r,t,{[Pt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=kT(r,i.type);if(a!=null)return $(M({},i),{defaultValue:n(a,i.defaultValue)})}})}function kT(e,t){if((0,at.isListType)(t)){let n=kT(e,t.ofType);return n!=null?new at.GraphQLList(n):null}else if((0,at.isNonNullType)(t)){let n=kT(e,t.ofType);return n!=null?new at.GraphQLNonNull(n):null}else if((0,at.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function pk(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,at.isObjectType)(a)&&!(0,at.isInterfaceType)(a)&&!(0,at.isInputObjectType)(a)){r[i]=a;continue}let o=Ote(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let f in l){let y=l[f],I=o(y,f,i,t);if(I===void 0)d[f]=y;else if(Array.isArray(I)){let[v,w]=I;w.astNode!=null&&(w.astNode=$(M({},w.astNode),{name:$(M({},w.astNode.name),{value:v})})),d[v]=w===void 0?y:w}else I!==null&&(d[f]=I)}(0,at.isObjectType)(a)?r[i]=Wp(new at.GraphQLObjectType($(M({},c),{fields:d}))):(0,at.isInterfaceType)(a)?r[i]=Wp(new at.GraphQLInterfaceType($(M({},c),{fields:d}))):r[i]=Wp(new at.GraphQLInputObjectType($(M({},c),{fields:d})))}return r}function fk(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,at.isObjectType)(a)&&!(0,at.isInterfaceType)(a)){r[i]=a;continue}let o=Ste(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let f in l){let y=l[f],I=y.args;if(I==null){d[f]=y;continue}let v=Object.keys(I);if(!v.length){d[f]=y;continue}let w={};for(let U of v){let j=I[U],Y=o(j,f,i,t);if(Y===void 0)w[U]=j;else if(Array.isArray(Y)){let[re,ne]=Y;w[re]=ne}else Y!==null&&(w[U]=Y)}d[f]=$(M({},y),{args:w})}(0,at.isObjectType)(a)?r[i]=new at.GraphQLObjectType($(M({},c),{fields:d})):(0,at.isInterfaceType)(a)?r[i]=new at.GraphQLInterfaceType($(M({},c),{fields:d})):r[i]=new at.GraphQLInputObjectType($(M({},c),{fields:d}))}return r}function Ite(e,t,n){let r=Dte(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 gte(e,t){var i,a,o;let n=e.getType(t),r=[Pt.MapperKind.TYPE];return(0,at.isObjectType)(n)?(r.push(Pt.MapperKind.COMPOSITE_TYPE,Pt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Pt.MapperKind.ROOT_OBJECT,Pt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Pt.MapperKind.ROOT_OBJECT,Pt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Pt.MapperKind.ROOT_OBJECT,Pt.MapperKind.SUBSCRIPTION)):(0,at.isInputObjectType)(n)?r.push(Pt.MapperKind.INPUT_OBJECT_TYPE):(0,at.isInterfaceType)(n)?r.push(Pt.MapperKind.COMPOSITE_TYPE,Pt.MapperKind.ABSTRACT_TYPE,Pt.MapperKind.INTERFACE_TYPE):(0,at.isUnionType)(n)?r.push(Pt.MapperKind.COMPOSITE_TYPE,Pt.MapperKind.ABSTRACT_TYPE,Pt.MapperKind.UNION_TYPE):(0,at.isEnumType)(n)?r.push(Pt.MapperKind.ENUM_TYPE):(0,at.isScalarType)(n)&&r.push(Pt.MapperKind.SCALAR_TYPE),r}function _te(e,t,n){let r=gte(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function vte(e,t){var i,a,o;let n=e.getType(t),r=[Pt.MapperKind.FIELD];return(0,at.isObjectType)(n)?(r.push(Pt.MapperKind.COMPOSITE_FIELD,Pt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Pt.MapperKind.ROOT_FIELD,Pt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Pt.MapperKind.ROOT_FIELD,Pt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Pt.MapperKind.ROOT_FIELD,Pt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,at.isInterfaceType)(n)?r.push(Pt.MapperKind.COMPOSITE_FIELD,Pt.MapperKind.INTERFACE_FIELD):(0,at.isInputObjectType)(n)&&r.push(Pt.MapperKind.INPUT_OBJECT_FIELD),r}function Ote(e,t,n){let r=vte(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Ste(e){let t=e[Pt.MapperKind.ARGUMENT];return t!=null?t:null}function Dte(e){let t=e[Pt.MapperKind.DIRECTIVE];return t!=null?t:null}function bte(e){let t=e[Pt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Wp(e){if((0,at.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=$(M({},t.astNode),{kind:at.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>$(M({},n),{kind:at.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new at.GraphQLObjectType(t)}else if((0,at.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=$(M({},t.astNode),{kind:at.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>$(M({},n),{kind:at.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new at.GraphQLInterfaceType(t)}else if((0,at.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=$(M({},t.astNode),{kind:at.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>$(M({},n),{kind:at.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new at.GraphQLInputObjectType(t)}else if((0,at.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=$(M({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>$(M({},n),{values:void 0}))),new at.GraphQLEnumType(t)}else return e}Ql.correctASTNodes=Wp});var mk=F(xT=>{"use strict";m();T();N();Object.defineProperty(xT,"__esModule",{value:!0});xT.filterSchema=void 0;var MT=Oe(),Ls=Oc(),Ate=Yl();function Rte({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,Ate.mapSchema)(e,{[Ls.MapperKind.QUERY]:d=>VO(d,"Query",r,c),[Ls.MapperKind.MUTATION]:d=>VO(d,"Mutation",r,c),[Ls.MapperKind.SUBSCRIPTION]:d=>VO(d,"Subscription",r,c),[Ls.MapperKind.OBJECT_TYPE]:d=>t(d.name,d)?jO(MT.GraphQLObjectType,d,i||n,c):null,[Ls.MapperKind.INTERFACE_TYPE]:d=>t(d.name,d)?jO(MT.GraphQLInterfaceType,d,a||n,c):null,[Ls.MapperKind.INPUT_OBJECT_TYPE]:d=>t(d.name,d)?jO(MT.GraphQLInputObjectType,d,o||n):null,[Ls.MapperKind.UNION_TYPE]:d=>t(d.name,d)?void 0:null,[Ls.MapperKind.ENUM_TYPE]:d=>t(d.name,d)?void 0:null,[Ls.MapperKind.SCALAR_TYPE]:d=>t(d.name,d)?void 0:null})}xT.filterSchema=Rte;function VO(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 MT.GraphQLObjectType(i)}return e}function jO(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 Tk=F(Jl=>{"use strict";m();T();N();Object.defineProperty(Jl,"__esModule",{value:!0});Jl.healTypes=Jl.healSchema=void 0;var Wa=Oe();function Pte(e){return Nk(e.getTypeMap(),e.getDirectives()),e}Jl.healSchema=Pte;function Nk(e,t){let n=Object.create(null);for(let d in e){let f=e[d];if(f==null||d.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 d in n){let f=n[d];e[d]=f}for(let d of t)d.args=d.args.filter(f=>(f.type=l(f.type),f.type!==null));for(let d in e){let f=e[d];!d.startsWith("__")&&d in n&&f!=null&&r(f)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,Wa.isObjectType)(d)){i(d),a(d);return}else if((0,Wa.isInterfaceType)(d)){i(d),"getInterfaces"in d&&a(d);return}else if((0,Wa.isUnionType)(d)){c(d);return}else if((0,Wa.isInputObjectType)(d)){o(d);return}else if((0,Wa.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let f=d.getFields();for(let[y,I]of Object.entries(f))I.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),I.type=l(I.type),I.type===null&&delete f[y]}function a(d){if("getInterfaces"in d){let f=d.getInterfaces();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}}function o(d){let f=d.getFields();for(let[y,I]of Object.entries(f))I.type=l(I.type),I.type===null&&delete f[y]}function c(d){let f=d.getTypes();f.push(...f.splice(0).map(y=>l(y)).filter(Boolean))}function l(d){if((0,Wa.isListType)(d)){let f=l(d.ofType);return f!=null?new Wa.GraphQLList(f):null}else if((0,Wa.isNonNullType)(d)){let f=l(d.ofType);return f!=null?new Wa.GraphQLNonNull(f):null}else if((0,Wa.isNamedType)(d)){let f=e[d.name];if(f&&d!==f)return f}return d}}Jl.healTypes=Nk});var Ek=F(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.getResolversFromSchema=void 0;var Sc=Oe();function Fte(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,Sc.isScalarType)(c)){if(!(0,Sc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new Sc.GraphQLScalarType(l)}}else if((0,Sc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,Sc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,Sc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,Sc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let d in l){let f=l[d];if(f.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].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][d]=n[o][d]||{},n[o][d].resolve=f.resolve}}}}return n}qT.getResolversFromSchema=Fte});var yk=F(VT=>{"use strict";m();T();N();Object.defineProperty(VT,"__esModule",{value:!0});VT.forEachField=void 0;var hk=Oe();function wte(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,hk.getNamedType)(i).name.startsWith("__")&&(0,hk.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}VT.forEachField=wte});var Ik=F(jT=>{"use strict";m();T();N();Object.defineProperty(jT,"__esModule",{value:!0});jT.forEachDefaultValue=void 0;var KO=Oe();function Lte(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,KO.getNamedType)(i).name.startsWith("__")){if((0,KO.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,KO.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}jT.forEachDefaultValue=Lte});var QO=F(KT=>{"use strict";m();T();N();Object.defineProperty(KT,"__esModule",{value:!0});KT.addTypes=void 0;var GO=Oe(),$O=BO(),Cte=BT();function Bte(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,GO.isNamedType)(c)?r[c.name]=c:(0,GO.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,Cte.rewireTypes)(r,Object.values(i));return new GO.GraphQLSchema($(M({},n),{query:(0,$O.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,$O.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,$O.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}KT.addTypes=Bte});var _k=F($T=>{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.pruneSchema=void 0;var ur=Oe(),Ute=IO(),kte=Oc(),Mte=Yl(),xte=$p();function qte(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let d=Vte(l);if(i){let f=[];for(let y in l.getTypeMap()){if(y.startsWith("__"))continue;let I=l.getType(y);I&&i(I)&&f.push(y)}d=gk(f,l,d)}c=[],l=(0,Mte.mapSchema)(l,{[kte.MapperKind.TYPE]:f=>!d.has(f.name)&&!(0,ur.isSpecifiedScalarType)(f)?((0,ur.isUnionType)(f)||(0,ur.isInputObjectType)(f)||(0,ur.isInterfaceType)(f)||(0,ur.isObjectType)(f)||(0,ur.isScalarType)(f))&&(o||(0,ur.isUnionType)(f)&&r&&!Object.keys(f.getTypes()).length||((0,ur.isInputObjectType)(f)||(0,ur.isInterfaceType)(f)||(0,ur.isObjectType)(f))&&n&&!Object.keys(f.getFields()).length||(0,ur.isInterfaceType)(f)&&a)?f:(c.push(f.name),d.delete(f.name),null):f})}while(c.length);return l}$T.pruneSchema=qte;function Vte(e){let t=[];for(let n of(0,xte.getRootTypes)(e))t.push(n.name);return gk(t,e)}function gk(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,ur.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,ur.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,Ute.getImplementingTypes)(a.name,t)),r[i]=!1),(0,ur.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>o.astNode?GT(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,ur.isObjectType)(a)&&e.push(...l.args.flatMap(f=>{let y=[(0,ur.getNamedType)(f.type).name];return f.astNode&&y.push(...GT(t,f.astNode)),y}));let d=(0,ur.getNamedType)(l.type);e.push(d.name),l.astNode&&e.push(...GT(t,l.astNode)),(0,ur.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}a.astNode&&e.push(...GT(t,a.astNode)),n.add(i)}}return n}function GT(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,ur.getNamedType)(o.type).name))!=null?a:[]})}});var Ok=F(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeDeep=void 0;var jte=Vp();function vk(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(YO(r)&&YO(a)){if(t){let o=Object.getPrototypeOf(i),c=Object.getPrototypeOf(a);if(c)for(let l of Object.getOwnPropertyNames(c)){let d=Object.getOwnPropertyDescriptor(c,l);(0,jte.isSome)(d)&&Object.defineProperty(o,l,d)}}for(let o in a)YO(a[o])?o in i?i[o]=vk([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}QT.mergeDeep=vk;function YO(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var Sk=F(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.parseSelectionSet=void 0;var Kte=Oe();function Gte(e,t){return(0,Kte.parse)(e,t).definitions[0].selectionSet}YT.parseSelectionSet=Gte});var Dk=F(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.getResponseKeyFromInfo=void 0;function $te(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}JT.getResponseKeyFromInfo=$te});var bk=F(Xa=>{"use strict";m();T();N();Object.defineProperty(Xa,"__esModule",{value:!0});Xa.modifyObjectFields=Xa.selectObjectFields=Xa.removeObjectFields=Xa.appendObjectFields=void 0;var HT=Oe(),Qte=QO(),zT=Oc(),Dc=Yl();function Yte(e,t,n){return e.getType(t)==null?(0,Qte.addTypes)(e,[new HT.GraphQLObjectType({name:t,fields:n})]):(0,Dc.mapSchema)(e,{[zT.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,Dc.correctASTNodes)(new HT.GraphQLObjectType($(M({},i),{fields:o})))}}})}Xa.appendObjectFields=Yte;function Jte(e,t,n){let r={};return[(0,Dc.mapSchema)(e,{[zT.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let d in c){let f=c[d];n(d,f)?r[d]=f:l[d]=f}return(0,Dc.correctASTNodes)(new HT.GraphQLObjectType($(M({},o),{fields:l})))}}}),r]}Xa.removeObjectFields=Jte;function Hte(e,t,n){let r={};return(0,Dc.mapSchema)(e,{[zT.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}Xa.selectObjectFields=Hte;function zte(e,t,n,r){let i={};return[(0,Dc.mapSchema)(e,{[zT.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,d={};for(let f in l){let y=l[f];n(f,y)?i[f]=y:d[f]=y}for(let f in r){let y=r[f];d[f]=y}return(0,Dc.correctASTNodes)(new HT.GraphQLObjectType($(M({},c),{fields:d})))}}}),i]}Xa.modifyObjectFields=zte});var Ak=F(WT=>{"use strict";m();T();N();Object.defineProperty(WT,"__esModule",{value:!0});WT.renameType=void 0;var Hi=Oe();function Wte(e,t){if((0,Hi.isObjectType)(e))return new Hi.GraphQLObjectType($(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:$(M({},e.astNode),{name:$(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>$(M({},n),{name:$(M({},n.name),{value:t})}))}));if((0,Hi.isInterfaceType)(e))return new Hi.GraphQLInterfaceType($(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:$(M({},e.astNode),{name:$(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>$(M({},n),{name:$(M({},n.name),{value:t})}))}));if((0,Hi.isUnionType)(e))return new Hi.GraphQLUnionType($(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:$(M({},e.astNode),{name:$(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>$(M({},n),{name:$(M({},n.name),{value:t})}))}));if((0,Hi.isInputObjectType)(e))return new Hi.GraphQLInputObjectType($(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:$(M({},e.astNode),{name:$(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>$(M({},n),{name:$(M({},n.name),{value:t})}))}));if((0,Hi.isEnumType)(e))return new Hi.GraphQLEnumType($(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:$(M({},e.astNode),{name:$(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>$(M({},n),{name:$(M({},n.name),{value:t})}))}));if((0,Hi.isScalarType)(e))return new Hi.GraphQLScalarType($(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:$(M({},e.astNode),{name:$(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>$(M({},n),{name:$(M({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}WT.renameType=Wte});var Fk=F(XT=>{"use strict";m();T();N();Object.defineProperty(XT,"__esModule",{value:!0});XT.mapAsyncIterator=void 0;var Xte=Kp();function Zte(e,t,n,r){let i,a,o;r&&(o=d=>{let f=r();return(0,Xte.isPromise)(f)?f.then(()=>d):d}),typeof e.return=="function"&&(i=e.return,a=d=>{let f=()=>Promise.reject(d);return i.call(e).then(f,f)});function c(d){return d.done?o?o(d):d:Rk(d.value,t).then(Pk,a)}let l;if(n){let d=n;l=f=>Rk(f,d).then(Pk,a)}return{next(){return e.next().then(c,l)},return(){let d=i?i.call(e).then(c,l):Promise.resolve({value:void 0,done:!0});return o?d.then(o):d},throw(d){return typeof e.throw=="function"?e.throw(d).then(c,l):Promise.reject(d).catch(a)},[Symbol.asyncIterator](){return this}}}XT.mapAsyncIterator=Zte;function Rk(e,t){return new Promise(n=>n(t(e)))}function Pk(e){return{value:e,done:!1}}});var wk=F(Hl=>{"use strict";m();T();N();Object.defineProperty(Hl,"__esModule",{value:!0});Hl.createVariableNameGenerator=Hl.updateArgument=void 0;var bc=Oe(),ene=_O();function tne(e,t,n,r,i,a,o){if(e[r]={kind:bc.Kind.ARGUMENT,name:{kind:bc.Kind.NAME,value:r},value:{kind:bc.Kind.VARIABLE,name:{kind:bc.Kind.NAME,value:i}}},t[i]={kind:bc.Kind.VARIABLE_DEFINITION,variable:{kind:bc.Kind.VARIABLE,name:{kind:bc.Kind.NAME,value:i}},type:(0,ene.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}Hl.updateArgument=tne;function nne(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}Hl.createVariableNameGenerator=nne});var Lk=F(ZT=>{"use strict";m();T();N();Object.defineProperty(ZT,"__esModule",{value:!0});ZT.implementsAbstractType=void 0;var JO=Oe();function rne(e,t,n){return n==null||t==null?!1:t===n?!0:(0,JO.isCompositeType)(t)&&(0,JO.isCompositeType)(n)?(0,JO.doTypesOverlap)(e,t,n):!1}ZT.implementsAbstractType=rne});var Ck=F(eE=>{"use strict";m();T();N();Object.defineProperty(eE,"__esModule",{value:!0});eE.observableToAsyncIterable=void 0;function ine(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()}}),d=()=>{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 d(),Promise.resolve({value:void 0,done:!0})},throw(f){return d(),Promise.reject(f)},[Symbol.asyncIterator](){return this}}}eE.observableToAsyncIterable=ine});var Bk=F(tE=>{"use strict";m();T();N();Object.defineProperty(tE,"__esModule",{value:!0});tE.AccumulatorMap=void 0;var HO=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)}};tE.AccumulatorMap=HO});var zO=F(zl=>{"use strict";m();T();N();Object.defineProperty(zl,"__esModule",{value:!0});zl.GraphQLStreamDirective=zl.GraphQLDeferDirective=void 0;var zi=Oe();zl.GraphQLDeferDirective=new zi.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[zi.DirectiveLocation.FRAGMENT_SPREAD,zi.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new zi.GraphQLNonNull(zi.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:zi.GraphQLString,description:"Unique name"}}});zl.GraphQLStreamDirective=new zi.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[zi.DirectiveLocation.FIELD],args:{if:{type:new zi.GraphQLNonNull(zi.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:zi.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:zi.GraphQLInt,description:"Number of items to return immediately"}}})});var ZO=F(ii=>{"use strict";m();T();N();Object.defineProperty(ii,"__esModule",{value:!0});ii.collectSubFields=ii.getDeferValues=ii.getFieldEntryKey=ii.doesFragmentConditionMatch=ii.shouldIncludeNode=ii.collectFields=void 0;var Za=Oe(),rE=Bk(),ane=zO(),sne=Vl();function Wl(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case Za.Kind.FIELD:{if(!nE(n,l))continue;a.add(Uk(l),l);break}case Za.Kind.INLINE_FRAGMENT:{if(!nE(n,l)||!WO(e,l,r))continue;let d=XO(n,l);if(d){let f=new rE.AccumulatorMap;Wl(e,t,n,r,l.selectionSet,f,o,c),o.push({label:d.label,fields:f})}else Wl(e,t,n,r,l.selectionSet,a,o,c);break}case Za.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!nE(n,l))continue;let f=XO(n,l);if(c.has(d)&&!f)continue;let y=t[d];if(!y||!WO(e,y,r))continue;if(f||c.add(d),f){let I=new rE.AccumulatorMap;Wl(e,t,n,r,y.selectionSet,I,o,c),o.push({label:f.label,fields:I})}else Wl(e,t,n,r,y.selectionSet,a,o,c);break}}}function one(e,t,n,r,i){let a=new rE.AccumulatorMap,o=[];return Wl(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}ii.collectFields=one;function nE(e,t){let n=(0,Za.getDirectiveValues)(Za.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,Za.getDirectiveValues)(Za.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}ii.shouldIncludeNode=nE;function WO(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,Za.typeFromAST)(e,r);return i===n?!0:(0,Za.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}ii.doesFragmentConditionMatch=WO;function Uk(e){return e.alias?e.alias.value:e.name.value}ii.getFieldEntryKey=Uk;function XO(e,t){let n=(0,Za.getDirectiveValues)(ane.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}ii.getDeferValues=XO;ii.collectSubFields=(0,sne.memoize5)(function(t,n,r,i,a){let o=new rE.AccumulatorMap,c=new Set,l=[],d={fields:o,patches:l};for(let f of a)f.selectionSet&&Wl(t,n,r,i,f.selectionSet,o,l,c);return d})});var eS=F(Xl=>{"use strict";m();T();N();Object.defineProperty(Xl,"__esModule",{value:!0});Xl.getOperationASTFromRequest=Xl.getOperationASTFromDocument=void 0;var une=Oe(),cne=Vl();function kk(e,t){let n=(0,une.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}Xl.getOperationASTFromDocument=kk;Xl.getOperationASTFromRequest=(0,cne.memoize1)(function(t){return kk(t.document,t.operationName)})});var qk=F(Su=>{"use strict";m();T();N();Object.defineProperty(Su,"__esModule",{value:!0});Su.visitResult=Su.visitErrors=Su.visitData=void 0;var Ou=Oe(),tS=ZO(),lne=eS();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}Su.visitData=nS;function dne(e,t){return e.map(n=>t(n))}Su.visitErrors=dne;function pne(e,t,n,r,i){let a=t.document.definitions.reduce((I,v)=>(v.kind===Ou.Kind.FRAGMENT_DEFINITION&&(I[v.name.value]=v),I),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,f=d!=null&&i!=null,y=(0,lne.getOperationASTFromRequest)(t);return l!=null&&y!=null&&(e.data=Nne(l,y,n,a,o,r,f?d:void 0,c)),d!=null&&i&&(e.errors=fne(d,i,c)),e}Su.visitResult=pne;function fne(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((d,f)=>{let y=f.type.name,I=t[y];if(I==null)return d;let v=I[f.fieldName];return v==null?d:v(d,f.pathIndex)},o);return a&&i.has(o)?a(l):l})}function mne(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function Nne(e,t,n,r,i,a,o,c){let l=mne(n,t),{fields:d}=(0,tS.collectFields)(n,r,i,l,t.selectionSet);return rS(e,l,d,n,r,i,a,0,o,c)}function rS(e,t,n,r,i,a,o,c,l,d){var re;let f=t.getFields(),y=o==null?void 0:o[t.name],I=y==null?void 0:y.__enter,v=I!=null?I(e):e,w,U=null;if(l!=null){w=Ene(l,c),U=w.errorMap;for(let ne of w.unpathedErrors)d.unpathedErrors.add(ne)}for(let[ne,me]of n){let ue=me[0].name.value,Ae=(re=f[ue])==null?void 0:re.type;if(Ae==null)switch(ue){case"__typename":Ae=Ou.TypeNameMetaFieldDef.type;break;case"__schema":Ae=Ou.SchemaMetaFieldDef.type;break;case"__type":Ae=Ou.TypeMetaFieldDef.type;break}let Me=c+1,nt;U&&(nt=U[ne],nt!=null&&delete U[ne],hne(t,ue,Me,nt,d));let X=xk(e[ne],Ae,me,r,i,a,o,Me,nt,d);Mk(v,ne,X,y,ue)}let j=v.__typename;if(j!=null&&Mk(v,"__typename",j,y,"__typename"),U)for(let ne in U){let me=U[ne];for(let ue of me)d.unpathedErrors.add(ue)}let Y=y==null?void 0:y.__leave;return Y!=null?Y(v):v}function Mk(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 Tne(e,t,n,r,i,a,o,c,l,d){return e.map(f=>xk(f,t,n,r,i,a,o,c+1,l,d))}function xk(e,t,n,r,i,a,o,c,l=[],d){if(e==null)return e;let f=(0,Ou.getNullableType)(t);if((0,Ou.isListType)(f))return Tne(e,f.ofType,n,r,i,a,o,c,l,d);if((0,Ou.isAbstractType)(f)){let v=r.getType(e.__typename),{fields:w}=(0,tS.collectSubFields)(r,i,a,v,n);return rS(e,v,w,r,i,a,o,c,l,d)}else if((0,Ou.isObjectType)(f)){let{fields:v}=(0,tS.collectSubFields)(r,i,a,f,n);return rS(e,f,v,r,i,a,o,c,l,d)}let y=o==null?void 0:o[f.name];if(y==null)return e;let I=y(e);return I===void 0?e:I}function Ene(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 hne(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 Vk=F(iE=>{"use strict";m();T();N();Object.defineProperty(iE,"__esModule",{value:!0});iE.valueMatchesCriteria=void 0;function iS(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>iS(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>iS(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}iE.valueMatchesCriteria=iS});var jk=F(aE=>{"use strict";m();T();N();Object.defineProperty(aE,"__esModule",{value:!0});aE.isAsyncIterable=void 0;function yne(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}aE.isAsyncIterable=yne});var Kk=F(sE=>{"use strict";m();T();N();Object.defineProperty(sE,"__esModule",{value:!0});sE.isDocumentNode=void 0;var Ine=Oe();function gne(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Ine.Kind.DOCUMENT}sE.isDocumentNode=gne});var Gk=F(()=>{"use strict";m();T();N()});var Jk=F(Du=>{"use strict";m();T();N();Object.defineProperty(Du,"__esModule",{value:!0});Du.withCancel=Du.getAsyncIterableWithCancel=Du.getAsyncIteratorWithCancel=void 0;var _ne=Vl();function vne(e){return wi(this,null,function*(){return{value:e,done:!0}})}var $k=(0,_ne.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function Qk(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||vne;return function(l){return wi(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof a=="function")return $k(n,a);return a}})}Du.getAsyncIteratorWithCancel=Qk;function Yk(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 Qk(c,t)}:typeof a=="function"?$k(n,a):a}})}Du.getAsyncIterableWithCancel=Yk;Du.withCancel=Yk});var Hk=F(oE=>{"use strict";m();T();N();Object.defineProperty(oE,"__esModule",{value:!0});oE.fixSchemaAst=void 0;var One=Oe(),Sne=RO();function Dne(e,t){let n=(0,Sne.getDocumentNodeFromSchema)(e);return(0,One.buildASTSchema)(n,M({},t||{}))}function bne(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=Dne(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}oE.fixSchemaAst=bne});var zk=F(uE=>{"use strict";m();T();N();Object.defineProperty(uE,"__esModule",{value:!0});uE.extractExtensionsFromSchema=void 0;var Cs=Oc(),Ane=Yl();function ha(e={}){let t=M({},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 Rne(e){let t={schemaExtensions:ha(e.extensions),types:{}};return(0,Ane.mapSchema)(e,{[Cs.MapperKind.OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"object",extensions:ha(n.extensions)},n),[Cs.MapperKind.INTERFACE_TYPE]:n=>(t.types[n.name]={fields:{},type:"interface",extensions:ha(n.extensions)},n),[Cs.MapperKind.FIELD]:(n,r,i)=>{t.types[i].fields[r]={arguments:{},extensions:ha(n.extensions)};let a=n.args;if(a!=null)for(let o in a)t.types[i].fields[r].arguments[o]=ha(a[o].extensions);return n},[Cs.MapperKind.ENUM_TYPE]:n=>(t.types[n.name]={values:{},type:"enum",extensions:ha(n.extensions)},n),[Cs.MapperKind.ENUM_VALUE]:(n,r,i,a)=>(t.types[r].values[a]=ha(n.extensions),n),[Cs.MapperKind.SCALAR_TYPE]:n=>(t.types[n.name]={type:"scalar",extensions:ha(n.extensions)},n),[Cs.MapperKind.UNION_TYPE]:n=>(t.types[n.name]={type:"union",extensions:ha(n.extensions)},n),[Cs.MapperKind.INPUT_OBJECT_TYPE]:n=>(t.types[n.name]={fields:{},type:"input",extensions:ha(n.extensions)},n),[Cs.MapperKind.INPUT_OBJECT_FIELD]:(n,r,i)=>(t.types[i].fields[r]={extensions:ha(n.extensions)},n)}),t}uE.extractExtensionsFromSchema=Rne});var Wk=F(bu=>{"use strict";m();T();N();Object.defineProperty(bu,"__esModule",{value:!0});bu.printPathArray=bu.pathToArray=bu.addPath=void 0;function Pne(e,t,n){return{prev:e,key:t,typename:n}}bu.addPath=Pne;function Fne(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}bu.pathToArray=Fne;function wne(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}bu.printPathArray=wne});var Xk=F(aS=>{"use strict";m();T();N();function cE(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(lE,"__esModule",{value:!0});lE.mergeIncrementalResult=void 0;var sS=Xk();function Zk({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)(0,sS.dset)(t,n,i),n[n.length-1]++;e.data&&(0,sS.dset)(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&(0,sS.dset)(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(i=>{Zk({incrementalResult:i,executionResult:t})})}lE.mergeIncrementalResult=Zk});var nM=F(Zl=>{"use strict";m();T();N();Object.defineProperty(Zl,"__esModule",{value:!0});Zl.debugTimerEnd=Zl.debugTimerStart=void 0;var tM=new Set;function Cne(e){let t=(globalThis==null?void 0:globalThis.process.env.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(tM.add(e),console.time(e))}Zl.debugTimerStart=Cne;function Bne(e){tM.has(e)&&console.timeEnd(e)}Zl.debugTimerEnd=Bne});var ya=F(Qe=>{"use strict";m();T();N();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.inspect=void 0;var Je=(cU(),Fm(uU));Je.__exportStar(lU(),Qe);Je.__exportStar(Vp(),Qe);Je.__exportStar(EO(),Qe);Je.__exportStar(hO(),Qe);Je.__exportStar(IU(),Qe);Je.__exportStar(IO(),Qe);Je.__exportStar(RO(),Qe);Je.__exportStar(hO(),Qe);Je.__exportStar(kU(),Qe);Je.__exportStar(MU(),Qe);Je.__exportStar(WU(),Qe);Je.__exportStar(ak(),Qe);Je.__exportStar(ok(),Qe);Je.__exportStar(mk(),Qe);Je.__exportStar(Tk(),Qe);Je.__exportStar(Ek(),Qe);Je.__exportStar(yk(),Qe);Je.__exportStar(Ik(),Qe);Je.__exportStar(Yl(),Qe);Je.__exportStar(QO(),Qe);Je.__exportStar(BT(),Qe);Je.__exportStar(_k(),Qe);Je.__exportStar(Ok(),Qe);Je.__exportStar(Oc(),Qe);Je.__exportStar(MO(),Qe);Je.__exportStar(Sk(),Qe);Je.__exportStar(Dk(),Qe);Je.__exportStar(bk(),Qe);Je.__exportStar(Ak(),Qe);Je.__exportStar(xO(),Qe);Je.__exportStar(Fk(),Qe);Je.__exportStar(wk(),Qe);Je.__exportStar(Lk(),Qe);Je.__exportStar(TT(),Qe);Je.__exportStar(Ck(),Qe);Je.__exportStar(qk(),Qe);Je.__exportStar(TO(),Qe);Je.__exportStar(Vk(),Qe);Je.__exportStar(jk(),Qe);Je.__exportStar(Kk(),Qe);Je.__exportStar(OT(),Qe);Je.__exportStar(Gk(),Qe);Je.__exportStar(Jk(),Qe);Je.__exportStar($p(),Qe);Je.__exportStar(FO(),Qe);Je.__exportStar(ZO(),Qe);var Une=jp();Object.defineProperty(Qe,"inspect",{enumerable:!0,get:function(){return Une.inspect}});Je.__exportStar(Vl(),Qe);Je.__exportStar(Hk(),Qe);Je.__exportStar(eS(),Qe);Je.__exportStar(zk(),Qe);Je.__exportStar(Wk(),Qe);Je.__exportStar(Kp(),Qe);Je.__exportStar(zO(),Qe);Je.__exportStar(eM(),Qe);Je.__exportStar(nM(),Qe)});var iM=F(dE=>{"use strict";m();T();N();Object.defineProperty(dE,"__esModule",{value:!0});dE.mergeResolvers=void 0;var kne=ya();function rM(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=rM(i)),typeof i=="object"&&i&&n.push(i);let r=(0,kne.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}dE.mergeResolvers=rM});var oS=F(pE=>{"use strict";m();T();N();Object.defineProperty(pE,"__esModule",{value:!0});pE.mergeArguments=void 0;var aM=ya();function Mne(e,t,n){let r=xne([...t,...e].filter(aM.isSome),n);return n&&n.sort&&r.sort(aM.compareNodes),r}pE.mergeArguments=Mne;function xne(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 Wi=F(ed=>{"use strict";m();T();N();Object.defineProperty(ed,"__esModule",{value:!0});ed.mergeDirective=ed.mergeDirectives=void 0;var sM=Oe(),qne=ya();function Vne(e,t){return!!e.find(n=>n.name.value===t.name.value)}function oM(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function jne(e,t){return t.some(({value:n})=>n===e.value)}function uM(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=Yne(o,c,(l,d)=>{let f=l.value;return!f||!d.some(y=>y.value===f)})}else a.value=r.value}else n.push(r)}return n}function Kne(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!oM(n,t)){let o=i[a];return n.arguments=uM(n.arguments,o.arguments),null}return n}).filter(qne.isSome)}function Gne(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=Kne([...a],r);for(let l of o)if(Vne(c,l)&&!oM(l,r)){let d=c.findIndex(y=>y.name.value===l.name.value),f=c[d];c[d].arguments=uM(l.arguments||[],f.arguments||[])}else c.push(l);return c}ed.mergeDirectives=Gne;function $ne(e,t){let n=(0,sM.print)($(M({},e),{description:void 0})),r=(0,sM.print)($(M({},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}". +`);return i.description?Q(M({},i),{description:Q(M({},i.description),{value:i.description.value+` +`+o,block:!0})}):Q(M({},i),{description:{kind:Qi.Kind.STRING,value:o,block:c}})}}}})}function Ek(e){return(0,Qi.isTypeSystemDefinitionNode)(e)||e.kind===Qi.Kind.FIELD_DEFINITION||e.kind===Qi.Kind.INPUT_VALUE_DEFINITION||e.kind===Qi.Kind.ENUM_VALUE_DEFINITION}});var Dk=w(bO=>{"use strict";m();T();N();Object.defineProperty(bO,"__esModule",{value:!0});bO.buildOperationNodeForField=Cte;var ct=Oe(),Lte=qf(),_k=jf(),DO=[],DT=new Map;function vk(e){DO.push(e)}function yk(){DO=[]}function Ik(){DT=new Map}function Cte({schema:e,kind:t,field:n,models:r,ignore:i=[],depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l=!0}){yk(),Ik();let d=(0,_k.getRootTypeNames)(e),p=Bte({schema:e,fieldName:n,kind:t,models:r||[],ignore:i,depthLimit:a||1/0,circularReferenceDepth:o||1,argNames:c,selectedFields:l,rootTypeNames:d});return p.variableDefinitions=[...DO],yk(),Ik(),p}function Bte({schema:e,fieldName:t,kind:n,models:r,ignore:i,depthLimit:a,circularReferenceDepth:o,argNames:c,selectedFields:l,rootTypeNames:d}){let p=(0,_k.getDefinedRootType)(e,n),E=p.getFields()[t],I=`${t}_${n}`;if(E.args)for(let v of E.args){let A=v.name;(!c||c.includes(A))&&vk(Ok(v,A))}return{kind:ct.Kind.OPERATION_DEFINITION,operation:n,name:{kind:ct.Kind.NAME,value:I},variableDefinitions:[],selectionSet:{kind:ct.Kind.SELECTION_SET,selections:[Sk({type:p,field:E,models:r,firstCall:!0,path:[],ancestors:[],ignore:i,depthLimit:a,circularReferenceDepth:o,schema:e,depth:0,argNames:c,selectedFields:l,rootTypeNames:d})]}}}function SO({parent:e,type:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:I,rootTypeNames:v}){if(!(typeof I=="boolean"&&p>c)){if((0,ct.isUnionType)(t)){let A=t.getTypes();return{kind:ct.Kind.SELECTION_SET,selections:A.filter(U=>!OO([...a,U],{depth:l})).map(U=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:U.name}},selectionSet:SO({parent:t,type:U,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:I,rootTypeNames:v})})).filter(U=>{var j,G;return((G=(j=U==null?void 0:U.selectionSet)==null?void 0:j.selections)==null?void 0:G.length)>0})}}if((0,ct.isInterfaceType)(t)){let A=Object.values(d.getTypeMap()).filter(U=>(0,ct.isObjectType)(U)&&U.getInterfaces().includes(t));return{kind:ct.Kind.SELECTION_SET,selections:A.filter(U=>!OO([...a,U],{depth:l})).map(U=>({kind:ct.Kind.INLINE_FRAGMENT,typeCondition:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:U.name}},selectionSet:SO({parent:t,type:U,models:n,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:I,rootTypeNames:v})})).filter(U=>{var j,G;return((G=(j=U==null?void 0:U.selectionSet)==null?void 0:j.selections)==null?void 0:G.length)>0})}}if((0,ct.isObjectType)(t)&&!v.has(t.name)){let A=o.includes(t.name)||o.includes(`${e.name}.${i[i.length-1]}`),U=n.includes(t.name);if(!r&&U&&!A)return{kind:ct.Kind.SELECTION_SET,selections:[{kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:"id"}}]};let j=t.getFields();return{kind:ct.Kind.SELECTION_SET,selections:Object.keys(j).filter(G=>!OO([...a,(0,ct.getNamedType)(j[G].type)],{depth:l})).map(G=>{let re=typeof I=="object"?I[G]:!0;return re?Sk({type:t,field:j[G],models:n,path:[...i,G],ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:re,rootTypeNames:v}):null}).filter(G=>{var re,ne;return G==null?!1:"selectionSet"in G?!!((ne=(re=G.selectionSet)==null?void 0:re.selections)!=null&&ne.length):!0})}}}}function Ok(e,t){function n(i){return(0,ct.isListType)(i)?{kind:ct.Kind.LIST_TYPE,type:n(i.ofType)}:(0,ct.isNonNullType)(i)?{kind:ct.Kind.NON_NULL_TYPE,type:n(i.ofType)}:{kind:ct.Kind.NAMED_TYPE,name:{kind:ct.Kind.NAME,value:i.name}}}let r;try{let i=(0,ct.astFromValue)(e.defaultValue,e.type);i==null?r=void 0:r=i}catch(i){let a=(0,Lte.astFromValueUntyped)(e.defaultValue);a==null?r=void 0:r=a}return{kind:ct.Kind.VARIABLE_DEFINITION,variable:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:t||e.name}},type:n(e.type),defaultValue:r}}function gk(e,t){return[...t,e].join("_")}function Sk({type:e,field:t,models:n,firstCall:r,path:i,ancestors:a,ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p,argNames:E,selectedFields:I,rootTypeNames:v}){let A=(0,ct.getNamedType)(t.type),U=[],j=!1;if(t.args&&t.args.length&&(U=t.args.map(me=>{let ue=gk(me.name,i);return E&&!E.includes(ue)?((0,ct.isNonNullType)(me.type)&&(j=!0),null):(r||vk(Ok(me,ue)),{kind:ct.Kind.ARGUMENT,name:{kind:ct.Kind.NAME,value:me.name},value:{kind:ct.Kind.VARIABLE,name:{kind:ct.Kind.NAME,value:gk(me.name,i)}}})}).filter(Boolean)),j)return null;let G=[...i,t.name],re=G.join("."),ne=t.name;return DT.has(re)&&DT.get(re)!==t.type.toString()&&(ne+=t.type.toString().replace(/!/g,"NonNull").replace(/\[/g,"List").replace(/\]/g,"")),DT.set(re,t.type.toString()),!(0,ct.isScalarType)(A)&&!(0,ct.isEnumType)(A)?Q(M({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},ne!==t.name&&{alias:{kind:ct.Kind.NAME,value:ne}}),{selectionSet:SO({parent:e,type:A,models:n,firstCall:r,path:G,ancestors:[...a,e],ignore:o,depthLimit:c,circularReferenceDepth:l,schema:d,depth:p+1,argNames:E,selectedFields:I,rootTypeNames:v})||void 0,arguments:U}):Q(M({kind:ct.Kind.FIELD,name:{kind:ct.Kind.NAME,value:t.name}},ne!==t.name&&{alias:{kind:ct.Kind.NAME,value:ne}}),{arguments:U})}function OO(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 Ak=w(bT=>{"use strict";m();T();N();Object.defineProperty(bT,"__esModule",{value:!0});bT.DirectiveLocation=void 0;var bk;(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"})(bk||(bT.DirectiveLocation=bk={}))});var _c=w(AT=>{"use strict";m();T();N();Object.defineProperty(AT,"__esModule",{value:!0});AT.MapperKind=void 0;var Rk;(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"})(Rk||(AT.MapperKind=Rk={}))});var RO=w(AO=>{"use strict";m();T();N();Object.defineProperty(AO,"__esModule",{value:!0});AO.getObjectTypeFromTypeMap=kte;var Ute=Oe();function kte(e,t){if(t){let n=e[t.name];if((0,Ute.isObjectType)(n))return n}}});var wO=w(jl=>{"use strict";m();T();N();Object.defineProperty(jl,"__esModule",{value:!0});jl.createNamedStub=PO;jl.createStub=FO;jl.isNamedStub=Mte;jl.getBuiltInForStub=xte;var Nr=Oe();function PO(e,t){let n;return t==="object"?n=Nr.GraphQLObjectType:t==="interface"?n=Nr.GraphQLInterfaceType:n=Nr.GraphQLInputObjectType,new n({name:e,fields:{_fake:{type:Nr.GraphQLString}}})}function FO(e,t){switch(e.kind){case Nr.Kind.LIST_TYPE:return new Nr.GraphQLList(FO(e.type,t));case Nr.Kind.NON_NULL_TYPE:return new Nr.GraphQLNonNull(FO(e.type,t));default:return t==="output"?PO(e.name.value,"object"):PO(e.name.value,"input")}}function Mte(e){if("getFields"in e){let t=e.getFields();for(let n in t)return t[n].name==="_fake"}return!1}function xte(e){switch(e.name){case Nr.GraphQLInt.name:return Nr.GraphQLInt;case Nr.GraphQLFloat.name:return Nr.GraphQLFloat;case Nr.GraphQLString.name:return Nr.GraphQLString;case Nr.GraphQLBoolean.name:return Nr.GraphQLBoolean;case Nr.GraphQLID.name:return Nr.GraphQLID;default:return e}}});var RT=w(LO=>{"use strict";m();T();N();Object.defineProperty(LO,"__esModule",{value:!0});LO.rewireTypes=qte;var zn=Oe(),Pk=wO();function qte(e,t){let n=Object.create(null);for(let I in e)n[I]=e[I];let r=Object.create(null);for(let I in n){let v=n[I];if(v==null||I.startsWith("__"))continue;let A=v.name;if(!A.startsWith("__")){if(r[A]!=null){console.warn(`Duplicate schema type name ${A} found; keeping the existing one found in the schema`);continue}r[A]=v}}for(let I in r)r[I]=c(r[I]);let i=t.map(I=>a(I));return{typeMap:r,directives:i};function a(I){if((0,zn.isSpecifiedDirective)(I))return I;let v=I.toConfig();return v.args=o(v.args),new zn.GraphQLDirective(v)}function o(I){let v={};for(let A in I){let U=I[A],j=E(U.type);j!=null&&(U.type=j,v[A]=U)}return v}function c(I){if((0,zn.isObjectType)(I)){let v=I.toConfig(),A=Q(M({},v),{fields:()=>l(v.fields),interfaces:()=>p(v.interfaces)});return new zn.GraphQLObjectType(A)}else if((0,zn.isInterfaceType)(I)){let v=I.toConfig(),A=Q(M({},v),{fields:()=>l(v.fields)});return"interfaces"in A&&(A.interfaces=()=>p(v.interfaces)),new zn.GraphQLInterfaceType(A)}else if((0,zn.isUnionType)(I)){let v=I.toConfig(),A=Q(M({},v),{types:()=>p(v.types)});return new zn.GraphQLUnionType(A)}else if((0,zn.isInputObjectType)(I)){let v=I.toConfig(),A=Q(M({},v),{fields:()=>d(v.fields)});return new zn.GraphQLInputObjectType(A)}else if((0,zn.isEnumType)(I)){let v=I.toConfig();return new zn.GraphQLEnumType(v)}else if((0,zn.isScalarType)(I)){if((0,zn.isSpecifiedScalarType)(I))return I;let v=I.toConfig();return new zn.GraphQLScalarType(v)}throw new Error(`Unexpected schema type: ${I}`)}function l(I){let v={};for(let A in I){let U=I[A],j=E(U.type);j!=null&&U.args&&(U.type=j,U.args=o(U.args),v[A]=U)}return v}function d(I){let v={};for(let A in I){let U=I[A],j=E(U.type);j!=null&&(U.type=j,v[A]=U)}return v}function p(I){let v=[];for(let A of I){let U=E(A);U!=null&&v.push(U)}return v}function E(I){if((0,zn.isListType)(I)){let v=E(I.ofType);return v!=null?new zn.GraphQLList(v):null}else if((0,zn.isNonNullType)(I)){let v=E(I.ofType);return v!=null?new zn.GraphQLNonNull(v):null}else if((0,zn.isNamedType)(I)){let v=n[I.name];return v===void 0&&(v=(0,Pk.isNamedStub)(I)?(0,Pk.getBuiltInForStub)(I):c(I),r[v.name]=n[I.name]=v),v!=null?r[v.name]:null}return null}}});var CO=w(Gl=>{"use strict";m();T();N();Object.defineProperty(Gl,"__esModule",{value:!0});Gl.transformInputValue=Kl;Gl.serializeInputValue=jte;Gl.parseInputValue=Kte;Gl.parseInputValueLiteral=Gte;var PT=Oe(),Vte=Ml();function Kl(e,t,n=null,r=null){if(t==null)return t;let i=(0,PT.getNullableType)(e);if((0,PT.isLeafType)(i))return n!=null?n(i,t):t;if((0,PT.isListType)(i))return(0,Vte.asArray)(t).map(a=>Kl(i.ofType,a,n,r));if((0,PT.isInputObjectType)(i)){let a=i.getFields(),o={};for(let c in t){let l=a[c];l!=null&&(o[c]=Kl(l.type,t[c],n,r))}return r!=null?r(i,o):o}}function jte(e,t){return Kl(e,t,(n,r)=>{try{return n.serialize(r)}catch(i){return r}})}function Kte(e,t){return Kl(e,t,(n,r)=>{try{return n.parseValue(r)}catch(i){return r}})}function Gte(e,t){return Kl(e,t,(n,r)=>n.parseLiteral(r,{}))}});var Ql=w(wT=>{"use strict";m();T();N();Object.defineProperty(wT,"__esModule",{value:!0});wT.mapSchema=Qte;wT.correctASTNodes=Yf;var st=Oe(),$l=RO(),Rt=_c(),$te=RT(),Fk=CO();function Qte(e,t={}){let n=Ck(Lk(BO(wk(Jte(BO(wk(e.getTypeMap(),e,Fk.serializeInputValue),e,t,c=>(0,st.isLeafType)(c)),e,t),e,Fk.parseInputValue),e,t,c=>!(0,st.isLeafType)(c)),e,t),e,t),r=e.getDirectives(),i=Hte(r,e,t),{typeMap:a,directives:o}=(0,$te.rewireTypes)(n,i);return new st.GraphQLSchema(Q(M({},e.toConfig()),{query:(0,$l.getObjectTypeFromTypeMap)(a,(0,$l.getObjectTypeFromTypeMap)(n,e.getQueryType())),mutation:(0,$l.getObjectTypeFromTypeMap)(a,(0,$l.getObjectTypeFromTypeMap)(n,e.getMutationType())),subscription:(0,$l.getObjectTypeFromTypeMap)(a,(0,$l.getObjectTypeFromTypeMap)(n,e.getSubscriptionType())),types:Object.values(a),directives:o}))}var Yte=["String","ID","Int","Float","Boolean"];function BO(e,t,n,r=()=>!0){let i={};for(let a in e)if(!a.startsWith("__")&&!Yte.includes(a)){let o=e[a];if(o==null||!r(o)){i[a]=o;continue}let c=Wte(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 Jte(e,t,n){let r=nne(n);return r?BO(e,t,{[Rt.MapperKind.ENUM_TYPE]:i=>{let a=i.toConfig(),o=a.values,c={};for(let l in o){let d=o[l],p=r(d,i.name,t,l);if(p===void 0)c[l]=d;else if(Array.isArray(p)){let[E,I]=p;c[E]=I===void 0?d:I}else p!==null&&(c[l]=p)}return Yf(new st.GraphQLEnumType(Q(M({},a),{values:c})))}},i=>(0,st.isEnumType)(i)):e}function wk(e,t,n){let r=Ck(e,t,{[Rt.MapperKind.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;let a=FT(e,i.type);if(a!=null)return Q(M({},i),{defaultValue:n(a,i.defaultValue)})}});return Lk(r,t,{[Rt.MapperKind.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;let a=FT(r,i.type);if(a!=null)return Q(M({},i),{defaultValue:n(a,i.defaultValue)})}})}function FT(e,t){if((0,st.isListType)(t)){let n=FT(e,t.ofType);return n!=null?new st.GraphQLList(n):null}else if((0,st.isNonNullType)(t)){let n=FT(e,t.ofType);return n!=null?new st.GraphQLNonNull(n):null}else if((0,st.isNamedType)(t)){let n=e[t.name];return n!=null?n:null}return null}function Lk(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,st.isObjectType)(a)&&!(0,st.isInterfaceType)(a)&&!(0,st.isInputObjectType)(a)){r[i]=a;continue}let o=Zte(t,n,i);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let p in l){let E=l[p],I=o(E,p,i,t);if(I===void 0)d[p]=E;else if(Array.isArray(I)){let[v,A]=I;A.astNode!=null&&(A.astNode=Q(M({},A.astNode),{name:Q(M({},A.astNode.name),{value:v})})),d[v]=A===void 0?E:A}else I!==null&&(d[p]=I)}(0,st.isObjectType)(a)?r[i]=Yf(new st.GraphQLObjectType(Q(M({},c),{fields:d}))):(0,st.isInterfaceType)(a)?r[i]=Yf(new st.GraphQLInterfaceType(Q(M({},c),{fields:d}))):r[i]=Yf(new st.GraphQLInputObjectType(Q(M({},c),{fields:d})))}return r}function Ck(e,t,n){let r={};for(let i in e)if(!i.startsWith("__")){let a=e[i];if(!(0,st.isObjectType)(a)&&!(0,st.isInterfaceType)(a)){r[i]=a;continue}let o=ene(n);if(o==null){r[i]=a;continue}let c=a.toConfig(),l=c.fields,d={};for(let p in l){let E=l[p],I=E.args;if(I==null){d[p]=E;continue}let v=Object.keys(I);if(!v.length){d[p]=E;continue}let A={};for(let U of v){let j=I[U],G=o(j,p,i,t);if(G===void 0)A[U]=j;else if(Array.isArray(G)){let[re,ne]=G;A[re]=ne}else G!==null&&(A[U]=G)}d[p]=Q(M({},E),{args:A})}(0,st.isObjectType)(a)?r[i]=new st.GraphQLObjectType(Q(M({},c),{fields:d})):(0,st.isInterfaceType)(a)?r[i]=new st.GraphQLInterfaceType(Q(M({},c),{fields:d})):r[i]=new st.GraphQLInputObjectType(Q(M({},c),{fields:d}))}return r}function Hte(e,t,n){let r=tne(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 zte(e,t){var i,a,o;let n=e.getType(t),r=[Rt.MapperKind.TYPE];return(0,st.isObjectType)(n)?(r.push(Rt.MapperKind.COMPOSITE_TYPE,Rt.MapperKind.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Rt.MapperKind.ROOT_OBJECT,Rt.MapperKind.QUERY):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Rt.MapperKind.ROOT_OBJECT,Rt.MapperKind.MUTATION):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Rt.MapperKind.ROOT_OBJECT,Rt.MapperKind.SUBSCRIPTION)):(0,st.isInputObjectType)(n)?r.push(Rt.MapperKind.INPUT_OBJECT_TYPE):(0,st.isInterfaceType)(n)?r.push(Rt.MapperKind.COMPOSITE_TYPE,Rt.MapperKind.ABSTRACT_TYPE,Rt.MapperKind.INTERFACE_TYPE):(0,st.isUnionType)(n)?r.push(Rt.MapperKind.COMPOSITE_TYPE,Rt.MapperKind.ABSTRACT_TYPE,Rt.MapperKind.UNION_TYPE):(0,st.isEnumType)(n)?r.push(Rt.MapperKind.ENUM_TYPE):(0,st.isScalarType)(n)&&r.push(Rt.MapperKind.SCALAR_TYPE),r}function Wte(e,t,n){let r=zte(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function Xte(e,t){var i,a,o;let n=e.getType(t),r=[Rt.MapperKind.FIELD];return(0,st.isObjectType)(n)?(r.push(Rt.MapperKind.COMPOSITE_FIELD,Rt.MapperKind.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(Rt.MapperKind.ROOT_FIELD,Rt.MapperKind.QUERY_ROOT_FIELD):t===((a=e.getMutationType())==null?void 0:a.name)?r.push(Rt.MapperKind.ROOT_FIELD,Rt.MapperKind.MUTATION_ROOT_FIELD):t===((o=e.getSubscriptionType())==null?void 0:o.name)&&r.push(Rt.MapperKind.ROOT_FIELD,Rt.MapperKind.SUBSCRIPTION_ROOT_FIELD)):(0,st.isInterfaceType)(n)?r.push(Rt.MapperKind.COMPOSITE_FIELD,Rt.MapperKind.INTERFACE_FIELD):(0,st.isInputObjectType)(n)&&r.push(Rt.MapperKind.INPUT_OBJECT_FIELD),r}function Zte(e,t,n){let r=Xte(e,n),i,a=[...r];for(;!i&&a.length>0;){let o=a.pop();i=t[o]}return i!=null?i:null}function ene(e){let t=e[Rt.MapperKind.ARGUMENT];return t!=null?t:null}function tne(e){let t=e[Rt.MapperKind.DIRECTIVE];return t!=null?t:null}function nne(e){let t=e[Rt.MapperKind.ENUM_VALUE];return t!=null?t:null}function Yf(e){if((0,st.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=Q(M({},t.astNode),{kind:st.Kind.OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(M({},n),{kind:st.Kind.OBJECT_TYPE_EXTENSION,fields:void 0}))),new st.GraphQLObjectType(t)}else if((0,st.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=Q(M({},t.astNode),{kind:st.Kind.INTERFACE_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(M({},n),{kind:st.Kind.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new st.GraphQLInterfaceType(t)}else if((0,st.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=Q(M({},t.astNode),{kind:st.Kind.INPUT_OBJECT_TYPE_DEFINITION,fields:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(M({},n),{kind:st.Kind.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new st.GraphQLInputObjectType(t)}else if((0,st.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=Q(M({},t.astNode),{values:n})}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>Q(M({},n),{values:void 0}))),new st.GraphQLEnumType(t)}else return e}});var Bk=w(MO=>{"use strict";m();T();N();Object.defineProperty(MO,"__esModule",{value:!0});MO.filterSchema=ine;var LT=Oe(),Ea=_c(),rne=Ql();function ine({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,directiveFilter:l=void 0,enumValueFilter:d=void 0}){return(0,rne.mapSchema)(e,{[Ea.MapperKind.QUERY]:E=>UO(E,"Query",r,c),[Ea.MapperKind.MUTATION]:E=>UO(E,"Mutation",r,c),[Ea.MapperKind.SUBSCRIPTION]:E=>UO(E,"Subscription",r,c),[Ea.MapperKind.OBJECT_TYPE]:E=>t(E.name,E)?kO(LT.GraphQLObjectType,E,i||n,c):null,[Ea.MapperKind.INTERFACE_TYPE]:E=>t(E.name,E)?kO(LT.GraphQLInterfaceType,E,a||n,c):null,[Ea.MapperKind.INPUT_OBJECT_TYPE]:E=>t(E.name,E)?kO(LT.GraphQLInputObjectType,E,o||n):null,[Ea.MapperKind.UNION_TYPE]:E=>t(E.name,E)?void 0:null,[Ea.MapperKind.ENUM_TYPE]:E=>t(E.name,E)?void 0:null,[Ea.MapperKind.SCALAR_TYPE]:E=>t(E.name,E)?void 0:null,[Ea.MapperKind.DIRECTIVE]:E=>l&&!l(E.name,E)?null:void 0,[Ea.MapperKind.ENUM_VALUE]:(E,I,v,A)=>d&&!d(I,A,E)?null:void 0})}function UO(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(e.name,a,c,o.args[c])||delete o.args[c]}return new LT.GraphQLObjectType(i)}return e}function kO(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 kk=w(CT=>{"use strict";m();T();N();Object.defineProperty(CT,"__esModule",{value:!0});CT.healSchema=ane;CT.healTypes=Uk;var Ha=Oe();function ane(e){return Uk(e.getTypeMap(),e.getDirectives()),e}function Uk(e,t){let n=Object.create(null);for(let d in e){let p=e[d];if(p==null||d.startsWith("__"))continue;let E=p.name;if(!E.startsWith("__")){if(n[E]!=null){console.warn(`Duplicate schema type name ${E} found; keeping the existing one found in the schema`);continue}n[E]=p}}for(let d in n){let p=n[d];e[d]=p}for(let d of t)d.args=d.args.filter(p=>(p.type=l(p.type),p.type!==null));for(let d in e){let p=e[d];!d.startsWith("__")&&d in n&&p!=null&&r(p)}for(let d in e)!d.startsWith("__")&&!(d in n)&&delete e[d];function r(d){if((0,Ha.isObjectType)(d)){i(d),a(d);return}else if((0,Ha.isInterfaceType)(d)){i(d),"getInterfaces"in d&&a(d);return}else if((0,Ha.isUnionType)(d)){c(d);return}else if((0,Ha.isInputObjectType)(d)){o(d);return}else if((0,Ha.isLeafType)(d))return;throw new Error(`Unexpected schema type: ${d}`)}function i(d){let p=d.getFields();for(let[E,I]of Object.entries(p))I.args.map(v=>(v.type=l(v.type),v.type===null?null:v)).filter(Boolean),I.type=l(I.type),I.type===null&&delete p[E]}function a(d){if("getInterfaces"in d){let p=d.getInterfaces();p.push(...p.splice(0).map(E=>l(E)).filter(Boolean))}}function o(d){let p=d.getFields();for(let[E,I]of Object.entries(p))I.type=l(I.type),I.type===null&&delete p[E]}function c(d){let p=d.getTypes();p.push(...p.splice(0).map(E=>l(E)).filter(Boolean))}function l(d){if((0,Ha.isListType)(d)){let p=l(d.ofType);return p!=null?new Ha.GraphQLList(p):null}else if((0,Ha.isNonNullType)(d)){let p=l(d.ofType);return p!=null?new Ha.GraphQLNonNull(p):null}else if((0,Ha.isNamedType)(d)){let p=e[d.name];if(p&&d!==p)return p}return d}}});var Mk=w(xO=>{"use strict";m();T();N();Object.defineProperty(xO,"__esModule",{value:!0});xO.getResolversFromSchema=sne;var vc=Oe();function sne(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,vc.isScalarType)(c)){if(!(0,vc.isSpecifiedScalarType)(c)){let l=c.toConfig();delete l.astNode,n[o]=new vc.GraphQLScalarType(l)}}else if((0,vc.isEnumType)(c)){n[o]={};let l=c.getValues();for(let d of l)n[o][d.name]=d.value}else if((0,vc.isInterfaceType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,vc.isUnionType)(c))c.resolveType!=null&&(n[o]={__resolveType:c.resolveType});else if((0,vc.isObjectType)(c)){n[o]={},c.isTypeOf!=null&&(n[o].__isTypeOf=c.isTypeOf);let l=c.getFields();for(let d in l){let p=l[d];if(p.subscribe!=null&&(n[o][d]=n[o][d]||{},n[o][d].subscribe=p.subscribe),p.resolve!=null&&((i=p.resolve)==null?void 0:i.name)!=="defaultFieldResolver"){switch((a=p.resolve)==null?void 0:a.name){case"defaultMergedResolver":if(!t)continue;break;case"defaultFieldResolver":continue}n[o][d]=n[o][d]||{},n[o][d].resolve=p.resolve}}}}return n}});var qk=w(qO=>{"use strict";m();T();N();Object.defineProperty(qO,"__esModule",{value:!0});qO.forEachField=one;var xk=Oe();function one(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,xk.getNamedType)(i).name.startsWith("__")&&(0,xk.isObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];t(c,r,o)}}}}});var Vk=w(jO=>{"use strict";m();T();N();Object.defineProperty(jO,"__esModule",{value:!0});jO.forEachDefaultValue=une;var VO=Oe();function une(e,t){let n=e.getTypeMap();for(let r in n){let i=n[r];if(!(0,VO.getNamedType)(i).name.startsWith("__")){if((0,VO.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,VO.isInputObjectType)(i)){let a=i.getFields();for(let o in a){let c=a[o];c.defaultValue=t(c.type,c.defaultValue)}}}}}});var QO=w($O=>{"use strict";m();T();N();Object.defineProperty($O,"__esModule",{value:!0});$O.addTypes=lne;var KO=Oe(),GO=RO(),cne=RT();function lne(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,KO.isNamedType)(c)?r[c.name]=c:(0,KO.isDirective)(c)&&(i[c.name]=c);let{typeMap:a,directives:o}=(0,cne.rewireTypes)(r,Object.values(i));return new KO.GraphQLSchema(Q(M({},n),{query:(0,GO.getObjectTypeFromTypeMap)(a,e.getQueryType()),mutation:(0,GO.getObjectTypeFromTypeMap)(a,e.getMutationType()),subscription:(0,GO.getObjectTypeFromTypeMap)(a,e.getSubscriptionType()),types:Object.values(a),directives:o}))}});var Kk=w(YO=>{"use strict";m();T();N();Object.defineProperty(YO,"__esModule",{value:!0});YO.pruneSchema=Nne;var Wn=Oe(),dne=cO(),fne=_c(),pne=Ql(),mne=jf();function Nne(e,t={}){let{skipEmptyCompositeTypePruning:n,skipEmptyUnionPruning:r,skipPruning:i,skipUnimplementedInterfacesPruning:a,skipUnusedTypesPruning:o}=t,c=[],l=e;do{let d=Tne(l);if(i){let p=[];for(let E in l.getTypeMap()){if(E.startsWith("__"))continue;let I=l.getType(E);I&&i(I)&&p.push(E)}d=jk(p,l,d)}c=[],l=(0,pne.mapSchema)(l,{[fne.MapperKind.TYPE]:p=>!d.has(p.name)&&!(0,Wn.isSpecifiedScalarType)(p)?((0,Wn.isUnionType)(p)||(0,Wn.isInputObjectType)(p)||(0,Wn.isInterfaceType)(p)||(0,Wn.isObjectType)(p)||(0,Wn.isScalarType)(p))&&(o||(0,Wn.isUnionType)(p)&&r&&!Object.keys(p.getTypes()).length||((0,Wn.isInputObjectType)(p)||(0,Wn.isInterfaceType)(p)||(0,Wn.isObjectType)(p))&&n&&!Object.keys(p.getFields()).length||(0,Wn.isInterfaceType)(p)&&a)?p:(c.push(p.name),d.delete(p.name),null):p})}while(c.length);return l}function Tne(e){let t=[];for(let n of(0,mne.getRootTypes)(e))t.push(n.name);return jk(t,e)}function jk(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,Wn.isUnionType)(a)&&e.push(...a.getTypes().map(o=>o.name)),(0,Wn.isInterfaceType)(a)&&r[i]===!0&&(e.push(...(0,dne.getImplementingTypes)(a.name,t)),r[i]=!1),(0,Wn.isEnumType)(a)&&e.push(...a.getValues().flatMap(o=>BT(t,o))),"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,Wn.isObjectType)(a)&&e.push(...l.args.flatMap(p=>{let E=[(0,Wn.getNamedType)(p.type).name];return E.push(...BT(t,p)),E}));let d=(0,Wn.getNamedType)(l.type);e.push(d.name),e.push(...BT(t,l)),(0,Wn.isInterfaceType)(d)&&!(d.name in r)&&(r[d.name]=!0)}}e.push(...BT(t,a)),n.add(i)}}return n}function BT(e,t){var r,i;let n=new Set;if((r=t.astNode)!=null&&r.directives)for(let a of t.astNode.directives){let o=e.getDirective(a.name.value);if(o!=null&&o.args)for(let c of o.args){let l=(0,Wn.getNamedType)(c.type);n.add(l.name)}}if((i=t.extensions)!=null&&i.directives)for(let a in t.extensions.directives){let o=e.getDirective(a);if(o!=null&&o.args)for(let c of o.args){let l=(0,Wn.getNamedType)(c.type);n.add(l.name)}}return[...n]}});var HO=w(JO=>{"use strict";m();T();N();Object.defineProperty(JO,"__esModule",{value:!0});JO.mergeDeep=UT;var Ene=Ml();function UT(e,t=!1,n=!1,r=!1){if(e.length===0)return;if(e.length===1)return e[0];let i,a=!0,o=e.every(d=>{if(Array.isArray(d)){if(i===void 0)return i=d.length,!0;if(i===d.length)return!0}else a=!1;return!1});if(r&&o)return new Array(i).fill(null).map((d,p)=>UT(e.map(E=>E[p]),t,n,r));if(a)return e.flat(1);let c,l;t&&(l=e.find(d=>Gk(d)),l&&(c==null&&(c={}),Object.setPrototypeOf(c,Object.create(Object.getPrototypeOf(l)))));for(let d of e)if(d!=null)if(Gk(d)){if(l){let p=Object.getPrototypeOf(c),E=Object.getPrototypeOf(d);if(E)for(let I of Object.getOwnPropertyNames(E)){let v=Object.getOwnPropertyDescriptor(E,I);(0,Ene.isSome)(v)&&Object.defineProperty(p,I,v)}}for(let p in d)c==null&&(c={}),p in c?c[p]=UT([c[p],d[p]],t,n,r):c[p]=d[p]}else Array.isArray(d)&&Array.isArray(c)?c=UT([c,d],t,n,r):c=d;return c}function Gk(e){return e&&typeof e=="object"&&!Array.isArray(e)}});var $k=w(zO=>{"use strict";m();T();N();Object.defineProperty(zO,"__esModule",{value:!0});zO.parseSelectionSet=yne;var hne=Oe();function yne(e,t){return(0,hne.parse)(e,t).definitions[0].selectionSet}});var Qk=w(WO=>{"use strict";m();T();N();Object.defineProperty(WO,"__esModule",{value:!0});WO.getResponseKeyFromInfo=Ine;function Ine(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}});var Yk=w(Yl=>{"use strict";m();T();N();Object.defineProperty(Yl,"__esModule",{value:!0});Yl.appendObjectFields=_ne;Yl.removeObjectFields=vne;Yl.selectObjectFields=One;Yl.modifyObjectFields=Sne;var kT=Oe(),gne=QO(),MT=_c(),Oc=Ql();function _ne(e,t,n){return e.getType(t)==null?(0,gne.addTypes)(e,[new kT.GraphQLObjectType({name:t,fields:n})]):(0,Oc.mapSchema)(e,{[MT.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,Oc.correctASTNodes)(new kT.GraphQLObjectType(Q(M({},i),{fields:o})))}}})}function vne(e,t,n){let r={};return[(0,Oc.mapSchema)(e,{[MT.MapperKind.OBJECT_TYPE]:a=>{if(a.name===t){let o=a.toConfig(),c=o.fields,l={};for(let d in c){let p=c[d];n(d,p)?r[d]=p:l[d]=p}return(0,Oc.correctASTNodes)(new kT.GraphQLObjectType(Q(M({},o),{fields:l})))}}}),r]}function One(e,t,n){let r={};return(0,Oc.mapSchema)(e,{[MT.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}function Sne(e,t,n,r){let i={};return[(0,Oc.mapSchema)(e,{[MT.MapperKind.OBJECT_TYPE]:o=>{if(o.name===t){let c=o.toConfig(),l=c.fields,d={};for(let p in l){let E=l[p];n(p,E)?i[p]=E:d[p]=E}for(let p in r){let E=r[p];d[p]=E}return(0,Oc.correctASTNodes)(new kT.GraphQLObjectType(Q(M({},c),{fields:d})))}}}),i]}});var Jk=w(XO=>{"use strict";m();T();N();Object.defineProperty(XO,"__esModule",{value:!0});XO.renameType=Dne;var Yi=Oe();function Dne(e,t){if((0,Yi.isObjectType)(e))return new Yi.GraphQLObjectType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isInterfaceType)(e))return new Yi.GraphQLInterfaceType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isUnionType)(e))return new Yi.GraphQLUnionType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isInputObjectType)(e))return new Yi.GraphQLInputObjectType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isEnumType)(e))return new Yi.GraphQLEnumType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));if((0,Yi.isScalarType)(e))return new Yi.GraphQLScalarType(Q(M({},e.toConfig()),{name:t,astNode:e.astNode==null?e.astNode:Q(M({},e.astNode),{name:Q(M({},e.astNode.name),{value:t})}),extensionASTNodes:e.extensionASTNodes==null?e.extensionASTNodes:e.extensionASTNodes.map(n=>Q(M({},n),{name:Q(M({},n.name),{value:t})}))}));throw new Error(`Unknown type ${e}.`)}});var Hk=w(xT=>{"use strict";m();T();N();Object.defineProperty(xT,"__esModule",{value:!0});xT.updateArgument=Ane;xT.createVariableNameGenerator=Rne;var Sc=Oe(),bne=vT();function Ane(e,t,n,r,i,a,o){if(e[r]={kind:Sc.Kind.ARGUMENT,name:{kind:Sc.Kind.NAME,value:r},value:{kind:Sc.Kind.VARIABLE,name:{kind:Sc.Kind.NAME,value:i}}},t[i]={kind:Sc.Kind.VARIABLE_DEFINITION,variable:{kind:Sc.Kind.VARIABLE,name:{kind:Sc.Kind.NAME,value:i}},type:(0,bne.astFromType)(a)},o!==void 0){n[i]=o;return}i in n&&delete n[i]}function Rne(e){let t=0;return n=>{let r;do r=t===0?n:`_v${t.toString()}_${n}`,t++;while(r in e);return r}}});var zk=w(eS=>{"use strict";m();T();N();Object.defineProperty(eS,"__esModule",{value:!0});eS.implementsAbstractType=Pne;var ZO=Oe();function Pne(e,t,n){return n==null||t==null?!1:t===n?!0:(0,ZO.isCompositeType)(t)&&(0,ZO.isCompositeType)(n)?(0,ZO.doTypesOverlap)(e,t,n):!1}});var Xk=w(tS=>{"use strict";m();T();N();Object.defineProperty(tS,"__esModule",{value:!0});tS.observableToAsyncIterable=Fne;var Wk=xf();function Fne(e){let t=[],n=[],r=!0,i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},a=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},o=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(p=>{if(n.length!==0){let E=n.shift();p(E)}else t.push(p)}),l=e.subscribe({next(p){return i(p)},error(p){return a(p)},complete(){return o()}}),d=()=>{if(r){r=!1,l.unsubscribe();for(let p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return d(),(0,Wk.fakePromise)({value:void 0,done:!0})},throw(p){return d(),(0,Wk.fakeRejectPromise)(p)},[Symbol.asyncIterator](){return this}}}});var Zk=w(qT=>{"use strict";m();T();N();Object.defineProperty(qT,"__esModule",{value:!0});qT.AccumulatorMap=void 0;var nS=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)}};qT.AccumulatorMap=nS});var rS=w(Jl=>{"use strict";m();T();N();Object.defineProperty(Jl,"__esModule",{value:!0});Jl.GraphQLStreamDirective=Jl.GraphQLDeferDirective=void 0;var Ji=Oe();Jl.GraphQLDeferDirective=new Ji.GraphQLDirective({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[Ji.DirectiveLocation.FRAGMENT_SPREAD,Ji.DirectiveLocation.INLINE_FRAGMENT],args:{if:{type:new Ji.GraphQLNonNull(Ji.GraphQLBoolean),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Ji.GraphQLString,description:"Unique name"}}});Jl.GraphQLStreamDirective=new Ji.GraphQLDirective({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[Ji.DirectiveLocation.FIELD],args:{if:{type:new Ji.GraphQLNonNull(Ji.GraphQLBoolean),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Ji.GraphQLString,description:"Unique name"},initialCount:{defaultValue:0,type:Ji.GraphQLInt,description:"Number of items to return immediately"}}})});var sS=w(Fs=>{"use strict";m();T();N();Object.defineProperty(Fs,"__esModule",{value:!0});Fs.collectSubFields=void 0;Fs.collectFields=Cne;Fs.shouldIncludeNode=VT;Fs.doesFragmentConditionMatch=iS;Fs.getFieldEntryKey=eM;Fs.getDeferValues=aS;var za=Oe(),jT=Zk(),wne=rS(),Lne=vu();function Hl(e,t,n,r,i,a,o,c){for(let l of i.selections)switch(l.kind){case za.Kind.FIELD:{if(!VT(n,l))continue;a.add(eM(l),l);break}case za.Kind.INLINE_FRAGMENT:{if(!VT(n,l)||!iS(e,l,r))continue;let d=aS(n,l);if(d){let p=new jT.AccumulatorMap;Hl(e,t,n,r,l.selectionSet,p,o,c),o.push({label:d.label,fields:p})}else Hl(e,t,n,r,l.selectionSet,a,o,c);break}case za.Kind.FRAGMENT_SPREAD:{let d=l.name.value;if(!VT(n,l))continue;let p=aS(n,l);if(c.has(d)&&!p)continue;let E=t[d];if(!E||!iS(e,E,r))continue;if(p||c.add(d),p){let I=new jT.AccumulatorMap;Hl(e,t,n,r,E.selectionSet,I,o,c),o.push({label:p.label,fields:I})}else Hl(e,t,n,r,E.selectionSet,a,o,c);break}}}function Cne(e,t,n,r,i){let a=new jT.AccumulatorMap,o=[];return Hl(e,t,n,r,i,a,o,new Set),{fields:a,patches:o}}function VT(e,t){let n=(0,za.getDirectiveValues)(za.GraphQLSkipDirective,t,e);if((n==null?void 0:n.if)===!0)return!1;let r=(0,za.getDirectiveValues)(za.GraphQLIncludeDirective,t,e);return(r==null?void 0:r.if)!==!1}function iS(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=(0,za.typeFromAST)(e,r);return i===n?!0:(0,za.isAbstractType)(i)?e.getPossibleTypes(i).includes(n):!1}function eM(e){return e.alias?e.alias.value:e.name.value}function aS(e,t){let n=(0,za.getDirectiveValues)(wne.GraphQLDeferDirective,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}Fs.collectSubFields=(0,Lne.memoize5)(function(t,n,r,i,a){let o=new jT.AccumulatorMap,c=new Set,l=[],d={fields:o,patches:l};for(let p of a)p.selectionSet&&Hl(t,n,r,i,p.selectionSet,o,l,c);return d})});var oS=w(Jf=>{"use strict";m();T();N();Object.defineProperty(Jf,"__esModule",{value:!0});Jf.getOperationASTFromRequest=void 0;Jf.getOperationASTFromDocument=tM;var Bne=Oe(),Une=vu();function tM(e,t){let n=(0,Bne.getOperationAST)(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}Jf.getOperationASTFromRequest=(0,Une.memoize1)(function(t){return tM(t.document,t.operationName)})});var iM=w(Hf=>{"use strict";m();T();N();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.visitData=cS;Hf.visitErrors=Mne;Hf.visitResult=xne;var Ou=Oe(),uS=sS(),kne=oS();function cS(e,t,n){if(Array.isArray(e))return e.map(r=>cS(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:cS(a,t,n)})}return n!=null?n(r):r}return e}function Mne(e,t){return e.map(n=>t(n))}function xne(e,t,n,r,i){let a=t.document.definitions.reduce((I,v)=>(v.kind===Ou.Kind.FRAGMENT_DEFINITION&&(I[v.name.value]=v),I),{}),o=t.variables||{},c={segmentInfoMap:new Map,unpathedErrors:new Set},l=e.data,d=e.errors,p=d!=null&&i!=null,E=(0,kne.getOperationASTFromRequest)(t);return l!=null&&E!=null&&(e.data=jne(l,E,n,a,o,r,p?d:void 0,c)),d!=null&&i&&(e.errors=qne(d,i,c)),e}function qne(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((d,p)=>{let E=p.type.name,I=t[E];if(I==null)return d;let v=I[p.fieldName];return v==null?d:v(d,p.pathIndex)},o);return a&&i.has(o)?a(l):l})}function Vne(e,t){switch(t.operation){case"query":return e.getQueryType();case"mutation":return e.getMutationType();case"subscription":return e.getSubscriptionType()}}function jne(e,t,n,r,i,a,o,c){let l=Vne(n,t),{fields:d}=(0,uS.collectFields)(n,r,i,l,t.selectionSet);return lS(e,l,d,n,r,i,a,0,o,c)}function lS(e,t,n,r,i,a,o,c,l,d){var re;let p=t.getFields(),E=o==null?void 0:o[t.name],I=E==null?void 0:E.__enter,v=I!=null?I(e):e,A,U=null;if(l!=null){A=Gne(l,c),U=A.errorMap;for(let ne of A.unpathedErrors)d.unpathedErrors.add(ne)}for(let[ne,me]of n){let ue=me[0].name.value,Ae=(re=p[ue])==null?void 0:re.type;if(Ae==null)switch(ue){case"__typename":Ae=Ou.TypeNameMetaFieldDef.type;break;case"__schema":Ae=Ou.SchemaMetaFieldDef.type;break;case"__type":Ae=Ou.TypeMetaFieldDef.type;break}let xe=c+1,rt;U&&(rt=U[ne],rt!=null&&delete U[ne],$ne(t,ue,xe,rt,d));let Z=rM(e[ne],Ae,me,r,i,a,o,xe,rt,d);nM(v,ne,Z,E,ue)}let j=v.__typename;if(j!=null&&nM(v,"__typename",j,E,"__typename"),U)for(let ne in U){let me=U[ne];for(let ue of me)d.unpathedErrors.add(ue)}let G=E==null?void 0:E.__leave;return G!=null?G(v):v}function nM(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 Kne(e,t,n,r,i,a,o,c,l,d){return e.map(p=>rM(p,t,n,r,i,a,o,c+1,l,d))}function rM(e,t,n,r,i,a,o,c,l=[],d){if(e==null)return e;let p=(0,Ou.getNullableType)(t);if((0,Ou.isListType)(p))return Kne(e,p.ofType,n,r,i,a,o,c,l,d);if((0,Ou.isAbstractType)(p)){let v=r.getType(e.__typename),{fields:A,patches:U}=(0,uS.collectSubFields)(r,i,a,v,n);if(U.length){A=new Map(A);for(let j of U)for(let[G,re]of j.fields){let ne=A.get(G);ne?ne.push(...re):A.set(G,re)}}return lS(e,v,A,r,i,a,o,c,l,d)}else if((0,Ou.isObjectType)(p)){let{fields:v,patches:A}=(0,uS.collectSubFields)(r,i,a,p,n);if(A.length){v=new Map(v);for(let U of A)for(let[j,G]of U.fields){let re=v.get(j);re?re.push(...G):v.set(j,G)}}return lS(e,p,v,r,i,a,o,c,l,d)}let E=o==null?void 0:o[p.name];if(E==null)return e;let I=E(e);return I===void 0?e:I}function Gne(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 $ne(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 aM=w(fS=>{"use strict";m();T();N();Object.defineProperty(fS,"__esModule",{value:!0});fS.valueMatchesCriteria=dS;function dS(e,t){return e==null?e===t:Array.isArray(e)?Array.isArray(t)&&e.every((n,r)=>dS(n,t[r])):typeof e=="object"?typeof t=="object"&&t&&Object.keys(t).every(n=>dS(e[n],t[n])):t instanceof RegExp?t.test(e):e===t}});var sM=w(pS=>{"use strict";m();T();N();Object.defineProperty(pS,"__esModule",{value:!0});pS.isAsyncIterable=Qne;function Qne(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}});var oM=w(mS=>{"use strict";m();T();N();Object.defineProperty(mS,"__esModule",{value:!0});mS.isDocumentNode=Jne;var Yne=Oe();function Jne(e){return e&&typeof e=="object"&&"kind"in e&&e.kind===Yne.Kind.DOCUMENT}});var uM=w(()=>{"use strict";m();T();N()});var fM=w(zf=>{"use strict";m();T();N();Object.defineProperty(zf,"__esModule",{value:!0});zf.getAsyncIteratorWithCancel=lM;zf.getAsyncIterableWithCancel=dM;zf.withCancel=dM;var Hne=vu();function zne(e){return Ai(this,null,function*(){return{value:e,done:!0}})}var cM=(0,Hne.memoize2)(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function lM(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||zne;return function(l){return Ai(this,null,function*(){let d=yield t(l);return Reflect.apply(o,n,[d])})}}else if(typeof a=="function")return cM(n,a);return a}})}function dM(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 lM(c,t)}:typeof a=="function"?cM(n,a):a}})}});var pM=w(NS=>{"use strict";m();T();N();Object.defineProperty(NS,"__esModule",{value:!0});NS.fixSchemaAst=ere;var Wne=Oe(),Xne=IO();function Zne(e,t){let n=(0,Xne.getDocumentNodeFromSchema)(e);return(0,Wne.buildASTSchema)(n,M({},t||{}))}function ere(e,t){let n;return(!e.astNode||!e.extensionASTNodes)&&(n=Zne(e,t)),!e.astNode&&(n!=null&&n.astNode)&&(e.astNode=n.astNode),!e.extensionASTNodes&&(n!=null&&n.astNode)&&(e.extensionASTNodes=n.extensionASTNodes),e}});var mM=w(TS=>{"use strict";m();T();N();Object.defineProperty(TS,"__esModule",{value:!0});TS.extractExtensionsFromSchema=rre;var tre=Ml(),ws=_c(),nre=Ql();function ha(e,t){e=e||{};let a=e,{directives:n}=a,r=UR(a,["directives"]),i=M({},r);if(!t&&n!=null){let o={};for(let c in n)o[c]=[...(0,tre.asArray)(n[c])];i.directives=o}return i}function rre(e,t=!1){let n={schemaExtensions:ha(e.extensions,t),types:{}};return(0,nre.mapSchema)(e,{[ws.MapperKind.OBJECT_TYPE]:r=>(n.types[r.name]={fields:{},type:"object",extensions:ha(r.extensions,t)},r),[ws.MapperKind.INTERFACE_TYPE]:r=>(n.types[r.name]={fields:{},type:"interface",extensions:ha(r.extensions,t)},r),[ws.MapperKind.FIELD]:(r,i,a)=>{n.types[a].fields[i]={arguments:{},extensions:ha(r.extensions,t)};let o=r.args;if(o!=null)for(let c in o)n.types[a].fields[i].arguments[c]=ha(o[c].extensions,t);return r},[ws.MapperKind.ENUM_TYPE]:r=>(n.types[r.name]={values:{},type:"enum",extensions:ha(r.extensions,t)},r),[ws.MapperKind.ENUM_VALUE]:(r,i,a,o)=>(n.types[i].values[o]=ha(r.extensions,t),r),[ws.MapperKind.SCALAR_TYPE]:r=>(n.types[r.name]={type:"scalar",extensions:ha(r.extensions,t)},r),[ws.MapperKind.UNION_TYPE]:r=>(n.types[r.name]={type:"union",extensions:ha(r.extensions,t)},r),[ws.MapperKind.INPUT_OBJECT_TYPE]:r=>(n.types[r.name]={fields:{},type:"input",extensions:ha(r.extensions,t)},r),[ws.MapperKind.INPUT_OBJECT_FIELD]:(r,i,a)=>(n.types[a].fields[i]={extensions:ha(r.extensions,t)},r)}),n}});var NM=w(Wf=>{"use strict";m();T();N();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.addPath=ire;Wf.pathToArray=are;Wf.printPathArray=sre;function ire(e,t,n){return{prev:e,key:t,typename:n}}function are(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function sre(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}});var EM=w(hS=>{"use strict";m();T();N();Object.defineProperty(hS,"__esModule",{value:!0});hS.mergeIncrementalResult=TM;var ore=HO();function TM({incrementalResult:e,executionResult:t}){var r;let n=["data",...(r=e.path)!=null?r:[]];if(e.items)for(let i of e.items)ES(t,n,i),n[n.length-1]++;e.data&&ES(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&ES(t,["extensions"],e.extensions),e.incremental&&e.incremental.forEach(i=>{TM({incrementalResult:i,executionResult:t})})}function ES(e,t,n){let r=e,i;for(i=0;i{"use strict";m();T();N();Object.defineProperty(KT,"__esModule",{value:!0});KT.debugTimerStart=ure;KT.debugTimerEnd=cre;var hM=new Set;function ure(e){var n,r;let t=((r=(n=globalThis.process)==null?void 0:n.env)==null?void 0:r.DEBUG)||globalThis.DEBUG;(t==="1"||t!=null&&t.includes(e))&&(hM.add(e),console.time(e))}function cre(e){hM.has(e)&&console.timeEnd(e)}});var _M=w(Xf=>{"use strict";m();T();N();Object.defineProperty(Xf,"__esModule",{value:!0});Xf.getAbortPromise=void 0;Xf.registerAbortSignalListener=gM;var lre=xf(),IM=vu(),dre=(0,IM.memoize1)(function(t){let n=new Set;return t.addEventListener("abort",r=>{for(let i of n)i(r)},{once:!0}),n});function gM(e,t){if(e.aborted){t();return}dre(e).add(t)}Xf.getAbortPromise=(0,IM.memoize1)(function(t){return t.aborted?(0,lre.fakeRejectPromise)(t.reason):new Promise((n,r)=>{if(t.aborted){r(t.reason);return}gM(t,()=>{r(t.reason)})})})});var ya=w(Le=>{"use strict";m();T();N();Object.defineProperty(Le,"__esModule",{value:!0});Le.createDeferred=Le.fakePromise=Le.mapMaybePromise=Le.mapAsyncIterator=Le.inspect=void 0;var Ye=(DU(),wm(SU));Ye.__exportStar(bU(),Le);Ye.__exportStar(Ml(),Le);Ye.__exportStar(rO(),Le);Ye.__exportStar(aO(),Le);Ye.__exportStar(qU(),Le);Ye.__exportStar(cO(),Le);Ye.__exportStar(IO(),Le);Ye.__exportStar(aO(),Le);Ye.__exportStar(ik(),Le);Ye.__exportStar(ak(),Le);Ye.__exportStar(hk(),Le);Ye.__exportStar(Dk(),Le);Ye.__exportStar(Ak(),Le);Ye.__exportStar(Bk(),Le);Ye.__exportStar(kk(),Le);Ye.__exportStar(Mk(),Le);Ye.__exportStar(qk(),Le);Ye.__exportStar(Vk(),Le);Ye.__exportStar(Ql(),Le);Ye.__exportStar(QO(),Le);Ye.__exportStar(RT(),Le);Ye.__exportStar(Kk(),Le);Ye.__exportStar(HO(),Le);Ye.__exportStar(_c(),Le);Ye.__exportStar(wO(),Le);Ye.__exportStar($k(),Le);Ye.__exportStar(Qk(),Le);Ye.__exportStar(Yk(),Le);Ye.__exportStar(Jk(),Le);Ye.__exportStar(CO(),Le);Ye.__exportStar(Hk(),Le);Ye.__exportStar(vT(),Le);Ye.__exportStar(zk(),Le);Ye.__exportStar(ET(),Le);Ye.__exportStar(Xk(),Le);Ye.__exportStar(iM(),Le);Ye.__exportStar(eO(),Le);Ye.__exportStar(aM(),Le);Ye.__exportStar(sM(),Le);Ye.__exportStar(oM(),Le);Ye.__exportStar(qf(),Le);Ye.__exportStar(uM(),Le);Ye.__exportStar(fM(),Le);Ye.__exportStar(jf(),Le);Ye.__exportStar(vO(),Le);Ye.__exportStar(sS(),Le);var fre=Mf();Object.defineProperty(Le,"inspect",{enumerable:!0,get:function(){return fre.inspect}});Ye.__exportStar(vu(),Le);Ye.__exportStar(pM(),Le);Ye.__exportStar(oS(),Le);Ye.__exportStar(mM(),Le);Ye.__exportStar(NM(),Le);Ye.__exportStar(IT(),Le);Ye.__exportStar(rS(),Le);Ye.__exportStar(EM(),Le);Ye.__exportStar(yM(),Le);Ye.__exportStar(nO(),Le);var GT=xf();Object.defineProperty(Le,"mapAsyncIterator",{enumerable:!0,get:function(){return GT.mapAsyncIterator}});Object.defineProperty(Le,"mapMaybePromise",{enumerable:!0,get:function(){return GT.mapMaybePromise}});Object.defineProperty(Le,"fakePromise",{enumerable:!0,get:function(){return GT.fakePromise}});Object.defineProperty(Le,"createDeferred",{enumerable:!0,get:function(){return GT.createDeferredPromise}});Ye.__exportStar(_M(),Le)});var OM=w($T=>{"use strict";m();T();N();Object.defineProperty($T,"__esModule",{value:!0});$T.mergeResolvers=void 0;var pre=ya();function vM(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=vM(i)),typeof i=="object"&&i&&n.push(i);let r=(0,pre.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}$T.mergeResolvers=vM});var yS=w(QT=>{"use strict";m();T();N();Object.defineProperty(QT,"__esModule",{value:!0});QT.mergeArguments=void 0;var SM=ya();function mre(e,t,n){let r=Nre([...t,...e].filter(SM.isSome),n);return n&&n.sort&&r.sort(SM.compareNodes),r}QT.mergeArguments=mre;function Nre(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 Hi=w(zl=>{"use strict";m();T();N();Object.defineProperty(zl,"__esModule",{value:!0});zl.mergeDirective=zl.mergeDirectives=void 0;var DM=Oe(),Tre=ya();function Ere(e,t){return!!e.find(n=>n.name.value===t.name.value)}function bM(e,t){var n;return!!((n=t==null?void 0:t[e.name.value])!=null&&n.repeatable)}function hre(e,t){return t.some(({value:n})=>n===e.value)}function AM(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=vre(o,c,(l,d)=>{let p=l.value;return!p||!d.some(E=>E.value===p)})}else a.value=r.value}else n.push(r)}return n}function yre(e,t){return e.map((n,r,i)=>{let a=i.findIndex(o=>o.name.value===n.name.value);if(a!==r&&!bM(n,t)){let o=i[a];return n.arguments=AM(n.arguments,o.arguments),null}return n}).filter(Tre.isSome)}function Ire(e=[],t=[],n,r){let i=n&&n.reverseDirectives,a=i?e:t,o=i?t:e,c=yre([...a],r);for(let l of o)if(Ere(c,l)&&!bM(l,r)){let d=c.findIndex(E=>E.name.value===l.name.value),p=c[d];c[d].arguments=AM(l.arguments||[],p.arguments||[])}else c.push(l);return c}zl.mergeDirectives=Ire;function gre(e,t){let n=(0,DM.print)(Q(M({},e),{description:void 0})),r=(0,DM.print)(Q(M({},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 Qne(e,t){return t?($ne(e,t),$(M({},e),{locations:[...t.locations,...e.locations.filter(n=>!jne(n,t.locations))]})):e}ed.mergeDirective=Qne;function Yne(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var uS=F(fE=>{"use strict";m();T();N();Object.defineProperty(fE,"__esModule",{value:!0});fE.mergeEnumValues=void 0;var Jne=Wi(),Hne=ya();function zne(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,Jne.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort(Hne.compareNodes),a}fE.mergeEnumValues=zne});var cS=F(mE=>{"use strict";m();T();N();Object.defineProperty(mE,"__esModule",{value:!0});mE.mergeEnum=void 0;var Wne=Oe(),Xne=Wi(),Zne=uS();function ere(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,Xne.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Zne.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?$(M({},e),{kind:Wne.Kind.ENUM_TYPE_DEFINITION}):e}mE.mergeEnum=ere});var NE=F($n=>{"use strict";m();T();N();Object.defineProperty($n,"__esModule",{value:!0});$n.defaultStringComparator=$n.CompareVal=$n.printTypeNode=$n.isNonNullTypeNode=$n.isListTypeNode=$n.isWrappingTypeNode=$n.extractType=$n.isSourceTypes=$n.isStringTypes=void 0;var Xp=Oe();function tre(e){return typeof e=="string"}$n.isStringTypes=tre;function nre(e){return e instanceof Xp.Source}$n.isSourceTypes=nre;function rre(e){let t=e;for(;t.kind===Xp.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}$n.extractType=rre;function ire(e){return e.kind!==Xp.Kind.NAMED_TYPE}$n.isWrappingTypeNode=ire;function cM(e){return e.kind===Xp.Kind.LIST_TYPE}$n.isListTypeNode=cM;function lM(e){return e.kind===Xp.Kind.NON_NULL_TYPE}$n.isNonNullTypeNode=lM;function lS(e){return cM(e)?`[${lS(e.type)}]`:lM(e)?`${lS(e.type)}!`:e.name.value}$n.printTypeNode=lS;var Ac;(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"})(Ac=$n.CompareVal||($n.CompareVal={}));function are(e,t){return e==null&&t==null?Ac.A_EQUALS_B:e==null?Ac.A_SMALLER_THAN_B:t==null?Ac.A_GREATER_THAN_B:et?Ac.A_GREATER_THAN_B:Ac.A_EQUALS_B}$n.defaultStringComparator=are});var ef=F(TE=>{"use strict";m();T();N();Object.defineProperty(TE,"__esModule",{value:!0});TE.mergeFields=void 0;var ai=NE(),sre=Wi(),ore=ya(),ure=oS();function cre(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function lre(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=cre(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||dre(e,c,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,ure.mergeArguments)(o.arguments||[],c.arguments||[],r),d.directives=(0,sre.mergeDirectives)(o.directives,c.directives,r,i),d.description=o.description||c.description,a[l]=d}else a.push(o)}if(r&&r.sort&&a.sort(ore.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}TE.mergeFields=lre;function dre(e,t,n,r=!1){let i=(0,ai.printTypeNode)(t.type),a=(0,ai.printTypeNode)(n.type);if(i!==a){let o=(0,ai.extractType)(t.type),c=(0,ai.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(!Zp(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,ai.isNonNullTypeNode)(n.type)&&!(0,ai.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function Zp(e,t,n=!1){if(!(0,ai.isWrappingTypeNode)(e)&&!(0,ai.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,ai.isNonNullTypeNode)(t)){let r=(0,ai.isNonNullTypeNode)(e)?e.type:e;return Zp(r,t.type)}return(0,ai.isNonNullTypeNode)(e)?Zp(t,e,n):(0,ai.isListTypeNode)(e)?(0,ai.isListTypeNode)(t)&&Zp(e.type,t.type)||(0,ai.isNonNullTypeNode)(t)&&Zp(e,t.type):!1}});var dS=F(EE=>{"use strict";m();T();N();Object.defineProperty(EE,"__esModule",{value:!0});EE.mergeInputType=void 0;var pre=Oe(),fre=ef(),mre=Wi();function Nre(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,fre.mergeFields)(e,e.fields,t.fields,n),directives:(0,mre.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?$(M({},e),{kind:pre.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}EE.mergeInputType=Nre});var tf=F(hE=>{"use strict";m();T();N();Object.defineProperty(hE,"__esModule",{value:!0});hE.mergeNamedTypeArray=void 0;var Tre=ya();function Ere(e,t){return!!e.find(n=>n.name.value===t.name.value)}function hre(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!Ere(t,i))];return n&&n.sort&&r.sort(Tre.compareNodes),r}hE.mergeNamedTypeArray=hre});var pS=F(yE=>{"use strict";m();T();N();Object.defineProperty(yE,"__esModule",{value:!0});yE.mergeInterface=void 0;var yre=Oe(),Ire=ef(),gre=Wi(),_re=tf();function vre(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,Ire.mergeFields)(e,e.fields,t.fields,n),directives:(0,gre.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,_re.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?$(M({},e),{kind:yre.Kind.INTERFACE_TYPE_DEFINITION}):e}yE.mergeInterface=vre});var fS=F(IE=>{"use strict";m();T();N();Object.defineProperty(IE,"__esModule",{value:!0});IE.mergeType=void 0;var Ore=Oe(),Sre=ef(),Dre=Wi(),bre=tf();function Are(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,Sre.mergeFields)(e,e.fields,t.fields,n),directives:(0,Dre.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,bre.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?$(M({},e),{kind:Ore.Kind.OBJECT_TYPE_DEFINITION}):e}IE.mergeType=Are});var mS=F(gE=>{"use strict";m();T();N();Object.defineProperty(gE,"__esModule",{value:!0});gE.mergeScalar=void 0;var Rre=Oe(),Pre=Wi();function Fre(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,Pre.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?$(M({},e),{kind:Rre.Kind.SCALAR_TYPE_DEFINITION}):e}gE.mergeScalar=Fre});var TS=F(_E=>{"use strict";m();T();N();Object.defineProperty(_E,"__esModule",{value:!0});_E.mergeUnion=void 0;var NS=Oe(),wre=Wi(),Lre=tf();function Cre(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,wre.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?NS.Kind.UNION_TYPE_DEFINITION:NS.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,Lre.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?$(M({},e),{kind:NS.Kind.UNION_TYPE_DEFINITION}):e}_E.mergeUnion=Cre});var ES=F(Rc=>{"use strict";m();T();N();Object.defineProperty(Rc,"__esModule",{value:!0});Rc.mergeSchemaDefs=Rc.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var nf=Oe(),Bre=Wi();Rc.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function Ure(e=[],t=[]){let n=[];for(let r in Rc.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 kre(e,t,n,r){return t?{kind:e.kind===nf.Kind.SCHEMA_DEFINITION||t.kind===nf.Kind.SCHEMA_DEFINITION?nf.Kind.SCHEMA_DEFINITION:nf.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,Bre.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:Ure(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?$(M({},e),{kind:nf.Kind.SCHEMA_DEFINITION}):e}Rc.mergeSchemaDefs=kre});var hS=F(es=>{"use strict";m();T();N();Object.defineProperty(es,"__esModule",{value:!0});es.mergeGraphQLNodes=es.isNamedDefinitionNode=es.schemaDefSymbol=void 0;var Gr=Oe(),Mre=fS(),xre=cS(),qre=mS(),Vre=TS(),jre=dS(),Kre=pS(),Gre=Wi(),$re=ES(),Qre=ya();es.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function dM(e){return"name"in e}es.isNamedDefinitionNode=dM;function Yre(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(dM(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,Qre.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 Gr.Kind.OBJECT_TYPE_DEFINITION:case Gr.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,Mre.mergeType)(c,r[l],t,n);break;case Gr.Kind.ENUM_TYPE_DEFINITION:case Gr.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,xre.mergeEnum)(c,r[l],t,n);break;case Gr.Kind.UNION_TYPE_DEFINITION:case Gr.Kind.UNION_TYPE_EXTENSION:r[l]=(0,Vre.mergeUnion)(c,r[l],t,n);break;case Gr.Kind.SCALAR_TYPE_DEFINITION:case Gr.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,qre.mergeScalar)(c,r[l],t,n);break;case Gr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Gr.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,jre.mergeInputType)(c,r[l],t,n);break;case Gr.Kind.INTERFACE_TYPE_DEFINITION:case Gr.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,Kre.mergeInterface)(c,r[l],t,n);break;case Gr.Kind.DIRECTIVE_DEFINITION:r[l]=(0,Gre.mergeDirective)(c,r[l]);break}}else(c.kind===Gr.Kind.SCHEMA_DEFINITION||c.kind===Gr.Kind.SCHEMA_EXTENSION)&&(r[es.schemaDefSymbol]=(0,$re.mergeSchemaDefs)(c,r[es.schemaDefSymbol],t));return r}es.mergeGraphQLNodes=Yre});var mM=F(id=>{"use strict";m();T();N();Object.defineProperty(id,"__esModule",{value:!0});id.mergeGraphQLTypes=id.mergeTypeDefs=void 0;var Xi=Oe(),yS=NE(),td=hS(),rd=ya(),pM=ES();function Jre(e,t){(0,rd.resetComments)();let n={kind:Xi.Kind.DOCUMENT,definitions:fM(e,M({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,rd.printWithComments)(n):r=n,(0,rd.resetComments)(),r}id.mergeTypeDefs=Jre;function nd(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")nd(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)nd(a,t,n,r,i);else if((0,Xi.isSchema)(e)){let a=(0,rd.getDocumentNodeFromSchema)(e,t);nd(a.definitions,t,n,r,i)}else if((0,yS.isStringTypes)(e)||(0,yS.isSourceTypes)(e)){let a=(0,Xi.parse)(e,t);nd(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,Xi.isDefinitionNode)(e))e.kind===Xi.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,rd.isDocumentNode)(e))nd(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 fM(e,t){var c,l,d;(0,rd.resetComments)();let{allDirectives:n,allNodes:r}=nd(e,t),i=(0,td.mergeGraphQLNodes)(n,t),a=(0,td.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let f=a[td.schemaDefSymbol]||{kind:Xi.Kind.SCHEMA_DEFINITION,operationTypes:[]},y=f.operationTypes;for(let I in pM.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!y.find(w=>w.operation===I)){let w=pM.DEFAULT_OPERATION_TYPE_NAME_MAP[I],U=a[w];U!=null&&U.name!=null&&y.push({kind:Xi.Kind.OPERATION_TYPE_DEFINITION,type:{kind:Xi.Kind.NAMED_TYPE,name:U.name},operation:I})}((c=f==null?void 0:f.operationTypes)==null?void 0:c.length)!=null&&f.operationTypes.length>0&&(a[td.schemaDefSymbol]=f)}t!=null&&t.forceSchemaDefinition&&!((d=(l=a[td.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(a[td.schemaDefSymbol]={kind:Xi.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:Xi.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:Xi.Kind.NAMED_TYPE,name:{kind:Xi.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let f=typeof t.sort=="function"?t.sort:yS.defaultStringComparator;o.sort((y,I)=>{var v,w;return f((v=y.name)==null?void 0:v.value,(w=I.name)==null?void 0:w.value)})}return o}id.mergeGraphQLTypes=fM});var NM=F(Br=>{"use strict";m();T();N();Object.defineProperty(Br,"__esModule",{value:!0});var si=(cO(),Fm(uO));si.__exportStar(oS(),Br);si.__exportStar(Wi(),Br);si.__exportStar(uS(),Br);si.__exportStar(cS(),Br);si.__exportStar(ef(),Br);si.__exportStar(dS(),Br);si.__exportStar(pS(),Br);si.__exportStar(tf(),Br);si.__exportStar(hS(),Br);si.__exportStar(mM(),Br);si.__exportStar(mS(),Br);si.__exportStar(fS(),Br);si.__exportStar(TS(),Br);si.__exportStar(NE(),Br)});var EM=F(Au=>{"use strict";m();T();N();Object.defineProperty(Au,"__esModule",{value:!0});Au.applyExtensions=Au.mergeExtensions=Au.extractExtensionsFromSchema=void 0;var TM=ya(),Hre=ya();Object.defineProperty(Au,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Hre.extractExtensionsFromSchema}});function zre(e){return(0,TM.mergeDeep)(e)}Au.mergeExtensions=zre;function ad(e,t){e&&(e.extensions=(0,TM.mergeDeep)([e.extensions||{},t||{}]))}function Wre(e,t){ad(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(ad(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){ad(c,o.extensions);for(let[l,d]of Object.entries(o.arguments))ad(c.args.find(f=>f.name===l),d)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];ad(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);ad(c,o)}}}return e}Au.applyExtensions=Wre});var vE=F(rf=>{"use strict";m();T();N();Object.defineProperty(rf,"__esModule",{value:!0});var IS=(cO(),Fm(uO));IS.__exportStar(iM(),rf);IS.__exportStar(NM(),rf);IS.__exportStar(EM(),rf)});var Gi=F(z=>{"use strict";m();T();N();Object.defineProperty(z,"__esModule",{value:!0});z.semanticNonNullArgumentErrorMessage=z.invalidEventProviderIdErrorMessage=z.invalidNatsStreamConfigurationDefinitionErrorMessage=z.invalidEdfsPublishResultObjectErrorMessage=z.invalidNatsStreamInputErrorMessage=z.inlineFragmentInFieldSetErrorMessage=z.inaccessibleQueryRootTypeError=z.subgraphValidationFailureError=z.minimumSubgraphRequirementError=void 0;z.multipleNamedTypeDefinitionError=eie;z.incompatibleInputValueDefaultValueTypeError=tie;z.incompatibleMergedTypesError=nie;z.incompatibleInputValueDefaultValuesError=rie;z.incompatibleSharedEnumError=iie;z.invalidSubgraphNamesError=aie;z.duplicateDirectiveDefinitionError=sie;z.duplicateEnumValueDefinitionError=oie;z.duplicateFieldDefinitionError=uie;z.duplicateInputFieldDefinitionError=cie;z.duplicateImplementedInterfaceError=lie;z.duplicateUnionMemberDefinitionError=die;z.duplicateTypeDefinitionError=pie;z.duplicateOperationTypeDefinitionError=fie;z.noBaseDefinitionForExtensionError=mie;z.noBaseScalarDefinitionError=Nie;z.noDefinedUnionMembersError=Tie;z.noDefinedEnumValuesError=Eie;z.operationDefinitionError=hie;z.invalidFieldShareabilityError=yie;z.undefinedDirectiveError=Iie;z.undefinedTypeError=gie;z.invalidRepeatedDirectiveErrorMessage=_ie;z.invalidDirectiveError=vie;z.invalidRepeatedFederatedDirectiveErrorMessage=Oie;z.invalidDirectiveLocationErrorMessage=Sie;z.undefinedRequiredArgumentsErrorMessage=Die;z.unexpectedDirectiveArgumentErrorMessage=bie;z.duplicateDirectiveArgumentDefinitionsErrorMessage=Aie;z.invalidArgumentValueErrorMessage=Rie;z.maximumTypeNestingExceededError=Pie;z.unexpectedKindFatalError=Fie;z.incompatibleParentKindFatalError=wie;z.unexpectedEdgeFatalError=Lie;z.incompatibleParentTypeMergeError=Bie;z.unexpectedTypeNodeKindFatalError=Uie;z.invalidKeyFatalError=kie;z.unexpectedParentKindForChildError=Mie;z.subgraphValidationError=xie;z.invalidSubgraphNameErrorMessage=qie;z.invalidOperationTypeDefinitionError=Vie;z.invalidRootTypeDefinitionError=jie;z.subgraphInvalidSyntaxError=Kie;z.invalidInterfaceImplementationError=Gie;z.invalidRequiredInputValueError=$ie;z.duplicateArgumentsError=Qie;z.noQueryRootTypeError=Yie;z.expectedEntityError=Jie;z.abstractTypeInKeyFieldSetErrorMessage=Hie;z.unknownTypeInFieldSetErrorMessage=zie;z.invalidSelectionSetErrorMessage=Wie;z.invalidSelectionSetDefinitionErrorMessage=Xie;z.undefinedFieldInFieldSetErrorMessage=Zie;z.unparsableFieldSetErrorMessage=eae;z.unparsableFieldSetSelectionErrorMessage=tae;z.undefinedCompositeOutputTypeError=nae;z.unexpectedArgumentErrorMessage=rae;z.argumentsInKeyFieldSetErrorMessage=iae;z.invalidProvidesOrRequiresDirectivesError=aae;z.duplicateFieldInFieldSetErrorMessage=sae;z.invalidConfigurationDataErrorMessage=oae;z.incompatibleTypeWithProvidesErrorMessage=uae;z.invalidInlineFragmentTypeErrorMessage=cae;z.inlineFragmentWithoutTypeConditionErrorMessage=lae;z.unknownInlineFragmentTypeConditionErrorMessage=dae;z.invalidInlineFragmentTypeConditionTypeErrorMessage=pae;z.invalidInlineFragmentTypeConditionErrorMessage=fae;z.invalidSelectionOnUnionErrorMessage=mae;z.duplicateOverriddenFieldErrorMessage=Nae;z.duplicateOverriddenFieldsError=Tae;z.noFieldDefinitionsError=Eae;z.noInputValueDefinitionsError=hae;z.allChildDefinitionsAreInaccessibleError=yae;z.equivalentSourceAndTargetOverrideErrorMessage=Iae;z.undefinedEntityInterfaceImplementationsError=gae;z.orScopesLimitError=_ae;z.invalidEventDrivenGraphError=vae;z.invalidRootTypeFieldEventsDirectivesErrorMessage=Oae;z.invalidEventDrivenMutationResponseTypeErrorMessage=Sae;z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=Dae;z.invalidNatsStreamInputFieldsErrorMessage=bae;z.invalidKeyFieldSetsEventDrivenErrorMessage=Aae;z.nonExternalKeyFieldNamesEventDrivenErrorMessage=Rae;z.nonKeyFieldNamesEventDrivenErrorMessage=Pae;z.nonEntityObjectExtensionsEventDrivenErrorMessage=Fae;z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=wae;z.invalidEdfsDirectiveName=Lae;z.invalidImplementedTypeError=Cae;z.selfImplementationError=Bae;z.invalidEventSubjectErrorMessage=Uae;z.invalidEventSubjectsErrorMessage=kae;z.invalidEventSubjectsItemErrorMessage=Mae;z.invalidEventSubjectsArgumentErrorMessage=xae;z.undefinedEventSubjectsArgumentErrorMessage=qae;z.invalidEventDirectiveError=Vae;z.invalidReferencesOfInaccessibleTypeError=jae;z.inaccessibleRequiredInputValueError=Kae;z.invalidUnionMemberTypeError=Gae;z.invalidRootTypeError=$ae;z.invalidSubscriptionFilterLocationError=Qae;z.invalidSubscriptionFilterDirectiveError=Yae;z.subscriptionFilterNamedTypeErrorMessage=Jae;z.subscriptionFilterConditionDepthExceededErrorMessage=Hae;z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=zae;z.subscriptionFilterConditionInvalidInputFieldErrorMessage=Wae;z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Xae;z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=Zae;z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=ese;z.invalidInputFieldTypeErrorMessage=tse;z.subscriptionFieldConditionInvalidInputFieldErrorMessage=nse;z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=rse;z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=ise;z.unknownFieldSubgraphNameError=ase;z.invalidSubscriptionFieldConditionFieldPathErrorMessage=sse;z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=ose;z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=use;z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=cse;z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=lse;z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=dse;z.unresolvablePathError=pse;z.allExternalFieldInstancesError=fse;z.externalInterfaceFieldsError=mse;z.nonExternalConditionalFieldError=Nse;z.incompatibleFederatedFieldNamedTypeError=Tse;z.unknownNamedTypeErrorMessage=vM;z.unknownNamedTypeError=Ese;z.unknownFieldDataError=hse;z.unexpectedNonCompositeOutputTypeError=yse;z.invalidExternalDirectiveError=Ise;z.configureDescriptionNoDescriptionError=gse;z.configureDescriptionPropagationError=_se;z.duplicateDirectiveDefinitionArgumentErrorMessage=vse;z.duplicateDirectiveDefinitionLocationErrorMessage=Ose;z.invalidDirectiveDefinitionLocationErrorMessage=Sse;z.invalidDirectiveDefinitionError=Dse;z.fieldAlreadyProvidedErrorMessage=bse;z.invalidInterfaceObjectImplementationDefinitionsError=Ase;z.invalidNamedTypeError=Rse;z.semanticNonNullLevelsNaNIndexErrorMessage=Pse;z.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=Fse;z.semanticNonNullLevelsNonNullErrorMessage=wse;z.semanticNonNullInconsistentLevelsError=Lse;z.oneOfRequiredFieldsError=Cse;var hM=Oe(),He=sr(),yM=Cl(),Pc=Fr(),Xre=kl(),Zre=vE();z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function eie(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 tie(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 nie({actualType:e,coords:t,expectedType:n,isArgument:r}){return new Error(`Incompatible types when merging two instances of ${r?"field argument":He.FIELD} "${t}": - Expected type "${n}" but received "${e}".`)}function rie(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". + ${n}`)}function _re(e,t){return t?(gre(e,t),Q(M({},e),{locations:[...t.locations,...e.locations.filter(n=>!hre(n,t.locations))]})):e}zl.mergeDirective=_re;function vre(e,t,n){return e.concat(t.filter(r=>n(r,e)))}});var IS=w(YT=>{"use strict";m();T();N();Object.defineProperty(YT,"__esModule",{value:!0});YT.mergeEnumValues=void 0;var Ore=Hi(),Sre=ya();function Dre(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,Ore.mergeDirectives)(o.directives,l.directives,r)}else i.set(c,o)}let a=[...i.values()];return n&&n.sort&&a.sort(Sre.compareNodes),a}YT.mergeEnumValues=Dre});var gS=w(JT=>{"use strict";m();T();N();Object.defineProperty(JT,"__esModule",{value:!0});JT.mergeEnum=void 0;var bre=Oe(),Are=Hi(),Rre=IS();function Pre(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,Are.mergeDirectives)(e.directives,t.directives,n,r),values:(0,Rre.mergeEnumValues)(e.values,t.values,n)}:n!=null&&n.convertExtensions?Q(M({},e),{kind:bre.Kind.ENUM_TYPE_DEFINITION}):e}JT.mergeEnum=Pre});var HT=w(Kn=>{"use strict";m();T();N();Object.defineProperty(Kn,"__esModule",{value:!0});Kn.defaultStringComparator=Kn.CompareVal=Kn.printTypeNode=Kn.isNonNullTypeNode=Kn.isListTypeNode=Kn.isWrappingTypeNode=Kn.extractType=Kn.isSourceTypes=Kn.isStringTypes=void 0;var Zf=Oe();function Fre(e){return typeof e=="string"}Kn.isStringTypes=Fre;function wre(e){return e instanceof Zf.Source}Kn.isSourceTypes=wre;function Lre(e){let t=e;for(;t.kind===Zf.Kind.LIST_TYPE||t.kind==="NonNullType";)t=t.type;return t}Kn.extractType=Lre;function Cre(e){return e.kind!==Zf.Kind.NAMED_TYPE}Kn.isWrappingTypeNode=Cre;function RM(e){return e.kind===Zf.Kind.LIST_TYPE}Kn.isListTypeNode=RM;function PM(e){return e.kind===Zf.Kind.NON_NULL_TYPE}Kn.isNonNullTypeNode=PM;function _S(e){return RM(e)?`[${_S(e.type)}]`:PM(e)?`${_S(e.type)}!`:e.name.value}Kn.printTypeNode=_S;var Dc;(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"})(Dc=Kn.CompareVal||(Kn.CompareVal={}));function Bre(e,t){return e==null&&t==null?Dc.A_EQUALS_B:e==null?Dc.A_SMALLER_THAN_B:t==null?Dc.A_GREATER_THAN_B:et?Dc.A_GREATER_THAN_B:Dc.A_EQUALS_B}Kn.defaultStringComparator=Bre});var tp=w(zT=>{"use strict";m();T();N();Object.defineProperty(zT,"__esModule",{value:!0});zT.mergeFields=void 0;var ni=HT(),Ure=Hi(),kre=ya(),Mre=yS();function xre(e,t){let n=e.findIndex(r=>r.name.value===t.name.value);return[n>-1?e[n]:null,n]}function qre(e,t,n,r,i){let a=[];if(n!=null&&a.push(...n),t!=null)for(let o of t){let[c,l]=xre(a,o);if(c&&!(r!=null&&r.ignoreFieldConflicts)){let d=(r==null?void 0:r.onFieldTypeConflict)&&r.onFieldTypeConflict(c,o,e,r==null?void 0:r.throwOnConflict)||Vre(e,c,o,r==null?void 0:r.throwOnConflict);d.arguments=(0,Mre.mergeArguments)(o.arguments||[],c.arguments||[],r),d.directives=(0,Ure.mergeDirectives)(o.directives,c.directives,r,i),d.description=o.description||c.description,a[l]=d}else a.push(o)}if(r&&r.sort&&a.sort(kre.compareNodes),r&&r.exclusions){let o=r.exclusions;return a.filter(c=>!o.includes(`${e.name.value}.${c.name.value}`))}return a}zT.mergeFields=qre;function Vre(e,t,n,r=!1){let i=(0,ni.printTypeNode)(t.type),a=(0,ni.printTypeNode)(n.type);if(i!==a){let o=(0,ni.extractType)(t.type),c=(0,ni.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(!ep(t.type,n.type,!r))throw new Error(`Field '${e.name.value}.${t.name.value}' changed type from '${i}' to '${a}'`)}return(0,ni.isNonNullTypeNode)(n.type)&&!(0,ni.isNonNullTypeNode)(t.type)&&(t.type=n.type),t}function ep(e,t,n=!1){if(!(0,ni.isWrappingTypeNode)(e)&&!(0,ni.isWrappingTypeNode)(t))return e.toString()===t.toString();if((0,ni.isNonNullTypeNode)(t)){let r=(0,ni.isNonNullTypeNode)(e)?e.type:e;return ep(r,t.type)}return(0,ni.isNonNullTypeNode)(e)?ep(t,e,n):(0,ni.isListTypeNode)(e)?(0,ni.isListTypeNode)(t)&&ep(e.type,t.type)||(0,ni.isNonNullTypeNode)(t)&&ep(e,t.type):!1}});var vS=w(WT=>{"use strict";m();T();N();Object.defineProperty(WT,"__esModule",{value:!0});WT.mergeInputType=void 0;var jre=Oe(),Kre=tp(),Gre=Hi();function $re(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,Kre.mergeFields)(e,e.fields,t.fields,n),directives:(0,Gre.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?Q(M({},e),{kind:jre.Kind.INPUT_OBJECT_TYPE_DEFINITION}):e}WT.mergeInputType=$re});var np=w(XT=>{"use strict";m();T();N();Object.defineProperty(XT,"__esModule",{value:!0});XT.mergeNamedTypeArray=void 0;var Qre=ya();function Yre(e,t){return!!e.find(n=>n.name.value===t.name.value)}function Jre(e=[],t=[],n={}){let r=[...t,...e.filter(i=>!Yre(t,i))];return n&&n.sort&&r.sort(Qre.compareNodes),r}XT.mergeNamedTypeArray=Jre});var OS=w(ZT=>{"use strict";m();T();N();Object.defineProperty(ZT,"__esModule",{value:!0});ZT.mergeInterface=void 0;var Hre=Oe(),zre=tp(),Wre=Hi(),Xre=np();function Zre(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,zre.mergeFields)(e,e.fields,t.fields,n),directives:(0,Wre.mergeDirectives)(e.directives,t.directives,n,r),interfaces:e.interfaces?(0,Xre.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?Q(M({},e),{kind:Hre.Kind.INTERFACE_TYPE_DEFINITION}):e}ZT.mergeInterface=Zre});var SS=w(eE=>{"use strict";m();T();N();Object.defineProperty(eE,"__esModule",{value:!0});eE.mergeType=void 0;var eie=Oe(),tie=tp(),nie=Hi(),rie=np();function iie(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,tie.mergeFields)(e,e.fields,t.fields,n),directives:(0,nie.mergeDirectives)(e.directives,t.directives,n,r),interfaces:(0,rie.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?Q(M({},e),{kind:eie.Kind.OBJECT_TYPE_DEFINITION}):e}eE.mergeType=iie});var DS=w(tE=>{"use strict";m();T();N();Object.defineProperty(tE,"__esModule",{value:!0});tE.mergeScalar=void 0;var aie=Oe(),sie=Hi();function oie(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,sie.mergeDirectives)(e.directives,t.directives,n,r)}:n!=null&&n.convertExtensions?Q(M({},e),{kind:aie.Kind.SCALAR_TYPE_DEFINITION}):e}tE.mergeScalar=oie});var AS=w(nE=>{"use strict";m();T();N();Object.defineProperty(nE,"__esModule",{value:!0});nE.mergeUnion=void 0;var bS=Oe(),uie=Hi(),cie=np();function lie(e,t,n,r){return t?{name:e.name,description:e.description||t.description,directives:(0,uie.mergeDirectives)(e.directives,t.directives,n,r),kind:n!=null&&n.convertExtensions||e.kind==="UnionTypeDefinition"||t.kind==="UnionTypeDefinition"?bS.Kind.UNION_TYPE_DEFINITION:bS.Kind.UNION_TYPE_EXTENSION,loc:e.loc,types:(0,cie.mergeNamedTypeArray)(e.types,t.types,n)}:n!=null&&n.convertExtensions?Q(M({},e),{kind:bS.Kind.UNION_TYPE_DEFINITION}):e}nE.mergeUnion=lie});var RS=w(bc=>{"use strict";m();T();N();Object.defineProperty(bc,"__esModule",{value:!0});bc.mergeSchemaDefs=bc.DEFAULT_OPERATION_TYPE_NAME_MAP=void 0;var rp=Oe(),die=Hi();bc.DEFAULT_OPERATION_TYPE_NAME_MAP={query:"Query",mutation:"Mutation",subscription:"Subscription"};function fie(e=[],t=[]){let n=[];for(let r in bc.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 pie(e,t,n,r){return t?{kind:e.kind===rp.Kind.SCHEMA_DEFINITION||t.kind===rp.Kind.SCHEMA_DEFINITION?rp.Kind.SCHEMA_DEFINITION:rp.Kind.SCHEMA_EXTENSION,description:e.description||t.description,directives:(0,die.mergeDirectives)(e.directives,t.directives,n,r),operationTypes:fie(e.operationTypes,t.operationTypes)}:n!=null&&n.convertExtensions?Q(M({},e),{kind:rp.Kind.SCHEMA_DEFINITION}):e}bc.mergeSchemaDefs=pie});var PS=w(Wa=>{"use strict";m();T();N();Object.defineProperty(Wa,"__esModule",{value:!0});Wa.mergeGraphQLNodes=Wa.isNamedDefinitionNode=Wa.schemaDefSymbol=void 0;var Vr=Oe(),mie=SS(),Nie=gS(),Tie=DS(),Eie=AS(),hie=vS(),yie=OS(),Iie=Hi(),gie=RS(),_ie=ya();Wa.schemaDefSymbol="SCHEMA_DEF_SYMBOL";function FM(e){return"name"in e}Wa.isNamedDefinitionNode=FM;function vie(e,t,n={}){var i,a,o;let r=n;for(let c of e)if(FM(c)){let l=(i=c.name)==null?void 0:i.value;if(t!=null&&t.commentDescriptions&&(0,_ie.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 Vr.Kind.OBJECT_TYPE_DEFINITION:case Vr.Kind.OBJECT_TYPE_EXTENSION:r[l]=(0,mie.mergeType)(c,r[l],t,n);break;case Vr.Kind.ENUM_TYPE_DEFINITION:case Vr.Kind.ENUM_TYPE_EXTENSION:r[l]=(0,Nie.mergeEnum)(c,r[l],t,n);break;case Vr.Kind.UNION_TYPE_DEFINITION:case Vr.Kind.UNION_TYPE_EXTENSION:r[l]=(0,Eie.mergeUnion)(c,r[l],t,n);break;case Vr.Kind.SCALAR_TYPE_DEFINITION:case Vr.Kind.SCALAR_TYPE_EXTENSION:r[l]=(0,Tie.mergeScalar)(c,r[l],t,n);break;case Vr.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Vr.Kind.INPUT_OBJECT_TYPE_EXTENSION:r[l]=(0,hie.mergeInputType)(c,r[l],t,n);break;case Vr.Kind.INTERFACE_TYPE_DEFINITION:case Vr.Kind.INTERFACE_TYPE_EXTENSION:r[l]=(0,yie.mergeInterface)(c,r[l],t,n);break;case Vr.Kind.DIRECTIVE_DEFINITION:r[l]=(0,Iie.mergeDirective)(c,r[l]);break}}else(c.kind===Vr.Kind.SCHEMA_DEFINITION||c.kind===Vr.Kind.SCHEMA_EXTENSION)&&(r[Wa.schemaDefSymbol]=(0,gie.mergeSchemaDefs)(c,r[Wa.schemaDefSymbol],t));return r}Wa.mergeGraphQLNodes=vie});var CM=w(ed=>{"use strict";m();T();N();Object.defineProperty(ed,"__esModule",{value:!0});ed.mergeGraphQLTypes=ed.mergeTypeDefs=void 0;var zi=Oe(),FS=HT(),Wl=PS(),Zl=ya(),wM=RS();function Oie(e,t){(0,Zl.resetComments)();let n={kind:zi.Kind.DOCUMENT,definitions:LM(e,M({useSchemaDefinition:!0,forceSchemaDefinition:!1,throwOnConflict:!1,commentDescriptions:!1},t))},r;return t!=null&&t.commentDescriptions?r=(0,Zl.printWithComments)(n):r=n,(0,Zl.resetComments)(),r}ed.mergeTypeDefs=Oie;function Xl(e,t,n=[],r=[],i=new Set){if(e&&!i.has(e))if(i.add(e),typeof e=="function")Xl(e(),t,n,r,i);else if(Array.isArray(e))for(let a of e)Xl(a,t,n,r,i);else if((0,zi.isSchema)(e)){let a=(0,Zl.getDocumentNodeFromSchema)(e,t);Xl(a.definitions,t,n,r,i)}else if((0,FS.isStringTypes)(e)||(0,FS.isSourceTypes)(e)){let a=(0,zi.parse)(e,t);Xl(a.definitions,t,n,r,i)}else if(typeof e=="object"&&(0,zi.isDefinitionNode)(e))e.kind===zi.Kind.DIRECTIVE_DEFINITION?n.push(e):r.push(e);else if((0,Zl.isDocumentNode)(e))Xl(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 LM(e,t){var c,l,d;(0,Zl.resetComments)();let{allDirectives:n,allNodes:r}=Xl(e,t),i=(0,Wl.mergeGraphQLNodes)(n,t),a=(0,Wl.mergeGraphQLNodes)(r,t,i);if(t!=null&&t.useSchemaDefinition){let p=a[Wl.schemaDefSymbol]||{kind:zi.Kind.SCHEMA_DEFINITION,operationTypes:[]},E=p.operationTypes;for(let I in wM.DEFAULT_OPERATION_TYPE_NAME_MAP)if(!E.find(A=>A.operation===I)){let A=wM.DEFAULT_OPERATION_TYPE_NAME_MAP[I],U=a[A];U!=null&&U.name!=null&&E.push({kind:zi.Kind.OPERATION_TYPE_DEFINITION,type:{kind:zi.Kind.NAMED_TYPE,name:U.name},operation:I})}((c=p==null?void 0:p.operationTypes)==null?void 0:c.length)!=null&&p.operationTypes.length>0&&(a[Wl.schemaDefSymbol]=p)}t!=null&&t.forceSchemaDefinition&&!((d=(l=a[Wl.schemaDefSymbol])==null?void 0:l.operationTypes)!=null&&d.length)&&(a[Wl.schemaDefSymbol]={kind:zi.Kind.SCHEMA_DEFINITION,operationTypes:[{kind:zi.Kind.OPERATION_TYPE_DEFINITION,operation:"query",type:{kind:zi.Kind.NAMED_TYPE,name:{kind:zi.Kind.NAME,value:"Query"}}}]});let o=Object.values(a);if(t!=null&&t.sort){let p=typeof t.sort=="function"?t.sort:FS.defaultStringComparator;o.sort((E,I)=>{var v,A;return p((v=E.name)==null?void 0:v.value,(A=I.name)==null?void 0:A.value)})}return o}ed.mergeGraphQLTypes=LM});var BM=w(wr=>{"use strict";m();T();N();Object.defineProperty(wr,"__esModule",{value:!0});var ri=($v(),wm(Gv));ri.__exportStar(yS(),wr);ri.__exportStar(Hi(),wr);ri.__exportStar(IS(),wr);ri.__exportStar(gS(),wr);ri.__exportStar(tp(),wr);ri.__exportStar(vS(),wr);ri.__exportStar(OS(),wr);ri.__exportStar(np(),wr);ri.__exportStar(PS(),wr);ri.__exportStar(CM(),wr);ri.__exportStar(DS(),wr);ri.__exportStar(SS(),wr);ri.__exportStar(AS(),wr);ri.__exportStar(HT(),wr)});var kM=w(Su=>{"use strict";m();T();N();Object.defineProperty(Su,"__esModule",{value:!0});Su.applyExtensions=Su.mergeExtensions=Su.extractExtensionsFromSchema=void 0;var UM=ya(),Sie=ya();Object.defineProperty(Su,"extractExtensionsFromSchema",{enumerable:!0,get:function(){return Sie.extractExtensionsFromSchema}});function Die(e){return(0,UM.mergeDeep)(e)}Su.mergeExtensions=Die;function td(e,t){e&&(e.extensions=(0,UM.mergeDeep)([e.extensions||{},t||{}]))}function bie(e,t){td(e,t.schemaExtensions);for(let[n,r]of Object.entries(t.types||{})){let i=e.getType(n);if(i){if(td(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){td(c,o.extensions);for(let[l,d]of Object.entries(o.arguments))td(c.args.find(p=>p.name===l),d)}}else if(r.type==="input")for(let[a,o]of Object.entries(r.fields)){let c=i.getFields()[a];td(c,o.extensions)}else if(r.type==="enum")for(let[a,o]of Object.entries(r.values)){let c=i.getValue(a);td(c,o)}}}return e}Su.applyExtensions=bie});var rE=w(ip=>{"use strict";m();T();N();Object.defineProperty(ip,"__esModule",{value:!0});var wS=($v(),wm(Gv));wS.__exportStar(OM(),ip);wS.__exportStar(BM(),ip);wS.__exportStar(kM(),ip)});var qi=w(z=>{"use strict";m();T();N();Object.defineProperty(z,"__esModule",{value:!0});z.semanticNonNullArgumentErrorMessage=z.invalidEventProviderIdErrorMessage=z.invalidNatsStreamConfigurationDefinitionErrorMessage=z.invalidEdfsPublishResultObjectErrorMessage=z.invalidNatsStreamInputErrorMessage=z.inlineFragmentInFieldSetErrorMessage=z.inaccessibleQueryRootTypeError=z.subgraphValidationFailureError=z.minimumSubgraphRequirementError=void 0;z.multipleNamedTypeDefinitionError=Pie;z.incompatibleInputValueDefaultValueTypeError=Fie;z.incompatibleMergedTypesError=wie;z.incompatibleInputValueDefaultValuesError=Lie;z.incompatibleSharedEnumError=Cie;z.invalidSubgraphNamesError=Bie;z.duplicateDirectiveDefinitionError=Uie;z.duplicateEnumValueDefinitionError=kie;z.duplicateFieldDefinitionError=Mie;z.duplicateInputFieldDefinitionError=xie;z.duplicateImplementedInterfaceError=qie;z.duplicateUnionMemberDefinitionError=Vie;z.duplicateTypeDefinitionError=jie;z.duplicateOperationTypeDefinitionError=Kie;z.noBaseDefinitionForExtensionError=Gie;z.noBaseScalarDefinitionError=$ie;z.noDefinedUnionMembersError=Qie;z.noDefinedEnumValuesError=Yie;z.operationDefinitionError=Jie;z.invalidFieldShareabilityError=Hie;z.undefinedDirectiveError=zie;z.undefinedTypeError=Wie;z.invalidRepeatedDirectiveErrorMessage=Xie;z.invalidDirectiveError=Zie;z.invalidRepeatedFederatedDirectiveErrorMessage=eae;z.invalidDirectiveLocationErrorMessage=tae;z.undefinedRequiredArgumentsErrorMessage=nae;z.unexpectedDirectiveArgumentErrorMessage=rae;z.duplicateDirectiveArgumentDefinitionsErrorMessage=iae;z.invalidArgumentValueErrorMessage=aae;z.maximumTypeNestingExceededError=sae;z.unexpectedKindFatalError=oae;z.incompatibleParentKindFatalError=uae;z.unexpectedEdgeFatalError=cae;z.incompatibleParentTypeMergeError=dae;z.unexpectedTypeNodeKindFatalError=fae;z.invalidKeyFatalError=pae;z.unexpectedParentKindForChildError=mae;z.subgraphValidationError=Nae;z.invalidSubgraphNameErrorMessage=Tae;z.invalidOperationTypeDefinitionError=Eae;z.invalidRootTypeDefinitionError=hae;z.subgraphInvalidSyntaxError=yae;z.invalidInterfaceImplementationError=Iae;z.invalidRequiredInputValueError=gae;z.duplicateArgumentsError=_ae;z.noQueryRootTypeError=vae;z.expectedEntityError=Oae;z.abstractTypeInKeyFieldSetErrorMessage=Sae;z.unknownTypeInFieldSetErrorMessage=Dae;z.invalidSelectionSetErrorMessage=bae;z.invalidSelectionSetDefinitionErrorMessage=Aae;z.undefinedFieldInFieldSetErrorMessage=Rae;z.unparsableFieldSetErrorMessage=Pae;z.unparsableFieldSetSelectionErrorMessage=Fae;z.undefinedCompositeOutputTypeError=wae;z.unexpectedArgumentErrorMessage=Lae;z.argumentsInKeyFieldSetErrorMessage=Cae;z.invalidProvidesOrRequiresDirectivesError=Bae;z.duplicateFieldInFieldSetErrorMessage=Uae;z.invalidConfigurationDataErrorMessage=kae;z.incompatibleTypeWithProvidesErrorMessage=Mae;z.invalidInlineFragmentTypeErrorMessage=xae;z.inlineFragmentWithoutTypeConditionErrorMessage=qae;z.unknownInlineFragmentTypeConditionErrorMessage=Vae;z.invalidInlineFragmentTypeConditionTypeErrorMessage=jae;z.invalidInlineFragmentTypeConditionErrorMessage=Kae;z.invalidSelectionOnUnionErrorMessage=Gae;z.duplicateOverriddenFieldErrorMessage=$ae;z.duplicateOverriddenFieldsError=Qae;z.noFieldDefinitionsError=Yae;z.noInputValueDefinitionsError=Jae;z.allChildDefinitionsAreInaccessibleError=Hae;z.equivalentSourceAndTargetOverrideErrorMessage=zae;z.undefinedEntityInterfaceImplementationsError=Wae;z.orScopesLimitError=Xae;z.invalidEventDrivenGraphError=Zae;z.invalidRootTypeFieldEventsDirectivesErrorMessage=ese;z.invalidEventDrivenMutationResponseTypeErrorMessage=tse;z.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage=nse;z.invalidNatsStreamInputFieldsErrorMessage=rse;z.invalidKeyFieldSetsEventDrivenErrorMessage=ise;z.nonExternalKeyFieldNamesEventDrivenErrorMessage=ase;z.nonKeyFieldNamesEventDrivenErrorMessage=sse;z.nonEntityObjectExtensionsEventDrivenErrorMessage=ose;z.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage=use;z.invalidEdfsDirectiveName=cse;z.invalidImplementedTypeError=lse;z.selfImplementationError=dse;z.invalidEventSubjectErrorMessage=fse;z.invalidEventSubjectsErrorMessage=pse;z.invalidEventSubjectsItemErrorMessage=mse;z.invalidEventSubjectsArgumentErrorMessage=Nse;z.undefinedEventSubjectsArgumentErrorMessage=Tse;z.invalidEventDirectiveError=Ese;z.invalidReferencesOfInaccessibleTypeError=hse;z.inaccessibleRequiredInputValueError=yse;z.invalidUnionMemberTypeError=Ise;z.invalidRootTypeError=gse;z.invalidSubscriptionFilterLocationError=_se;z.invalidSubscriptionFilterDirectiveError=vse;z.subscriptionFilterNamedTypeErrorMessage=Ose;z.subscriptionFilterConditionDepthExceededErrorMessage=Sse;z.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage=Dse;z.subscriptionFilterConditionInvalidInputFieldErrorMessage=bse;z.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage=Ase;z.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage=Rse;z.subscriptionFilterArrayConditionInvalidLengthErrorMessage=Pse;z.invalidInputFieldTypeErrorMessage=Fse;z.subscriptionFieldConditionInvalidInputFieldErrorMessage=wse;z.subscriptionFieldConditionInvalidValuesArrayErrorMessage=Lse;z.subscriptionFieldConditionEmptyValuesArrayErrorMessage=Cse;z.unknownFieldSubgraphNameError=Bse;z.invalidSubscriptionFieldConditionFieldPathErrorMessage=Use;z.invalidSubscriptionFieldConditionFieldPathParentErrorMessage=kse;z.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage=Mse;z.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage=xse;z.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage=qse;z.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage=Vse;z.unresolvablePathError=jse;z.allExternalFieldInstancesError=Kse;z.externalInterfaceFieldsError=Gse;z.nonExternalConditionalFieldError=$se;z.incompatibleFederatedFieldNamedTypeError=Qse;z.unknownNamedTypeErrorMessage=KM;z.unknownNamedTypeError=Yse;z.unknownFieldDataError=Jse;z.unexpectedNonCompositeOutputTypeError=Hse;z.invalidExternalDirectiveError=zse;z.configureDescriptionNoDescriptionError=Wse;z.configureDescriptionPropagationError=Xse;z.duplicateDirectiveDefinitionArgumentErrorMessage=Zse;z.duplicateDirectiveDefinitionLocationErrorMessage=eoe;z.invalidDirectiveDefinitionLocationErrorMessage=toe;z.invalidDirectiveDefinitionError=noe;z.fieldAlreadyProvidedErrorMessage=roe;z.invalidInterfaceObjectImplementationDefinitionsError=ioe;z.invalidNamedTypeError=aoe;z.semanticNonNullLevelsNaNIndexErrorMessage=soe;z.semanticNonNullLevelsIndexOutOfBoundsErrorMessage=ooe;z.semanticNonNullLevelsNonNullErrorMessage=uoe;z.semanticNonNullInconsistentLevelsError=coe;z.oneOfRequiredFieldsError=loe;var MM=Oe(),He=sr(),xM=Fl(),Ac=Rr(),Aie=Bl(),Rie=rE();z.minimumSubgraphRequirementError=new Error("At least one subgraph is required for federation.");function Pie(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 Fie(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 wie({actualType:e,coords:t,expectedType:n,isArgument:r}){return new Error(`Incompatible types when merging two instances of ${r?"field argument":He.FIELD} "${t}": + Expected type "${n}" but received "${e}".`)}function Lie(e,t,n,r,i){return new Error(`Expected the ${e} defined on path "${t}" to define the default value "${r}". "However, the default value "${i}" is defined in the following subgraph`+(n.length>1?"s":"")+`: "`+n.join(He.QUOTATION_JOIN)+`" -If an instance defines a default value, that default value must be consistently defined across all subgraphs.`)}function iie(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs.`)}function aie(e,t){let n="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(n+=` +If an instance defines a default value, that default value must be consistently defined across all subgraphs.`)}function Cie(e){return new Error(`Enum "${e}" was used as both an input and output but was inconsistently defined across inclusive subgraphs.`)}function Bie(e,t){let n="Subgraphs to be federated must each have a unique, non-empty name.";e.length>0&&(n+=` The following subgraph names are not unique: "`+e.join('", "')+'"');for(let r of t)n+=` - ${r}`;return new Error(n)}function sie(e){return new Error(`The directive "${e}" must only be defined once.`)}function oie(e,t){return new Error(`The Enum "${e}" must only define the Enum value definition "${t}" once.`)}function uie(e,t,n){return new Error(`The ${e} "${t}" must only define the field definition "${n}" once.`)}function cie(e,t){return new Error(`The Input Object "${e}" must only define the Input field definition "${t}" once.`)}function lie(e,t,n){return new Error(`The ${e} "${t}" must only implement the Interface "${n}" once.`)}function die(e,t){return new Error(`The Union "${e}" must only define the Union member "${t}" once.`)}function pie(e,t){return new Error(`The ${e} "${t}" must only be defined once.`)}function fie(e,t,n){return new Error(`The operation type "${e}" cannot be defined as "${t}" because it has already been defined as "${n}".`)}function mie(e,t){return new Error(`The ${e} "${t}" is an extension, but no base ${e} definition of "${t}" is defined in any subgraph.`)}function Nie(e){return new Error(`The Scalar extension "${e}" is invalid because no base Scalar definition of "${e} is defined in the subgraph.`)}function Tie(e){return new Error(`The Union "${e}" must define at least one Union member.`)}function Eie(e){return new Error(`The Enum "${e}" must define at least one Enum value.`)}function hie(e,t,n){return new Error(`Expected the response type "${e}" for operation "${t}" to be type Object but received "${n}.`)}function yie(e,t){let n=e.name,r=[];for(let[i,a]of e.fieldDataByName){if(!t.has(i))continue;let o=[],c=[];for(let[l,d]of a.isShareableBySubgraphName)d?o.push(l):c.push(l);o.length<1?r.push(` + ${r}`;return new Error(n)}function Uie(e){return new Error(`The directive "${e}" must only be defined once.`)}function kie(e,t){return new Error(`The Enum "${e}" must only define the Enum value definition "${t}" once.`)}function Mie(e,t,n){return new Error(`The ${e} "${t}" must only define the field definition "${n}" once.`)}function xie(e,t){return new Error(`The Input Object "${e}" must only define the Input field definition "${t}" once.`)}function qie(e,t,n){return new Error(`The ${e} "${t}" must only implement the Interface "${n}" once.`)}function Vie(e,t){return new Error(`The Union "${e}" must only define the Union member "${t}" once.`)}function jie(e,t){return new Error(`The ${e} "${t}" must only be defined once.`)}function Kie(e,t,n){return new Error(`The operation type "${e}" cannot be defined as "${t}" because it has already been defined as "${n}".`)}function Gie(e,t){return new Error(`The ${e} "${t}" is an extension, but no base ${e} definition of "${t}" is defined in any subgraph.`)}function $ie(e){return new Error(`The Scalar extension "${e}" is invalid because no base Scalar definition of "${e} is defined in the subgraph.`)}function Qie(e){return new Error(`The Union "${e}" must define at least one Union member.`)}function Yie(e){return new Error(`The Enum "${e}" must define at least one Enum value.`)}function Jie(e,t,n){return new Error(`Expected the response type "${e}" for operation "${t}" to be type Object but received "${n}.`)}function Hie(e,t){let n=e.name,r=[];for(let[i,a]of e.fieldDataByName){if(!t.has(i))continue;let o=[],c=[];for(let[l,d]of a.isShareableBySubgraphName)d?o.push(l):c.push(l);o.length<1?r.push(` The field "${i}" is defined in the following subgraphs: "${[...a.subgraphNames].join('", "')}". However, it is not declared "@shareable" in any of them.`):r.push(` The field "${i}" is defined and declared "@shareable" in the following subgraph`+(o.length>1?"s":"")+': "'+o.join(He.QUOTATION_JOIN)+`". However, it is not declared "@shareable" in the following subgraph`+(c.length>1?"s":"")+`: "${c.join(He.QUOTATION_JOIN)}".`)}return new Error(`The Object "${n}" defines the same fields in multiple subgraphs without the "@shareable" directive:${r.join(` -`)}`)}function Iie(e,t){return new Error(`The directive "@${e}" declared on coordinates "${t}" is not defined in the schema.`)}function gie(e){return new Error(` The type "${e}" was referenced in the schema, but it was never defined.`)}function _ie(e){return`The definition for the directive "@${e}" does not define it as repeatable, but it is declared more than once on these coordinates.`}function vie(e,t,n,r){return new Error(`The ${n} instance of the directive "@${e}" declared on coordinates "${t}" is invalid for the following reason`+(r.length>1?`s: +`)}`)}function zie(e,t){return new Error(`The directive "@${e}" declared on coordinates "${t}" is not defined in the schema.`)}function Wie(e){return new Error(` The type "${e}" was referenced in the schema, but it was never defined.`)}function Xie(e){return`The definition for the directive "@${e}" does not define it as repeatable, but it is declared more than once on these coordinates.`}function Zie(e,t,n,r){return new Error(`The ${n} instance of the directive "@${e}" declared on coordinates "${t}" is invalid for the following reason`+(r.length>1?`s: `:`: `)+r.join(` -`))}function Oie(e,t){return new Error(`The definition for the directive "@${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}function Sie(e,t){return` The definition for "@${e}" does not define "${t}" as a valid location.`}function Die(e,t,n){let r=` The definition for "@${e}" defines the following `+t.length+" required argument"+(t.length>1?"s: ":": ")+'"'+t.join('", "')+`". - However,`;return n.length<1?r+" no arguments are defined on this instance.":r+" the following required argument"+(n.length>1?"s are":" is")+' not defined on this instance: "'+n.join(He.QUOTATION_JOIN)+'".'}function bie(e,t){return` The definition for "@${e}" does not define the following argument`+(t.length>1?"s that are":" that is")+' provided: "'+t.join(He.QUOTATION_JOIN)+'".'}function Aie(e){return" The following argument"+(e.length>1?"s are":" is")+' defined more than once: "'+e.join(He.QUOTATION_JOIN)+'"'}function Rie(e,t,n,r){return` The value "${e}" provided to argument "${t}(${n}: ...)" is not a valid "${r}" type.`}function Pie(e){return new Error(` The type defined at path "${e}" has more than ${yM.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function Fie(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function wie(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,Pc.kindToNodeType)(t)} but received "${(0,Pc.kindToNodeType)(n)}".`)}function Lie(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: - " ${t.join(He.QUOTATION_JOIN)}".`)}var Cie='"Interface Object" (an "Object" type that also defines the "@interfaceObject" directive)';function Bie({existingData:e,incomingNodeType:t,incomingSubgraphName:n}){let r=[...e.subgraphNames],i=t?`"${t}"`:Cie;return new Error(` "${e.name}" is defined using incompatible types across subgraphs. It is defined as type "${(0,Pc.kindToNodeType)(e.kind)}" in subgraph`+(r.length>1?"s":"")+` "${r.join(He.QUOTATION_JOIN)}" but type ${i} in subgraph "${n}".`)}function Uie(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}function kie(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}z.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");function Mie(e,t,n,r,i){return new Error(` Expected "${e}" to be type "${t}" but received "${n}" when handling child "${r}" of type "${i}".`)}function xie(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: +`))}function eae(e,t){return new Error(`The definition for the directive "@${e}" does not define it as repeatable, but the directive has been declared on more than one instance of the type "${t}".`)}function tae(e,t){return` The definition for "@${e}" does not define "${t}" as a valid location.`}function nae(e,t,n){let r=` The definition for "@${e}" defines the following `+t.length+" required argument"+(t.length>1?"s: ":": ")+'"'+t.join('", "')+`". + However,`;return n.length<1?r+" no arguments are defined on this instance.":r+" the following required argument"+(n.length>1?"s are":" is")+' not defined on this instance: "'+n.join(He.QUOTATION_JOIN)+'".'}function rae(e,t){return` The definition for "@${e}" does not define the following argument`+(t.length>1?"s that are":" that is")+' provided: "'+t.join(He.QUOTATION_JOIN)+'".'}function iae(e){return" The following argument"+(e.length>1?"s are":" is")+' defined more than once: "'+e.join(He.QUOTATION_JOIN)+'"'}function aae(e,t,n,r){return` The value "${e}" provided to argument "${t}(${n}: ...)" is not a valid "${r}" type.`}function sae(e){return new Error(` The type defined at path "${e}" has more than ${xM.MAXIMUM_TYPE_NESTING} layers of nesting, or there is a cyclical error.`)}function oae(e){return new Error(`Fatal: Unexpected type for "${e}"`)}function uae(e,t,n){return new Error(`Fatal: Expected "${e}" to be type ${(0,Ac.kindToNodeType)(t)} but received "${(0,Ac.kindToNodeType)(n)}".`)}function cae(e,t){return new Error(`Fatal: The type "${e}" visited the following unexpected edge`+(t.length>1?"s":"")+`: + " ${t.join(He.QUOTATION_JOIN)}".`)}var lae='"Interface Object" (an "Object" type that also defines the "@interfaceObject" directive)';function dae({existingData:e,incomingNodeType:t,incomingSubgraphName:n}){let r=[...e.subgraphNames],i=t?`"${t}"`:lae;return new Error(` "${e.name}" is defined using incompatible types across subgraphs. It is defined as type "${(0,Ac.kindToNodeType)(e.kind)}" in subgraph`+(r.length>1?"s":"")+` "${r.join(He.QUOTATION_JOIN)}" but type ${i} in subgraph "${n}".`)}function fae(e){return new Error(`Fatal: Expected all constituent types at path "${e}" to be one of the following: "LIST_TYPE", "NAMED_TYPE", or "NON_NULL_TYPE".`)}function pae(e,t){return new Error(`Fatal: Expected key "${e}" to exist in the map "${t}".`)}z.subgraphValidationFailureError=new Error(" Fatal: Subgraph validation did not return a valid AST.");function mae(e,t,n,r,i){return new Error(` Expected "${e}" to be type "${t}" but received "${n}" when handling child "${r}" of type "${i}".`)}function Nae(e,t){return new Error(`The subgraph "${e}" could not be federated for the following reason`+(t.length>1?"s":"")+`: `+t.map(n=>n.message).join(` -`))}function qie(e,t){return`The ${(0,Pc.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function Vie(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${n}" operation. - If explicitly defined, each operation type must be a unique and valid Object type.`)}function jie(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${n}", which is the default (root) type name for the "${e}" operation. -For federation, it is only possible to use the default root types names ("Mutation", "Query", "Subscription") as operation definitions. No other definitions with these default root type names are valid.`)}function Kie(e){let t="The subgraph has syntax errors and could not be parsed.";return e&&(t+=` - The reason provided was: `+e.message),new Error(t)}function Gie(e,t,n){let r=[];for(let[i,a]of n){let o=` The implementation of Interface "${i}" by "${e}" is invalid because: +`))}function Tae(e,t){return`The ${(0,Ac.numberToOrdinal)(e+1)} subgraph in the array did not define a name. Consequently, any further errors will temporarily identify this subgraph as "${t}".`}function Eae(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, "${t}" was also used for the "${n}" operation. + If explicitly defined, each operation type must be a unique and valid Object type.`)}function hae(e,t,n){return new Error(`The schema definition defines the "${e}" operation as type "${t}". However, the schema also defines another type named "${n}", which is the default (root) type name for the "${e}" operation. +For federation, it is only possible to use the default root types names ("Mutation", "Query", "Subscription") as operation definitions. No other definitions with these default root type names are valid.`)}function yae(e){let t="The subgraph has syntax errors and could not be parsed.";return e&&(t+=` + The reason provided was: `+e.message),new Error(t)}function Iae(e,t,n){let r=[];for(let[i,a]of n){let o=` The implementation of Interface "${i}" by "${e}" is invalid because: `,c=a.unimplementedFields.length;c&&(o+=` The following field${c>1?"s are":" is"} not implemented: "`+a.unimplementedFields.join('", "')+`" -`);for(let[l,d]of a.invalidFieldImplementations){let f=d.unimplementedArguments.size,y=d.invalidImplementedArguments.length,I=d.invalidAdditionalArguments.size;if(o+=` The field "${l}" is invalid because: -`,f&&(o+=` The following argument${f>1?"s are":" is"} not implemented: "`+[...d.unimplementedArguments].join('", "')+`" -`),y){o+=` The following implemented argument${y>1?"s are":" is"} invalid: +`);for(let[l,d]of a.invalidFieldImplementations){let p=d.unimplementedArguments.size,E=d.invalidImplementedArguments.length,I=d.invalidAdditionalArguments.size;if(o+=` The field "${l}" is invalid because: +`,p&&(o+=` The following argument${p>1?"s are":" is"} not implemented: "`+[...d.unimplementedArguments].join('", "')+`" +`),E){o+=` The following implemented argument${E>1?"s are":" is"} invalid: `;for(let v of d.invalidImplementedArguments)o+=` The argument "${v.argumentName}" must define type "`+v.expectedType+`" and not "${v.actualType}" `}I&&(o+=` If a field from an Interface is implemented, any additional Arguments that were not defined on the original Interface field must be optional (nullable). `,o+=" The following additional argument"+(d.invalidAdditionalArguments.size>1?"s are":" is")+' not defined as optional: "'+[...d.invalidAdditionalArguments].join('", "')+`" @@ -267,87 +268,87 @@ For federation, it is only possible to use the default root types names ("Mutati Consequently, the Interface implementation cannot be satisfied. `)}r.push(o)}return new Error(`The ${t} "${e}" has the following Interface implementation errors: `+r.join(` -`))}function $ie(e,t,n,r=!0){let i=r?He.ARGUMENT:He.INPUT_FIELD,a=`The ${e} "${t}" could not be federated because: +`))}function gae(e,t,n,r=!0){let i=r?He.ARGUMENT:He.INPUT_FIELD,a=`The ${e} "${t}" could not be federated because: `;for(let o of n)a+=` The ${i} "${o.inputValueName}" is required in the following subgraph`+(o.requiredSubgraphs.length>1?"s":"")+': "'+o.requiredSubgraphs.join('", "')+`" However, the ${i} "${o.inputValueName}" is not defined in the following subgraph`+(o.missingSubgraphs.length>1?"s":"")+': "'+o.missingSubgraphs.join('", "')+`" If an ${i} is required on a ${e} in any one subgraph, it must be at least defined as optional on all other definitions of that ${e} in all other subgraphs. -`;return new Error(a)}function Qie(e,t){return new Error(`The field "${e}" is invalid because: +`;return new Error(a)}function _ae(e,t){return new Error(`The field "${e}" is invalid because: The following argument`+(t.length>1?"s are":" is")+' defined more than once: "'+t.join(He.QUOTATION_JOIN)+`" -`)}function Yie(e=!0){return new Error(`The ${e?"router":"client"} schema does not define at least one accessible query root type field after federation was completed, which is necessary for a federated graph to be valid. +`)}function vae(e=!0){return new Error(`The ${e?"router":"client"} schema does not define at least one accessible query root type field after federation was completed, which is necessary for a federated graph to be valid. For example: type Query { dummy: String - }`)}z.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared "@inaccessible".');function Jie(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}z.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function Hie(e,t,n,r){return` The following field set is invalid: + }`)}z.inaccessibleQueryRootTypeError=new Error('The root query type "Query" must be present in the client schema; consequently, it must not be declared "@inaccessible".');function Oae(e){return new Error(`Expected object "${e}" to define a "key" directive, but it defines no directives.`)}z.inlineFragmentInFieldSetErrorMessage=" Inline fragments are not currently supported within a field set argument.";function Sae(e,t,n,r){return` The following field set is invalid: "${e}" This is because "${t}" returns "${n}", which is type "${r}". - Fields that return abstract types (Interfaces and Unions) cannot be included in the field set of "@key" directives.`}function zie(e,t,n){return` The following field set is invalid: + Fields that return abstract types (Interfaces and Unions) cannot be included in the field set of "@key" directives.`}function Dae(e,t,n){return` The following field set is invalid: "${e}" - This is because "${t}" returns the unknown type "${n}".`}function Wie(e,t,n,r){return` The following field set is invalid: + This is because "${t}" returns the unknown type "${n}".`}function bae(e,t,n,r){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+OE(t,n,r)+` Composite types such as "${r}" types must define a selection set with at least one field selection.`}function Xie(e,t,n,r){return` The following field set is invalid: + This is because of the selection set corresponding to the `+iE(t,n,r)+` Composite types such as "${r}" types must define a selection set with at least one field selection.`}function Aae(e,t,n,r){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+OE(t,n,r)+` Non-composite types such as "${r}" cannot define a selection set.`}function Zie(e,t,n){return` The following field set is invalid: + This is because of the selection set corresponding to the `+iE(t,n,r)+` Non-composite types such as "${r}" cannot define a selection set.`}function Rae(e,t,n){return` The following field set is invalid: "${e}" This is because of the selection set corresponding to the field coordinates "${t}.${n}". - The type "${t}" does not define a field named "${n}".`}function eae(e,t){let n=` The following field set is invalid: + The type "${t}" does not define a field named "${n}".`}function Pae(e,t){let n=` The following field set is invalid: "${e}" The field set could not be parsed.`;return t&&(n+=` - The reason provided was: `+t.message),n}function tae(e,t){return` The following field set is invalid: + The reason provided was: `+t.message),n}function Fae(e,t){return` The following field set is invalid: "${e}" - This is because the selection set defined on "${t}" could not be parsed.`}function nae(e){return new Error(` Expected an object/interface or object/interface extension named "${e}" to exist.`)}function rae(e,t,n){return` The following field set is invalid: + This is because the selection set defined on "${t}" could not be parsed.`}function wae(e){return new Error(` Expected an object/interface or object/interface extension named "${e}" to exist.`)}function Lae(e,t,n){return` The following field set is invalid: "${e}" - This is because "${t}" does not define an argument named "${n}".`}function iae(e,t){return` The following field set is invalid: + This is because "${t}" does not define an argument named "${n}".`}function Cae(e,t){return` The following field set is invalid: "${e}" This is because "${t}" defines arguments. - Fields that define arguments cannot be included in the field set of @key directives.`}function aae(e,t){return new Error(`The following "${e}" directive`+(t.length>1?"s are":" is")+` invalid: + Fields that define arguments cannot be included in the field set of @key directives.`}function Bae(e,t){return new Error(`The following "${e}" directive`+(t.length>1?"s are":" is")+` invalid: `+t.join(` -`))}function sae(e,t){return` The following field set is invalid: +`))}function Uae(e,t){return` The following field set is invalid: "${e}" - This is because "${t}" was included in the field set more than once.`}function oae(e,t,n){return` Expected ConfigurationData to exist for type "${e}" when adding field "${t}" while validating field set "${n}".`}function uae(e,t){return` A "@provides" directive is declared on field "${e}". - However, the response type "${t}" is not an Object nor Interface.`}function gS(e,t,n=!1){return e.length<1?`enclosing type name "${t}". + This is because "${t}" was included in the field set more than once.`}function kae(e,t,n){return` Expected ConfigurationData to exist for type "${e}" when adding field "${t}" while validating field set "${n}".`}function Mae(e,t){return` A "@provides" directive is declared on field "${e}". + However, the response type "${t}" is not an Object nor Interface.`}function LS(e,t,n=!1){return e.length<1?`enclosing type name "${t}". `:`field coordinates "${e[e.length-1]}"`+(n?` that returns "${t}"`:"")+`. -`}function OE(e,t,n){return e.length<1?`enclosing type name "${t}", which is type "${n}". +`}function iE(e,t,n){return e.length<1?`enclosing type name "${t}", which is type "${n}". `:`field coordinates "${e[e.length-1]}" that returns "${t}", which is type "${n}". -`}function cae(e,t,n,r){return` The following field set is invalid: +`}function xae(e,t,n,r){return` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+gS(t,r,!0)+` However, "${r}" is not an abstract (Interface or Union) type. - Consequently, the only valid type condition at this selection set would be "${r}".`}function lae(e,t){return` The following field set is invalid: + This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+LS(t,r,!0)+` However, "${r}" is not an abstract (Interface or Union) type. + Consequently, the only valid type condition at this selection set would be "${r}".`}function qae(e,t){return` The following field set is invalid: "${e}" - This is because "${t}" defines an inline fragment without a type condition.`}function dae(e,t,n,r){return` The following field set is invalid: + This is because "${t}" defines an inline fragment without a type condition.`}function Vae(e,t,n,r){return` The following field set is invalid: "${e}" - This is because an inline fragment with the unknown type condition "${r}" is defined on the selection set corresponding to the `+gS(t,n)}function pae(e,t,n,r,i){return` The following field set is invalid: + This is because an inline fragment with the unknown type condition "${r}" is defined on the selection set corresponding to the `+LS(t,n)}function jae(e,t,n,r,i){return` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${r}" is defined on the selection set corresponding to the `+gS(t,n)+` However, "${r}" is type "${i}" when types "Interface" or "Object" would be expected.`}function fae(e,t,n,r,i){let a=` The following field set is invalid: + This is because an inline fragment with the type condition "${r}" is defined on the selection set corresponding to the `+LS(t,n)+` However, "${r}" is type "${i}" when types "Interface" or "Object" would be expected.`}function Kae(e,t,n,r,i){let a=` The following field set is invalid: "${e}" - This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+OE(t,i,r);return r===He.INTERFACE?a+` However, "${n}" does not implement "${i}"`:a+` However, "${n}" is not a member of "${i}".`}function mae(e,t,n){return` The following field set is invalid: + This is because an inline fragment with the type condition "${n}" is defined on the selection set corresponding to the `+iE(t,i,r);return r===He.INTERFACE?a+` However, "${n}" does not implement "${i}"`:a+` However, "${n}" is not a member of "${i}".`}function Gae(e,t,n){return` The following field set is invalid: "${e}" - This is because of the selection set corresponding to the `+OE(t,n,He.UNION)+` Union types such as "${n}" must define field selections (besides "__typename") on an inline fragment whose type condition corresponds to a constituent union member.`}function Nae(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(He.QUOTATION_JOIN)+'".'}function Tae(e){return new Error('The "@override" directive must only be declared on one single instance of a field. However, an "@override" directive was declared on more than one instance of the following field'+(e.length>1?"s":"")+': "'+e.join(He.QUOTATION_JOIN)+`". -`)}function Eae(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function hae(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function yae(e,t,n){return new Error(`The ${e} "${t}" is invalid because all its ${n} definitions are declared "@inaccessible".`)}function Iae(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function gae(e,t){let n=`Federation was unsuccessful because any one subgraph that defines a specific entity Interface must also define each and every entity Object that implements that entity Interface. + This is because of the selection set corresponding to the `+iE(t,n,He.UNION)+` Union types such as "${n}" must define field selections (besides "__typename") on an inline fragment whose type condition corresponds to a constituent union member.`}function $ae(e,t){return` The field "${e}" declares an @override directive in the following subgraphs: "`+t.join(He.QUOTATION_JOIN)+'".'}function Qae(e){return new Error('The "@override" directive must only be declared on one single instance of a field. However, an "@override" directive was declared on more than one instance of the following field'+(e.length>1?"s":"")+': "'+e.join(He.QUOTATION_JOIN)+`". +`)}function Yae(e,t){return new Error(`The ${e} "${t}" is invalid because it does not define any fields.`)}function Jae(e){return new Error(`The Input Object "${e}" is invalid because it does not define any input values.`)}function Hae(e,t,n){return new Error(`The ${e} "${t}" is invalid because all its ${n} definitions are declared "@inaccessible".`)}function zae(e,t){return`Cannot override field "${t}" because the source and target subgraph names are both "${e}"`}function Wae(e,t){let n=`Federation was unsuccessful because any one subgraph that defines a specific entity Interface must also define each and every entity Object that implements that entity Interface. Each entity Object must also explicitly define its implementation of the entity Interface. -`;for(let[r,i]of e){let o=(0,Pc.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entit`+(o.size>1?"ies":"y")+`: +`;for(let[r,i]of e){let o=(0,Ac.getOrThrowError)(t,r,"entityInterfaceFederationDataByTypeName").concreteTypeNames;n+=` Across all subgraphs, the entity interface "${r}" is implemented by the following entit`+(o.size>1?"ies":"y")+`: "`+Array.from(o).join(He.QUOTATION_JOIN)+`" However, the definition of at least one of these implementations is missing in a subgraph that defines the entity interface "${r}": -`;for(let{subgraphName:c,definedConcreteTypeNames:l}of i){let d=(0,Pc.getEntriesNotInHashSet)(o,l);n+=` Subgraph "${c}" does not define the following implementations: "`+d.join(He.QUOTATION_JOIN)+`" -`}}return new Error(n)}function _ae(e,t){return new Error(`The maximum number of OR scopes that can be defined by @requiresScopes on a single field is ${e}. However, the following coordinates attempt to define more: +`;for(let{subgraphName:c,definedConcreteTypeNames:l}of i){let d=(0,Ac.getEntriesNotInHashSet)(o,l);n+=` Subgraph "${c}" does not define the following implementations: "`+d.join(He.QUOTATION_JOIN)+`" +`}}return new Error(n)}function Xae(e,t){return new Error(`The maximum number of OR scopes that can be defined by @requiresScopes on a single field is ${e}. However, the following coordinates attempt to define more: "`+t.join(He.QUOTATION_JOIN)+`" -If you require more, please contact support.`)}function vae(e){return new Error(`An "Event Driven" graph\u2014a subgraph that defines event driven directives\u2014must not define any resolvers. +If you require more, please contact support.`)}function Zae(e){return new Error(`An "Event Driven" graph\u2014a subgraph that defines event driven directives\u2014must not define any resolvers. Consequently, any "@key" definitions must also include the "resolvable: false" argument. Moreover, only fields that compose part of an entity's (composite) key and are declared "@external" are permitted. `+e.join(` -`))}function Oae(e){let t=` Root type fields defined in an Event Driven graph must define a valid events directive: +`))}function ese(e){let t=` Root type fields defined in an Event Driven graph must define a valid events directive: Mutation type fields must define either a edfs publish or request directive." Query type fields must define "@edfs__natsRequest" Subscription type fields must define an edfs subscribe directive The following root field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)r.definesDirectives?t+=` The root field path "${n}" defines the following invalid events directive`+(r.invalidDirectiveNames.length>1?"s":"")+': "@'+r.invalidDirectiveNames.join('", "@')+`" `:t+=` The root field path "${n}" does not define any valid events directives. -`;return t}function Sae(e){let t=` Mutation type fields defined in an Event Driven graph must return the non-nullable type "edfs__PublishResult!", which has the following definition: +`;return t}function tse(e){let t=` Mutation type fields defined in an Event Driven graph must return the non-nullable type "edfs__PublishResult!", which has the following definition: type edfs__PublishResult { success: Boolean! } However, the following mutation field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)t+=` The mutation field path "${n}" returns "${r}". -`;return t}function Dae(e){let t=` The named response type of root type fields defined in an Event Driven graph must be a non-nullable, non-list named type that is either an entity, an interface implemented by an entity, or a union of which an entity is a member. +`;return t}function nse(e){let t=` The named response type of root type fields defined in an Event Driven graph must be a non-nullable, non-list named type that is either an entity, an interface implemented by an entity, or a union of which an entity is a member. Consequently, the following root field path`+(e.size>1?"s are":" is")+` invalid: `;for(let[n,r]of e)t+=` The root field path "${n}", which returns the invalid type "${r}" `;return t}z.invalidNatsStreamInputErrorMessage=`The "streamConfiguration" argument must be a valid input object with the following form: @@ -355,19 +356,19 @@ Moreover, only fields that compose part of an entity's (composite) key and are d consumerInactiveThreshold: Int! = 30 consumerName: String! streamName: String! - }`;function bae(e,t,n,r){let i=z.invalidNatsStreamInputErrorMessage,a=[];return e.length>0&&a.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(He.QUOTATION_JOIN)+'".'),t.length>0&&a.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(He.QUOTATION_JOIN)+'".'),n.length>0&&a.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(He.QUOTATION_JOIN)+'".'),r.length>0&&a.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(He.QUOTATION_JOIN)+'".'),i+=` + }`;function rse(e,t,n,r){let i=z.invalidNatsStreamInputErrorMessage,a=[];return e.length>0&&a.push("The following required field"+(e.length>1?"s were":" was")+' not defined: "'+e.join(He.QUOTATION_JOIN)+'".'),t.length>0&&a.push("The following required field"+(t.length>1?"s were":" was")+' defined more than once: "'+t.join(He.QUOTATION_JOIN)+'".'),n.length>0&&a.push("The following required field"+(n.length>1?"s were":" was")+' not type "String!" with a minimum length of 1: "'+n.join(He.QUOTATION_JOIN)+'".'),r.length>0&&a.push("The following field"+(r.length>1?"s are":" is")+' not part of a valid "edfs__NatsStreamConfiguration" input definition: "'+r.join(He.QUOTATION_JOIN)+'".'),i+=` However, the provided input was invalid for the following reason`+(a.length>1?"s":"")+`: `+a.join(` - `),i}function Aae(e=new Map){let t="";for(let[n,r]of e)t+=' The following "@key" field set'+(r.length>1?"s are":" is")+` defined on the entity "${n}" without a "resolvable: false" argument: + `),i}function ise(e=new Map){let t="";for(let[n,r]of e)t+=' The following "@key" field set'+(r.length>1?"s are":" is")+` defined on the entity "${n}" without a "resolvable: false" argument: "`+r.join(He.QUOTATION_JOIN)+`" -`;return t}function Rae(e){let t=" The following field"+(e.size>1?"s are referenced":" is referenced")+` within an entity "@key" field without an "@external" declaration: +`;return t}function ase(e){let t=" The following field"+(e.size>1?"s are referenced":" is referenced")+` within an entity "@key" field without an "@external" declaration: `;for(let[n,r]of e)t+=` field "${r}" defined on path "${n}" -`;return t}function Pae(e){let t=" The following field"+(e.size>1?"s are":" is")+` defined despite not composing part of a "@key" directive field set: +`;return t}function sse(e){let t=" The following field"+(e.size>1?"s are":" is")+` defined despite not composing part of a "@key" directive field set: `;for(let[n,r]of e)t+=` Field "${r}" defined on path "${n}" -`;return t}function Fae(e){return`Only root types and entities (objects that define one or more primary keys with the "@key" directive) may be defined as object extensions in an Event Driven graph. +`;return t}function ose(e){return`Only root types and entities (objects that define one or more primary keys with the "@key" directive) may be defined as object extensions in an Event Driven graph. Consequently, the following object extension definition`+(e.length>1?"s are":" is")+` invalid: "`+e.join(He.QUOTATION_JOIN)+`" -`}function wae(e){return` Only object definitions whose fields compose part of a "@key" directive's field set may be defined in an Event Driven graph. Consequently, the following object type definition`+(e.length>1?"s are":" is")+` invalid: +`}function use(e){return` Only object definitions whose fields compose part of a "@key" directive's field set may be defined in an Event Driven graph. Consequently, the following object type definition`+(e.length>1?"s are":" is")+` invalid: "`+e.join(He.QUOTATION_JOIN)+`" `}z.invalidEdfsPublishResultObjectErrorMessage=` The object "edfs__PublishResult" that was defined in the Event Driven graph is invalid and must instead have the following definition: type edfs__PublishResult { @@ -377,20 +378,20 @@ Consequently, the following object extension definition`+(e.length>1?"s are":" i consumerInactiveThreshold: Int! = 30 consumerName: String! streamName: String! - }`;function Lae(e){return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${e}".`)}function Cae(e,t){let n=` Only interfaces can be implemented. However, the type "${e}" attempts to implement the following invalid type`+(t.size>1?"s":"")+`: + }`;function cse(e){return new Error(`Could not retrieve definition for Event-Driven Federated Subscription directive "${e}".`)}function lse(e,t){let n=` Only interfaces can be implemented. However, the type "${e}" attempts to implement the following invalid type`+(t.size>1?"s":"")+`: `;for(let[r,i]of t)n+=` "${r}", which is type "${i}" -`;return new Error(n)}function Bae(e){return new Error(` The interface "${e}" must not implement itself.`)}function Uae(e){return`The "${e}" argument must be string with a minimum length of one.`}function kae(e){return`The "${e}" argument must be a list of strings.`}function Mae(e){return`Each item in the "${e}" argument list must be a string with a minimum length of one. However, at least one value provided in the list was invalid.`}function xae(e){return`An argument template references the invalid argument "${e}".`}function qae(e){return`An argument template references the undefined argument "${e}".`}z.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function Vae(e,t,n){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?"s":"")+`: +`;return new Error(n)}function dse(e){return new Error(` The interface "${e}" must not implement itself.`)}function fse(e){return`The "${e}" argument must be string with a minimum length of one.`}function pse(e){return`The "${e}" argument must be a list of strings.`}function mse(e){return`Each item in the "${e}" argument list must be a string with a minimum length of one. However, at least one value provided in the list was invalid.`}function Nse(e){return`An argument template references the invalid argument "${e}".`}function Tse(e){return`An argument template references the undefined argument "${e}".`}z.invalidEventProviderIdErrorMessage='If explicitly defined, the "providerId" argument must be a string with a minimum length of one.';function Ese(e,t,n){return new Error(`The event directive "${e}" declared on "${t}" is invalid for the following reason`+(n.length>1?"s":"")+`: `+n.join(` - `))}function jae(e,t,n){return new Error(`The ${e} "${t}" is declared "@inaccessible"; however, the ${e} is still referenced at the following paths: + `))}function hse(e,t,n){return new Error(`The ${e} "${t}" is declared "@inaccessible"; however, the ${e} is still referenced at the following paths: "`+n.join(He.QUOTATION_JOIN)+`" -`)}function Kae(e,t){return new Error(`The ${e.kind===hM.Kind.ARGUMENT?"argument":"Input field"} "${e.name}" defined at coordinates "${e.federatedCoords}" is declared "@inaccessible"; however, it is a required ${e.kind===hM.Kind.ARGUMENT?"argument of field":"field of Input Object"} "${t}".`)}function Gae(e,t){return new Error(` The union "${e}" defines the following member`+(t.length>1?"s that are not object types":" that is not an object type")+`: +`)}function yse(e,t){return new Error(`The ${e.kind===MM.Kind.ARGUMENT?"argument":"Input field"} "${e.name}" defined at coordinates "${e.federatedCoords}" is declared "@inaccessible"; however, it is a required ${e.kind===MM.Kind.ARGUMENT?"argument of field":"field of Input Object"} "${t}".`)}function Ise(e,t){return new Error(` The union "${e}" defines the following member`+(t.length>1?"s that are not object types":" that is not an object type")+`: `+t.join(` - `))}function $ae(e){return new Error(`Expected type "${e}" to be a root type but could not find its respective OperationTypeNode.`)}function Qae(e){return new Error(`The "@${He.SUBSCRIPTION_FILTER}" directive must only be defined on a subscription root field, but it was defined on the path "${e}".`)}function Yae(e,t){return new Error(`The "@${He.SUBSCRIPTION_FILTER}" directive defined on path "${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: + `))}function gse(e){return new Error(`Expected type "${e}" to be a root type but could not find its respective OperationTypeNode.`)}function _se(e){return new Error(`The "@${He.SUBSCRIPTION_FILTER}" directive must only be defined on a subscription root field, but it was defined on the path "${e}".`)}function vse(e,t){return new Error(`The "@${He.SUBSCRIPTION_FILTER}" directive defined on path "${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: `+t.join(` -`))}function Jae(e){return` Unknown type "${e}".`}function Hae(e){return` The input path "${e}" exceeds the maximum depth of ${yM.MAX_SUBSCRIPTION_FILTER_DEPTH} for any one filter condition. - If you require a larger maximum depth, please contact support.`}var IM=` Each "${He.SUBSCRIPTION_FILTER_CONDITION}" input object must define exactly one of the following input value fields: "${He.AND_UPPER}", "${He.IN_UPPER}", "${He.NOT_UPPER}", or "${He.OR_UPPER}". -`;function zae(e,t){return IM+` However, input path "${e}" defines ${t} fields.`}function Wae(e,t){return IM+` However, input path "${e}" defines the invalid input value field "${t}".`}function Xae(e,t,n){return` Expected the value of input path "${e}" to be type "${t}" but received type "${n}"`}var gM=` An AND or OR input field defined on a "${He.SUBSCRIPTION_FILTER_CONDITION}" should define a list of 1\u20135 nested conditions. -`;function Zae(e,t){let n=t.length>1;return gM+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+' not type "object": '+t.join(", ")}function ese(e,t){return gM+` However, the list defined on input path "${e}" has a length of ${t}.`}function tse(e,t,n){return` Expected the input path "${e}" to be type "${t}" but received "${n}".`}function nse(e,t,n,r,i){let a=` Each "${He.SUBSCRIPTION_FIELD_CONDITION}" input object must only define the following two input value fields: "${He.FIELD_PATH}" and "${He.VALUES}". +`))}function Ose(e){return` Unknown type "${e}".`}function Sse(e){return` The input path "${e}" exceeds the maximum depth of ${xM.MAX_SUBSCRIPTION_FILTER_DEPTH} for any one filter condition. + If you require a larger maximum depth, please contact support.`}var qM=` Each "${He.SUBSCRIPTION_FILTER_CONDITION}" input object must define exactly one of the following input value fields: "${He.AND_UPPER}", "${He.IN_UPPER}", "${He.NOT_UPPER}", or "${He.OR_UPPER}". +`;function Dse(e,t){return qM+` However, input path "${e}" defines ${t} fields.`}function bse(e,t){return qM+` However, input path "${e}" defines the invalid input value field "${t}".`}function Ase(e,t,n){return` Expected the value of input path "${e}" to be type "${t}" but received type "${n}"`}var VM=` An AND or OR input field defined on a "${He.SUBSCRIPTION_FILTER_CONDITION}" should define a list of 1\u20135 nested conditions. +`;function Rse(e,t){let n=t.length>1;return VM+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+' not type "object": '+t.join(", ")}function Pse(e,t){return VM+` However, the list defined on input path "${e}" has a length of ${t}.`}function Fse(e,t,n){return` Expected the input path "${e}" to be type "${t}" but received "${n}".`}function wse(e,t,n,r,i){let a=` Each "${He.SUBSCRIPTION_FIELD_CONDITION}" input object must only define the following two input value fields: "${He.FIELD_PATH}" and "${He.VALUES}". However, input path "${e}" is invalid because:`;return t.length>0&&(a+=` The following required field`+(t.length>1?"s are":" is")+` not defined: "`+t.join(He.QUOTATION_JOIN)+'"'),n.length>0&&(a+=` @@ -399,82 +400,82 @@ Consequently, the following object extension definition`+(e.length>1?"s are":" i The following invalid field`+(r.length>1?"s are":" is")+` defined: "`+r.join(He.QUOTATION_JOIN)+'"'),i.length>0&&(a+=` `+i.join(` - `)),a}var _M=` A "${He.SUBSCRIPTION_FIELD_CONDITION}" input object must define a "values" input value field with a list of at least one valid "${He.SUBSCRIPTION_FILTER_VALUE}" kind (boolean, enum, float, int, null, or string). -`;function rse(e,t){let n=t.length>1;return _M+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+` not a valid "${He.SUBSCRIPTION_FILTER_VALUE}": `+t.join(", ")}function ise(e){return _M+` However, the list defined on input path "${e}" is empty.`}function ase(e){return new Error(` Field "${e}" defined no subgraph names.`)}function sse(e,t){return` Input path "${e}" defines the value "${t}", which is not a period (.) delimited field path.`}function ose(e,t,n){return` Input path "${e}" defines the value "${t}". - However, "${n}" is not type "object"`}function use(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". - However, the path "${n}" is invalid because no field named "${r}" exists on type "${i}".`}function cse(e,t,n,r,i){return`Input path "${e}" defines the value "${t}". + `)),a}var jM=` A "${He.SUBSCRIPTION_FIELD_CONDITION}" input object must define a "values" input value field with a list of at least one valid "${He.SUBSCRIPTION_FILTER_VALUE}" kind (boolean, enum, float, int, null, or string). +`;function Lse(e,t){let n=t.length>1;return jM+" However, the following "+(n?"indices":"index")+` defined on input path "${e}" `+(n?"are":"is")+` not a valid "${He.SUBSCRIPTION_FILTER_VALUE}": `+t.join(", ")}function Cse(e){return jM+` However, the list defined on input path "${e}" is empty.`}function Bse(e){return new Error(` Field "${e}" defined no subgraph names.`)}function Use(e,t){return` Input path "${e}" defines the value "${t}", which is not a period (.) delimited field path.`}function kse(e,t,n){return` Input path "${e}" defines the value "${t}". + However, "${n}" is not type "object"`}function Mse(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". + However, the path "${n}" is invalid because no field named "${r}" exists on type "${i}".`}function xse(e,t,n,r,i){return`Input path "${e}" defines the value "${t}". However, only fields that are defined in the same graph as the "@${He.SUBSCRIPTION_FILTER}" directive can compose part of an "IN" condition's "fieldPath" input value field. - Consequently, the path "${n}" is invalid because field "${r}" is not defined in subgraph "${i}".`}function lse(e,t,n,r){return` Input path "${e}" defines the value "${t}". - The path segment "${n}" is invalid because it refers to "${r}", which is declared "@inaccessible".`}function dse(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". - However, the final field "${n}" is ${r} "${i}", which is not a leaf type; therefore, it requires further selections.`}function pse({fieldName:e,selectionSet:t},n){let r=`The field "${e}" is unresolvable at the following path: + Consequently, the path "${n}" is invalid because field "${r}" is not defined in subgraph "${i}".`}function qse(e,t,n,r){return` Input path "${e}" defines the value "${t}". + The path segment "${n}" is invalid because it refers to "${r}", which is declared "@inaccessible".`}function Vse(e,t,n,r,i){return` Input path "${e}" defines the value "${t}". + However, the final field "${n}" is ${r} "${i}", which is not a leaf type; therefore, it requires further selections.`}function jse({fieldName:e,selectionSet:t},n){let r=`The field "${e}" is unresolvable at the following path: ${t} This is because: - `+n.join(` - - `);return new Error(r)}function fse(e,t){let n=`The Object "${e}" is invalid because the following field definition`+(t.size>1?"s are":" is")+` declared "@external" on all instances of that field: + - `);return new Error(r)}function Kse(e,t){let n=`The Object "${e}" is invalid because the following field definition`+(t.size>1?"s are":" is")+` declared "@external" on all instances of that field: `;for(let[r,i]of t)n+=` "${r}" in subgraph`+(i.length>1?"s":"")+' "'+i.join(He.QUOTATION_JOIN)+`" -`;return n+='At least one instance of a field definition must always be resolvable (and therefore not declared "@external").',new Error(n)}function mse(e,t){return new Error(`The interface "${e}" is invalid because the following field definition`+(t.length>1?"s are":" is")+` declared "@external": +`;return n+='At least one instance of a field definition must always be resolvable (and therefore not declared "@external").',new Error(n)}function Gse(e,t){return new Error(`The interface "${e}" is invalid because the following field definition`+(t.length>1?"s are":" is")+` declared "@external": "`+t.join(He.QUOTATION_JOIN)+`" -Interface fields should not be declared "@external". This is because interface fields do not resolve directly, but the "@external" directive relates to whether a field instance can be resolved by the subgraph in which it is defined.`)}function Nse(e,t,n,r,i){return new Error(`The field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: +Interface fields should not be declared "@external". This is because interface fields do not resolve directly, but the "@external" directive relates to whether a field instance can be resolved by the subgraph in which it is defined.`)}function $se(e,t,n,r,i){return new Error(`The field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: "${r}". However, neither the field "${n}" nor any of its field set ancestors are declared "@external". -Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`)}function Tse(e,t){let n=[];for(let[r,i]of t){let a=[...i];n.push(` The named type "${r}" is returned by the following subgraph`+(a.length>1?"s":"")+': "'+a.join(He.QUOTATION_JOIN)+'".')}return new Error(`Each instance of a shared field must resolve identically across subgraphs. +Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`)}function Qse(e,t){let n=[];for(let[r,i]of t){let a=[...i];n.push(` The named type "${r}" is returned by the following subgraph`+(a.length>1?"s":"")+': "'+a.join(He.QUOTATION_JOIN)+'".')}return new Error(`Each instance of a shared field must resolve identically across subgraphs. The field "${e}" could not be federated due to incompatible types across subgraphs. The discrepancies are as follows: `+n.join(` -`))}function vM(e,t){return`The field "${e}" returns the unknown named type "${t}".`}function Ese(e,t){return new Error(vM(e,t))}function hse(e){return new Error(`Could not find FieldData for field "${e}" -.This should never happen. Please report this issue on GitHub.`)}function yse(e,t){return new Error(`Expected named type "${e}" to be a composite output type (Object or Interface) but received "${t}". -This should never happen. Please report this issue on GitHub.`)}function Ise(e){return new Error(`The Object field "${e}" is invalidly declared "@external". An Object field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" field set, or the field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`)}function gse(e,t){return new Error(`The "@openfed__configureDescription" directive defined on ${e} "${t}" is invalid because neither a description nor the "descriptionOverride" argument is defined.`)}function _se(e,t){return new Error(`The coordinates "${e}" declare "@openfed__configureDescription(propagate: true)" in the following subgraphs: +`))}function KM(e,t){return`The field "${e}" returns the unknown named type "${t}".`}function Yse(e,t){return new Error(KM(e,t))}function Jse(e){return new Error(`Could not find FieldData for field "${e}" +.This should never happen. Please report this issue on GitHub.`)}function Hse(e,t){return new Error(`Expected named type "${e}" to be a composite output type (Object or Interface) but received "${t}". +This should never happen. Please report this issue on GitHub.`)}function zse(e){return new Error(`The Object field "${e}" is invalidly declared "@external". An Object field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" field set, or the field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`)}function Wse(e,t){return new Error(`The "@openfed__configureDescription" directive defined on ${e} "${t}" is invalid because neither a description nor the "descriptionOverride" argument is defined.`)}function Xse(e,t){return new Error(`The coordinates "${e}" declare "@openfed__configureDescription(propagate: true)" in the following subgraphs: "`+t.join(He.QUOTATION_JOIN)+`" -A federated graph only supports a single description; consequently, only one subgraph may define argument "propagate" as true (this is the default value).`)}function vse(e){return"- The following argument"+(e.length>1?"s are":" is")+` defined more than once: - "`+e.join(He.QUOTATION_JOIN)+'"'}function Ose(e){return`- The location "${e}" is defined multiple times.`}function Sse(e){return`- "${e}" is not a valid directive location.`}function Dse(e,t){return new Error(`The directive definition for "@${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: -`+t.join(He.LITERAL_NEW_LINE)+'"')}function bse(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 Ase(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(He.QUOTATION_JOIN)+'"')}function Rse({data:e,namedTypeData:t,nodeType:n}){let r=(0,Xre.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,Zre.printTypeNode)(e.type)+`; however, ${(0,Pc.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}function Pse(e){return`Index "${e}" is not a valid integer.`}function Fse({maxIndex:e,typeString:t,value:n}){return`Index "${n}" is out of bounds for type ${t}; `+(e>0?`valid indices are 0-${e} inclusive.`:"the only valid index is 0.")}function wse({typeString:e,value:t}){return`Index "${t}" of type ${e} is non-null but must be nullable.`}z.semanticNonNullArgumentErrorMessage=`Argument "${He.LEVELS}" validation error.`;function Lse(e){let t=`${e.renamedParentTypeName}.${e.name}`,n=`The "@semanticNonNull" directive defined on field "${t}" is invalid due to inconsistent values provided to the "levels" argument across the following subgraphs: +A federated graph only supports a single description; consequently, only one subgraph may define argument "propagate" as true (this is the default value).`)}function Zse(e){return"- The following argument"+(e.length>1?"s are":" is")+` defined more than once: + "`+e.join(He.QUOTATION_JOIN)+'"'}function eoe(e){return`- The location "${e}" is defined multiple times.`}function toe(e){return`- "${e}" is not a valid directive location.`}function noe(e,t){return new Error(`The directive definition for "@${e}" is invalid for the following reason`+(t.length>1?"s":"")+`: +`+t.join(He.LITERAL_NEW_LINE)+'"')}function roe(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 ioe(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(He.QUOTATION_JOIN)+'"')}function aoe({data:e,namedTypeData:t,nodeType:n}){let r=(0,Aie.isFieldData)(e),i=r?`${e.originalParentTypeName}.${e.name}`:e.originalCoords;return new Error(`The ${n} "${i}" is invalid because it defines type `+(0,Rie.printTypeNode)(e.type)+`; however, ${(0,Ac.kindToNodeType)(t.kind)} "${t.name}" is not a valid `+(r?"output":"input")+" type.")}function soe(e){return`Index "${e}" is not a valid integer.`}function ooe({maxIndex:e,typeString:t,value:n}){return`Index "${n}" is out of bounds for type ${t}; `+(e>0?`valid indices are 0-${e} inclusive.`:"the only valid index is 0.")}function uoe({typeString:e,value:t}){return`Index "${t}" of type ${e} is non-null but must be nullable.`}z.semanticNonNullArgumentErrorMessage=`Argument "${He.LEVELS}" validation error.`;function coe(e){let t=`${e.renamedParentTypeName}.${e.name}`,n=`The "@semanticNonNull" directive defined on field "${t}" is invalid due to inconsistent values provided to the "levels" argument across the following subgraphs: `;for(let[r,i]of e.nullLevelsBySubgraphName)n+=` Subgraph "${r}" defines levels ${Array.from(i).sort((a,o)=>a-o)}. -`;return n+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(n)}function Cse({requiredFieldNames:e,typeName:t}){return new Error(`The "@oneOf" directive defined on Input Object "${t}" is invalid because all Input fields must be optional (nullable); however, the following Input field`+(e.length>1?"s are":" is")+' required (non-nullable): "'+e.join(He.QUOTATION_JOIN)+'".')}});var SM=F(OM=>{"use strict";m();T();N();Object.defineProperty(OM,"__esModule",{value:!0})});var DE=F(SE=>{"use strict";m();T();N();Object.defineProperty(SE,"__esModule",{value:!0});SE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;SE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var bE=F(hr=>{"use strict";m();T();N();Object.defineProperty(hr,"__esModule",{value:!0});hr.SUBSCRIPTION_FILTER_VALUE_DEFINITION=hr.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=hr.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=hr.SCOPE_SCALAR_DEFINITION=hr.LINK_PURPOSE_DEFINITION=hr.LINK_IMPORT_DEFINITION=hr.FIELD_SET_SCALAR_DEFINITION=hr.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=void 0;var en=Oe(),pn=Pr(),fn=sr(),Bse=DE();hr.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:en.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pn.stringToNameNode)(fn.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.CONSUMER_INACTIVE_THRESHOLD),type:{kind:en.Kind.NON_NULL_TYPE,type:(0,pn.stringToNamedTypeNode)(fn.INT_SCALAR)},defaultValue:{kind:en.Kind.INT,value:Bse.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}},{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.CONSUMER_NAME),type:{kind:en.Kind.NON_NULL_TYPE,type:(0,pn.stringToNamedTypeNode)(fn.STRING_SCALAR)}},{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.STREAM_NAME),type:{kind:en.Kind.NON_NULL_TYPE,type:(0,pn.stringToNamedTypeNode)(fn.STRING_SCALAR)}}]};hr.FIELD_SET_SCALAR_DEFINITION={kind:en.Kind.SCALAR_TYPE_DEFINITION,name:(0,pn.stringToNameNode)(fn.FIELD_SET_SCALAR)};hr.LINK_IMPORT_DEFINITION={kind:en.Kind.SCALAR_TYPE_DEFINITION,name:(0,pn.stringToNameNode)(fn.LINK_IMPORT)};hr.LINK_PURPOSE_DEFINITION={kind:en.Kind.ENUM_TYPE_DEFINITION,name:(0,pn.stringToNameNode)(fn.LINK_PURPOSE),values:[{directives:[],kind:en.Kind.ENUM_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.EXECUTION)},{directives:[],kind:en.Kind.ENUM_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.SECURITY)}]};hr.SCOPE_SCALAR_DEFINITION={kind:en.Kind.SCALAR_TYPE_DEFINITION,name:(0,pn.stringToNameNode)(fn.SCOPE_SCALAR)};hr.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.FIELD_PATH),type:{kind:en.Kind.NON_NULL_TYPE,type:(0,pn.stringToNamedTypeNode)(fn.STRING_SCALAR)}},{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.VALUES),type:{kind:en.Kind.NON_NULL_TYPE,type:{kind:en.Kind.LIST_TYPE,type:(0,pn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_VALUE)}}}],kind:en.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pn.stringToNameNode)(fn.SUBSCRIPTION_FIELD_CONDITION)};hr.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.AND_UPPER),type:{kind:en.Kind.LIST_TYPE,type:{kind:en.Kind.NON_NULL_TYPE,type:(0,pn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.IN_UPPER),type:(0,pn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FIELD_CONDITION)},{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.OR_UPPER),type:{kind:en.Kind.LIST_TYPE,type:{kind:en.Kind.NON_NULL_TYPE,type:(0,pn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:en.Kind.INPUT_VALUE_DEFINITION,name:(0,pn.stringToNameNode)(fn.NOT_UPPER),type:(0,pn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}],kind:en.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,pn.stringToNameNode)(fn.SUBSCRIPTION_FILTER_CONDITION)};hr.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:en.Kind.SCALAR_TYPE_DEFINITION,name:(0,pn.stringToNameNode)(fn.SUBSCRIPTION_FILTER_VALUE)}});var sd=F(Zn=>{"use strict";m();T();N();Object.defineProperty(Zn,"__esModule",{value:!0});Zn.CLIENT_PERSISTED_DIRECTIVE_NAMES=Zn.IGNORED_FEDERATED_TYPE_NAMES=Zn.DEPENDENCIES_BY_DIRECTIVE_NAME=Zn.COMPOSITE_OUTPUT_NODE_KINDS=Zn.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=Zn.SUBSCRIPTION_FILTER_INPUT_NAMES=Zn.STREAM_CONFIGURATION_FIELD_NAMES=Zn.EVENT_DIRECTIVE_NAMES=Zn.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var tt=sr(),AE=Oe(),Ia=bE();Zn.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([tt.ARGUMENT_DEFINITION_UPPER,tt.ENUM_UPPER,tt.ENUM_VALUE_UPPER,tt.FIELD_DEFINITION_UPPER,tt.INPUT_FIELD_DEFINITION_UPPER,tt.INPUT_OBJECT_UPPER,tt.INTERFACE_UPPER,tt.OBJECT_UPPER,tt.SCALAR_UPPER,tt.SCHEMA_UPPER,tt.UNION_UPPER]);Zn.EVENT_DIRECTIVE_NAMES=new Set([tt.EDFS_KAFKA_PUBLISH,tt.EDFS_KAFKA_SUBSCRIBE,tt.EDFS_NATS_PUBLISH,tt.EDFS_NATS_REQUEST,tt.EDFS_NATS_SUBSCRIBE,tt.EDFS_REDIS_PUBLISH,tt.EDFS_REDIS_SUBSCRIBE]);Zn.STREAM_CONFIGURATION_FIELD_NAMES=new Set([tt.CONSUMER_INACTIVE_THRESHOLD,tt.CONSUMER_NAME,tt.STREAM_NAME]);Zn.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([tt.AND_UPPER,tt.IN_UPPER,tt.NOT_UPPER,tt.OR_UPPER]);Zn.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([tt.AND_UPPER,tt.OR_UPPER]);Zn.COMPOSITE_OUTPUT_NODE_KINDS=new Set([AE.Kind.INTERFACE_TYPE_DEFINITION,AE.Kind.INTERFACE_TYPE_EXTENSION,AE.Kind.OBJECT_TYPE_DEFINITION,AE.Kind.OBJECT_TYPE_EXTENSION]);Zn.DEPENDENCIES_BY_DIRECTIVE_NAME=new Map([[tt.CONNECT_FIELD_RESOLVER,[Ia.FIELD_SET_SCALAR_DEFINITION]],[tt.EDFS_NATS_SUBSCRIBE,[Ia.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION]],[tt.KEY,[Ia.FIELD_SET_SCALAR_DEFINITION]],[tt.LINK,[Ia.LINK_IMPORT_DEFINITION,Ia.LINK_PURPOSE_DEFINITION]],[tt.PROVIDES,[Ia.FIELD_SET_SCALAR_DEFINITION]],[tt.REQUIRES,[Ia.FIELD_SET_SCALAR_DEFINITION]],[tt.REQUIRES_SCOPES,[Ia.SCOPE_SCALAR_DEFINITION]],[tt.SUBSCRIPTION_FILTER,[Ia.SUBSCRIPTION_FIELD_CONDITION_DEFINITION,Ia.SUBSCRIPTION_FILTER_CONDITION_DEFINITION,Ia.SUBSCRIPTION_FILTER_VALUE_DEFINITION]]]);Zn.IGNORED_FEDERATED_TYPE_NAMES=new Set([tt.BOOLEAN_SCALAR,tt.EDFS_NATS_STREAM_CONFIGURATION,tt.FIELD_SET_SCALAR,tt.ID_SCALAR,tt.INT_SCALAR,tt.FLOAT_SCALAR,tt.LINK_IMPORT,tt.LINK_PURPOSE,tt.STRING_SCALAR,tt.SUBSCRIPTION_FIELD_CONDITION,tt.SUBSCRIPTION_FILTER_CONDITION,tt.SUBSCRIPTION_FILTER_VALUE]);Zn.CLIENT_PERSISTED_DIRECTIVE_NAMES=new Set([tt.DEPRECATED,tt.ONE_OF,tt.SEMANTIC_NON_NULL])});var Zi=F((_S,DM)=>{"use strict";m();T();N();var af=function(e){return e&&e.Math===Math&&e};DM.exports=af(typeof globalThis=="object"&&globalThis)||af(typeof window=="object"&&window)||af(typeof self=="object"&&self)||af(typeof global=="object"&&global)||af(typeof _S=="object"&&_S)||function(){return this}()||Function("return this")()});var Bs=F((LRe,bM)=>{"use strict";m();T();N();bM.exports=function(e){try{return!!e()}catch(t){return!0}}});var Ru=F((kRe,AM)=>{"use strict";m();T();N();var Use=Bs();AM.exports=!Use(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var vS=F((VRe,RM)=>{"use strict";m();T();N();var kse=Bs();RM.exports=!kse(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Fc=F(($Re,PM)=>{"use strict";m();T();N();var Mse=vS(),RE=Function.prototype.call;PM.exports=Mse?RE.bind(RE):function(){return RE.apply(RE,arguments)}});var CM=F(LM=>{"use strict";m();T();N();var FM={}.propertyIsEnumerable,wM=Object.getOwnPropertyDescriptor,xse=wM&&!FM.call({1:2},1);LM.f=xse?function(t){var n=wM(this,t);return!!n&&n.enumerable}:FM});var OS=F((ZRe,BM)=>{"use strict";m();T();N();BM.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var gi=F((rPe,MM)=>{"use strict";m();T();N();var UM=vS(),kM=Function.prototype,SS=kM.call,qse=UM&&kM.bind.bind(SS,SS);MM.exports=UM?qse:function(e){return function(){return SS.apply(e,arguments)}}});var VM=F((oPe,qM)=>{"use strict";m();T();N();var xM=gi(),Vse=xM({}.toString),jse=xM("".slice);qM.exports=function(e){return jse(Vse(e),8,-1)}});var KM=F((dPe,jM)=>{"use strict";m();T();N();var Kse=gi(),Gse=Bs(),$se=VM(),DS=Object,Qse=Kse("".split);jM.exports=Gse(function(){return!DS("z").propertyIsEnumerable(0)})?function(e){return $se(e)==="String"?Qse(e,""):DS(e)}:DS});var bS=F((NPe,GM)=>{"use strict";m();T();N();GM.exports=function(e){return e==null}});var AS=F((yPe,$M)=>{"use strict";m();T();N();var Yse=bS(),Jse=TypeError;$M.exports=function(e){if(Yse(e))throw new Jse("Can't call method on "+e);return e}});var PE=F((vPe,QM)=>{"use strict";m();T();N();var Hse=KM(),zse=AS();QM.exports=function(e){return Hse(zse(e))}});var ga=F((bPe,YM)=>{"use strict";m();T();N();var RS=typeof document=="object"&&document.all;YM.exports=typeof RS=="undefined"&&RS!==void 0?function(e){return typeof e=="function"||e===RS}:function(e){return typeof e=="function"}});var od=F((FPe,JM)=>{"use strict";m();T();N();var Wse=ga();JM.exports=function(e){return typeof e=="object"?e!==null:Wse(e)}});var FE=F((BPe,HM)=>{"use strict";m();T();N();var PS=Zi(),Xse=ga(),Zse=function(e){return Xse(e)?e:void 0};HM.exports=function(e,t){return arguments.length<2?Zse(PS[e]):PS[e]&&PS[e][t]}});var WM=F((xPe,zM)=>{"use strict";m();T();N();var eoe=gi();zM.exports=eoe({}.isPrototypeOf)});var tx=F((KPe,ex)=>{"use strict";m();T();N();var toe=Zi(),XM=toe.navigator,ZM=XM&&XM.userAgent;ex.exports=ZM?String(ZM):""});var ux=F((YPe,ox)=>{"use strict";m();T();N();var sx=Zi(),FS=tx(),nx=sx.process,rx=sx.Deno,ix=nx&&nx.versions||rx&&rx.version,ax=ix&&ix.v8,_a,wE;ax&&(_a=ax.split("."),wE=_a[0]>0&&_a[0]<4?1:+(_a[0]+_a[1]));!wE&&FS&&(_a=FS.match(/Edge\/(\d+)/),(!_a||_a[1]>=74)&&(_a=FS.match(/Chrome\/(\d+)/),_a&&(wE=+_a[1])));ox.exports=wE});var wS=F((WPe,lx)=>{"use strict";m();T();N();var cx=ux(),noe=Bs(),roe=Zi(),ioe=roe.String;lx.exports=!!Object.getOwnPropertySymbols&&!noe(function(){var e=Symbol("symbol detection");return!ioe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cx&&cx<41})});var LS=F((tFe,dx)=>{"use strict";m();T();N();var aoe=wS();dx.exports=aoe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var CS=F((aFe,px)=>{"use strict";m();T();N();var soe=FE(),ooe=ga(),uoe=WM(),coe=LS(),loe=Object;px.exports=coe?function(e){return typeof e=="symbol"}:function(e){var t=soe("Symbol");return ooe(t)&&uoe(t.prototype,loe(e))}});var mx=F((cFe,fx)=>{"use strict";m();T();N();var doe=String;fx.exports=function(e){try{return doe(e)}catch(t){return"Object"}}});var LE=F((fFe,Nx)=>{"use strict";m();T();N();var poe=ga(),foe=mx(),moe=TypeError;Nx.exports=function(e){if(poe(e))return e;throw new moe(foe(e)+" is not a function")}});var BS=F((EFe,Tx)=>{"use strict";m();T();N();var Noe=LE(),Toe=bS();Tx.exports=function(e,t){var n=e[t];return Toe(n)?void 0:Noe(n)}});var hx=F((gFe,Ex)=>{"use strict";m();T();N();var US=Fc(),kS=ga(),MS=od(),Eoe=TypeError;Ex.exports=function(e,t){var n,r;if(t==="string"&&kS(n=e.toString)&&!MS(r=US(n,e))||kS(n=e.valueOf)&&!MS(r=US(n,e))||t!=="string"&&kS(n=e.toString)&&!MS(r=US(n,e)))return r;throw new Eoe("Can't convert object to primitive value")}});var Ix=F((SFe,yx)=>{"use strict";m();T();N();yx.exports=!1});var CE=F((RFe,_x)=>{"use strict";m();T();N();var gx=Zi(),hoe=Object.defineProperty;_x.exports=function(e,t){try{hoe(gx,e,{value:t,configurable:!0,writable:!0})}catch(n){gx[e]=t}return t}});var BE=F((LFe,Sx)=>{"use strict";m();T();N();var yoe=Ix(),Ioe=Zi(),goe=CE(),vx="__core-js_shared__",Ox=Sx.exports=Ioe[vx]||goe(vx,{});(Ox.versions||(Ox.versions=[])).push({version:"3.41.0",mode:yoe?"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=F((kFe,bx)=>{"use strict";m();T();N();var Dx=BE();bx.exports=function(e,t){return Dx[e]||(Dx[e]=t||{})}});var Rx=F((VFe,Ax)=>{"use strict";m();T();N();var _oe=AS(),voe=Object;Ax.exports=function(e){return voe(_oe(e))}});var Pu=F(($Fe,Px)=>{"use strict";m();T();N();var Ooe=gi(),Soe=Rx(),Doe=Ooe({}.hasOwnProperty);Px.exports=Object.hasOwn||function(t,n){return Doe(Soe(t),n)}});var qS=F((HFe,Fx)=>{"use strict";m();T();N();var boe=gi(),Aoe=0,Roe=Math.random(),Poe=boe(1 .toString);Fx.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Poe(++Aoe+Roe,36)}});var Cx=F((ZFe,Lx)=>{"use strict";m();T();N();var Foe=Zi(),woe=xS(),wx=Pu(),Loe=qS(),Coe=wS(),Boe=LS(),ud=Foe.Symbol,VS=woe("wks"),Uoe=Boe?ud.for||ud:ud&&ud.withoutSetter||Loe;Lx.exports=function(e){return wx(VS,e)||(VS[e]=Coe&&wx(ud,e)?ud[e]:Uoe("Symbol."+e)),VS[e]}});var Mx=F((rwe,kx)=>{"use strict";m();T();N();var koe=Fc(),Bx=od(),Ux=CS(),Moe=BS(),xoe=hx(),qoe=Cx(),Voe=TypeError,joe=qoe("toPrimitive");kx.exports=function(e,t){if(!Bx(e)||Ux(e))return e;var n=Moe(e,joe),r;if(n){if(t===void 0&&(t="default"),r=koe(n,e,t),!Bx(r)||Ux(r))return r;throw new Voe("Can't convert object to primitive value")}return t===void 0&&(t="number"),xoe(e,t)}});var jS=F((owe,xx)=>{"use strict";m();T();N();var Koe=Mx(),Goe=CS();xx.exports=function(e){var t=Koe(e,"string");return Goe(t)?t:t+""}});var jx=F((dwe,Vx)=>{"use strict";m();T();N();var $oe=Zi(),qx=od(),KS=$oe.document,Qoe=qx(KS)&&qx(KS.createElement);Vx.exports=function(e){return Qoe?KS.createElement(e):{}}});var GS=F((Nwe,Kx)=>{"use strict";m();T();N();var Yoe=Ru(),Joe=Bs(),Hoe=jx();Kx.exports=!Yoe&&!Joe(function(){return Object.defineProperty(Hoe("div"),"a",{get:function(){return 7}}).a!==7})});var $S=F($x=>{"use strict";m();T();N();var zoe=Ru(),Woe=Fc(),Xoe=CM(),Zoe=OS(),eue=PE(),tue=jS(),nue=Pu(),rue=GS(),Gx=Object.getOwnPropertyDescriptor;$x.f=zoe?Gx:function(t,n){if(t=eue(t),n=tue(n),rue)try{return Gx(t,n)}catch(r){}if(nue(t,n))return Zoe(!Woe(Xoe.f,t,n),t[n])}});var Yx=F((vwe,Qx)=>{"use strict";m();T();N();var iue=Ru(),aue=Bs();Qx.exports=iue&&aue(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var sf=F((bwe,Jx)=>{"use strict";m();T();N();var sue=od(),oue=String,uue=TypeError;Jx.exports=function(e){if(sue(e))return e;throw new uue(oue(e)+" is not an object")}});var kE=F(zx=>{"use strict";m();T();N();var cue=Ru(),lue=GS(),due=Yx(),UE=sf(),Hx=jS(),pue=TypeError,QS=Object.defineProperty,fue=Object.getOwnPropertyDescriptor,YS="enumerable",JS="configurable",HS="writable";zx.f=cue?due?function(t,n,r){if(UE(t),n=Hx(n),UE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&HS in r&&!r[HS]){var i=fue(t,n);i&&i[HS]&&(t[n]=r.value,r={configurable:JS in r?r[JS]:i[JS],enumerable:YS in r?r[YS]:i[YS],writable:!1})}return QS(t,n,r)}:QS:function(t,n,r){if(UE(t),n=Hx(n),UE(r),lue)try{return QS(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new pue("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var zS=F((Bwe,Wx)=>{"use strict";m();T();N();var mue=Ru(),Nue=kE(),Tue=OS();Wx.exports=mue?function(e,t,n){return Nue.f(e,t,Tue(1,n))}:function(e,t,n){return e[t]=n,e}});var eq=F((xwe,Zx)=>{"use strict";m();T();N();var WS=Ru(),Eue=Pu(),Xx=Function.prototype,hue=WS&&Object.getOwnPropertyDescriptor,XS=Eue(Xx,"name"),yue=XS&&function(){}.name==="something",Iue=XS&&(!WS||WS&&hue(Xx,"name").configurable);Zx.exports={EXISTS:XS,PROPER:yue,CONFIGURABLE:Iue}});var nq=F((Kwe,tq)=>{"use strict";m();T();N();var gue=gi(),_ue=ga(),ZS=BE(),vue=gue(Function.toString);_ue(ZS.inspectSource)||(ZS.inspectSource=function(e){return vue(e)});tq.exports=ZS.inspectSource});var aq=F((Ywe,iq)=>{"use strict";m();T();N();var Oue=Zi(),Sue=ga(),rq=Oue.WeakMap;iq.exports=Sue(rq)&&/native code/.test(String(rq))});var uq=F((Wwe,oq)=>{"use strict";m();T();N();var Due=xS(),bue=qS(),sq=Due("keys");oq.exports=function(e){return sq[e]||(sq[e]=bue(e))}});var eD=F((tLe,cq)=>{"use strict";m();T();N();cq.exports={}});var fq=F((aLe,pq)=>{"use strict";m();T();N();var Aue=aq(),dq=Zi(),Rue=od(),Pue=zS(),tD=Pu(),nD=BE(),Fue=uq(),wue=eD(),lq="Object already initialized",rD=dq.TypeError,Lue=dq.WeakMap,ME,of,xE,Cue=function(e){return xE(e)?of(e):ME(e,{})},Bue=function(e){return function(t){var n;if(!Rue(t)||(n=of(t)).type!==e)throw new rD("Incompatible receiver, "+e+" required");return n}};Aue||nD.state?(va=nD.state||(nD.state=new Lue),va.get=va.get,va.has=va.has,va.set=va.set,ME=function(e,t){if(va.has(e))throw new rD(lq);return t.facade=e,va.set(e,t),t},of=function(e){return va.get(e)||{}},xE=function(e){return va.has(e)}):(wc=Fue("state"),wue[wc]=!0,ME=function(e,t){if(tD(e,wc))throw new rD(lq);return t.facade=e,Pue(e,wc,t),t},of=function(e){return tD(e,wc)?e[wc]:{}},xE=function(e){return tD(e,wc)});var va,wc;pq.exports={set:ME,get:of,has:xE,enforce:Cue,getterFor:Bue}});var Eq=F((cLe,Tq)=>{"use strict";m();T();N();var aD=gi(),Uue=Bs(),kue=ga(),qE=Pu(),iD=Ru(),Mue=eq().CONFIGURABLE,xue=nq(),Nq=fq(),que=Nq.enforce,Vue=Nq.get,mq=String,VE=Object.defineProperty,jue=aD("".slice),Kue=aD("".replace),Gue=aD([].join),$ue=iD&&!Uue(function(){return VE(function(){},"length",{value:8}).length!==8}),Que=String(String).split("String"),Yue=Tq.exports=function(e,t,n){jue(mq(t),0,7)==="Symbol("&&(t="["+Kue(mq(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!qE(e,"name")||Mue&&e.name!==t)&&(iD?VE(e,"name",{value:t,configurable:!0}):e.name=t),$ue&&n&&qE(n,"arity")&&e.length!==n.arity&&VE(e,"length",{value:n.arity});try{n&&qE(n,"constructor")&&n.constructor?iD&&VE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=que(e);return qE(r,"source")||(r.source=Gue(Que,typeof t=="string"?t:"")),e};Function.prototype.toString=Yue(function(){return kue(this)&&Vue(this).source||xue(this)},"toString")});var yq=F((fLe,hq)=>{"use strict";m();T();N();var Jue=ga(),Hue=kE(),zue=Eq(),Wue=CE();hq.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Jue(n)&&zue(n,a,r),r.global)i?e[t]=n:Wue(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:Hue.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var gq=F((ELe,Iq)=>{"use strict";m();T();N();var Xue=Math.ceil,Zue=Math.floor;Iq.exports=Math.trunc||function(t){var n=+t;return(n>0?Zue:Xue)(n)}});var jE=F((gLe,_q)=>{"use strict";m();T();N();var ece=gq();_q.exports=function(e){var t=+e;return t!==t||t===0?0:ece(t)}});var Oq=F((SLe,vq)=>{"use strict";m();T();N();var tce=jE(),nce=Math.max,rce=Math.min;vq.exports=function(e,t){var n=tce(e);return n<0?nce(n+t,0):rce(n,t)}});var Dq=F((RLe,Sq)=>{"use strict";m();T();N();var ice=jE(),ace=Math.min;Sq.exports=function(e){var t=ice(e);return t>0?ace(t,9007199254740991):0}});var Aq=F((LLe,bq)=>{"use strict";m();T();N();var sce=Dq();bq.exports=function(e){return sce(e.length)}});var Fq=F((kLe,Pq)=>{"use strict";m();T();N();var oce=PE(),uce=Oq(),cce=Aq(),Rq=function(e){return function(t,n,r){var i=oce(t),a=cce(i);if(a===0)return!e&&-1;var o=uce(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}};Pq.exports={includes:Rq(!0),indexOf:Rq(!1)}});var Cq=F((VLe,Lq)=>{"use strict";m();T();N();var lce=gi(),sD=Pu(),dce=PE(),pce=Fq().indexOf,fce=eD(),wq=lce([].push);Lq.exports=function(e,t){var n=dce(e),r=0,i=[],a;for(a in n)!sD(fce,a)&&sD(n,a)&&wq(i,a);for(;t.length>r;)sD(n,a=t[r++])&&(~pce(i,a)||wq(i,a));return i}});var Uq=F(($Le,Bq)=>{"use strict";m();T();N();Bq.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Mq=F(kq=>{"use strict";m();T();N();var mce=Cq(),Nce=Uq(),Tce=Nce.concat("length","prototype");kq.f=Object.getOwnPropertyNames||function(t){return mce(t,Tce)}});var qq=F(xq=>{"use strict";m();T();N();xq.f=Object.getOwnPropertySymbols});var jq=F((rCe,Vq)=>{"use strict";m();T();N();var Ece=FE(),hce=gi(),yce=Mq(),Ice=qq(),gce=sf(),_ce=hce([].concat);Vq.exports=Ece("Reflect","ownKeys")||function(t){var n=yce.f(gce(t)),r=Ice.f;return r?_ce(n,r(t)):n}});var $q=F((oCe,Gq)=>{"use strict";m();T();N();var Kq=Pu(),vce=jq(),Oce=$S(),Sce=kE();Gq.exports=function(e,t,n){for(var r=vce(t),i=Sce.f,a=Oce.f,o=0;o{"use strict";m();T();N();var Dce=Bs(),bce=ga(),Ace=/#|\.prototype\./,uf=function(e,t){var n=Pce[Rce(e)];return n===wce?!0:n===Fce?!1:bce(t)?Dce(t):!!t},Rce=uf.normalize=function(e){return String(e).replace(Ace,".").toLowerCase()},Pce=uf.data={},Fce=uf.NATIVE="N",wce=uf.POLYFILL="P";Qq.exports=uf});var oD=F((NCe,Jq)=>{"use strict";m();T();N();var KE=Zi(),Lce=$S().f,Cce=zS(),Bce=yq(),Uce=CE(),kce=$q(),Mce=Yq();Jq.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,d,f;if(r?o=KE:i?o=KE[n]||Uce(n,{}):o=KE[n]&&KE[n].prototype,o)for(c in t){if(d=t[c],e.dontCallGetSet?(f=Lce(o,c),l=f&&f.value):l=o[c],a=Mce(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof d==typeof l)continue;kce(d,l)}(e.sham||l&&l.sham)&&Cce(d,"sham",!0),Bce(o,c,d,e)}}});var cf=F((yCe,Hq)=>{"use strict";m();T();N();var uD=gi(),GE=Set.prototype;Hq.exports={Set,add:uD(GE.add),has:uD(GE.has),remove:uD(GE.delete),proto:GE}});var cD=F((vCe,zq)=>{"use strict";m();T();N();var xce=cf().has;zq.exports=function(e){return xce(e),e}});var Xq=F((bCe,Wq)=>{"use strict";m();T();N();var qce=gi(),Vce=LE();Wq.exports=function(e,t,n){try{return qce(Vce(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var lD=F((FCe,Zq)=>{"use strict";m();T();N();var jce=Xq(),Kce=cf();Zq.exports=jce(Kce.proto,"size","get")||function(e){return e.size}});var dD=F((BCe,e1)=>{"use strict";m();T();N();var Gce=Fc();e1.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=Gce(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var s1=F((xCe,a1)=>{"use strict";m();T();N();var t1=gi(),$ce=dD(),n1=cf(),Qce=n1.Set,r1=n1.proto,Yce=t1(r1.forEach),i1=t1(r1.keys),Jce=i1(new Qce).next;a1.exports=function(e,t,n){return n?$ce({iterator:i1(e),next:Jce},t):Yce(e,t)}});var u1=F((KCe,o1)=>{"use strict";m();T();N();o1.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var pD=F((YCe,m1)=>{"use strict";m();T();N();var c1=LE(),p1=sf(),l1=Fc(),Hce=jE(),zce=u1(),d1="Invalid size",Wce=RangeError,Xce=TypeError,Zce=Math.max,f1=function(e,t){this.set=e,this.size=Zce(t,0),this.has=c1(e.has),this.keys=c1(e.keys)};f1.prototype={getIterator:function(){return zce(p1(l1(this.keys,this.set)))},includes:function(e){return l1(this.has,this.set,e)}};m1.exports=function(e){p1(e);var t=+e.size;if(t!==t)throw new Xce(d1);var n=Hce(t);if(n<0)throw new Wce(d1);return new f1(e,n)}});var T1=F((WCe,N1)=>{"use strict";m();T();N();var ele=cD(),tle=lD(),nle=s1(),rle=pD();N1.exports=function(t){var n=ele(this),r=rle(t);return tle(n)>r.size?!1:nle(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var fD=F((tBe,y1)=>{"use strict";m();T();N();var ile=FE(),E1=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},h1=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};y1.exports=function(e,t){var n=ile("Set");try{new n()[e](E1(0));try{return new n()[e](E1(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](h1(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](h1(1/0)))}}}catch(i){return!1}}});var I1=F(()=>{"use strict";m();T();N();var ale=oD(),sle=T1(),ole=fD(),ule=!ole("isSubsetOf",function(e){return e});ale({target:"Set",proto:!0,real:!0,forced:ule},{isSubsetOf:sle})});var g1=F(()=>{"use strict";m();T();N();I1()});var O1=F((NBe,v1)=>{"use strict";m();T();N();var cle=Fc(),_1=sf(),lle=BS();v1.exports=function(e,t,n){var r,i;_1(e);try{if(r=lle(e,"return"),!r){if(t==="throw")throw n;return n}r=cle(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return _1(r),n}});var D1=F((yBe,S1)=>{"use strict";m();T();N();var dle=cD(),ple=cf().has,fle=lD(),mle=pD(),Nle=dD(),Tle=O1();S1.exports=function(t){var n=dle(this),r=mle(t);if(fle(n){"use strict";m();T();N();var Ele=oD(),hle=D1(),yle=fD(),Ile=!yle("isSupersetOf",function(e){return!e});Ele({target:"Set",proto:!0,real:!0,forced:Ile},{isSupersetOf:hle})});var A1=F(()=>{"use strict";m();T();N();b1()});var lf=F(Rn=>{"use strict";m();T();N();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.subtractSet=_le;Rn.mapToArrayOfValues=vle;Rn.kindToConvertedTypeString=Ole;Rn.fieldDatasToSimpleFieldDatas=Sle;Rn.isNodeLeaf=Dle;Rn.newEntityInterfaceFederationData=ble;Rn.upsertEntityInterfaceFederationData=Ale;Rn.upsertEntityData=Ple;Rn.updateEntityData=R1;Rn.newFieldAuthorizationData=Fle;Rn.newAuthorizationData=wle;Rn.addScopes=mD;Rn.mergeRequiredScopesByAND=YE;Rn.mergeRequiredScopesByOR=ND;Rn.upsertFieldAuthorizationData=P1;Rn.upsertAuthorizationData=Ble;Rn.upsertAuthorizationConfiguration=Ule;Rn.isObjectNodeKind=kle;Rn.isCompositeOutputNodeKind=Mle;Rn.isObjectDefinitionData=xle;Rn.getNodeCoords=qle;var Kt=Oe(),oi=sr(),$E=Fr(),QE=_u();g1();A1();var gle=sd();function _le(e,t){for(let n of e)t.delete(n)}function vle(e){let t=[];for(let n of e.values())t.push(n);return t}function Ole(e){switch(e){case Kt.Kind.BOOLEAN:return oi.BOOLEAN_SCALAR;case Kt.Kind.ENUM:case Kt.Kind.ENUM_TYPE_DEFINITION:case Kt.Kind.ENUM_TYPE_EXTENSION:return oi.ENUM;case Kt.Kind.ENUM_VALUE_DEFINITION:return oi.ENUM_VALUE;case Kt.Kind.FIELD_DEFINITION:return oi.FIELD;case Kt.Kind.FLOAT:return oi.FLOAT_SCALAR;case Kt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Kt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return oi.INPUT_OBJECT;case Kt.Kind.INPUT_VALUE_DEFINITION:return oi.INPUT_VALUE;case Kt.Kind.INT:return oi.INT_SCALAR;case Kt.Kind.INTERFACE_TYPE_DEFINITION:case Kt.Kind.INTERFACE_TYPE_EXTENSION:return oi.INTERFACE;case Kt.Kind.NULL:return oi.NULL;case Kt.Kind.OBJECT:case Kt.Kind.OBJECT_TYPE_DEFINITION:case Kt.Kind.OBJECT_TYPE_EXTENSION:return oi.OBJECT;case Kt.Kind.STRING:return oi.STRING_SCALAR;case Kt.Kind.SCALAR_TYPE_DEFINITION:case Kt.Kind.SCALAR_TYPE_EXTENSION:return oi.SCALAR;case Kt.Kind.UNION_TYPE_DEFINITION:case Kt.Kind.UNION_TYPE_EXTENSION:return oi.UNION;default:return e}}function Sle(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function Dle(e){if(!e)return!0;switch(e){case Kt.Kind.OBJECT_TYPE_DEFINITION:case Kt.Kind.INTERFACE_TYPE_DEFINITION:case Kt.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function ble(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphNames:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function Ale(e,t,n){(0,$E.addIterableToSet)({source:t.concreteTypeNames,target:e.concreteTypeNames}),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,$E.addIterableToSet)({source:t.interfaceFieldNames,target:e.interfaceFieldNames}),(0,$E.addIterableToSet)({source:t.interfaceObjectFieldNames,target:e.interfaceObjectFieldNames}),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(n)}function Rle({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 Ple({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?R1({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,Rle({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function R1({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 Fle(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function wle(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function mD(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 YE(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,$E.addSets)(r,i);mD(n,a)}return n}function ND(e,t){for(let n of t)mD(e,n);return e.length<=QE.MAX_OR_SCOPES}function P1(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),!ND(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>QE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>QE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=YE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=YE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,F1(t)),!0)}function Lle(e){let t=new Map;for(let[n,r]of e)t.set(n,F1(r));return t}function F1(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 Cle(e){return{fieldAuthDataByFieldName:Lle(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function Ble(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,Cle(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!ND(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>QE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=YE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)P1(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function Ule(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 kle(e){return e===Kt.Kind.OBJECT_TYPE_DEFINITION||e===Kt.Kind.OBJECT_TYPE_EXTENSION}function Mle(e){return gle.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function xle(e){return e?e.kind===Kt.Kind.OBJECT_TYPE_DEFINITION:!1}function qle(e){switch(e.kind){case Kt.Kind.ARGUMENT:case Kt.Kind.FIELD_DEFINITION:case Kt.Kind.INPUT_VALUE_DEFINITION:case Kt.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}});var TD=F(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.SEMANTIC_NON_NULL_DATA=je.REQUIRES_SCOPES_DEFINITION_DATA=je.REQUIRE_FETCH_REASONS_DEFINITION_DATA=je.REDIS_SUBSCRIBE_DEFINITION_DATA=je.REDIS_PUBLISH_DEFINITION_DATA=je.REQUIRES_DEFINITION_DATA=je.PROVIDES_DEFINITION_DATA=je.LINK_DEFINITION_DATA=je.KEY_DEFINITION_DATA=je.OVERRIDE_DEFINITION_DATA=je.ONE_OF_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.CONNECT_FIELD_RESOLVER_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 ea=Pr(),Gt=Oe(),x=sr(),tn=xp(),Pn=aT();je.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER]),name:x.AUTHENTICATED,node:tn.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};je.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.NAME,{name:x.NAME,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([x.SCHEMA_UPPER]),name:x.COMPOSE_DIRECTIVE,node:tn.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.NAME])};je.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.PROPAGATE,{name:x.PROPAGATE,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,ea.stringToNamedTypeNode)(x.BOOLEAN_SCALAR)},defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}],[x.DESCRIPTION_OVERRIDE,{name:x.DESCRIPTION_OVERRIDE,typeNode:(0,ea.stringToNamedTypeNode)(x.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.INPUT_OBJECT_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.SCHEMA_UPPER,x.UNION_UPPER]),name:x.CONFIGURE_DESCRIPTION,node:tn.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([x.PROPAGATE,x.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};je.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.PROPAGATE,{name:x.PROPAGATE,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,ea.stringToNamedTypeNode)(x.BOOLEAN_SCALAR)},defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.CONFIGURE_CHILD_DESCRIPTIONS,node:tn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([x.PROPAGATE]),requiredArgumentNames:new Set};je.CONNECT_FIELD_RESOLVER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CONTEXT,{name:x.CONTEXT,typeNode:Pn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.CONNECT_FIELD_RESOLVER,node:tn.CONNECT_FIELD_RESOLVER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.CONTEXT])};je.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.REASON,{name:x.REASON,typeNode:(0,ea.stringToNamedTypeNode)(x.STRING_SCALAR),defaultValue:{kind:Gt.Kind.STRING,value:Gt.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER]),name:x.DEPRECATED,node:tn.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([x.REASON]),requiredArgumentNames:new Set};je.EXTENDS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.EXTENDS,node:tn.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};je.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER,x.OBJECT_UPPER]),name:x.EXTERNAL,node:tn.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};je.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.UNION_UPPER]),name:x.INACCESSIBLE,node:tn.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};je.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.OBJECT_UPPER]),name:x.INTERFACE_OBJECT,node:tn.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};je.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.TOPIC,{name:x.TOPIC,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_KAFKA_PUBLISH,node:tn.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.TOPIC])};je.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.TOPICS,{name:x.TOPICS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Pn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_KAFKA_SUBSCRIBE,node:tn.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.TOPICS])};je.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECT,{name:x.SUBJECT,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_PUBLISH,node:tn.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.SUBJECT])};je.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECT,{name:x.SUBJECT,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_REQUEST,node:tn.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.SUBJECT])};je.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECTS,{name:x.SUBJECTS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Pn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}],[x.STREAM_CONFIGURATION,{name:x.STREAM_CONFIGURATION,typeNode:(0,ea.stringToNamedTypeNode)(x.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_SUBSCRIBE,node:tn.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID,x.STREAM_CONFIGURATION]),requiredArgumentNames:new Set([x.SUBJECTS])};je.ONE_OF_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([x.INPUT_OBJECT_UPPER]),name:x.ONE_OF,node:tn.ONE_OF_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};je.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FROM,{name:x.FROM,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.OVERRIDE,node:tn.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FROM])};je.KEY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Pn.REQUIRED_FIELDSET_TYPE_NODE}],[x.RESOLVABLE,{name:x.RESOLVABLE,typeNode:(0,ea.stringToNamedTypeNode)(x.BOOLEAN_SCALAR),defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.KEY,node:tn.KEY_DEFINITION,optionalArgumentNames:new Set([x.RESOLVABLE]),requiredArgumentNames:new Set([x.FIELDS])};je.LINK_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.URL_LOWER,{name:x.URL_LOWER,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.AS,{name:x.AS,typeNode:(0,ea.stringToNamedTypeNode)(x.STRING_SCALAR)}],[x.FOR,{name:x.FOR,typeNode:(0,ea.stringToNamedTypeNode)(x.LINK_PURPOSE)}],[x.IMPORT,{name:x.IMPORT,typeNode:{kind:Gt.Kind.LIST_TYPE,type:(0,ea.stringToNamedTypeNode)(x.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([x.SCHEMA_UPPER]),name:x.LINK,node:tn.LINK_DEFINITION,optionalArgumentNames:new Set([x.AS,x.FOR,x.IMPORT]),requiredArgumentNames:new Set([x.URL_LOWER])};je.PROVIDES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Pn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.PROVIDES,node:tn.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FIELDS])};je.REQUIRES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Pn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.REQUIRES,node:tn.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FIELDS])};je.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CHANNEL,{name:x.CHANNEL,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_REDIS_PUBLISH,node:tn.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.CHANNEL])};je.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CHANNELS,{name:x.CHANNELS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Pn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_REDIS_SUBSCRIBE,node:tn.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.CHANNELS])};je.REQUIRE_FETCH_REASONS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.REQUIRE_FETCH_REASONS,node:tn.REQUIRE_FETCH_REASONS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};je.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SCOPES,{name:x.SCOPES,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,ea.stringToNamedTypeNode)(x.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER]),name:x.REQUIRES_SCOPES,node:tn.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.SCOPES])};je.SEMANTIC_NON_NULL_DATA={argumentTypeNodeByName:new Map([[x.LEVELS,{name:x.LEVELS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,ea.stringToNamedTypeNode)(x.INT_SCALAR)}}},defaultValue:{kind:Gt.Kind.LIST,values:[{kind:Gt.Kind.INT,value:"0"}]}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.SEMANTIC_NON_NULL,node:tn.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([x.LEVELS]),requiredArgumentNames:new Set};je.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.URL_LOWER,{name:x.URL_LOWER,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.SCALAR_UPPER]),name:x.SPECIFIED_BY,node:tn.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.URL_LOWER])};je.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([x.FIELD_DEFINITION_UPPER,x.OBJECT_UPPER]),name:x.SHAREABLE,node:tn.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};je.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CONDITION,{name:x.CONDITION,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,ea.stringToNamedTypeNode)(x.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.SUBSCRIPTION_FILTER,node:tn.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.CONDITION])};je.TAG_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.NAME,{name:x.NAME,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.UNION_UPPER]),name:x.TAG,node:tn.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.NAME])}});var df=F(Oa=>{"use strict";m();T();N();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.newFieldSetData=Vle;Oa.extractFieldSetValue=jle;Oa.getNormalizedFieldSet=Kle;Oa.getInitialFieldCoordsPath=Gle;Oa.validateKeyFieldSets=$le;Oa.getConditionalFieldSetDirectiveName=Qle;Oa.isNodeQuery=Yle;Oa.validateArgumentTemplateReferences=Jle;Oa.initializeDirectiveDefinitionDatas=Hle;var cr=Oe(),w1=Pr(),Ur=Gi(),L1=_u(),ED=gu(),nn=TD(),bt=sr(),Fu=Fr();function Vle(){return{provides:new Map,requires:new Map}}function jle(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!==bt.FIELDS||i.value.kind!==cr.Kind.STRING||t.set(e,i.value.value)}function Kle(e){return(0,cr.print)((0,w1.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function Gle(e,t){return e?[t]:[]}function $le(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),d=0;for(let[f,{documentNode:y,isUnresolvable:I,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!I)),d+=1;let w=[],U=[t],j=[],Y=[],re=new Set,ne=-1,me=!0,ue="";if((0,cr.visit)(y,{Argument:{enter(Ae){return w.push((0,Ur.unexpectedArgumentErrorMessage)(v,`${U[ne].name}.${ue}`,Ae.name.value)),cr.BREAK}},Field:{enter(Ae){let Me=U[ne],nt=Me.name;if(me){let wn=`${nt}.${ue}`,$t=Me.fieldDataByName.get(ue);if(!$t)return w.push((0,Ur.undefinedFieldInFieldSetErrorMessage)(v,wn,ue)),cr.BREAK;let En=(0,ED.getTypeNodeNamedTypeName)($t.node.type),kr=e.parentDefinitionDataByTypeName.get(En),Mr=kr?kr.kind:cr.Kind.SCALAR_TYPE_DEFINITION;return w.push((0,Ur.invalidSelectionSetErrorMessage)(v,[wn],En,(0,Fu.kindToNodeType)(Mr))),cr.BREAK}let X=Ae.name.value,_e=`${nt}.${X}`;ue=X;let vt=Me.fieldDataByName.get(X);if(!vt)return w.push((0,Ur.undefinedFieldInFieldSetErrorMessage)(v,nt,X)),cr.BREAK;if(vt.argumentDataByName.size)return w.push((0,Ur.argumentsInKeyFieldSetErrorMessage)(v,_e)),cr.BREAK;if(j[ne].has(X))return w.push((0,Ur.duplicateFieldInFieldSetErrorMessage)(v,_e)),cr.BREAK;(0,Fu.getValueOrDefault)((0,Fu.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,_e,()=>new Map),i,()=>new Set).add(f),Y.push(X),vt.isShareableBySubgraphName.set(e.subgraphName,!0),j[ne].add(X),(0,Fu.getValueOrDefault)(e.keyFieldNamesByParentTypeName,nt,()=>new Set).add(X);let an=(0,ED.getTypeNodeNamedTypeName)(vt.node.type);if(L1.BASE_SCALARS.has(an)){re.add(Y.join(bt.PERIOD)),Y.pop();return}let sn=e.parentDefinitionDataByTypeName.get(an);if(!sn)return w.push((0,Ur.unknownTypeInFieldSetErrorMessage)(v,_e,an)),cr.BREAK;if(sn.kind===cr.Kind.OBJECT_TYPE_DEFINITION){me=!0,U.push(sn);return}if((0,w1.isKindAbstract)(sn.kind))return w.push((0,Ur.abstractTypeInKeyFieldSetErrorMessage)(v,_e,an,(0,Fu.kindToNodeType)(sn.kind))),cr.BREAK;re.add(Y.join(bt.PERIOD)),Y.pop()}},InlineFragment:{enter(){return w.push(Ur.inlineFragmentInFieldSetErrorMessage),cr.BREAK}},SelectionSet:{enter(){if(!me){let Ae=U[ne],nt=`${Ae.name}.${ue}`,X=Ae.fieldDataByName.get(ue);if(!X)return w.push((0,Ur.undefinedFieldInFieldSetErrorMessage)(v,nt,ue)),cr.BREAK;let _e=(0,ED.getTypeNodeNamedTypeName)(X.node.type),vt=e.parentDefinitionDataByTypeName.get(_e),an=vt?vt.kind:cr.Kind.SCALAR_TYPE_DEFINITION;return w.push((0,Ur.invalidSelectionSetDefinitionErrorMessage)(v,[nt],_e,(0,Fu.kindToNodeType)(an))),cr.BREAK}if(ne+=1,me=!1,ne<0||ne>=U.length)return w.push((0,Ur.unparsableFieldSetSelectionErrorMessage)(v,ue)),cr.BREAK;j.push(new Set)},leave(){if(me){let Me=U[ne].name,nt=U[ne+1],X=`${Me}.${ue}`;w.push((0,Ur.invalidSelectionSetErrorMessage)(v,[X],nt.name,(0,Fu.kindToNodeType)(nt.kind))),me=!1}ne-=1,U.pop(),j.pop()}}}),w.length>0){e.errors.push((0,Ur.invalidDirectiveError)(bt.KEY,i,(0,Fu.numberToOrdinal)(d),w));continue}a.push(M({fieldName:"",selectionSet:f},I?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(f),!I&&(c==null||c.addTargetSubgraphByFieldSet(f,e.subgraphName),o.push(re))}if(a.length>0)return a}function Qle(e){return e?bt.PROVIDES:bt.REQUIRES}function Yle(e,t){return e===bt.QUERY||t===cr.OperationTypeNode.QUERY}function Jle(e,t,n){let r=e.matchAll(L1.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,Ur.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,Ur.invalidEventSubjectsArgumentErrorMessage)(o))}function Hle(){return new Map([[bt.AUTHENTICATED,nn.AUTHENTICATED_DEFINITION_DATA],[bt.COMPOSE_DIRECTIVE,nn.COMPOSE_DIRECTIVE_DEFINITION_DATA],[bt.CONFIGURE_DESCRIPTION,nn.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[bt.CONFIGURE_CHILD_DESCRIPTIONS,nn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[bt.CONNECT_FIELD_RESOLVER,nn.CONNECT_FIELD_RESOLVER_DEFINITION_DATA],[bt.DEPRECATED,nn.DEPRECATED_DEFINITION_DATA],[bt.EDFS_KAFKA_PUBLISH,nn.KAFKA_PUBLISH_DEFINITION_DATA],[bt.EDFS_KAFKA_SUBSCRIBE,nn.KAFKA_SUBSCRIBE_DEFINITION_DATA],[bt.EDFS_NATS_PUBLISH,nn.NATS_PUBLISH_DEFINITION_DATA],[bt.EDFS_NATS_REQUEST,nn.NATS_REQUEST_DEFINITION_DATA],[bt.EDFS_NATS_SUBSCRIBE,nn.NATS_SUBSCRIBE_DEFINITION_DATA],[bt.EDFS_REDIS_PUBLISH,nn.REDIS_PUBLISH_DEFINITION_DATA],[bt.EDFS_REDIS_SUBSCRIBE,nn.REDIS_SUBSCRIBE_DEFINITION_DATA],[bt.EXTENDS,nn.EXTENDS_DEFINITION_DATA],[bt.EXTERNAL,nn.EXTERNAL_DEFINITION_DATA],[bt.INACCESSIBLE,nn.INACCESSIBLE_DEFINITION_DATA],[bt.INTERFACE_OBJECT,nn.INTERFACE_OBJECT_DEFINITION_DATA],[bt.KEY,nn.KEY_DEFINITION_DATA],[bt.LINK,nn.LINK_DEFINITION_DATA],[bt.ONE_OF,nn.ONE_OF_DEFINITION_DATA],[bt.OVERRIDE,nn.OVERRIDE_DEFINITION_DATA],[bt.PROVIDES,nn.PROVIDES_DEFINITION_DATA],[bt.REQUIRE_FETCH_REASONS,nn.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[bt.REQUIRES,nn.REQUIRES_DEFINITION_DATA],[bt.REQUIRES_SCOPES,nn.REQUIRES_SCOPES_DEFINITION_DATA],[bt.SEMANTIC_NON_NULL,nn.SEMANTIC_NON_NULL_DATA],[bt.SHAREABLE,nn.SHAREABLE_DEFINITION_DATA],[bt.SPECIFIED_BY,nn.SPECIFIED_BY_DEFINITION_DATA],[bt.SUBSCRIPTION_FILTER,nn.SUBSCRIPTION_FILTER_DEFINITION_DATA],[bt.TAG,nn.TAG_DEFINITION_DATA]])}});var yD=F(hD=>{"use strict";m();T();N();Object.defineProperty(hD,"__esModule",{value:!0});hD.recordSubgraphName=zle;function zle(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var gD=F(JE=>{"use strict";m();T();N();Object.defineProperty(JE,"__esModule",{value:!0});JE.Warning=void 0;var ID=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};JE.Warning=ID});var pf=F(_i=>{"use strict";m();T();N();Object.defineProperty(_i,"__esModule",{value:!0});_i.invalidOverrideTargetSubgraphNameWarning=Wle;_i.externalInterfaceFieldsWarning=Xle;_i.nonExternalConditionalFieldWarning=Zle;_i.unimplementedInterfaceOutputTypeWarning=ede;_i.invalidExternalFieldWarning=tde;_i.requiresDefinedOnNonEntityFieldWarning=nde;_i.consumerInactiveThresholdInvalidValueWarning=rde;_i.externalEntityExtensionKeyFieldWarning=ide;_i.fieldAlreadyProvidedWarning=ade;_i.singleSubgraphInputFieldOneOfWarning=sde;_i.singleFederatedInputFieldOneOfWarning=ode;var Sa=gD(),_D=sr();function Wle(e,t,n,r){return new Sa.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(_D.QUOTATION_JOIN)+`". +`;return n+=`The list value provided to the "levels" argument must be consistently defined across all subgraphs that define "@semanticNonNull" on field "${t}".`,new Error(n)}function loe({requiredFieldNames:e,typeName:t}){return new Error(`The "@oneOf" directive defined on Input Object "${t}" is invalid because all Input fields must be optional (nullable); however, the following Input field`+(e.length>1?"s are":" is")+' required (non-nullable): "'+e.join(He.QUOTATION_JOIN)+'".')}});var $M=w(GM=>{"use strict";m();T();N();Object.defineProperty(GM,"__esModule",{value:!0})});var sE=w(aE=>{"use strict";m();T();N();Object.defineProperty(aE,"__esModule",{value:!0});aE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=void 0;aE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD=30});var oE=w(Tr=>{"use strict";m();T();N();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.SUBSCRIPTION_FILTER_VALUE_DEFINITION=Tr.SUBSCRIPTION_FILTER_CONDITION_DEFINITION=Tr.SUBSCRIPTION_FIELD_CONDITION_DEFINITION=Tr.SCOPE_SCALAR_DEFINITION=Tr.LINK_PURPOSE_DEFINITION=Tr.LINK_IMPORT_DEFINITION=Tr.FIELD_SET_SCALAR_DEFINITION=Tr.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION=void 0;var Zt=Oe(),dn=Ar(),fn=sr(),doe=sE();Tr.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION={kind:Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.EDFS_NATS_STREAM_CONFIGURATION),fields:[{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.CONSUMER_INACTIVE_THRESHOLD),type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.INT_SCALAR)},defaultValue:{kind:Zt.Kind.INT,value:doe.DEFAULT_CONSUMER_INACTIVE_THRESHOLD.toString()}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.CONSUMER_NAME),type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.STREAM_NAME),type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}}]};Tr.FIELD_SET_SCALAR_DEFINITION={kind:Zt.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.FIELD_SET_SCALAR)};Tr.LINK_IMPORT_DEFINITION={kind:Zt.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.LINK_IMPORT)};Tr.LINK_PURPOSE_DEFINITION={kind:Zt.Kind.ENUM_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.LINK_PURPOSE),values:[{directives:[],kind:Zt.Kind.ENUM_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.EXECUTION)},{directives:[],kind:Zt.Kind.ENUM_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SECURITY)}]};Tr.SCOPE_SCALAR_DEFINITION={kind:Zt.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SCOPE_SCALAR)};Tr.SUBSCRIPTION_FIELD_CONDITION_DEFINITION={fields:[{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.FIELD_PATH),type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.STRING_SCALAR)}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.VALUES),type:{kind:Zt.Kind.NON_NULL_TYPE,type:{kind:Zt.Kind.LIST_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_VALUE)}}}],kind:Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FIELD_CONDITION)};Tr.SUBSCRIPTION_FILTER_CONDITION_DEFINITION={fields:[{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.AND_UPPER),type:{kind:Zt.Kind.LIST_TYPE,type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.IN_UPPER),type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FIELD_CONDITION)},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.OR_UPPER),type:{kind:Zt.Kind.LIST_TYPE,type:{kind:Zt.Kind.NON_NULL_TYPE,type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}}},{kind:Zt.Kind.INPUT_VALUE_DEFINITION,name:(0,dn.stringToNameNode)(fn.NOT_UPPER),type:(0,dn.stringToNamedTypeNode)(fn.SUBSCRIPTION_FILTER_CONDITION)}],kind:Zt.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FILTER_CONDITION)};Tr.SUBSCRIPTION_FILTER_VALUE_DEFINITION={kind:Zt.Kind.SCALAR_TYPE_DEFINITION,name:(0,dn.stringToNameNode)(fn.SUBSCRIPTION_FILTER_VALUE)}});var nd=w(Xn=>{"use strict";m();T();N();Object.defineProperty(Xn,"__esModule",{value:!0});Xn.CLIENT_PERSISTED_DIRECTIVE_NAMES=Xn.IGNORED_FEDERATED_TYPE_NAMES=Xn.DEPENDENCIES_BY_DIRECTIVE_NAME=Xn.COMPOSITE_OUTPUT_NODE_KINDS=Xn.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=Xn.SUBSCRIPTION_FILTER_INPUT_NAMES=Xn.STREAM_CONFIGURATION_FIELD_NAMES=Xn.EVENT_DIRECTIVE_NAMES=Xn.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=void 0;var tt=sr(),uE=Oe(),Ia=oE();Xn.TYPE_SYSTEM_DIRECTIVE_LOCATIONS=new Set([tt.ARGUMENT_DEFINITION_UPPER,tt.ENUM_UPPER,tt.ENUM_VALUE_UPPER,tt.FIELD_DEFINITION_UPPER,tt.INPUT_FIELD_DEFINITION_UPPER,tt.INPUT_OBJECT_UPPER,tt.INTERFACE_UPPER,tt.OBJECT_UPPER,tt.SCALAR_UPPER,tt.SCHEMA_UPPER,tt.UNION_UPPER]);Xn.EVENT_DIRECTIVE_NAMES=new Set([tt.EDFS_KAFKA_PUBLISH,tt.EDFS_KAFKA_SUBSCRIBE,tt.EDFS_NATS_PUBLISH,tt.EDFS_NATS_REQUEST,tt.EDFS_NATS_SUBSCRIBE,tt.EDFS_REDIS_PUBLISH,tt.EDFS_REDIS_SUBSCRIBE]);Xn.STREAM_CONFIGURATION_FIELD_NAMES=new Set([tt.CONSUMER_INACTIVE_THRESHOLD,tt.CONSUMER_NAME,tt.STREAM_NAME]);Xn.SUBSCRIPTION_FILTER_INPUT_NAMES=new Set([tt.AND_UPPER,tt.IN_UPPER,tt.NOT_UPPER,tt.OR_UPPER]);Xn.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES=new Set([tt.AND_UPPER,tt.OR_UPPER]);Xn.COMPOSITE_OUTPUT_NODE_KINDS=new Set([uE.Kind.INTERFACE_TYPE_DEFINITION,uE.Kind.INTERFACE_TYPE_EXTENSION,uE.Kind.OBJECT_TYPE_DEFINITION,uE.Kind.OBJECT_TYPE_EXTENSION]);Xn.DEPENDENCIES_BY_DIRECTIVE_NAME=new Map([[tt.CONNECT_FIELD_RESOLVER,[Ia.FIELD_SET_SCALAR_DEFINITION]],[tt.EDFS_NATS_SUBSCRIBE,[Ia.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION]],[tt.KEY,[Ia.FIELD_SET_SCALAR_DEFINITION]],[tt.LINK,[Ia.LINK_IMPORT_DEFINITION,Ia.LINK_PURPOSE_DEFINITION]],[tt.PROVIDES,[Ia.FIELD_SET_SCALAR_DEFINITION]],[tt.REQUIRES,[Ia.FIELD_SET_SCALAR_DEFINITION]],[tt.REQUIRES_SCOPES,[Ia.SCOPE_SCALAR_DEFINITION]],[tt.SUBSCRIPTION_FILTER,[Ia.SUBSCRIPTION_FIELD_CONDITION_DEFINITION,Ia.SUBSCRIPTION_FILTER_CONDITION_DEFINITION,Ia.SUBSCRIPTION_FILTER_VALUE_DEFINITION]]]);Xn.IGNORED_FEDERATED_TYPE_NAMES=new Set([tt.BOOLEAN_SCALAR,tt.EDFS_NATS_STREAM_CONFIGURATION,tt.FIELD_SET_SCALAR,tt.ID_SCALAR,tt.INT_SCALAR,tt.FLOAT_SCALAR,tt.LINK_IMPORT,tt.LINK_PURPOSE,tt.STRING_SCALAR,tt.SUBSCRIPTION_FIELD_CONDITION,tt.SUBSCRIPTION_FILTER_CONDITION,tt.SUBSCRIPTION_FILTER_VALUE]);Xn.CLIENT_PERSISTED_DIRECTIVE_NAMES=new Set([tt.DEPRECATED,tt.ONE_OF,tt.SEMANTIC_NON_NULL])});var Wi=w((CS,QM)=>{"use strict";m();T();N();var ap=function(e){return e&&e.Math===Math&&e};QM.exports=ap(typeof globalThis=="object"&&globalThis)||ap(typeof window=="object"&&window)||ap(typeof self=="object"&&self)||ap(typeof global=="object"&&global)||ap(typeof CS=="object"&&CS)||function(){return this}()||Function("return this")()});var Ls=w((pPe,YM)=>{"use strict";m();T();N();YM.exports=function(e){try{return!!e()}catch(t){return!0}}});var Du=w((EPe,JM)=>{"use strict";m();T();N();var foe=Ls();JM.exports=!foe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var BS=w((gPe,HM)=>{"use strict";m();T();N();var poe=Ls();HM.exports=!poe(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Rc=w((SPe,zM)=>{"use strict";m();T();N();var moe=BS(),cE=Function.prototype.call;zM.exports=moe?cE.bind(cE):function(){return cE.apply(cE,arguments)}});var ex=w(ZM=>{"use strict";m();T();N();var WM={}.propertyIsEnumerable,XM=Object.getOwnPropertyDescriptor,Noe=XM&&!WM.call({1:2},1);ZM.f=Noe?function(t){var n=XM(this,t);return!!n&&n.enumerable}:WM});var US=w((LPe,tx)=>{"use strict";m();T();N();tx.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Ei=w((kPe,ix)=>{"use strict";m();T();N();var nx=BS(),rx=Function.prototype,kS=rx.call,Toe=nx&&rx.bind.bind(kS,kS);ix.exports=nx?Toe:function(e){return function(){return kS.apply(e,arguments)}}});var ox=w((VPe,sx)=>{"use strict";m();T();N();var ax=Ei(),Eoe=ax({}.toString),hoe=ax("".slice);sx.exports=function(e){return hoe(Eoe(e),8,-1)}});var cx=w(($Pe,ux)=>{"use strict";m();T();N();var yoe=Ei(),Ioe=Ls(),goe=ox(),MS=Object,_oe=yoe("".split);ux.exports=Ioe(function(){return!MS("z").propertyIsEnumerable(0)})?function(e){return goe(e)==="String"?_oe(e,""):MS(e)}:MS});var xS=w((HPe,lx)=>{"use strict";m();T();N();lx.exports=function(e){return e==null}});var qS=w((ZPe,dx)=>{"use strict";m();T();N();var voe=xS(),Ooe=TypeError;dx.exports=function(e){if(voe(e))throw new Ooe("Can't call method on "+e);return e}});var lE=w((rFe,fx)=>{"use strict";m();T();N();var Soe=cx(),Doe=qS();fx.exports=function(e){return Soe(Doe(e))}});var ga=w((oFe,px)=>{"use strict";m();T();N();var VS=typeof document=="object"&&document.all;px.exports=typeof VS=="undefined"&&VS!==void 0?function(e){return typeof e=="function"||e===VS}:function(e){return typeof e=="function"}});var rd=w((dFe,mx)=>{"use strict";m();T();N();var boe=ga();mx.exports=function(e){return typeof e=="object"?e!==null:boe(e)}});var dE=w((NFe,Nx)=>{"use strict";m();T();N();var jS=Wi(),Aoe=ga(),Roe=function(e){return Aoe(e)?e:void 0};Nx.exports=function(e,t){return arguments.length<2?Roe(jS[e]):jS[e]&&jS[e][t]}});var Ex=w((yFe,Tx)=>{"use strict";m();T();N();var Poe=Ei();Tx.exports=Poe({}.isPrototypeOf)});var gx=w((vFe,Ix)=>{"use strict";m();T();N();var Foe=Wi(),hx=Foe.navigator,yx=hx&&hx.userAgent;Ix.exports=yx?String(yx):""});var Ax=w((bFe,bx)=>{"use strict";m();T();N();var Dx=Wi(),KS=gx(),_x=Dx.process,vx=Dx.Deno,Ox=_x&&_x.versions||vx&&vx.version,Sx=Ox&&Ox.v8,_a,fE;Sx&&(_a=Sx.split("."),fE=_a[0]>0&&_a[0]<4?1:+(_a[0]+_a[1]));!fE&&KS&&(_a=KS.match(/Edge\/(\d+)/),(!_a||_a[1]>=74)&&(_a=KS.match(/Chrome\/(\d+)/),_a&&(fE=+_a[1])));bx.exports=fE});var GS=w((FFe,Px)=>{"use strict";m();T();N();var Rx=Ax(),woe=Ls(),Loe=Wi(),Coe=Loe.String;Px.exports=!!Object.getOwnPropertySymbols&&!woe(function(){var e=Symbol("symbol detection");return!Coe(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rx&&Rx<41})});var $S=w((BFe,Fx)=>{"use strict";m();T();N();var Boe=GS();Fx.exports=Boe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var QS=w((xFe,wx)=>{"use strict";m();T();N();var Uoe=dE(),koe=ga(),Moe=Ex(),xoe=$S(),qoe=Object;wx.exports=xoe?function(e){return typeof e=="symbol"}:function(e){var t=Uoe("Symbol");return koe(t)&&Moe(t.prototype,qoe(e))}});var Cx=w((KFe,Lx)=>{"use strict";m();T();N();var Voe=String;Lx.exports=function(e){try{return Voe(e)}catch(t){return"Object"}}});var pE=w((YFe,Bx)=>{"use strict";m();T();N();var joe=ga(),Koe=Cx(),Goe=TypeError;Bx.exports=function(e){if(joe(e))return e;throw new Goe(Koe(e)+" is not a function")}});var YS=w((WFe,Ux)=>{"use strict";m();T();N();var $oe=pE(),Qoe=xS();Ux.exports=function(e,t){var n=e[t];return Qoe(n)?void 0:$oe(n)}});var Mx=w((twe,kx)=>{"use strict";m();T();N();var JS=Rc(),HS=ga(),zS=rd(),Yoe=TypeError;kx.exports=function(e,t){var n,r;if(t==="string"&&HS(n=e.toString)&&!zS(r=JS(n,e))||HS(n=e.valueOf)&&!zS(r=JS(n,e))||t!=="string"&&HS(n=e.toString)&&!zS(r=JS(n,e)))return r;throw new Yoe("Can't convert object to primitive value")}});var qx=w((awe,xx)=>{"use strict";m();T();N();xx.exports=!1});var mE=w((cwe,jx)=>{"use strict";m();T();N();var Vx=Wi(),Joe=Object.defineProperty;jx.exports=function(e,t){try{Joe(Vx,e,{value:t,configurable:!0,writable:!0})}catch(n){Vx[e]=t}return t}});var NE=w((pwe,$x)=>{"use strict";m();T();N();var Hoe=qx(),zoe=Wi(),Woe=mE(),Kx="__core-js_shared__",Gx=$x.exports=zoe[Kx]||Woe(Kx,{});(Gx.versions||(Gx.versions=[])).push({version:"3.41.0",mode:Hoe?"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 WS=w((Ewe,Yx)=>{"use strict";m();T();N();var Qx=NE();Yx.exports=function(e,t){return Qx[e]||(Qx[e]=t||{})}});var Hx=w((gwe,Jx)=>{"use strict";m();T();N();var Xoe=qS(),Zoe=Object;Jx.exports=function(e){return Zoe(Xoe(e))}});var bu=w((Swe,zx)=>{"use strict";m();T();N();var eue=Ei(),tue=Hx(),nue=eue({}.hasOwnProperty);zx.exports=Object.hasOwn||function(t,n){return nue(tue(t),n)}});var XS=w((Rwe,Wx)=>{"use strict";m();T();N();var rue=Ei(),iue=0,aue=Math.random(),sue=rue(1 .toString);Wx.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+sue(++iue+aue,36)}});var eq=w((Lwe,Zx)=>{"use strict";m();T();N();var oue=Wi(),uue=WS(),Xx=bu(),cue=XS(),lue=GS(),due=$S(),id=oue.Symbol,ZS=uue("wks"),fue=due?id.for||id:id&&id.withoutSetter||cue;Zx.exports=function(e){return Xx(ZS,e)||(ZS[e]=lue&&Xx(id,e)?id[e]:fue("Symbol."+e)),ZS[e]}});var iq=w((kwe,rq)=>{"use strict";m();T();N();var pue=Rc(),tq=rd(),nq=QS(),mue=YS(),Nue=Mx(),Tue=eq(),Eue=TypeError,hue=Tue("toPrimitive");rq.exports=function(e,t){if(!tq(e)||nq(e))return e;var n=mue(e,hue),r;if(n){if(t===void 0&&(t="default"),r=pue(n,e,t),!tq(r)||nq(r))return r;throw new Eue("Can't convert object to primitive value")}return t===void 0&&(t="number"),Nue(e,t)}});var eD=w((Vwe,aq)=>{"use strict";m();T();N();var yue=iq(),Iue=QS();aq.exports=function(e){var t=yue(e,"string");return Iue(t)?t:t+""}});var uq=w(($we,oq)=>{"use strict";m();T();N();var gue=Wi(),sq=rd(),tD=gue.document,_ue=sq(tD)&&sq(tD.createElement);oq.exports=function(e){return _ue?tD.createElement(e):{}}});var nD=w((Hwe,cq)=>{"use strict";m();T();N();var vue=Du(),Oue=Ls(),Sue=uq();cq.exports=!vue&&!Oue(function(){return Object.defineProperty(Sue("div"),"a",{get:function(){return 7}}).a!==7})});var rD=w(dq=>{"use strict";m();T();N();var Due=Du(),bue=Rc(),Aue=ex(),Rue=US(),Pue=lE(),Fue=eD(),wue=bu(),Lue=nD(),lq=Object.getOwnPropertyDescriptor;dq.f=Due?lq:function(t,n){if(t=Pue(t),n=Fue(n),Lue)try{return lq(t,n)}catch(r){}if(wue(t,n))return Rue(!bue(Aue.f,t,n),t[n])}});var pq=w((rLe,fq)=>{"use strict";m();T();N();var Cue=Du(),Bue=Ls();fq.exports=Cue&&Bue(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var sp=w((oLe,mq)=>{"use strict";m();T();N();var Uue=rd(),kue=String,Mue=TypeError;mq.exports=function(e){if(Uue(e))return e;throw new Mue(kue(e)+" is not an object")}});var EE=w(Tq=>{"use strict";m();T();N();var xue=Du(),que=nD(),Vue=pq(),TE=sp(),Nq=eD(),jue=TypeError,iD=Object.defineProperty,Kue=Object.getOwnPropertyDescriptor,aD="enumerable",sD="configurable",oD="writable";Tq.f=xue?Vue?function(t,n,r){if(TE(t),n=Nq(n),TE(r),typeof t=="function"&&n==="prototype"&&"value"in r&&oD in r&&!r[oD]){var i=Kue(t,n);i&&i[oD]&&(t[n]=r.value,r={configurable:sD in r?r[sD]:i[sD],enumerable:aD in r?r[aD]:i[aD],writable:!1})}return iD(t,n,r)}:iD:function(t,n,r){if(TE(t),n=Nq(n),TE(r),que)try{return iD(t,n,r)}catch(i){}if("get"in r||"set"in r)throw new jue("Accessors not supported");return"value"in r&&(t[n]=r.value),t}});var uD=w((NLe,Eq)=>{"use strict";m();T();N();var Gue=Du(),$ue=EE(),Que=US();Eq.exports=Gue?function(e,t,n){return $ue.f(e,t,Que(1,n))}:function(e,t,n){return e[t]=n,e}});var Iq=w((yLe,yq)=>{"use strict";m();T();N();var cD=Du(),Yue=bu(),hq=Function.prototype,Jue=cD&&Object.getOwnPropertyDescriptor,lD=Yue(hq,"name"),Hue=lD&&function(){}.name==="something",zue=lD&&(!cD||cD&&Jue(hq,"name").configurable);yq.exports={EXISTS:lD,PROPER:Hue,CONFIGURABLE:zue}});var _q=w((vLe,gq)=>{"use strict";m();T();N();var Wue=Ei(),Xue=ga(),dD=NE(),Zue=Wue(Function.toString);Xue(dD.inspectSource)||(dD.inspectSource=function(e){return Zue(e)});gq.exports=dD.inspectSource});var Sq=w((bLe,Oq)=>{"use strict";m();T();N();var ece=Wi(),tce=ga(),vq=ece.WeakMap;Oq.exports=tce(vq)&&/native code/.test(String(vq))});var Aq=w((FLe,bq)=>{"use strict";m();T();N();var nce=WS(),rce=XS(),Dq=nce("keys");bq.exports=function(e){return Dq[e]||(Dq[e]=rce(e))}});var fD=w((BLe,Rq)=>{"use strict";m();T();N();Rq.exports={}});var Lq=w((xLe,wq)=>{"use strict";m();T();N();var ice=Sq(),Fq=Wi(),ace=rd(),sce=uD(),pD=bu(),mD=NE(),oce=Aq(),uce=fD(),Pq="Object already initialized",ND=Fq.TypeError,cce=Fq.WeakMap,hE,op,yE,lce=function(e){return yE(e)?op(e):hE(e,{})},dce=function(e){return function(t){var n;if(!ace(t)||(n=op(t)).type!==e)throw new ND("Incompatible receiver, "+e+" required");return n}};ice||mD.state?(va=mD.state||(mD.state=new cce),va.get=va.get,va.has=va.has,va.set=va.set,hE=function(e,t){if(va.has(e))throw new ND(Pq);return t.facade=e,va.set(e,t),t},op=function(e){return va.get(e)||{}},yE=function(e){return va.has(e)}):(Pc=oce("state"),uce[Pc]=!0,hE=function(e,t){if(pD(e,Pc))throw new ND(Pq);return t.facade=e,sce(e,Pc,t),t},op=function(e){return pD(e,Pc)?e[Pc]:{}},yE=function(e){return pD(e,Pc)});var va,Pc;wq.exports={set:hE,get:op,has:yE,enforce:lce,getterFor:dce}});var kq=w((KLe,Uq)=>{"use strict";m();T();N();var ED=Ei(),fce=Ls(),pce=ga(),IE=bu(),TD=Du(),mce=Iq().CONFIGURABLE,Nce=_q(),Bq=Lq(),Tce=Bq.enforce,Ece=Bq.get,Cq=String,gE=Object.defineProperty,hce=ED("".slice),yce=ED("".replace),Ice=ED([].join),gce=TD&&!fce(function(){return gE(function(){},"length",{value:8}).length!==8}),_ce=String(String).split("String"),vce=Uq.exports=function(e,t,n){hce(Cq(t),0,7)==="Symbol("&&(t="["+yce(Cq(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!IE(e,"name")||mce&&e.name!==t)&&(TD?gE(e,"name",{value:t,configurable:!0}):e.name=t),gce&&n&&IE(n,"arity")&&e.length!==n.arity&&gE(e,"length",{value:n.arity});try{n&&IE(n,"constructor")&&n.constructor?TD&&gE(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=Tce(e);return IE(r,"source")||(r.source=Ice(_ce,typeof t=="string"?t:"")),e};Function.prototype.toString=vce(function(){return pce(this)&&Ece(this).source||Nce(this)},"toString")});var xq=w((YLe,Mq)=>{"use strict";m();T();N();var Oce=ga(),Sce=EE(),Dce=kq(),bce=mE();Mq.exports=function(e,t,n,r){r||(r={});var i=r.enumerable,a=r.name!==void 0?r.name:t;if(Oce(n)&&Dce(n,a,r),r.global)i?e[t]=n:bce(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(o){}i?e[t]=n:Sce.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e}});var Vq=w((WLe,qq)=>{"use strict";m();T();N();var Ace=Math.ceil,Rce=Math.floor;qq.exports=Math.trunc||function(t){var n=+t;return(n>0?Rce:Ace)(n)}});var _E=w((tCe,jq)=>{"use strict";m();T();N();var Pce=Vq();jq.exports=function(e){var t=+e;return t!==t||t===0?0:Pce(t)}});var Gq=w((aCe,Kq)=>{"use strict";m();T();N();var Fce=_E(),wce=Math.max,Lce=Math.min;Kq.exports=function(e,t){var n=Fce(e);return n<0?wce(n+t,0):Lce(n,t)}});var Qq=w((cCe,$q)=>{"use strict";m();T();N();var Cce=_E(),Bce=Math.min;$q.exports=function(e){var t=Cce(e);return t>0?Bce(t,9007199254740991):0}});var Jq=w((pCe,Yq)=>{"use strict";m();T();N();var Uce=Qq();Yq.exports=function(e){return Uce(e.length)}});var Wq=w((ECe,zq)=>{"use strict";m();T();N();var kce=lE(),Mce=Gq(),xce=Jq(),Hq=function(e){return function(t,n,r){var i=kce(t),a=xce(i);if(a===0)return!e&&-1;var o=Mce(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}};zq.exports={includes:Hq(!0),indexOf:Hq(!1)}});var e1=w((gCe,Zq)=>{"use strict";m();T();N();var qce=Ei(),hD=bu(),Vce=lE(),jce=Wq().indexOf,Kce=fD(),Xq=qce([].push);Zq.exports=function(e,t){var n=Vce(e),r=0,i=[],a;for(a in n)!hD(Kce,a)&&hD(n,a)&&Xq(i,a);for(;t.length>r;)hD(n,a=t[r++])&&(~jce(i,a)||Xq(i,a));return i}});var n1=w((SCe,t1)=>{"use strict";m();T();N();t1.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var i1=w(r1=>{"use strict";m();T();N();var Gce=e1(),$ce=n1(),Qce=$ce.concat("length","prototype");r1.f=Object.getOwnPropertyNames||function(t){return Gce(t,Qce)}});var s1=w(a1=>{"use strict";m();T();N();a1.f=Object.getOwnPropertySymbols});var u1=w((kCe,o1)=>{"use strict";m();T();N();var Yce=dE(),Jce=Ei(),Hce=i1(),zce=s1(),Wce=sp(),Xce=Jce([].concat);o1.exports=Yce("Reflect","ownKeys")||function(t){var n=Hce.f(Wce(t)),r=zce.f;return r?Xce(n,r(t)):n}});var d1=w((VCe,l1)=>{"use strict";m();T();N();var c1=bu(),Zce=u1(),ele=rD(),tle=EE();l1.exports=function(e,t,n){for(var r=Zce(t),i=tle.f,a=ele.f,o=0;o{"use strict";m();T();N();var nle=Ls(),rle=ga(),ile=/#|\.prototype\./,up=function(e,t){var n=sle[ale(e)];return n===ule?!0:n===ole?!1:rle(t)?nle(t):!!t},ale=up.normalize=function(e){return String(e).replace(ile,".").toLowerCase()},sle=up.data={},ole=up.NATIVE="N",ule=up.POLYFILL="P";f1.exports=up});var yD=w((HCe,m1)=>{"use strict";m();T();N();var vE=Wi(),cle=rD().f,lle=uD(),dle=xq(),fle=mE(),ple=d1(),mle=p1();m1.exports=function(e,t){var n=e.target,r=e.global,i=e.stat,a,o,c,l,d,p;if(r?o=vE:i?o=vE[n]||fle(n,{}):o=vE[n]&&vE[n].prototype,o)for(c in t){if(d=t[c],e.dontCallGetSet?(p=cle(o,c),l=p&&p.value):l=o[c],a=mle(r?c:n+(i?".":"#")+c,e.forced),!a&&l!==void 0){if(typeof d==typeof l)continue;ple(d,l)}(e.sham||l&&l.sham)&&lle(d,"sham",!0),dle(o,c,d,e)}}});var cp=w((ZCe,N1)=>{"use strict";m();T();N();var ID=Ei(),OE=Set.prototype;N1.exports={Set,add:ID(OE.add),has:ID(OE.has),remove:ID(OE.delete),proto:OE}});var gD=w((rBe,T1)=>{"use strict";m();T();N();var Nle=cp().has;T1.exports=function(e){return Nle(e),e}});var h1=w((oBe,E1)=>{"use strict";m();T();N();var Tle=Ei(),Ele=pE();E1.exports=function(e,t,n){try{return Tle(Ele(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(r){}}});var _D=w((dBe,y1)=>{"use strict";m();T();N();var hle=h1(),yle=cp();y1.exports=hle(yle.proto,"size","get")||function(e){return e.size}});var vD=w((NBe,I1)=>{"use strict";m();T();N();var Ile=Rc();I1.exports=function(e,t,n){for(var r=n?e:e.iterator,i=e.next,a,o;!(a=Ile(i,r)).done;)if(o=t(a.value),o!==void 0)return o}});var D1=w((yBe,S1)=>{"use strict";m();T();N();var g1=Ei(),gle=vD(),_1=cp(),_le=_1.Set,v1=_1.proto,vle=g1(v1.forEach),O1=g1(v1.keys),Ole=O1(new _le).next;S1.exports=function(e,t,n){return n?gle({iterator:O1(e),next:Ole},t):vle(e,t)}});var A1=w((vBe,b1)=>{"use strict";m();T();N();b1.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var OD=w((bBe,C1)=>{"use strict";m();T();N();var R1=pE(),w1=sp(),P1=Rc(),Sle=_E(),Dle=A1(),F1="Invalid size",ble=RangeError,Ale=TypeError,Rle=Math.max,L1=function(e,t){this.set=e,this.size=Rle(t,0),this.has=R1(e.has),this.keys=R1(e.keys)};L1.prototype={getIterator:function(){return Dle(w1(P1(this.keys,this.set)))},includes:function(e){return P1(this.has,this.set,e)}};C1.exports=function(e){w1(e);var t=+e.size;if(t!==t)throw new Ale(F1);var n=Sle(t);if(n<0)throw new ble(F1);return new L1(e,n)}});var U1=w((FBe,B1)=>{"use strict";m();T();N();var Ple=gD(),Fle=_D(),wle=D1(),Lle=OD();B1.exports=function(t){var n=Ple(this),r=Lle(t);return Fle(n)>r.size?!1:wle(n,function(i){if(!r.includes(i))return!1},!0)!==!1}});var SD=w((BBe,x1)=>{"use strict";m();T();N();var Cle=dE(),k1=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},M1=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};x1.exports=function(e,t){var n=Cle("Set");try{new n()[e](k1(0));try{return new n()[e](k1(-1)),!1}catch(i){if(!t)return!0;try{return new n()[e](M1(-1/0)),!1}catch(a){var r=new n;return r.add(1),r.add(2),t(r[e](M1(1/0)))}}}catch(i){return!1}}});var q1=w(()=>{"use strict";m();T();N();var Ble=yD(),Ule=U1(),kle=SD(),Mle=!kle("isSubsetOf",function(e){return e});Ble({target:"Set",proto:!0,real:!0,forced:Mle},{isSubsetOf:Ule})});var V1=w(()=>{"use strict";m();T();N();q1()});var G1=w((HBe,K1)=>{"use strict";m();T();N();var xle=Rc(),j1=sp(),qle=YS();K1.exports=function(e,t,n){var r,i;j1(e);try{if(r=qle(e,"return"),!r){if(t==="throw")throw n;return n}r=xle(r,e)}catch(a){i=!0,r=a}if(t==="throw")throw n;if(i)throw r;return j1(r),n}});var Q1=w((ZBe,$1)=>{"use strict";m();T();N();var Vle=gD(),jle=cp().has,Kle=_D(),Gle=OD(),$le=vD(),Qle=G1();$1.exports=function(t){var n=Vle(this),r=Gle(t);if(Kle(n){"use strict";m();T();N();var Yle=yD(),Jle=Q1(),Hle=SD(),zle=!Hle("isSupersetOf",function(e){return!e});Yle({target:"Set",proto:!0,real:!0,forced:zle},{isSupersetOf:Jle})});var J1=w(()=>{"use strict";m();T();N();Y1()});var lp=w(Rn=>{"use strict";m();T();N();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.subtractSet=Xle;Rn.mapToArrayOfValues=Zle;Rn.kindToConvertedTypeString=ede;Rn.fieldDatasToSimpleFieldDatas=tde;Rn.isNodeLeaf=nde;Rn.newEntityInterfaceFederationData=rde;Rn.upsertEntityInterfaceFederationData=ide;Rn.upsertEntityData=sde;Rn.updateEntityData=H1;Rn.newFieldAuthorizationData=ode;Rn.newAuthorizationData=ude;Rn.addScopes=DD;Rn.mergeRequiredScopesByAND=bE;Rn.mergeRequiredScopesByOR=bD;Rn.upsertFieldAuthorizationData=z1;Rn.upsertAuthorizationData=dde;Rn.upsertAuthorizationConfiguration=fde;Rn.isObjectNodeKind=pde;Rn.isCompositeOutputNodeKind=mde;Rn.isObjectDefinitionData=Nde;Rn.getNodeCoords=Tde;var Kt=Oe(),ii=sr(),SE=Rr(),DE=Iu();V1();J1();var Wle=nd();function Xle(e,t){for(let n of e)t.delete(n)}function Zle(e){let t=[];for(let n of e.values())t.push(n);return t}function ede(e){switch(e){case Kt.Kind.BOOLEAN:return ii.BOOLEAN_SCALAR;case Kt.Kind.ENUM:case Kt.Kind.ENUM_TYPE_DEFINITION:case Kt.Kind.ENUM_TYPE_EXTENSION:return ii.ENUM;case Kt.Kind.ENUM_VALUE_DEFINITION:return ii.ENUM_VALUE;case Kt.Kind.FIELD_DEFINITION:return ii.FIELD;case Kt.Kind.FLOAT:return ii.FLOAT_SCALAR;case Kt.Kind.INPUT_OBJECT_TYPE_DEFINITION:case Kt.Kind.INPUT_OBJECT_TYPE_EXTENSION:return ii.INPUT_OBJECT;case Kt.Kind.INPUT_VALUE_DEFINITION:return ii.INPUT_VALUE;case Kt.Kind.INT:return ii.INT_SCALAR;case Kt.Kind.INTERFACE_TYPE_DEFINITION:case Kt.Kind.INTERFACE_TYPE_EXTENSION:return ii.INTERFACE;case Kt.Kind.NULL:return ii.NULL;case Kt.Kind.OBJECT:case Kt.Kind.OBJECT_TYPE_DEFINITION:case Kt.Kind.OBJECT_TYPE_EXTENSION:return ii.OBJECT;case Kt.Kind.STRING:return ii.STRING_SCALAR;case Kt.Kind.SCALAR_TYPE_DEFINITION:case Kt.Kind.SCALAR_TYPE_EXTENSION:return ii.SCALAR;case Kt.Kind.UNION_TYPE_DEFINITION:case Kt.Kind.UNION_TYPE_EXTENSION:return ii.UNION;default:return e}}function tde(e){let t=[];for(let{name:n,namedTypeName:r}of e)t.push({name:n,namedTypeName:r});return t}function nde(e){if(!e)return!0;switch(e){case Kt.Kind.OBJECT_TYPE_DEFINITION:case Kt.Kind.INTERFACE_TYPE_DEFINITION:case Kt.Kind.UNION_TYPE_DEFINITION:return!1;default:return!0}}function rde(e,t){return{concreteTypeNames:new Set(e.concreteTypeNames),fieldDatasBySubgraphName:new Map([[t,e.fieldDatas]]),interfaceFieldNames:new Set(e.interfaceFieldNames),interfaceObjectFieldNames:new Set(e.interfaceObjectFieldNames),interfaceObjectSubgraphNames:new Set(e.isInterfaceObject?[t]:[]),subgraphDataByTypeName:new Map([[t,e]]),typeName:e.typeName}}function ide(e,t,n){(0,SE.addIterableToSet)({source:t.concreteTypeNames,target:e.concreteTypeNames}),e.subgraphDataByTypeName.set(n,t),e.fieldDatasBySubgraphName.set(n,t.fieldDatas),(0,SE.addIterableToSet)({source:t.interfaceFieldNames,target:e.interfaceFieldNames}),(0,SE.addIterableToSet)({source:t.interfaceObjectFieldNames,target:e.interfaceObjectFieldNames}),t.isInterfaceObject&&e.interfaceObjectSubgraphNames.add(n)}function ade({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 sde({entityDataByTypeName:e,keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}){let i=e.get(r);i?H1({entityData:i,keyFieldSetDataByFieldSet:t,subgraphName:n}):e.set(r,ade({keyFieldSetDataByFieldSet:t,subgraphName:n,typeName:r}))}function H1({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 ode(e){return{fieldName:e,inheritedData:{requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1},originalData:{requiredScopes:[],requiresAuthentication:!1}}}function ude(e){return{fieldAuthDataByFieldName:new Map,requiredScopes:[],requiredScopesByOR:[],requiresAuthentication:!1,typeName:e}}function DD(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 bE(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,SE.addSets)(r,i);DD(n,a)}return n}function bD(e,t){for(let n of t)DD(e,n);return e.length<=DE.MAX_OR_SCOPES}function z1(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),!bD(r.inheritedData.requiredScopesByOR,t.inheritedData.requiredScopes)||r.inheritedData.requiredScopes.length*t.inheritedData.requiredScopes.length>DE.MAX_OR_SCOPES||r.originalData.requiredScopes.length*t.originalData.requiredScopes.length>DE.MAX_OR_SCOPES?!1:(r.inheritedData.requiredScopes=bE(r.inheritedData.requiredScopes,t.inheritedData.requiredScopes),r.originalData.requiredScopes=bE(r.originalData.requiredScopes,t.originalData.requiredScopes),!0)):(e.set(n,W1(t)),!0)}function cde(e){let t=new Map;for(let[n,r]of e)t.set(n,W1(r));return t}function W1(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 lde(e){return{fieldAuthDataByFieldName:cde(e.fieldAuthDataByFieldName),requiredScopes:[...e.requiredScopes],requiredScopesByOR:[...e.requiredScopes],requiresAuthentication:e.requiresAuthentication,typeName:e.typeName}}function dde(e,t,n){let r=e.get(t.typeName);if(!r){e.set(t.typeName,lde(t));return}r.requiresAuthentication||(r.requiresAuthentication=t.requiresAuthentication),!bD(r.requiredScopesByOR,t.requiredScopes)||r.requiredScopes.length*t.requiredScopes.length>DE.MAX_OR_SCOPES?n.add(t.typeName):r.requiredScopes=bE(r.requiredScopes,t.requiredScopes);for(let[i,a]of t.fieldAuthDataByFieldName)z1(r.fieldAuthDataByFieldName,a)||n.add(`${t.typeName}.${i}`)}function fde(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 pde(e){return e===Kt.Kind.OBJECT_TYPE_DEFINITION||e===Kt.Kind.OBJECT_TYPE_EXTENSION}function mde(e){return Wle.COMPOSITE_OUTPUT_NODE_KINDS.has(e)}function Nde(e){return e?e.kind===Kt.Kind.OBJECT_TYPE_DEFINITION:!1}function Tde(e){switch(e.kind){case Kt.Kind.ARGUMENT:case Kt.Kind.FIELD_DEFINITION:case Kt.Kind.INPUT_VALUE_DEFINITION:case Kt.Kind.ENUM_VALUE_DEFINITION:return e.federatedCoords;default:return e.name}}});var AD=w(Ge=>{"use strict";m();T();N();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.TAG_DEFINITION_DATA=Ge.SUBSCRIPTION_FILTER_DEFINITION_DATA=Ge.SHAREABLE_DEFINITION_DATA=Ge.SPECIFIED_BY_DEFINITION_DATA=Ge.SEMANTIC_NON_NULL_DATA=Ge.REQUIRES_SCOPES_DEFINITION_DATA=Ge.REQUIRE_FETCH_REASONS_DEFINITION_DATA=Ge.REDIS_SUBSCRIBE_DEFINITION_DATA=Ge.REDIS_PUBLISH_DEFINITION_DATA=Ge.REQUIRES_DEFINITION_DATA=Ge.PROVIDES_DEFINITION_DATA=Ge.LINK_DEFINITION_DATA=Ge.KEY_DEFINITION_DATA=Ge.OVERRIDE_DEFINITION_DATA=Ge.ONE_OF_DEFINITION_DATA=Ge.NATS_SUBSCRIBE_DEFINITION_DATA=Ge.NATS_REQUEST_DEFINITION_DATA=Ge.NATS_PUBLISH_DEFINITION_DATA=Ge.KAFKA_SUBSCRIBE_DEFINITION_DATA=Ge.KAFKA_PUBLISH_DEFINITION_DATA=Ge.INTERFACE_OBJECT_DEFINITION_DATA=Ge.INACCESSIBLE_DEFINITION_DATA=Ge.EXTERNAL_DEFINITION_DATA=Ge.EXTENDS_DEFINITION_DATA=Ge.DEPRECATED_DEFINITION_DATA=Ge.CONNECT_FIELD_RESOLVER_DEFINITION_DATA=Ge.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA=Ge.CONFIGURE_DESCRIPTION_DEFINITION_DATA=Ge.COMPOSE_DIRECTIVE_DEFINITION_DATA=Ge.AUTHENTICATED_DEFINITION_DATA=void 0;var Xi=Ar(),Gt=Oe(),x=sr(),en=kf(),Pn=aT();Ge.AUTHENTICATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER]),name:x.AUTHENTICATED,node:en.AUTHENTICATED_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.COMPOSE_DIRECTIVE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.NAME,{name:x.NAME,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([x.SCHEMA_UPPER]),name:x.COMPOSE_DIRECTIVE,node:en.COMPOSE_DIRECTIVE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.NAME])};Ge.CONFIGURE_DESCRIPTION_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.PROPAGATE,{name:x.PROPAGATE,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.BOOLEAN_SCALAR)},defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}],[x.DESCRIPTION_OVERRIDE,{name:x.DESCRIPTION_OVERRIDE,typeNode:(0,Xi.stringToNamedTypeNode)(x.STRING_SCALAR)}]]),isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.INPUT_OBJECT_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.SCHEMA_UPPER,x.UNION_UPPER]),name:x.CONFIGURE_DESCRIPTION,node:en.CONFIGURE_DESCRIPTION_DEFINITION,optionalArgumentNames:new Set([x.PROPAGATE,x.DESCRIPTION_OVERRIDE]),requiredArgumentNames:new Set};Ge.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.PROPAGATE,{name:x.PROPAGATE,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.BOOLEAN_SCALAR)},defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.CONFIGURE_CHILD_DESCRIPTIONS,node:en.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION,optionalArgumentNames:new Set([x.PROPAGATE]),requiredArgumentNames:new Set};Ge.CONNECT_FIELD_RESOLVER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CONTEXT,{name:x.CONTEXT,typeNode:Pn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.CONNECT_FIELD_RESOLVER,node:en.CONNECT_FIELD_RESOLVER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.CONTEXT])};Ge.DEPRECATED_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.REASON,{name:x.REASON,typeNode:(0,Xi.stringToNamedTypeNode)(x.STRING_SCALAR),defaultValue:{kind:Gt.Kind.STRING,value:Gt.DEFAULT_DEPRECATION_REASON}}]]),isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER]),name:x.DEPRECATED,node:en.DEPRECATED_DEFINITION,optionalArgumentNames:new Set([x.REASON]),requiredArgumentNames:new Set};Ge.EXTENDS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.EXTENDS,node:en.EXTENDS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.EXTERNAL_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER,x.OBJECT_UPPER]),name:x.EXTERNAL,node:en.EXTERNAL_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.INACCESSIBLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.UNION_UPPER]),name:x.INACCESSIBLE,node:en.INACCESSIBLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.INTERFACE_OBJECT_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!1,locations:new Set([x.OBJECT_UPPER]),name:x.INTERFACE_OBJECT,node:en.INTERFACE_OBJECT_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.KAFKA_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.TOPIC,{name:x.TOPIC,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_KAFKA_PUBLISH,node:en.EDFS_KAFKA_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.TOPIC])};Ge.KAFKA_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.TOPICS,{name:x.TOPICS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Pn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_KAFKA_SUBSCRIBE,node:en.EDFS_KAFKA_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.TOPICS])};Ge.NATS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECT,{name:x.SUBJECT,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_PUBLISH,node:en.EDFS_NATS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.SUBJECT])};Ge.NATS_REQUEST_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECT,{name:x.SUBJECT,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_REQUEST,node:en.EDFS_NATS_REQUEST_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.SUBJECT])};Ge.NATS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SUBJECTS,{name:x.SUBJECTS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Pn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}],[x.STREAM_CONFIGURATION,{name:x.STREAM_CONFIGURATION,typeNode:(0,Xi.stringToNamedTypeNode)(x.EDFS_NATS_STREAM_CONFIGURATION)}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_NATS_SUBSCRIBE,node:en.EDFS_NATS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID,x.STREAM_CONFIGURATION]),requiredArgumentNames:new Set([x.SUBJECTS])};Ge.ONE_OF_DEFINITION_DATA={argumentTypeNodeByName:new Map([]),isRepeatable:!1,locations:new Set([x.INPUT_OBJECT_UPPER]),name:x.ONE_OF,node:en.ONE_OF_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.OVERRIDE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FROM,{name:x.FROM,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.OVERRIDE,node:en.OVERRIDE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FROM])};Ge.KEY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Pn.REQUIRED_FIELDSET_TYPE_NODE}],[x.RESOLVABLE,{name:x.RESOLVABLE,typeNode:(0,Xi.stringToNamedTypeNode)(x.BOOLEAN_SCALAR),defaultValue:{kind:Gt.Kind.BOOLEAN,value:!0}}]]),isRepeatable:!0,locations:new Set([x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.KEY,node:en.KEY_DEFINITION,optionalArgumentNames:new Set([x.RESOLVABLE]),requiredArgumentNames:new Set([x.FIELDS])};Ge.LINK_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.URL_LOWER,{name:x.URL_LOWER,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.AS,{name:x.AS,typeNode:(0,Xi.stringToNamedTypeNode)(x.STRING_SCALAR)}],[x.FOR,{name:x.FOR,typeNode:(0,Xi.stringToNamedTypeNode)(x.LINK_PURPOSE)}],[x.IMPORT,{name:x.IMPORT,typeNode:{kind:Gt.Kind.LIST_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.LINK_IMPORT)}}]]),isRepeatable:!0,locations:new Set([x.SCHEMA_UPPER]),name:x.LINK,node:en.LINK_DEFINITION,optionalArgumentNames:new Set([x.AS,x.FOR,x.IMPORT]),requiredArgumentNames:new Set([x.URL_LOWER])};Ge.PROVIDES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Pn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.PROVIDES,node:en.PROVIDES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FIELDS])};Ge.REQUIRES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.FIELDS,{name:x.FIELDS,typeNode:Pn.REQUIRED_FIELDSET_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.REQUIRES,node:en.REQUIRES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.FIELDS])};Ge.REDIS_PUBLISH_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CHANNEL,{name:x.CHANNEL,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_REDIS_PUBLISH,node:en.EDFS_REDIS_PUBLISH_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.CHANNEL])};Ge.REDIS_SUBSCRIBE_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CHANNELS,{name:x.CHANNELS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:Pn.REQUIRED_STRING_TYPE_NODE}}}],[x.PROVIDER_ID,{name:x.PROVIDER_ID,typeNode:Pn.REQUIRED_STRING_TYPE_NODE,defaultValue:{kind:Gt.Kind.STRING,value:x.DEFAULT_EDFS_PROVIDER_ID}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.EDFS_REDIS_SUBSCRIBE,node:en.EDFS_REDIS_SUBSCRIBE_DEFINITION,optionalArgumentNames:new Set([x.PROVIDER_ID]),requiredArgumentNames:new Set([x.CHANNELS])};Ge.REQUIRE_FETCH_REASONS_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER]),name:x.REQUIRE_FETCH_REASONS,node:en.REQUIRE_FETCH_REASONS_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.REQUIRES_SCOPES_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.SCOPES,{name:x.SCOPES,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.SCOPE_SCALAR)}}}}}}]]),isRepeatable:!1,locations:new Set([x.ENUM_UPPER,x.FIELD_DEFINITION_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER]),name:x.REQUIRES_SCOPES,node:en.REQUIRES_SCOPES_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.SCOPES])};Ge.SEMANTIC_NON_NULL_DATA={argumentTypeNodeByName:new Map([[x.LEVELS,{name:x.LEVELS,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:{kind:Gt.Kind.LIST_TYPE,type:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.INT_SCALAR)}}},defaultValue:{kind:Gt.Kind.LIST,values:[{kind:Gt.Kind.INT,value:"0"}]}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.SEMANTIC_NON_NULL,node:en.SEMANTIC_NON_NULL_DEFINITION,optionalArgumentNames:new Set([x.LEVELS]),requiredArgumentNames:new Set};Ge.SPECIFIED_BY_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.URL_LOWER,{name:x.URL_LOWER,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!1,locations:new Set([x.SCALAR_UPPER]),name:x.SPECIFIED_BY,node:en.SPECIFIED_BY_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.URL_LOWER])};Ge.SHAREABLE_DEFINITION_DATA={argumentTypeNodeByName:new Map,isRepeatable:!0,locations:new Set([x.FIELD_DEFINITION_UPPER,x.OBJECT_UPPER]),name:x.SHAREABLE,node:en.SHAREABLE_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set};Ge.SUBSCRIPTION_FILTER_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.CONDITION,{name:x.CONDITION,typeNode:{kind:Gt.Kind.NON_NULL_TYPE,type:(0,Xi.stringToNamedTypeNode)(x.SUBSCRIPTION_FILTER_CONDITION)}}]]),isRepeatable:!1,locations:new Set([x.FIELD_DEFINITION_UPPER]),name:x.SUBSCRIPTION_FILTER,node:en.SUBSCRIPTION_FILTER_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.CONDITION])};Ge.TAG_DEFINITION_DATA={argumentTypeNodeByName:new Map([[x.NAME,{name:x.NAME,typeNode:Pn.REQUIRED_STRING_TYPE_NODE}]]),isRepeatable:!0,locations:new Set([x.ARGUMENT_DEFINITION_UPPER,x.ENUM_UPPER,x.ENUM_VALUE_UPPER,x.FIELD_DEFINITION_UPPER,x.INPUT_FIELD_DEFINITION_UPPER,x.INPUT_OBJECT_UPPER,x.INTERFACE_UPPER,x.OBJECT_UPPER,x.SCALAR_UPPER,x.UNION_UPPER]),name:x.TAG,node:en.TAG_DEFINITION,optionalArgumentNames:new Set,requiredArgumentNames:new Set([x.NAME])}});var dp=w(Oa=>{"use strict";m();T();N();Object.defineProperty(Oa,"__esModule",{value:!0});Oa.newFieldSetData=Ede;Oa.extractFieldSetValue=hde;Oa.getNormalizedFieldSet=yde;Oa.getInitialFieldCoordsPath=Ide;Oa.validateKeyFieldSets=gde;Oa.getConditionalFieldSetDirectiveName=_de;Oa.isNodeQuery=vde;Oa.validateArgumentTemplateReferences=Ode;Oa.initializeDirectiveDefinitionDatas=Sde;var ur=Oe(),X1=Ar(),Lr=qi(),Z1=Iu(),RD=yu(),tn=AD(),Dt=sr(),Au=Rr();function Ede(){return{provides:new Map,requires:new Map}}function hde(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!==Dt.FIELDS||i.value.kind!==ur.Kind.STRING||t.set(e,i.value.value)}function yde(e){return(0,ur.print)((0,X1.lexicographicallySortDocumentNode)(e)).replaceAll(/\s+/g," ").slice(2,-2)}function Ide(e,t){return e?[t]:[]}function gde(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),d=0;for(let[p,{documentNode:E,isUnresolvable:I,rawFieldSet:v}]of n){r&&(r.resolvable||(r.resolvable=!I)),d+=1;let A=[],U=[t],j=[],G=[],re=new Set,ne=-1,me=!0,ue="";if((0,ur.visit)(E,{Argument:{enter(Ae){return A.push((0,Lr.unexpectedArgumentErrorMessage)(v,`${U[ne].name}.${ue}`,Ae.name.value)),ur.BREAK}},Field:{enter(Ae){let xe=U[ne],rt=xe.name;if(me){let Fn=`${rt}.${ue}`,$t=xe.fieldDataByName.get(ue);if(!$t)return A.push((0,Lr.undefinedFieldInFieldSetErrorMessage)(v,Fn,ue)),ur.BREAK;let Tn=(0,RD.getTypeNodeNamedTypeName)($t.node.type),Cr=e.parentDefinitionDataByTypeName.get(Tn),Br=Cr?Cr.kind:ur.Kind.SCALAR_TYPE_DEFINITION;return A.push((0,Lr.invalidSelectionSetErrorMessage)(v,[Fn],Tn,(0,Au.kindToNodeType)(Br))),ur.BREAK}let Z=Ae.name.value,_e=`${rt}.${Z}`;ue=Z;let _t=xe.fieldDataByName.get(Z);if(!_t)return A.push((0,Lr.undefinedFieldInFieldSetErrorMessage)(v,rt,Z)),ur.BREAK;if(_t.argumentDataByName.size)return A.push((0,Lr.argumentsInKeyFieldSetErrorMessage)(v,_e)),ur.BREAK;if(j[ne].has(Z))return A.push((0,Lr.duplicateFieldInFieldSetErrorMessage)(v,_e)),ur.BREAK;(0,Au.getValueOrDefault)((0,Au.getValueOrDefault)(e.keyFieldSetsByEntityTypeNameByFieldCoords,_e,()=>new Map),i,()=>new Set).add(p),G.push(Z),_t.isShareableBySubgraphName.set(e.subgraphName,!0),j[ne].add(Z),(0,Au.getValueOrDefault)(e.keyFieldNamesByParentTypeName,rt,()=>new Set).add(Z);let rn=(0,RD.getTypeNodeNamedTypeName)(_t.node.type);if(Z1.BASE_SCALARS.has(rn)){re.add(G.join(Dt.PERIOD)),G.pop();return}let an=e.parentDefinitionDataByTypeName.get(rn);if(!an)return A.push((0,Lr.unknownTypeInFieldSetErrorMessage)(v,_e,rn)),ur.BREAK;if(an.kind===ur.Kind.OBJECT_TYPE_DEFINITION){me=!0,U.push(an);return}if((0,X1.isKindAbstract)(an.kind))return A.push((0,Lr.abstractTypeInKeyFieldSetErrorMessage)(v,_e,rn,(0,Au.kindToNodeType)(an.kind))),ur.BREAK;re.add(G.join(Dt.PERIOD)),G.pop()}},InlineFragment:{enter(){return A.push(Lr.inlineFragmentInFieldSetErrorMessage),ur.BREAK}},SelectionSet:{enter(){if(!me){let Ae=U[ne],rt=`${Ae.name}.${ue}`,Z=Ae.fieldDataByName.get(ue);if(!Z)return A.push((0,Lr.undefinedFieldInFieldSetErrorMessage)(v,rt,ue)),ur.BREAK;let _e=(0,RD.getTypeNodeNamedTypeName)(Z.node.type),_t=e.parentDefinitionDataByTypeName.get(_e),rn=_t?_t.kind:ur.Kind.SCALAR_TYPE_DEFINITION;return A.push((0,Lr.invalidSelectionSetDefinitionErrorMessage)(v,[rt],_e,(0,Au.kindToNodeType)(rn))),ur.BREAK}if(ne+=1,me=!1,ne<0||ne>=U.length)return A.push((0,Lr.unparsableFieldSetSelectionErrorMessage)(v,ue)),ur.BREAK;j.push(new Set)},leave(){if(me){let xe=U[ne].name,rt=U[ne+1],Z=`${xe}.${ue}`;A.push((0,Lr.invalidSelectionSetErrorMessage)(v,[Z],rt.name,(0,Au.kindToNodeType)(rt.kind))),me=!1}ne-=1,U.pop(),j.pop()}}}),A.length>0){e.errors.push((0,Lr.invalidDirectiveError)(Dt.KEY,i,(0,Au.numberToOrdinal)(d),A));continue}a.push(M({fieldName:"",selectionSet:p},I?{disableEntityResolver:!0}:{})),l.satisfiedFieldSets.add(p),!I&&(c==null||c.addTargetSubgraphByFieldSet(p,e.subgraphName),o.push(re))}if(a.length>0)return a}function _de(e){return e?Dt.PROVIDES:Dt.REQUIRES}function vde(e,t){return e===Dt.QUERY||t===ur.OperationTypeNode.QUERY}function Ode(e,t,n){let r=e.matchAll(Z1.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,Lr.undefinedEventSubjectsArgumentErrorMessage)(o));for(let o of a)n.push((0,Lr.invalidEventSubjectsArgumentErrorMessage)(o))}function Sde(){return new Map([[Dt.AUTHENTICATED,tn.AUTHENTICATED_DEFINITION_DATA],[Dt.COMPOSE_DIRECTIVE,tn.COMPOSE_DIRECTIVE_DEFINITION_DATA],[Dt.CONFIGURE_DESCRIPTION,tn.CONFIGURE_DESCRIPTION_DEFINITION_DATA],[Dt.CONFIGURE_CHILD_DESCRIPTIONS,tn.CONFIGURE_CHILD_DESCRIPTIONS_DEFINITION_DATA],[Dt.CONNECT_FIELD_RESOLVER,tn.CONNECT_FIELD_RESOLVER_DEFINITION_DATA],[Dt.DEPRECATED,tn.DEPRECATED_DEFINITION_DATA],[Dt.EDFS_KAFKA_PUBLISH,tn.KAFKA_PUBLISH_DEFINITION_DATA],[Dt.EDFS_KAFKA_SUBSCRIBE,tn.KAFKA_SUBSCRIBE_DEFINITION_DATA],[Dt.EDFS_NATS_PUBLISH,tn.NATS_PUBLISH_DEFINITION_DATA],[Dt.EDFS_NATS_REQUEST,tn.NATS_REQUEST_DEFINITION_DATA],[Dt.EDFS_NATS_SUBSCRIBE,tn.NATS_SUBSCRIBE_DEFINITION_DATA],[Dt.EDFS_REDIS_PUBLISH,tn.REDIS_PUBLISH_DEFINITION_DATA],[Dt.EDFS_REDIS_SUBSCRIBE,tn.REDIS_SUBSCRIBE_DEFINITION_DATA],[Dt.EXTENDS,tn.EXTENDS_DEFINITION_DATA],[Dt.EXTERNAL,tn.EXTERNAL_DEFINITION_DATA],[Dt.INACCESSIBLE,tn.INACCESSIBLE_DEFINITION_DATA],[Dt.INTERFACE_OBJECT,tn.INTERFACE_OBJECT_DEFINITION_DATA],[Dt.KEY,tn.KEY_DEFINITION_DATA],[Dt.LINK,tn.LINK_DEFINITION_DATA],[Dt.ONE_OF,tn.ONE_OF_DEFINITION_DATA],[Dt.OVERRIDE,tn.OVERRIDE_DEFINITION_DATA],[Dt.PROVIDES,tn.PROVIDES_DEFINITION_DATA],[Dt.REQUIRE_FETCH_REASONS,tn.REQUIRE_FETCH_REASONS_DEFINITION_DATA],[Dt.REQUIRES,tn.REQUIRES_DEFINITION_DATA],[Dt.REQUIRES_SCOPES,tn.REQUIRES_SCOPES_DEFINITION_DATA],[Dt.SEMANTIC_NON_NULL,tn.SEMANTIC_NON_NULL_DATA],[Dt.SHAREABLE,tn.SHAREABLE_DEFINITION_DATA],[Dt.SPECIFIED_BY,tn.SPECIFIED_BY_DEFINITION_DATA],[Dt.SUBSCRIPTION_FILTER,tn.SUBSCRIPTION_FILTER_DEFINITION_DATA],[Dt.TAG,tn.TAG_DEFINITION_DATA]])}});var FD=w(PD=>{"use strict";m();T();N();Object.defineProperty(PD,"__esModule",{value:!0});PD.recordSubgraphName=Dde;function Dde(e,t,n){if(!t.has(e)){t.add(e);return}n.add(e)}});var LD=w(AE=>{"use strict";m();T();N();Object.defineProperty(AE,"__esModule",{value:!0});AE.Warning=void 0;var wD=class extends Error{constructor(n){super(n.message);_(this,"subgraph");this.name="Warning",this.subgraph=n.subgraph}};AE.Warning=wD});var fp=w(hi=>{"use strict";m();T();N();Object.defineProperty(hi,"__esModule",{value:!0});hi.invalidOverrideTargetSubgraphNameWarning=bde;hi.externalInterfaceFieldsWarning=Ade;hi.nonExternalConditionalFieldWarning=Rde;hi.unimplementedInterfaceOutputTypeWarning=Pde;hi.invalidExternalFieldWarning=Fde;hi.requiresDefinedOnNonEntityFieldWarning=wde;hi.consumerInactiveThresholdInvalidValueWarning=Lde;hi.externalEntityExtensionKeyFieldWarning=Cde;hi.fieldAlreadyProvidedWarning=Bde;hi.singleSubgraphInputFieldOneOfWarning=Ude;hi.singleFederatedInputFieldOneOfWarning=kde;var Sa=LD(),CD=sr();function bde(e,t,n,r){return new Sa.Warning({message:`The Object type "${t}" defines the directive "@override(from: "${e}")" on the following field`+(n.length>1?"s":"")+': "'+n.join(CD.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 HE(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: -`}function Xle(e,t,n){return new Sa.Warning({message:HE(e)+`The Interface "${t}" is invalid because the following field definition`+(n.length>1?"s are":" is")+` declared "@external": - "`+n.join(_D.QUOTATION_JOIN)+`" -Interface fields should not be declared "@external". This is because Interface fields do not resolve directly, but the "@external" directive relates to whether a Field instance can be resolved by the subgraph in which it is defined.`,subgraph:{name:e}})}function Zle(e,t,n,r,i){return new Sa.Warning({message:HE(t)+`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: +If this subgraph has been recently deleted, remember to clean up unused "@override" directives that reference this subgraph.`,subgraph:{name:r}})}function RE(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: +`}function Ade(e,t,n){return new Sa.Warning({message:RE(e)+`The Interface "${t}" is invalid because the following field definition`+(n.length>1?"s are":" is")+` declared "@external": + "`+n.join(CD.QUOTATION_JOIN)+`" +Interface fields should not be declared "@external". This is because Interface fields do not resolve directly, but the "@external" directive relates to whether a Field instance can be resolved by the subgraph in which it is defined.`,subgraph:{name:e}})}function Rde(e,t,n,r,i){return new Sa.Warning({message:RE(t)+`The Field "${e}" in subgraph "${t}" defines a "@${i}" directive with the following field set: "${r}". However, neither the field "${n}" nor any of its field set ancestors are declared @external. -Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`,subgraph:{name:t}})}function ede(e,t){return new Sa.Warning({message:`Subgraph "${e}": The Interface "${t}" is used as an output type without at least one Object type implementation defined in the schema.`,subgraph:{name:e}})}function tde(e,t){return new Sa.Warning({message:HE(t)+` The Object Field "${e}" is invalidly declared "@external". An Object field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" field set, or the field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`,subgraph:{name:t}})}function nde(e,t){return new Sa.Warning({message:` The Object Field "${e}" defines a "@requires" directive, but the Object is not an entity. Consequently, the "@requires" FieldSet cannot be satisfied because there is no entity resolver with which to provide the required Fields.`,subgraph:{name:t}})}function rde(e,t=""){return new Sa.Warning({message:'The "consumerInactiveThreshold" argument of type "Int" should be positive and smaller than 2,147,483,648.'+ +t?` -${t}`:"",subgraph:{name:e}})}function ide(e,t,n,r){return new Sa.Warning({message:`The entity extension "${e}" defined in subgraph "${r}" defines a "@key" directive with the field set "${t}". +Consequently, "${n}" is already provided by subgraph "${t}" and should not form part of a "@${i}" directive field set.`,subgraph:{name:t}})}function Pde(e,t){return new Sa.Warning({message:`Subgraph "${e}": The Interface "${t}" is used as an output type without at least one Object type implementation defined in the schema.`,subgraph:{name:e}})}function Fde(e,t){return new Sa.Warning({message:RE(t)+` The Object Field "${e}" is invalidly declared "@external". An Object field should only be declared "@external" if it is part of a "@key", "@provides", or "@requires" field set, or the field is necessary to satisfy an Interface implementation. In the case that none of these conditions is true, the "@external" directive should be removed.`,subgraph:{name:t}})}function wde(e,t){return new Sa.Warning({message:` The Object Field "${e}" defines a "@requires" directive, but the Object is not an entity. Consequently, the "@requires" FieldSet cannot be satisfied because there is no entity resolver with which to provide the required Fields.`,subgraph:{name:t}})}function Lde(e,t=""){return new Sa.Warning({message:'The "consumerInactiveThreshold" argument of type "Int" should be positive and smaller than 2,147,483,648.'+ +t?` +${t}`:"",subgraph:{name:e}})}function Cde(e,t,n,r){return new Sa.Warning({message:`The entity extension "${e}" defined in subgraph "${r}" defines a "@key" directive with the field set "${t}". The following field coordinates that form part of that field set are declared "@external": - "`+n.join(_D.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 ade(e,t,n,r){return new Sa.Warning({message:HE(r)+`The field "${e}" is unconditionally provided by subgraph "${r}" and should not form part of any "@${t}" field set. + "`+n.join(CD.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 Bde(e,t,n,r){return new Sa.Warning({message:RE(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}})}function sde({fieldName:e,subgraphName:t,typeName:n}){return new Sa.Warning({message:`The directive "@oneOf" is defined on Input Object "${n}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function ode({fieldName:e,typeName:t}){return new Sa.Warning({message:`The directive "@oneOf" is defined on Input Object "${t}", but only one optional Input field, "${e}", is propagated to the federated graph. Consider removing "@oneOf", changing "${e}" to a required type, and removing any other remaining optional Input fields instead.`,subgraph:{name:""}})}});var SD=F(WE=>{"use strict";m();T();N();Object.defineProperty(WE,"__esModule",{value:!0});WE.upsertDirectiveSchemaAndEntityDefinitions=lde;WE.upsertParentsAndChildren=dde;var Qn=Oe(),wu=Gi(),OD=_u(),zE=lf(),ld=Pr(),vD=df(),ude=sd(),cd=kl(),ff=gu(),cde=pf(),ta=sr(),yr=Fr();function lde(e,t){(0,Qn.visit)(t,{Directive:{enter(n){let r=n.name.value;return e.referencedDirectiveNames.add(r),ude.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),OD.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r)&&(e.isSubgraphVersionTwo=!0),!1}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitionByName.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,ld.isObjectLikeNodeEntity)(n))return;let i=(0,yr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,zE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,yr.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,ld.isObjectLikeNodeEntity)(n))return;let i=(0,yr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,zE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,yr.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,ld.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,ld.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,yr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,zE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,ld.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,yr.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,zE.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,ff.getTypeNodeNamedTypeName)(n.type);if(i)return e.errors.push((0,wu.duplicateOperationTypeDefinitionError)(r,a,(0,ff.getTypeNodeNamedTypeName)(i.type))),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,wu.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 dde(e,t){let n=!1,r;(0,Qn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Qn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Qn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,yr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ta.PARENT_DEFINITION_DATA);if(o.kind!==Qn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,wu.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,yr.kindToNodeType)(o.kind),a,(0,yr.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,wu.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:Qn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,ff.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,cd.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,ld.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=Qn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&ta.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,ff.getTypeNodeNamedTypeName)(i.type);(0,yr.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),OD.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,yr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ta.PARENT_DEFINITION_DATA);if(!(0,cd.isParentDataCompositeOutputType)(c)){e.errors.push((0,wu.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,yr.kindToNodeType)(c.kind),a,(0,yr.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,wu.duplicateFieldDefinitionError)((0,yr.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),d=e.extractDirectives(i,new Map),f=new Set;e.handleFieldInheritableDirectives({directivesByDirectiveName:d,fieldName:a,inheritedDirectiveNames:f,parentData:c});let y=e.addFieldDataByNode(c.fieldDataByName,i,l,d,f);n&&e.extractEventDirectivesToConfiguration(i,l);let I=y.directivesByDirectiveName.get(ta.PROVIDES),v=y.directivesByDirectiveName.get(ta.REQUIRES);if(!v&&!I)return;let w=e.entityDataByTypeName.get(e.originalParentTypeName),U=(0,yr.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,vD.newFieldSetData);I&&(0,vD.extractFieldSetValue)(a,U.provides,I),v&&(w||e.warnings.push((0,cde.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,vD.extractFieldSetValue)(a,U.requires,v))},leave(){e.lastChildNodeKind=Qn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=Qn.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=Qn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==Qn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==Qn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,ff.getTypeNodeNamedTypeName)(i.type);OD.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,yr.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,ta.PARENT_DEFINITION_DATA);if(c.kind!==Qn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,wu.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,yr.kindToNodeType)(c.kind),a,(0,yr.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,wu.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===Qn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=Qn.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=Qn.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=Qn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===ta.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,cd.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,cd.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=Qn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===ta.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,cd.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,cd.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=Qn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===ta.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Qn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===ta.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Qn.Kind.NULL}},UnionTypeDefinition:{enter(i){if(i.name.value===ta.ENTITY_UNION)return!1;e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===ta.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var PD=F(ts=>{"use strict";m();T();N();Object.defineProperty(ts,"__esModule",{value:!0});ts.EntityDataNode=ts.RootNode=ts.GraphNode=ts.Edge=void 0;var XE=Fr(),DD=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}};ts.Edge=DD;var bD=class{constructor(t,n,r){_(this,"fieldDataByName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",new Array);_(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,XE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);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,XE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};ts.GraphNode=bD;var AD=class{constructor(t){_(this,"fieldDataByName",new Map);_(this,"headToSharedTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToSharedTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};ts.RootNode=AD;var RD=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,XE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,XE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};ts.EntityDataNode=RD});var FD=F(Yn=>{"use strict";m();T();N();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.ROOT_TYPE_NAMES=Yn.QUOTATION_JOIN=Yn.NOT_APPLICABLE=Yn.LITERAL_SPACE=Yn.LITERAL_PERIOD=Yn.SUBSCRIPTION=Yn.QUERY=Yn.MUTATION=void 0;Yn.MUTATION="Mutation";Yn.QUERY="Query";Yn.SUBSCRIPTION="Subscription";Yn.LITERAL_PERIOD=".";Yn.LITERAL_SPACE=" ";Yn.NOT_APPLICABLE="N/A";Yn.QUOTATION_JOIN='", "';Yn.ROOT_TYPE_NAMES=new Set([Yn.MUTATION,Yn.QUERY,Yn.SUBSCRIPTION])});var BD=F(Da=>{"use strict";m();T();N();Object.defineProperty(Da,"__esModule",{value:!0});Da.newRootFieldData=pde;Da.generateResolvabilityErrorReasons=CD;Da.generateSharedResolvabilityErrorReasons=C1;Da.generateSelectionSetSegments=ZE;Da.renderSelectionSet=eh;Da.generateRootResolvabilityErrors=mde;Da.generateEntityResolvabilityErrors=Nde;Da.generateSharedEntityResolvabilityErrors=Tde;Da.getMultipliedRelativeOriginPaths=Ede;var wD=Gi(),LD=Fr(),ns=FD();function pde(e,t,n){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(ns.QUOTATION_JOIN)}".`,subgraphNames:n}}function fde(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}})}function Ude({fieldName:e,subgraphName:t,typeName:n}){return new Sa.Warning({message:`The directive "@oneOf" is defined on Input Object "${n}", but only one optional Input field, "${e}", is defined. Consider removing "@oneOf" and changing "${e}" to a required type instead.`,subgraph:{name:t}})}function kde({fieldName:e,typeName:t}){return new Sa.Warning({message:`The directive "@oneOf" is defined on Input Object "${t}", but only one optional Input field, "${e}", is propagated to the federated graph. Consider removing "@oneOf", changing "${e}" to a required type, and removing any other remaining optional Input fields instead.`,subgraph:{name:""}})}});var kD=w(FE=>{"use strict";m();T();N();Object.defineProperty(FE,"__esModule",{value:!0});FE.upsertDirectiveSchemaAndEntityDefinitions=qde;FE.upsertParentsAndChildren=Vde;var Gn=Oe(),Ru=qi(),UD=Iu(),PE=lp(),sd=Ar(),BD=dp(),Mde=nd(),ad=Bl(),pp=yu(),xde=fp(),Zi=sr(),Er=Rr();function qde(e,t){(0,Gn.visit)(t,{Directive:{enter(n){let r=n.name.value;return e.referencedDirectiveNames.add(r),Mde.EVENT_DIRECTIVE_NAMES.has(r)&&e.edfsDirectiveReferences.add(r),UD.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.has(r)&&(e.isSubgraphVersionTwo=!0),!1}},DirectiveDefinition:{enter(n){return e.addDirectiveDefinitionDataByNode(n)&&e.customDirectiveDefinitionByName.set(n.name.value,n),!1}},InterfaceTypeDefinition:{enter(n){let r=n.name.value;if(e.internalGraph.addOrUpdateNode(r,{isAbstract:!0}),!(0,sd.isObjectLikeNodeEntity)(n))return;let i=(0,Er.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,PE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,Er.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,sd.isObjectLikeNodeEntity)(n))return;let i=(0,Er.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,PE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r}),(0,Er.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,sd.isObjectLikeNodeEntity)(n))return;let r=n.name.value;(0,sd.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,Er.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,PE.upsertEntityData)({entityDataByTypeName:e.entityDataByTypeName,keyFieldSetDataByFieldSet:i,subgraphName:e.subgraphName,typeName:r})}},ObjectTypeExtension:{enter(n){if(!(0,sd.isObjectLikeNodeEntity)(n))return;let r=n.name.value,i=(0,Er.getValueOrDefault)(e.keyFieldSetDatasByTypeName,r,()=>new Map);e.extractKeyFieldSets(n,i),(0,PE.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,pp.getTypeNodeNamedTypeName)(n.type);if(i)return e.errors.push((0,Ru.duplicateOperationTypeDefinitionError)(r,a,(0,pp.getTypeNodeNamedTypeName)(i.type))),!1;let o=e.operationTypeNodeByTypeName.get(a);return o?(e.errors.push((0,Ru.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 Vde(e,t){let n=!1,r;(0,Gn.visit)(t,{EnumTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},EnumTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertEnumDataByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},EnumValueDefinition:{enter(i){let a=i.name.value;e.lastChildNodeKind=i.kind;let o=(0,Er.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Zi.PARENT_DEFINITION_DATA);if(o.kind!==Gn.Kind.ENUM_TYPE_DEFINITION){e.errors.push((0,Ru.unexpectedParentKindForChildError)(e.originalParentTypeName,"Enum or Enum extension",(0,Er.kindToNodeType)(o.kind),a,(0,Er.kindToNodeType)(i.kind)));return}if(o.enumValueDataByName.has(a)){e.errors.push((0,Ru.duplicateEnumValueDefinitionError)(e.originalParentTypeName,a));return}o.enumValueDataByName.set(a,{appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:e.extractDirectives(i,new Map),federatedCoords:`${e.originalParentTypeName}.${a}`,kind:Gn.Kind.ENUM_VALUE_DEFINITION,name:a,node:(0,pp.getMutableEnumValueNode)(i),parentTypeName:e.originalParentTypeName,persistedDirectivesData:(0,ad.newPersistedDirectivesData)(),subgraphNames:new Set([e.subgraphName]),description:(0,sd.formatDescription)(i.description)})},leave(){e.lastChildNodeKind=Gn.Kind.NULL}},FieldDefinition:{enter(i){let a=i.name.value;if(n&&Zi.IGNORED_FIELDS.has(a))return!1;e.edfsDirectiveReferences.size>0&&e.validateSubscriptionFilterDirectiveLocation(i),e.lastChildNodeKind=i.kind;let o=(0,pp.getTypeNodeNamedTypeName)(i.type);(0,Er.getValueOrDefault)(e.fieldCoordsByNamedTypeName,o,()=>new Set).add(`${e.renamedParentTypeName||e.originalParentTypeName}.${a}`),r&&!r.isAbstract&&e.internalGraph.addEdge(r,e.internalGraph.addOrUpdateNode(o),a),UD.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,Er.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Zi.PARENT_DEFINITION_DATA);if(!(0,ad.isParentDataCompositeOutputType)(c)){e.errors.push((0,Ru.unexpectedParentKindForChildError)(e.originalParentTypeName,'"Object" or "Interface"',(0,Er.kindToNodeType)(c.kind),a,(0,Er.kindToNodeType)(i.kind)));return}if(c.fieldDataByName.has(a)){e.errors.push((0,Ru.duplicateFieldDefinitionError)((0,Er.kindToNodeType)(c.kind),c.name,a));return}let l=e.extractArguments(new Map,i),d=e.extractDirectives(i,new Map),p=new Set;e.handleFieldInheritableDirectives({directivesByDirectiveName:d,fieldName:a,inheritedDirectiveNames:p,parentData:c});let E=e.addFieldDataByNode(c.fieldDataByName,i,l,d,p);n&&e.extractEventDirectivesToConfiguration(i,l);let I=E.directivesByDirectiveName.get(Zi.PROVIDES),v=E.directivesByDirectiveName.get(Zi.REQUIRES);if(!v&&!I)return;let A=e.entityDataByTypeName.get(e.originalParentTypeName),U=(0,Er.getValueOrDefault)(e.fieldSetDataByTypeName,e.originalParentTypeName,BD.newFieldSetData);I&&(0,BD.extractFieldSetValue)(a,U.provides,I),v&&(A||e.warnings.push((0,xde.requiresDefinedOnNonEntityFieldWarning)(`${e.originalParentTypeName}.${a}`,e.subgraphName)),(0,BD.extractFieldSetValue)(a,U.requires,v))},leave(){e.lastChildNodeKind=Gn.Kind.NULL}},InputObjectTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInputObjectByNode(i)},leave(){e.lastParentNodeKind=Gn.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=Gn.Kind.NULL}},InputValueDefinition:{enter(i){let a=i.name.value;if(e.lastParentNodeKind!==Gn.Kind.INPUT_OBJECT_TYPE_DEFINITION&&e.lastParentNodeKind!==Gn.Kind.INPUT_OBJECT_TYPE_EXTENSION){e.argumentName=a;return}e.lastChildNodeKind=i.kind;let o=(0,pp.getTypeNodeNamedTypeName)(i.type);UD.BASE_SCALARS.has(o)||e.referencedTypeNames.add(o);let c=(0,Er.getOrThrowError)(e.parentDefinitionDataByTypeName,e.originalParentTypeName,Zi.PARENT_DEFINITION_DATA);if(c.kind!==Gn.Kind.INPUT_OBJECT_TYPE_DEFINITION)return e.errors.push((0,Ru.unexpectedParentKindForChildError)(e.originalParentTypeName,"input object or input object extension",(0,Er.kindToNodeType)(c.kind),a,(0,Er.kindToNodeType)(i.kind))),!1;if(c.inputValueDataByName.has(a)){e.errors.push((0,Ru.duplicateInputFieldDefinitionError)(e.originalParentTypeName,a));return}e.addInputValueDataByNode({inputValueDataByName:c.inputValueDataByName,isArgument:!1,node:i,originalParentTypeName:e.originalParentTypeName})},leave(){e.argumentName="",e.lastChildNodeKind===Gn.Kind.INPUT_VALUE_DEFINITION&&(e.lastChildNodeKind=Gn.Kind.NULL)}},InterfaceTypeDefinition:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},InterfaceTypeExtension:{enter(i){e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertInterfaceDataByNode(i,!0)},leave(){e.doesParentRequireFetchReasons=!1,e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},ObjectTypeDefinition:{enter(i){if(i.name.value===Zi.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,ad.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,ad.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=Gn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ObjectTypeExtension:{enter(i){if(i.name.value===Zi.SERVICE_OBJECT)return!1;e.originalParentTypeName=i.name.value,n=(0,ad.isTypeNameRootType)(e.originalParentTypeName,e.operationTypeNodeByTypeName),e.renamedParentTypeName=(0,ad.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=Gn.Kind.NULL,e.isParentObjectExternal=!1,e.doesParentRequireFetchReasons=!1,e.isParentObjectShareable=!1}},ScalarTypeDefinition:{enter(i){if(i.name.value===Zi.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},ScalarTypeExtension:{enter(i){if(i.name.value===Zi.ANY_SCALAR)return!1;e.originalParentTypeName=i.name.value,e.lastParentNodeKind=i.kind,e.upsertScalarByNode(i,!0)},leave(){e.originalParentTypeName="",e.lastParentNodeKind=Gn.Kind.NULL}},UnionTypeDefinition:{enter(i){if(i.name.value===Zi.ENTITY_UNION)return!1;e.upsertUnionByNode(i)}},UnionTypeExtension:{enter(i){if(i.name.value===Zi.ENTITY_UNION)return!1;e.upsertUnionByNode(i,!0)}}})}});var jD=w(Xa=>{"use strict";m();T();N();Object.defineProperty(Xa,"__esModule",{value:!0});Xa.EntityDataNode=Xa.RootNode=Xa.GraphNode=Xa.Edge=void 0;var wE=Rr(),MD=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}};Xa.Edge=MD;var xD=class{constructor(t,n,r){_(this,"fieldDataByName",new Map);_(this,"headToTailEdges",new Map);_(this,"entityEdges",new Array);_(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,wE.getEntriesNotInHashSet)(this.headToTailEdges.keys(),this.fieldDataByName);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,wE.add)(n,r.node.nodeName)&&this.getAccessibleEntityNodeNames(r.node,n)}};Xa.GraphNode=xD;var qD=class{constructor(t){_(this,"fieldDataByName",new Map);_(this,"headToSharedTailEdges",new Map);_(this,"isAbstract",!1);_(this,"isRootNode",!0);_(this,"typeName");this.typeName=t}removeInaccessibleEdges(t){for(let[n,r]of this.headToSharedTailEdges)if(!t.has(n))for(let i of r)i.isInaccessible=!0}};Xa.RootNode=qD;var VD=class{constructor(t){_(this,"fieldSetsByTargetSubgraphName",new Map);_(this,"targetSubgraphNamesByFieldSet",new Map);_(this,"typeName");this.typeName=t}addTargetSubgraphByFieldSet(t,n){(0,wE.getValueOrDefault)(this.targetSubgraphNamesByFieldSet,t,()=>new Set).add(n),(0,wE.getValueOrDefault)(this.fieldSetsByTargetSubgraphName,n,()=>new Set).add(t)}};Xa.EntityDataNode=VD});var KD=w($n=>{"use strict";m();T();N();Object.defineProperty($n,"__esModule",{value:!0});$n.ROOT_TYPE_NAMES=$n.QUOTATION_JOIN=$n.NOT_APPLICABLE=$n.LITERAL_SPACE=$n.LITERAL_PERIOD=$n.SUBSCRIPTION=$n.QUERY=$n.MUTATION=void 0;$n.MUTATION="Mutation";$n.QUERY="Query";$n.SUBSCRIPTION="Subscription";$n.LITERAL_PERIOD=".";$n.LITERAL_SPACE=" ";$n.NOT_APPLICABLE="N/A";$n.QUOTATION_JOIN='", "';$n.ROOT_TYPE_NAMES=new Set([$n.MUTATION,$n.QUERY,$n.SUBSCRIPTION])});var YD=w(Da=>{"use strict";m();T();N();Object.defineProperty(Da,"__esModule",{value:!0});Da.newRootFieldData=jde;Da.generateResolvabilityErrorReasons=QD;Da.generateSharedResolvabilityErrorReasons=eV;Da.generateSelectionSetSegments=LE;Da.renderSelectionSet=CE;Da.generateRootResolvabilityErrors=Gde;Da.generateEntityResolvabilityErrors=$de;Da.generateSharedEntityResolvabilityErrors=Qde;Da.getMultipliedRelativeOriginPaths=Yde;var GD=qi(),$D=Rr(),Za=KD();function jde(e,t,n){return{coords:`${e}.${t}`,message:`The root type field "${e}.${t}" is defined in the following subgraph`+(n.size>1?"s":"")+`: "${[...n].join(Za.QUOTATION_JOIN)}".`,subgraphNames:n}}function Kde(e,t){return e.isLeaf?e.name+` <-- `:e.name+` { <-- -`+ns.LITERAL_SPACE.repeat(t+3)+`... -`+ns.LITERAL_SPACE.repeat(t+2)+`} -`}function CD({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(ns.QUOTATION_JOIN)}".`];if(e){let c=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName)if(a.has(l)){c=!0;for(let f of d)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 descendant 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 shares the same root type field "${t.coords}" can provide a route to access "${r}".`),o.push(`The type "${i}" is not a descendant 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 C1({entityAncestors: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(ns.QUOTATION_JOIN)}".`],c=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName){if(!a.has(l))continue;let f=e.subgraphNames.filter(I=>I!==l),y=f.length>1;c=!0;for(let I of d)o.push(`The entity ancestor "${e.typeName}" in subgraph${y?"s":""} "${f.join(ns.QUOTATION_JOIN)}" do${y?"":"es"} not satisfy the key field set "${I}" to access subgraph "${l}".`)}if(!c){let l=e.subgraphNames.length>1;o.push(`The entity ancestor "${e.typeName}" in subgraph${l?"s":""} "${e.subgraphNames.join(ns.QUOTATION_JOIN)}" ha${l?"ve":"s"} no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`)}return o.push(`The type "${i}" is not a descendant of any other entity ancestors that can provide a shared route to access "${r}".`),i!==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 ZE(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();N();Object.defineProperty(th,"__esModule",{value:!0});th.NodeResolutionData=void 0;var hde=Gi(),Lc,kD=class kD{constructor({fieldDataByName:t,isResolved:n=!1,resolvedDescendantNames:r,resolvedFieldNames:i,typeName:a}){dl(this,Lc,!1);_(this,"fieldDataByName");_(this,"resolvedDescendantNames");_(this,"resolvedFieldNames");_(this,"typeName");oI(this,Lc,n),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(r),this.resolvedFieldNames=new Set(i),this.typeName=a}addData(t){for(let n of t.resolvedFieldNames)this.addResolvedFieldName(n);for(let n of t.resolvedDescendantNames)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,hde.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}copy(){return new kD({fieldDataByName:this.fieldDataByName,isResolved:sI(this,Lc),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(sI(this,Lc))return!0;if(this.fieldDataByName.size!==this.resolvedFieldNames.size)return!1;for(let t of this.fieldDataByName.keys())if(!this.resolvedFieldNames.has(t))return!1;return oI(this,Lc,!0),!0}};Lc=new WeakMap;var UD=kD;th.NodeResolutionData=UD});var U1=F(rh=>{"use strict";m();T();N();Object.defineProperty(rh,"__esModule",{value:!0});rh.EntityWalker=void 0;var yde=nh(),rs=Fr(),MD=class{constructor({encounteredEntityNodeNames:t,index:n,relativeOriginPaths:r,resDataByNodeName:i,resDataByRelativeOriginPath:a,subgraphNameByUnresolvablePath:o,visitedEntities:c}){_(this,"encounteredEntityNodeNames");_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByRelativeOriginPath");_(this,"selectionPathByEntityNodeName",new Map);_(this,"subgraphNameByUnresolvablePath");_(this,"visitedEntities");_(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=n,this.relativeOriginPaths=r,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.visitedEntities=c,this.subgraphNameByUnresolvablePath=o}getNodeResolutionData({node:{fieldDataByName:t,nodeName:n,typeName:r},selectionPath:i}){let a=(0,rs.getValueOrDefault)(this.resDataByNodeName,n,()=>new yde.NodeResolutionData({fieldDataByName:t,typeName:r}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,rs.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let c of this.relativeOriginPaths){let l=(0,rs.getValueOrDefault)(this.resDataByRelativeOriginPath,`${c}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!1}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,rs.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.visitedEntities.has(t.node.nodeName)||this.encounteredEntityNodeNames.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:(this.encounteredEntityNodeNames.add(t.node.nodeName),(0,rs.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):(this.removeUnresolvablePaths({selectionPath:`${n}.${t.edgeName}`,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l,isRevisitedNode:d}=this.visitEntityDescendantEdge({edge:o,selectionPath:n});i!=null||(i=d),this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:r,nodeName:t.nodeName,selectionPath:n,visited:c})}return r.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:n}):this.addUnresolvablePaths({selectionPath:n,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,nodeName:i,selectionPath:a,visited:o}){if(!o)return;let c=(0,rs.getValueOrDefault)(this.resDataByNodeName,i,()=>n.copy());if(n.addResolvedFieldName(r),c.addResolvedFieldName(r),t&&n.resolvedDescendantNames.add(r),this.relativeOriginPaths){for(let d of this.relativeOriginPaths){let f=(0,rs.getValueOrDefault)(this.resDataByRelativeOriginPath,`${d}${a}`,()=>n.copy());f.addResolvedFieldName(r),t&&f.resolvedDescendantNames.add(r)}return}let l=(0,rs.getValueOrDefault)(this.resDataByRelativeOriginPath,a,()=>n.copy());l.addResolvedFieldName(r),t&&l.resolvedDescendantNames.add(r)}addUnresolvablePaths({selectionPath:t,subgraphName:n}){if(!this.relativeOriginPaths){(0,rs.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>n);return}for(let r of this.relativeOriginPaths)(0,rs.getValueOrDefault)(this.subgraphNameByUnresolvablePath,`${r}${t}`,()=>n)}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:n}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),n)for(let r of this.subgraphNameByUnresolvablePath.keys())r.startsWith(t)&&this.subgraphNameByUnresolvablePath.delete(r);return}for(let r of this.relativeOriginPaths){let i=`${r}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),n)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&this.subgraphNameByUnresolvablePath.delete(a)}}};rh.EntityWalker=MD});var k1=F(ah=>{"use strict";m();T();N();Object.defineProperty(ah,"__esModule",{value:!0});ah.RootFieldWalker=void 0;var is=Fr(),ih=nh(),xD=class{constructor({index:t,nodeResolutionDataByNodeName:n}){_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByPath",new Map);_(this,"entityNodeNamesByPath",new Map);_(this,"pathsByEntityNodeName",new Map);_(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=n}visitEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,is.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,is.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.resDataByNodeName.get(t.nodeName);if(r)return{visited:!0,areDescendantsResolved:r.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:n});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l}=this.visitEdge({edge:o,selectionPath:n});this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:i,node:t,selectionPath:n,visited:c})}return i.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,is.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,is.getValueOrDefault)(this.entityNodeNamesByPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getSharedNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,a]of t.headToTailEdges){let{visited:o,areDescendantsResolved:c}=this.visitSharedEdge({edge:a,selectionPath:n});this.propagateSharedVisitedField({areDescendantsResolved:c,data:r,fieldName:i,node:t,visited:o})}return r.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:n}){let r=(0,is.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new ih.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,is.getValueOrDefault)(this.resDataByPath,n,()=>r.copy()),r}getSharedNodeResolutionData({node:t,selectionPath:n}){let r=(0,is.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new ih.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,is.getValueOrDefault)(this.resDataByPath,n,()=>r.copy())}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,selectionPath:a,visited:o}){if(!o)return;n.addResolvedFieldName(r);let c=(0,is.getValueOrDefault)(this.resDataByPath,a,()=>new ih.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));c.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),c.resolvedDescendantNames.add(r))}propagateSharedVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,visited:a}){if(!a)return;n.addResolvedFieldName(r);let o=(0,is.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new ih.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));o.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),o.resolvedDescendantNames.add(r))}visitRootFieldEdges({edges:t,rootTypeName:n}){let r=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let a=r?this.visitSharedEdge({edge:i,selectionPath:n}):this.visitEdge({edge:i,selectionPath:n});if(a.areDescendantsResolved)return a}return{visited:!0,areDescendantsResolved:!1}}};ah.RootFieldWalker=xD});var VD=F(oh=>{"use strict";m();T();N();Object.defineProperty(oh,"__esModule",{value:!0});oh.Graph=void 0;var dd=PD(),Cc=BD(),na=Fr(),sh=FD(),Ide=U1(),gde=k1(),qD=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodeByTypeName",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"resolvedRootFieldNodeNames",new Set);_(this,"rootNodeByTypeName",new Map);_(this,"subgraphName",sh.NOT_APPLICABLE);_(this,"resDataByNodeName",new Map);_(this,"resDataByRelativePathByEntity",new Map);_(this,"visitedEntitiesByOriginEntity",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,na.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new dd.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 dd.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,na.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new dd.Edge(this.getNextEdgeId(),n,r);return(0,na.getValueOrDefault)(t.headToSharedTailEdges,r,()=>[]).push(c),c}let a=t,o=new dd.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodeByTypeName.get(t);if(n)return n;let r=new dd.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=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.entityDataNodeByTypeName.get(t);if(sh.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByName=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!=null?c:[]){if(l===a.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${a.typeName}`);d&&a.entityEdges.push(new dd.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:n,relativeOriginPaths:r,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}){let c=this.nodeByNodeName.get(n);if(!c)throw new Error(`Fatal: Could not find entity node for "${n}".`);o.add(n);let l=this.nodesByTypeName.get(c.typeName);if(!(l!=null&&l.length))throw new Error(`Fatal: Could not find any nodes for "${n}".`);let d=new Ide.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:r,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}),f=c.getAllAccessibleEntityNodeNames();for(let y of l){if(y.nodeName!==c.nodeName&&!f.has(y.nodeName))continue;let{areDescendantsResolved:I}=d.visitEntityDescendantConcreteNode({node:y,selectionPath:""});if(I)return}for(let[y,I]of d.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:y,relativeOriginPaths:(0,Cc.getMultipliedRelativeOriginPaths)({relativeOriginPaths:r,selectionPath:I}),resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[n,r]of t.headToSharedTailEdges){let i=r.length>1;if(!i){let f=r[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(f))continue;this.resolvedRootFieldNodeNames.add(f)}let a=new gde.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(a.visitRootFieldEdges({edges:r,rootTypeName:t.typeName.toLowerCase()}).areDescendantsResolved)continue;let o=i?a.entityNodeNamesByPath.size>0:a.pathsByEntityNodeName.size>0;if(a.unresolvablePaths.size<1&&!o)continue;let c=(0,na.getOrThrowError)(t.fieldDataByName,n,"fieldDataByName"),l=(0,Cc.newRootFieldData)(t.typeName,n,c.subgraphNames);if(!o)return{errors:(0,Cc.generateRootResolvabilityErrors)({unresolvablePaths:a.unresolvablePaths,resDataByPath:a.resDataByPath,rootFieldData:l}),success:!1};let d=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:a});if(!d.success)return d}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of i.unresolvablePaths){if(!a.startsWith(t))continue;let o=a.slice(t.length),c=(0,na.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=n.get(o);if(l){if(c.addData(l),l.addData(c),!c.isResolved()){i.unresolvablePaths.delete(a);continue}i.unresolvablePaths.delete(a),r.delete(o)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of r.keys()){let o=(0,na.getOrThrowError)(n,a,"resDataByRelativeOriginPath"),c=`${t}${a}`,l=i.resDataByPath.get(c);l&&(o.addData(l),l.addData(o)),o.isResolved()&&r.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:n}){for(let[r,i]of n.entityNodeNamesByPath){let a=new Map,o=new Map;for(let l of i)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n}),a.size<1)continue;this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n});let c=new Array;if(a.size>0&&c.push(...this.getSharedEntityResolvabilityErrors({entityNodeNames:i,resDataByPath:o,pathFromRoot:r,rootFieldData:t,subgraphNameByUnresolvablePath:a})),n.unresolvablePaths.size>0&&c.push(...(0,Cc.generateRootResolvabilityErrors)({unresolvablePaths:n.unresolvablePaths,resDataByPath:n.resDataByPath,rootFieldData:t})),!(c.length<1))return{errors:c,success:!1}}return n.unresolvablePaths.size>0?{errors:(0,Cc.generateRootResolvabilityErrors)({resDataByPath:n.resDataByPath,rootFieldData:t,unresolvablePaths:n.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:n}){var r;for(let[i,a]of n.pathsByEntityNodeName){let o=new Map;if(this.resDataByNodeName.has(i))continue;let c=(0,na.getValueOrDefault)(this.resDataByRelativePathByEntity,i,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:i,resDataByRelativeOriginPath:c,subgraphNameByUnresolvablePath:o,visitedEntities:(0,na.getValueOrDefault)(this.visitedEntitiesByOriginEntity,i,()=>new Set)}),!(o.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:i,pathFromRoot:(r=(0,na.getFirstEntry)(a))!=null?r:"",rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:n,rootFieldData:r,subgraphNameByUnresolvablePath:i}){let a=(0,na.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(sh.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:c}=(0,na.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,Cc.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:c,subgraphName:"",typeName:o},pathFromRoot:n,resDataByPath:a,rootFieldData:r,subgraphNameByUnresolvablePath:i})}getSharedEntityResolvabilityErrors({entityNodeNames:t,pathFromRoot:n,rootFieldData:r,resDataByPath:i,subgraphNameByUnresolvablePath:a}){let o,c=new Array;for(let d of t){let f=d.split(sh.LITERAL_PERIOD);o!=null||(o=f[1]),c.push(f[0])}let{fieldSetsByTargetSubgraphName:l}=(0,na.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,Cc.generateSharedEntityResolvabilityErrors)({entityAncestors:{fieldSetsByTargetSubgraphName:l,subgraphNames:c,typeName:o},pathFromRoot:n,resDataByPath:i,rootFieldData:r,subgraphNameByUnresolvablePath:a})}};oh.Graph=qD});var jD=F(uh=>{"use strict";m();T();N();Object.defineProperty(uh,"__esModule",{value:!0});uh.newFieldSetConditionData=_de;uh.newConfigurationData=vde;function _de({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function vde(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var GD=F(Bc=>{"use strict";m();T();N();Object.defineProperty(Bc,"__esModule",{value:!0});Bc.NormalizationFactory=void 0;Bc.normalizeSubgraphFromString=bde;Bc.normalizeSubgraph=q1;Bc.batchNormalize=Ade;var Z=Oe(),Fn=Pr(),ui=df(),$r=_u(),Jn=lf(),oe=Gi(),mf=sd(),Ode=Xv(),vi=vE(),Sde=yD(),ss=pf(),M1=SD(),as=Mp(),rn=kl(),lr=gu(),KD=VD(),ch=DE(),W=sr(),Dde=Cl(),Ke=Fr(),Nf=jD(),x1=bE();function bde(e,t=!0){let{error:n,documentNode:r}=(0,Fn.safeParse)(e,t);return n||!r?{errors:[(0,oe.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Tf(new KD.Graph).normalize(r)}function q1(e,t,n){return new Tf(n||new KD.Graph,t).normalize(e)}var lh,V1,Tf=class{constructor(t,n){dl(this,lh);_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitionByName",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByName",new Map);_(this,"directiveDefinitionDataByName",(0,ui.initializeDirectiveDefinitionDatas)());_(this,"doesParentRequireFetchReasons",!1);_(this,"edfsDirectiveReferences",new Set);_(this,"errors",new Array);_(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,"isParentObjectExternal",!1);_(this,"isParentObjectShareable",!1);_(this,"isSubgraphEventDrivenGraph",!1);_(this,"isSubgraphVersionTwo",!1);_(this,"keyFieldSetDatasByTypeName",new Map);_(this,"lastParentNodeKind",Z.Kind.NULL);_(this,"lastChildNodeKind",Z.Kind.NULL);_(this,"parentTypeNamesWithAuthDirectives",new Set);_(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",[]);this.subgraphName=n||W.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByDirectiveName:new Map,kind:Z.Kind.SCHEMA_DEFINITION,name:W.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,lr.getTypeNodeNamedTypeName)(r.type);if($r.BASE_SCALARS.has(i)){r.namedTypeKind=Z.Kind.SCALAR_TYPE_DEFINITION;continue}let a=this.parentDefinitionDataByTypeName.get(i);if(a){if((0,rn.isInputNodeKind)(a.kind)){r.namedTypeKind=a.kind;continue}this.errors.push((0,oe.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,Ke.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return W.ROOT_TYPE_NAMES.has(t)||this.operationTypeNodeByTypeName.has(t)}isArgumentValueValid(t,n){if(n.kind===Z.Kind.NULL)return t.kind!==Z.Kind.NON_NULL_TYPE;switch(t.kind){case Z.Kind.LIST_TYPE:{if(n.kind!==Z.Kind.LIST)return this.isArgumentValueValid((0,lr.getNamedTypeNode)(t.type),n);for(let r of n.values)if(!this.isArgumentValueValid(t.type,r))return!1;return!0}case Z.Kind.NAMED_TYPE:switch(t.name.value){case W.BOOLEAN_SCALAR:return n.kind===Z.Kind.BOOLEAN;case W.FLOAT_SCALAR:return n.kind===Z.Kind.FLOAT||n.kind===Z.Kind.INT;case W.ID_SCALAR:return n.kind===Z.Kind.STRING||n.kind===Z.Kind.INT;case W.INT_SCALAR:return n.kind===Z.Kind.INT;case W.FIELD_SET_SCALAR:case W.SCOPE_SCALAR:case W.STRING_SCALAR:return n.kind===Z.Kind.STRING;case W.LINK_IMPORT:return!0;case W.LINK_PURPOSE:return n.kind!==Z.Kind.ENUM?!1:n.value===W.SECURITY||n.value===W.EXECUTION;case W.SUBSCRIPTION_FIELD_CONDITION:case W.SUBSCRIPTION_FILTER_CONDITION:return n.kind===Z.Kind.OBJECT;default:{let r=this.parentDefinitionDataByTypeName.get(t.name.value);if(!r)return!1;if(r.kind===Z.Kind.SCALAR_TYPE_DEFINITION)return!0;if(r.kind===Z.Kind.ENUM_TYPE_DEFINITION){if(n.kind!==Z.Kind.ENUM)return!1;let i=r.enumValueDataByName.get(n.value);return i?!i.directivesByDirectiveName.has(W.INACCESSIBLE):!1}return r.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===Z.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}handleFieldInheritableDirectives({directivesByDirectiveName:t,fieldName:n,inheritedDirectiveNames:r,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(W.REQUIRE_FETCH_REASONS)&&(t.set(W.REQUIRE_FETCH_REASONS,[(0,Ke.generateSimpleDirective)(W.REQUIRE_FETCH_REASONS)]),r.add(W.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(W.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(n),(0,Jn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(W.EXTERNAL)&&(t.set(W.EXTERNAL,[(0,Ke.generateSimpleDirective)(W.EXTERNAL)]),r.add(W.EXTERNAL)),t.has(W.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${n}`),this.isParentObjectShareable&&!t.has(W.SHAREABLE)&&(t.set(W.SHAREABLE,[(0,Ke.generateSimpleDirective)(W.SHAREABLE)]),r.add(W.SHAREABLE)))}extractDirectives(t,n){if(!t.directives)return n;let r=(0,Jn.isCompositeOutputNodeKind)(t.kind),i=(0,Jn.isObjectNodeKind)(t.kind);for(let a of t.directives){let o=a.name.value;o===W.SHAREABLE?(0,Ke.getValueOrDefault)(n,o,()=>[a]):(0,Ke.getValueOrDefault)(n,o,()=>[]).push(a),r&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=o===W.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=o===W.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=o===W.SHAREABLE)))}return n}validateDirective({data:t,definitionData:n,directiveCoords:r,directiveNode:i,errorMessages:a,requiredArgumentNames:o}){let c=i.name.value,l=t.kind===Z.Kind.FIELD_DEFINITION?t.renamedParentTypeName||t.originalParentTypeName:t.name,d=c===W.AUTHENTICATED,f=(0,rn.isFieldData)(t),y=c===W.OVERRIDE,I=c===W.REQUIRES_SCOPES,v=c===W.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,oe.undefinedRequiredArgumentsErrorMessage)(c,o,[])),d&&this.handleAuthenticatedDirective(t,l),v&&f&&((0,rn.isTypeRequired)(t.type)?a.push((0,oe.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,vi.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),a;let w=new Set,U=new Set,j=new Set,Y=[];for(let me of i.arguments){let ue=me.name.value;if(w.has(ue)){U.add(ue);continue}w.add(ue);let Ae=n.argumentTypeNodeByName.get(ue);if(!Ae){j.add(ue);continue}if(!this.isArgumentValueValid(Ae.typeNode,me.value)){a.push((0,oe.invalidArgumentValueErrorMessage)((0,Z.print)(me.value),`@${c}`,ue,(0,vi.printTypeNode)(Ae.typeNode)));continue}if(y&&f){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:me.value.value});continue}if(v&&f){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!I||ue!==W.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:me.value.values,requiredScopes:Y})}U.size>0&&a.push((0,oe.duplicateDirectiveArgumentDefinitionsErrorMessage)([...U])),j.size>0&&a.push((0,oe.unexpectedDirectiveArgumentErrorMessage)(c,[...j]));let re=(0,Ke.getEntriesNotInHashSet)(o,w);if(re.length>0&&a.push((0,oe.undefinedRequiredArgumentsErrorMessage)(c,o,re)),a.length>0||!I)return a;let ne=(0,Ke.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,Jn.newAuthorizationData)(l));if(t.kind!==Z.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),ne.requiredScopes.push(...Y);else{let me=(0,Ke.getValueOrDefault)(ne.fieldAuthDataByFieldName,t.name,()=>(0,Jn.newFieldAuthorizationData)(t.name));me.inheritedData.requiredScopes.push(...Y),me.originalData.requiredScopes.push(...Y)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByDirectiveName){let o=this.directiveDefinitionDataByName.get(i);if(!o){r.has(i)||(this.errors.push((0,oe.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,Fn.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,oe.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let f=(0,Ke.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(i)||(f.add(i),c.push((0,oe.invalidRepeatedDirectiveErrorMessage)(i)))}let d=[...o.requiredArgumentNames];for(let f=0;f0&&this.errors.push((0,oe.invalidDirectiveError)(i,n,(0,Ke.numberToOrdinal)(f+1),y))}}switch(t.kind){case Z.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case Z.Kind.FIELD_DEFINITION:{for(let[i,a]of t.argumentDataByName)this.validateDirectives(a,`${t.originalParentTypeName}.${t.name}(${i}: ...)`);return}case Z.Kind.INPUT_OBJECT_TYPE_DEFINITION:{for(let[i,a]of t.inputValueDataByName)this.validateDirectives(a,`${t.name}.${i}`);return}case Z.Kind.INTERFACE_TYPE_DEFINITION:case Z.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?as.ExtensionType.REAL:r||!n.has(W.EXTENDS)?as.ExtensionType.NONE:as.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case as.ExtensionType.EXTENDS:case as.ExtensionType.NONE:{if(n===as.ExtensionType.REAL)return;this.errors.push((0,oe.duplicateTypeDefinitionError)((0,Ke.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 W.PROPAGATE:{if(o.value.kind!=Z.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case W.DESCRIPTION_OVERRIDE:{if(o.value.kind!=Z.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(W.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,oe.duplicateImplementedInterfaceError)((0,Jn.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,Fn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByDirectiveName.has(W.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByDirectiveName.has(W.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,Ke.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,oe.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,{argumentDataByName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,Fn.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(!W.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!mf.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,oe.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,oe.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={argumentTypeNodeByName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let d=l.name.value;if(r.has(d)){c.add(d);continue}l.defaultValue&&i.add(d),(0,rn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(d),r.set(d,{name:d,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,oe.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,oe.duplicateDirectiveDefinitionError)(n)),!1;this.definedDirectiveNames.add(n);let r=$r.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(n);if(r)return this.directiveDefinitionByName.set(n,r),this.isSubgraphVersionTwo=!0,!1;if($r.DIRECTIVE_DEFINITION_BY_NAME.has(n))return!1;this.directiveDefinitionByName.set(n,t);let i=[],{argumentTypeNodeByName:a,optionalArgumentNames:o,requiredArgumentNames:c}=this.extractArgumentData(t.arguments,i);return this.directiveDefinitionDataByName.set(n,{argumentTypeNodeByName:a,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,i),name:n,node:t,optionalArgumentNames:o,requiredArgumentNames:c}),i.length>0&&this.errors.push((0,oe.invalidDirectiveDefinitionError)(n,i)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,c=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:d,isShareable:f}=(0,rn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),y=(0,lr.getTypeNodeNamedTypeName)(n.type),I={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,rn.newExternalFieldData)(d)]]),federatedCoords:`${c}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(W.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,f]]),kind:Z.Kind.FIELD_DEFINITION,name:o,namedTypeKind:$r.BASE_SCALARS.has(y)?Z.Kind.SCALAR_TYPE_DEFINITION:Z.Kind.NULL,namedTypeName:y,node:(0,lr.getMutableFieldNode)(n,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,rn.newPersistedDirectivesData)(),renamedParentTypeName:c,subgraphNames:new Set([this.subgraphName]),type:(0,lr.getMutableTypeNode)(n.type,l,this.errors),directivesByDirectiveName:i,description:(0,Fn.formatDescription)(n.description)};return $r.BASE_SCALARS.has(I.namedTypeName)||this.referencedTypeNames.add(I.namedTypeName),this.extractConfigureDescriptionsData(I),t.set(o,I),I}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,d=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,rn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,oe.incompatibleInputValueDefaultValueTypeError)((r?W.ARGUMENT:W.INPUT_FIELD)+` "${l}"`,d,(0,vi.printTypeNode)(i.type),(0,Z.print)(i.defaultValue)));let f=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,y=(0,lr.getTypeNodeNamedTypeName)(i.type),I={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:this.extractDirectives(i,new Map),federatedCoords:f,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?Z.Kind.ARGUMENT:Z.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:$r.BASE_SCALARS.has(y)?Z.Kind.SCALAR_TYPE_DEFINITION:Z.Kind.NULL,namedTypeName:y,node:(0,lr.getMutableInputValueNode)(i,a,this.errors),originalCoords:d,originalParentTypeName:a,persistedDirectivesData:(0,rn.newPersistedDirectivesData)(),renamedParentTypeName:c,requiredSubgraphNames:new Set((0,rn.isTypeRequired)(i.type)?[this.subgraphName]:[]),subgraphNames:new Set([this.subgraphName]),type:(0,lr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,Fn.formatDescription)(i.description)};this.extractConfigureDescriptionsData(I),n.set(l,I)}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 d of t.fields)c.interfaceFieldNames.add(d.name.value);if(i){if(i.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,oe.multipleNamedTypeDefinitionError)(r,(0,Ke.kindToNodeType)(i.kind),(0,Jn.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(W.KEY),isInaccessible:a.has(W.INACCESSIBLE),kind:Z.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,lr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,rn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,Fn.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 Z.OperationTypeNode.MUTATION:return W.MUTATION;case Z.OperationTypeNode.SUBSCRIPTION:return W.SUBSCRIPTION;default:return W.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){var f;let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(f=i==null?void 0:i.directivesByDirectiveName)!=null?f:new Map),o=this.isTypeNameRootType(r),c=this.getNodeExtensionType(n,a,o);if(this.addInterfaceObjectFieldsByNode(t),i){if(i.kind!==Z.Kind.OBJECT_TYPE_DEFINITION){this.errors.push((0,oe.multipleNamedTypeDefinitionError)(r,(0,Ke.kindToNodeType)(i.kind),(0,Jn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),a.has(W.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(W.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,r);let d={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(W.KEY),isInaccessible:a.has(W.INACCESSIBLE),isRootType:o,kind:Z.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,lr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,rn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,Fn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(d),this.parentDefinitionDataByTypeName.set(r,d)}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!==Z.Kind.ENUM_TYPE_DEFINITION){this.errors.push((0,oe.multipleNamedTypeDefinitionError)(r,(0,Ke.kindToNodeType)(i.kind),(0,Jn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(W.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Fn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(W.INACCESSIBLE),kind:Z.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,lr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,rn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Fn.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)return i.kind!==Z.Kind.INPUT_OBJECT_TYPE_DEFINITION?(this.errors.push((0,oe.multipleNamedTypeDefinitionError)(r,(0,Ke.kindToNodeType)(i.kind),(0,Jn.kindToConvertedTypeString)(t.kind))),{success:!1}):(this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(W.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,Fn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i),{success:!0,data:i});let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(W.INACCESSIBLE),kind:Z.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,lr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,rn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Fn.formatDescription)("description"in t?t.description:void 0)};return this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c),{success:!0,data: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!==Z.Kind.SCALAR_TYPE_DEFINITION){this.errors.push((0,oe.multipleNamedTypeDefinitionError)(r,(0,Ke.kindToNodeType)(i.kind),(0,Jn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,Fn.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:Z.Kind.SCALAR_TYPE_DEFINITION,name:r,node:(0,lr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,rn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Fn.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,oe.duplicateUnionMemberDefinitionError)(r,a));continue}(0,Ke.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),$r.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!==Z.Kind.UNION_TYPE_DEFINITION){this.errors.push((0,oe.multipleNamedTypeDefinitionError)(r,(0,Ke.kindToNodeType)(i.kind),(0,Jn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,Fn.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:Z.Kind.UNION_TYPE_DEFINITION,memberByMemberTypeName:this.extractUnionMembers(t,new Map),name:r,node:(0,lr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,rn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,Fn.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,oe.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==W.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===W.RESOLVABLE){v.value.kind===Z.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==W.FIELDS){c=void 0;break}if(v.value.kind!==Z.Kind.STRING){c=void 0;break}c=v.value.value}if(c===void 0)continue;let{error:d,documentNode:f}=(0,Fn.safeParse)("{"+c+"}");if(d||!f){this.errors.push((0,oe.invalidDirectiveError)(W.KEY,r,(0,Ke.numberToOrdinal)(i),[(0,oe.unparsableFieldSetErrorMessage)(c,d)]));continue}let y=(0,ui.getNormalizedFieldSet)(f),I=n.get(y);I?I.isUnresolvable||(I.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,Ke.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,lr.getTypeNodeNamedTypeName)(a.node.type),c=this.parentDefinitionDataByTypeName.get(o);return c?c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION&&c.kind!==Z.Kind.OBJECT_TYPE_DEFINITION?{errorString:(0,oe.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:c}:{errorString:(0,oe.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,Fn.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,oe.unparsableFieldSetErrorMessage)(n,o)]};let l=this,d=[t],f=(0,ui.getConditionalFieldSetDirectiveName)(i),y=[],I=`${a}.${r}`,v=(0,ui.getInitialFieldCoordsPath)(i,I),w=[r],U=new Set,j=[],Y=-1,re=!0,ne=r,me=!1;return(0,Z.visit)(c,{Argument:{enter(){return!1}},Field:{enter(ue){let Ae=d[Y],Me=Ae.name;if(Ae.kind===Z.Kind.UNION_TYPE_DEFINITION)return j.push((0,oe.invalidSelectionOnUnionErrorMessage)(n,v,Me)),Z.BREAK;let nt=ue.name.value,X=`${Me}.${nt}`;if(l.unvalidatedExternalFieldCoords.delete(X),re)return j.push((0,oe.invalidSelectionSetErrorMessage)(n,v,Me,(0,Ke.kindToNodeType)(Ae.kind))),Z.BREAK;v.push(X),w.push(nt),ne=nt;let _e=Ae.fieldDataByName.get(nt);if(!_e)return j.push((0,oe.undefinedFieldInFieldSetErrorMessage)(n,Me,nt)),Z.BREAK;if(y[Y].has(nt))return j.push((0,oe.duplicateFieldInFieldSetErrorMessage)(n,X)),Z.BREAK;y[Y].add(nt);let{isDefinedExternal:vt,isUnconditionallyProvided:an}=(0,Ke.getOrThrowError)(_e.externalFieldDataBySubgraphName,l.subgraphName,`${X}.externalFieldDataBySubgraphName`),sn=vt&&!an;an||(me=!0);let wn=(0,lr.getTypeNodeNamedTypeName)(_e.node.type),$t=l.parentDefinitionDataByTypeName.get(wn);if($r.BASE_SCALARS.has(wn)||($t==null?void 0:$t.kind)===Z.Kind.SCALAR_TYPE_DEFINITION||($t==null?void 0:$t.kind)===Z.Kind.ENUM_TYPE_DEFINITION){if(U.size<1&&!vt){if(l.isSubgraphVersionTwo){l.errors.push((0,oe.nonExternalConditionalFieldError)(I,l.subgraphName,X,n,f));return}l.warnings.push((0,ss.nonExternalConditionalFieldWarning)(I,l.subgraphName,X,n,f));return}if(U.size<1&&an){l.isSubgraphVersionTwo?j.push((0,oe.fieldAlreadyProvidedErrorMessage)(X,l.subgraphName,f)):l.warnings.push((0,ss.fieldAlreadyProvidedWarning)(X,f,I,l.subgraphName));return}if(!sn&&!i)return;let En=(0,Ke.getValueOrDefault)(l.conditionalFieldDataByCoords,X,rn.newConditionalFieldData),kr=(0,Nf.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...w]});i?En.providedBy.push(kr):En.requiredBy.push(kr);return}if(!$t)return j.push((0,oe.unknownTypeInFieldSetErrorMessage)(n,X,wn)),Z.BREAK;if(vt&&(i&&(0,Ke.getValueOrDefault)(l.conditionalFieldDataByCoords,X,rn.newConditionalFieldData).providedBy.push((0,Nf.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...w]})),U.add(X)),$t.kind===Z.Kind.OBJECT_TYPE_DEFINITION||$t.kind===Z.Kind.INTERFACE_TYPE_DEFINITION||$t.kind===Z.Kind.UNION_TYPE_DEFINITION){re=!0,d.push($t);return}},leave(){U.delete(v.pop()||""),w.pop()}},InlineFragment:{enter(ue){let Ae=d[Y],Me=Ae.name,nt=v.length<1?t.name:v[v.length-1];if(!ue.typeCondition)return j.push((0,oe.inlineFragmentWithoutTypeConditionErrorMessage)(n,nt)),Z.BREAK;let X=ue.typeCondition.name.value;if(X===Me){d.push(Ae),re=!0;return}if(!(0,Fn.isKindAbstract)(Ae.kind))return j.push((0,oe.invalidInlineFragmentTypeErrorMessage)(n,v,X,Me)),Z.BREAK;let _e=l.parentDefinitionDataByTypeName.get(X);if(!_e)return j.push((0,oe.unknownInlineFragmentTypeConditionErrorMessage)(n,v,Me,X)),Z.BREAK;switch(re=!0,_e.kind){case Z.Kind.INTERFACE_TYPE_DEFINITION:{if(!_e.implementedInterfaceTypeNames.has(Me))break;d.push(_e);return}case Z.Kind.OBJECT_TYPE_DEFINITION:{let vt=l.concreteTypeNamesByAbstractTypeName.get(Me);if(!vt||!vt.has(X))break;d.push(_e);return}case Z.Kind.UNION_TYPE_DEFINITION:{d.push(_e);return}default:return j.push((0,oe.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,Me,X,(0,Ke.kindToNodeType)(_e.kind))),Z.BREAK}return j.push((0,oe.invalidInlineFragmentTypeConditionErrorMessage)(n,v,X,(0,Ke.kindToNodeType)(Ae.kind),Me)),Z.BREAK}},SelectionSet:{enter(){if(!re){let ue=d[Y];if(ue.kind===Z.Kind.UNION_TYPE_DEFINITION)return j.push((0,oe.unparsableFieldSetSelectionErrorMessage)(n,ne)),Z.BREAK;let Ae=ue.fieldDataByName.get(ne);if(!Ae)return j.push((0,oe.undefinedFieldInFieldSetErrorMessage)(n,ue.name,ne)),Z.BREAK;let Me=(0,lr.getTypeNodeNamedTypeName)(Ae.node.type),nt=l.parentDefinitionDataByTypeName.get(Me),X=nt?nt.kind:Z.Kind.SCALAR_TYPE_DEFINITION;return j.push((0,oe.invalidSelectionSetDefinitionErrorMessage)(n,v,Me,(0,Ke.kindToNodeType)(X))),Z.BREAK}if(Y+=1,re=!1,Y<0||Y>=d.length)return j.push((0,oe.unparsableFieldSetSelectionErrorMessage)(n,ne)),Z.BREAK;y.push(new Set)},leave(){if(re){let ue=d[Y+1];j.push((0,oe.invalidSelectionSetErrorMessage)(n,v,ue.name,(0,Ke.kindToNodeType)(ue.kind))),re=!1}Y-=1,d.pop(),y.pop()}}}),j.length>0||!me?{errorMessages:j}:{configuration:{fieldName:r,selectionSet:(0,ui.getNormalizedFieldSet)(c)},errorMessages:j}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,rn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:d,errorString:f}=this.getFieldSetParent(r,t,c,o),y=`${o}.${c}`;if(f){i.push(f);continue}if(!d)continue;let{errorMessages:I,configuration:v}=this.validateConditionalFieldSet(d,l,c,r,o);if(I.length>0){i.push(` On field "${y}": - -`+I.join(W.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,oe.invalidProvidesOrRequiresDirectivesError)((0,ui.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(W.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if($r.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,Ke.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[f,y]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${f}`);let I=!1,v=t.fieldDataByName.get(f);if(!v){d=!0,l.unimplementedFields.push(f);continue}let w={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,vi.printTypeNode)(y.node.type),unimplementedArguments:new Set};(0,rn.isTypeValidImplementation)(y.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,I=!0,w.implementedResponseType=(0,vi.printTypeNode)(v.node.type));let U=new Set;for(let[j,Y]of y.argumentDataByName){U.add(j);let re=v.argumentDataByName.get(j);if(!re){d=!0,I=!0,w.unimplementedArguments.add(j);continue}let ne=(0,vi.printTypeNode)(re.type),me=(0,vi.printTypeNode)(Y.type);me!==ne&&(d=!0,I=!0,w.invalidImplementedArguments.push({actualType:ne,argumentName:j,expectedType:me}))}for(let[j,Y]of v.argumentDataByName)U.has(j)||Y.type.kind===Z.Kind.NON_NULL_TYPE&&(d=!0,I=!0,w.invalidAdditionalArguments.add(j));!n&&v.isInaccessible&&!y.isInaccessible&&(d=!0,I=!0,w.isInaccessible=!0),I&&l.invalidFieldImplementations.set(f,w)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,oe.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,oe.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,oe.invalidInterfaceImplementationError)(t.name,(0,Ke.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,Ke.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,Jn.newAuthorizationData)(n));if(t.kind===Z.Kind.FIELD_DEFINITION){let i=(0,Ke.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,Jn.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,oe.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,Ke.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,Ke.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:n,errorMessages:r}){var y;let i=new Set,a=t.node.type,o=0;for(;a;)switch(a.kind){case Z.Kind.LIST_TYPE:{o+=1,a=a.type;break}case Z.Kind.NON_NULL_TYPE:{i.add(o),a=a.type;break}default:{a=null;break}}let c=(y=n.arguments)==null?void 0:y.find(I=>I.name.value===W.LEVELS);if(!c||c.value.kind!==Z.Kind.LIST){r.push(oe.semanticNonNullArgumentErrorMessage);return}let l=c.value.values,d=(0,vi.printTypeNode)(t.type),f=new Set;for(let{value:I}of l){let v=parseInt(I,10);if(Number.isNaN(v)){r.push((0,oe.semanticNonNullLevelsNaNIndexErrorMessage)(I));continue}if(v<0||v>o){r.push((0,oe.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:d,value:I}));continue}if(!i.has(v)){f.add(v);continue}r.push((0,oe.semanticNonNullLevelsNonNullErrorMessage)({typeString:d,value:I}))}t.nullLevelsBySubgraphName.set(this.subgraphName,f)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>$r.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,Jn.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case W.TOPIC:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push((0,oe.invalidEventSubjectErrorMessage)(W.TOPIC));continue}(0,ui.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case W.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_KAFKA,topics:a,type:W.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case W.TOPICS:{if(c.value.kind!==Z.Kind.LIST){i.push((0,oe.invalidEventSubjectsErrorMessage)(W.TOPICS));continue}for(let l of c.value.values){if(l.kind!==Z.Kind.STRING||l.value.length<1){i.push((0,oe.invalidEventSubjectsItemErrorMessage)(W.TOPICS));break}(0,ui.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case W.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_KAFKA,topics:a,type:W.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=W.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case W.SUBJECT:{if(l.value.kind!==Z.Kind.STRING||l.value.value.length<1){a.push((0,oe.invalidEventSubjectErrorMessage)(W.SUBJECT));continue}(0,ui.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case W.PROVIDER_ID:{if(l.value.kind!==Z.Kind.STRING||l.value.value.length<1){a.push(oe.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:W.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID,c=ch.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",d="";for(let f of t.arguments||[])switch(f.name.value){case W.SUBJECTS:{if(f.value.kind!==Z.Kind.LIST){i.push((0,oe.invalidEventSubjectsErrorMessage)(W.SUBJECTS));continue}for(let y of f.value.values){if(y.kind!==Z.Kind.STRING||y.value.length<1){i.push((0,oe.invalidEventSubjectsItemErrorMessage)(W.SUBJECTS));break}(0,ui.validateArgumentTemplateReferences)(y.value,n,i),a.push(y.value)}break}case W.PROVIDER_ID:{if(f.value.kind!==Z.Kind.STRING||f.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=f.value.value;break}case W.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,f.value.kind!==Z.Kind.OBJECT||f.value.fields.length<1){i.push(oe.invalidNatsStreamInputErrorMessage);continue}let y=!0,I=new Set,v=new Set(mf.STREAM_CONFIGURATION_FIELD_NAMES),w=new Set([W.CONSUMER_NAME,W.STREAM_NAME]),U=new Set,j=new Set;for(let Y of f.value.fields){let re=Y.name.value;if(!mf.STREAM_CONFIGURATION_FIELD_NAMES.has(re)){I.add(re),y=!1;continue}if(v.has(re))v.delete(re);else{U.add(re),y=!1;continue}switch(w.has(re)&&w.delete(re),re){case W.CONSUMER_NAME:if(Y.value.kind!=Z.Kind.STRING||Y.value.value.length<1){j.add(re),y=!1;continue}l=Y.value.value;break;case W.STREAM_NAME:if(Y.value.kind!=Z.Kind.STRING||Y.value.value.length<1){j.add(re),y=!1;continue}d=Y.value.value;break;case W.CONSUMER_INACTIVE_THRESHOLD:if(Y.value.kind!=Z.Kind.INT){i.push((0,oe.invalidArgumentValueErrorMessage)((0,Z.print)(Y.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",W.INT_SCALAR)),y=!1;continue}try{c=parseInt(Y.value.value,10)}catch(ne){i.push((0,oe.invalidArgumentValueErrorMessage)((0,Z.print)(Y.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",W.INT_SCALAR)),y=!1}break}}(!y||w.size>0)&&i.push((0,oe.invalidNatsStreamInputFieldsErrorMessage)([...w],[...U],[...j],[...I]))}}if(!(i.length>0))return c<0?(c=ch.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,ss.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${ch.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>Dde.MAX_INT32&&(c=0,this.warnings.push((0,ss.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),M({fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_NATS,subjects:a,type:W.SUBSCRIBE},l&&d?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:d}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case W.CHANNEL:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push((0,oe.invalidEventSubjectErrorMessage)(W.CHANNEL));continue}(0,ui.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case W.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_REDIS,channels:a,type:W.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case W.CHANNELS:{if(c.value.kind!==Z.Kind.LIST){i.push((0,oe.invalidEventSubjectsErrorMessage)(W.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==Z.Kind.STRING||l.value.length<1){i.push((0,oe.invalidEventSubjectsItemErrorMessage)(W.CHANNELS));break}(0,ui.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case W.PROVIDER_ID:{if(c.value.kind!==Z.Kind.STRING||c.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_REDIS,channels:a,type:W.SUBSCRIBE}}validateSubscriptionFilterDirectiveLocation(t){if(!t.directives)return;let n=this.renamedParentTypeName||this.originalParentTypeName,r=`${n}.${t.name.value}`,i=this.getOperationTypeNodeForRootTypeName(n)===Z.OperationTypeNode.SUBSCRIPTION;for(let a of t.directives)if(a.name.value===W.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,oe.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 W.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case W.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case W.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(W.PUBLISH,a,n,r,o);break}case W.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(W.REQUEST,a,n,r,o);break}case W.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case W.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case W.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,oe.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,Ke.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case Z.OperationTypeNode.MUTATION:return new Set([W.EDFS_KAFKA_PUBLISH,W.EDFS_NATS_PUBLISH,W.EDFS_NATS_REQUEST,W.EDFS_REDIS_PUBLISH]);case Z.OperationTypeNode.QUERY:return new Set([W.EDFS_NATS_REQUEST]);case Z.OperationTypeNode.SUBSCRIPTION:return new Set([W.EDFS_KAFKA_SUBSCRIBE,W.EDFS_NATS_SUBSCRIBE,W.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case W.MUTATION:return Z.OperationTypeNode.MUTATION;case W.QUERY:return Z.OperationTypeNode.QUERY;case W.SUBSCRIPTION:return Z.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,oe.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let d=`${l.originalParentTypeName}.${c}`,f=new Set;for(let j of mf.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(j)&&f.add(j);let y=new Set;for(let j of f)o.has(j)||y.add(j);if((f.size<1||y.size>0)&&n.set(d,{definesDirectives:f.size>0,invalidDirectiveNames:[...y]}),a===Z.OperationTypeNode.MUTATION){let j=(0,vi.printTypeNode)(l.type);j!==W.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,j);continue}let I=(0,vi.printTypeNode)(l.type),v=l.namedTypeName+"!",w=!1,U=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let j of U)if(w||(w=this.entityDataByTypeName.has(j)),w)break;(!w||I!==v)&&r.set(d,I)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,Ke.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(W.EDFS_PUBLISH_RESULT);if(!t)return!0;if(t.kind!==Z.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size!=1)return!1;for(let[n,r]of t.fieldDataByName)if(r.argumentDataByName.size>0||n!==W.SUCCESS||(0,vi.printTypeNode)(r.type)!==W.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(!(0,rn.isInputObjectDefinitionData)(t)||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case W.CONSUMER_INACTIVE_THRESHOLD:{if((0,vi.printTypeNode)(r.type)!==W.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==Z.Kind.INT||r.defaultValue.value!==`${ch.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case W.CONSUMER_NAME:case W.STREAM_NAME:{if((0,vi.printTypeNode)(r.type)!==W.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(){let t=[],n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Set,d=new Set;for(let[f,y]of this.parentDefinitionDataByTypeName){if(f===W.EDFS_PUBLISH_RESULT||f===W.EDFS_NATS_STREAM_CONFIGURATION||y.kind!==Z.Kind.OBJECT_TYPE_DEFINITION)continue;if(y.isRootType){this.validateEventDrivenRootType(y,n,r,i);continue}let I=this.keyFieldNamesByParentTypeName.get(f);if(!I){d.add(f);continue}this.validateEventDrivenKeyDefinition(f,a),this.validateEventDrivenObjectFields(y.fieldDataByName,I,o,c)}if(this.isEdfsPublishResultValid()||t.push(oe.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(W.EDFS_NATS_SUBSCRIBE)){let f=this.parentDefinitionDataByTypeName.get(W.EDFS_NATS_STREAM_CONFIGURATION);f&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(f)&&t.push(oe.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(W.EDFS_NATS_STREAM_CONFIGURATION);let y=this.upsertInputObjectByNode(x1.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION);if(y.success)for(let I of x1.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION.fields)this.addInputValueDataByNode({fieldName:I.name.value,isArgument:!1,inputValueDataByName:y.data.inputValueDataByName,node:I,originalParentTypeName:W.EDFS_NATS_STREAM_CONFIGURATION});else return}n.size>0&&t.push((0,oe.invalidRootTypeFieldEventsDirectivesErrorMessage)(n)),i.size>0&&t.push((0,oe.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),r.size>0&&t.push((0,oe.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(r)),a.size>0&&t.push((0,oe.invalidKeyFieldSetsEventDrivenErrorMessage)(a)),o.size>0&&t.push((0,oe.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),c.size>0&&t.push((0,oe.nonKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&t.push((0,oe.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),d.size>0&&t.push((0,oe.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...d])),t.length>0&&this.errors.push((0,oe.invalidEventDrivenGraphError)(t))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,oe.noDefinedUnionMembersError)(t.name));return}let n=[];for(let r of t.memberByMemberTypeName.keys()){let i=this.parentDefinitionDataByTypeName.get(r);i&&i.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&n.push(`"${r}", which is type "${(0,Ke.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,oe.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,Ke.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!==Z.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,oe.undefinedCompositeOutputTypeError)(t));continue}let i=(0,rn.getParentTypeName)(r),a=(0,Ke.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Nf.newConfigurationData)(!0,i)),o=(0,ui.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&W.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let f=(0,Ke.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);f.has(a)||(f.add(a),this.errors.push((0,oe.invalidDirectiveError)(a,n,"1st",[(0,oe.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==W.KEY){i.push(...o);continue}let l=[],d=new Set;for(let f=0;fnew Set).add(U)),(0,Ke.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(w);let re=(0,lr.getTypeNodeNamedTypeName)(j.node.type);if($r.BASE_SCALARS.has(re))return;let ne=a.parentDefinitionDataByTypeName.get(re);if(!ne)return Z.BREAK;if(ne.kind===Z.Kind.OBJECT_TYPE_DEFINITION){f=!0,c.push(ne);return}if((0,Fn.isKindAbstract)(ne.kind))return Z.BREAK}},InlineFragment:{enter(){return Z.BREAK}},SelectionSet:{enter(){if(!f||(d+=1,f=!1,d<0||d>=c.length))return Z.BREAK},leave(){f&&(f=!1),d-=1,c.pop()}}}),!(l.size<1))for(let[y,I]of l)this.warnings.push((0,ss.externalEntityExtensionKeyFieldWarning)(i.name,y,[...I],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!==Z.Kind.OBJECT_TYPE_DEFINITION&&r.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,oe.undefinedCompositeOutputTypeError)(t));continue}let i=(0,rn.getParentTypeName)(r),a=(0,Ke.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Nf.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)}validateOneOfDirective({data:t,requiredFieldNames:n}){var r,i;return t.directivesByDirectiveName.has(W.ONE_OF)?n.size>0?(this.errors.push((0,oe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,ss.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(r=(0,Ke.getFirstEntry)(t.inputValueDataByName))==null?void 0:r.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var a;(0,M1.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,M1.upsertParentsAndChildren)(this,t);let n=[];wm(this,lh,V1).call(this,n),this.validateDirectives(this.schemaData,W.SCHEMA);for(let[o,c]of this.parentDefinitionDataByTypeName)this.validateDirectives(c,o);this.invalidORScopesCoords.size>0&&this.errors.push((0,oe.orScopesLimitError)($r.MAX_OR_SCOPES,[...this.invalidORScopesCoords])),this.schemaData.operationTypes.size>0&&n.push(this.getSchemaNodeByData(this.schemaData));for(let o of this.invalidConfigureDescriptionNodeDatas)o.description||this.errors.push((0,oe.configureDescriptionNoDescriptionError)((0,Ke.kindToNodeType)(o.kind),o.name));this.evaluateExternalKeyFields();for(let[o,c]of this.parentDefinitionDataByTypeName)switch(c.kind){case Z.Kind.ENUM_TYPE_DEFINITION:{if(c.enumValueDataByName.size<1){this.errors.push((0,oe.noDefinedEnumValuesError)(o));break}n.push(this.getEnumNodeByData(c));break}case Z.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(c.inputValueDataByName.size<1){this.errors.push((0,oe.noInputValueDefinitionsError)(o));break}let l=new Set;for(let d of c.inputValueDataByName.values()){if((0,rn.isTypeRequired)(d.type)&&l.add(d.name),d.namedTypeKind!==Z.Kind.NULL)continue;let f=this.parentDefinitionDataByTypeName.get(d.namedTypeName);if(f){if(!(0,rn.isInputNodeKind)(f.kind)){this.errors.push((0,oe.invalidNamedTypeError)({data:d,namedTypeData:f,nodeType:`${(0,Ke.kindToNodeType)(c.kind)} field`}));continue}d.namedTypeKind=f.kind}}if(!this.validateOneOfDirective({data:c,requiredFieldNames:l}))break;o!==W.EDFS_NATS_STREAM_CONFIGURATION&&n.push(this.getInputObjectNodeByData(c));break}case Z.Kind.INTERFACE_TYPE_DEFINITION:case Z.Kind.OBJECT_TYPE_DEFINITION:{let l=this.entityDataByTypeName.has(o),d=this.operationTypeNodeByTypeName.get(o),f=c.kind===Z.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&c.extensionType===as.ExtensionType.EXTENDS&&(c.extensionType=as.ExtensionType.NONE),d&&(c.fieldDataByName.delete(W.SERVICE_FIELD),c.fieldDataByName.delete(W.ENTITIES_FIELD));let y=[];for(let[j,Y]of c.fieldDataByName){if(!f&&((a=Y.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&y.push(j),this.validateArguments(Y,c.kind),Y.namedTypeKind!==Z.Kind.NULL)continue;let re=this.parentDefinitionDataByTypeName.get(Y.namedTypeName);if(re){if(!(0,rn.isOutputNodeKind)(re.kind)){this.errors.push((0,oe.invalidNamedTypeError)({data:Y,namedTypeData:re,nodeType:`${(0,Ke.kindToNodeType)(c.kind)} field`}));continue}Y.namedTypeKind=this.entityInterfaceDataByTypeName.get(re.name)?Z.Kind.INTERFACE_TYPE_DEFINITION:re.kind}}y.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,oe.externalInterfaceFieldsError)(o,y)):this.warnings.push((0,ss.externalInterfaceFieldsWarning)(this.subgraphName,o,y)));let I=(0,rn.getParentTypeName)(c),v=(0,Ke.getValueOrDefault)(this.configurationDataByTypeName,I,()=>(0,Nf.newConfigurationData)(l,o)),w=this.entityInterfaceDataByTypeName.get(o);if(w){w.fieldDatas=(0,Jn.fieldDatasToSimpleFieldDatas)(c.fieldDataByName.values());let j=this.concreteTypeNamesByAbstractTypeName.get(o);j&&(0,Ke.addIterableToSet)({source:j,target:w.concreteTypeNames}),v.isInterfaceObject=w.isInterfaceObject,v.entityInterfaceConcreteTypeNames=w.concreteTypeNames}let U=this.eventsConfigurations.get(I);U&&(v.events=U),this.addFieldNamesToConfigurationData(c.fieldDataByName,v),this.validateInterfaceImplementations(c),n.push(this.getCompositeOutputNodeByData(c)),c.fieldDataByName.size<1&&!(0,ui.isNodeQuery)(o,d)&&this.errors.push((0,oe.noFieldDefinitionsError)((0,Ke.kindToNodeType)(c.kind),o)),c.requireFetchReasonsFieldNames.size>0&&(v.requireFetchReasonsFieldNames=[...c.requireFetchReasonsFieldNames]);break}case Z.Kind.SCALAR_TYPE_DEFINITION:{if(c.extensionType===as.ExtensionType.REAL){this.errors.push((0,oe.noBaseScalarDefinitionError)(o));break}n.push(this.getScalarNodeByData(c));break}case Z.Kind.UNION_TYPE_DEFINITION:{n.push(this.getUnionNodeByData(c)),this.validateUnionMembers(c);break}default:throw(0,oe.unexpectedKindFatalError)(o)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let o of Object.values(Z.OperationTypeNode)){let c=this.schemaData.operationTypes.get(o),l=(0,Ke.getOrThrowError)(Fn.operationTypeNodeToDefaultType,o,W.OPERATION_TO_DEFAULT),d=c?(0,lr.getTypeNodeNamedTypeName)(c.type):l;if($r.BASE_SCALARS.has(d)&&this.referencedTypeNames.add(d),d!==l&&this.parentDefinitionDataByTypeName.has(l)){this.errors.push((0,oe.invalidRootTypeDefinitionError)(o,d,l));continue}let f=this.parentDefinitionDataByTypeName.get(d);if(c){if(!f)continue;this.operationTypeNodeByTypeName.set(d,o)}if(!f)continue;let y=this.configurationDataByTypeName.get(l);y&&(y.isRootNode=!0,y.typeName=l),f.kind!==Z.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,oe.operationDefinitionError)(d,o,f.kind))}for(let o of this.referencedTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(!c){this.errors.push((0,oe.undefinedTypeError)(o));continue}if(c.kind!==Z.Kind.INTERFACE_TYPE_DEFINITION)continue;let l=this.concreteTypeNamesByAbstractTypeName.get(o);(!l||l.size<1)&&this.warnings.push((0,ss.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,o))}let r=new Map;for(let o of this.directiveDefinitionByName.values()){let c=(0,Fn.extractExecutableDirectiveLocations)(o.locations,new Set);c.size<1||this.addPersistedDirectiveDefinitionDataByNode(r,o,c)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph();for(let o of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,oe.invalidExternalDirectiveError)(o)):this.warnings.push((0,ss.invalidExternalFieldWarning)(o,this.subgraphName));if(this.errors.length>0)return{success:!1,errors:this.errors,warnings:this.warnings};let i={kind:Z.Kind.DOCUMENT,definitions:n};return{authorizationDataByParentTypeName:this.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:this.concreteTypeNamesByAbstractTypeName,conditionalFieldDataByCoordinates:this.conditionalFieldDataByCoords,configurationDataByTypeName:this.configurationDataByTypeName,directiveDefinitionByName:this.directiveDefinitionByName,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,Z.print)(i),schema:(0,Ode.buildASTSchema)(i,{assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};lh=new WeakSet,V1=function(t){let n=new Set;for(let r of this.referencedDirectiveNames){let i=$r.DIRECTIVE_DEFINITION_BY_NAME.get(r);i&&(this.directiveDefinitionByName.set(r,i),(0,Ke.addOptionalIterableToSet)({source:mf.DEPENDENCIES_BY_DIRECTIVE_NAME.get(r),target:n}),t.push(i))}for(let r of this.customDirectiveDefinitionByName.values())t.push(r);t.push(...n)};Bc.NormalizationFactory=Tf;function Ade(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,d=new Set,f=new Set,y=[],I=new Set,v=new Map,w=[],U=[];for(let re of e)re.name&&(0,Sde.recordSubgraphName)(re.name,d,f);let j=new KD.Graph;for(let re=0;re0&&w.push(...ue.warnings),!ue.success){U.push((0,oe.subgraphValidationError)(me,ue.errors));continue}if(!ue){U.push((0,oe.subgraphValidationError)(me,[oe.subgraphValidationFailureError]));continue}l.set(me,ue.parentDefinitionDataByTypeName);for(let Ae of ue.authorizationDataByParentTypeName.values())(0,Jn.upsertAuthorizationData)(t,Ae,I);for(let[Ae,Me]of ue.fieldCoordsByNamedTypeName)(0,Ke.addIterableToSet)({source:Me,target:(0,Ke.getValueOrDefault)(v,Ae,()=>new Set)});for(let[Ae,Me]of ue.concreteTypeNamesByAbstractTypeName){let nt=n.get(Ae);if(!nt){n.set(Ae,new Set(Me));continue}(0,Ke.addIterableToSet)({source:Me,target:nt})}for(let[Ae,Me]of ue.entityDataByTypeName){let nt=Me.keyFieldSetDatasBySubgraphName.get(me);nt&&(0,Jn.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:nt,typeName:Ae,subgraphName:me})}if(ne.name&&i.set(me,{conditionalFieldDataByCoordinates:ue.conditionalFieldDataByCoordinates,configurationDataByTypeName:ue.configurationDataByTypeName,definitions:ue.subgraphAST,directiveDefinitionByName:ue.directiveDefinitionByName,entityInterfaces:ue.entityInterfaces,isVersionTwo:ue.isVersionTwo,keyFieldNamesByParentTypeName:ue.keyFieldNamesByParentTypeName,name:me,operationTypes:ue.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:ue.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:ue.persistedDirectiveDefinitionDataByDirectiveName,schema:ue.schema,url:ne.url}),!(ue.overridesByTargetSubgraphName.size<1))for(let[Ae,Me]of ue.overridesByTargetSubgraphName){let nt=d.has(Ae);for(let[X,_e]of Me){let vt=ue.originalTypeNameByRenamedTypeName.get(X)||X;if(!nt)w.push((0,ss.invalidOverrideTargetSubgraphNameWarning)(Ae,vt,[..._e],ne.name));else{let an=(0,Ke.getValueOrDefault)(a,Ae,()=>new Map),sn=(0,Ke.getValueOrDefault)(an,X,()=>new Set(_e));(0,Ke.addIterableToSet)({source:_e,target:sn})}for(let an of _e){let sn=`${vt}.${an}`,wn=o.get(sn);if(!wn){o.set(sn,[me]);continue}wn.push(me),c.add(sn)}}}}let Y=[];if(I.size>0&&Y.push((0,oe.orScopesLimitError)($r.MAX_OR_SCOPES,[...I])),(y.length>0||f.size>0)&&Y.push((0,oe.invalidSubgraphNamesError)([...f],y)),c.size>0){let re=[];for(let ne of c){let me=(0,Ke.getOrThrowError)(o,ne,"overrideSourceSubgraphNamesByFieldPath");re.push((0,oe.duplicateOverriddenFieldErrorMessage)(ne,me))}Y.push((0,oe.duplicateOverriddenFieldsError)(re))}if(Y.push(...U),Y.length>0)return{errors:Y,success:!1,warnings:w};for(let[re,ne]of a){let me=(0,Ke.getOrThrowError)(i,re,"internalSubgraphBySubgraphName");me.overriddenFieldNamesByParentTypeName=ne;for(let[ue,Ae]of ne){let Me=me.configurationDataByTypeName.get(ue);Me&&((0,Jn.subtractSet)(Ae,Me.fieldNames),Me.fieldNames.size<1&&me.configurationDataByTypeName.delete(ue))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:j,success:!0,warnings:w}}});var dh=F(Mc=>{"use strict";m();T();N();Object.defineProperty(Mc,"__esModule",{value:!0});Mc.DivergentType=void 0;Mc.getLeastRestrictiveMergedTypeNode=Pde;Mc.getMostRestrictiveMergedTypeNode=Fde;Mc.renameNamedTypeName=wde;var Uc=Oe(),K1=Gi(),Rde=gu(),j1=Pr(),G1=Cl(),kc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(kc||(Mc.DivergentType=kc={}));function $1(e,t,n,r,i){t=(0,Rde.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=kc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(QD,"__esModule",{value:!0});QD.renameRootTypes=Bde;var Lde=Oe(),$D=Pr(),Cde=dh(),Lu=sr(),xc=Fr();function Bde(e,t){let n,r=!1,i;(0,Lde.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===Lu.SERVICE_FIELD||o===Lu.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,xc.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let f=(0,xc.getOrThrowError)($D.operationTypeNodeToDefaultType,d,Lu.OPERATION_TO_DEFAULT);l.namedTypeName!==f&&(0,Cde.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,xc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Lu.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,xc.getOrThrowError)($D.operationTypeNodeToDefaultType,c,Lu.OPERATION_TO_DEFAULT):o;n=(0,xc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Lu.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,xc.getOrThrowError)($D.operationTypeNodeToDefaultType,c,Lu.OPERATION_TO_DEFAULT):o;n=(0,xc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Lu.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 Q1=F((pd,Ef)=>{"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__",d=1,f=2,y=4,I=1,v=2,w=1,U=2,j=4,Y=8,re=16,ne=32,me=64,ue=128,Ae=256,Me=512,nt=30,X="...",_e=800,vt=16,an=1,sn=2,wn=3,$t=1/0,En=9007199254740991,kr=17976931348623157e292,Mr=NaN,Vn=4294967295,Ht=Vn-1,Ln=Vn>>>1,ae=[["ary",ue],["bind",w],["bindKey",U],["curry",Y],["curryRight",re],["flip",Me],["partial",ne],["partialRight",me],["rearg",Ae]],De="[object Arguments]",Ie="[object Array]",Le="[object AsyncFunction]",St="[object Boolean]",Q="[object Date]",ie="[object DOMException]",xe="[object Error]",Ye="[object Function]",Ut="[object GeneratorFunction]",rt="[object Map]",Ft="[object Number]",ds="[object Null]",Hr="[object Object]",ps="[object Promise]",Wc="[object Proxy]",Pa="[object RegExp]",Ir="[object Set]",ci="[object String]",qt="[object Symbol]",gr="[object Undefined]",Mu="[object WeakMap]",Fa="[object WeakSet]",xu="[object ArrayBuffer]",R="[object DataView]",h="[object Float32Array]",g="[object Float64Array]",B="[object Int8Array]",K="[object Int16Array]",ee="[object Int32Array]",ce="[object Uint8Array]",Tt="[object Uint8ClampedArray]",hn="[object Uint16Array]",cn="[object Uint32Array]",_n=/\b__p \+= '';/g,on=/\b(__p \+=) '' \+/g,bj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jb=/&(?:amp|lt|gt|quot|#39);/g,Hb=/[&<>"']/g,Aj=RegExp(Jb.source),Rj=RegExp(Hb.source),Pj=/<%-([\s\S]+?)%>/g,Fj=/<%([\s\S]+?)%>/g,zb=/<%=([\s\S]+?)%>/g,wj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Lj=/^\w*$/,Cj=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qh=/[\\^$.*+?()[\]{}|]/g,Bj=RegExp(Qh.source),Yh=/^\s+/,Uj=/\s/,kj=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mj=/\{\n\/\* \[wrapped with (.+)\] \*/,xj=/,? & /,qj=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Vj=/[()=,{}\[\]\/\s]/,jj=/\\(\\)?/g,Kj=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wb=/\w*$/,Gj=/^[-+]0x[0-9a-f]+$/i,$j=/^0b[01]+$/i,Qj=/^\[object .+?Constructor\]$/,Yj=/^0o[0-7]+$/i,Jj=/^(?:0|[1-9]\d*)$/,Hj=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jf=/($^)/,zj=/['\n\r\u2028\u2029\\]/g,Kf="\\ud800-\\udfff",Wj="\\u0300-\\u036f",Xj="\\ufe20-\\ufe2f",Zj="\\u20d0-\\u20ff",Xb=Wj+Xj+Zj,Zb="\\u2700-\\u27bf",e0="a-z\\xdf-\\xf6\\xf8-\\xff",eK="\\xac\\xb1\\xd7\\xf7",tK="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",nK="\\u2000-\\u206f",rK=" \\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",t0="A-Z\\xc0-\\xd6\\xd8-\\xde",n0="\\ufe0e\\ufe0f",r0=eK+tK+nK+rK,Jh="['\u2019]",iK="["+Kf+"]",i0="["+r0+"]",Gf="["+Xb+"]",a0="\\d+",aK="["+Zb+"]",s0="["+e0+"]",o0="[^"+Kf+r0+a0+Zb+e0+t0+"]",Hh="\\ud83c[\\udffb-\\udfff]",sK="(?:"+Gf+"|"+Hh+")",u0="[^"+Kf+"]",zh="(?:\\ud83c[\\udde6-\\uddff]){2}",Wh="[\\ud800-\\udbff][\\udc00-\\udfff]",Xc="["+t0+"]",c0="\\u200d",l0="(?:"+s0+"|"+o0+")",oK="(?:"+Xc+"|"+o0+")",d0="(?:"+Jh+"(?:d|ll|m|re|s|t|ve))?",p0="(?:"+Jh+"(?:D|LL|M|RE|S|T|VE))?",f0=sK+"?",m0="["+n0+"]?",uK="(?:"+c0+"(?:"+[u0,zh,Wh].join("|")+")"+m0+f0+")*",cK="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lK="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",N0=m0+f0+uK,dK="(?:"+[aK,zh,Wh].join("|")+")"+N0,pK="(?:"+[u0+Gf+"?",Gf,zh,Wh,iK].join("|")+")",fK=RegExp(Jh,"g"),mK=RegExp(Gf,"g"),Xh=RegExp(Hh+"(?="+Hh+")|"+pK+N0,"g"),NK=RegExp([Xc+"?"+s0+"+"+d0+"(?="+[i0,Xc,"$"].join("|")+")",oK+"+"+p0+"(?="+[i0,Xc+l0,"$"].join("|")+")",Xc+"?"+l0+"+"+d0,Xc+"+"+p0,lK,cK,a0,dK].join("|"),"g"),TK=RegExp("["+c0+Kf+Xb+n0+"]"),EK=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hK=["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"],yK=-1,In={};In[h]=In[g]=In[B]=In[K]=In[ee]=In[ce]=In[Tt]=In[hn]=In[cn]=!0,In[De]=In[Ie]=In[xu]=In[St]=In[R]=In[Q]=In[xe]=In[Ye]=In[rt]=In[Ft]=In[Hr]=In[Pa]=In[Ir]=In[ci]=In[Mu]=!1;var yn={};yn[De]=yn[Ie]=yn[xu]=yn[R]=yn[St]=yn[Q]=yn[h]=yn[g]=yn[B]=yn[K]=yn[ee]=yn[rt]=yn[Ft]=yn[Hr]=yn[Pa]=yn[Ir]=yn[ci]=yn[qt]=yn[ce]=yn[Tt]=yn[hn]=yn[cn]=!0,yn[xe]=yn[Ye]=yn[Mu]=!1;var IK={\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"},gK={"&":"&","<":"<",">":">",'"':""","'":"'"},_K={"&":"&","<":"<",">":">",""":'"',"'":"'"},vK={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},OK=parseFloat,SK=parseInt,T0=typeof global=="object"&&global&&global.Object===Object&&global,DK=typeof self=="object"&&self&&self.Object===Object&&self,dr=T0||DK||Function("return this")(),Zh=typeof pd=="object"&&pd&&!pd.nodeType&&pd,qu=Zh&&typeof Ef=="object"&&Ef&&!Ef.nodeType&&Ef,E0=qu&&qu.exports===Zh,ey=E0&&T0.process,Oi=function(){try{var G=qu&&qu.require&&qu.require("util").types;return G||ey&&ey.binding&&ey.binding("util")}catch(se){}}(),h0=Oi&&Oi.isArrayBuffer,y0=Oi&&Oi.isDate,I0=Oi&&Oi.isMap,g0=Oi&&Oi.isRegExp,_0=Oi&&Oi.isSet,v0=Oi&&Oi.isTypedArray;function li(G,se,te){switch(te.length){case 0:return G.call(se);case 1:return G.call(se,te[0]);case 2:return G.call(se,te[0],te[1]);case 3:return G.call(se,te[0],te[1],te[2])}return G.apply(se,te)}function bK(G,se,te,Ce){for(var lt=-1,Qt=G==null?0:G.length;++lt-1}function ty(G,se,te){for(var Ce=-1,lt=G==null?0:G.length;++Ce-1;);return te}function F0(G,se){for(var te=G.length;te--&&Zc(se,G[te],0)>-1;);return te}function UK(G,se){for(var te=G.length,Ce=0;te--;)G[te]===se&&++Ce;return Ce}var kK=ay(IK),MK=ay(gK);function xK(G){return"\\"+vK[G]}function qK(G,se){return G==null?e:G[se]}function el(G){return TK.test(G)}function VK(G){return EK.test(G)}function jK(G){for(var se,te=[];!(se=G.next()).done;)te.push(se.value);return te}function cy(G){var se=-1,te=Array(G.size);return G.forEach(function(Ce,lt){te[++se]=[lt,Ce]}),te}function w0(G,se){return function(te){return G(se(te))}}function eu(G,se){for(var te=-1,Ce=G.length,lt=0,Qt=[];++te-1}function RG(s,u){var p=this.__data__,E=um(p,s);return E<0?(++this.size,p.push([s,u])):p[E][1]=u,this}fs.prototype.clear=SG,fs.prototype.delete=DG,fs.prototype.get=bG,fs.prototype.has=AG,fs.prototype.set=RG;function ms(s){var u=-1,p=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function Ai(s,u,p,E,O,L){var k,V=u&d,J=u&f,le=u&y;if(p&&(k=O?p(s,E,O,L):p(s)),k!==e)return k;if(!Dn(s))return s;var de=ft(s);if(de){if(k=L$(s),!V)return zr(s,k)}else{var Te=Sr(s),be=Te==Ye||Te==Ut;if(ou(s))return mA(s,V);if(Te==Hr||Te==De||be&&!O){if(k=J||be?{}:LA(s),!V)return J?_$(s,$G(k,s)):g$(s,G0(k,s))}else{if(!yn[Te])return O?s:{};k=C$(s,Te,V)}}L||(L=new aa);var Ge=L.get(s);if(Ge)return Ge;L.set(s,k),uR(s)?s.forEach(function(et){k.add(Ai(et,u,p,et,s,L))}):sR(s)&&s.forEach(function(et,Dt){k.set(Dt,Ai(et,u,p,Dt,s,L))});var Ze=le?J?By:Cy:J?Xr:pr,yt=de?e:Ze(s);return Si(yt||s,function(et,Dt){yt&&(Dt=et,et=s[Dt]),Pd(k,Dt,Ai(et,u,p,Dt,s,L))}),k}function QG(s){var u=pr(s);return function(p){return $0(p,s,u)}}function $0(s,u,p){var E=p.length;if(s==null)return!E;for(s=Nn(s);E--;){var O=p[E],L=u[O],k=s[O];if(k===e&&!(O in s)||!L(k))return!1}return!0}function Q0(s,u,p){if(typeof s!="function")throw new Di(i);return kd(function(){s.apply(e,p)},u)}function Fd(s,u,p,E){var O=-1,L=$f,k=!0,V=s.length,J=[],le=u.length;if(!V)return J;p&&(u=vn(u,di(p))),E?(L=ty,k=!1):u.length>=n&&(L=Od,k=!1,u=new Ku(u));e:for(;++OO?0:O+p),E=E===e||E>O?O:Et(E),E<0&&(E+=O),E=p>E?0:lR(E);p0&&p(V)?u>1?_r(V,u-1,p,E,O):Zo(O,V):E||(O[O.length]=V)}return O}var Ty=IA(),H0=IA(!0);function wa(s,u){return s&&Ty(s,u,pr)}function Ey(s,u){return s&&H0(s,u,pr)}function lm(s,u){return Xo(u,function(p){return ys(s[p])})}function $u(s,u){u=au(u,s);for(var p=0,E=u.length;s!=null&&pu}function HG(s,u){return s!=null&&un.call(s,u)}function zG(s,u){return s!=null&&u in Nn(s)}function WG(s,u,p){return s>=Or(u,p)&&s=120&&de.length>=120)?new Ku(k&&de):e}de=s[0];var Te=-1,be=V[0];e:for(;++Te-1;)V!==s&&tm.call(V,J,1),tm.call(s,J,1);return s}function sA(s,u){for(var p=s?u.length:0,E=p-1;p--;){var O=u[p];if(p==E||O!==L){var L=O;hs(O)?tm.call(s,O,1):by(s,O)}}return s}function Oy(s,u){return s+im(q0()*(u-s+1))}function l$(s,u,p,E){for(var O=-1,L=tr(rm((u-s)/(p||1)),0),k=te(L);L--;)k[E?L:++O]=s,s+=p;return k}function Sy(s,u){var p="";if(!s||u<1||u>En)return p;do u%2&&(p+=s),u=im(u/2),u&&(s+=s);while(u);return p}function gt(s,u){return jy(UA(s,u,Zr),s+"")}function d$(s){return K0(ll(s))}function p$(s,u){var p=ll(s);return gm(p,Gu(u,0,p.length))}function Cd(s,u,p,E){if(!Dn(s))return s;u=au(u,s);for(var O=-1,L=u.length,k=L-1,V=s;V!=null&&++OO?0:O+u),p=p>O?O:p,p<0&&(p+=O),O=u>p?0:p-u>>>0,u>>>=0;for(var L=te(O);++E>>1,k=s[L];k!==null&&!fi(k)&&(p?k<=u:k=n){var le=u?null:D$(s);if(le)return Yf(le);k=!1,O=Od,J=new Ku}else J=u?[]:V;e:for(;++E=E?s:Ri(s,u,p)}var fA=rG||function(s){return dr.clearTimeout(s)};function mA(s,u){if(u)return s.slice();var p=s.length,E=B0?B0(p):new s.constructor(p);return s.copy(E),E}function Fy(s){var u=new s.constructor(s.byteLength);return new Zf(u).set(new Zf(s)),u}function E$(s,u){var p=u?Fy(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.byteLength)}function h$(s){var u=new s.constructor(s.source,Wb.exec(s));return u.lastIndex=s.lastIndex,u}function y$(s){return Rd?Nn(Rd.call(s)):{}}function NA(s,u){var p=u?Fy(s.buffer):s.buffer;return new s.constructor(p,s.byteOffset,s.length)}function TA(s,u){if(s!==u){var p=s!==e,E=s===null,O=s===s,L=fi(s),k=u!==e,V=u===null,J=u===u,le=fi(u);if(!V&&!le&&!L&&s>u||L&&k&&J&&!V&&!le||E&&k&&J||!p&&J||!O)return 1;if(!E&&!L&&!le&&s=V)return J;var le=p[E];return J*(le=="desc"?-1:1)}}return s.index-u.index}function EA(s,u,p,E){for(var O=-1,L=s.length,k=p.length,V=-1,J=u.length,le=tr(L-k,0),de=te(J+le),Te=!E;++V1?p[O-1]:e,k=O>2?p[2]:e;for(L=s.length>3&&typeof L=="function"?(O--,L):e,k&&qr(p[0],p[1],k)&&(L=O<3?e:L,O=1),u=Nn(u);++E-1?O[L?u[k]:k]:e}}function vA(s){return Es(function(u){var p=u.length,E=p,O=bi.prototype.thru;for(s&&u.reverse();E--;){var L=u[E];if(typeof L!="function")throw new Di(i);if(O&&!k&&ym(L)=="wrapper")var k=new bi([],!0)}for(E=k?E:p;++E1&&wt.reverse(),de&&JV))return!1;var le=L.get(s),de=L.get(u);if(le&&de)return le==u&&de==s;var Te=-1,be=!0,Ge=p&v?new Ku:e;for(L.set(s,u),L.set(u,s);++Te1?"& ":"")+u[E],u=u.join(p>2?", ":" "),s.replace(kj,`{ +`+Za.LITERAL_SPACE.repeat(t+3)+`... +`+Za.LITERAL_SPACE.repeat(t+2)+`} +`}function QD({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(Za.QUOTATION_JOIN)}".`];if(e){let c=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName)if(a.has(l)){c=!0;for(let p of d)o.push(`The entity ancestor "${e.typeName}" in subgraph "${e.subgraphName}" does not satisfy the key field set "${p}" 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 descendant 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 shares the same root type field "${t.coords}" can provide a route to access "${r}".`),o.push(`The type "${i}" is not a descendant 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 eV({entityAncestors: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(Za.QUOTATION_JOIN)}".`],c=!1;for(let[l,d]of e.fieldSetsByTargetSubgraphName){if(!a.has(l))continue;let p=e.subgraphNames.filter(I=>I!==l),E=p.length>1;c=!0;for(let I of d)o.push(`The entity ancestor "${e.typeName}" in subgraph${E?"s":""} "${p.join(Za.QUOTATION_JOIN)}" do${E?"":"es"} not satisfy the key field set "${I}" to access subgraph "${l}".`)}if(!c){let l=e.subgraphNames.length>1;o.push(`The entity ancestor "${e.typeName}" in subgraph${l?"s":""} "${e.subgraphNames.join(Za.QUOTATION_JOIN)}" ha${l?"ve":"s"} no accessible target entities (resolvable @key directives) in the subgraphs where "${i}.${r}" is defined.`)}return o.push(`The type "${i}" is not a descendant of any other entity ancestors that can provide a shared route to access "${r}".`),i!==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 LE(e){let t=e.split(new RegExp("(?<=\\w)\\.")),n="",r="";for(let i=0;i{"use strict";m();T();N();Object.defineProperty(BE,"__esModule",{value:!0});BE.NodeResolutionData=void 0;var Jde=qi(),Fc,HD=class HD{constructor({fieldDataByName:t,isResolved:n=!1,resolvedDescendantNames:r,resolvedFieldNames:i,typeName:a}){Yu(this,Fc,!1);_(this,"fieldDataByName");_(this,"resolvedDescendantNames");_(this,"resolvedFieldNames");_(this,"typeName");Ky(this,Fc,n),this.fieldDataByName=t,this.resolvedDescendantNames=new Set(r),this.resolvedFieldNames=new Set(i),this.typeName=a}addData(t){for(let n of t.resolvedFieldNames)this.addResolvedFieldName(n);for(let n of t.resolvedDescendantNames)this.resolvedDescendantNames.add(n)}addResolvedFieldName(t){if(!this.fieldDataByName.has(t))throw(0,Jde.unexpectedEdgeFatalError)(this.typeName,[t]);this.resolvedFieldNames.add(t)}copy(){return new HD({fieldDataByName:this.fieldDataByName,isResolved:jy(this,Fc),resolvedDescendantNames:this.resolvedDescendantNames,resolvedFieldNames:this.resolvedFieldNames,typeName:this.typeName})}areDescendantsResolved(){return this.fieldDataByName.size===this.resolvedDescendantNames.size}isResolved(){if(jy(this,Fc))return!0;if(this.fieldDataByName.size!==this.resolvedFieldNames.size)return!1;for(let t of this.fieldDataByName.keys())if(!this.resolvedFieldNames.has(t))return!1;return Ky(this,Fc,!0),!0}};Fc=new WeakMap;var JD=HD;BE.NodeResolutionData=JD});var nV=w(kE=>{"use strict";m();T();N();Object.defineProperty(kE,"__esModule",{value:!0});kE.EntityWalker=void 0;var Hde=UE(),es=Rr(),zD=class{constructor({encounteredEntityNodeNames:t,index:n,relativeOriginPaths:r,resDataByNodeName:i,resDataByRelativeOriginPath:a,subgraphNameByUnresolvablePath:o,visitedEntities:c}){_(this,"encounteredEntityNodeNames");_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByRelativeOriginPath");_(this,"selectionPathByEntityNodeName",new Map);_(this,"subgraphNameByUnresolvablePath");_(this,"visitedEntities");_(this,"relativeOriginPaths");this.encounteredEntityNodeNames=t,this.index=n,this.relativeOriginPaths=r,this.resDataByNodeName=i,this.resDataByRelativeOriginPath=a,this.visitedEntities=c,this.subgraphNameByUnresolvablePath=o}getNodeResolutionData({node:{fieldDataByName:t,nodeName:n,typeName:r},selectionPath:i}){let a=(0,es.getValueOrDefault)(this.resDataByNodeName,n,()=>new Hde.NodeResolutionData({fieldDataByName:t,typeName:r}));if(!this.relativeOriginPaths||this.relativeOriginPaths.size<1)return(0,es.getValueOrDefault)(this.resDataByRelativeOriginPath,i,()=>a.copy());let o;for(let c of this.relativeOriginPaths){let l=(0,es.getValueOrDefault)(this.resDataByRelativeOriginPath,`${c}${i}`,()=>a.copy());o!=null||(o=l)}return o}visitEntityDescendantEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!1}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,es.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.visitedEntities.has(t.node.nodeName)||this.encounteredEntityNodeNames.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:(this.encounteredEntityNodeNames.add(t.node.nodeName),(0,es.getValueOrDefault)(this.selectionPathByEntityNodeName,t.node.nodeName,()=>`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitEntityDescendantAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitEntityDescendantConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):(this.removeUnresolvablePaths({selectionPath:`${n}.${t.edgeName}`,removeDescendantPaths:!0}),{visited:!0,areDescendantsResolved:!0,isRevisitedNode:!0})}visitEntityDescendantConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};let i;for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l,isRevisitedNode:d}=this.visitEntityDescendantEdge({edge:o,selectionPath:n});i!=null||(i=d),this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:r,nodeName:t.nodeName,selectionPath:n,visited:c})}return r.isResolved()?this.removeUnresolvablePaths({removeDescendantPaths:i,selectionPath:n}):this.addUnresolvablePaths({selectionPath:n,subgraphName:t.subgraphName}),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}visitEntityDescendantAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEntityDescendantEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,nodeName:i,selectionPath:a,visited:o}){if(!o)return;let c=(0,es.getValueOrDefault)(this.resDataByNodeName,i,()=>n.copy());if(n.addResolvedFieldName(r),c.addResolvedFieldName(r),t&&n.resolvedDescendantNames.add(r),this.relativeOriginPaths){for(let d of this.relativeOriginPaths){let p=(0,es.getValueOrDefault)(this.resDataByRelativeOriginPath,`${d}${a}`,()=>n.copy());p.addResolvedFieldName(r),t&&p.resolvedDescendantNames.add(r)}return}let l=(0,es.getValueOrDefault)(this.resDataByRelativeOriginPath,a,()=>n.copy());l.addResolvedFieldName(r),t&&l.resolvedDescendantNames.add(r)}addUnresolvablePaths({selectionPath:t,subgraphName:n}){if(!this.relativeOriginPaths){(0,es.getValueOrDefault)(this.subgraphNameByUnresolvablePath,t,()=>n);return}for(let r of this.relativeOriginPaths)(0,es.getValueOrDefault)(this.subgraphNameByUnresolvablePath,`${r}${t}`,()=>n)}removeUnresolvablePaths({selectionPath:t,removeDescendantPaths:n}){if(!this.relativeOriginPaths){if(this.subgraphNameByUnresolvablePath.delete(t),n)for(let r of this.subgraphNameByUnresolvablePath.keys())r.startsWith(t)&&this.subgraphNameByUnresolvablePath.delete(r);return}for(let r of this.relativeOriginPaths){let i=`${r}${t}`;if(this.subgraphNameByUnresolvablePath.delete(i),n)for(let a of this.subgraphNameByUnresolvablePath.keys())a.startsWith(i)&&this.subgraphNameByUnresolvablePath.delete(a)}}};kE.EntityWalker=zD});var rV=w(xE=>{"use strict";m();T();N();Object.defineProperty(xE,"__esModule",{value:!0});xE.RootFieldWalker=void 0;var ts=Rr(),ME=UE(),WD=class{constructor({index:t,nodeResolutionDataByNodeName:n}){_(this,"index");_(this,"resDataByNodeName");_(this,"resDataByPath",new Map);_(this,"entityNodeNamesByPath",new Map);_(this,"pathsByEntityNodeName",new Map);_(this,"unresolvablePaths",new Set);this.index=t,this.resDataByNodeName=n}visitEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,ts.add)(t.visitedIndices,this.index)?t.node.hasEntitySiblings?this.resDataByNodeName.has(t.node.nodeName)?{visited:!0,areDescendantsResolved:!0}:((0,ts.getValueOrDefault)(this.pathsByEntityNodeName,t.node.nodeName,()=>new Set).add(`${n}.${t.edgeName}`),{visited:!0,areDescendantsResolved:!1}):t.node.isAbstract?this.visitAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):{visited:!0,areDescendantsResolved:!0}}visitAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.resDataByNodeName.get(t.nodeName);if(r)return{visited:!0,areDescendantsResolved:r.areDescendantsResolved()};let i=this.getNodeResolutionData({node:t,selectionPath:n});if(i.isResolved()&&i.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[a,o]of t.headToTailEdges){let{visited:c,areDescendantsResolved:l}=this.visitEdge({edge:o,selectionPath:n});this.propagateVisitedField({areDescendantsResolved:l,fieldName:a,data:i,node:t,selectionPath:n,visited:c})}return i.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:i.areDescendantsResolved()}}visitSharedEdge({edge:t,selectionPath:n}){return t.isInaccessible||t.node.isInaccessible?{visited:!1,areDescendantsResolved:!0}:t.node.isLeaf?{visited:!0,areDescendantsResolved:!0}:(0,ts.add)(t.visitedIndices,this.index)?(t.node.hasEntitySiblings&&(0,ts.getValueOrDefault)(this.entityNodeNamesByPath,`${n}.${t.edgeName}`,()=>new Set).add(t.node.nodeName),t.node.isAbstract?this.visitSharedAbstractNode({node:t.node,selectionPath:`${n}.${t.edgeName}`}):this.visitSharedConcreteNode({node:t.node,selectionPath:`${n}.${t.edgeName}`})):{visited:!0,areDescendantsResolved:!0}}visitSharedAbstractNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return{visited:!0,areDescendantsResolved:!0};let r=0;for(let i of t.headToTailEdges.values())this.visitSharedEdge({edge:i,selectionPath:n}).areDescendantsResolved&&(r+=1);return{visited:!0,areDescendantsResolved:r===t.headToTailEdges.size}}visitSharedConcreteNode({node:t,selectionPath:n}){if(t.headToTailEdges.size<1)return t.isLeaf=!0,{visited:!0,areDescendantsResolved:!0};let r=this.getSharedNodeResolutionData({node:t,selectionPath:n});if(r.isResolved()&&r.areDescendantsResolved())return{visited:!0,areDescendantsResolved:!0};for(let[i,a]of t.headToTailEdges){let{visited:o,areDescendantsResolved:c}=this.visitSharedEdge({edge:a,selectionPath:n});this.propagateSharedVisitedField({areDescendantsResolved:c,data:r,fieldName:i,node:t,visited:o})}return r.isResolved()?this.unresolvablePaths.delete(n):this.unresolvablePaths.add(n),{visited:!0,areDescendantsResolved:r.areDescendantsResolved()}}getNodeResolutionData({node:t,selectionPath:n}){let r=(0,ts.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new ME.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,ts.getValueOrDefault)(this.resDataByPath,n,()=>r.copy()),r}getSharedNodeResolutionData({node:t,selectionPath:n}){let r=(0,ts.getValueOrDefault)(this.resDataByNodeName,t.nodeName,()=>new ME.NodeResolutionData({fieldDataByName:t.fieldDataByName,typeName:t.typeName}));return(0,ts.getValueOrDefault)(this.resDataByPath,n,()=>r.copy())}propagateVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,selectionPath:a,visited:o}){if(!o)return;n.addResolvedFieldName(r);let c=(0,ts.getValueOrDefault)(this.resDataByPath,a,()=>new ME.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));c.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),c.resolvedDescendantNames.add(r))}propagateSharedVisitedField({areDescendantsResolved:t,data:n,fieldName:r,node:i,visited:a}){if(!a)return;n.addResolvedFieldName(r);let o=(0,ts.getValueOrDefault)(this.resDataByNodeName,i.nodeName,()=>new ME.NodeResolutionData({fieldDataByName:i.fieldDataByName,typeName:i.typeName}));o.addResolvedFieldName(r),t&&(n.resolvedDescendantNames.add(r),o.resolvedDescendantNames.add(r))}visitRootFieldEdges({edges:t,rootTypeName:n}){let r=t.length>1;for(let i of t){if(i.isInaccessible)return{visited:!1,areDescendantsResolved:!1};let a=r?this.visitSharedEdge({edge:i,selectionPath:n}):this.visitEdge({edge:i,selectionPath:n});if(a.areDescendantsResolved)return a}return{visited:!0,areDescendantsResolved:!1}}};xE.RootFieldWalker=WD});var ZD=w(VE=>{"use strict";m();T();N();Object.defineProperty(VE,"__esModule",{value:!0});VE.Graph=void 0;var od=jD(),wc=YD(),ea=Rr(),qE=KD(),zde=nV(),Wde=rV(),XD=class{constructor(){_(this,"edgeId",-1);_(this,"entityDataNodeByTypeName",new Map);_(this,"nodeByNodeName",new Map);_(this,"nodesByTypeName",new Map);_(this,"resolvedRootFieldNodeNames",new Set);_(this,"rootNodeByTypeName",new Map);_(this,"subgraphName",qE.NOT_APPLICABLE);_(this,"resDataByNodeName",new Map);_(this,"resDataByRelativePathByEntity",new Map);_(this,"visitedEntitiesByOriginEntity",new Map);_(this,"walkerIndex",-1)}getRootNode(t){return(0,ea.getValueOrDefault)(this.rootNodeByTypeName,t,()=>new od.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 od.GraphNode(this.subgraphName,t,n);return this.nodeByNodeName.set(r,a),(0,ea.getValueOrDefault)(this.nodesByTypeName,t,()=>[]).push(a),a}addEdge(t,n,r,i=!1){if(t.isRootNode){let c=new od.Edge(this.getNextEdgeId(),n,r);return(0,ea.getValueOrDefault)(t.headToSharedTailEdges,r,()=>[]).push(c),c}let a=t,o=new od.Edge(this.getNextEdgeId(),n,i?n.typeName:r,i);return a.headToTailEdges.set(r,o),o}addEntityDataNode(t){let n=this.entityDataNodeByTypeName.get(t);if(n)return n;let r=new od.EntityDataNode(t);return this.entityDataNodeByTypeName.set(t,r),r}getNextEdgeId(){return this.edgeId+=1}getNextWalkerIndex(){return this.walkerIndex+=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.entityDataNodeByTypeName.get(t);if(qE.ROOT_TYPE_NAMES.has(t)){let a=this.getRootNode(t);a.removeInaccessibleEdges(n),a.fieldDataByName=n;return}let i=this.nodesByTypeName.get(t);if(i){for(let a of i)if(a.fieldDataByName=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!=null?c:[]){if(l===a.subgraphName)continue;let d=this.nodeByNodeName.get(`${l}.${a.typeName}`);d&&a.entityEdges.push(new od.Edge(this.getNextEdgeId(),d,""))}}}}}setSubgraphName(t){this.subgraphName=t}visitEntity({encounteredEntityNodeNames:t,entityNodeName:n,relativeOriginPaths:r,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}){let c=this.nodeByNodeName.get(n);if(!c)throw new Error(`Fatal: Could not find entity node for "${n}".`);o.add(n);let l=this.nodesByTypeName.get(c.typeName);if(!(l!=null&&l.length))throw new Error(`Fatal: Could not find any nodes for "${n}".`);let d=new zde.EntityWalker({encounteredEntityNodeNames:t,index:this.getNextWalkerIndex(),relativeOriginPaths:r,resDataByNodeName:this.resDataByNodeName,resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o}),p=c.getAllAccessibleEntityNodeNames();for(let E of l){if(E.nodeName!==c.nodeName&&!p.has(E.nodeName))continue;let{areDescendantsResolved:I}=d.visitEntityDescendantConcreteNode({node:E,selectionPath:""});if(I)return}for(let[E,I]of d.selectionPathByEntityNodeName)this.visitEntity({encounteredEntityNodeNames:t,entityNodeName:E,relativeOriginPaths:(0,wc.getMultipliedRelativeOriginPaths)({relativeOriginPaths:r,selectionPath:I}),resDataByRelativeOriginPath:i,subgraphNameByUnresolvablePath:a,visitedEntities:o})}validate(){for(let t of this.rootNodeByTypeName.values())for(let[n,r]of t.headToSharedTailEdges){let i=r.length>1;if(!i){let p=r[0].node.nodeName;if(this.resolvedRootFieldNodeNames.has(p))continue;this.resolvedRootFieldNodeNames.add(p)}let a=new Wde.RootFieldWalker({index:this.getNextWalkerIndex(),nodeResolutionDataByNodeName:this.resDataByNodeName});if(a.visitRootFieldEdges({edges:r,rootTypeName:t.typeName.toLowerCase()}).areDescendantsResolved)continue;let o=i?a.entityNodeNamesByPath.size>0:a.pathsByEntityNodeName.size>0;if(a.unresolvablePaths.size<1&&!o)continue;let c=(0,ea.getOrThrowError)(t.fieldDataByName,n,"fieldDataByName"),l=(0,wc.newRootFieldData)(t.typeName,n,c.subgraphNames);if(!o)return{errors:(0,wc.generateRootResolvabilityErrors)({unresolvablePaths:a.unresolvablePaths,resDataByPath:a.resDataByPath,rootFieldData:l}),success:!1};let d=this.validateEntities({isSharedRootField:i,rootFieldData:l,walker:a});if(!d.success)return d}return{success:!0}}consolidateUnresolvableRootWithEntityPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of i.unresolvablePaths){if(!a.startsWith(t))continue;let o=a.slice(t.length),c=(0,ea.getOrThrowError)(i.resDataByPath,a,"rootFieldWalker.unresolvablePaths"),l=n.get(o);if(l){if(c.addData(l),l.addData(c),!c.isResolved()){i.unresolvablePaths.delete(a);continue}i.unresolvablePaths.delete(a),r.delete(o)}}}consolidateUnresolvableEntityWithRootPaths({pathFromRoot:t,resDataByRelativeOriginPath:n,subgraphNameByUnresolvablePath:r,walker:i}){for(let a of r.keys()){let o=(0,ea.getOrThrowError)(n,a,"resDataByRelativeOriginPath"),c=`${t}${a}`,l=i.resDataByPath.get(c);l&&(o.addData(l),l.addData(o)),o.isResolved()&&r.delete(a)}}validateSharedRootFieldEntities({rootFieldData:t,walker:n}){for(let[r,i]of n.entityNodeNamesByPath){let a=new Map,o=new Map;for(let l of i)this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:l,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,visitedEntities:new Set});if(this.consolidateUnresolvableRootWithEntityPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n}),a.size<1)continue;this.consolidateUnresolvableEntityWithRootPaths({pathFromRoot:r,resDataByRelativeOriginPath:o,subgraphNameByUnresolvablePath:a,walker:n});let c=new Array;if(a.size>0&&c.push(...this.getSharedEntityResolvabilityErrors({entityNodeNames:i,resDataByPath:o,pathFromRoot:r,rootFieldData:t,subgraphNameByUnresolvablePath:a})),n.unresolvablePaths.size>0&&c.push(...(0,wc.generateRootResolvabilityErrors)({unresolvablePaths:n.unresolvablePaths,resDataByPath:n.resDataByPath,rootFieldData:t})),!(c.length<1))return{errors:c,success:!1}}return n.unresolvablePaths.size>0?{errors:(0,wc.generateRootResolvabilityErrors)({resDataByPath:n.resDataByPath,rootFieldData:t,unresolvablePaths:n.unresolvablePaths}),success:!1}:{success:!0}}validateRootFieldEntities({rootFieldData:t,walker:n}){var r;for(let[i,a]of n.pathsByEntityNodeName){let o=new Map;if(this.resDataByNodeName.has(i))continue;let c=(0,ea.getValueOrDefault)(this.resDataByRelativePathByEntity,i,()=>new Map);if(this.visitEntity({encounteredEntityNodeNames:new Set,entityNodeName:i,resDataByRelativeOriginPath:c,subgraphNameByUnresolvablePath:o,visitedEntities:(0,ea.getValueOrDefault)(this.visitedEntitiesByOriginEntity,i,()=>new Set)}),!(o.size<1))return{errors:this.getEntityResolvabilityErrors({entityNodeName:i,pathFromRoot:(r=(0,ea.getFirstEntry)(a))!=null?r:"",rootFieldData:t,subgraphNameByUnresolvablePath:o}),success:!1}}return{success:!0}}validateEntities(t){return t.isSharedRootField?this.validateSharedRootFieldEntities(t):this.validateRootFieldEntities(t)}getEntityResolvabilityErrors({entityNodeName:t,pathFromRoot:n,rootFieldData:r,subgraphNameByUnresolvablePath:i}){let a=(0,ea.getOrThrowError)(this.resDataByRelativePathByEntity,t,"resDataByRelativePathByEntity"),o=t.split(qE.LITERAL_PERIOD)[1],{fieldSetsByTargetSubgraphName:c}=(0,ea.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,wc.generateEntityResolvabilityErrors)({entityAncestorData:{fieldSetsByTargetSubgraphName:c,subgraphName:"",typeName:o},pathFromRoot:n,resDataByPath:a,rootFieldData:r,subgraphNameByUnresolvablePath:i})}getSharedEntityResolvabilityErrors({entityNodeNames:t,pathFromRoot:n,rootFieldData:r,resDataByPath:i,subgraphNameByUnresolvablePath:a}){let o,c=new Array;for(let d of t){let p=d.split(qE.LITERAL_PERIOD);o!=null||(o=p[1]),c.push(p[0])}let{fieldSetsByTargetSubgraphName:l}=(0,ea.getOrThrowError)(this.entityDataNodeByTypeName,o,"entityDataNodeByTypeName");return(0,wc.generateSharedEntityResolvabilityErrors)({entityAncestors:{fieldSetsByTargetSubgraphName:l,subgraphNames:c,typeName:o},pathFromRoot:n,resDataByPath:i,rootFieldData:r,subgraphNameByUnresolvablePath:a})}};VE.Graph=XD});var eb=w(jE=>{"use strict";m();T();N();Object.defineProperty(jE,"__esModule",{value:!0});jE.newFieldSetConditionData=Xde;jE.newConfigurationData=Zde;function Xde({fieldCoordinatesPath:e,fieldPath:t}){return{fieldCoordinatesPath:e,fieldPath:t}}function Zde(e,t){return{fieldNames:new Set,isRootNode:e,typeName:t}}});var nb=w(Lc=>{"use strict";m();T();N();Object.defineProperty(Lc,"__esModule",{value:!0});Lc.NormalizationFactory=void 0;Lc.normalizeSubgraphFromString=rfe;Lc.normalizeSubgraph=sV;Lc.batchNormalize=ife;var X=Oe(),gn=Ar(),ai=dp(),jr=Iu(),Zn=lp(),oe=qi(),mp=nd(),efe=Cv(),yi=rE(),tfe=FD(),rs=fp(),iV=kD(),ns=Uf(),nn=Bl(),cr=yu(),tb=ZD(),KE=sE(),W=sr(),nfe=Fl(),je=Rr(),Np=eb(),aV=oE();function rfe(e,t=!0){let{error:n,documentNode:r}=(0,gn.safeParse)(e,t);return n||!r?{errors:[(0,oe.subgraphInvalidSyntaxError)(n)],success:!1,warnings:[]}:new Tp(new tb.Graph).normalize(r)}function sV(e,t,n){return new Tp(n||new tb.Graph,t).normalize(e)}var GE,oV,$E,uV,Tp=class{constructor(t,n){Yu(this,GE);Yu(this,$E);_(this,"argumentName","");_(this,"authorizationDataByParentTypeName",new Map);_(this,"concreteTypeNamesByAbstractTypeName",new Map);_(this,"conditionalFieldDataByCoords",new Map);_(this,"configurationDataByTypeName",new Map);_(this,"customDirectiveDefinitionByName",new Map);_(this,"definedDirectiveNames",new Set);_(this,"directiveDefinitionByName",new Map);_(this,"directiveDefinitionDataByName",(0,ai.initializeDirectiveDefinitionDatas)());_(this,"doesParentRequireFetchReasons",!1);_(this,"edfsDirectiveReferences",new Set);_(this,"errors",new Array);_(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,"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,"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",[]);this.subgraphName=n||W.NOT_APPLICABLE,this.internalGraph=t,this.internalGraph.setSubgraphName(this.subgraphName),this.schemaData={directivesByDirectiveName:new Map,kind:X.Kind.SCHEMA_DEFINITION,name:W.SCHEMA,operationTypes:new Map}}validateArguments(t,n){for(let r of t.argumentDataByName.values()){let i=(0,cr.getTypeNodeNamedTypeName)(r.type);if(jr.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,oe.invalidNamedTypeError)({data:r,namedTypeData:a,nodeType:`${(0,je.kindToNodeType)(n)} field argument`}))}}}isTypeNameRootType(t){return W.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,cr.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 W.BOOLEAN_SCALAR:return n.kind===X.Kind.BOOLEAN;case W.FLOAT_SCALAR:return n.kind===X.Kind.FLOAT||n.kind===X.Kind.INT;case W.ID_SCALAR:return n.kind===X.Kind.STRING||n.kind===X.Kind.INT;case W.INT_SCALAR:return n.kind===X.Kind.INT;case W.FIELD_SET_SCALAR:case W.SCOPE_SCALAR:case W.STRING_SCALAR:return n.kind===X.Kind.STRING;case W.LINK_IMPORT:return!0;case W.LINK_PURPOSE:return n.kind!==X.Kind.ENUM?!1:n.value===W.SECURITY||n.value===W.EXECUTION;case W.SUBSCRIPTION_FIELD_CONDITION:case W.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.enumValueDataByName.get(n.value);return i?!i.directivesByDirectiveName.has(W.INACCESSIBLE):!1}return r.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION?!1:n.kind===X.Kind.OBJECT}}default:return this.isArgumentValueValid(t.type,n)}}handleFieldInheritableDirectives({directivesByDirectiveName:t,fieldName:n,inheritedDirectiveNames:r,parentData:i}){this.doesParentRequireFetchReasons&&!t.has(W.REQUIRE_FETCH_REASONS)&&(t.set(W.REQUIRE_FETCH_REASONS,[(0,je.generateSimpleDirective)(W.REQUIRE_FETCH_REASONS)]),r.add(W.REQUIRE_FETCH_REASONS)),(this.doesParentRequireFetchReasons||t.has(W.REQUIRE_FETCH_REASONS))&&i.requireFetchReasonsFieldNames.add(n),(0,Zn.isObjectDefinitionData)(i)&&(this.isParentObjectExternal&&!t.has(W.EXTERNAL)&&(t.set(W.EXTERNAL,[(0,je.generateSimpleDirective)(W.EXTERNAL)]),r.add(W.EXTERNAL)),t.has(W.EXTERNAL)&&this.unvalidatedExternalFieldCoords.add(`${i.name}.${n}`),this.isParentObjectShareable&&!t.has(W.SHAREABLE)&&(t.set(W.SHAREABLE,[(0,je.generateSimpleDirective)(W.SHAREABLE)]),r.add(W.SHAREABLE)))}extractDirectives(t,n){if(!t.directives)return n;let r=(0,Zn.isCompositeOutputNodeKind)(t.kind),i=(0,Zn.isObjectNodeKind)(t.kind);for(let a of t.directives){let o=a.name.value;o===W.SHAREABLE?(0,je.getValueOrDefault)(n,o,()=>[a]):(0,je.getValueOrDefault)(n,o,()=>[]).push(a),r&&(this.doesParentRequireFetchReasons||(this.doesParentRequireFetchReasons=o===W.REQUIRE_FETCH_REASONS),i&&(this.isParentObjectExternal||(this.isParentObjectExternal=o===W.EXTERNAL),this.isParentObjectShareable||(this.isParentObjectShareable=o===W.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,d=c===W.AUTHENTICATED,p=(0,nn.isFieldData)(t),E=c===W.OVERRIDE,I=c===W.REQUIRES_SCOPES,v=c===W.SEMANTIC_NON_NULL;if(!i.arguments||i.arguments.length<1)return n.requiredArgumentNames.size>0&&a.push((0,oe.undefinedRequiredArgumentsErrorMessage)(c,o,[])),d&&this.handleAuthenticatedDirective(t,l),v&&p&&((0,nn.isTypeRequired)(t.type)?a.push((0,oe.semanticNonNullLevelsNonNullErrorMessage)({typeString:(0,yi.printTypeNode)(t.type),value:"0"})):t.nullLevelsBySubgraphName.set(this.subgraphName,new Set([0]))),a;let A=new Set,U=new Set,j=new Set,G=[];for(let me of i.arguments){let ue=me.name.value;if(A.has(ue)){U.add(ue);continue}A.add(ue);let Ae=n.argumentTypeNodeByName.get(ue);if(!Ae){j.add(ue);continue}if(!this.isArgumentValueValid(Ae.typeNode,me.value)){a.push((0,oe.invalidArgumentValueErrorMessage)((0,X.print)(me.value),`@${c}`,ue,(0,yi.printTypeNode)(Ae.typeNode)));continue}if(E&&p){this.handleOverrideDirective({data:t,directiveCoords:r,errorMessages:a,targetSubgraphName:me.value.value});continue}if(v&&p){this.handleSemanticNonNullDirective({data:t,directiveNode:i,errorMessages:a});continue}!I||ue!==W.SCOPES||this.extractRequiredScopes({directiveCoords:r,orScopes:me.value.values,requiredScopes:G})}U.size>0&&a.push((0,oe.duplicateDirectiveArgumentDefinitionsErrorMessage)([...U])),j.size>0&&a.push((0,oe.unexpectedDirectiveArgumentErrorMessage)(c,[...j]));let re=(0,je.getEntriesNotInHashSet)(o,A);if(re.length>0&&a.push((0,oe.undefinedRequiredArgumentsErrorMessage)(c,o,re)),a.length>0||!I)return a;let ne=(0,je.getValueOrDefault)(this.authorizationDataByParentTypeName,l,()=>(0,Zn.newAuthorizationData)(l));if(t.kind!==X.Kind.FIELD_DEFINITION)this.parentTypeNamesWithAuthDirectives.add(l),ne.requiredScopes.push(...G);else{let me=(0,je.getValueOrDefault)(ne.fieldAuthDataByFieldName,t.name,()=>(0,Zn.newFieldAuthorizationData)(t.name));me.inheritedData.requiredScopes.push(...G),me.originalData.requiredScopes.push(...G)}return a}validateDirectives(t,n){let r=new Set;for(let[i,a]of t.directivesByDirectiveName){let o=this.directiveDefinitionDataByName.get(i);if(!o){r.has(i)||(this.errors.push((0,oe.undefinedDirectiveError)(i,n)),r.add(i));continue}let c=[],l=(0,gn.nodeKindToDirectiveLocation)(t.kind);if(o.locations.has(l)||c.push((0,oe.invalidDirectiveLocationErrorMessage)(i,l)),a.length>1&&!o.isRepeatable){let p=(0,je.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(i)||(p.add(i),c.push((0,oe.invalidRepeatedDirectiveErrorMessage)(i)))}let d=[...o.requiredArgumentNames];for(let p=0;p0&&this.errors.push((0,oe.invalidDirectiveError)(i,n,(0,je.numberToOrdinal)(p+1),E))}}switch(t.kind){case X.Kind.ENUM_TYPE_DEFINITION:{for(let[i,a]of t.enumValueDataByName)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?ns.ExtensionType.REAL:r||!n.has(W.EXTENDS)?ns.ExtensionType.NONE:ns.ExtensionType.EXTENDS}setParentDataExtensionType(t,n){switch(t.extensionType){case ns.ExtensionType.EXTENDS:case ns.ExtensionType.NONE:{if(n===ns.ExtensionType.REAL)return;this.errors.push((0,oe.duplicateTypeDefinitionError)((0,je.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 W.PROPAGATE:{if(o.value.kind!=X.Kind.BOOLEAN)return;r.propagate=o.value.value;break}case W.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(W.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,oe.duplicateImplementedInterfaceError)((0,Zn.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,gn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(n),n.isEntity||(n.isEntity=n.directivesByDirectiveName.has(W.KEY)),n.isInaccessible||(n.isInaccessible=n.directivesByDirectiveName.has(W.INACCESSIBLE)),n.subgraphNames.add(this.subgraphName)}addConcreteTypeNamesForImplementedInterfaces(t,n){for(let r of t)(0,je.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,oe.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,{argumentDataByName:o,executableLocations:r,name:i,repeatable:n.repeatable,subgraphNames:new Set([this.subgraphName]),description:(0,gn.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(!W.EXECUTABLE_DIRECTIVE_LOCATIONS.has(o)&&!mp.TYPE_SYSTEM_DIRECTIVE_LOCATIONS.has(o)){n.push((0,oe.invalidDirectiveDefinitionLocationErrorMessage)(o)),i.add(o);continue}if(r.has(o)){n.push((0,oe.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={argumentTypeNodeByName:r,optionalArgumentNames:i,requiredArgumentNames:a};if(!t)return o;let c=new Set;for(let l of t){let d=l.name.value;if(r.has(d)){c.add(d);continue}l.defaultValue&&i.add(d),(0,nn.isTypeRequired)(l.type)&&!l.defaultValue&&a.add(d),r.set(d,{name:d,typeNode:l.type,defaultValue:l.defaultValue})}return c.size>0&&n.push((0,oe.duplicateDirectiveDefinitionArgumentErrorMessage)([...c])),o}addDirectiveDefinitionDataByNode(t){let n=t.name.value;if(this.definedDirectiveNames.has(n))return this.errors.push((0,oe.duplicateDirectiveDefinitionError)(n)),!1;this.definedDirectiveNames.add(n);let r=jr.V2_DIRECTIVE_DEFINITION_BY_DIRECTIVE_NAME.get(n);if(r)return this.directiveDefinitionByName.set(n,r),this.isSubgraphVersionTwo=!0,!1;if(jr.DIRECTIVE_DEFINITION_BY_NAME.has(n))return!1;this.directiveDefinitionByName.set(n,t);let i=[],{argumentTypeNodeByName:a,optionalArgumentNames:o,requiredArgumentNames:c}=this.extractArgumentData(t.arguments,i);return this.directiveDefinitionDataByName.set(n,{argumentTypeNodeByName:a,isRepeatable:t.repeatable,locations:this.extractDirectiveLocations(t,i),name:n,node:t,optionalArgumentNames:o,requiredArgumentNames:c}),i.length>0&&this.errors.push((0,oe.invalidDirectiveDefinitionError)(n,i)),!0}addFieldDataByNode(t,n,r,i,a=new Set){let o=n.name.value,c=this.renamedParentTypeName||this.originalParentTypeName,l=`${this.originalParentTypeName}.${o}`,{isExternal:d,isShareable:p}=(0,nn.isNodeExternalOrShareable)(n,!this.isSubgraphVersionTwo,i),E=(0,cr.getTypeNodeNamedTypeName)(n.type),I={argumentDataByName:r,configureDescriptionDataBySubgraphName:new Map,externalFieldDataBySubgraphName:new Map([[this.subgraphName,(0,nn.newExternalFieldData)(d)]]),federatedCoords:`${c}.${o}`,inheritedDirectiveNames:a,isInaccessible:i.has(W.INACCESSIBLE),isShareableBySubgraphName:new Map([[this.subgraphName,p]]),kind:X.Kind.FIELD_DEFINITION,name:o,namedTypeKind:jr.BASE_SCALARS.has(E)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:E,node:(0,cr.getMutableFieldNode)(n,l,this.errors),nullLevelsBySubgraphName:new Map,originalParentTypeName:this.originalParentTypeName,persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),renamedParentTypeName:c,subgraphNames:new Set([this.subgraphName]),type:(0,cr.getMutableTypeNode)(n.type,l,this.errors),directivesByDirectiveName:i,description:(0,gn.formatDescription)(n.description)};return jr.BASE_SCALARS.has(I.namedTypeName)||this.referencedTypeNames.add(I.namedTypeName),this.extractConfigureDescriptionsData(I),t.set(o,I),I}addInputValueDataByNode({fieldName:t,inputValueDataByName:n,isArgument:r,node:i,originalParentTypeName:a,renamedParentTypeName:o}){let c=o||a,l=i.name.value,d=r?`${a}${t?`.${t}`:""}(${l}: ...)`:`${a}.${l}`;i.defaultValue&&!(0,nn.areDefaultValuesCompatible)(i.type,i.defaultValue)&&this.errors.push((0,oe.incompatibleInputValueDefaultValueTypeError)((r?W.ARGUMENT:W.INPUT_FIELD)+` "${l}"`,d,(0,yi.printTypeNode)(i.type),(0,X.print)(i.defaultValue)));let p=r?`${c}${t?`.${t}`:""}(${l}: ...)`:`${c}.${l}`,E=(0,cr.getTypeNodeNamedTypeName)(i.type),I={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:this.extractDirectives(i,new Map),federatedCoords:p,fieldName:t,includeDefaultValue:!!i.defaultValue,isArgument:r,kind:r?X.Kind.ARGUMENT:X.Kind.INPUT_VALUE_DEFINITION,name:l,namedTypeKind:jr.BASE_SCALARS.has(E)?X.Kind.SCALAR_TYPE_DEFINITION:X.Kind.NULL,namedTypeName:E,node:(0,cr.getMutableInputValueNode)(i,a,this.errors),originalCoords:d,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,cr.getMutableTypeNode)(i.type,a,this.errors),defaultValue:i.defaultValue,description:(0,gn.formatDescription)(i.description)};this.extractConfigureDescriptionsData(I),n.set(l,I)}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 d of t.fields)c.interfaceFieldNames.add(d.name.value);if(i){if(i.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,oe.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Zn.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(W.KEY),isInaccessible:a.has(W.INACCESSIBLE),kind:X.Kind.INTERFACE_TYPE_DEFINITION,name:r,node:(0,cr.getMutableInterfaceNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,subgraphNames:new Set([this.subgraphName]),description:(0,gn.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 W.MUTATION;case X.OperationTypeNode.SUBSCRIPTION:return W.SUBSCRIPTION;default:return W.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){var p;let r=t.name.value,i=this.parentDefinitionDataByTypeName.get(r),a=this.extractDirectives(t,(p=i==null?void 0:i.directivesByDirectiveName)!=null?p: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,oe.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Zn.kindToConvertedTypeString)(t.kind)));return}this.updateCompositeOutputDataByNode(t,i,c),a.has(W.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(i.implementedInterfaceTypeNames,r);return}let l=this.extractImplementedInterfaceTypeNames(t,new Set);a.has(W.INTERFACE_OBJECT)||this.addConcreteTypeNamesForImplementedInterfaces(l,r);let d={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:c,fieldDataByName:new Map,implementedInterfaceTypeNames:l,isEntity:a.has(W.KEY),isInaccessible:a.has(W.INACCESSIBLE),isRootType:o,kind:X.Kind.OBJECT_TYPE_DEFINITION,name:r,node:(0,cr.getMutableObjectNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),requireFetchReasonsFieldNames:new Set,renamedTypeName:this.getRenamedRootTypeName(r),subgraphNames:new Set([this.subgraphName]),description:(0,gn.formatDescription)("description"in t?t.description:void 0)};this.extractConfigureDescriptionsData(d),this.parentDefinitionDataByTypeName.set(r,d)}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,oe.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Zn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(W.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,gn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i);return}let c={appearances:1,configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,enumValueDataByName:new Map,isInaccessible:a.has(W.INACCESSIBLE),kind:X.Kind.ENUM_TYPE_DEFINITION,name:r,node:(0,cr.getMutableEnumNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,gn.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)return i.kind!==X.Kind.INPUT_OBJECT_TYPE_DEFINITION?(this.errors.push((0,oe.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Zn.kindToConvertedTypeString)(t.kind))),{success:!1}):(this.setParentDataExtensionType(i,o),i.isInaccessible||(i.isInaccessible=a.has(W.INACCESSIBLE)),i.subgraphNames.add(this.subgraphName),i.description||(i.description=(0,gn.formatDescription)("description"in t?t.description:void 0)),this.extractConfigureDescriptionsData(i),{success:!0,data:i});let c={configureDescriptionDataBySubgraphName:new Map,directivesByDirectiveName:a,extensionType:o,inputValueDataByName:new Map,isInaccessible:a.has(W.INACCESSIBLE),kind:X.Kind.INPUT_OBJECT_TYPE_DEFINITION,name:r,node:(0,cr.getMutableInputObjectNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,gn.formatDescription)("description"in t?t.description:void 0)};return this.extractConfigureDescriptionsData(c),this.parentDefinitionDataByTypeName.set(r,c),{success:!0,data: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,oe.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Zn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),i.description||(i.description=(0,gn.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,cr.getMutableScalarNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,gn.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,oe.duplicateUnionMemberDefinitionError)(r,a));continue}(0,je.getValueOrDefault)(this.concreteTypeNamesByAbstractTypeName,r,()=>new Set).add(a),jr.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,oe.multipleNamedTypeDefinitionError)(r,(0,je.kindToNodeType)(i.kind),(0,Zn.kindToConvertedTypeString)(t.kind)));return}this.setParentDataExtensionType(i,o),this.extractUnionMembers(t,i.memberByMemberTypeName),i.description||(i.description=(0,gn.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,cr.getMutableUnionNode)(t.name),persistedDirectivesData:(0,nn.newPersistedDirectivesData)(),subgraphNames:new Set([this.subgraphName]),description:(0,gn.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,oe.expectedEntityError)(r));return}let i=0;for(let o of t.directives){if(o.name.value!==W.KEY||(i+=1,!o.arguments||o.arguments.length<1))continue;let c,l=!1;for(let v of o.arguments){if(v.name.value===W.RESOLVABLE){v.value.kind===X.Kind.BOOLEAN&&!v.value.value&&(l=!0);continue}if(v.name.value!==W.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:d,documentNode:p}=(0,gn.safeParse)("{"+c+"}");if(d||!p){this.errors.push((0,oe.invalidDirectiveError)(W.KEY,r,(0,je.numberToOrdinal)(i),[(0,oe.unparsableFieldSetErrorMessage)(c,d)]));continue}let E=(0,ai.getNormalizedFieldSet)(p),I=n.get(E);I?I.isUnresolvable||(I.isUnresolvable=l):n.set(E,{documentNode:p,isUnresolvable:l,normalizedFieldSet:E,rawFieldSet:c})}}getFieldSetParent(t,n,r,i){if(!t)return{fieldSetParentData:n};let a=(0,je.getOrThrowError)(n.fieldDataByName,r,`${i}.fieldDataByFieldName`),o=(0,cr.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,oe.incompatibleTypeWithProvidesErrorMessage)(`${i}.${r}`,o)}:{fieldSetParentData:c}:{errorString:(0,oe.unknownNamedTypeErrorMessage)(`${i}.${r}`,o)}}validateConditionalFieldSet(t,n,r,i,a){let{error:o,documentNode:c}=(0,gn.safeParse)("{"+n+"}");if(o||!c)return{errorMessages:[(0,oe.unparsableFieldSetErrorMessage)(n,o)]};let l=this,d=[t],p=(0,ai.getConditionalFieldSetDirectiveName)(i),E=[],I=`${a}.${r}`,v=(0,ai.getInitialFieldCoordsPath)(i,I),A=[r],U=new Set,j=[],G=-1,re=!0,ne=r,me=!1;return(0,X.visit)(c,{Argument:{enter(){return!1}},Field:{enter(ue){let Ae=d[G],xe=Ae.name;if(Ae.kind===X.Kind.UNION_TYPE_DEFINITION)return j.push((0,oe.invalidSelectionOnUnionErrorMessage)(n,v,xe)),X.BREAK;let rt=ue.name.value,Z=`${xe}.${rt}`;if(l.unvalidatedExternalFieldCoords.delete(Z),re)return j.push((0,oe.invalidSelectionSetErrorMessage)(n,v,xe,(0,je.kindToNodeType)(Ae.kind))),X.BREAK;v.push(Z),A.push(rt),ne=rt;let _e=Ae.fieldDataByName.get(rt);if(!_e)return j.push((0,oe.undefinedFieldInFieldSetErrorMessage)(n,xe,rt)),X.BREAK;if(E[G].has(rt))return j.push((0,oe.duplicateFieldInFieldSetErrorMessage)(n,Z)),X.BREAK;E[G].add(rt);let{isDefinedExternal:_t,isUnconditionallyProvided:rn}=(0,je.getOrThrowError)(_e.externalFieldDataBySubgraphName,l.subgraphName,`${Z}.externalFieldDataBySubgraphName`),an=_t&&!rn;rn||(me=!0);let Fn=(0,cr.getTypeNodeNamedTypeName)(_e.node.type),$t=l.parentDefinitionDataByTypeName.get(Fn);if(jr.BASE_SCALARS.has(Fn)||($t==null?void 0:$t.kind)===X.Kind.SCALAR_TYPE_DEFINITION||($t==null?void 0:$t.kind)===X.Kind.ENUM_TYPE_DEFINITION){if(U.size<1&&!_t){if(l.isSubgraphVersionTwo){l.errors.push((0,oe.nonExternalConditionalFieldError)(I,l.subgraphName,Z,n,p));return}l.warnings.push((0,rs.nonExternalConditionalFieldWarning)(I,l.subgraphName,Z,n,p));return}if(U.size<1&&rn){l.isSubgraphVersionTwo?j.push((0,oe.fieldAlreadyProvidedErrorMessage)(Z,l.subgraphName,p)):l.warnings.push((0,rs.fieldAlreadyProvidedWarning)(Z,p,I,l.subgraphName));return}if(!an&&!i)return;let Tn=(0,je.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,nn.newConditionalFieldData),Cr=(0,Np.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...A]});i?Tn.providedBy.push(Cr):Tn.requiredBy.push(Cr);return}if(!$t)return j.push((0,oe.unknownTypeInFieldSetErrorMessage)(n,Z,Fn)),X.BREAK;if(_t&&(i&&(0,je.getValueOrDefault)(l.conditionalFieldDataByCoords,Z,nn.newConditionalFieldData).providedBy.push((0,Np.newFieldSetConditionData)({fieldCoordinatesPath:[...v],fieldPath:[...A]})),U.add(Z)),$t.kind===X.Kind.OBJECT_TYPE_DEFINITION||$t.kind===X.Kind.INTERFACE_TYPE_DEFINITION||$t.kind===X.Kind.UNION_TYPE_DEFINITION){re=!0,d.push($t);return}},leave(){U.delete(v.pop()||""),A.pop()}},InlineFragment:{enter(ue){let Ae=d[G],xe=Ae.name,rt=v.length<1?t.name:v[v.length-1];if(!ue.typeCondition)return j.push((0,oe.inlineFragmentWithoutTypeConditionErrorMessage)(n,rt)),X.BREAK;let Z=ue.typeCondition.name.value;if(Z===xe){d.push(Ae),re=!0;return}if(!(0,gn.isKindAbstract)(Ae.kind))return j.push((0,oe.invalidInlineFragmentTypeErrorMessage)(n,v,Z,xe)),X.BREAK;let _e=l.parentDefinitionDataByTypeName.get(Z);if(!_e)return j.push((0,oe.unknownInlineFragmentTypeConditionErrorMessage)(n,v,xe,Z)),X.BREAK;switch(re=!0,_e.kind){case X.Kind.INTERFACE_TYPE_DEFINITION:{if(!_e.implementedInterfaceTypeNames.has(xe))break;d.push(_e);return}case X.Kind.OBJECT_TYPE_DEFINITION:{let _t=l.concreteTypeNamesByAbstractTypeName.get(xe);if(!_t||!_t.has(Z))break;d.push(_e);return}case X.Kind.UNION_TYPE_DEFINITION:{d.push(_e);return}default:return j.push((0,oe.invalidInlineFragmentTypeConditionTypeErrorMessage)(n,v,xe,Z,(0,je.kindToNodeType)(_e.kind))),X.BREAK}return j.push((0,oe.invalidInlineFragmentTypeConditionErrorMessage)(n,v,Z,(0,je.kindToNodeType)(Ae.kind),xe)),X.BREAK}},SelectionSet:{enter(){if(!re){let ue=d[G];if(ue.kind===X.Kind.UNION_TYPE_DEFINITION)return j.push((0,oe.unparsableFieldSetSelectionErrorMessage)(n,ne)),X.BREAK;let Ae=ue.fieldDataByName.get(ne);if(!Ae)return j.push((0,oe.undefinedFieldInFieldSetErrorMessage)(n,ue.name,ne)),X.BREAK;let xe=(0,cr.getTypeNodeNamedTypeName)(Ae.node.type),rt=l.parentDefinitionDataByTypeName.get(xe),Z=rt?rt.kind:X.Kind.SCALAR_TYPE_DEFINITION;return j.push((0,oe.invalidSelectionSetDefinitionErrorMessage)(n,v,xe,(0,je.kindToNodeType)(Z))),X.BREAK}if(G+=1,re=!1,G<0||G>=d.length)return j.push((0,oe.unparsableFieldSetSelectionErrorMessage)(n,ne)),X.BREAK;E.push(new Set)},leave(){if(re){let ue=d[G+1];j.push((0,oe.invalidSelectionSetErrorMessage)(n,v,ue.name,(0,je.kindToNodeType)(ue.kind))),re=!1}G-=1,d.pop(),E.pop()}}}),j.length>0||!me?{errorMessages:j}:{configuration:{fieldName:r,selectionSet:(0,ai.getNormalizedFieldSet)(c)},errorMessages:j}}validateProvidesOrRequires(t,n,r){let i=[],a=[],o=(0,nn.getParentTypeName)(t);for(let[c,l]of n){let{fieldSetParentData:d,errorString:p}=this.getFieldSetParent(r,t,c,o),E=`${o}.${c}`;if(p){i.push(p);continue}if(!d)continue;let{errorMessages:I,configuration:v}=this.validateConditionalFieldSet(d,l,c,r,o);if(I.length>0){i.push(` On field "${E}": + -`+I.join(W.HYPHEN_JOIN));continue}v&&a.push(v)}if(i.length>0){this.errors.push((0,oe.invalidProvidesOrRequiresDirectivesError)((0,ai.getConditionalFieldSetDirectiveName)(r),i));return}if(a.length>0)return a}validateInterfaceImplementations(t){if(t.implementedInterfaceTypeNames.size<1)return;let n=t.directivesByDirectiveName.has(W.INACCESSIBLE),r=new Map,i=new Map,a=!1;for(let o of t.implementedInterfaceTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(jr.BASE_SCALARS.has(o)&&this.referencedTypeNames.add(o),!c)continue;if(c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION){i.set(c.name,(0,je.kindToNodeType)(c.kind));continue}if(t.name===c.name){a=!0;continue}let l={invalidFieldImplementations:new Map,unimplementedFields:[]},d=!1;for(let[p,E]of c.fieldDataByName){this.unvalidatedExternalFieldCoords.delete(`${t.name}.${p}`);let I=!1,v=t.fieldDataByName.get(p);if(!v){d=!0,l.unimplementedFields.push(p);continue}let A={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,yi.printTypeNode)(E.node.type),unimplementedArguments:new Set};(0,nn.isTypeValidImplementation)(E.node.type,v.node.type,this.concreteTypeNamesByAbstractTypeName)||(d=!0,I=!0,A.implementedResponseType=(0,yi.printTypeNode)(v.node.type));let U=new Set;for(let[j,G]of E.argumentDataByName){U.add(j);let re=v.argumentDataByName.get(j);if(!re){d=!0,I=!0,A.unimplementedArguments.add(j);continue}let ne=(0,yi.printTypeNode)(re.type),me=(0,yi.printTypeNode)(G.type);me!==ne&&(d=!0,I=!0,A.invalidImplementedArguments.push({actualType:ne,argumentName:j,expectedType:me}))}for(let[j,G]of v.argumentDataByName)U.has(j)||G.type.kind===X.Kind.NON_NULL_TYPE&&(d=!0,I=!0,A.invalidAdditionalArguments.add(j));!n&&v.isInaccessible&&!E.isInaccessible&&(d=!0,I=!0,A.isInaccessible=!0),I&&l.invalidFieldImplementations.set(p,A)}d&&r.set(o,l)}i.size>0&&this.errors.push((0,oe.invalidImplementedTypeError)(t.name,i)),a&&this.errors.push((0,oe.selfImplementationError)(t.name)),r.size>0&&this.errors.push((0,oe.invalidInterfaceImplementationError)(t.name,(0,je.kindToNodeType)(t.kind),r))}handleAuthenticatedDirective(t,n){let r=(0,je.getValueOrDefault)(this.authorizationDataByParentTypeName,n,()=>(0,Zn.newAuthorizationData)(n));if(t.kind===X.Kind.FIELD_DEFINITION){let i=(0,je.getValueOrDefault)(r.fieldAuthDataByFieldName,t.name,()=>(0,Zn.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,oe.equivalentSourceAndTargetOverrideErrorMessage)(i,n));return}let a=(0,je.getValueOrDefault)(this.overridesByTargetSubgraphName,i,()=>new Map);(0,je.getValueOrDefault)(a,t.renamedParentTypeName,()=>new Set).add(t.name)}handleSemanticNonNullDirective({data:t,directiveNode:n,errorMessages:r}){var E;let i=new Set,a=t.node.type,o=0;for(;a;)switch(a.kind){case X.Kind.LIST_TYPE:{o+=1,a=a.type;break}case X.Kind.NON_NULL_TYPE:{i.add(o),a=a.type;break}default:{a=null;break}}let c=(E=n.arguments)==null?void 0:E.find(I=>I.name.value===W.LEVELS);if(!c||c.value.kind!==X.Kind.LIST){r.push(oe.semanticNonNullArgumentErrorMessage);return}let l=c.value.values,d=(0,yi.printTypeNode)(t.type),p=new Set;for(let{value:I}of l){let v=parseInt(I,10);if(Number.isNaN(v)){r.push((0,oe.semanticNonNullLevelsNaNIndexErrorMessage)(I));continue}if(v<0||v>o){r.push((0,oe.semanticNonNullLevelsIndexOutOfBoundsErrorMessage)({maxIndex:o,typeString:d,value:I}));continue}if(!i.has(v)){p.add(v);continue}r.push((0,oe.semanticNonNullLevelsNonNullErrorMessage)({typeString:d,value:I}))}t.nullLevelsBySubgraphName.set(this.subgraphName,p)}extractRequiredScopes({directiveCoords:t,orScopes:n,requiredScopes:r}){if(n.length>jr.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,Zn.addScopes)(r,a)}}getKafkaPublishConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case W.TOPIC:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push((0,oe.invalidEventSubjectErrorMessage)(W.TOPIC));continue}(0,ai.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case W.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_KAFKA,topics:a,type:W.PUBLISH}}getKafkaSubscribeConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case W.TOPICS:{if(c.value.kind!==X.Kind.LIST){i.push((0,oe.invalidEventSubjectsErrorMessage)(W.TOPICS));continue}for(let l of c.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,oe.invalidEventSubjectsItemErrorMessage)(W.TOPICS));break}(0,ai.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case W.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_KAFKA,topics:a,type:W.SUBSCRIBE}}getNatsPublishAndRequestConfiguration(t,n,r,i,a){let o=[],c=W.DEFAULT_EDFS_PROVIDER_ID;for(let l of n.arguments||[])switch(l.name.value){case W.SUBJECT:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){a.push((0,oe.invalidEventSubjectErrorMessage)(W.SUBJECT));continue}(0,ai.validateArgumentTemplateReferences)(l.value.value,r,a),o.push(l.value.value);break}case W.PROVIDER_ID:{if(l.value.kind!==X.Kind.STRING||l.value.value.length<1){a.push(oe.invalidEventProviderIdErrorMessage);continue}c=l.value.value;break}}if(!(a.length>0))return{fieldName:i,providerId:c,providerType:W.PROVIDER_TYPE_NATS,subjects:o,type:t}}getNatsSubscribeConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID,c=KE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,l="",d="";for(let p of t.arguments||[])switch(p.name.value){case W.SUBJECTS:{if(p.value.kind!==X.Kind.LIST){i.push((0,oe.invalidEventSubjectsErrorMessage)(W.SUBJECTS));continue}for(let E of p.value.values){if(E.kind!==X.Kind.STRING||E.value.length<1){i.push((0,oe.invalidEventSubjectsItemErrorMessage)(W.SUBJECTS));break}(0,ai.validateArgumentTemplateReferences)(E.value,n,i),a.push(E.value)}break}case W.PROVIDER_ID:{if(p.value.kind!==X.Kind.STRING||p.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=p.value.value;break}case W.STREAM_CONFIGURATION:{if(this.usesEdfsNatsStreamConfiguration=!0,p.value.kind!==X.Kind.OBJECT||p.value.fields.length<1){i.push(oe.invalidNatsStreamInputErrorMessage);continue}let E=!0,I=new Set,v=new Set(mp.STREAM_CONFIGURATION_FIELD_NAMES),A=new Set([W.CONSUMER_NAME,W.STREAM_NAME]),U=new Set,j=new Set;for(let G of p.value.fields){let re=G.name.value;if(!mp.STREAM_CONFIGURATION_FIELD_NAMES.has(re)){I.add(re),E=!1;continue}if(v.has(re))v.delete(re);else{U.add(re),E=!1;continue}switch(A.has(re)&&A.delete(re),re){case W.CONSUMER_NAME:if(G.value.kind!=X.Kind.STRING||G.value.value.length<1){j.add(re),E=!1;continue}l=G.value.value;break;case W.STREAM_NAME:if(G.value.kind!=X.Kind.STRING||G.value.value.length<1){j.add(re),E=!1;continue}d=G.value.value;break;case W.CONSUMER_INACTIVE_THRESHOLD:if(G.value.kind!=X.Kind.INT){i.push((0,oe.invalidArgumentValueErrorMessage)((0,X.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",W.INT_SCALAR)),E=!1;continue}try{c=parseInt(G.value.value,10)}catch(ne){i.push((0,oe.invalidArgumentValueErrorMessage)((0,X.print)(G.value),"edfs__NatsStreamConfiguration","consumerInactiveThreshold",W.INT_SCALAR)),E=!1}break}}(!E||A.size>0)&&i.push((0,oe.invalidNatsStreamInputFieldsErrorMessage)([...A],[...U],[...j],[...I]))}}if(!(i.length>0))return c<0?(c=KE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD,this.warnings.push((0,rs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,`The value has been set to ${KE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}.`))):c>nfe.MAX_INT32&&(c=0,this.warnings.push((0,rs.consumerInactiveThresholdInvalidValueWarning)(this.subgraphName,"The value has been set to 0. This means the consumer will remain indefinitely active until its manual deletion."))),M({fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_NATS,subjects:a,type:W.SUBSCRIBE},l&&d?{streamConfiguration:{consumerInactiveThreshold:c,consumerName:l,streamName:d}}:{})}getRedisPublishConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case W.CHANNEL:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push((0,oe.invalidEventSubjectErrorMessage)(W.CHANNEL));continue}(0,ai.validateArgumentTemplateReferences)(c.value.value,n,i),a.push(c.value.value);break}case W.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_REDIS,channels:a,type:W.PUBLISH}}getRedisSubscribeConfiguration(t,n,r,i){let a=[],o=W.DEFAULT_EDFS_PROVIDER_ID;for(let c of t.arguments||[])switch(c.name.value){case W.CHANNELS:{if(c.value.kind!==X.Kind.LIST){i.push((0,oe.invalidEventSubjectsErrorMessage)(W.CHANNELS));continue}for(let l of c.value.values){if(l.kind!==X.Kind.STRING||l.value.length<1){i.push((0,oe.invalidEventSubjectsItemErrorMessage)(W.CHANNELS));break}(0,ai.validateArgumentTemplateReferences)(l.value,n,i),a.push(l.value)}break}case W.PROVIDER_ID:{if(c.value.kind!==X.Kind.STRING||c.value.value.length<1){i.push(oe.invalidEventProviderIdErrorMessage);continue}o=c.value.value;break}}if(!(i.length>0))return{fieldName:r,providerId:o,providerType:W.PROVIDER_TYPE_REDIS,channels:a,type:W.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===W.SUBSCRIPTION_FILTER&&!i){this.errors.push((0,oe.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 W.EDFS_KAFKA_PUBLISH:c=this.getKafkaPublishConfiguration(a,n,r,o);break;case W.EDFS_KAFKA_SUBSCRIBE:c=this.getKafkaSubscribeConfiguration(a,n,r,o);break;case W.EDFS_NATS_PUBLISH:{c=this.getNatsPublishAndRequestConfiguration(W.PUBLISH,a,n,r,o);break}case W.EDFS_NATS_REQUEST:{c=this.getNatsPublishAndRequestConfiguration(W.REQUEST,a,n,r,o);break}case W.EDFS_NATS_SUBSCRIBE:{c=this.getNatsSubscribeConfiguration(a,n,r,o);break}case W.EDFS_REDIS_PUBLISH:{c=this.getRedisPublishConfiguration(a,n,r,o);break}case W.EDFS_REDIS_SUBSCRIBE:{c=this.getRedisSubscribeConfiguration(a,n,r,o);break}default:continue}if(o.length>0){this.errors.push((0,oe.invalidEventDirectiveError)(a.name.value,i,o));continue}c&&(0,je.getValueOrDefault)(this.eventsConfigurations,this.renamedParentTypeName||this.originalParentTypeName,()=>[]).push(c)}}getValidEventsDirectiveNamesForOperationTypeNode(t){switch(t){case X.OperationTypeNode.MUTATION:return new Set([W.EDFS_KAFKA_PUBLISH,W.EDFS_NATS_PUBLISH,W.EDFS_NATS_REQUEST,W.EDFS_REDIS_PUBLISH]);case X.OperationTypeNode.QUERY:return new Set([W.EDFS_NATS_REQUEST]);case X.OperationTypeNode.SUBSCRIPTION:return new Set([W.EDFS_KAFKA_SUBSCRIBE,W.EDFS_NATS_SUBSCRIBE,W.EDFS_REDIS_SUBSCRIBE])}}getOperationTypeNodeForRootTypeName(t){let n=this.operationTypeNodeByTypeName.get(t);if(n)return n;switch(t){case W.MUTATION:return X.OperationTypeNode.MUTATION;case W.QUERY:return X.OperationTypeNode.QUERY;case W.SUBSCRIPTION:return X.OperationTypeNode.SUBSCRIPTION;default:return}}validateEventDrivenRootType(t,n,r,i){let a=this.getOperationTypeNodeForRootTypeName(t.name);if(!a){this.errors.push((0,oe.invalidRootTypeError)(t.name));return}let o=this.getValidEventsDirectiveNamesForOperationTypeNode(a);for(let[c,l]of t.fieldDataByName){let d=`${l.originalParentTypeName}.${c}`,p=new Set;for(let j of mp.EVENT_DIRECTIVE_NAMES)l.directivesByDirectiveName.has(j)&&p.add(j);let E=new Set;for(let j of p)o.has(j)||E.add(j);if((p.size<1||E.size>0)&&n.set(d,{definesDirectives:p.size>0,invalidDirectiveNames:[...E]}),a===X.OperationTypeNode.MUTATION){let j=(0,yi.printTypeNode)(l.type);j!==W.NON_NULLABLE_EDFS_PUBLISH_EVENT_RESULT&&i.set(d,j);continue}let I=(0,yi.printTypeNode)(l.type),v=l.namedTypeName+"!",A=!1,U=this.concreteTypeNamesByAbstractTypeName.get(l.namedTypeName)||new Set([l.namedTypeName]);for(let j of U)if(A||(A=this.entityDataByTypeName.has(j)),A)break;(!A||I!==v)&&r.set(d,I)}}validateEventDrivenKeyDefinition(t,n){let r=this.keyFieldSetDatasByTypeName.get(t);if(r)for(let[i,{isUnresolvable:a}]of r)a||(0,je.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(W.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!==W.SUCCESS||(0,yi.printTypeNode)(r.type)!==W.NON_NULLABLE_BOOLEAN)return!1;return!0}isNatsStreamConfigurationInputObjectValid(t){if(!(0,nn.isInputObjectDefinitionData)(t)||t.inputValueDataByName.size!=3)return!1;for(let[n,r]of t.inputValueDataByName)switch(n){case W.CONSUMER_INACTIVE_THRESHOLD:{if((0,yi.printTypeNode)(r.type)!==W.NON_NULLABLE_INT||!r.defaultValue||r.defaultValue.kind!==X.Kind.INT||r.defaultValue.value!==`${KE.DEFAULT_CONSUMER_INACTIVE_THRESHOLD}`)return!1;break}case W.CONSUMER_NAME:case W.STREAM_NAME:{if((0,yi.printTypeNode)(r.type)!==W.NON_NULLABLE_STRING)return!1;break}default:return!1}return!0}validateEventDrivenSubgraph(){let t=[],n=new Map,r=new Map,i=new Map,a=new Map,o=new Map,c=new Map,l=new Set,d=new Set;for(let[p,E]of this.parentDefinitionDataByTypeName){if(p===W.EDFS_PUBLISH_RESULT||p===W.EDFS_NATS_STREAM_CONFIGURATION||E.kind!==X.Kind.OBJECT_TYPE_DEFINITION)continue;if(E.isRootType){this.validateEventDrivenRootType(E,n,r,i);continue}let I=this.keyFieldNamesByParentTypeName.get(p);if(!I){d.add(p);continue}this.validateEventDrivenKeyDefinition(p,a),this.validateEventDrivenObjectFields(E.fieldDataByName,I,o,c)}if(this.isEdfsPublishResultValid()||t.push(oe.invalidEdfsPublishResultObjectErrorMessage),this.edfsDirectiveReferences.has(W.EDFS_NATS_SUBSCRIBE)){let p=this.parentDefinitionDataByTypeName.get(W.EDFS_NATS_STREAM_CONFIGURATION);p&&this.usesEdfsNatsStreamConfiguration&&!this.isNatsStreamConfigurationInputObjectValid(p)&&t.push(oe.invalidNatsStreamConfigurationDefinitionErrorMessage),this.parentDefinitionDataByTypeName.delete(W.EDFS_NATS_STREAM_CONFIGURATION);let E=this.upsertInputObjectByNode(aV.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION);if(E.success)for(let I of aV.EDFS_NATS_STREAM_CONFIGURATION_DEFINITION.fields)this.addInputValueDataByNode({fieldName:I.name.value,isArgument:!1,inputValueDataByName:E.data.inputValueDataByName,node:I,originalParentTypeName:W.EDFS_NATS_STREAM_CONFIGURATION});else return}n.size>0&&t.push((0,oe.invalidRootTypeFieldEventsDirectivesErrorMessage)(n)),i.size>0&&t.push((0,oe.invalidEventDrivenMutationResponseTypeErrorMessage)(i)),r.size>0&&t.push((0,oe.invalidRootTypeFieldResponseTypesEventDrivenErrorMessage)(r)),a.size>0&&t.push((0,oe.invalidKeyFieldSetsEventDrivenErrorMessage)(a)),o.size>0&&t.push((0,oe.nonExternalKeyFieldNamesEventDrivenErrorMessage)(o)),c.size>0&&t.push((0,oe.nonKeyFieldNamesEventDrivenErrorMessage)(c)),l.size>0&&t.push((0,oe.nonEntityObjectExtensionsEventDrivenErrorMessage)([...l])),d.size>0&&t.push((0,oe.nonKeyComposingObjectTypeNamesEventDrivenErrorMessage)([...d])),t.length>0&&this.errors.push((0,oe.invalidEventDrivenGraphError)(t))}validateUnionMembers(t){if(t.memberByMemberTypeName.size<1){this.errors.push((0,oe.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,je.kindToNodeType)(i.kind)}"`)}n.length>0&&this.errors.push((0,oe.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,je.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,oe.undefinedCompositeOutputTypeError)(t));continue}let i=(0,nn.getParentTypeName)(r),a=(0,je.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Np.newConfigurationData)(!0,i)),o=(0,ai.validateKeyFieldSets)(this,r,n);o&&(a.keys=o)}}getValidFlattenedDirectiveArray(t,n,r=!1){let i=[];for(let[a,o]of t){if(r&&W.INHERITABLE_DIRECTIVE_NAMES.has(a))continue;let c=this.directiveDefinitionDataByName.get(a);if(!c)continue;if(!c.isRepeatable&&o.length>1){let p=(0,je.getValueOrDefault)(this.invalidRepeatedDirectiveNameByCoords,n,()=>new Set);p.has(a)||(p.add(a),this.errors.push((0,oe.invalidDirectiveError)(a,n,"1st",[(0,oe.invalidRepeatedDirectiveErrorMessage)(a)])));continue}if(a!==W.KEY){i.push(...o);continue}let l=[],d=new Set;for(let p=0;pnew Set).add(U)),(0,je.getValueOrDefault)(a.keyFieldNamesByParentTypeName,v,()=>new Set).add(A);let re=(0,cr.getTypeNodeNamedTypeName)(j.node.type);if(jr.BASE_SCALARS.has(re))return;let ne=a.parentDefinitionDataByTypeName.get(re);if(!ne)return X.BREAK;if(ne.kind===X.Kind.OBJECT_TYPE_DEFINITION){p=!0,c.push(ne);return}if((0,gn.isKindAbstract)(ne.kind))return X.BREAK}},InlineFragment:{enter(){return X.BREAK}},SelectionSet:{enter(){if(!p||(d+=1,p=!1,d<0||d>=c.length))return X.BREAK},leave(){p&&(p=!1),d-=1,c.pop()}}}),!(l.size<1))for(let[E,I]of l)this.warnings.push((0,rs.externalEntityExtensionKeyFieldWarning)(i.name,E,[...I],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,oe.undefinedCompositeOutputTypeError)(t));continue}let i=(0,nn.getParentTypeName)(r),a=(0,je.getValueOrDefault)(this.configurationDataByTypeName,i,()=>(0,Np.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)}validateOneOfDirective({data:t,requiredFieldNames:n}){var r,i;return t.directivesByDirectiveName.has(W.ONE_OF)?n.size>0?(this.errors.push((0,oe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(n),typeName:t.name})),!1):(t.inputValueDataByName.size===1&&this.warnings.push((0,rs.singleSubgraphInputFieldOneOfWarning)({fieldName:(i=(r=(0,je.getFirstEntry)(t.inputValueDataByName))==null?void 0:r.name)!=null?i:"unknown",subgraphName:this.subgraphName,typeName:t.name})),!0):!0}normalize(t){var a;(0,iV.upsertDirectiveSchemaAndEntityDefinitions)(this,t),(0,iV.upsertParentsAndChildren)(this,t);let n=[];Ud(this,GE,oV).call(this,n),this.validateDirectives(this.schemaData,W.SCHEMA),Ud(this,$E,uV).call(this,n);for(let[o,c]of this.parentDefinitionDataByTypeName)this.validateDirectives(c,o);this.invalidORScopesCoords.size>0&&this.errors.push((0,oe.orScopesLimitError)(jr.MAX_OR_SCOPES,[...this.invalidORScopesCoords]));for(let o of this.invalidConfigureDescriptionNodeDatas)o.description||this.errors.push((0,oe.configureDescriptionNoDescriptionError)((0,je.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.enumValueDataByName.size<1){this.errors.push((0,oe.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,oe.noInputValueDefinitionsError)(o));break}let l=new Set;for(let d of c.inputValueDataByName.values()){if((0,nn.isTypeRequired)(d.type)&&l.add(d.name),d.namedTypeKind!==X.Kind.NULL)continue;let p=this.parentDefinitionDataByTypeName.get(d.namedTypeName);if(p){if(!(0,nn.isInputNodeKind)(p.kind)){this.errors.push((0,oe.invalidNamedTypeError)({data:d,namedTypeData:p,nodeType:`${(0,je.kindToNodeType)(c.kind)} field`}));continue}d.namedTypeKind=p.kind}}if(!this.validateOneOfDirective({data:c,requiredFieldNames:l}))break;o!==W.EDFS_NATS_STREAM_CONFIGURATION&&n.push(this.getInputObjectNodeByData(c));break}case X.Kind.INTERFACE_TYPE_DEFINITION:case X.Kind.OBJECT_TYPE_DEFINITION:{let l=this.entityDataByTypeName.has(o),d=this.operationTypeNodeByTypeName.get(o),p=c.kind===X.Kind.OBJECT_TYPE_DEFINITION;this.isSubgraphVersionTwo&&c.extensionType===ns.ExtensionType.EXTENDS&&(c.extensionType=ns.ExtensionType.NONE),d&&(c.fieldDataByName.delete(W.SERVICE_FIELD),c.fieldDataByName.delete(W.ENTITIES_FIELD));let E=[];for(let[j,G]of c.fieldDataByName){if(!p&&((a=G.externalFieldDataBySubgraphName.get(this.subgraphName))!=null&&a.isDefinedExternal)&&E.push(j),this.validateArguments(G,c.kind),G.namedTypeKind!==X.Kind.NULL)continue;let re=this.parentDefinitionDataByTypeName.get(G.namedTypeName);if(re){if(!(0,nn.isOutputNodeKind)(re.kind)){this.errors.push((0,oe.invalidNamedTypeError)({data:G,namedTypeData:re,nodeType:`${(0,je.kindToNodeType)(c.kind)} field`}));continue}G.namedTypeKind=this.entityInterfaceDataByTypeName.get(re.name)?X.Kind.INTERFACE_TYPE_DEFINITION:re.kind}}E.length>0&&(this.isSubgraphVersionTwo?this.errors.push((0,oe.externalInterfaceFieldsError)(o,E)):this.warnings.push((0,rs.externalInterfaceFieldsWarning)(this.subgraphName,o,E)));let I=(0,nn.getParentTypeName)(c),v=(0,je.getValueOrDefault)(this.configurationDataByTypeName,I,()=>(0,Np.newConfigurationData)(l,o)),A=this.entityInterfaceDataByTypeName.get(o);if(A){A.fieldDatas=(0,Zn.fieldDatasToSimpleFieldDatas)(c.fieldDataByName.values());let j=this.concreteTypeNamesByAbstractTypeName.get(o);j&&(0,je.addIterableToSet)({source:j,target:A.concreteTypeNames}),v.isInterfaceObject=A.isInterfaceObject,v.entityInterfaceConcreteTypeNames=A.concreteTypeNames}let U=this.eventsConfigurations.get(I);U&&(v.events=U),this.addFieldNamesToConfigurationData(c.fieldDataByName,v),this.validateInterfaceImplementations(c),n.push(this.getCompositeOutputNodeByData(c)),c.fieldDataByName.size<1&&!(0,ai.isNodeQuery)(o,d)&&this.errors.push((0,oe.noFieldDefinitionsError)((0,je.kindToNodeType)(c.kind),o)),c.requireFetchReasonsFieldNames.size>0&&(v.requireFetchReasonsFieldNames=[...c.requireFetchReasonsFieldNames]);break}case X.Kind.SCALAR_TYPE_DEFINITION:{if(c.extensionType===ns.ExtensionType.REAL){this.errors.push((0,oe.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,oe.unexpectedKindFatalError)(o)}this.addValidConditionalFieldSetConfigurations(),this.addValidKeyFieldSetConfigurations();for(let o of Object.values(X.OperationTypeNode)){let c=this.schemaData.operationTypes.get(o),l=(0,je.getOrThrowError)(gn.operationTypeNodeToDefaultType,o,W.OPERATION_TO_DEFAULT),d=c?(0,cr.getTypeNodeNamedTypeName)(c.type):l;if(jr.BASE_SCALARS.has(d)&&this.referencedTypeNames.add(d),d!==l&&this.parentDefinitionDataByTypeName.has(l)){this.errors.push((0,oe.invalidRootTypeDefinitionError)(o,d,l));continue}let p=this.parentDefinitionDataByTypeName.get(d);if(c){if(!p)continue;this.operationTypeNodeByTypeName.set(d,o)}if(!p)continue;let E=this.configurationDataByTypeName.get(l);E&&(E.isRootNode=!0,E.typeName=l),p.kind!==X.Kind.OBJECT_TYPE_DEFINITION&&this.errors.push((0,oe.operationDefinitionError)(d,o,p.kind))}for(let o of this.referencedTypeNames){let c=this.parentDefinitionDataByTypeName.get(o);if(!c){this.errors.push((0,oe.undefinedTypeError)(o));continue}if(c.kind!==X.Kind.INTERFACE_TYPE_DEFINITION)continue;let l=this.concreteTypeNamesByAbstractTypeName.get(o);(!l||l.size<1)&&this.warnings.push((0,rs.unimplementedInterfaceOutputTypeWarning)(this.subgraphName,o))}let r=new Map;for(let o of this.directiveDefinitionByName.values()){let c=(0,gn.extractExecutableDirectiveLocations)(o.locations,new Set);c.size<1||this.addPersistedDirectiveDefinitionDataByNode(r,o,c)}this.isSubgraphEventDrivenGraph=this.edfsDirectiveReferences.size>0,this.isSubgraphEventDrivenGraph&&this.validateEventDrivenSubgraph();for(let o of this.unvalidatedExternalFieldCoords)this.isSubgraphVersionTwo?this.errors.push((0,oe.invalidExternalDirectiveError)(o)):this.warnings.push((0,rs.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,directiveDefinitionByName:this.directiveDefinitionByName,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,efe.buildASTSchema)(i,{addInvalidExtensionOrphans:!0,assumeValid:!0,assumeValidSDL:!0}),success:!0,warnings:this.warnings}}};GE=new WeakSet,oV=function(t){let n=new Set;for(let r of this.referencedDirectiveNames){let i=jr.DIRECTIVE_DEFINITION_BY_NAME.get(r);i&&(this.directiveDefinitionByName.set(r,i),(0,je.addOptionalIterableToSet)({source:mp.DEPENDENCIES_BY_DIRECTIVE_NAME.get(r),target:n}),t.push(i))}for(let r of this.customDirectiveDefinitionByName.values())t.push(r);t.push(...n)},$E=new WeakSet,uV=function(t){var r;let n=this.getSchemaNodeByData(this.schemaData);if(n.operationTypes.length>0){t.push(n);return}(r=n.directives)!=null&&r.length&&t.push({directives:n.directives,kind:X.Kind.SCHEMA_EXTENSION})};Lc.NormalizationFactory=Tp;function ife(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,d=new Set,p=new Set,E=[],I=new Set,v=new Map,A=[],U=[];for(let re of e)re.name&&(0,tfe.recordSubgraphName)(re.name,d,p);let j=new tb.Graph;for(let re=0;re0&&A.push(...ue.warnings),!ue.success){U.push((0,oe.subgraphValidationError)(me,ue.errors));continue}if(!ue){U.push((0,oe.subgraphValidationError)(me,[oe.subgraphValidationFailureError]));continue}l.set(me,ue.parentDefinitionDataByTypeName);for(let Ae of ue.authorizationDataByParentTypeName.values())(0,Zn.upsertAuthorizationData)(t,Ae,I);for(let[Ae,xe]of ue.fieldCoordsByNamedTypeName)(0,je.addIterableToSet)({source:xe,target:(0,je.getValueOrDefault)(v,Ae,()=>new Set)});for(let[Ae,xe]of ue.concreteTypeNamesByAbstractTypeName){let rt=n.get(Ae);if(!rt){n.set(Ae,new Set(xe));continue}(0,je.addIterableToSet)({source:xe,target:rt})}for(let[Ae,xe]of ue.entityDataByTypeName){let rt=xe.keyFieldSetDatasBySubgraphName.get(me);rt&&(0,Zn.upsertEntityData)({entityDataByTypeName:r,keyFieldSetDataByFieldSet:rt,typeName:Ae,subgraphName:me})}if(ne.name&&i.set(me,{conditionalFieldDataByCoordinates:ue.conditionalFieldDataByCoordinates,configurationDataByTypeName:ue.configurationDataByTypeName,definitions:ue.subgraphAST,directiveDefinitionByName:ue.directiveDefinitionByName,entityInterfaces:ue.entityInterfaces,isVersionTwo:ue.isVersionTwo,keyFieldNamesByParentTypeName:ue.keyFieldNamesByParentTypeName,name:me,operationTypes:ue.operationTypes,overriddenFieldNamesByParentTypeName:new Map,parentDefinitionDataByTypeName:ue.parentDefinitionDataByTypeName,persistedDirectiveDefinitionDataByDirectiveName:ue.persistedDirectiveDefinitionDataByDirectiveName,schema:ue.schema,url:ne.url}),!(ue.overridesByTargetSubgraphName.size<1))for(let[Ae,xe]of ue.overridesByTargetSubgraphName){let rt=d.has(Ae);for(let[Z,_e]of xe){let _t=ue.originalTypeNameByRenamedTypeName.get(Z)||Z;if(!rt)A.push((0,rs.invalidOverrideTargetSubgraphNameWarning)(Ae,_t,[..._e],ne.name));else{let rn=(0,je.getValueOrDefault)(a,Ae,()=>new Map),an=(0,je.getValueOrDefault)(rn,Z,()=>new Set(_e));(0,je.addIterableToSet)({source:_e,target:an})}for(let rn of _e){let an=`${_t}.${rn}`,Fn=o.get(an);if(!Fn){o.set(an,[me]);continue}Fn.push(me),c.add(an)}}}}let G=[];if(I.size>0&&G.push((0,oe.orScopesLimitError)(jr.MAX_OR_SCOPES,[...I])),(E.length>0||p.size>0)&&G.push((0,oe.invalidSubgraphNamesError)([...p],E)),c.size>0){let re=[];for(let ne of c){let me=(0,je.getOrThrowError)(o,ne,"overrideSourceSubgraphNamesByFieldPath");re.push((0,oe.duplicateOverriddenFieldErrorMessage)(ne,me))}G.push((0,oe.duplicateOverriddenFieldsError)(re))}if(G.push(...U),G.length>0)return{errors:G,success:!1,warnings:A};for(let[re,ne]of a){let me=(0,je.getOrThrowError)(i,re,"internalSubgraphBySubgraphName");me.overriddenFieldNamesByParentTypeName=ne;for(let[ue,Ae]of ne){let xe=me.configurationDataByTypeName.get(ue);xe&&((0,Zn.subtractSet)(Ae,xe.fieldNames),xe.fieldNames.size<1&&me.configurationDataByTypeName.delete(ue))}}return{authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,entityDataByTypeName:r,fieldCoordsByNamedTypeName:v,internalSubgraphBySubgraphName:i,internalGraph:j,success:!0,warnings:A}}});var QE=w(Uc=>{"use strict";m();T();N();Object.defineProperty(Uc,"__esModule",{value:!0});Uc.DivergentType=void 0;Uc.getLeastRestrictiveMergedTypeNode=sfe;Uc.getMostRestrictiveMergedTypeNode=ofe;Uc.renameNamedTypeName=ufe;var Cc=Oe(),lV=qi(),afe=yu(),cV=Ar(),dV=Fl(),Bc;(function(e){e[e.NONE=0]="NONE",e[e.CURRENT=1]="CURRENT",e[e.OTHER=2]="OTHER"})(Bc||(Uc.DivergentType=Bc={}));function fV(e,t,n,r,i){t=(0,afe.getMutableTypeNode)(t,n,i);let a={kind:e.kind},o=Bc.NONE,c=a;for(let l=0;l{"use strict";m();T();N();Object.defineProperty(ib,"__esModule",{value:!0});ib.renameRootTypes=dfe;var cfe=Oe(),rb=Ar(),lfe=QE(),Pu=sr(),kc=Rr();function dfe(e,t){let n,r=!1,i;(0,cfe.visit)(t.definitions,{FieldDefinition:{enter(a){let o=a.name.value;if(r&&(o===Pu.SERVICE_FIELD||o===Pu.ENTITIES_FIELD))return n.fieldDataByName.delete(o),!1;let c=n.name,l=(0,kc.getOrThrowError)(n.fieldDataByName,o,`${c}.fieldDataByFieldName`),d=t.operationTypes.get(l.namedTypeName);if(d){let p=(0,kc.getOrThrowError)(rb.operationTypeNodeToDefaultType,d,Pu.OPERATION_TO_DEFAULT);l.namedTypeName!==p&&(0,lfe.renameNamedTypeName)(l,p,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,kc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pu.PARENT_DEFINITION_DATA)},leave(){n=void 0}},ObjectTypeDefinition:{enter(a){let o=a.name.value,c=t.operationTypes.get(o),l=c?(0,kc.getOrThrowError)(rb.operationTypeNodeToDefaultType,c,Pu.OPERATION_TO_DEFAULT):o;n=(0,kc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pu.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,kc.getOrThrowError)(rb.operationTypeNodeToDefaultType,c,Pu.OPERATION_TO_DEFAULT):o;n=(0,kc.getOrThrowError)(t.parentDefinitionDataByTypeName,o,Pu.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 pV=w((ud,Ep)=>{"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__",d=1,p=2,E=4,I=1,v=2,A=1,U=2,j=4,G=8,re=16,ne=32,me=64,ue=128,Ae=256,xe=512,rt=30,Z="...",_e=800,_t=16,rn=1,an=2,Fn=3,$t=1/0,Tn=9007199254740991,Cr=17976931348623157e292,Br=NaN,xn=4294967295,Ht=xn-1,wn=xn>>>1,ae=[["ary",ue],["bind",A],["bindKey",U],["curry",G],["curryRight",re],["flip",xe],["partial",ne],["partialRight",me],["rearg",Ae]],De="[object Arguments]",Ie="[object Array]",Ce="[object AsyncFunction]",Ot="[object Boolean]",Y="[object Date]",ie="[object DOMException]",qe="[object Error]",Je="[object Function]",Bt="[object GeneratorFunction]",it="[object Map]",Pt="[object Number]",us="[object Null]",Qr="[object Object]",cs="[object Promise]",Hc="[object Proxy]",Pa="[object RegExp]",hr="[object Set]",si="[object String]",xt="[object Symbol]",yr="[object Undefined]",Bu="[object WeakMap]",Fa="[object WeakSet]",Uu="[object ArrayBuffer]",P="[object DataView]",y="[object Float32Array]",g="[object Float64Array]",B="[object Int8Array]",K="[object Int16Array]",ee="[object Int32Array]",ce="[object Uint8Array]",Tt="[object Uint8ClampedArray]",En="[object Uint16Array]",un="[object Uint32Array]",_n=/\b__p \+= '';/g,sn=/\b(__p \+=) '' \+/g,Jj=/(__e\(.*?\)|\b__t\)) \+\n'';/g,s0=/&(?:amp|lt|gt|quot|#39);/g,o0=/[&<>"']/g,Hj=RegExp(s0.source),zj=RegExp(o0.source),Wj=/<%-([\s\S]+?)%>/g,Xj=/<%([\s\S]+?)%>/g,u0=/<%=([\s\S]+?)%>/g,Zj=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eK=/^\w*$/,tK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bh=/[\\^$.*+?()[\]{}|]/g,nK=RegExp(bh.source),Ah=/^\s+/,rK=/\s/,iK=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,aK=/\{\n\/\* \[wrapped with (.+)\] \*/,sK=/,? & /,oK=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,uK=/[()=,{}\[\]\/\s]/,cK=/\\(\\)?/g,lK=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,c0=/\w*$/,dK=/^[-+]0x[0-9a-f]+$/i,fK=/^0b[01]+$/i,pK=/^\[object .+?Constructor\]$/,mK=/^0o[0-7]+$/i,NK=/^(?:0|[1-9]\d*)$/,TK=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jp=/($^)/,EK=/['\n\r\u2028\u2029\\]/g,Kp="\\ud800-\\udfff",hK="\\u0300-\\u036f",yK="\\ufe20-\\ufe2f",IK="\\u20d0-\\u20ff",l0=hK+yK+IK,d0="\\u2700-\\u27bf",f0="a-z\\xdf-\\xf6\\xf8-\\xff",gK="\\xac\\xb1\\xd7\\xf7",_K="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vK="\\u2000-\\u206f",OK=" \\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",p0="A-Z\\xc0-\\xd6\\xd8-\\xde",m0="\\ufe0e\\ufe0f",N0=gK+_K+vK+OK,Rh="['\u2019]",SK="["+Kp+"]",T0="["+N0+"]",Gp="["+l0+"]",E0="\\d+",DK="["+d0+"]",h0="["+f0+"]",y0="[^"+Kp+N0+E0+d0+f0+p0+"]",Ph="\\ud83c[\\udffb-\\udfff]",bK="(?:"+Gp+"|"+Ph+")",I0="[^"+Kp+"]",Fh="(?:\\ud83c[\\udde6-\\uddff]){2}",wh="[\\ud800-\\udbff][\\udc00-\\udfff]",zc="["+p0+"]",g0="\\u200d",_0="(?:"+h0+"|"+y0+")",AK="(?:"+zc+"|"+y0+")",v0="(?:"+Rh+"(?:d|ll|m|re|s|t|ve))?",O0="(?:"+Rh+"(?:D|LL|M|RE|S|T|VE))?",S0=bK+"?",D0="["+m0+"]?",RK="(?:"+g0+"(?:"+[I0,Fh,wh].join("|")+")"+D0+S0+")*",PK="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",FK="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",b0=D0+S0+RK,wK="(?:"+[DK,Fh,wh].join("|")+")"+b0,LK="(?:"+[I0+Gp+"?",Gp,Fh,wh,SK].join("|")+")",CK=RegExp(Rh,"g"),BK=RegExp(Gp,"g"),Lh=RegExp(Ph+"(?="+Ph+")|"+LK+b0,"g"),UK=RegExp([zc+"?"+h0+"+"+v0+"(?="+[T0,zc,"$"].join("|")+")",AK+"+"+O0+"(?="+[T0,zc+_0,"$"].join("|")+")",zc+"?"+_0+"+"+v0,zc+"+"+O0,FK,PK,E0,wK].join("|"),"g"),kK=RegExp("["+g0+Kp+l0+m0+"]"),MK=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xK=["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"],qK=-1,yn={};yn[y]=yn[g]=yn[B]=yn[K]=yn[ee]=yn[ce]=yn[Tt]=yn[En]=yn[un]=!0,yn[De]=yn[Ie]=yn[Uu]=yn[Ot]=yn[P]=yn[Y]=yn[qe]=yn[Je]=yn[it]=yn[Pt]=yn[Qr]=yn[Pa]=yn[hr]=yn[si]=yn[Bu]=!1;var hn={};hn[De]=hn[Ie]=hn[Uu]=hn[P]=hn[Ot]=hn[Y]=hn[y]=hn[g]=hn[B]=hn[K]=hn[ee]=hn[it]=hn[Pt]=hn[Qr]=hn[Pa]=hn[hr]=hn[si]=hn[xt]=hn[ce]=hn[Tt]=hn[En]=hn[un]=!0,hn[qe]=hn[Je]=hn[Bu]=!1;var VK={\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"},jK={"&":"&","<":"<",">":">",'"':""","'":"'"},KK={"&":"&","<":"<",">":">",""":'"',"'":"'"},GK={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$K=parseFloat,QK=parseInt,A0=typeof global=="object"&&global&&global.Object===Object&&global,YK=typeof self=="object"&&self&&self.Object===Object&&self,lr=A0||YK||Function("return this")(),Ch=typeof ud=="object"&&ud&&!ud.nodeType&&ud,ku=Ch&&typeof Ep=="object"&&Ep&&!Ep.nodeType&&Ep,R0=ku&&ku.exports===Ch,Bh=R0&&A0.process,Ii=function(){try{var $=ku&&ku.require&&ku.require("util").types;return $||Bh&&Bh.binding&&Bh.binding("util")}catch(se){}}(),P0=Ii&&Ii.isArrayBuffer,F0=Ii&&Ii.isDate,w0=Ii&&Ii.isMap,L0=Ii&&Ii.isRegExp,C0=Ii&&Ii.isSet,B0=Ii&&Ii.isTypedArray;function oi($,se,te){switch(te.length){case 0:return $.call(se);case 1:return $.call(se,te[0]);case 2:return $.call(se,te[0],te[1]);case 3:return $.call(se,te[0],te[1],te[2])}return $.apply(se,te)}function JK($,se,te,Be){for(var dt=-1,Qt=$==null?0:$.length;++dt-1}function Uh($,se,te){for(var Be=-1,dt=$==null?0:$.length;++Be-1;);return te}function K0($,se){for(var te=$.length;te--&&Wc(se,$[te],0)>-1;);return te}function rG($,se){for(var te=$.length,Be=0;te--;)$[te]===se&&++Be;return Be}var iG=qh(VK),aG=qh(jK);function sG($){return"\\"+GK[$]}function oG($,se){return $==null?e:$[se]}function Xc($){return kK.test($)}function uG($){return MK.test($)}function cG($){for(var se,te=[];!(se=$.next()).done;)te.push(se.value);return te}function Gh($){var se=-1,te=Array($.size);return $.forEach(function(Be,dt){te[++se]=[dt,Be]}),te}function G0($,se){return function(te){return $(se(te))}}function Xo($,se){for(var te=-1,Be=$.length,dt=0,Qt=[];++te-1}function zG(s,u){var f=this.__data__,h=um(f,s);return h<0?(++this.size,f.push([s,u])):f[h][1]=u,this}ls.prototype.clear=QG,ls.prototype.delete=YG,ls.prototype.get=JG,ls.prototype.has=HG,ls.prototype.set=zG;function ds(s){var u=-1,f=s==null?0:s.length;for(this.clear();++u=u?s:u)),s}function Oi(s,u,f,h,O,L){var k,V=u&d,J=u&p,le=u&E;if(f&&(k=O?f(s,h,O,L):f(s)),k!==e)return k;if(!Dn(s))return s;var de=ft(s);if(de){if(k=eQ(s),!V)return Yr(s,k)}else{var Te=vr(s),be=Te==Je||Te==Bt;if(au(s))return DA(s,V);if(Te==Qr||Te==De||be&&!O){if(k=J||be?{}:$A(s),!V)return J?K$(s,f$(k,s)):j$(s,nA(k,s))}else{if(!hn[Te])return O?s:{};k=tQ(s,Te,V)}}L||(L=new ra);var $e=L.get(s);if($e)return $e;L.set(s,k),IR(s)?s.forEach(function(et){k.add(Oi(et,u,f,et,s,L))}):hR(s)&&s.forEach(function(et,St){k.set(St,Oi(et,u,f,St,s,L))});var Ze=le?J?Ty:Ny:J?Hr:dr,yt=de?e:Ze(s);return gi(yt||s,function(et,St){yt&&(St=et,et=s[St]),Dd(k,St,Oi(et,u,f,St,s,L))}),k}function p$(s){var u=dr(s);return function(f){return rA(f,s,u)}}function rA(s,u,f){var h=f.length;if(s==null)return!h;for(s=mn(s);h--;){var O=f[h],L=u[O],k=s[O];if(k===e&&!(O in s)||!L(k))return!1}return!0}function iA(s,u,f){if(typeof s!="function")throw new _i(i);return Ld(function(){s.apply(e,f)},u)}function bd(s,u,f,h){var O=-1,L=$p,k=!0,V=s.length,J=[],le=u.length;if(!V)return J;f&&(u=vn(u,ui(f))),h?(L=Uh,k=!1):u.length>=n&&(L=Id,k=!1,u=new qu(u));e:for(;++OO?0:O+f),h=h===e||h>O?O:Et(h),h<0&&(h+=O),h=f>h?0:_R(h);f0&&f(V)?u>1?Ir(V,u-1,f,h,O):Wo(O,V):h||(O[O.length]=V)}return O}var Wh=wA(),oA=wA(!0);function wa(s,u){return s&&Wh(s,u,dr)}function Xh(s,u){return s&&oA(s,u,dr)}function lm(s,u){return zo(u,function(f){return Ts(s[f])})}function ju(s,u){u=ru(u,s);for(var f=0,h=u.length;s!=null&&fu}function T$(s,u){return s!=null&&on.call(s,u)}function E$(s,u){return s!=null&&u in mn(s)}function h$(s,u,f){return s>=_r(u,f)&&s=120&&de.length>=120)?new qu(k&&de):e}de=s[0];var Te=-1,be=V[0];e:for(;++Te-1;)V!==s&&tm.call(V,J,1),tm.call(s,J,1);return s}function hA(s,u){for(var f=s?u.length:0,h=f-1;f--;){var O=u[f];if(f==h||O!==L){var L=O;Ns(O)?tm.call(s,O,1):uy(s,O)}}return s}function ay(s,u){return s+im(X0()*(u-s+1))}function F$(s,u,f,h){for(var O=-1,L=tr(rm((u-s)/(f||1)),0),k=te(L);L--;)k[h?L:++O]=s,s+=f;return k}function sy(s,u){var f="";if(!s||u<1||u>Tn)return f;do u%2&&(f+=s),u=im(u/2),u&&(s+=s);while(u);return f}function It(s,u){return vy(JA(s,u,zr),s+"")}function w$(s){return tA(ul(s))}function L$(s,u){var f=ul(s);return gm(f,Vu(u,0,f.length))}function Pd(s,u,f,h){if(!Dn(s))return s;u=ru(u,s);for(var O=-1,L=u.length,k=L-1,V=s;V!=null&&++OO?0:O+u),f=f>O?O:f,f<0&&(f+=O),O=u>f?0:f-u>>>0,u>>>=0;for(var L=te(O);++h>>1,k=s[L];k!==null&&!li(k)&&(f?k<=u:k=n){var le=u?null:Y$(s);if(le)return Yp(le);k=!1,O=Id,J=new qu}else J=u?[]:V;e:for(;++h=h?s:Si(s,u,f)}var SA=OG||function(s){return lr.clearTimeout(s)};function DA(s,u){if(u)return s.slice();var f=s.length,h=Y0?Y0(f):new s.constructor(f);return s.copy(h),h}function fy(s){var u=new s.constructor(s.byteLength);return new Zp(u).set(new Zp(s)),u}function M$(s,u){var f=u?fy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.byteLength)}function x$(s){var u=new s.constructor(s.source,c0.exec(s));return u.lastIndex=s.lastIndex,u}function q$(s){return Sd?mn(Sd.call(s)):{}}function bA(s,u){var f=u?fy(s.buffer):s.buffer;return new s.constructor(f,s.byteOffset,s.length)}function AA(s,u){if(s!==u){var f=s!==e,h=s===null,O=s===s,L=li(s),k=u!==e,V=u===null,J=u===u,le=li(u);if(!V&&!le&&!L&&s>u||L&&k&&J&&!V&&!le||h&&k&&J||!f&&J||!O)return 1;if(!h&&!L&&!le&&s=V)return J;var le=f[h];return J*(le=="desc"?-1:1)}}return s.index-u.index}function RA(s,u,f,h){for(var O=-1,L=s.length,k=f.length,V=-1,J=u.length,le=tr(L-k,0),de=te(J+le),Te=!h;++V1?f[O-1]:e,k=O>2?f[2]:e;for(L=s.length>3&&typeof L=="function"?(O--,L):e,k&&kr(f[0],f[1],k)&&(L=O<3?e:L,O=1),u=mn(u);++h-1?O[L?u[k]:k]:e}}function BA(s){return ms(function(u){var f=u.length,h=f,O=vi.prototype.thru;for(s&&u.reverse();h--;){var L=u[h];if(typeof L!="function")throw new _i(i);if(O&&!k&&ym(L)=="wrapper")var k=new vi([],!0)}for(h=k?h:f;++h1&&Ft.reverse(),de&&JV))return!1;var le=L.get(s),de=L.get(u);if(le&&de)return le==u&&de==s;var Te=-1,be=!0,$e=f&v?new qu:e;for(L.set(s,u),L.set(u,s);++Te1?"& ":"")+u[h],u=u.join(f>2?", ":" "),s.replace(iK,`{ /* [wrapped with `+u+`] */ -`)}function U$(s){return ft(s)||Ju(s)||!!(M0&&s&&s[M0])}function hs(s,u){var p=typeof s;return u=u==null?En:u,!!u&&(p=="number"||p!="symbol"&&Jj.test(s))&&s>-1&&s%1==0&&s0){if(++u>=_e)return arguments[0]}else u=0;return s.apply(e,arguments)}}function gm(s,u){var p=-1,E=s.length,O=E-1;for(u=u===e?E:u;++p1?s[u-1]:e;return p=typeof p=="function"?(s.pop(),p):e,JA(s,p)});function HA(s){var u=P(s);return u.__chain__=!0,u}function YQ(s,u){return u(s),s}function _m(s,u){return u(s)}var JQ=Es(function(s){var u=s.length,p=u?s[0]:0,E=this.__wrapped__,O=function(L){return Ny(L,s)};return u>1||this.__actions__.length||!(E instanceof At)||!hs(p)?this.thru(O):(E=E.slice(p,+p+(u?1:0)),E.__actions__.push({func:_m,args:[O],thisArg:e}),new bi(E,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function HQ(){return HA(this)}function zQ(){return new bi(this.value(),this.__chain__)}function WQ(){this.__values__===e&&(this.__values__=cR(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function XQ(){return this}function ZQ(s){for(var u,p=this;p instanceof om;){var E=jA(p);E.__index__=0,E.__values__=e,u?O.__wrapped__=E:u=E;var O=E;p=p.__wrapped__}return O.__wrapped__=s,u}function e2(){var s=this.__wrapped__;if(s instanceof At){var u=s;return this.__actions__.length&&(u=new At(this)),u=u.reverse(),u.__actions__.push({func:_m,args:[Ky],thisArg:e}),new bi(u,this.__chain__)}return this.thru(Ky)}function t2(){return dA(this.__wrapped__,this.__actions__)}var n2=mm(function(s,u,p){un.call(s,p)?++s[p]:Ns(s,p,1)});function r2(s,u,p){var E=ft(s)?O0:YG;return p&&qr(s,u,p)&&(u=e),E(s,We(u,3))}function i2(s,u){var p=ft(s)?Xo:J0;return p(s,We(u,3))}var a2=_A(KA),s2=_A(GA);function o2(s,u){return _r(vm(s,u),1)}function u2(s,u){return _r(vm(s,u),$t)}function c2(s,u,p){return p=p===e?1:Et(p),_r(vm(s,u),p)}function zA(s,u){var p=ft(s)?Si:ru;return p(s,We(u,3))}function WA(s,u){var p=ft(s)?AK:Y0;return p(s,We(u,3))}var l2=mm(function(s,u,p){un.call(s,p)?s[p].push(u):Ns(s,p,[u])});function d2(s,u,p,E){s=Wr(s)?s:ll(s),p=p&&!E?Et(p):0;var O=s.length;return p<0&&(p=tr(O+p,0)),Am(s)?p<=O&&s.indexOf(u,p)>-1:!!O&&Zc(s,u,p)>-1}var p2=gt(function(s,u,p){var E=-1,O=typeof u=="function",L=Wr(s)?te(s.length):[];return ru(s,function(k){L[++E]=O?li(u,k,p):wd(k,u,p)}),L}),f2=mm(function(s,u,p){Ns(s,p,u)});function vm(s,u){var p=ft(s)?vn:eA;return p(s,We(u,3))}function m2(s,u,p,E){return s==null?[]:(ft(u)||(u=u==null?[]:[u]),p=E?e:p,ft(p)||(p=p==null?[]:[p]),iA(s,u,p))}var N2=mm(function(s,u,p){s[p?0:1].push(u)},function(){return[[],[]]});function T2(s,u,p){var E=ft(s)?ny:A0,O=arguments.length<3;return E(s,We(u,4),p,O,ru)}function E2(s,u,p){var E=ft(s)?RK:A0,O=arguments.length<3;return E(s,We(u,4),p,O,Y0)}function h2(s,u){var p=ft(s)?Xo:J0;return p(s,Dm(We(u,3)))}function y2(s){var u=ft(s)?K0:d$;return u(s)}function I2(s,u,p){(p?qr(s,u,p):u===e)?u=1:u=Et(u);var E=ft(s)?jG:p$;return E(s,u)}function g2(s){var u=ft(s)?KG:m$;return u(s)}function _2(s){if(s==null)return 0;if(Wr(s))return Am(s)?tl(s):s.length;var u=Sr(s);return u==rt||u==Ir?s.size:gy(s).length}function v2(s,u,p){var E=ft(s)?ry:N$;return p&&qr(s,u,p)&&(u=e),E(s,We(u,3))}var O2=gt(function(s,u){if(s==null)return[];var p=u.length;return p>1&&qr(s,u[0],u[1])?u=[]:p>2&&qr(u[0],u[1],u[2])&&(u=[u[0]]),iA(s,_r(u,1),[])}),Om=iG||function(){return dr.Date.now()};function S2(s,u){if(typeof u!="function")throw new Di(i);return s=Et(s),function(){if(--s<1)return u.apply(this,arguments)}}function XA(s,u,p){return u=p?e:u,u=s&&u==null?s.length:u,Ts(s,ue,e,e,e,e,u)}function ZA(s,u){var p;if(typeof u!="function")throw new Di(i);return s=Et(s),function(){return--s>0&&(p=u.apply(this,arguments)),s<=1&&(u=e),p}}var $y=gt(function(s,u,p){var E=w;if(p.length){var O=eu(p,ul($y));E|=ne}return Ts(s,E,u,p,O)}),eR=gt(function(s,u,p){var E=w|U;if(p.length){var O=eu(p,ul(eR));E|=ne}return Ts(u,E,s,p,O)});function tR(s,u,p){u=p?e:u;var E=Ts(s,Y,e,e,e,e,e,u);return E.placeholder=tR.placeholder,E}function nR(s,u,p){u=p?e:u;var E=Ts(s,re,e,e,e,e,e,u);return E.placeholder=nR.placeholder,E}function rR(s,u,p){var E,O,L,k,V,J,le=0,de=!1,Te=!1,be=!0;if(typeof s!="function")throw new Di(i);u=Fi(u)||0,Dn(p)&&(de=!!p.leading,Te="maxWait"in p,L=Te?tr(Fi(p.maxWait)||0,u):L,be="trailing"in p?!!p.trailing:be);function Ge(Kn){var oa=E,gs=O;return E=O=e,le=Kn,k=s.apply(gs,oa),k}function Ze(Kn){return le=Kn,V=kd(Dt,u),de?Ge(Kn):k}function yt(Kn){var oa=Kn-J,gs=Kn-le,_R=u-oa;return Te?Or(_R,L-gs):_R}function et(Kn){var oa=Kn-J,gs=Kn-le;return J===e||oa>=u||oa<0||Te&&gs>=L}function Dt(){var Kn=Om();if(et(Kn))return wt(Kn);V=kd(Dt,yt(Kn))}function wt(Kn){return V=e,be&&E?Ge(Kn):(E=O=e,k)}function mi(){V!==e&&fA(V),le=0,E=J=O=V=e}function Vr(){return V===e?k:wt(Om())}function Ni(){var Kn=Om(),oa=et(Kn);if(E=arguments,O=this,J=Kn,oa){if(V===e)return Ze(J);if(Te)return fA(V),V=kd(Dt,u),Ge(J)}return V===e&&(V=kd(Dt,u)),k}return Ni.cancel=mi,Ni.flush=Vr,Ni}var D2=gt(function(s,u){return Q0(s,1,u)}),b2=gt(function(s,u,p){return Q0(s,Fi(u)||0,p)});function A2(s){return Ts(s,Me)}function Sm(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Di(i);var p=function(){var E=arguments,O=u?u.apply(this,E):E[0],L=p.cache;if(L.has(O))return L.get(O);var k=s.apply(this,E);return p.cache=L.set(O,k)||L,k};return p.cache=new(Sm.Cache||ms),p}Sm.Cache=ms;function Dm(s){if(typeof s!="function")throw new Di(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 R2(s){return ZA(2,s)}var P2=T$(function(s,u){u=u.length==1&&ft(u[0])?vn(u[0],di(We())):vn(_r(u,1),di(We()));var p=u.length;return gt(function(E){for(var O=-1,L=Or(E.length,p);++O=u}),Ju=W0(function(){return arguments}())?W0:function(s){return Cn(s)&&un.call(s,"callee")&&!k0.call(s,"callee")},ft=te.isArray,$2=h0?di(h0):ZG;function Wr(s){return s!=null&&bm(s.length)&&!ys(s)}function jn(s){return Cn(s)&&Wr(s)}function Q2(s){return s===!0||s===!1||Cn(s)&&xr(s)==St}var ou=sG||rI,Y2=y0?di(y0):e$;function J2(s){return Cn(s)&&s.nodeType===1&&!Md(s)}function H2(s){if(s==null)return!0;if(Wr(s)&&(ft(s)||typeof s=="string"||typeof s.splice=="function"||ou(s)||cl(s)||Ju(s)))return!s.length;var u=Sr(s);if(u==rt||u==Ir)return!s.size;if(Ud(s))return!gy(s).length;for(var p in s)if(un.call(s,p))return!1;return!0}function z2(s,u){return Ld(s,u)}function W2(s,u,p){p=typeof p=="function"?p:e;var E=p?p(s,u):e;return E===e?Ld(s,u,e,p):!!E}function Yy(s){if(!Cn(s))return!1;var u=xr(s);return u==xe||u==ie||typeof s.message=="string"&&typeof s.name=="string"&&!Md(s)}function X2(s){return typeof s=="number"&&x0(s)}function ys(s){if(!Dn(s))return!1;var u=xr(s);return u==Ye||u==Ut||u==Le||u==Wc}function aR(s){return typeof s=="number"&&s==Et(s)}function bm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=En}function Dn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Cn(s){return s!=null&&typeof s=="object"}var sR=I0?di(I0):n$;function Z2(s,u){return s===u||Iy(s,u,ky(u))}function eY(s,u,p){return p=typeof p=="function"?p:e,Iy(s,u,ky(u),p)}function tY(s){return oR(s)&&s!=+s}function nY(s){if(x$(s))throw new lt(r);return X0(s)}function rY(s){return s===null}function iY(s){return s==null}function oR(s){return typeof s=="number"||Cn(s)&&xr(s)==Ft}function Md(s){if(!Cn(s)||xr(s)!=Hr)return!1;var u=em(s);if(u===null)return!0;var p=un.call(u,"constructor")&&u.constructor;return typeof p=="function"&&p instanceof p&&zf.call(p)==eG}var Jy=g0?di(g0):r$;function aY(s){return aR(s)&&s>=-En&&s<=En}var uR=_0?di(_0):i$;function Am(s){return typeof s=="string"||!ft(s)&&Cn(s)&&xr(s)==ci}function fi(s){return typeof s=="symbol"||Cn(s)&&xr(s)==qt}var cl=v0?di(v0):a$;function sY(s){return s===e}function oY(s){return Cn(s)&&Sr(s)==Mu}function uY(s){return Cn(s)&&xr(s)==Fa}var cY=hm(_y),lY=hm(function(s,u){return s<=u});function cR(s){if(!s)return[];if(Wr(s))return Am(s)?ia(s):zr(s);if(Sd&&s[Sd])return jK(s[Sd]());var u=Sr(s),p=u==rt?cy:u==Ir?Yf:ll;return p(s)}function Is(s){if(!s)return s===0?s:0;if(s=Fi(s),s===$t||s===-$t){var u=s<0?-1:1;return u*kr}return s===s?s:0}function Et(s){var u=Is(s),p=u%1;return u===u?p?u-p:u:0}function lR(s){return s?Gu(Et(s),0,Vn):0}function Fi(s){if(typeof s=="number")return s;if(fi(s))return Mr;if(Dn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Dn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=R0(s);var p=$j.test(s);return p||Yj.test(s)?SK(s.slice(2),p?2:8):Gj.test(s)?Mr:+s}function dR(s){return La(s,Xr(s))}function dY(s){return s?Gu(Et(s),-En,En):s===0?s:0}function zt(s){return s==null?"":pi(s)}var pY=sl(function(s,u){if(Ud(u)||Wr(u)){La(u,pr(u),s);return}for(var p in u)un.call(u,p)&&Pd(s,p,u[p])}),pR=sl(function(s,u){La(u,Xr(u),s)}),Rm=sl(function(s,u,p,E){La(u,Xr(u),s,E)}),fY=sl(function(s,u,p,E){La(u,pr(u),s,E)}),mY=Es(Ny);function NY(s,u){var p=al(s);return u==null?p:G0(p,u)}var TY=gt(function(s,u){s=Nn(s);var p=-1,E=u.length,O=E>2?u[2]:e;for(O&&qr(u[0],u[1],O)&&(E=1);++p1),L}),La(s,By(s),p),E&&(p=Ai(p,d|f|y,b$));for(var O=u.length;O--;)by(p,u[O]);return p});function CY(s,u){return mR(s,Dm(We(u)))}var BY=Es(function(s,u){return s==null?{}:u$(s,u)});function mR(s,u){if(s==null)return{};var p=vn(By(s),function(E){return[E]});return u=We(u),aA(s,p,function(E,O){return u(E,O[0])})}function UY(s,u,p){u=au(u,s);var E=-1,O=u.length;for(O||(O=1,s=e);++Eu){var E=s;s=u,u=E}if(p||s%1||u%1){var O=q0();return Or(s+O*(u-s+OK("1e-"+((O+"").length-1))),u)}return Oy(s,u)}var YY=ol(function(s,u,p){return u=u.toLowerCase(),s+(p?ER(u):u)});function ER(s){return Wy(zt(s).toLowerCase())}function hR(s){return s=zt(s),s&&s.replace(Hj,kK).replace(mK,"")}function JY(s,u,p){s=zt(s),u=pi(u);var E=s.length;p=p===e?E:Gu(Et(p),0,E);var O=p;return p-=u.length,p>=0&&s.slice(p,O)==u}function HY(s){return s=zt(s),s&&Rj.test(s)?s.replace(Hb,MK):s}function zY(s){return s=zt(s),s&&Bj.test(s)?s.replace(Qh,"\\$&"):s}var WY=ol(function(s,u,p){return s+(p?"-":"")+u.toLowerCase()}),XY=ol(function(s,u,p){return s+(p?" ":"")+u.toLowerCase()}),ZY=gA("toLowerCase");function eJ(s,u,p){s=zt(s),u=Et(u);var E=u?tl(s):0;if(!u||E>=u)return s;var O=(u-E)/2;return Em(im(O),p)+s+Em(rm(O),p)}function tJ(s,u,p){s=zt(s),u=Et(u);var E=u?tl(s):0;return u&&E>>0,p?(s=zt(s),s&&(typeof u=="string"||u!=null&&!Jy(u))&&(u=pi(u),!u&&el(s))?su(ia(s),0,p):s.split(u,p)):[]}var uJ=ol(function(s,u,p){return s+(p?" ":"")+Wy(u)});function cJ(s,u,p){return s=zt(s),p=p==null?0:Gu(Et(p),0,s.length),u=pi(u),s.slice(p,p+u.length)==u}function lJ(s,u,p){var E=P.templateSettings;p&&qr(s,u,p)&&(u=e),s=zt(s),u=Rm({},u,E,AA);var O=Rm({},u.imports,E.imports,AA),L=pr(O),k=uy(O,L),V,J,le=0,de=u.interpolate||jf,Te="__p += '",be=ly((u.escape||jf).source+"|"+de.source+"|"+(de===zb?Kj:jf).source+"|"+(u.evaluate||jf).source+"|$","g"),Ge="//# sourceURL="+(un.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yK+"]")+` -`;s.replace(be,function(et,Dt,wt,mi,Vr,Ni){return wt||(wt=mi),Te+=s.slice(le,Ni).replace(zj,xK),Dt&&(V=!0,Te+=`' + -__e(`+Dt+`) + -'`),Vr&&(J=!0,Te+=`'; -`+Vr+`; -__p += '`),wt&&(Te+=`' + -((__t = (`+wt+`)) == null ? '' : __t) + -'`),le=Ni+et.length,et}),Te+=`'; -`;var Ze=un.call(u,"variable")&&u.variable;if(!Ze)Te=`with (obj) { +`)}function rQ(s){return ft(s)||$u(s)||!!(z0&&s&&s[z0])}function Ns(s,u){var f=typeof s;return u=u==null?Tn:u,!!u&&(f=="number"||f!="symbol"&&NK.test(s))&&s>-1&&s%1==0&&s0){if(++u>=_e)return arguments[0]}else u=0;return s.apply(e,arguments)}}function gm(s,u){var f=-1,h=s.length,O=h-1;for(u=u===e?h:u;++f1?s[u-1]:e;return f=typeof f=="function"?(s.pop(),f):e,sR(s,f)});function oR(s){var u=F(s);return u.__chain__=!0,u}function m2(s,u){return u(s),s}function _m(s,u){return u(s)}var N2=ms(function(s){var u=s.length,f=u?s[0]:0,h=this.__wrapped__,O=function(L){return zh(L,s)};return u>1||this.__actions__.length||!(h instanceof bt)||!Ns(f)?this.thru(O):(h=h.slice(f,+f+(u?1:0)),h.__actions__.push({func:_m,args:[O],thisArg:e}),new vi(h,this.__chain__).thru(function(L){return u&&!L.length&&L.push(e),L}))});function T2(){return oR(this)}function E2(){return new vi(this.value(),this.__chain__)}function h2(){this.__values__===e&&(this.__values__=gR(this.value()));var s=this.__index__>=this.__values__.length,u=s?e:this.__values__[this.__index__++];return{done:s,value:u}}function y2(){return this}function I2(s){for(var u,f=this;f instanceof om;){var h=eR(f);h.__index__=0,h.__values__=e,u?O.__wrapped__=h:u=h;var O=h;f=f.__wrapped__}return O.__wrapped__=s,u}function g2(){var s=this.__wrapped__;if(s instanceof bt){var u=s;return this.__actions__.length&&(u=new bt(this)),u=u.reverse(),u.__actions__.push({func:_m,args:[Oy],thisArg:e}),new vi(u,this.__chain__)}return this.thru(Oy)}function _2(){return vA(this.__wrapped__,this.__actions__)}var v2=mm(function(s,u,f){on.call(s,f)?++s[f]:fs(s,f,1)});function O2(s,u,f){var h=ft(s)?U0:m$;return f&&kr(s,u,f)&&(u=e),h(s,We(u,3))}function S2(s,u){var f=ft(s)?zo:sA;return f(s,We(u,3))}var D2=CA(tR),b2=CA(nR);function A2(s,u){return Ir(vm(s,u),1)}function R2(s,u){return Ir(vm(s,u),$t)}function P2(s,u,f){return f=f===e?1:Et(f),Ir(vm(s,u),f)}function uR(s,u){var f=ft(s)?gi:tu;return f(s,We(u,3))}function cR(s,u){var f=ft(s)?HK:aA;return f(s,We(u,3))}var F2=mm(function(s,u,f){on.call(s,f)?s[f].push(u):fs(s,f,[u])});function w2(s,u,f,h){s=Jr(s)?s:ul(s),f=f&&!h?Et(f):0;var O=s.length;return f<0&&(f=tr(O+f,0)),Am(s)?f<=O&&s.indexOf(u,f)>-1:!!O&&Wc(s,u,f)>-1}var L2=It(function(s,u,f){var h=-1,O=typeof u=="function",L=Jr(s)?te(s.length):[];return tu(s,function(k){L[++h]=O?oi(u,k,f):Ad(k,u,f)}),L}),C2=mm(function(s,u,f){fs(s,f,u)});function vm(s,u){var f=ft(s)?vn:fA;return f(s,We(u,3))}function B2(s,u,f,h){return s==null?[]:(ft(u)||(u=u==null?[]:[u]),f=h?e:f,ft(f)||(f=f==null?[]:[f]),TA(s,u,f))}var U2=mm(function(s,u,f){s[f?0:1].push(u)},function(){return[[],[]]});function k2(s,u,f){var h=ft(s)?kh:q0,O=arguments.length<3;return h(s,We(u,4),f,O,tu)}function M2(s,u,f){var h=ft(s)?zK:q0,O=arguments.length<3;return h(s,We(u,4),f,O,aA)}function x2(s,u){var f=ft(s)?zo:sA;return f(s,Dm(We(u,3)))}function q2(s){var u=ft(s)?tA:w$;return u(s)}function V2(s,u,f){(f?kr(s,u,f):u===e)?u=1:u=Et(u);var h=ft(s)?c$:L$;return h(s,u)}function j2(s){var u=ft(s)?l$:B$;return u(s)}function K2(s){if(s==null)return 0;if(Jr(s))return Am(s)?Zc(s):s.length;var u=vr(s);return u==it||u==hr?s.size:ny(s).length}function G2(s,u,f){var h=ft(s)?Mh:U$;return f&&kr(s,u,f)&&(u=e),h(s,We(u,3))}var $2=It(function(s,u){if(s==null)return[];var f=u.length;return f>1&&kr(s,u[0],u[1])?u=[]:f>2&&kr(u[0],u[1],u[2])&&(u=[u[0]]),TA(s,Ir(u,1),[])}),Om=SG||function(){return lr.Date.now()};function Q2(s,u){if(typeof u!="function")throw new _i(i);return s=Et(s),function(){if(--s<1)return u.apply(this,arguments)}}function lR(s,u,f){return u=f?e:u,u=s&&u==null?s.length:u,ps(s,ue,e,e,e,e,u)}function dR(s,u){var f;if(typeof u!="function")throw new _i(i);return s=Et(s),function(){return--s>0&&(f=u.apply(this,arguments)),s<=1&&(u=e),f}}var Dy=It(function(s,u,f){var h=A;if(f.length){var O=Xo(f,sl(Dy));h|=ne}return ps(s,h,u,f,O)}),fR=It(function(s,u,f){var h=A|U;if(f.length){var O=Xo(f,sl(fR));h|=ne}return ps(u,h,s,f,O)});function pR(s,u,f){u=f?e:u;var h=ps(s,G,e,e,e,e,e,u);return h.placeholder=pR.placeholder,h}function mR(s,u,f){u=f?e:u;var h=ps(s,re,e,e,e,e,e,u);return h.placeholder=mR.placeholder,h}function NR(s,u,f){var h,O,L,k,V,J,le=0,de=!1,Te=!1,be=!0;if(typeof s!="function")throw new _i(i);u=bi(u)||0,Dn(f)&&(de=!!f.leading,Te="maxWait"in f,L=Te?tr(bi(f.maxWait)||0,u):L,be="trailing"in f?!!f.trailing:be);function $e(Vn){var aa=h,hs=O;return h=O=e,le=Vn,k=s.apply(hs,aa),k}function Ze(Vn){return le=Vn,V=Ld(St,u),de?$e(Vn):k}function yt(Vn){var aa=Vn-J,hs=Vn-le,CR=u-aa;return Te?_r(CR,L-hs):CR}function et(Vn){var aa=Vn-J,hs=Vn-le;return J===e||aa>=u||aa<0||Te&&hs>=L}function St(){var Vn=Om();if(et(Vn))return Ft(Vn);V=Ld(St,yt(Vn))}function Ft(Vn){return V=e,be&&h?$e(Vn):(h=O=e,k)}function di(){V!==e&&SA(V),le=0,h=J=O=V=e}function Mr(){return V===e?k:Ft(Om())}function fi(){var Vn=Om(),aa=et(Vn);if(h=arguments,O=this,J=Vn,aa){if(V===e)return Ze(J);if(Te)return SA(V),V=Ld(St,u),$e(J)}return V===e&&(V=Ld(St,u)),k}return fi.cancel=di,fi.flush=Mr,fi}var Y2=It(function(s,u){return iA(s,1,u)}),J2=It(function(s,u,f){return iA(s,bi(u)||0,f)});function H2(s){return ps(s,xe)}function Sm(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new _i(i);var f=function(){var h=arguments,O=u?u.apply(this,h):h[0],L=f.cache;if(L.has(O))return L.get(O);var k=s.apply(this,h);return f.cache=L.set(O,k)||L,k};return f.cache=new(Sm.Cache||ds),f}Sm.Cache=ds;function Dm(s){if(typeof s!="function")throw new _i(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 z2(s){return dR(2,s)}var W2=k$(function(s,u){u=u.length==1&&ft(u[0])?vn(u[0],ui(We())):vn(Ir(u,1),ui(We()));var f=u.length;return It(function(h){for(var O=-1,L=_r(h.length,f);++O=u}),$u=cA(function(){return arguments}())?cA:function(s){return Ln(s)&&on.call(s,"callee")&&!H0.call(s,"callee")},ft=te.isArray,fY=P0?ui(P0):I$;function Jr(s){return s!=null&&bm(s.length)&&!Ts(s)}function qn(s){return Ln(s)&&Jr(s)}function pY(s){return s===!0||s===!1||Ln(s)&&Ur(s)==Ot}var au=bG||My,mY=F0?ui(F0):g$;function NY(s){return Ln(s)&&s.nodeType===1&&!Cd(s)}function TY(s){if(s==null)return!0;if(Jr(s)&&(ft(s)||typeof s=="string"||typeof s.splice=="function"||au(s)||ol(s)||$u(s)))return!s.length;var u=vr(s);if(u==it||u==hr)return!s.size;if(wd(s))return!ny(s).length;for(var f in s)if(on.call(s,f))return!1;return!0}function EY(s,u){return Rd(s,u)}function hY(s,u,f){f=typeof f=="function"?f:e;var h=f?f(s,u):e;return h===e?Rd(s,u,e,f):!!h}function Ay(s){if(!Ln(s))return!1;var u=Ur(s);return u==qe||u==ie||typeof s.message=="string"&&typeof s.name=="string"&&!Cd(s)}function yY(s){return typeof s=="number"&&W0(s)}function Ts(s){if(!Dn(s))return!1;var u=Ur(s);return u==Je||u==Bt||u==Ce||u==Hc}function ER(s){return typeof s=="number"&&s==Et(s)}function bm(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Tn}function Dn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function Ln(s){return s!=null&&typeof s=="object"}var hR=w0?ui(w0):v$;function IY(s,u){return s===u||ty(s,u,hy(u))}function gY(s,u,f){return f=typeof f=="function"?f:e,ty(s,u,hy(u),f)}function _Y(s){return yR(s)&&s!=+s}function vY(s){if(sQ(s))throw new dt(r);return lA(s)}function OY(s){return s===null}function SY(s){return s==null}function yR(s){return typeof s=="number"||Ln(s)&&Ur(s)==Pt}function Cd(s){if(!Ln(s)||Ur(s)!=Qr)return!1;var u=em(s);if(u===null)return!0;var f=on.call(u,"constructor")&&u.constructor;return typeof f=="function"&&f instanceof f&&zp.call(f)==gG}var Ry=L0?ui(L0):O$;function DY(s){return ER(s)&&s>=-Tn&&s<=Tn}var IR=C0?ui(C0):S$;function Am(s){return typeof s=="string"||!ft(s)&&Ln(s)&&Ur(s)==si}function li(s){return typeof s=="symbol"||Ln(s)&&Ur(s)==xt}var ol=B0?ui(B0):D$;function bY(s){return s===e}function AY(s){return Ln(s)&&vr(s)==Bu}function RY(s){return Ln(s)&&Ur(s)==Fa}var PY=hm(ry),FY=hm(function(s,u){return s<=u});function gR(s){if(!s)return[];if(Jr(s))return Am(s)?na(s):Yr(s);if(gd&&s[gd])return cG(s[gd]());var u=vr(s),f=u==it?Gh:u==hr?Yp:ul;return f(s)}function Es(s){if(!s)return s===0?s:0;if(s=bi(s),s===$t||s===-$t){var u=s<0?-1:1;return u*Cr}return s===s?s:0}function Et(s){var u=Es(s),f=u%1;return u===u?f?u-f:u:0}function _R(s){return s?Vu(Et(s),0,xn):0}function bi(s){if(typeof s=="number")return s;if(li(s))return Br;if(Dn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=Dn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=V0(s);var f=fK.test(s);return f||mK.test(s)?QK(s.slice(2),f?2:8):dK.test(s)?Br:+s}function vR(s){return La(s,Hr(s))}function wY(s){return s?Vu(Et(s),-Tn,Tn):s===0?s:0}function zt(s){return s==null?"":ci(s)}var LY=il(function(s,u){if(wd(u)||Jr(u)){La(u,dr(u),s);return}for(var f in u)on.call(u,f)&&Dd(s,f,u[f])}),OR=il(function(s,u){La(u,Hr(u),s)}),Rm=il(function(s,u,f,h){La(u,Hr(u),s,h)}),CY=il(function(s,u,f,h){La(u,dr(u),s,h)}),BY=ms(zh);function UY(s,u){var f=rl(s);return u==null?f:nA(f,u)}var kY=It(function(s,u){s=mn(s);var f=-1,h=u.length,O=h>2?u[2]:e;for(O&&kr(u[0],u[1],O)&&(h=1);++f1),L}),La(s,Ty(s),f),h&&(f=Oi(f,d|p|E,J$));for(var O=u.length;O--;)uy(f,u[O]);return f});function tJ(s,u){return DR(s,Dm(We(u)))}var nJ=ms(function(s,u){return s==null?{}:R$(s,u)});function DR(s,u){if(s==null)return{};var f=vn(Ty(s),function(h){return[h]});return u=We(u),EA(s,f,function(h,O){return u(h,O[0])})}function rJ(s,u,f){u=ru(u,s);var h=-1,O=u.length;for(O||(O=1,s=e);++hu){var h=s;s=u,u=h}if(f||s%1||u%1){var O=X0();return _r(s+O*(u-s+$K("1e-"+((O+"").length-1))),u)}return ay(s,u)}var mJ=al(function(s,u,f){return u=u.toLowerCase(),s+(f?RR(u):u)});function RR(s){return wy(zt(s).toLowerCase())}function PR(s){return s=zt(s),s&&s.replace(TK,iG).replace(BK,"")}function NJ(s,u,f){s=zt(s),u=ci(u);var h=s.length;f=f===e?h:Vu(Et(f),0,h);var O=f;return f-=u.length,f>=0&&s.slice(f,O)==u}function TJ(s){return s=zt(s),s&&zj.test(s)?s.replace(o0,aG):s}function EJ(s){return s=zt(s),s&&nK.test(s)?s.replace(bh,"\\$&"):s}var hJ=al(function(s,u,f){return s+(f?"-":"")+u.toLowerCase()}),yJ=al(function(s,u,f){return s+(f?" ":"")+u.toLowerCase()}),IJ=LA("toLowerCase");function gJ(s,u,f){s=zt(s),u=Et(u);var h=u?Zc(s):0;if(!u||h>=u)return s;var O=(u-h)/2;return Em(im(O),f)+s+Em(rm(O),f)}function _J(s,u,f){s=zt(s),u=Et(u);var h=u?Zc(s):0;return u&&h>>0,f?(s=zt(s),s&&(typeof u=="string"||u!=null&&!Ry(u))&&(u=ci(u),!u&&Xc(s))?iu(na(s),0,f):s.split(u,f)):[]}var RJ=al(function(s,u,f){return s+(f?" ":"")+wy(u)});function PJ(s,u,f){return s=zt(s),f=f==null?0:Vu(Et(f),0,s.length),u=ci(u),s.slice(f,f+u.length)==u}function FJ(s,u,f){var h=F.templateSettings;f&&kr(s,u,f)&&(u=e),s=zt(s),u=Rm({},u,h,qA);var O=Rm({},u.imports,h.imports,qA),L=dr(O),k=Kh(O,L),V,J,le=0,de=u.interpolate||jp,Te="__p += '",be=$h((u.escape||jp).source+"|"+de.source+"|"+(de===u0?lK:jp).source+"|"+(u.evaluate||jp).source+"|$","g"),$e="//# sourceURL="+(on.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qK+"]")+` +`;s.replace(be,function(et,St,Ft,di,Mr,fi){return Ft||(Ft=di),Te+=s.slice(le,fi).replace(EK,sG),St&&(V=!0,Te+=`' + +__e(`+St+`) + +'`),Mr&&(J=!0,Te+=`'; +`+Mr+`; +__p += '`),Ft&&(Te+=`' + +((__t = (`+Ft+`)) == null ? '' : __t) + +'`),le=fi+et.length,et}),Te+=`'; +`;var Ze=on.call(u,"variable")&&u.variable;if(!Ze)Te=`with (obj) { `+Te+` } -`;else if(Vj.test(Ze))throw new lt(a);Te=(J?Te.replace(_n,""):Te).replace(on,"$1").replace(bj,"$1;"),Te="function("+(Ze||"obj")+`) { +`;else if(uK.test(Ze))throw new dt(a);Te=(J?Te.replace(_n,""):Te).replace(sn,"$1").replace(Jj,"$1;"),Te="function("+(Ze||"obj")+`) { `+(Ze?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(V?", __e = _.escape":"")+(J?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+Te+`return __p -}`;var yt=IR(function(){return Qt(L,Ge+"return "+Te).apply(e,k)});if(yt.source=Te,Yy(yt))throw yt;return yt}function dJ(s){return zt(s).toLowerCase()}function pJ(s){return zt(s).toUpperCase()}function fJ(s,u,p){if(s=zt(s),s&&(p||u===e))return R0(s);if(!s||!(u=pi(u)))return s;var E=ia(s),O=ia(u),L=P0(E,O),k=F0(E,O)+1;return su(E,L,k).join("")}function mJ(s,u,p){if(s=zt(s),s&&(p||u===e))return s.slice(0,L0(s)+1);if(!s||!(u=pi(u)))return s;var E=ia(s),O=F0(E,ia(u))+1;return su(E,0,O).join("")}function NJ(s,u,p){if(s=zt(s),s&&(p||u===e))return s.replace(Yh,"");if(!s||!(u=pi(u)))return s;var E=ia(s),O=P0(E,ia(u));return su(E,O).join("")}function TJ(s,u){var p=nt,E=X;if(Dn(u)){var O="separator"in u?u.separator:O;p="length"in u?Et(u.length):p,E="omission"in u?pi(u.omission):E}s=zt(s);var L=s.length;if(el(s)){var k=ia(s);L=k.length}if(p>=L)return s;var V=p-tl(E);if(V<1)return E;var J=k?su(k,0,V).join(""):s.slice(0,V);if(O===e)return J+E;if(k&&(V+=J.length-V),Jy(O)){if(s.slice(V).search(O)){var le,de=J;for(O.global||(O=ly(O.source,zt(Wb.exec(O))+"g")),O.lastIndex=0;le=O.exec(de);)var Te=le.index;J=J.slice(0,Te===e?V:Te)}}else if(s.indexOf(pi(O),V)!=V){var be=J.lastIndexOf(O);be>-1&&(J=J.slice(0,be))}return J+E}function EJ(s){return s=zt(s),s&&Aj.test(s)?s.replace(Jb,QK):s}var hJ=ol(function(s,u,p){return s+(p?" ":"")+u.toUpperCase()}),Wy=gA("toUpperCase");function yR(s,u,p){return s=zt(s),u=p?e:u,u===e?VK(s)?HK(s):wK(s):s.match(u)||[]}var IR=gt(function(s,u){try{return li(s,e,u)}catch(p){return Yy(p)?p:new lt(p)}}),yJ=Es(function(s,u){return Si(u,function(p){p=Ca(p),Ns(s,p,$y(s[p],s))}),s});function IJ(s){var u=s==null?0:s.length,p=We();return s=u?vn(s,function(E){if(typeof E[1]!="function")throw new Di(i);return[p(E[0]),E[1]]}):[],gt(function(E){for(var O=-1;++OEn)return[];var p=Vn,E=Or(s,Vn);u=We(u),s-=Vn;for(var O=oy(E,u);++p0||u<0)?new At(p):(s<0?p=p.takeRight(-s):s&&(p=p.drop(s)),u!==e&&(u=Et(u),p=u<0?p.dropRight(-u):p.take(u-s)),p)},At.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},At.prototype.toArray=function(){return this.take(Vn)},wa(At.prototype,function(s,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),E=/^(?:head|last)$/.test(u),O=P[E?"take"+(u=="last"?"Right":""):u],L=E||/^find/.test(u);O&&(P.prototype[u]=function(){var k=this.__wrapped__,V=E?[1]:arguments,J=k instanceof At,le=V[0],de=J||ft(k),Te=function(Dt){var wt=O.apply(P,Zo([Dt],V));return E&&be?wt[0]:wt};de&&p&&typeof le=="function"&&le.length!=1&&(J=de=!1);var be=this.__chain__,Ge=!!this.__actions__.length,Ze=L&&!be,yt=J&&!Ge;if(!L&&de){k=yt?k:new At(this);var et=s.apply(k,V);return et.__actions__.push({func:_m,args:[Te],thisArg:e}),new bi(et,be)}return Ze&&yt?s.apply(this,V):(et=this.thru(Te),Ze?E?et.value()[0]:et.value():et)})}),Si(["pop","push","shift","sort","splice","unshift"],function(s){var u=Jf[s],p=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",E=/^(?:pop|shift)$/.test(s);P.prototype[s]=function(){var O=arguments;if(E&&!this.__chain__){var L=this.value();return u.apply(ft(L)?L:[],O)}return this[p](function(k){return u.apply(ft(k)?k:[],O)})}}),wa(At.prototype,function(s,u){var p=P[u];if(p){var E=p.name+"";un.call(il,E)||(il[E]=[]),il[E].push({name:u,func:p})}}),il[Nm(e,U).name]=[{name:"wrapper",func:e}],At.prototype.clone=EG,At.prototype.reverse=hG,At.prototype.value=yG,P.prototype.at=JQ,P.prototype.chain=HQ,P.prototype.commit=zQ,P.prototype.next=WQ,P.prototype.plant=ZQ,P.prototype.reverse=e2,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=t2,P.prototype.first=P.prototype.head,Sd&&(P.prototype[Sd]=XQ),P},tu=zK();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(dr._=tu,define(function(){return tu})):qu?((qu.exports=tu)._=tu,Zh._=tu):dr._=tu}).call(pd)});var W1=F(jc=>{"use strict";m();T();N();Object.defineProperty(jc,"__esModule",{value:!0});jc.FederationFactory=void 0;jc.federateSubgraphs=qde;jc.federateSubgraphsWithContracts=Vde;jc.federateSubgraphsContract=jde;var Re=Oe(),Y1=gu(),Qr=Pr(),Pe=Gi(),qc=sT(),Vc=sd(),Yr=lf(),ph=vE(),hf=_u(),Ude=GD(),kde=df(),J1=Mp(),ge=kl(),Mde=YD(),H1=Q1(),fd=dh(),ve=sr(),fh=Cl(),Ne=Fr(),xde=pf(),Cu=xp(),Nh,z1,mh=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,disableResolvabilityValidation:r,entityDataByTypeName:i,entityInterfaceFederationDataByTypeName:a,fieldCoordsByNamedTypeName:o,internalGraph:c,internalSubgraphBySubgraphName:l,warnings:d}){dl(this,Nh);_(this,"authorizationDataByParentTypeName");_(this,"coordsByNamedTypeName",new Map);_(this,"disableResolvabilityValidation",!1);_(this,"clientDefinitions",[]);_(this,"currentSubgraphName","");_(this,"concreteTypeNamesByAbstractTypeName");_(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,"persistedDirectiveDefinitionByDirectiveName",new Map([[ve.AUTHENTICATED,Cu.AUTHENTICATED_DEFINITION],[ve.DEPRECATED,Cu.DEPRECATED_DEFINITION],[ve.INACCESSIBLE,Cu.INACCESSIBLE_DEFINITION],[ve.ONE_OF,Cu.ONE_OF_DEFINITION],[ve.REQUIRES_SCOPES,Cu.REQUIRES_SCOPES_DEFINITION],[ve.SEMANTIC_NON_NULL,Cu.SEMANTIC_NON_NULL_DEFINITION],[ve.TAG,Cu.TAG_DEFINITION]]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"referencedPersistedDirectiveNames",new Set);_(this,"routerDefinitions",[]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.disableResolvabilityValidation=r!=null?r:!1,this.entityDataByTypeName=i,this.entityInterfaceFederationDataByTypeName=a,this.fieldCoordsByNamedTypeName=o,this.internalGraph=c,this.internalSubgraphBySubgraphName=l,this.warnings=d}extractPersistedDirectives({data:t,directivesByName:n}){for(let[r,i]of n)if(this.persistedDirectiveDefinitionByDirectiveName.get(r)&&(this.referencedPersistedDirectiveNames.add(r),!(ve.AUTHORIZATION_DIRECTIVES.has(r)||i.length<1)))switch(r){case ve.DEPRECATED:{t.isDeprecated=!0,(0,ge.upsertDeprecatedDirective)(t,i[0]);break}case ve.TAG:{(0,ge.upsertTagDirectives)(t,i);break}default:{let o=t.directivesByDirectiveName.get(r);if(!o){t.directivesByDirectiveName.set(r,[...i]);break}if(ve.NON_REPEATABLE_PERSISTED_DIRECTIVES.has(r))break;o.push(...i)}}return t}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,Qr.stringToNamedTypeNode)(c));let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,c,ve.PARENT_DEFINITION_DATA);if(l.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,Ne.kindToNodeType)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},f=!1;for(let[y,I]of l.fieldDataByName){let v=!1,w=t.fieldDataByName.get(y);if(!w){f=!0,d.unimplementedFields.push(y);continue}let U={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,ph.printTypeNode)(I.node.type),unimplementedArguments:new Set};(0,ge.isTypeValidImplementation)(I.node.type,w.node.type,this.concreteTypeNamesByAbstractTypeName)||(f=!0,v=!0,U.implementedResponseType=(0,ph.printTypeNode)(w.node.type));let j=new Set;for(let[Y,re]of I.argumentDataByName){let ne=re.node;j.add(Y);let me=(o=w.argumentDataByName.get(Y))==null?void 0:o.node;if(!me){f=!0,v=!0,U.unimplementedArguments.add(Y);continue}let ue=(0,ph.printTypeNode)(me.type),Ae=(0,ph.printTypeNode)(ne.type);Ae!==ue&&(f=!0,v=!0,U.invalidImplementedArguments.push({actualType:ue,argumentName:Y,expectedType:Ae}))}for(let[Y,re]of w.argumentDataByName){let ne=re.node;j.has(Y)||ne.type.kind===Re.Kind.NON_NULL_TYPE&&(f=!0,v=!0,U.invalidAdditionalArguments.add(Y))}!r&&w.isInaccessible&&!I.isInaccessible&&(f=!0,v=!0,U.isInaccessible=!0),v&&d.invalidFieldImplementations.set(y,U)}f&&i.set(c,d)}return a.size>0&&this.errors.push((0,Pe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Pe.invalidInterfaceImplementationError)(t.node.name.value,(0,Ne.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var f;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,Ne.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,Pe.incompatibleParentKindFatalError)(n.typeName,Re.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Re.Kind.NULL);let o=r.configurationDataByTypeName.get(n.typeName);if(!o)return;let c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,qc.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[y,I]of this.entityInterfaceFederationDataByTypeName){if(!((f=I.concreteTypeNames)!=null&&f.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(y);v&&(0,qc.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 d=new Set(o.keys.map(y=>y.selectionSet));for(let y of c)d.has(y.selectionSet)||(o.keys.push(y),d.add(y.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,ge.isParentDataCompositeOutputType)(o))throw(0,Pe.incompatibleParentKindFatalError)(n,Re.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Re.Kind.NULL);let c=(0,Ne.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,qc.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 d=new Set(c.keys.map(f=>f.selectionSet));for(let f of l)d.has(f.selectionSet)||(c.keys.push(f),d.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(ve.PERIOD);if(r.length<1)continue;let i=(0,Ne.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,qc.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,Ne.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,qc.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,Ne.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,qc.newChildTagData)(r[1])),c=(0,Ne.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);this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByDirectiveName});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,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:a.subgraphNames})}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if(this.extractPersistedDirectives({data:o.persistedDirectivesData,directivesByName:n.directivesByDirectiveName}),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(o,n),(0,Ne.addIterableToSet)({source:n.requiredSubgraphNames,target:o.requiredSubgraphNames}),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:o.subgraphNames}),this.handleInputValueInaccessibility(i,o,r);let c=(0,fd.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,Pe.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,Pe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByDirectiveName.get(ve.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,Ne.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Pe.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,Y1.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=fd.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,Ne.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByDirectiveName});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,Ne.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),d=(0,Ne.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(d.size<1)for(let f of a.subgraphNames)n.subgraphNames.has(f)||d.add(f);(0,Ne.addIterableToSet)({source:n.subgraphNames,target:(0,Ne.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,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,Ne.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,Ne.addMapEntries)({source:n.isShareableBySubgraphName,target:a.isShareableBySubgraphName}),(0,Ne.addMapEntries)({source:n.nullLevelsBySubgraphName,target:a.nullLevelsBySubgraphName}),(0,Ne.addIterableToSet)({source:n.subgraphNames,target: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,Ne.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ne.copyArrayValueMap)(t.directivesByDirectiveName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByDirectiveName}),description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByDirectiveName:(0,Ne.copyArrayValueMap)(t.directivesByDirectiveName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,Qr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByDirectiveName}),subgraphNames:new Set(t.subgraphNames),description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ne.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,Qr.stringToNameNode)(t.name),type:t.type},originalCoords:t.originalCoords,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByDirectiveName}),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,Ne.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,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ne.copyArrayValueMap)(t.directivesByDirectiveName),externalFieldDataBySubgraphName:(0,Ne.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,Qr.stringToNameNode)(t.name),type:t.type},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByDirectiveName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(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,Ne.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 $(M({},n),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,t.isInaccessible),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Qr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:return $(M({},n),{inputValueDataByName:this.copyInputValueDataByValueName(t.inputValueDataByName,t.isInaccessible,t.name),isInaccessible:t.isInaccessible,kind:t.kind,node:{kind:t.kind,name:(0,Qr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.INTERFACE_TYPE_DEFINITION:return $(M({},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,Qr.stringToNameNode)(t.name)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.OBJECT_TYPE_DEFINITION:return $(M({},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,Qr.stringToNameNode)(t.renamedTypeName||t.name)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.SCALAR_TYPE_DEFINITION:return $(M({},n),{kind:t.kind,node:{kind:t.kind,name:(0,Qr.stringToNameNode)(t.name)},subgraphNames:new Set(t.subgraphNames)});case Re.Kind.UNION_TYPE_DEFINITION:return $(M({},n),{kind:t.kind,node:{kind:t.kind,name:(0,Qr.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=J1.ExtensionType.NONE),r}return this.extractPersistedDirectives({data:t.persistedDirectivesData,directivesByName:n.directivesByDirectiveName}),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.interfaceObjectSubgraphNames.has(n)){if(i&&i.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,Pe.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:n}));return}a.kind=Re.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Re.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphNames.has(n)||a.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Pe.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,Ne.kindToNodeType)(t.kind),incomingSubgraphName:n}));return}switch((0,Ne.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,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,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,Ne.addIterableToSet)({source:t.subgraphNames,target: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,Ne.addIterableToSet)({source:c.implementedInterfaceTypeNames,target:a.implementedInterfaceTypeNames}),(0,Ne.addIterableToSet)({source:c.subgraphNames,target: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,Ne.addMapEntries)({source:t.memberByMemberTypeName,target:a.memberByMemberTypeName}),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return;default:(0,Ne.addIterableToSet)({source:t.subgraphNames,target: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.argumentDataByName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByName: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.argumentDataByName.values())this.namedInputValueTypeNames.add((0,Y1.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByName,a,`@${i.name}`,!1);(0,ge.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,Ne.addIterableToSet)({source:t.subgraphNames,target: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,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Re.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=f;break}default:{this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<1&&!l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let f of o.keys()){d=f;for(let[y,I]of o)if(f!==y&&!I.implementedInterfaceTypeNames.has(f)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,c)){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=d,this.updateTypeNodeNamedType(a.type,d)}}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,Mde.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 d=r.fieldDatasBySubgraphName.get(o);for(let{name:f,namedTypeName:y}of d||[])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(){var t;for(let[n,r]of this.entityInterfaceFederationDataByTypeName){let i=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,n,ve.PARENT_DEFINITION_DATA);if(i.kind===Re.Kind.INTERFACE_TYPE_DEFINITION)for(let a of r.interfaceObjectSubgraphNames){let o=(0,Ne.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),c=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let d=(0,Ne.getOrThrowError)(c,n,"configurationDataByTypeName"),f=d.keys;if(!f)continue;d.entityInterfaceConcreteTypeNames=new Set(r.concreteTypeNames),this.internalGraph.setSubgraphName(a);let y=this.internalGraph.addOrUpdateNode(n,{isAbstract:!0});for(let I of l){let v=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,I,ve.PARENT_DEFINITION_DATA);if(!(0,Yr.isObjectDefinitionData)(v))continue;let w=(0,Ne.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");w.subgraphNames.add(a);let U=c.get(I);if(U)if((0,Ne.addIterableToSet)({source:d.fieldNames,target:U.fieldNames}),!U.keys)U.keys=[...f];else e:for(let ne of f){for(let{selectionSet:me}of U.keys)if(ne.selectionSet===me)continue e;U.keys.push(ne)}else c.set(I,{fieldNames:new Set(d.fieldNames),isRootNode:!0,keys:[...f],typeName:I});let j=new Set;for(let ne of f.filter(me=>!me.disableEntityResolver))j.add(ne.selectionSet);let Y=this.authorizationDataByParentTypeName.get(n),re=(0,Ne.getOrThrowError)(o.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Yr.isObjectDefinitionData)(re)){for(let[ne,me]of re.fieldDataByName){let ue=`${I}.${ne}`;(0,Ne.getValueOrDefault)(this.fieldCoordsByNamedTypeName,me.namedTypeName,()=>new Set).add(ue);let Ae=Y==null?void 0:Y.fieldAuthDataByFieldName.get(ne);if(Ae){let X=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,Yr.newAuthorizationData)(I));(0,Yr.upsertFieldAuthorizationData)(X.fieldAuthDataByFieldName,Ae)||this.invalidORScopesCoords.add(ue)}let Me=v.fieldDataByName.get(ne);if(Me){let X=(t=me.isShareableBySubgraphName.get(a))!=null?t:!1;Me.isShareableBySubgraphName.set(a,X),Me.subgraphNames.add(a);let _e=me.externalFieldDataBySubgraphName.get(a);if(!_e)continue;Me.externalFieldDataBySubgraphName.set(a,M({},_e));continue}let nt=i.isInaccessible||v.isInaccessible||me.isInaccessible;v.fieldDataByName.set(ne,this.copyFieldData(me,nt))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:r,interfaceObjectNode:y,resolvableKeyFieldSets:j,entityData:w})}}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Yr.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t){var i;let n=(0,Yr.getNodeCoords)(t),r=[];for(let[a,o]of t.persistedDirectivesData.directivesByDirectiveName){if(a===ve.SEMANTIC_NON_NULL&&(0,ge.isFieldData)(t)){r.push((0,Ne.generateSemanticNonNullDirective)((i=(0,Ne.getFirstEntry)(t.nullLevelsBySubgraphName))!=null?i:new Set([0])));continue}let c=this.persistedDirectiveDefinitionByDirectiveName.get(a);if(c){if(o.length<2){r.push(...o);continue}if(!c.repeatable){this.errors.push((0,Pe.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}r.push(...o)}}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)),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,qc.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Pe.configureDescriptionPropagationError)((0,ge.getDefinitionDataCoords)(t,!0),n))}getNodeForRouterSchemaByData(t){return t.node.name=(0,Qr.stringToNameNode)(t.name),t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}getNodeWithPersistedDirectivesByInputValueData(t){return t.node.name=(0,Qr.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,Ne.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Pe.invalidRequiredInputValueError)(ve.FIELD,a,i)):r.length>0&&((0,Ne.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,Qr.stringToNameNode)(t.name),t.node.type=t.type,t.node.description=this.getFederatedGraphNodeDescription(t),t.node.directives=this.getRouterPersistedDirectiveNodes(t),t.node}validateSemanticNonNull(t){let n;for(let r of t.nullLevelsBySubgraphName.values()){if(!n){n=r;continue}if(n.size!==r.size){this.errors.push((0,Pe.semanticNonNullInconsistentLevelsError)(t));return}for(let i of r)if(!n.has(i)){this.errors.push((0,Pe.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:n,requiredFieldNames:r}){return t.directivesByDirectiveName.has(ve.ONE_OF)?r.size>0?(this.errors.push((0,Pe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(n.length===1&&this.warnings.push((0,xde.singleFederatedInputFieldOneOfWarning)({fieldName:n[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==J1.ExtensionType.NONE&&this.errors.push((0,Pe.noBaseDefinitionForExtensionError)((0,Ne.kindToNodeType)(r.kind),n)),r.kind){case Re.Kind.ENUM_TYPE_DEFINITION:{if(Vc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let c of r.enumValueDataByName.values()){let l=this.getNodeForRouterSchemaByData(c),d=(0,ge.isNodeDataInaccessible)(c),f=$(M({},c.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(c)});switch(o){case ge.MergeMethod.CONSISTENT:!d&&r.appearances>c.appearances&&this.errors.push((0,Pe.incompatibleSharedEnumError)(n)),i.push(l),d||a.push(f);break;case ge.MergeMethod.INTERSECTION:r.appearances===c.appearances&&(i.push(l),d||a.push(f));break;default:i.push(l),d||a.push(f);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,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,ve.ENUM_VALUE));break}this.clientDefinitions.push($(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),values:a}));break}case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(Vc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=new Array,a=new Array,o=new Array,c=new Set;for(let[l,d]of r.inputValueDataByName)if((0,ge.isTypeRequired)(d.type)&&c.add(l),r.subgraphNames.size===d.subgraphNames.size){if(a.push(this.getNodeWithPersistedDirectivesByInputValueData(d)),(0,ge.isNodeDataInaccessible)(d))continue;o.push($(M({},d.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(d)}))}else(0,ge.isTypeRequired)(d.type)&&i.push({inputValueName:l,missingSubgraphs:(0,Ne.getEntriesNotInHashSet)(r.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,Pe.invalidRequiredInputValueError)(ve.INPUT_OBJECT,n,i,!1));break}if(!this.validateOneOfDirective({data:r,inputValueNodes:a,requiredFieldNames:c}))break;if(r.node.fields=a,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(o.length<1){this.errors.push((0,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,"Input field"));break}this.clientDefinitions.push($(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:o}));break}case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,c=(0,ge.newInvalidFieldNames)(),l=r.kind===Re.Kind.OBJECT_TYPE_DEFINITION,d=this.authorizationDataByParentTypeName.get(n);(0,ge.propagateAuthDirectives)(r,d);for(let[y,I]of r.fieldDataByName){(0,ge.propagateFieldAuthDirectives)(I,d);let v=this.getValidFieldArgumentNodes(I);l&&(0,ge.validateExternalAndShareable)(I,c),this.validateSemanticNonNull(I),i.push(this.getNodeWithPersistedDirectivesByFieldData(I,v)),!(0,ge.isNodeDataInaccessible)(I)&&(a.push((0,ge.getClientSchemaFieldNodeByFieldData)(I)),o.set(y,this.fieldDataToGraphFieldData(I)))}if(l&&(c.byShareable.size>0&&this.errors.push((0,Pe.invalidFieldShareabilityError)(r,c.byShareable)),c.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Pe.allExternalFieldInstancesError)(n,c.subgraphNamesByExternalFieldName))),r.node.fields=i,this.internalGraph.initializeNode(n,o),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:a});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let f=(0,kde.isNodeQuery)(n);if((0,ge.isNodeDataInaccessible)(r)){if(f){this.errors.push(Pe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){let y=f?(0,Pe.noQueryRootTypeError)(!1):(0,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,ve.FIELD);this.errors.push(y);break}this.clientDefinitions.push($(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:a}));break}case Re.Kind.SCALAR_TYPE_DEFINITION:{if(Vc.IGNORED_FEDERATED_TYPE_NAMES.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($(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r)}));break}case Re.Kind.UNION_TYPE_DEFINITION:{if(r.node.types=(0,Yr.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let i=this.getClientSchemaUnionMembers(r);if(i.length<1){this.errors.push((0,Pe.allChildDefinitionsAreInaccessibleError)(ve.UNION,n,"union member type"));break}this.clientDefinitions.push($(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),types:i}));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(ve.PERIOD);switch(o.length){case 2:{let c=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,Yr.newAuthorizationData)(o[0])),l=(0,Ne.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,Yr.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>hf.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,Yr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Yr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),wm(this,Nh,z1).call(this),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(n)),(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,Qr.stringToNamedTypeNode)(a));this.clientDefinitions.push($(M({},n.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(ve.LEFT_PARENTHESIS)[0].split(ve.PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Pe.invalidReferencesOfInaccessibleTypeError)((0,Ne.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(ve.QUERY);if(!t||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Pe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,ge.isNodeDataInaccessible)(n))return;this.errors.push((0,Pe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(ve.PERIOD);if(o.length<1)return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,Pe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let d=0;d0?`.${f}`:f,c.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let y=c.fieldDataByName.get(f);if(!y)return a.push((0,Pe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,f,c.renamedTypeName)),[];let I=`${c.renamedTypeName}.${f}`;if(!y.subgraphNames.has(i))return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I,i)),[];if(this.inaccessibleCoords.has(I))return a.push((0,Pe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I)),[];if(hf.BASE_SCALARS.has(y.namedTypeName)){c={kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:y.namedTypeName};continue}c=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,y.namedTypeName,ve.PARENT_DEFINITION_DATA)}return(0,ge.isLeafKind)(c.kind)?o:(a.push((0,Pe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Ne.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>fh.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Pe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([ve.FIELD_PATH,ve.VALUES]),f=new Set,y=new Set,I=[];for(let v of t.fields){let w=v.name.value,U=a+`.${w}`;switch(w){case ve.FIELD_PATH:{if(d.has(ve.FIELD_PATH))d.delete(ve.FIELD_PATH);else{l=!0,f.add(ve.FIELD_PATH);break}if(v.value.kind!==Re.Kind.STRING){I.push((0,Pe.invalidInputFieldTypeErrorMessage)(U,ve.STRING,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}let j=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,U,o,I);if(j.length<1){l=!0;break}n.fieldPath=j;break}case ve.VALUES:{if(d.has(ve.VALUES))d.delete(ve.VALUES);else{l=!0,f.add(ve.VALUES);break}let j=v.value.kind;if(j==Re.Kind.NULL||j==Re.Kind.OBJECT){I.push((0,Pe.invalidInputFieldTypeErrorMessage)(U,ve.LIST,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}if(j!==Re.Kind.LIST){n.values=[(0,ge.getSubscriptionFilterValue)(v.value)];break}let Y=new Set,re=[];for(let ne=0;ne0){I.push((0,Pe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(U,re));continue}if(Y.size<1){l=!0,I.push((0,Pe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(U));continue}n.values=[...Y];break}default:l=!0,y.add(w)}}return l?(c.push((0,Pe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...d],[...f],[...y],I)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>fh.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Pe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!Vc.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,d)),!1;let f=a+`.${d}`;switch(l.value.kind){case Re.Kind.OBJECT:switch(d){case ve.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case ve.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,ve.LIST,ve.OBJECT)),!1}case Re.Kind.LIST:{let y=[];switch(d){case ve.AND_UPPER:{n.and=y;break}case ve.OR_UPPER:{n.or=y;break}default:return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,ve.OBJECT,ve.LIST)),!1}let I=l.value.values.length;if(I<1||I>5)return c.push((0,Pe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(f,I)),!1;let v=!0,w=[];for(let U=0;U0?(c.push((0,Pe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(f,w)),!1):v}default:{let y=Vc.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?ve.LIST:ve.OBJECT;return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(f,y,(0,Ne.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,Pe.invalidSubscriptionFilterDirectiveError)(r,[(0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(ve.CONDITION,ve.OBJECT,(0,Ne.kindToNodeType)(c.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,ve.CONDITION,o,d)){this.errors.push((0,Pe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,Ne.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,Pe.invalidSubscriptionFilterDirectiveError)(t,[(0,Pe.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,Pe.orScopesLimitError)(hf.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.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.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,directiveDefinitionByName:a.directiveDefinitionByName,isVersionTwo:a.isVersionTwo,parentDefinitionDataByTypeName:a.parentDefinitionDataByTypeName,schema:a.schema});for(let a of this.authorizationDataByParentTypeName.values())(0,Yr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return M({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,Ne.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,ge.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,Ne.getValueOrDefault)(l.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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,Ne.getValueOrDefault)(c.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(Cu.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,o,ve.PARENT_DEFINITION_DATA);if(!(0,ge.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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:break;case Re.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}default:{let d=l.fieldDataByName.size;for(let[f,y]of c.childTagDataByChildName){let I=(0,Ne.getOrThrowError)(l.fieldDataByName,f,`${o}.fieldDataByFieldName`);if((0,ge.isNodeDataInaccessible)(I)){d-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(y.tagNames)){(0,Ne.getValueOrDefault)(I.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(I.federatedCoords),d-=1;continue}for(let[v,w]of y.tagNamesByArgumentName){let U=(0,Ne.getOrThrowError)(I.argumentDataByName,v,`${f}.argumentDataByArgumentName`);(0,ge.isNodeDataInaccessible)(U)||t.tagNamesToExclude.isDisjointFrom(w)||((0,Ne.getValueOrDefault)(U.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(U.federatedCoords))}}d<1&&(l.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=c.fieldDataByName.size;for(let[f,y]of c.fieldDataByName){if((0,ge.isNodeDataInaccessible)(y)){d-=1;continue}let I=l.childTagDataByChildName.get(f);(!I||t.tagNamesToInclude.isDisjointFrom(I.tagNames))&&((0,Ne.getValueOrDefault)(y.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(y.federatedCoords),d-=1)}d<1&&(c.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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,directiveDefinitionByName:o.directiveDefinitionByName,isVersionTwo:o.isVersionTwo,parentDefinitionDataByTypeName:o.parentDefinitionDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,Yr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return M({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()}};Nh=new WeakSet,z1=function(){var r;let t=new Set,n=new Set;for(let i of this.referencedPersistedDirectiveNames){let a=hf.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!a)continue;let o=(r=Vc.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?r:[];Vc.CLIENT_PERSISTED_DIRECTIVE_NAMES.has(i)&&(this.clientDefinitions.push(a),(0,Ne.addIterableToSet)({source:o,target:t})),this.routerDefinitions.push(a),(0,Ne.addIterableToSet)({source:o,target:n})}this.clientDefinitions.push(...t),this.routerDefinitions.push(...n)};jc.FederationFactory=mh;function JD({disableResolvabilityValidation:e,subgraphs:t}){if(t.length<1)return{errors:[Pe.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,Ude.batchNormalize)(t);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[c,l]of n.internalSubgraphBySubgraphName)for(let[d,f]of l.entityInterfaces){let y=r.get(d);if(!y){r.set(d,(0,Yr.newEntityInterfaceFederationData)(f,c));continue}(0,Yr.upsertEntityInterfaceFederationData)(y,f,c)}let a=new Array,o=new Map;for(let[c,l]of r){let d=l.concreteTypeNames.size;for(let[f,y]of l.subgraphDataByTypeName){let I=(0,Ne.getValueOrDefault)(o,f,()=>new Set);if((0,Ne.addIterableToSet)({source:y.concreteTypeNames,target:I}),!y.isInterfaceObject){y.resolvable&&y.concreteTypeNames.size!==d&&(0,Ne.getValueOrDefault)(i,c,()=>new Array).push({subgraphName:f,definedConcreteTypeNames:new Set(y.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,Ne.addIterableToSet)({source:l.concreteTypeNames,target:I});let{parentDefinitionDataByTypeName:v}=(0,Ne.getOrThrowError)(n.internalSubgraphBySubgraphName,f,"internalSubgraphBySubgraphName"),w=[];for(let U of l.concreteTypeNames)v.has(U)&&w.push(U);w.length>0&&a.push((0,Pe.invalidInterfaceObjectImplementationDefinitionsError)(c,f,w))}}for(let[c,l]of i){let d=new Array;for(let f of l){let y=o.get(f.subgraphName);if(!y){d.push(f);continue}let I=f.requiredConcreteTypeNames.intersection(y);f.requiredConcreteTypeNames.size!==I.size&&(f.definedConcreteTypeNames=I,d.push(f))}if(d.length>0){i.set(c,d);continue}i.delete(c)}return i.size>0&&a.push((0,Pe.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new mh({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,disableResolvabilityValidation:e,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,warnings:n.warnings}),success:!0,warnings:n.warnings}}function qde({disableResolvabilityValidation:e,subgraphs:t}){let n=JD({subgraphs:t,disableResolvabilityValidation:e});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function Vde({subgraphs:e,tagOptionsByContractName:t,disableResolvabilityValidation:n}){let r=JD({subgraphs:e,disableResolvabilityValidation:n});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,H1.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=t.size-1,c=new Map,l=0;for(let[d,f]of t){l!==o&&i.push((0,H1.cloneDeep)(i[l]));let y=i[l].buildFederationContractResult(f);c.set(d,y),l++}return $(M({},a),{federationResultByContractName:c})}function jde({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n}){let r=JD({subgraphs:n,disableResolvabilityValidation:t});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var Th=F(Us=>{"use strict";m();T();N();Object.defineProperty(Us,"__esModule",{value:!0});Us.LATEST_ROUTER_COMPATIBILITY_VERSION=Us.ROUTER_COMPATIBILITY_VERSIONS=Us.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Us.ROUTER_COMPATIBILITY_VERSION_ONE="1";Us.ROUTER_COMPATIBILITY_VERSIONS=new Set([Us.ROUTER_COMPATIBILITY_VERSION_ONE]);Us.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var X1=F(yf=>{"use strict";m();T();N();Object.defineProperty(yf,"__esModule",{value:!0});yf.federateSubgraphs=Kde;yf.federateSubgraphsWithContracts=Gde;yf.federateSubgraphsContract=$de;var HD=W1(),zD=Th();function Kde({disableResolvabilityValidation:e,subgraphs:t,version:n=zD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,HD.federateSubgraphs)({disableResolvabilityValidation:e,subgraphs:t})}}function Gde({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n,version:r=zD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,HD.federateSubgraphsWithContracts)({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n})}}function $de({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n,version:r=zD.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,HD.federateSubgraphsContract)({disableResolvabilityValidation:t,subgraphs:n,contractTagOptions:e})}}});var eV=F(Z1=>{"use strict";m();T();N();Object.defineProperty(Z1,"__esModule",{value:!0})});var tV=F(If=>{"use strict";m();T();N();Object.defineProperty(If,"__esModule",{value:!0});If.normalizeSubgraphFromString=Qde;If.normalizeSubgraph=Yde;If.batchNormalize=Jde;var WD=GD(),XD=Th();function Qde(e,t=!0,n=XD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,WD.normalizeSubgraphFromString)(e,t)}}function Yde(e,t,n,r=XD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,WD.normalizeSubgraph)(e,t,n)}}function Jde(e,t=XD.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,WD.batchNormalize)(e)}}});var rV=F(nV=>{"use strict";m();T();N();Object.defineProperty(nV,"__esModule",{value:!0})});var aV=F(iV=>{"use strict";m();T();N();Object.defineProperty(iV,"__esModule",{value:!0})});var oV=F(sV=>{"use strict";m();T();N();Object.defineProperty(sV,"__esModule",{value:!0})});var cV=F(uV=>{"use strict";m();T();N();Object.defineProperty(uV,"__esModule",{value:!0})});var dV=F(lV=>{"use strict";m();T();N();Object.defineProperty(lV,"__esModule",{value:!0})});var fV=F(pV=>{"use strict";m();T();N();Object.defineProperty(pV,"__esModule",{value:!0})});var mV=F(Eh=>{"use strict";m();T();N();Object.defineProperty(Eh,"__esModule",{value:!0});Eh.COMPOSITION_VERSION=void 0;Eh.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var TV=F(NV=>{"use strict";m();T();N();Object.defineProperty(NV,"__esModule",{value:!0})});var hV=F(EV=>{"use strict";m();T();N();Object.defineProperty(EV,"__esModule",{value:!0})});var IV=F(yV=>{"use strict";m();T();N();Object.defineProperty(yV,"__esModule",{value:!0})});var _V=F(gV=>{"use strict";m();T();N();Object.defineProperty(gV,"__esModule",{value:!0})});var hh=F(Xe=>{"use strict";m();T();N();var Hde=Xe&&Xe.__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]}),ct=Xe&&Xe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Hde(t,e,n)};Object.defineProperty(Xe,"__esModule",{value:!0});ct(Pr(),Xe);ct(Xv(),Xe);ct(Gi(),Xe);ct(SM(),Xe);ct(X1(),Xe);ct(eV(),Xe);ct(tV(),Xe);ct(rV(),Xe);ct(VD(),Xe);ct(PD(),Xe);ct(nh(),Xe);ct(aV(),Xe);ct(oV(),Xe);ct(BD(),Xe);ct(Th(),Xe);ct(cV(),Xe);ct(jD(),Xe);ct(gu(),Xe);ct(Mp(),Xe);ct(kl(),Xe);ct(dV(),Xe);ct(fV(),Xe);ct(mV(),Xe);ct(TV(),Xe);ct(sr(),Xe);ct(hV(),Xe);ct(Fr(),Xe);ct(gD(),Xe);ct(_u(),Xe);ct(xp(),Xe);ct(DE(),Xe);ct(bE(),Xe);ct(sd(),Xe);ct(aT(),Xe);ct(sT(),Xe);ct(YD(),Xe);ct(IV(),Xe);ct(TD(),Xe);ct(df(),Xe);ct(_V(),Xe);ct(SD(),Xe);ct(dh(),Xe);ct(yD(),Xe);ct(lf(),Xe);ct(pf(),Xe)});var jpe={};Pm(jpe,{buildRouterConfiguration:()=>Vpe,federateSubgraphs:()=>qpe});m();T();N();var Hc=_s(hh());m();T();N();m();T();N();function ZD(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 vV={};m();T();N();function OV(e){return e!=null}m();T();N();m();T();N();var RV=_s(Oe(),1);m();T();N();var SV;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}SV=function(t,n){return new e(t,n)}}else SV=AggregateError;function DV(e){return"errors"in e&&Array.isArray(e.errors)}var PV=3;function FV(e){return yh(e,[])}function yh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return zde(e,t);default:return String(e)}}function bV(e){return e instanceof RV.GraphQLError?e.toString():`${e.name}: ${e.message}; - ${e.stack}`}function zde(e,t){if(e===null)return"null";if(e instanceof Error)return DV(e)?bV(e)+` -`+AV(e.errors,t):bV(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(Wde(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:yh(r,n)}else if(Array.isArray(e))return AV(e,n);return Xde(e,n)}function Wde(e){return typeof e.toJSON=="function"}function Xde(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>PV?"["+Zde(e)+"]":"{ "+n.map(([i,a])=>i+": "+yh(a,t)).join(", ")+" }"}function AV(e,t){if(e.length===0)return"[]";if(t.length>PV)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 Fe=_s(Oe(),1);m();T();N();var os=_s(Oe(),1);function us(e){if((0,os.isNonNullType)(e)){let t=us(e.ofType);if(t.kind===os.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${FV(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:os.Kind.NON_NULL_TYPE,type:t}}else if((0,os.isListType)(e))return{kind:os.Kind.LIST_TYPE,type:us(e.ofType)};return{kind:os.Kind.NAMED_TYPE,name:{kind:os.Kind.NAME,value:e.name}}}m();T();N();var cs=_s(Oe(),1);function gh(e){if(e===null)return{kind:cs.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=gh(n);r!=null&&t.push(r)}return{kind:cs.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=gh(r);i&&t.push({kind:cs.Kind.OBJECT_FIELD,name:{kind:cs.Kind.NAME,value:n},value:i})}return{kind:cs.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:cs.Kind.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return epe.test(t)?{kind:cs.Kind.INT,value:t}:{kind:cs.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:cs.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var epe=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();m();T();N();function _h(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 uxe=_h(function(t){let n=tpe(t);return new Set([...n].map(r=>r.name))}),tpe=_h(function(t){let n=eb(t);return new Set(n.values())}),eb=_h(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 npe(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=rpe(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,Fe.isSpecifiedDirective)(c)||a.push(ipe(c,e,n));for(let c in r){let l=r[c],d=(0,Fe.isSpecifiedScalarType)(l),f=(0,Fe.isIntrospectionType)(l);if(!(d||f))if((0,Fe.isObjectType)(l))a.push(ape(l,e,n));else if((0,Fe.isInterfaceType)(l))a.push(spe(l,e,n));else if((0,Fe.isUnionType)(l))a.push(ope(l,e,n));else if((0,Fe.isInputObjectType)(l))a.push(upe(l,e,n));else if((0,Fe.isEnumType)(l))a.push(cpe(l,e,n));else if((0,Fe.isScalarType)(l))a.push(lpe(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:Fe.Kind.DOCUMENT,definitions:a}}function wV(e,t={}){let n=npe(e,t);return(0,Fe.print)(n)}function rpe(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=eb(e);for(let[f,y]of i){let I=o.get(f);if(I!=null){let v=us(I);y!=null?y.type=v:i.set(f,{kind:Fe.Kind.OPERATION_TYPE_DEFINITION,operation:f,type:v})}}let c=[...i.values()].filter(OV),l=md(e,e,t);if(!c.length&&!l.length)return null;let d={kind:c!=null?Fe.Kind.SCHEMA_DEFINITION:Fe.Kind.SCHEMA_EXTENSION,operationTypes:c,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,d}function ipe(e,t,n){var r,i,a,o;return{kind:Fe.Kind.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},arguments:(a=e.args)===null||a===void 0?void 0:a.map(c=>LV(c,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(c=>({kind:Fe.Kind.NAME,value:c})))||[]}}function md(e,t,n){let r=Ih(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=tb(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}function Oh(e,t,n){var r,i;let a=[],o=null,c=Ih(e,n),l;return c!=null?l=tb(t,c):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(a=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=fpe(e.deprecationReason)),o==null?a:[o].concat(a)}function LV(e,t,n){var r,i,a;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},type:us(e.type),defaultValue:e.defaultValue!==void 0&&(a=(0,Fe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0,directives:Oh(e,t,n)}}function ape(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>CV(a,t,n)),interfaces:Object.values(e.getInterfaces()).map(a=>us(a)),directives:md(e,t,n)}}function spe(e,t,n){var r,i;let a={kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>CV(o,t,n)),directives:md(e,t,n)};return"getInterfaces"in e&&(a.interfaces=Object.values(e.getInterfaces()).map(o=>us(o))),a}function ope(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:md(e,t,n),types:e.getTypes().map(a=>us(a))}}function upe(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>dpe(a,t,n)),directives:md(e,t,n)}}function cpe(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(a=>ppe(a,t,n)),directives:md(e,t,n)}}function lpe(e,t,n){var r,i,a;let o=Ih(e,n),c=o?tb(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!c.some(d=>d.name.value==="specifiedBy")){let d={url:l};c.push(vh("specifiedBy",d))}return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:c}}function CV(e,t,n){var r,i;return{kind:Fe.Kind.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},arguments:e.args.map(a=>LV(a,t,n)),type:us(e.type),directives:Oh(e,t,n)}}function dpe(e,t,n){var r,i,a;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},type:us(e.type),directives:Oh(e,t,n),defaultValue:(a=(0,Fe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0}}function ppe(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:Oh(e,t,n)}}function fpe(e){return vh("deprecated",{reason:e},Fe.GraphQLDeprecatedDirective)}function vh(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,Fe.astFromValue)(o,i.type);c&&r.push({kind:Fe.Kind.ARGUMENT,name:{kind:Fe.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=gh(a);o&&r.push({kind:Fe.Kind.ARGUMENT,name:{kind:Fe.Kind.NAME,value:i},value:o})}return{kind:Fe.Kind.DIRECTIVE,name:{kind:Fe.Kind.NAME,value:e},arguments:r}}function tb(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(vh(r,o,a));else n.push(vh(r,i,a))}return n}var vd=_s(hh(),1);m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();function mn(e,t){if(!e)throw new Error(t)}var mpe=34028234663852886e22,Npe=-34028234663852886e22,Tpe=4294967295,Epe=2147483647,hpe=-2147483648;function Nd(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Epe||eTpe||e<0)throw new Error("invalid uint 32: "+e)}function Sh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>mpe||e({no:i.no,name:i.name,localName:e[i.no]})),r)}function rb(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let c=MV(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 kV(e,t,n){let r={};for(let i of t){let a=MV(i);r[a.localName]=a.no,r[a.no]=a.localName}return nb(r,e,t,n),r}function MV(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var we=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 xV(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 we),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 VV(){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 Dh=4294967296;function ib(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>=Dh&&(i=i+(r/Dh|0),r=r%Dh)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?KV(r,i):sb(r,i)}function jV(e,t){let n=sb(e,t),r=n.hi&2147483648;r&&(n=KV(n.lo,n.hi));let i=ab(n.lo,n.hi);return r?"-"+i:i}function ab(e,t){if({lo:e,hi:t}=ype(e,t),t<=2097151)return String(Dh*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()+qV(o)+qV(a)}function ype(e,t){return{lo:e>>>0,hi:t>>>0}}function sb(e,t){return{lo:e|0,hi:t|0}}function KV(e,t){return t=~t,e?e=~e+1:t+=1,sb(e,t)}var qV=e=>{let t=String(e);return"0000000".slice(t.length)+t};function ob(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 GV(){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 Ipe(){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 S!="object"||typeof S.env!="object"||S.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 d=typeof l=="bigint"?l:BigInt(l);if(d>a||dc||dmn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>mn(/^[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),ib(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),ib(i)},dec(i,a){return jV(i,a)},uDec(i,a){return ab(i,a)}}}var Hn=Ipe();m();T();N();var pe;(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"})(pe||(pe={}));var ba;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(ba||(ba={}));function ks(e,t,n){if(t===n)return!0;if(e==pe.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(gf(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Nd(t),ob(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){Sh(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){gf(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Nd(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Nd(t),t=(t<<1^t>>31)>>>0,ob(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Hn.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=Hn.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Hn.enc(t);return bh(n.lo,n.hi,this.buf),this}sint64(t){let n=Hn.enc(t),r=n.hi>>31,i=n.lo<<1^r,a=(n.hi<<1|n.lo>>>31)^r;return bh(i,a,this.buf),this}uint64(t){let n=Hn.uEnc(t);return bh(n.lo,n.hi,this.buf),this}},Ph=class{constructor(t,n){this.varint64=VV,this.uint32=GV,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 qn.Varint:for(;this.buf[this.pos++]&128;);break;case qn.Bit64:this.pos+=4;case qn.Bit32:this.pos+=4;break;case qn.LengthDelimited:let r=this.uint32();this.pos+=r;break;case qn.StartGroup:let i;for(;(i=this.tag()[1])!==qn.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 Hn.dec(...this.varint64())}uint64(){return Hn.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Hn.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 Hn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Hn.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 $V(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 Fh(e){let t=e.field.localName,n=Object.create(null);return n[t]=gpe(e),[n,()=>n[t]]}function gpe(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 Aa(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 QV(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 Ms="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),wh=[];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+=Ms[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Ms[i|r>>6],t+=Ms[r&63],n=0;break}return n&&(t+=Ms[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function YV(e,t,n){HV(t,e);let r=t.runtime.bin.makeReadOptions(n),i=QV(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=Fh(t);for(let c of i)t.runtime.bin.readField(a,r.readerFactory(c.data),t.field,c.wireType,r);return o()}function JV(e,t,n,r){HV(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(cb(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(f=>f.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let f of d)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 HV(e,t){mn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function Lh(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:!Ah(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function lb(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?Aa(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ra(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(we.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 Ch(e,t){return Ra(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var Vqe={"google.protobuf.DoubleValue":pe.DOUBLE,"google.protobuf.FloatValue":pe.FLOAT,"google.protobuf.Int64Value":pe.INT64,"google.protobuf.UInt64Value":pe.UINT64,"google.protobuf.Int32Value":pe.INT32,"google.protobuf.UInt32Value":pe.UINT32,"google.protobuf.BoolValue":pe.BOOL,"google.protobuf.StringValue":pe.STRING,"google.protobuf.BytesValue":pe.BYTES};var zV={ignoreUnknownFields:!1},WV={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function _pe(e){return e?Object.assign(Object.assign({},zV),e):zV}function vpe(e){return e?Object.assign(Object.assign({},WV),e):WV}var kh=Symbol(),Bh=Symbol();function ej(){return{makeReadOptions:_pe,makeWriteOptions:vpe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${ls(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 d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}XV(r,c,l,n,e)}else{let d=!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){d=!0;let[y,I]=Fh(f);XV(y,c,f.field,n,f),JV(r,f,I(),n)}}if(!d&&!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(!Lh(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!Spe(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],c=ZV(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&&cb(e,c)){let l=YV(e,c,t),d=ZV(c.field,l,t);d!==void 0&&(r[c.field.jsonName]=d)}}}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 _f(e,t,n!=null?n:ba.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||Ah(e,t)))return Uh(e,t)},debug:ls}}function ls(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 XV(e,t,n,r,i){let a=n.localName;if(n.repeated){if(mn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${ls(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: ${ls(c)}`);switch(n.kind){case"message":o.push(n.T.fromJson(c,r));break;case"enum":let l=db(n.T,c,r.ignoreUnknownFields,!0);l!==Bh&&o.push(l);break;case"scalar":try{o.push(_f(n.T,c,n.L,!0))}catch(d){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ls(c)}`;throw d instanceof Error&&d.message.length>0&&(f+=`: ${d.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: ${ls(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 d;try{d=Ope(n.K,c)}catch(f){let y=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${ls(t)}`;throw f instanceof Error&&f.message.length>0&&(y+=`: ${f.message}`),new Error(y)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let f=db(n.V.T,l,r.ignoreUnknownFields,!0);f!==Bh&&(o[d]=f);break;case"scalar":try{o[d]=_f(n.V.T,l,ba.BIGINT,!0)}catch(y){let I=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${ls(t)}`;throw y instanceof Error&&y.message.length>0&&(I+=`: ${y.message}`),new Error(I)}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];Ra(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=db(n.T,t,r.ignoreUnknownFields,!1);switch(l){case kh:lb(n,e);break;case Bh:break;default:e[a]=l;break}break;case"scalar":try{let d=_f(n.T,t,n.L,!1);switch(d){case kh:lb(n,e);break;default:e[a]=d;break}}catch(d){let f=`cannot decode field ${i.typeName}.${n.name} from JSON: ${ls(t)}`;throw d instanceof Error&&d.message.length>0&&(f+=`: ${d.message}`),new Error(f)}break}}function Ope(e,t){if(e===pe.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return _f(e,t,ba.BIGINT,!0).toString()}function _f(e,t,n,r){if(t===null)return r?Aa(e,n):kh;switch(e){case pe.DOUBLE:case pe.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==pe.FLOAT&&Sh(i),i;case pe.INT32:case pe.FIXED32:case pe.SFIXED32:case pe.SINT32:case pe.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==pe.UINT32||e==pe.FIXED32?gf(a):Nd(a),a;case pe.INT64:case pe.SFIXED64:case pe.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Hn.parse(t);return n?o.toString():o;case pe.FIXED64:case pe.UINT64:if(typeof t!="number"&&typeof t!="string")break;let c=Hn.uParse(t);return n?c.toString():c;case pe.BOOL:if(typeof t!="boolean")break;return t;case pe.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case pe.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return ub.dec(t)}throw new Error}function db(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:kh;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 Bh;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${ls(t)}`)}function Spe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function ZV(e,t,n){if(e.kind=="map"){mn(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()]=Uh(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()]=pb(a,c,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){mn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return Uh(e.T,t);case"enum":return pb(e.T,t,n.enumAsInteger);case"message":return Ch(e.T,t).toJson(n)}}function pb(e,t,n){var r;if(mn(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 Uh(e,t){switch(e){case pe.INT32:case pe.SFIXED32:case pe.SINT32:case pe.FIXED32:case pe.UINT32:return mn(typeof t=="number"),t;case pe.FLOAT:case pe.DOUBLE:return mn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case pe.STRING:return mn(typeof t=="string"),t;case pe.BOOL:return mn(typeof t=="boolean"),t;case pe.UINT64:case pe.FIXED64:case pe.INT64:case pe.SFIXED64:case pe.SINT64:return mn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case pe.BYTES:return mn(t instanceof Uint8Array),ub.enc(t)}}m();T();N();var Td=Symbol("@bufbuild/protobuf/unknown-fields"),tj={readUnknownFields:!0,readerFactory:e=>new Ph(e)},nj={writeUnknownFields:!0,writerFactory:()=>new Rh};function Dpe(e){return e?Object.assign(Object.assign({},tj),e):tj}function bpe(e){return e?Object.assign(Object.assign({},nj),e):nj}function sj(){return{makeReadOptions:Dpe,makeWriteOptions:bpe,listUnknownFields(e){var t;return(t=e[Td])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Td]},writeUnknownFields(e,t){let r=e[Td];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[Td])||(i[Td]=[]),i[Td].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=Rpe),a){let I=e[o];if(r==qn.LengthDelimited&&c!=pe.STRING&&c!=pe.BYTES){let w=t.uint32()+t.pos;for(;t.posRa(I,y)?I:new y(I));else{let I=o[i];y.fieldWrapper?y.typeName==="google.protobuf.BytesValue"?a[i]=Of(I):a[i]=I:a[i]=Ra(I,y)?I:new y(I)}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)=>ks(r.T,o,a[c]));case"enum":return i.every((o,c)=>ks(pe.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 ks(pe.INT32,i,a);case"scalar":return ks(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 ks(pe.INT32,i.value,a.value);case"scalar":return ks(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=>ks(pe.INT32,i[f],a[f]));case"scalar":let d=r.V.T;return c.every(f=>ks(d,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(qh);else if(i.kind=="map"){o=r[i.localName];for(let[c,l]of Object.entries(a))o[c]=qh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:qh(a.value)}:{case:void 0}:o=qh(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 qh(e){if(e===void 0)return e;if(Ra(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Of(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function cj(e,t,n){return{syntax:e,json:ej(),bin:sj(),util:Object.assign(Object.assign({},uj()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return xV(this,r,i,a)},makeEnum:kV,makeEnumType:rb,getEnumType:UV,makeExtension(r,i,a){return $V(this,r,i,a)}}}m();T();N();var Vh=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 fb(e,t){let n=pj(e);return t?n:Bpe(Cpe(n))}function lj(e){return fb(e,!1)}var dj=pj;function pj(e){let t=!1,n=[];for(let r=0;r`${e}$`,Cpe=e=>Lpe.has(e)?fj(e):e,Bpe=e=>wpe.has(e)?fj(e):e;var jh=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=lj(t)}addField(t){mn(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 Vh(e,t=>mj(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]=Aa(t.T,t.L);break;case"message":break}}});var Ed;(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"})(Ed||(Ed={}));C.util.setEnumType(Ed,"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 xs;(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"})(xs||(xs={}));C.util.setEnumType(xs,"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 qs;(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"})(qs||(qs={}));C.util.setEnumType(qs,"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"}]);var Oj=_s(Oe(),1);m();T();N();var mb;(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"})(mb||(mb={}));C.util.setEnumType(mb,"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 Gc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(Gc||(Gc={}));C.util.setEnumType(Gc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var Bu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(Bu||(Bu={}));C.util.setEnumType(Bu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Sf;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Sf||(Sf={}));C.util.setEnumType(Sf,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var Df;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(Df||(Df={}));C.util.setEnumType(Df,"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 zo;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(zo||(zo={}));C.util.setEnumType(zo,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Uu;(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"})(Uu||(Uu={}));C.util.setEnumType(Uu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var $c;(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"})($c||($c={}));C.util.setEnumType($c,"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 Vs=class Vs extends we{constructor(n){super();_(this,"id","");_(this,"name","");_(this,"routingUrl","");C.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 C.util.equals(Vs,n,r)}};_(Vs,"runtime",C),_(Vs,"typeName","wg.cosmo.node.v1.Subgraph"),_(Vs,"fields",C.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 Kh=Vs,js=class js extends we{constructor(n){super();_(this,"configByFeatureFlagName",{});C.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 C.util.equals(js,n,r)}};_(js,"runtime",C),_(js,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),_(js,"fields",C.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:Tb}}]));var Nb=js,Ks=class Ks extends we{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);C.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 C.util.equals(Ks,n,r)}};_(Ks,"runtime",C),_(Ks,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),_(Ks,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:hd},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Kh,repeated:!0}]));var Tb=Ks,Gs=class Gs extends we{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);_(this,"featureFlagConfigs");_(this,"compatibilityVersion","");C.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 C.util.equals(Gs,n,r)}};_(Gs,"runtime",C),_(Gs,"typeName","wg.cosmo.node.v1.RouterConfig"),_(Gs,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:hd},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Kh,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:Nb,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var bf=Gs,$s=class $s extends we{constructor(n){super();_(this,"code",Ed.OK);_(this,"details");C.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 C.util.equals($s,n,r)}};_($s,"runtime",C),_($s,"typeName","wg.cosmo.node.v1.Response"),_($s,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:C.getEnumType(Ed)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var Eb=$s,Qs=class Qs extends we{constructor(n){super();_(this,"code",0);_(this,"message","");C.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 C.util.equals(Qs,n,r)}};_(Qs,"runtime",C),_(Qs,"typeName","wg.cosmo.node.v1.ResponseStatus"),_(Qs,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var Nj=Qs,Ys=class Ys extends we{constructor(n){super();_(this,"accountLimits");_(this,"graphPublicKey","");C.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 C.util.equals(Ys,n,r)}};_(Ys,"runtime",C),_(Ys,"typeName","wg.cosmo.node.v1.RegistrationInfo"),_(Ys,"fields",C.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:yb},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var hb=Ys,Js=class Js extends we{constructor(n){super();_(this,"traceSamplingRate",0);C.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 C.util.equals(Js,n,r)}};_(Js,"runtime",C),_(Js,"typeName","wg.cosmo.node.v1.AccountLimits"),_(Js,"fields",C.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var yb=Js,Hs=class Hs extends we{constructor(t){super(),C.util.initPartial(t,this)}static fromBinary(t,n){return new Hs().fromBinary(t,n)}static fromJson(t,n){return new Hs().fromJson(t,n)}static fromJsonString(t,n){return new Hs().fromJsonString(t,n)}static equals(t,n){return C.util.equals(Hs,t,n)}};_(Hs,"runtime",C),_(Hs,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),_(Hs,"fields",C.util.newFieldList(()=>[]));var Tj=Hs,zs=class zs extends we{constructor(n){super();_(this,"response");_(this,"registrationInfo");C.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 C.util.equals(zs,n,r)}};_(zs,"runtime",C),_(zs,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),_(zs,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:Eb},{no:2,name:"registrationInfo",kind:"message",T:hb,opt:!0}]));var Ej=zs,Ws=class Ws extends we{constructor(n){super();_(this,"defaultFlushInterval",Hn.zero);_(this,"datasourceConfigurations",[]);_(this,"fieldConfigurations",[]);_(this,"graphqlSchema","");_(this,"typeConfigurations",[]);_(this,"stringStorage",{});_(this,"graphqlClientSchema");C.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 C.util.equals(Ws,n,r)}};_(Ws,"runtime",C),_(Ws,"typeName","wg.cosmo.node.v1.EngineConfiguration"),_(Ws,"fields",C.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Af,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:Ff,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:Ib,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 hd=Ws,Xs=class Xs extends we{constructor(n){super();_(this,"kind",Bu.STATIC);_(this,"rootNodes",[]);_(this,"childNodes",[]);_(this,"overrideFieldPathFromAlias",!1);_(this,"customGraphql");_(this,"customStatic");_(this,"directives",[]);_(this,"requestTimeoutSeconds",Hn.zero);_(this,"id","");_(this,"keys",[]);_(this,"provides",[]);_(this,"requires",[]);_(this,"customEvents");_(this,"entityInterfaces",[]);_(this,"interfaceObjects",[]);C.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 C.util.equals(Xs,n,r)}};_(Xs,"runtime",C),_(Xs,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),_(Xs,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Bu)},{no:2,name:"root_nodes",kind:"message",T:yd,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:yd,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:wb},{no:7,name:"directives",kind:"message",T:Lb,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:Kc,repeated:!0},{no:11,name:"provides",kind:"message",T:Kc,repeated:!0},{no:12,name:"requires",kind:"message",T:Kc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:Yc},{no:14,name:"entity_interfaces",kind:"message",T:Id,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:Id,repeated:!0}]));var Af=Xs,Zs=class Zs extends we{constructor(n){super();_(this,"name","");_(this,"sourceType",Gc.OBJECT_FIELD);C.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 C.util.equals(Zs,n,r)}};_(Zs,"runtime",C),_(Zs,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),_(Zs,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:C.getEnumType(Gc)}]));var Rf=Zs,eo=class eo extends we{constructor(n){super();_(this,"requiredAndScopes",[]);C.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 C.util.equals(eo,n,r)}};_(eo,"runtime",C),_(eo,"typeName","wg.cosmo.node.v1.Scopes"),_(eo,"fields",C.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Qc=eo,to=class to extends we{constructor(n){super();_(this,"requiresAuthentication",!1);_(this,"requiredOrScopes",[]);_(this,"requiredOrScopesByOr",[]);C.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 C.util.equals(to,n,r)}};_(to,"runtime",C),_(to,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),_(to,"fields",C.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Qc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Qc,repeated:!0}]));var Pf=to,no=class no extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"argumentsConfiguration",[]);_(this,"authorizationConfiguration");_(this,"subscriptionFilterCondition");C.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 C.util.equals(no,n,r)}};_(no,"runtime",C),_(no,"typeName","wg.cosmo.node.v1.FieldConfiguration"),_(no,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:Rf,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Pf},{no:5,name:"subscription_filter_condition",kind:"message",T:ku,opt:!0}]));var Ff=no,ro=class ro extends we{constructor(n){super();_(this,"typeName","");_(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ro().fromBinary(n,r)}static fromJson(n,r){return new ro().fromJson(n,r)}static fromJsonString(n,r){return new ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ro,n,r)}};_(ro,"runtime",C),_(ro,"typeName","wg.cosmo.node.v1.TypeConfiguration"),_(ro,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Ib=ro,io=class io extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldNames",[]);_(this,"externalFieldNames",[]);_(this,"requireFetchReasonsFieldNames",[]);C.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 C.util.equals(io,n,r)}};_(io,"runtime",C),_(io,"typeName","wg.cosmo.node.v1.TypeField"),_(io,"fields",C.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},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var yd=io,ao=class ao extends we{constructor(n){super();_(this,"fieldName","");_(this,"typeName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ao().fromBinary(n,r)}static fromJson(n,r){return new ao().fromJson(n,r)}static fromJsonString(n,r){return new ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ao,n,r)}};_(ao,"runtime",C),_(ao,"typeName","wg.cosmo.node.v1.FieldCoordinates"),_(ao,"fields",C.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var wf=ao,so=class so extends we{constructor(n){super();_(this,"fieldCoordinatesPath",[]);_(this,"fieldPath",[]);C.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 C.util.equals(so,n,r)}};_(so,"runtime",C),_(so,"typeName","wg.cosmo.node.v1.FieldSetCondition"),_(so,"fields",C.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:wf,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var Lf=so,oo=class oo extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"selectionSet","");_(this,"disableEntityResolver",!1);_(this,"conditions",[]);C.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 C.util.equals(oo,n,r)}};_(oo,"runtime",C),_(oo,"typeName","wg.cosmo.node.v1.RequiredField"),_(oo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:Lf,repeated:!0}]));var Kc=oo,uo=class uo extends we{constructor(n){super();_(this,"interfaceTypeName","");_(this,"concreteTypeNames",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new uo().fromBinary(n,r)}static fromJson(n,r){return new uo().fromJson(n,r)}static fromJsonString(n,r){return new uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(uo,n,r)}};_(uo,"runtime",C),_(uo,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),_(uo,"fields",C.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var Id=uo,co=class co extends we{constructor(n){super();_(this,"url");_(this,"method",$c.GET);_(this,"header",{});_(this,"body");_(this,"query",[]);_(this,"urlEncodeBody",!1);_(this,"mtls");_(this,"baseUrl");_(this,"path");_(this,"httpProxyUrl");C.util.initPartial(n,this)}static fromBinary(n,r){return new co().fromBinary(n,r)}static fromJson(n,r){return new co().fromJson(n,r)}static fromJsonString(n,r){return new co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(co,n,r)}};_(co,"runtime",C),_(co,"typeName","wg.cosmo.node.v1.FetchConfiguration"),_(co,"fields",C.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:Jr},{no:2,name:"method",kind:"enum",T:C.getEnumType($c)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:Bb}},{no:4,name:"body",kind:"message",T:Jr},{no:5,name:"query",kind:"message",T:Cb,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:Ub},{no:9,name:"base_url",kind:"message",T:Jr},{no:10,name:"path",kind:"message",T:Jr},{no:11,name:"http_proxy_url",kind:"message",T:Jr,opt:!0}]));var gb=co,lo=class lo extends we{constructor(n){super();_(this,"statusCode",Hn.zero);_(this,"typeName","");_(this,"injectStatusCodeIntoBody",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new lo().fromBinary(n,r)}static fromJson(n,r){return new lo().fromJson(n,r)}static fromJsonString(n,r){return new lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(lo,n,r)}};_(lo,"runtime",C),_(lo,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),_(lo,"fields",C.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var hj=lo,po=class po extends we{constructor(n){super();_(this,"fetch");_(this,"subscription");_(this,"federation");_(this,"upstreamSchema");_(this,"customScalarTypeFields",[]);_(this,"grpc");C.util.initPartial(n,this)}static fromBinary(n,r){return new po().fromBinary(n,r)}static fromJson(n,r){return new po().fromJson(n,r)}static fromJsonString(n,r){return new po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(po,n,r)}};_(po,"runtime",C),_(po,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),_(po,"fields",C.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:gb},{no:2,name:"subscription",kind:"message",T:kb},{no:3,name:"federation",kind:"message",T:Mb},{no:4,name:"upstream_schema",kind:"message",T:qf},{no:6,name:"custom_scalar_type_fields",kind:"message",T:xb,repeated:!0},{no:7,name:"grpc",kind:"message",T:gd}]));var Cf=po,fo=class fo extends we{constructor(n){super();_(this,"mapping");_(this,"protoSchema","");_(this,"plugin");C.util.initPartial(n,this)}static fromBinary(n,r){return new fo().fromBinary(n,r)}static fromJson(n,r){return new fo().fromJson(n,r)}static fromJsonString(n,r){return new fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(fo,n,r)}};_(fo,"runtime",C),_(fo,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),_(fo,"fields",C.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:vb},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:Bf}]));var gd=fo,mo=class mo extends we{constructor(n){super();_(this,"repository","");_(this,"reference","");C.util.initPartial(n,this)}static fromBinary(n,r){return new mo().fromBinary(n,r)}static fromJson(n,r){return new mo().fromJson(n,r)}static fromJsonString(n,r){return new mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(mo,n,r)}};_(mo,"runtime",C),_(mo,"typeName","wg.cosmo.node.v1.ImageReference"),_(mo,"fields",C.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var _b=mo,No=class No extends we{constructor(n){super();_(this,"name","");_(this,"version","");_(this,"imageReference");C.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 C.util.equals(No,n,r)}};_(No,"runtime",C),_(No,"typeName","wg.cosmo.node.v1.PluginConfiguration"),_(No,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:_b,opt:!0}]));var Bf=No,To=class To extends we{constructor(n){super();_(this,"enabled",!1);C.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 C.util.equals(To,n,r)}};_(To,"runtime",C),_(To,"typeName","wg.cosmo.node.v1.SSLConfiguration"),_(To,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var yj=To,Eo=class Eo extends we{constructor(n){super();_(this,"version",0);_(this,"service","");_(this,"operationMappings",[]);_(this,"entityMappings",[]);_(this,"typeFieldMappings",[]);_(this,"enumMappings",[]);_(this,"resolveMappings",[]);C.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 C.util.equals(Eo,n,r)}};_(Eo,"runtime",C),_(Eo,"typeName","wg.cosmo.node.v1.GRPCMapping"),_(Eo,"fields",C.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:Db,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:bb,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:Ab,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:Pb,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:Ob,repeated:!0}]));var vb=Eo,ho=class ho extends we{constructor(n){super();_(this,"type",Sf.UNSPECIFIED);_(this,"lookupMapping");_(this,"rpc","");_(this,"request","");_(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ho().fromBinary(n,r)}static fromJson(n,r){return new ho().fromJson(n,r)}static fromJsonString(n,r){return new ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ho,n,r)}};_(ho,"runtime",C),_(ho,"typeName","wg.cosmo.node.v1.LookupMapping"),_(ho,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(Sf)},{no:2,name:"lookup_mapping",kind:"message",T:Sb},{no:3,name:"rpc",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var Ob=ho,yo=class yo extends we{constructor(n){super();_(this,"type","");_(this,"fieldMapping");C.util.initPartial(n,this)}static fromBinary(n,r){return new yo().fromBinary(n,r)}static fromJson(n,r){return new yo().fromJson(n,r)}static fromJsonString(n,r){return new yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(yo,n,r)}};_(yo,"runtime",C),_(yo,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),_(yo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:Gh}]));var Sb=yo,Io=class Io extends we{constructor(n){super();_(this,"type",Df.UNSPECIFIED);_(this,"original","");_(this,"mapped","");_(this,"request","");_(this,"response","");C.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 C.util.equals(Io,n,r)}};_(Io,"runtime",C),_(Io,"typeName","wg.cosmo.node.v1.OperationMapping"),_(Io,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(Df)},{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 Db=Io,go=class go extends we{constructor(n){super();_(this,"typeName","");_(this,"kind","");_(this,"key","");_(this,"rpc","");_(this,"request","");_(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new go().fromBinary(n,r)}static fromJson(n,r){return new go().fromJson(n,r)}static fromJsonString(n,r){return new go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(go,n,r)}};_(go,"runtime",C),_(go,"typeName","wg.cosmo.node.v1.EntityMapping"),_(go,"fields",C.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 bb=go,_o=class _o extends we{constructor(n){super();_(this,"type","");_(this,"fieldMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new _o().fromBinary(n,r)}static fromJson(n,r){return new _o().fromJson(n,r)}static fromJsonString(n,r){return new _o().fromJsonString(n,r)}static equals(n,r){return C.util.equals(_o,n,r)}};_(_o,"runtime",C),_(_o,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),_(_o,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:Gh,repeated:!0}]));var Ab=_o,vo=class vo extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");_(this,"argumentMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new vo().fromBinary(n,r)}static fromJson(n,r){return new vo().fromJson(n,r)}static fromJsonString(n,r){return new vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(vo,n,r)}};_(vo,"runtime",C),_(vo,"typeName","wg.cosmo.node.v1.FieldMapping"),_(vo,"fields",C.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:Rb,repeated:!0}]));var Gh=vo,Oo=class Oo extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");C.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 C.util.equals(Oo,n,r)}};_(Oo,"runtime",C),_(Oo,"typeName","wg.cosmo.node.v1.ArgumentMapping"),_(Oo,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var Rb=Oo,So=class So extends we{constructor(n){super();_(this,"type","");_(this,"values",[]);C.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 C.util.equals(So,n,r)}};_(So,"runtime",C),_(So,"typeName","wg.cosmo.node.v1.EnumMapping"),_(So,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:Fb,repeated:!0}]));var Pb=So,Do=class Do extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");C.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 C.util.equals(Do,n,r)}};_(Do,"runtime",C),_(Do,"typeName","wg.cosmo.node.v1.EnumValueMapping"),_(Do,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var Fb=Do,bo=class bo extends we{constructor(n){super();_(this,"consumerName","");_(this,"streamName","");_(this,"consumerInactiveThreshold",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new bo().fromBinary(n,r)}static fromJson(n,r){return new bo().fromJson(n,r)}static fromJsonString(n,r){return new bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(bo,n,r)}};_(bo,"runtime",C),_(bo,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),_(bo,"fields",C.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 Uf=bo,Ao=class Ao extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"subjects",[]);_(this,"streamConfiguration");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ao,n,r)}};_(Ao,"runtime",C),_(Ao,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),_(Ao,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Wo},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:Uf}]));var kf=Ao,Ro=class Ro extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"topics",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ro,n,r)}};_(Ro,"runtime",C),_(Ro,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),_(Ro,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Wo},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var Mf=Ro,Po=class Po extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"channels",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Po,n,r)}};_(Po,"runtime",C),_(Po,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),_(Po,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Wo},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var xf=Po,Fo=class Fo extends we{constructor(n){super();_(this,"providerId","");_(this,"type",zo.PUBLISH);_(this,"typeName","");_(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Fo,n,r)}};_(Fo,"runtime",C),_(Fo,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),_(Fo,"fields",C.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:C.getEnumType(zo)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var Wo=Fo,wo=class wo extends we{constructor(n){super();_(this,"nats",[]);_(this,"kafka",[]);_(this,"redis",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(wo,n,r)}};_(wo,"runtime",C),_(wo,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),_(wo,"fields",C.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:kf,repeated:!0},{no:2,name:"kafka",kind:"message",T:Mf,repeated:!0},{no:3,name:"redis",kind:"message",T:xf,repeated:!0}]));var Yc=wo,Lo=class Lo extends we{constructor(n){super();_(this,"data");C.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Lo,n,r)}};_(Lo,"runtime",C),_(Lo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),_(Lo,"fields",C.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:Jr}]));var wb=Lo,Co=class Co extends we{constructor(n){super();_(this,"kind",Uu.STATIC_CONFIGURATION_VARIABLE);_(this,"staticVariableContent","");_(this,"environmentVariableName","");_(this,"environmentVariableDefaultValue","");_(this,"placeholderVariableName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Co,n,r)}};_(Co,"runtime",C),_(Co,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),_(Co,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Uu)},{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 Jr=Co,Bo=class Bo extends we{constructor(n){super();_(this,"directiveName","");_(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Bo().fromBinary(n,r)}static fromJson(n,r){return new Bo().fromJson(n,r)}static fromJsonString(n,r){return new Bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Bo,n,r)}};_(Bo,"runtime",C),_(Bo,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),_(Bo,"fields",C.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var Lb=Bo,Uo=class Uo extends we{constructor(n){super();_(this,"name","");_(this,"value","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Uo().fromBinary(n,r)}static fromJson(n,r){return new Uo().fromJson(n,r)}static fromJsonString(n,r){return new Uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Uo,n,r)}};_(Uo,"runtime",C),_(Uo,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),_(Uo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var Cb=Uo,ko=class ko extends we{constructor(n){super();_(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ko().fromBinary(n,r)}static fromJson(n,r){return new ko().fromJson(n,r)}static fromJsonString(n,r){return new ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ko,n,r)}};_(ko,"runtime",C),_(ko,"typeName","wg.cosmo.node.v1.HTTPHeader"),_(ko,"fields",C.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:Jr,repeated:!0}]));var Bb=ko,Mo=class Mo extends we{constructor(n){super();_(this,"key");_(this,"cert");_(this,"insecureSkipVerify",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new Mo().fromBinary(n,r)}static fromJson(n,r){return new Mo().fromJson(n,r)}static fromJsonString(n,r){return new Mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Mo,n,r)}};_(Mo,"runtime",C),_(Mo,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),_(Mo,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:Jr},{no:2,name:"cert",kind:"message",T:Jr},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var Ub=Mo,xo=class xo extends we{constructor(n){super();_(this,"enabled",!1);_(this,"url");_(this,"useSSE");_(this,"protocol");_(this,"websocketSubprotocol");C.util.initPartial(n,this)}static fromBinary(n,r){return new xo().fromBinary(n,r)}static fromJson(n,r){return new xo().fromJson(n,r)}static fromJsonString(n,r){return new xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(xo,n,r)}};_(xo,"runtime",C),_(xo,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),_(xo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:Jr},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:C.getEnumType(xs),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:C.getEnumType(qs),opt:!0}]));var kb=xo,qo=class qo extends we{constructor(n){super();_(this,"enabled",!1);_(this,"serviceSdl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new qo().fromBinary(n,r)}static fromJson(n,r){return new qo().fromJson(n,r)}static fromJsonString(n,r){return new qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(qo,n,r)}};_(qo,"runtime",C),_(qo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),_(qo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var Mb=qo,Vo=class Vo extends we{constructor(n){super();_(this,"key","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Vo().fromBinary(n,r)}static fromJson(n,r){return new Vo().fromJson(n,r)}static fromJsonString(n,r){return new Vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Vo,n,r)}};_(Vo,"runtime",C),_(Vo,"typeName","wg.cosmo.node.v1.InternedString"),_(Vo,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var qf=Vo,jo=class jo extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new jo().fromBinary(n,r)}static fromJson(n,r){return new jo().fromJson(n,r)}static fromJsonString(n,r){return new jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(jo,n,r)}};_(jo,"runtime",C),_(jo,"typeName","wg.cosmo.node.v1.SingleTypeField"),_(jo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var xb=jo,Ko=class Ko extends we{constructor(n){super();_(this,"fieldPath",[]);_(this,"json","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ko().fromBinary(n,r)}static fromJson(n,r){return new Ko().fromJson(n,r)}static fromJsonString(n,r){return new Ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ko,n,r)}};_(Ko,"runtime",C),_(Ko,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),_(Ko,"fields",C.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var Vf=Ko,ra=class ra extends we{constructor(n){super();_(this,"and",[]);_(this,"in");_(this,"not");_(this,"or",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ra().fromBinary(n,r)}static fromJson(n,r){return new ra().fromJson(n,r)}static fromJsonString(n,r){return new ra().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ra,n,r)}};_(ra,"runtime",C),_(ra,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),_(ra,"fields",C.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:ra,repeated:!0},{no:2,name:"in",kind:"message",T:Vf,opt:!0},{no:3,name:"not",kind:"message",T:ra,opt:!0},{no:4,name:"or",kind:"message",T:ra,repeated:!0}]));var ku=ra,Go=class Go extends we{constructor(n){super();_(this,"operations",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Go().fromBinary(n,r)}static fromJson(n,r){return new Go().fromJson(n,r)}static fromJsonString(n,r){return new Go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Go,n,r)}};_(Go,"runtime",C),_(Go,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),_(Go,"fields",C.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:qb,repeated:!0}]));var Ij=Go,$o=class $o extends we{constructor(n){super();_(this,"request");_(this,"client");C.util.initPartial(n,this)}static fromBinary(n,r){return new $o().fromBinary(n,r)}static fromJson(n,r){return new $o().fromJson(n,r)}static fromJsonString(n,r){return new $o().fromJsonString(n,r)}static equals(n,r){return C.util.equals($o,n,r)}};_($o,"runtime",C),_($o,"typeName","wg.cosmo.node.v1.Operation"),_($o,"fields",C.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:Vb},{no:2,name:"client",kind:"message",T:Gb}]));var qb=$o,Qo=class Qo extends we{constructor(n){super();_(this,"operationName","");_(this,"query","");_(this,"extensions");C.util.initPartial(n,this)}static fromBinary(n,r){return new Qo().fromBinary(n,r)}static fromJson(n,r){return new Qo().fromJson(n,r)}static fromJsonString(n,r){return new Qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qo,n,r)}};_(Qo,"runtime",C),_(Qo,"typeName","wg.cosmo.node.v1.OperationRequest"),_(Qo,"fields",C.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:jb}]));var Vb=Qo,Yo=class Yo extends we{constructor(n){super();_(this,"persistedQuery");C.util.initPartial(n,this)}static fromBinary(n,r){return new Yo().fromBinary(n,r)}static fromJson(n,r){return new Yo().fromJson(n,r)}static fromJsonString(n,r){return new Yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Yo,n,r)}};_(Yo,"runtime",C),_(Yo,"typeName","wg.cosmo.node.v1.Extension"),_(Yo,"fields",C.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:Kb}]));var jb=Yo,Jo=class Jo extends we{constructor(n){super();_(this,"sha256Hash","");_(this,"version",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Jo().fromBinary(n,r)}static fromJson(n,r){return new Jo().fromJson(n,r)}static fromJsonString(n,r){return new Jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Jo,n,r)}};_(Jo,"runtime",C),_(Jo,"typeName","wg.cosmo.node.v1.PersistedQuery"),_(Jo,"fields",C.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var Kb=Jo,Ho=class Ho extends we{constructor(n){super();_(this,"name","");_(this,"version","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ho().fromBinary(n,r)}static fromJson(n,r){return new Ho().fromJson(n,r)}static fromJsonString(n,r){return new Ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ho,n,r)}};_(Ho,"runtime",C),_(Ho,"typeName","wg.cosmo.node.v1.ClientInfo"),_(Ho,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var Gb=Ho;m();T();N();function $b(e){return new Error(`Normalization failed to return a ${e}.`)}function gj(e){return new Error(`Invalid router compatibility version "${e}".`)}m();T();N();var _d=_s(hh(),1);function Upe(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 wf({fieldName:a[1],typeName:a[0]}))}t.push(new Lf({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function Qb(e,t,n){if(e)for(let r of e){let i=Upe(r);t.push(new Kc(M(M({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function Yb(e){switch(e){case"publish":return zo.PUBLISH;case"request":return zo.REQUEST;case"subscribe":return zo.SUBSCRIBE}}function _j(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new Yc({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new yd({fieldNames:a,typeName:i});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.requireFetchReasonsFieldNames&&r.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...r.requireFetchReasonsFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let f=new Id({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(f):t.entityInterfaces.push(f)}Qb(r.keys,t.keys,i),Qb(r.provides,t.provides,i),Qb(r.requires,t.requires,i);let c=[],l=[],d=[];for(let f of(n=r.events)!=null?n:[])switch(f.providerType){case _d.PROVIDER_TYPE_KAFKA:{l.push(new Mf({engineEventConfiguration:new Wo({fieldName:f.fieldName,providerId:f.providerId,type:Yb(f.type),typeName:i}),topics:f.topics}));break}case _d.PROVIDER_TYPE_NATS:{c.push(new kf(M({engineEventConfiguration:new Wo({fieldName:f.fieldName,providerId:f.providerId,type:Yb(f.type),typeName:i}),subjects:f.subjects},f.streamConfiguration?{streamConfiguration:new Uf({consumerInactiveThreshold:f.streamConfiguration.consumerInactiveThreshold,consumerName:f.streamConfiguration.consumerName,streamName:f.streamConfiguration.streamName})}:{})));break}case _d.PROVIDER_TYPE_REDIS:{d.push(new xf({engineEventConfiguration:new Wo({fieldName:f.fieldName,providerId:f.providerId,type:Yb(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(...d)}return t}function vj(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(f=>new Rf({name:f,sourceType:Gc.FIELD_ARGUMENT})),o=new Ff({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),c=((n=i.requiredScopes)==null?void 0:n.map(f=>new Qc({requiredAndScopes:f})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(f=>new Qc({requiredAndScopes:f})))||[],d=c.length>0;if((i.requiresAuthentication||d)&&(o.authorizationConfiguration=new Pf({requiresAuthentication:i.requiresAuthentication||d,requiredOrScopes:c,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let f=new ku;$h(f,i.subscriptionFilterCondition),o.subscriptionFilterCondition=f}t.push(o)}return t}function $h(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new ku;$h(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new Vf({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new ku,$h(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new ku;$h(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}var Jc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Jc||(Jc={}));var kpe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new qf({key:n})},Mpe=e=>{switch(e){case"ws":return xs.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return xs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return xs.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},xpe=e=>{switch(e){case"auto":return qs.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return qs.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return qs.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},Sj=function(e){if(!vd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw gj(e.routerCompatibilityVersion);let t=new hd({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw $b("ConfigurationDataByTypeName");if(!n.schema)throw $b("GraphQLSchema");let r={enabled:!0},i=kpe(t,wV((0,Oj.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:c,interfaceObjects:l,keys:d,provides:f,requires:y,rootNodes:I}=_j(n.configurationDataByTypeName),v;switch(n.kind){case Jc.Standard:{r.enabled=!0,r.protocol=Mpe(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=xpe(n.websocketSubprotocol||"auto"),r.url=new Jr({kind:Uu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Jc.Plugin:{v=new gd({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new Bf({name:n.name,version:n.version,imageReference:n.imageReference})});break}case Jc.GRPC:{v=new gd({mapping:n.mapping,protoSchema:n.protoSchema});break}}let w,U,j;if(c.kafka.length>0||c.nats.length>0||c.redis.length>0){w=Bu.PUBSUB,j=new Yc({kafka:c.kafka,nats:c.nats,redis:c.redis});let re=ue=>vd.ROOT_TYPE_NAMES.has(ue.typeName),ne=0,me=0;for(;ne({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${vd.COMPOSITION_VERSION}`})};m();T();N();var zc=_s(Oe());function Dj(e){let t;try{t=(0,zc.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 qpe(e){let t=(0,Hc.federateSubgraphs)({subgraphs:e.map(Dj),version:Hc.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,zc.print)(t.federatedGraphAST)}}function Vpe(e){let t=(0,Hc.federateSubgraphs)({subgraphs:e.map(Dj),version:Hc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return Sj({federatedClientSDL:(0,zc.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,zc.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Hc.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,c=a==null?void 0:a.configurationDataByTypeName;return{kind:Jc.Standard,id:`${i}`,name:r.name,url:ZD(r.url),sdl:r.schema,subscriptionUrl:ZD((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:c}})}).toJsonString()}return Fm(jpe);})(); +}`;var yt=wR(function(){return Qt(L,$e+"return "+Te).apply(e,k)});if(yt.source=Te,Ay(yt))throw yt;return yt}function wJ(s){return zt(s).toLowerCase()}function LJ(s){return zt(s).toUpperCase()}function CJ(s,u,f){if(s=zt(s),s&&(f||u===e))return V0(s);if(!s||!(u=ci(u)))return s;var h=na(s),O=na(u),L=j0(h,O),k=K0(h,O)+1;return iu(h,L,k).join("")}function BJ(s,u,f){if(s=zt(s),s&&(f||u===e))return s.slice(0,$0(s)+1);if(!s||!(u=ci(u)))return s;var h=na(s),O=K0(h,na(u))+1;return iu(h,0,O).join("")}function UJ(s,u,f){if(s=zt(s),s&&(f||u===e))return s.replace(Ah,"");if(!s||!(u=ci(u)))return s;var h=na(s),O=j0(h,na(u));return iu(h,O).join("")}function kJ(s,u){var f=rt,h=Z;if(Dn(u)){var O="separator"in u?u.separator:O;f="length"in u?Et(u.length):f,h="omission"in u?ci(u.omission):h}s=zt(s);var L=s.length;if(Xc(s)){var k=na(s);L=k.length}if(f>=L)return s;var V=f-Zc(h);if(V<1)return h;var J=k?iu(k,0,V).join(""):s.slice(0,V);if(O===e)return J+h;if(k&&(V+=J.length-V),Ry(O)){if(s.slice(V).search(O)){var le,de=J;for(O.global||(O=$h(O.source,zt(c0.exec(O))+"g")),O.lastIndex=0;le=O.exec(de);)var Te=le.index;J=J.slice(0,Te===e?V:Te)}}else if(s.indexOf(ci(O),V)!=V){var be=J.lastIndexOf(O);be>-1&&(J=J.slice(0,be))}return J+h}function MJ(s){return s=zt(s),s&&Hj.test(s)?s.replace(s0,pG):s}var xJ=al(function(s,u,f){return s+(f?" ":"")+u.toUpperCase()}),wy=LA("toUpperCase");function FR(s,u,f){return s=zt(s),u=f?e:u,u===e?uG(s)?TG(s):ZK(s):s.match(u)||[]}var wR=It(function(s,u){try{return oi(s,e,u)}catch(f){return Ay(f)?f:new dt(f)}}),qJ=ms(function(s,u){return gi(u,function(f){f=Ca(f),fs(s,f,Dy(s[f],s))}),s});function VJ(s){var u=s==null?0:s.length,f=We();return s=u?vn(s,function(h){if(typeof h[1]!="function")throw new _i(i);return[f(h[0]),h[1]]}):[],It(function(h){for(var O=-1;++OTn)return[];var f=xn,h=_r(s,xn);u=We(u),s-=xn;for(var O=jh(h,u);++f0||u<0)?new bt(f):(s<0?f=f.takeRight(-s):s&&(f=f.drop(s)),u!==e&&(u=Et(u),f=u<0?f.dropRight(-u):f.take(u-s)),f)},bt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},bt.prototype.toArray=function(){return this.take(xn)},wa(bt.prototype,function(s,u){var f=/^(?:filter|find|map|reject)|While$/.test(u),h=/^(?:head|last)$/.test(u),O=F[h?"take"+(u=="last"?"Right":""):u],L=h||/^find/.test(u);O&&(F.prototype[u]=function(){var k=this.__wrapped__,V=h?[1]:arguments,J=k instanceof bt,le=V[0],de=J||ft(k),Te=function(St){var Ft=O.apply(F,Wo([St],V));return h&&be?Ft[0]:Ft};de&&f&&typeof le=="function"&&le.length!=1&&(J=de=!1);var be=this.__chain__,$e=!!this.__actions__.length,Ze=L&&!be,yt=J&&!$e;if(!L&&de){k=yt?k:new bt(this);var et=s.apply(k,V);return et.__actions__.push({func:_m,args:[Te],thisArg:e}),new vi(et,be)}return Ze&&yt?s.apply(this,V):(et=this.thru(Te),Ze?h?et.value()[0]:et.value():et)})}),gi(["pop","push","shift","sort","splice","unshift"],function(s){var u=Jp[s],f=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",h=/^(?:pop|shift)$/.test(s);F.prototype[s]=function(){var O=arguments;if(h&&!this.__chain__){var L=this.value();return u.apply(ft(L)?L:[],O)}return this[f](function(k){return u.apply(ft(k)?k:[],O)})}}),wa(bt.prototype,function(s,u){var f=F[u];if(f){var h=f.name+"";on.call(nl,h)||(nl[h]=[]),nl[h].push({name:u,func:f})}}),nl[Nm(e,U).name]=[{name:"wrapper",func:e}],bt.prototype.clone=MG,bt.prototype.reverse=xG,bt.prototype.value=qG,F.prototype.at=N2,F.prototype.chain=T2,F.prototype.commit=E2,F.prototype.next=h2,F.prototype.plant=I2,F.prototype.reverse=g2,F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=_2,F.prototype.first=F.prototype.head,gd&&(F.prototype[gd]=y2),F},Zo=EG();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(lr._=Zo,define(function(){return Zo})):ku?((ku.exports=Zo)._=Zo,Ch._=Zo):lr._=Zo}).call(ud)});var hV=w(qc=>{"use strict";m();T();N();Object.defineProperty(qc,"__esModule",{value:!0});qc.FederationFactory=void 0;qc.federateSubgraphs=Tfe;qc.federateSubgraphsWithContracts=Efe;qc.federateSubgraphsContract=hfe;var Re=Oe(),mV=yu(),Kr=Ar(),Pe=qi(),Mc=sT(),xc=nd(),Gr=lp(),YE=rE(),hp=Iu(),ffe=nb(),pfe=dp(),NV=Uf(),ge=Bl(),mfe=ab(),TV=pV(),cd=QE(),ve=sr(),JE=Fl(),Ne=Rr(),Nfe=fp(),Fu=kf(),zE,EV,HE=class{constructor({authorizationDataByParentTypeName:t,concreteTypeNamesByAbstractTypeName:n,disableResolvabilityValidation:r,entityDataByTypeName:i,entityInterfaceFederationDataByTypeName:a,fieldCoordsByNamedTypeName:o,internalGraph:c,internalSubgraphBySubgraphName:l,warnings:d}){Yu(this,zE);_(this,"authorizationDataByParentTypeName");_(this,"coordsByNamedTypeName",new Map);_(this,"disableResolvabilityValidation",!1);_(this,"directiveDefinitionByName",new Map);_(this,"clientDefinitions",[]);_(this,"currentSubgraphName","");_(this,"concreteTypeNamesByAbstractTypeName");_(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,"persistedDirectiveDefinitionByDirectiveName",new Map([[ve.AUTHENTICATED,Fu.AUTHENTICATED_DEFINITION],[ve.DEPRECATED,Fu.DEPRECATED_DEFINITION],[ve.INACCESSIBLE,Fu.INACCESSIBLE_DEFINITION],[ve.ONE_OF,Fu.ONE_OF_DEFINITION],[ve.REQUIRES_SCOPES,Fu.REQUIRES_SCOPES_DEFINITION],[ve.SEMANTIC_NON_NULL,Fu.SEMANTIC_NON_NULL_DEFINITION],[ve.TAG,Fu.TAG_DEFINITION]]));_(this,"potentialPersistedDirectiveDefinitionDataByDirectiveName",new Map);_(this,"referencedPersistedDirectiveNames",new Set);_(this,"routerDefinitions",[]);_(this,"subscriptionFilterDataByFieldPath",new Map);_(this,"tagNamesByCoords",new Map);_(this,"warnings");this.authorizationDataByParentTypeName=t,this.concreteTypeNamesByAbstractTypeName=n,this.disableResolvabilityValidation=r!=null?r:!1,this.entityDataByTypeName=i,this.entityInterfaceFederationDataByTypeName=a,this.fieldCoordsByNamedTypeName=o,this.internalGraph=c,this.internalSubgraphBySubgraphName=l,this.warnings=d}extractPersistedDirectives({data:t,directivesByName:n}){for(let[r,i]of n)if(this.persistedDirectiveDefinitionByDirectiveName.get(r)&&(this.referencedPersistedDirectiveNames.add(r),!(ve.AUTHORIZATION_DIRECTIVES.has(r)||i.length<1)))switch(r){case ve.DEPRECATED:{t.isDeprecated=!0,(0,ge.upsertDeprecatedDirective)(t,i[0]);break}case ve.TAG:{(0,ge.upsertTagDirectives)(t,i);break}default:{let o=t.directivesByDirectiveName.get(r);if(!o){t.directivesByDirectiveName.set(r,[...i]);break}if(ve.NON_REPEATABLE_PERSISTED_DIRECTIVES.has(r))break;o.push(...i)}}return t}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,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,c,ve.PARENT_DEFINITION_DATA);if(l.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){a.set(l.name,(0,Ne.kindToNodeType)(l.kind));continue}let d={invalidFieldImplementations:new Map,unimplementedFields:[]},p=!1;for(let[E,I]of l.fieldDataByName){let v=!1,A=t.fieldDataByName.get(E);if(!A){p=!0,d.unimplementedFields.push(E);continue}let U={invalidAdditionalArguments:new Set,invalidImplementedArguments:[],isInaccessible:!1,originalResponseType:(0,YE.printTypeNode)(I.node.type),unimplementedArguments:new Set};(0,ge.isTypeValidImplementation)(I.node.type,A.node.type,this.concreteTypeNamesByAbstractTypeName)||(p=!0,v=!0,U.implementedResponseType=(0,YE.printTypeNode)(A.node.type));let j=new Set;for(let[G,re]of I.argumentDataByName){let ne=re.node;j.add(G);let me=(o=A.argumentDataByName.get(G))==null?void 0:o.node;if(!me){p=!0,v=!0,U.unimplementedArguments.add(G);continue}let ue=(0,YE.printTypeNode)(me.type),Ae=(0,YE.printTypeNode)(ne.type);Ae!==ue&&(p=!0,v=!0,U.invalidImplementedArguments.push({actualType:ue,argumentName:G,expectedType:Ae}))}for(let[G,re]of A.argumentDataByName){let ne=re.node;j.has(G)||ne.type.kind===Re.Kind.NON_NULL_TYPE&&(p=!0,v=!0,U.invalidAdditionalArguments.add(G))}!r&&A.isInaccessible&&!I.isInaccessible&&(p=!0,v=!0,U.isInaccessible=!0),v&&d.invalidFieldImplementations.set(E,U)}p&&i.set(c,d)}return a.size>0&&this.errors.push((0,Pe.invalidImplementedTypeError)(t.name,a)),i.size>0&&this.errors.push((0,Pe.invalidInterfaceImplementationError)(t.node.name.value,(0,Ne.kindToNodeType)(t.kind),i)),n}addValidPrimaryKeyTargetsToEntityData(t){var p;let n=this.entityDataByTypeName.get(t);if(!n)return;let r=(0,Ne.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,Pe.incompatibleParentKindFatalError)(n.typeName,Re.Kind.OBJECT_TYPE_DEFINITION,(a==null?void 0:a.kind)||Re.Kind.NULL);let o=r.configurationDataByTypeName.get(n.typeName);if(!o)return;let c=[],l=this.internalGraph.nodeByNodeName.get(`${this.currentSubgraphName}.${n.typeName}`);(0,Mc.validateImplicitFieldSets)({conditionalFieldDataByCoords:r.conditionalFieldDataByCoordinates,currentSubgraphName:this.currentSubgraphName,entityData:n,implicitKeys:c,objectData:a,parentDefinitionDataByTypeName:i,graphNode:l});for(let[E,I]of this.entityInterfaceFederationDataByTypeName){if(!((p=I.concreteTypeNames)!=null&&p.has(n.typeName)))continue;let v=this.entityDataByTypeName.get(E);v&&(0,Mc.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 d=new Set(o.keys.map(E=>E.selectionSet));for(let E of c)d.has(E.selectionSet)||(o.keys.push(E),d.add(E.selectionSet))}addValidPrimaryKeyTargetsFromInterfaceObject(t,n,r,i){let a=t.parentDefinitionDataByTypeName,o=a.get(n);if(!o||!(0,ge.isParentDataCompositeOutputType)(o))throw(0,Pe.incompatibleParentKindFatalError)(n,Re.Kind.INTERFACE_TYPE_DEFINITION,(o==null?void 0:o.kind)||Re.Kind.NULL);let c=(0,Ne.getOrThrowError)(t.configurationDataByTypeName,r.typeName,"internalSubgraph.configurationDataByTypeName"),l=[];if((0,Mc.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 d=new Set(c.keys.map(p=>p.selectionSet));for(let p of l)d.has(p.selectionSet)||(c.keys.push(p),d.add(p.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(ve.PERIOD);if(r.length<1)continue;let i=(0,Ne.getValueOrDefault)(this.parentTagDataByTypeName,r[0],()=>(0,Mc.newParentTagData)(r[0]));switch(r.length){case 1:for(let l of n)i.tagNames.add(l);break;case 2:let a=(0,Ne.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Mc.newChildTagData)(r[1]));for(let l of n)a.tagNames.add(l);break;case 3:let o=(0,Ne.getValueOrDefault)(i.childTagDataByChildName,r[1],()=>(0,Mc.newChildTagData)(r[1])),c=(0,Ne.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);this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByDirectiveName});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,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,a.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:a.subgraphNames})}upsertInputValueData(t,n,r,i){let a=t.get(n.name),o=a||this.copyInputValueData(n);if(this.extractPersistedDirectives({data:o.persistedDirectivesData,directivesByName:n.directivesByDirectiveName}),this.recordTagNamesByCoords(o,`${r}.${o.name}`),this.namedInputValueTypeNames.add(o.namedTypeName),(0,Ne.getValueOrDefault)(this.coordsByNamedTypeName,o.namedTypeName,()=>new Set).add(o.federatedCoords),!a){t.set(o.name,o);return}(0,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,o.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(o,n),(0,Ne.addIterableToSet)({source:n.requiredSubgraphNames,target:o.requiredSubgraphNames}),(0,Ne.addIterableToSet)({source:n.subgraphNames,target:o.subgraphNames}),this.handleInputValueInaccessibility(i,o,r);let c=(0,cd.getMostRestrictiveMergedTypeNode)(o.type,n.type,o.originalCoords,this.errors);c.success?o.type=c.typeNode:this.errors.push((0,Pe.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,Pe.inaccessibleRequiredInputValueError)(n,r));return}this.inaccessibleCoords.add(n.federatedCoords)}}handleSubscriptionFilterDirective(t,n){let r=t.directivesByDirectiveName.get(ve.SUBSCRIPTION_FILTER);if(!r)return;let i=(0,Ne.getFirstEntry)(t.subgraphNames);if(i===void 0){this.errors.push((0,Pe.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,mV.getMutableTypeNode)(n,r,this.errors);let a={kind:t.kind},o=cd.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,Ne.getValueOrDefault)(this.coordsByNamedTypeName,n.namedTypeName,()=>new Set).add(a.federatedCoords),this.namedOutputTypeNames.add(n.namedTypeName),this.handleSubscriptionFilterDirective(n,a),this.extractPersistedDirectives({data:a.persistedDirectivesData,directivesByName:n.directivesByDirectiveName});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,Ne.getValueOrDefault)(this.subgraphNamesByNamedTypeNameByFieldCoords,a.federatedCoords,()=>new Map),d=(0,Ne.getValueOrDefault)(l,a.namedTypeName,()=>new Set);if(d.size<1)for(let p of a.subgraphNames)n.subgraphNames.has(p)||d.add(p);(0,Ne.addIterableToSet)({source:n.subgraphNames,target:(0,Ne.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,Ne.addNewObjectValueMapEntries)(n.configureDescriptionDataBySubgraphName,i.configureDescriptionDataBySubgraphName),(0,ge.setLongestDescription)(a,n),a.isInaccessible||(a.isInaccessible=n.isInaccessible),(0,Ne.addNewObjectValueMapEntries)(n.externalFieldDataBySubgraphName,a.externalFieldDataBySubgraphName),(0,Ne.addMapEntries)({source:n.isShareableBySubgraphName,target:a.isShareableBySubgraphName}),(0,Ne.addMapEntries)({source:n.nullLevelsBySubgraphName,target:a.nullLevelsBySubgraphName}),(0,Ne.addIterableToSet)({source:n.subgraphNames,target: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,Ne.getValueOrDefault)(this.tagNamesByCoords,r,()=>new Set);for(let a of t.persistedDirectivesData.tagDirectiveByName.keys())i.add(a)}copyMutualParentDefinitionData(t){return{configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ne.copyArrayValueMap)(t.directivesByDirectiveName),extensionType:t.extensionType,name:t.name,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByDirectiveName}),description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueData(t){return{appearances:t.appearances,configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),federatedCoords:t.federatedCoords,directivesByDirectiveName:(0,Ne.copyArrayValueMap)(t.directivesByDirectiveName),kind:t.kind,name:t.name,node:{directives:[],kind:t.kind,name:(0,Kr.stringToNameNode)(t.name)},parentTypeName:t.parentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByDirectiveName}),subgraphNames:new Set(t.subgraphNames),description:(0,ge.getInitialFederatedDescription)(t)}}copyInputValueData(t){return{configureDescriptionDataBySubgraphName:(0,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ne.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:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByDirectiveName}),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,Ne.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,Ne.copyObjectValueMap)(t.configureDescriptionDataBySubgraphName),directivesByDirectiveName:(0,Ne.copyArrayValueMap)(t.directivesByDirectiveName),externalFieldDataBySubgraphName:(0,Ne.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},nullLevelsBySubgraphName:t.nullLevelsBySubgraphName,originalParentTypeName:t.originalParentTypeName,persistedDirectivesData:this.extractPersistedDirectives({data:(0,ge.newPersistedDirectivesData)(),directivesByName:t.directivesByDirectiveName}),renamedParentTypeName:t.renamedParentTypeName,subgraphNames:new Set(t.subgraphNames),type:t.type,description:(0,ge.getInitialFederatedDescription)(t)}}copyEnumValueDataByName(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,Ne.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 Q(M({},n),{appearances:t.appearances,enumValueDataByName:this.copyEnumValueDataByName(t.enumValueDataByName,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 Q(M({},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 Q(M({},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)},requireFetchReasonsFieldNames:new Set,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.OBJECT_TYPE_DEFINITION:return Q(M({},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)},requireFetchReasonsFieldNames:new Set,renamedTypeName:t.renamedTypeName,subgraphNames:new Set(t.subgraphNames)});case Re.Kind.SCALAR_TYPE_DEFINITION:return Q(M({},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 Q(M({},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=NV.ExtensionType.NONE),r}return this.extractPersistedDirectives({data:t.persistedDirectivesData,directivesByName:n.directivesByDirectiveName}),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.interfaceObjectSubgraphNames.has(n)){if(i&&i.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION){this.errors.push((0,Pe.incompatibleParentTypeMergeError)({existingData:i,incomingSubgraphName:n}));return}a.kind=Re.Kind.INTERFACE_TYPE_DEFINITION,a.node.kind=Re.Kind.INTERFACE_TYPE_DEFINITION}if(!i){this.parentDefinitionDataByTypeName.set(a.name,a);return}if(a.kind!==t.kind&&(!r||!r.interfaceObjectSubgraphNames.has(n)||a.kind!==Re.Kind.INTERFACE_TYPE_DEFINITION||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)){this.errors.push((0,Pe.incompatibleParentTypeMergeError)({existingData:a,incomingNodeType:(0,Ne.kindToNodeType)(t.kind),incomingSubgraphName:n}));return}switch((0,Ne.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,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});for(let l of t.enumValueDataByName.values())this.upsertEnumValueData(a.enumValueDataByName,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,Ne.addIterableToSet)({source:t.subgraphNames,target: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,Ne.addIterableToSet)({source:c.implementedInterfaceTypeNames,target:a.implementedInterfaceTypeNames}),(0,Ne.addIterableToSet)({source:c.subgraphNames,target: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,Ne.addMapEntries)({source:t.memberByMemberTypeName,target:a.memberByMemberTypeName}),(0,Ne.addIterableToSet)({source:t.subgraphNames,target:a.subgraphNames});return;default:(0,Ne.addIterableToSet)({source:t.subgraphNames,target: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.argumentDataByName.values())this.namedInputValueTypeNames.add(o.namedTypeName),this.upsertInputValueData(a,o,`@${t.name}`,!1);this.potentialPersistedDirectiveDefinitionDataByDirectiveName.set(r,{argumentDataByName: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.argumentDataByName.values())this.namedInputValueTypeNames.add((0,mV.getTypeNodeNamedTypeName)(a.type)),this.upsertInputValueData(i.argumentDataByName,a,`@${i.name}`,!1);(0,ge.setLongestDescription)(i,t),i.repeatable&&(i.repeatable=t.repeatable),(0,Ne.addIterableToSet)({source:t.subgraphNames,target: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,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}break}case Re.Kind.UNION_TYPE_DEFINITION:{if(l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}l=p;break}default:{this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));break}}}if(o.size<1&&!l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}let d=l;if(o.size>0){if(l){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}for(let p of o.keys()){d=p;for(let[E,I]of o)if(p!==E&&!I.implementedInterfaceTypeNames.has(p)){d="";break}if(d)break}}if(!this.shouldUpdateFederatedFieldAbstractNamedType(d,c)){this.errors.push((0,Pe.incompatibleFederatedFieldNamedTypeError)(t,n));continue}a.namedTypeName=d,this.updateTypeNodeNamedType(a.type,d)}}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,mfe.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 p of i.satisfiedFieldSets)c.satisfiedFieldSets.add(p),a.has(p)&&l.addTargetSubgraphByFieldSet(p,o);let d=r.fieldDatasBySubgraphName.get(o);for(let{name:p,namedTypeName:E}of d||[])this.internalGraph.addEdge(c,this.internalGraph.addOrUpdateNode(E),p);this.internalGraph.addEdge(i,c,t.typeName,!0),this.addValidPrimaryKeyTargetsFromInterfaceObject(n,i.typeName,t,c)}handleEntityInterfaces(){var t;for(let[n,r]of this.entityInterfaceFederationDataByTypeName){let i=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,n,ve.PARENT_DEFINITION_DATA);if(i.kind===Re.Kind.INTERFACE_TYPE_DEFINITION)for(let a of r.interfaceObjectSubgraphNames){let o=(0,Ne.getOrThrowError)(this.internalSubgraphBySubgraphName,a,"internalSubgraphBySubgraphName"),c=o.configurationDataByTypeName,l=this.concreteTypeNamesByAbstractTypeName.get(n);if(!l)continue;let d=(0,Ne.getOrThrowError)(c,n,"configurationDataByTypeName"),p=d.keys;if(!p)continue;d.entityInterfaceConcreteTypeNames=new Set(r.concreteTypeNames),this.internalGraph.setSubgraphName(a);let E=this.internalGraph.addOrUpdateNode(n,{isAbstract:!0});for(let I of l){let v=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,I,ve.PARENT_DEFINITION_DATA);if(!(0,Gr.isObjectDefinitionData)(v))continue;let A=(0,Ne.getOrThrowError)(this.entityDataByTypeName,I,"entityDataByTypeName");A.subgraphNames.add(a);let U=c.get(I);if(U)if((0,Ne.addIterableToSet)({source:d.fieldNames,target:U.fieldNames}),!U.keys)U.keys=[...p];else e:for(let ne of p){for(let{selectionSet:me}of U.keys)if(ne.selectionSet===me)continue e;U.keys.push(ne)}else c.set(I,{fieldNames:new Set(d.fieldNames),isRootNode:!0,keys:[...p],typeName:I});let j=new Set;for(let ne of p.filter(me=>!me.disableEntityResolver))j.add(ne.selectionSet);let G=this.authorizationDataByParentTypeName.get(n),re=(0,Ne.getOrThrowError)(o.parentDefinitionDataByTypeName,n,"internalSubgraph.parentDefinitionDataByTypeName");if((0,Gr.isObjectDefinitionData)(re)){for(let[ne,me]of re.fieldDataByName){let ue=`${I}.${ne}`;(0,Ne.getValueOrDefault)(this.fieldCoordsByNamedTypeName,me.namedTypeName,()=>new Set).add(ue);let Ae=G==null?void 0:G.fieldAuthDataByFieldName.get(ne);if(Ae){let Z=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,I,()=>(0,Gr.newAuthorizationData)(I));(0,Gr.upsertFieldAuthorizationData)(Z.fieldAuthDataByFieldName,Ae)||this.invalidORScopesCoords.add(ue)}let xe=v.fieldDataByName.get(ne);if(xe){let Z=(t=me.isShareableBySubgraphName.get(a))!=null?t:!1;xe.isShareableBySubgraphName.set(a,Z),xe.subgraphNames.add(a);let _e=me.externalFieldDataBySubgraphName.get(a);if(!_e)continue;xe.externalFieldDataBySubgraphName.set(a,M({},_e));continue}let rt=i.isInaccessible||v.isInaccessible||me.isInaccessible;v.fieldDataByName.set(ne,this.copyFieldData(me,rt))}this.handleInterfaceObjectForInternalGraph({internalSubgraph:o,subgraphName:a,interfaceObjectData:r,interfaceObjectNode:E,resolvableKeyFieldSets:j,entityData:A})}}}}}fieldDataToGraphFieldData(t){var n;return{name:t.name,namedTypeName:t.namedTypeName,isLeaf:(0,Gr.isNodeLeaf)((n=this.parentDefinitionDataByTypeName.get(t.namedTypeName))==null?void 0:n.kind),subgraphNames:t.subgraphNames}}getValidFlattenedPersistedDirectiveNodeArray(t){var i;let n=(0,Gr.getNodeCoords)(t),r=[];for(let[a,o]of t.persistedDirectivesData.directivesByDirectiveName){if(a===ve.SEMANTIC_NON_NULL&&(0,ge.isFieldData)(t)){r.push((0,Ne.generateSemanticNonNullDirective)((i=(0,Ne.getFirstEntry)(t.nullLevelsBySubgraphName))!=null?i:new Set([0])));continue}let c=this.persistedDirectiveDefinitionByDirectiveName.get(a);if(c){if(o.length<2){r.push(...o);continue}if(!c.repeatable){this.errors.push((0,Pe.invalidRepeatedFederatedDirectiveErrorMessage)(a,n));continue}r.push(...o)}}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)),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,Mc.getDescriptionFromString)(r);if(n.length<1)return t.description;this.errors.push((0,Pe.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,Ne.getEntriesNotInHashSet)(t.subgraphNames,c.subgraphNames),requiredSubgraphs:[...c.requiredSubgraphNames]});return i.length>0?this.errors.push((0,Pe.invalidRequiredInputValueError)(ve.FIELD,a,i)):r.length>0&&((0,Ne.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}validateSemanticNonNull(t){let n;for(let r of t.nullLevelsBySubgraphName.values()){if(!n){n=r;continue}if(n.size!==r.size){this.errors.push((0,Pe.semanticNonNullInconsistentLevelsError)(t));return}for(let i of r)if(!n.has(i)){this.errors.push((0,Pe.semanticNonNullInconsistentLevelsError)(t));return}}}validateOneOfDirective({data:t,inputValueNodes:n,requiredFieldNames:r}){return t.directivesByDirectiveName.has(ve.ONE_OF)?r.size>0?(this.errors.push((0,Pe.oneOfRequiredFieldsError)({requiredFieldNames:Array.from(r),typeName:t.name})),!1):(n.length===1&&this.warnings.push((0,Nfe.singleFederatedInputFieldOneOfWarning)({fieldName:n[0].name.value,typeName:t.name})),!0):!0}pushParentDefinitionDataToDocumentDefinitions(t){for(let[n,r]of this.parentDefinitionDataByTypeName)switch(r.extensionType!==NV.ExtensionType.NONE&&this.errors.push((0,Pe.noBaseDefinitionForExtensionError)((0,Ne.kindToNodeType)(r.kind),n)),r.kind){case Re.Kind.ENUM_TYPE_DEFINITION:{if(xc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=[],a=[],o=this.getEnumValueMergeMethod(n);(0,ge.propagateAuthDirectives)(r,this.authorizationDataByParentTypeName.get(n));for(let c of r.enumValueDataByName.values()){let l=this.getNodeForRouterSchemaByData(c),d=(0,ge.isNodeDataInaccessible)(c),p=Q(M({},c.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(c)});switch(o){case ge.MergeMethod.CONSISTENT:!d&&r.appearances>c.appearances&&this.errors.push((0,Pe.incompatibleSharedEnumError)(n)),i.push(l),d||a.push(p);break;case ge.MergeMethod.INTERSECTION:r.appearances===c.appearances&&(i.push(l),d||a.push(p));break;default:i.push(l),d||a.push(p);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,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,ve.ENUM_VALUE));break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),values:a}));break}case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:{if(xc.IGNORED_FEDERATED_TYPE_NAMES.has(n))break;let i=new Array,a=new Array,o=new Array,c=new Set;for(let[l,d]of r.inputValueDataByName)if((0,ge.isTypeRequired)(d.type)&&c.add(l),r.subgraphNames.size===d.subgraphNames.size){if(a.push(this.getNodeWithPersistedDirectivesByInputValueData(d)),(0,ge.isNodeDataInaccessible)(d))continue;o.push(Q(M({},d.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(d)}))}else(0,ge.isTypeRequired)(d.type)&&i.push({inputValueName:l,missingSubgraphs:(0,Ne.getEntriesNotInHashSet)(r.subgraphNames,d.subgraphNames),requiredSubgraphs:[...d.requiredSubgraphNames]});if(i.length>0){this.errors.push((0,Pe.invalidRequiredInputValueError)(ve.INPUT_OBJECT,n,i,!1));break}if(!this.validateOneOfDirective({data:r,inputValueNodes:a,requiredFieldNames:c}))break;if(r.node.fields=a,this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r);break}if(o.length<1){this.errors.push((0,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,"Input field"));break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:o}));break}case Re.Kind.INTERFACE_TYPE_DEFINITION:case Re.Kind.OBJECT_TYPE_DEFINITION:{let i=[],a=[],o=new Map,c=(0,ge.newInvalidFieldNames)(),l=r.kind===Re.Kind.OBJECT_TYPE_DEFINITION,d=this.authorizationDataByParentTypeName.get(n);(0,ge.propagateAuthDirectives)(r,d);for(let[E,I]of r.fieldDataByName){(0,ge.propagateFieldAuthDirectives)(I,d);let v=this.getValidFieldArgumentNodes(I);l&&(0,ge.validateExternalAndShareable)(I,c),this.validateSemanticNonNull(I),i.push(this.getNodeWithPersistedDirectivesByFieldData(I,v)),!(0,ge.isNodeDataInaccessible)(I)&&(a.push((0,ge.getClientSchemaFieldNodeByFieldData)(I)),o.set(E,this.fieldDataToGraphFieldData(I)))}if(l&&(c.byShareable.size>0&&this.errors.push((0,Pe.invalidFieldShareabilityError)(r,c.byShareable)),c.subgraphNamesByExternalFieldName.size>0&&this.errors.push((0,Pe.allExternalFieldInstancesError)(n,c.subgraphNamesByExternalFieldName))),r.node.fields=i,this.internalGraph.initializeNode(n,o),r.implementedInterfaceTypeNames.size>0){t.push({data:r,clientSchemaFieldNodes:a});break}this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r));let p=(0,pfe.isNodeQuery)(n);if((0,ge.isNodeDataInaccessible)(r)){if(p){this.errors.push(Pe.inaccessibleQueryRootTypeError);break}this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}if(a.length<1){let E=p?(0,Pe.noQueryRootTypeError)(!1):(0,Pe.allChildDefinitionsAreInaccessibleError)((0,Ne.kindToNodeType)(r.kind),n,ve.FIELD);this.errors.push(E);break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),fields:a}));break}case Re.Kind.SCALAR_TYPE_DEFINITION:{if(xc.IGNORED_FEDERATED_TYPE_NAMES.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(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r)}));break}case Re.Kind.UNION_TYPE_DEFINITION:{if(r.node.types=(0,Gr.mapToArrayOfValues)(r.memberByMemberTypeName),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(r)),(0,ge.isNodeDataInaccessible)(r)){this.validateReferencesOfInaccessibleType(r),this.internalGraph.setNodeInaccessible(r.name);break}let i=this.getClientSchemaUnionMembers(r);if(i.length<1){this.errors.push((0,Pe.allChildDefinitionsAreInaccessibleError)(ve.UNION,n,"union member type"));break}this.clientDefinitions.push(Q(M({},r.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(r),types:i}));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(ve.PERIOD);switch(o.length){case 2:{let c=(0,Ne.getValueOrDefault)(this.authorizationDataByParentTypeName,o[0],()=>(0,Gr.newAuthorizationData)(o[0])),l=(0,Ne.getValueOrDefault)(c.fieldAuthDataByFieldName,o[1],()=>(0,Gr.newFieldAuthorizationData)(o[1]));(t=l.inheritedData).requiresAuthentication||(t.requiresAuthentication=r.requiresAuthentication),l.inheritedData.requiredScopes.length*r.requiredScopes.length>hp.MAX_OR_SCOPES?this.invalidORScopesCoords.add(a):(l.inheritedData.requiredScopesByOR=(0,Gr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopesByOR,r.requiredScopesByOR),l.inheritedData.requiredScopes=(0,Gr.mergeRequiredScopesByAND)(l.inheritedData.requiredScopes,r.requiredScopes));break}default:break}}}}federateSubgraphData(){this.federateInternalSubgraphData(),this.handleEntityInterfaces(),this.generateTagData(),Ud(this,zE,EV).call(this),this.pushNamedTypeAuthDataToFields()}validateInterfaceImplementationsAndPushToDocumentDefinitions(t){for(let{data:n,clientSchemaFieldNodes:r}of t){if(n.node.interfaces=this.getValidImplementedInterfaces(n),this.routerDefinitions.push(this.getNodeForRouterSchemaByData(n)),(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(Q(M({},n.node),{directives:(0,ge.getClientPersistedDirectiveNodes)(n),fields:r,interfaces:i}))}}validatePathSegmentInaccessibility(t){if(!t)return!1;let r=t.split(ve.LEFT_PARENTHESIS)[0].split(ve.PERIOD),i=r[0];for(let a=0;a0&&this.errors.push((0,Pe.invalidReferencesOfInaccessibleTypeError)((0,Ne.kindToNodeType)(t.kind),t.name,r))}validateQueryRootType(){let t=this.parentDefinitionDataByTypeName.get(ve.QUERY);if(!t||t.kind!==Re.Kind.OBJECT_TYPE_DEFINITION||t.fieldDataByName.size<1){this.errors.push((0,Pe.noQueryRootTypeError)());return}for(let n of t.fieldDataByName.values())if(!(0,ge.isNodeDataInaccessible)(n))return;this.errors.push((0,Pe.noQueryRootTypeError)())}validateSubscriptionFieldConditionFieldPath(t,n,r,i,a){let o=t.split(ve.PERIOD);if(o.length<1)return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathErrorMessage)(r,t)),[];let c=n;if(this.inaccessibleCoords.has(c.renamedTypeName))return a.push((0,Pe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,o[0],c.renamedTypeName)),[];let l="";for(let d=0;d0?`.${p}`:p,c.kind!==Re.Kind.OBJECT_TYPE_DEFINITION)return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathParentErrorMessage)(r,t,l)),[];let E=c.fieldDataByName.get(p);if(!E)return a.push((0,Pe.undefinedSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,p,c.renamedTypeName)),[];let I=`${c.renamedTypeName}.${p}`;if(!E.subgraphNames.has(i))return a.push((0,Pe.invalidSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I,i)),[];if(this.inaccessibleCoords.has(I))return a.push((0,Pe.inaccessibleSubscriptionFieldConditionFieldPathFieldErrorMessage)(r,t,l,I)),[];if(hp.BASE_SCALARS.has(E.namedTypeName)){c={kind:Re.Kind.SCALAR_TYPE_DEFINITION,name:E.namedTypeName};continue}c=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,E.namedTypeName,ve.PARENT_DEFINITION_DATA)}return(0,ge.isLeafKind)(c.kind)?o:(a.push((0,Pe.nonLeafSubscriptionFieldConditionFieldPathFinalFieldErrorMessage)(r,t,o[o.length-1],(0,Ne.kindToNodeType)(c.kind),c.name)),[])}validateSubscriptionFieldCondition(t,n,r,i,a,o,c){if(i>JE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Pe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;let l=!1,d=new Set([ve.FIELD_PATH,ve.VALUES]),p=new Set,E=new Set,I=[];for(let v of t.fields){let A=v.name.value,U=a+`.${A}`;switch(A){case ve.FIELD_PATH:{if(d.has(ve.FIELD_PATH))d.delete(ve.FIELD_PATH);else{l=!0,p.add(ve.FIELD_PATH);break}if(v.value.kind!==Re.Kind.STRING){I.push((0,Pe.invalidInputFieldTypeErrorMessage)(U,ve.STRING,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}let j=this.validateSubscriptionFieldConditionFieldPath(v.value.value,r,U,o,I);if(j.length<1){l=!0;break}n.fieldPath=j;break}case ve.VALUES:{if(d.has(ve.VALUES))d.delete(ve.VALUES);else{l=!0,p.add(ve.VALUES);break}let j=v.value.kind;if(j==Re.Kind.NULL||j==Re.Kind.OBJECT){I.push((0,Pe.invalidInputFieldTypeErrorMessage)(U,ve.LIST,(0,Ne.kindToNodeType)(v.value.kind))),l=!0;break}if(j!==Re.Kind.LIST){n.values=[(0,ge.getSubscriptionFilterValue)(v.value)];break}let G=new Set,re=[];for(let ne=0;ne0){I.push((0,Pe.subscriptionFieldConditionInvalidValuesArrayErrorMessage)(U,re));continue}if(G.size<1){l=!0,I.push((0,Pe.subscriptionFieldConditionEmptyValuesArrayErrorMessage)(U));continue}n.values=[...G];break}default:l=!0,E.add(A)}}return l?(c.push((0,Pe.subscriptionFieldConditionInvalidInputFieldErrorMessage)(a,[...d],[...p],[...E],I)),!1):!0}validateSubscriptionFilterCondition(t,n,r,i,a,o,c){if(i>JE.MAX_SUBSCRIPTION_FILTER_DEPTH||this.isMaxDepth)return c.push((0,Pe.subscriptionFilterConditionDepthExceededErrorMessage)(a)),this.isMaxDepth=!0,!1;if(i+=1,t.fields.length!==1)return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldNumberErrorMessage)(a,t.fields.length)),!1;let l=t.fields[0],d=l.name.value;if(!xc.SUBSCRIPTION_FILTER_INPUT_NAMES.has(d))return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldErrorMessage)(a,d)),!1;let p=a+`.${d}`;switch(l.value.kind){case Re.Kind.OBJECT:switch(d){case ve.IN_UPPER:return n.in={fieldPath:[],values:[]},this.validateSubscriptionFieldCondition(l.value,n.in,r,i,a+".IN",o,c);case ve.NOT_UPPER:return n.not={},this.validateSubscriptionFilterCondition(l.value,n.not,r,i,a+".NOT",o,c);default:return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,ve.LIST,ve.OBJECT)),!1}case Re.Kind.LIST:{let E=[];switch(d){case ve.AND_UPPER:{n.and=E;break}case ve.OR_UPPER:{n.or=E;break}default:return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,ve.OBJECT,ve.LIST)),!1}let I=l.value.values.length;if(I<1||I>5)return c.push((0,Pe.subscriptionFilterArrayConditionInvalidLengthErrorMessage)(p,I)),!1;let v=!0,A=[];for(let U=0;U0?(c.push((0,Pe.subscriptionFilterArrayConditionInvalidItemTypeErrorMessage)(p,A)),!1):v}default:{let E=xc.SUBSCRIPTION_FILTER_LIST_INPUT_NAMES.has(d)?ve.LIST:ve.OBJECT;return c.push((0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(p,E,(0,Ne.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,Pe.invalidSubscriptionFilterDirectiveError)(r,[(0,Pe.subscriptionFilterConditionInvalidInputFieldTypeErrorMessage)(ve.CONDITION,ve.OBJECT,(0,Ne.kindToNodeType)(c.value.kind))]));return}let l={},d=[];if(!this.validateSubscriptionFilterCondition(c.value,l,n,0,ve.CONDITION,o,d)){this.errors.push((0,Pe.invalidSubscriptionFilterDirectiveError)(r,d)),this.isMaxDepth=!1;return}(0,Ne.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,Pe.invalidSubscriptionFilterDirectiveError)(t,[(0,Pe.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,Pe.orScopesLimitError)(hp.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.disableResolvabilityValidation&&this.internalSubgraphBySubgraphName.size>1){let a=this.internalGraph.validate();if(!a.success)return{errors:a.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,directiveDefinitionByName:a.directiveDefinitionByName,isVersionTwo:a.isVersionTwo,parentDefinitionDataByTypeName:a.parentDefinitionDataByTypeName,schema:a.schema});for(let a of this.authorizationDataByParentTypeName.values())(0,Gr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,a);return M({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:n,federatedGraphSchema:(0,Re.buildASTSchema)(n,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:r,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:i,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,Ne.getOrThrowError)(n,o,`${t.name}.childDataByChildName`);if((0,ge.isNodeDataInaccessible)(l)){a-=1;continue}i.isDisjointFrom(c.tagNames)||((0,Ne.getValueOrDefault)(l.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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,Ne.getValueOrDefault)(c.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(`${t.name}.${o}`),a-=1)}a<1&&(t.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(t.name))}buildFederationContractResult(t){if(this.isVersionTwo||this.routerDefinitions.push(Fu.INACCESSIBLE_DEFINITION),t.tagNamesToExclude.size>0)for(let[o,c]of this.parentTagDataByTypeName){let l=(0,Ne.getOrThrowError)(this.parentDefinitionDataByTypeName,o,ve.PARENT_DEFINITION_DATA);if(!(0,ge.isNodeDataInaccessible)(l)){if(!t.tagNamesToExclude.isDisjointFrom(c.tagNames)){l.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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:break;case Re.Kind.ENUM_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.enumValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:{this.handleChildTagExclusions(l,l.inputValueDataByName,c.childTagDataByChildName,t.tagNamesToExclude);break}default:{let d=l.fieldDataByName.size;for(let[p,E]of c.childTagDataByChildName){let I=(0,Ne.getOrThrowError)(l.fieldDataByName,p,`${o}.fieldDataByFieldName`);if((0,ge.isNodeDataInaccessible)(I)){d-=1;continue}if(!t.tagNamesToExclude.isDisjointFrom(E.tagNames)){(0,Ne.getValueOrDefault)(I.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(I.federatedCoords),d-=1;continue}for(let[v,A]of E.tagNamesByArgumentName){let U=(0,Ne.getOrThrowError)(I.argumentDataByName,v,`${p}.argumentDataByArgumentName`);(0,ge.isNodeDataInaccessible)(U)||t.tagNamesToExclude.isDisjointFrom(A)||((0,Ne.getValueOrDefault)(U.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(U.federatedCoords))}}d<1&&(l.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(o);continue}if(t.tagNamesToInclude.isDisjointFrom(l.tagNames)){if(l.childTagDataByChildName.size<1){c.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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.enumValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;case Re.Kind.INPUT_OBJECT_TYPE_DEFINITION:this.handleChildTagInclusions(c,c.inputValueDataByName,l.childTagDataByChildName,t.tagNamesToInclude);break;default:let d=c.fieldDataByName.size;for(let[p,E]of c.fieldDataByName){if((0,ge.isNodeDataInaccessible)(E)){d-=1;continue}let I=l.childTagDataByChildName.get(p);(!I||t.tagNamesToInclude.isDisjointFrom(I.tagNames))&&((0,Ne.getValueOrDefault)(E.persistedDirectivesData.directivesByDirectiveName,ve.INACCESSIBLE,()=>[(0,Ne.generateSimpleDirective)(ve.INACCESSIBLE)]),this.inaccessibleCoords.add(E.federatedCoords),d-=1)}d<1&&(c.persistedDirectivesData.directivesByDirectiveName.set(ve.INACCESSIBLE,[(0,Ne.generateSimpleDirective)(ve.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,directiveDefinitionByName:o.directiveDefinitionByName,isVersionTwo:o.isVersionTwo,parentDefinitionDataByTypeName:o.parentDefinitionDataByTypeName,schema:o.schema});for(let o of this.authorizationDataByParentTypeName.values())(0,Gr.upsertAuthorizationConfiguration)(this.fieldConfigurationByFieldCoords,o);return M({directiveDefinitionByName:this.directiveDefinitionByName,fieldConfigurations:Array.from(this.fieldConfigurationByFieldCoords.values()),federatedGraphAST:r,federatedGraphSchema:(0,Re.buildASTSchema)(r,{assumeValid:!0,assumeValidSDL:!0}),federatedGraphClientSchema:i,parentDefinitionDataByTypeName:this.parentDefinitionDataByTypeName,subgraphConfigBySubgraphName:a,success:!0,warnings:this.warnings},this.getClientSchemaObjectBoolean())}federateSubgraphsInternal(){return this.federateSubgraphData(),this.buildFederationResult()}};zE=new WeakSet,EV=function(){var r;let t=new Set,n=new Set;for(let i of this.referencedPersistedDirectiveNames){let a=hp.DIRECTIVE_DEFINITION_BY_NAME.get(i);if(!a)continue;let o=(r=xc.DEPENDENCIES_BY_DIRECTIVE_NAME.get(i))!=null?r:[];this.directiveDefinitionByName.set(i,a),xc.CLIENT_PERSISTED_DIRECTIVE_NAMES.has(i)&&(this.clientDefinitions.push(a),(0,Ne.addIterableToSet)({source:o,target:t})),this.routerDefinitions.push(a),(0,Ne.addIterableToSet)({source:o,target:n})}this.clientDefinitions.push(...t),this.routerDefinitions.push(...n)};qc.FederationFactory=HE;function sb({disableResolvabilityValidation:e,subgraphs:t}){if(t.length<1)return{errors:[Pe.minimumSubgraphRequirementError],success:!1,warnings:[]};let n=(0,ffe.batchNormalize)(t);if(!n.success)return{errors:n.errors,success:!1,warnings:n.warnings};let r=new Map,i=new Map;for(let[c,l]of n.internalSubgraphBySubgraphName)for(let[d,p]of l.entityInterfaces){let E=r.get(d);if(!E){r.set(d,(0,Gr.newEntityInterfaceFederationData)(p,c));continue}(0,Gr.upsertEntityInterfaceFederationData)(E,p,c)}let a=new Array,o=new Map;for(let[c,l]of r){let d=l.concreteTypeNames.size;for(let[p,E]of l.subgraphDataByTypeName){let I=(0,Ne.getValueOrDefault)(o,p,()=>new Set);if((0,Ne.addIterableToSet)({source:E.concreteTypeNames,target:I}),!E.isInterfaceObject){E.resolvable&&E.concreteTypeNames.size!==d&&(0,Ne.getValueOrDefault)(i,c,()=>new Array).push({subgraphName:p,definedConcreteTypeNames:new Set(E.concreteTypeNames),requiredConcreteTypeNames:new Set(l.concreteTypeNames)});continue}(0,Ne.addIterableToSet)({source:l.concreteTypeNames,target:I});let{parentDefinitionDataByTypeName:v}=(0,Ne.getOrThrowError)(n.internalSubgraphBySubgraphName,p,"internalSubgraphBySubgraphName"),A=[];for(let U of l.concreteTypeNames)v.has(U)&&A.push(U);A.length>0&&a.push((0,Pe.invalidInterfaceObjectImplementationDefinitionsError)(c,p,A))}}for(let[c,l]of i){let d=new Array;for(let p of l){let E=o.get(p.subgraphName);if(!E){d.push(p);continue}let I=p.requiredConcreteTypeNames.intersection(E);p.requiredConcreteTypeNames.size!==I.size&&(p.definedConcreteTypeNames=I,d.push(p))}if(d.length>0){i.set(c,d);continue}i.delete(c)}return i.size>0&&a.push((0,Pe.undefinedEntityInterfaceImplementationsError)(i,r)),a.length>0?{errors:a,success:!1,warnings:n.warnings}:{federationFactory:new HE({authorizationDataByParentTypeName:n.authorizationDataByParentTypeName,concreteTypeNamesByAbstractTypeName:n.concreteTypeNamesByAbstractTypeName,disableResolvabilityValidation:e,entityDataByTypeName:n.entityDataByTypeName,entityInterfaceFederationDataByTypeName:r,fieldCoordsByNamedTypeName:n.fieldCoordsByNamedTypeName,internalSubgraphBySubgraphName:n.internalSubgraphBySubgraphName,internalGraph:n.internalGraph,warnings:n.warnings}),success:!0,warnings:n.warnings}}function Tfe({disableResolvabilityValidation:e,subgraphs:t}){let n=sb({subgraphs:t,disableResolvabilityValidation:e});return n.success?n.federationFactory.federateSubgraphsInternal():{errors:n.errors,success:!1,warnings:n.warnings}}function Efe({subgraphs:e,tagOptionsByContractName:t,disableResolvabilityValidation:n}){let r=sb({subgraphs:e,disableResolvabilityValidation:n});if(!r.success)return{errors:r.errors,success:!1,warnings:r.warnings};r.federationFactory.federateSubgraphData();let i=[(0,TV.cloneDeep)(r.federationFactory)],a=r.federationFactory.buildFederationResult();if(!a.success)return{errors:a.errors,success:!1,warnings:a.warnings};let o=t.size-1,c=new Map,l=0;for(let[d,p]of t){l!==o&&i.push((0,TV.cloneDeep)(i[l]));let E=i[l].buildFederationContractResult(p);c.set(d,E),l++}return Q(M({},a),{federationResultByContractName:c})}function hfe({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n}){let r=sb({subgraphs:n,disableResolvabilityValidation:t});return r.success?(r.federationFactory.federateSubgraphData(),r.federationFactory.buildFederationContractResult(e)):{errors:r.errors,success:!1,warnings:r.warnings}}});var WE=w(Cs=>{"use strict";m();T();N();Object.defineProperty(Cs,"__esModule",{value:!0});Cs.LATEST_ROUTER_COMPATIBILITY_VERSION=Cs.ROUTER_COMPATIBILITY_VERSIONS=Cs.ROUTER_COMPATIBILITY_VERSION_ONE=void 0;Cs.ROUTER_COMPATIBILITY_VERSION_ONE="1";Cs.ROUTER_COMPATIBILITY_VERSIONS=new Set([Cs.ROUTER_COMPATIBILITY_VERSION_ONE]);Cs.LATEST_ROUTER_COMPATIBILITY_VERSION="1"});var yV=w(yp=>{"use strict";m();T();N();Object.defineProperty(yp,"__esModule",{value:!0});yp.federateSubgraphs=yfe;yp.federateSubgraphsWithContracts=Ife;yp.federateSubgraphsContract=gfe;var ob=hV(),ub=WE();function yfe({disableResolvabilityValidation:e,subgraphs:t,version:n=ub.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(n){default:return(0,ob.federateSubgraphs)({disableResolvabilityValidation:e,subgraphs:t})}}function Ife({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n,version:r=ub.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,ob.federateSubgraphsWithContracts)({disableResolvabilityValidation:e,subgraphs:t,tagOptionsByContractName:n})}}function gfe({contractTagOptions:e,disableResolvabilityValidation:t,subgraphs:n,version:r=ub.ROUTER_COMPATIBILITY_VERSION_ONE}){switch(r){default:return(0,ob.federateSubgraphsContract)({disableResolvabilityValidation:t,subgraphs:n,contractTagOptions:e})}}});var gV=w(IV=>{"use strict";m();T();N();Object.defineProperty(IV,"__esModule",{value:!0})});var _V=w(Ip=>{"use strict";m();T();N();Object.defineProperty(Ip,"__esModule",{value:!0});Ip.normalizeSubgraphFromString=_fe;Ip.normalizeSubgraph=vfe;Ip.batchNormalize=Ofe;var cb=nb(),lb=WE();function _fe(e,t=!0,n=lb.ROUTER_COMPATIBILITY_VERSION_ONE){switch(n){default:return(0,cb.normalizeSubgraphFromString)(e,t)}}function vfe(e,t,n,r=lb.ROUTER_COMPATIBILITY_VERSION_ONE){switch(r){default:return(0,cb.normalizeSubgraph)(e,t,n)}}function Ofe(e,t=lb.ROUTER_COMPATIBILITY_VERSION_ONE){switch(t){default:return(0,cb.batchNormalize)(e)}}});var OV=w(vV=>{"use strict";m();T();N();Object.defineProperty(vV,"__esModule",{value:!0})});var DV=w(SV=>{"use strict";m();T();N();Object.defineProperty(SV,"__esModule",{value:!0})});var AV=w(bV=>{"use strict";m();T();N();Object.defineProperty(bV,"__esModule",{value:!0})});var PV=w(RV=>{"use strict";m();T();N();Object.defineProperty(RV,"__esModule",{value:!0})});var wV=w(FV=>{"use strict";m();T();N();Object.defineProperty(FV,"__esModule",{value:!0})});var CV=w(LV=>{"use strict";m();T();N();Object.defineProperty(LV,"__esModule",{value:!0})});var BV=w(XE=>{"use strict";m();T();N();Object.defineProperty(XE,"__esModule",{value:!0});XE.COMPOSITION_VERSION=void 0;XE.COMPOSITION_VERSION="{{$COMPOSITION__VERSION}}"});var kV=w(UV=>{"use strict";m();T();N();Object.defineProperty(UV,"__esModule",{value:!0})});var xV=w(MV=>{"use strict";m();T();N();Object.defineProperty(MV,"__esModule",{value:!0})});var VV=w(qV=>{"use strict";m();T();N();Object.defineProperty(qV,"__esModule",{value:!0})});var KV=w(jV=>{"use strict";m();T();N();Object.defineProperty(jV,"__esModule",{value:!0})});var ZE=w(Xe=>{"use strict";m();T();N();var Sfe=Xe&&Xe.__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]}),lt=Xe&&Xe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Sfe(t,e,n)};Object.defineProperty(Xe,"__esModule",{value:!0});lt(Ar(),Xe);lt(Cv(),Xe);lt(qi(),Xe);lt($M(),Xe);lt(yV(),Xe);lt(gV(),Xe);lt(_V(),Xe);lt(OV(),Xe);lt(ZD(),Xe);lt(jD(),Xe);lt(UE(),Xe);lt(DV(),Xe);lt(AV(),Xe);lt(YD(),Xe);lt(WE(),Xe);lt(PV(),Xe);lt(eb(),Xe);lt(yu(),Xe);lt(Uf(),Xe);lt(Bl(),Xe);lt(wV(),Xe);lt(CV(),Xe);lt(BV(),Xe);lt(kV(),Xe);lt(sr(),Xe);lt(xV(),Xe);lt(Rr(),Xe);lt(LD(),Xe);lt(Iu(),Xe);lt(kf(),Xe);lt(sE(),Xe);lt(oE(),Xe);lt(nd(),Xe);lt(aT(),Xe);lt(sT(),Xe);lt(ab(),Xe);lt(VV(),Xe);lt(AD(),Xe);lt(dp(),Xe);lt(KV(),Xe);lt(kD(),Xe);lt(QE(),Xe);lt(FD(),Xe);lt(lp(),Xe);lt(fp(),Xe)});var hpe={};Fm(hpe,{buildRouterConfiguration:()=>Epe,federateSubgraphs:()=>Tpe});m();T();N();var Yc=ys(ZE());m();T();N();m();T();N();function db(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 GV={};m();T();N();function $V(e){return e!=null}m();T();N();m();T();N();var zV=ys(Oe(),1);m();T();N();var QV;if(typeof AggregateError=="undefined"){class e extends Error{constructor(n,r=""){super(r),this.errors=n,this.name="AggregateError",Error.captureStackTrace(this,e)}}QV=function(t,n){return new e(t,n)}}else QV=AggregateError;function YV(e){return"errors"in e&&Array.isArray(e.errors)}var WV=3;function XV(e){return eh(e,[])}function eh(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Dfe(e,t);default:return String(e)}}function JV(e){return e instanceof zV.GraphQLError?e.toString():`${e.name}: ${e.message}; + ${e.stack}`}function Dfe(e,t){if(e===null)return"null";if(e instanceof Error)return YV(e)?JV(e)+` +`+HV(e.errors,t):JV(e);if(t.includes(e))return"[Circular]";let n=[...t,e];if(bfe(e)){let r=e.toJSON();if(r!==e)return typeof r=="string"?r:eh(r,n)}else if(Array.isArray(e))return HV(e,n);return Afe(e,n)}function bfe(e){return typeof e.toJSON=="function"}function Afe(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>WV?"["+Rfe(e)+"]":"{ "+n.map(([i,a])=>i+": "+eh(a,t)).join(", ")+" }"}function HV(e,t){if(e.length===0)return"[]";if(t.length>WV)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 Fe=ys(Oe(),1);m();T();N();var is=ys(Oe(),1);function as(e){if((0,is.isNonNullType)(e)){let t=as(e.ofType);if(t.kind===is.Kind.NON_NULL_TYPE)throw new Error(`Invalid type node ${XV(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:is.Kind.NON_NULL_TYPE,type:t}}else if((0,is.isListType)(e))return{kind:is.Kind.LIST_TYPE,type:as(e.ofType)};return{kind:is.Kind.NAMED_TYPE,name:{kind:is.Kind.NAME,value:e.name}}}m();T();N();var ss=ys(Oe(),1);function nh(e){if(e===null)return{kind:ss.Kind.NULL};if(e===void 0)return null;if(Array.isArray(e)){let t=[];for(let n of e){let r=nh(n);r!=null&&t.push(r)}return{kind:ss.Kind.LIST,values:t}}if(typeof e=="object"){let t=[];for(let n in e){let r=e[n],i=nh(r);i&&t.push({kind:ss.Kind.OBJECT_FIELD,name:{kind:ss.Kind.NAME,value:n},value:i})}return{kind:ss.Kind.OBJECT,fields:t}}if(typeof e=="boolean")return{kind:ss.Kind.BOOLEAN,value:e};if(typeof e=="number"&&isFinite(e)){let t=String(e);return Pfe.test(t)?{kind:ss.Kind.INT,value:t}:{kind:ss.Kind.FLOAT,value:t}}if(typeof e=="string")return{kind:ss.Kind.STRING,value:e};throw new TypeError(`Cannot convert value to AST: ${e}.`)}var Pfe=/^-?(?:0|[1-9][0-9]*)$/;m();T();N();m();T();N();function rh(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 jxe=rh(function(t){let n=Ffe(t);return new Set([...n].map(r=>r.name))}),Ffe=rh(function(t){let n=fb(t);return new Set(n.values())}),fb=rh(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 wfe(e,t={}){let n=t.pathToDirectivesInExtensions,r=e.getTypeMap(),i=Lfe(e,n),a=i!=null?[i]:[],o=e.getDirectives();for(let c of o)(0,Fe.isSpecifiedDirective)(c)||a.push(Cfe(c,e,n));for(let c in r){let l=r[c],d=(0,Fe.isSpecifiedScalarType)(l),p=(0,Fe.isIntrospectionType)(l);if(!(d||p))if((0,Fe.isObjectType)(l))a.push(Bfe(l,e,n));else if((0,Fe.isInterfaceType)(l))a.push(Ufe(l,e,n));else if((0,Fe.isUnionType)(l))a.push(kfe(l,e,n));else if((0,Fe.isInputObjectType)(l))a.push(Mfe(l,e,n));else if((0,Fe.isEnumType)(l))a.push(xfe(l,e,n));else if((0,Fe.isScalarType)(l))a.push(qfe(l,e,n));else throw new Error(`Unknown type ${l}.`)}return{kind:Fe.Kind.DOCUMENT,definitions:a}}function ZV(e,t={}){let n=wfe(e,t);return(0,Fe.print)(n)}function Lfe(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 p of e.extensionASTNodes)a.push(p);for(let p of a)if(p.operationTypes)for(let E of p.operationTypes)i.set(E.operation,E);let o=fb(e);for(let[p,E]of i){let I=o.get(p);if(I!=null){let v=as(I);E!=null?E.type=v:i.set(p,{kind:Fe.Kind.OPERATION_TYPE_DEFINITION,operation:p,type:v})}}let c=[...i.values()].filter($V),l=ld(e,e,t);if(!c.length&&!l.length)return null;let d={kind:c!=null?Fe.Kind.SCHEMA_DEFINITION:Fe.Kind.SCHEMA_EXTENSION,operationTypes:c,directives:l};return d.description=((r=(n=e.astNode)===null||n===void 0?void 0:n.description)!==null&&r!==void 0?r:e.description!=null)?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,d}function Cfe(e,t,n){var r,i,a,o;return{kind:Fe.Kind.DIRECTIVE_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},arguments:(a=e.args)===null||a===void 0?void 0:a.map(c=>ej(c,t,n)),repeatable:e.isRepeatable,locations:((o=e.locations)===null||o===void 0?void 0:o.map(c=>({kind:Fe.Kind.NAME,value:c})))||[]}}function ld(e,t,n){let r=th(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=pb(t,r);else{a=[];for(let o of i)o.directives&&a.push(...o.directives)}return a}function ah(e,t,n){var r,i;let a=[],o=null,c=th(e,n),l;return c!=null?l=pb(t,c):l=(r=e.astNode)===null||r===void 0?void 0:r.directives,l!=null&&(a=l.filter(d=>d.name.value!=="deprecated"),e.deprecationReason!=null&&(o=(i=l.filter(d=>d.name.value==="deprecated"))===null||i===void 0?void 0:i[0])),e.deprecationReason!=null&&o==null&&(o=Kfe(e.deprecationReason)),o==null?a:[o].concat(a)}function ej(e,t,n){var r,i,a;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},type:as(e.type),defaultValue:e.defaultValue!==void 0&&(a=(0,Fe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0,directives:ah(e,t,n)}}function Bfe(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>tj(a,t,n)),interfaces:Object.values(e.getInterfaces()).map(a=>as(a)),directives:ld(e,t,n)}}function Ufe(e,t,n){var r,i;let a={kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(o=>tj(o,t,n)),directives:ld(e,t,n)};return"getInterfaces"in e&&(a.interfaces=Object.values(e.getInterfaces()).map(o=>as(o))),a}function kfe(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:ld(e,t,n),types:e.getTypes().map(a=>as(a))}}function Mfe(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},fields:Object.values(e.getFields()).map(a=>Vfe(a,t,n)),directives:ld(e,t,n)}}function xfe(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},values:Object.values(e.getValues()).map(a=>jfe(a,t,n)),directives:ld(e,t,n)}}function qfe(e,t,n){var r,i,a;let o=th(e,n),c=o?pb(t,o):((r=e.astNode)===null||r===void 0?void 0:r.directives)||[],l=e.specifiedByUrl||e.specifiedByURL;if(l&&!c.some(d=>d.name.value==="specifiedBy")){let d={url:l};c.push(ih("specifiedBy",d))}return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:c}}function tj(e,t,n){var r,i;return{kind:Fe.Kind.FIELD_DEFINITION,description:(i=(r=e.astNode)===null||r===void 0?void 0:r.description)!==null&&i!==void 0?i:e.description?{kind:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},arguments:e.args.map(a=>ej(a,t,n)),type:as(e.type),directives:ah(e,t,n)}}function Vfe(e,t,n){var r,i,a;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},type:as(e.type),directives:ah(e,t,n),defaultValue:(a=(0,Fe.astFromValue)(e.defaultValue,e.type))!==null&&a!==void 0?a:void 0}}function jfe(e,t,n){var r,i;return{kind:Fe.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:Fe.Kind.STRING,value:e.description,block:!0}:void 0,name:{kind:Fe.Kind.NAME,value:e.name},directives:ah(e,t,n)}}function Kfe(e){return ih("deprecated",{reason:e},Fe.GraphQLDeprecatedDirective)}function ih(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,Fe.astFromValue)(o,i.type);c&&r.push({kind:Fe.Kind.ARGUMENT,name:{kind:Fe.Kind.NAME,value:a},value:c})}}else for(let i in t){let a=t[i],o=nh(a);o&&r.push({kind:Fe.Kind.ARGUMENT,name:{kind:Fe.Kind.NAME,value:i},value:o})}return{kind:Fe.Kind.DIRECTIVE,name:{kind:Fe.Kind.NAME,value:e},arguments:r}}function pb(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(ih(r,o,a));else n.push(ih(r,i,a))}return n}var yd=ys(ZE(),1);m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();m();T();N();function pn(e,t){if(!e)throw new Error(t)}var Gfe=34028234663852886e22,$fe=-34028234663852886e22,Qfe=4294967295,Yfe=2147483647,Jfe=-2147483648;function dd(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>Yfe||eQfe||e<0)throw new Error("invalid uint 32: "+e)}function sh(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>Gfe||e<$fe))throw new Error("invalid float 32: "+e)}var nj=Symbol("@bufbuild/protobuf/enum-type");function rj(e){let t=e[nj];return pn(t,"missing enum type on enum object"),t}function mb(e,t,n,r){e[nj]=Nb(t,n.map(i=>({no:i.no,name:i.name,localName:e[i.no]})),r)}function Nb(e,t,n){let r=Object.create(null),i=Object.create(null),a=[];for(let o of t){let c=aj(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 ij(e,t,n){let r={};for(let i of t){let a=aj(i);r[a.localName]=a.no,r[a.no]=a.localName}return mb(r,e,t,n),r}function aj(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}m();T();N();m();T();N();var we=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 sj(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 we),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 uj(){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 oh=4294967296;function Tb(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>=oh&&(i=i+(r/oh|0),r=r%oh)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?lj(r,i):hb(r,i)}function cj(e,t){let n=hb(e,t),r=n.hi&2147483648;r&&(n=lj(n.lo,n.hi));let i=Eb(n.lo,n.hi);return r?"-"+i:i}function Eb(e,t){if({lo:e,hi:t}=Hfe(e,t),t<=2097151)return String(oh*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()+oj(o)+oj(a)}function Hfe(e,t){return{lo:e>>>0,hi:t>>>0}}function hb(e,t){return{lo:e|0,hi:t|0}}function lj(e,t){return t=~t,e?e=~e+1:t+=1,hb(e,t)}var oj=e=>{let t=String(e);return"0000000".slice(t.length)+t};function yb(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 dj(){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 zfe(){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 S!="object"||typeof S.env!="object"||S.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 d=typeof l=="bigint"?l:BigInt(l);if(d>a||dc||dpn(/^-?[0-9]+$/.test(i),`int64 invalid: ${i}`),r=i=>pn(/^[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),Tb(i)},uEnc(i){return typeof i!="string"&&(i=i.toString()),r(i),Tb(i)},dec(i,a){return cj(i,a)},uDec(i,a){return Eb(i,a)}}}var Qn=zfe();m();T();N();var fe;(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"})(fe||(fe={}));var ba;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(ba||(ba={}));function Bs(e,t,n){if(t===n)return!0;if(e==fe.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(gp(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return dd(t),yb(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){sh(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){gp(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){dd(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return dd(t),t=(t<<1^t>>31)>>>0,yb(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),i=Qn.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=Qn.uEnc(t);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(t){let n=Qn.enc(t);return uh(n.lo,n.hi,this.buf),this}sint64(t){let n=Qn.enc(t),r=n.hi>>31,i=n.lo<<1^r,a=(n.hi<<1|n.lo>>>31)^r;return uh(i,a,this.buf),this}uint64(t){let n=Qn.uEnc(t);return uh(n.lo,n.hi,this.buf),this}},dh=class{constructor(t,n){this.varint64=uj,this.uint32=dj,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 Mn.Varint:for(;this.buf[this.pos++]&128;);break;case Mn.Bit64:this.pos+=4;case Mn.Bit32:this.pos+=4;break;case Mn.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Mn.StartGroup:let i;for(;(i=this.tag()[1])!==Mn.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 Qn.dec(...this.varint64())}uint64(){return Qn.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Qn.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 Qn.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Qn.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 fj(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 fh(e){let t=e.field.localName,n=Object.create(null);return n[t]=Wfe(e),[n,()=>n[t]]}function Wfe(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 Aa(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 pj(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 Us="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ph=[];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+=Us[i|r>>4],i=(r&15)<<2,n=2;break;case 2:t+=Us[i|r>>6],t+=Us[r&63],n=0;break}return n&&(t+=Us[i],t+="=",n==1&&(t+="=")),t}};m();T();N();function mj(e,t,n){Tj(t,e);let r=t.runtime.bin.makeReadOptions(n),i=pj(e.getType().runtime.bin.listUnknownFields(e),t.field),[a,o]=fh(t);for(let c of i)t.runtime.bin.readField(a,r.readerFactory(c.data),t.field,c.wireType,r);return o()}function Nj(e,t,n,r){Tj(t,e);let i=t.runtime.bin.makeReadOptions(r),a=t.runtime.bin.makeWriteOptions(r);if(gb(e,t)){let d=e.getType().runtime.bin.listUnknownFields(e).filter(p=>p.no!=t.field.no);e.getType().runtime.bin.discardUnknownFields(e);for(let p of d)e.getType().runtime.bin.onUnknownField(e,p.no,p.wireType,p.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 Tj(e,t){pn(e.extendee.typeName==t.getType().typeName,`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}m();T();N();function mh(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:!ch(e.T,t[n]);case"message":return t[n]!==void 0;case"map":return Object.keys(t[n]).length>0}}function _b(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?Aa(e.T,e.L):void 0;break;case"message":t[n]=void 0;break}}m();T();N();m();T();N();function Ra(e,t){if(e===null||typeof e!="object"||!Object.getOwnPropertyNames(we.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 Nh(e,t){return Ra(t)||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}var g1e={"google.protobuf.DoubleValue":fe.DOUBLE,"google.protobuf.FloatValue":fe.FLOAT,"google.protobuf.Int64Value":fe.INT64,"google.protobuf.UInt64Value":fe.UINT64,"google.protobuf.Int32Value":fe.INT32,"google.protobuf.UInt32Value":fe.UINT32,"google.protobuf.BoolValue":fe.BOOL,"google.protobuf.StringValue":fe.STRING,"google.protobuf.BytesValue":fe.BYTES};var Ej={ignoreUnknownFields:!1},hj={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Xfe(e){return e?Object.assign(Object.assign({},Ej),e):Ej}function Zfe(e){return e?Object.assign(Object.assign({},hj),e):hj}var hh=Symbol(),Th=Symbol();function gj(){return{makeReadOptions:Xfe,makeWriteOptions:Zfe,readMessage(e,t,n,r){if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.typeName} from JSON: ${os(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 d=i.get(l.oneof);if(d!==void 0)throw new Error(`cannot decode message ${e.typeName} from JSON: multiple keys for oneof "${l.oneof.name}" present: "${d}", "${o}"`);i.set(l.oneof,o)}yj(r,c,l,n,e)}else{let d=!1;if(a!=null&&a.findExtension&&o.startsWith("[")&&o.endsWith("]")){let p=a.findExtension(o.substring(1,o.length-1));if(p&&p.extendee.typeName==e.typeName){d=!0;let[E,I]=fh(p);yj(E,c,p.field,n,p),Nj(r,p,I(),n)}}if(!d&&!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(!mh(i,e)){if(i.req)throw"required field not set";if(!t.emitDefaultValues||!tpe(i))continue}let o=i.oneof?e[i.oneof.localName].value:e[i.localName],c=Ij(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&&gb(e,c)){let l=mj(e,c,t),d=Ij(c.field,l,t);d!==void 0&&(r[c.field.jsonName]=d)}}}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 _p(e,t,n!=null?n:ba.BIGINT,!0)},writeScalar(e,t,n){if(t!==void 0&&(n||ch(e,t)))return Eh(e,t)},debug:os}}function os(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 yj(e,t,n,r,i){let a=n.localName;if(n.repeated){if(pn(n.kind!="map"),t===null)return;if(!Array.isArray(t))throw new Error(`cannot decode field ${i.typeName}.${n.name} from JSON: ${os(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: ${os(c)}`);switch(n.kind){case"message":o.push(n.T.fromJson(c,r));break;case"enum":let l=vb(n.T,c,r.ignoreUnknownFields,!0);l!==Th&&o.push(l);break;case"scalar":try{o.push(_p(n.T,c,n.L,!0))}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${os(c)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}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: ${os(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 d;try{d=epe(n.K,c)}catch(p){let E=`cannot decode map key for field ${i.typeName}.${n.name} from JSON: ${os(t)}`;throw p instanceof Error&&p.message.length>0&&(E+=`: ${p.message}`),new Error(E)}switch(n.V.kind){case"message":o[d]=n.V.T.fromJson(l,r);break;case"enum":let p=vb(n.V.T,l,r.ignoreUnknownFields,!0);p!==Th&&(o[d]=p);break;case"scalar":try{o[d]=_p(n.V.T,l,ba.BIGINT,!0)}catch(E){let I=`cannot decode map value for field ${i.typeName}.${n.name} from JSON: ${os(t)}`;throw E instanceof Error&&E.message.length>0&&(I+=`: ${E.message}`),new Error(I)}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];Ra(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=vb(n.T,t,r.ignoreUnknownFields,!1);switch(l){case hh:_b(n,e);break;case Th:break;default:e[a]=l;break}break;case"scalar":try{let d=_p(n.T,t,n.L,!1);switch(d){case hh:_b(n,e);break;default:e[a]=d;break}}catch(d){let p=`cannot decode field ${i.typeName}.${n.name} from JSON: ${os(t)}`;throw d instanceof Error&&d.message.length>0&&(p+=`: ${d.message}`),new Error(p)}break}}function epe(e,t){if(e===fe.BOOL)switch(t){case"true":t=!0;break;case"false":t=!1;break}return _p(e,t,ba.BIGINT,!0).toString()}function _p(e,t,n,r){if(t===null)return r?Aa(e,n):hh;switch(e){case fe.DOUBLE:case fe.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==fe.FLOAT&&sh(i),i;case fe.INT32:case fe.FIXED32:case fe.SFIXED32:case fe.SINT32:case fe.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==fe.UINT32||e==fe.FIXED32?gp(a):dd(a),a;case fe.INT64:case fe.SFIXED64:case fe.SINT64:if(typeof t!="number"&&typeof t!="string")break;let o=Qn.parse(t);return n?o.toString():o;case fe.FIXED64:case fe.UINT64:if(typeof t!="number"&&typeof t!="string")break;let c=Qn.uParse(t);return n?c.toString():c;case fe.BOOL:if(typeof t!="boolean")break;return t;case fe.STRING:if(typeof t!="string")break;try{encodeURIComponent(t)}catch(l){throw new Error("invalid UTF8")}return t;case fe.BYTES:if(t==="")return new Uint8Array(0);if(typeof t!="string")break;return Ib.dec(t)}throw new Error}function vb(e,t,n,r){if(t===null)return e.typeName=="google.protobuf.NullValue"?0:r?e.values[0].no:hh;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 Th;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${os(t)}`)}function tpe(e){return e.repeated||e.kind=="map"?!0:!(e.oneof||e.kind=="message"||e.opt||e.req)}function Ij(e,t,n){if(e.kind=="map"){pn(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()]=Eh(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()]=Ob(a,c,n.enumAsInteger);break}return n.emitDefaultValues||i.length>0?r:void 0}if(e.repeated){pn(Array.isArray(t));let r=[];switch(e.kind){case"scalar":for(let i=0;i0?r:void 0}switch(e.kind){case"scalar":return Eh(e.T,t);case"enum":return Ob(e.T,t,n.enumAsInteger);case"message":return Nh(e.T,t).toJson(n)}}function Ob(e,t,n){var r;if(pn(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 Eh(e,t){switch(e){case fe.INT32:case fe.SFIXED32:case fe.SINT32:case fe.FIXED32:case fe.UINT32:return pn(typeof t=="number"),t;case fe.FLOAT:case fe.DOUBLE:return pn(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case fe.STRING:return pn(typeof t=="string"),t;case fe.BOOL:return pn(typeof t=="boolean"),t;case fe.UINT64:case fe.FIXED64:case fe.INT64:case fe.SFIXED64:case fe.SINT64:return pn(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),t.toString();case fe.BYTES:return pn(t instanceof Uint8Array),Ib.enc(t)}}m();T();N();var fd=Symbol("@bufbuild/protobuf/unknown-fields"),_j={readUnknownFields:!0,readerFactory:e=>new dh(e)},vj={writeUnknownFields:!0,writerFactory:()=>new lh};function npe(e){return e?Object.assign(Object.assign({},_j),e):_j}function rpe(e){return e?Object.assign(Object.assign({},vj),e):vj}function bj(){return{makeReadOptions:npe,makeWriteOptions:rpe,listUnknownFields(e){var t;return(t=e[fd])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[fd]},writeUnknownFields(e,t){let r=e[fd];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[fd])||(i[fd]=[]),i[fd].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=ape),a){let I=e[o];if(r==Mn.LengthDelimited&&c!=fe.STRING&&c!=fe.BYTES){let A=t.uint32()+t.pos;for(;t.posRa(I,E)?I:new E(I));else{let I=o[i];E.fieldWrapper?E.typeName==="google.protobuf.BytesValue"?a[i]=Op(I):a[i]=I:a[i]=Ra(I,E)?I:new E(I)}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)=>Bs(r.T,o,a[c]));case"enum":return i.every((o,c)=>Bs(fe.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 Bs(fe.INT32,i,a);case"scalar":return Bs(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 Bs(fe.INT32,i.value,a.value);case"scalar":return Bs(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(p=>l.equals(i[p],a[p]));case"enum":return c.every(p=>Bs(fe.INT32,i[p],a[p]));case"scalar":let d=r.V.T;return c.every(p=>Bs(d,i[p],a[p]))}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(gh);else if(i.kind=="map"){o=r[i.localName];for(let[c,l]of Object.entries(a))o[c]=gh(l)}else i.kind=="oneof"?o=i.findField(a.case)?{case:a.case,value:gh(a.value)}:{case:void 0}:o=gh(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 gh(e){if(e===void 0)return e;if(Ra(e))return e.clone();if(e instanceof Uint8Array){let t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function Op(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Pj(e,t,n){return{syntax:e,json:gj(),bin:bj(),util:Object.assign(Object.assign({},Rj()),{newFieldList:t,initFields:n}),makeMessageType(r,i,a){return sj(this,r,i,a)},makeEnum:ij,makeEnumType:Nb,getEnumType:rj,makeExtension(r,i,a){return fj(this,r,i,a)}}}m();T();N();var _h=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 Sb(e,t){let n=Lj(e);return t?n:dpe(lpe(n))}function Fj(e){return Sb(e,!1)}var wj=Lj;function Lj(e){let t=!1,n=[];for(let r=0;r`${e}$`,lpe=e=>cpe.has(e)?Cj(e):e,dpe=e=>upe.has(e)?Cj(e):e;var vh=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=Fj(t)}addField(t){pn(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 _h(e,t=>Bj(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]=Aa(t.T,t.L);break;case"message":break}}});var pd;(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"})(pd||(pd={}));C.util.setEnumType(pd,"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 ks;(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"})(ks||(ks={}));C.util.setEnumType(ks,"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 Ms;(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"})(Ms||(Ms={}));C.util.setEnumType(Ms,"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"}]);var $j=ys(Oe(),1);m();T();N();var Db;(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"})(Db||(Db={}));C.util.setEnumType(Db,"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 jc;(function(e){e[e.OBJECT_FIELD=0]="OBJECT_FIELD",e[e.FIELD_ARGUMENT=1]="FIELD_ARGUMENT"})(jc||(jc={}));C.util.setEnumType(jc,"wg.cosmo.node.v1.ArgumentSource",[{no:0,name:"OBJECT_FIELD"},{no:1,name:"FIELD_ARGUMENT"}]);var wu;(function(e){e[e.STATIC=0]="STATIC",e[e.GRAPHQL=1]="GRAPHQL",e[e.PUBSUB=2]="PUBSUB"})(wu||(wu={}));C.util.setEnumType(wu,"wg.cosmo.node.v1.DataSourceKind",[{no:0,name:"STATIC"},{no:1,name:"GRAPHQL"},{no:2,name:"PUBSUB"}]);var Sp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.RESOLVE=1]="RESOLVE",e[e.REQUIRES=2]="REQUIRES"})(Sp||(Sp={}));C.util.setEnumType(Sp,"wg.cosmo.node.v1.LookupType",[{no:0,name:"LOOKUP_TYPE_UNSPECIFIED"},{no:1,name:"LOOKUP_TYPE_RESOLVE"},{no:2,name:"LOOKUP_TYPE_REQUIRES"}]);var Dp;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.QUERY=1]="QUERY",e[e.MUTATION=2]="MUTATION",e[e.SUBSCRIPTION=3]="SUBSCRIPTION"})(Dp||(Dp={}));C.util.setEnumType(Dp,"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 Jo;(function(e){e[e.PUBLISH=0]="PUBLISH",e[e.REQUEST=1]="REQUEST",e[e.SUBSCRIBE=2]="SUBSCRIBE"})(Jo||(Jo={}));C.util.setEnumType(Jo,"wg.cosmo.node.v1.EventType",[{no:0,name:"PUBLISH"},{no:1,name:"REQUEST"},{no:2,name:"SUBSCRIBE"}]);var Lu;(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"})(Lu||(Lu={}));C.util.setEnumType(Lu,"wg.cosmo.node.v1.ConfigurationVariableKind",[{no:0,name:"STATIC_CONFIGURATION_VARIABLE"},{no:1,name:"ENV_CONFIGURATION_VARIABLE"},{no:2,name:"PLACEHOLDER_CONFIGURATION_VARIABLE"}]);var Kc;(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"})(Kc||(Kc={}));C.util.setEnumType(Kc,"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 xs=class xs extends we{constructor(n){super();_(this,"id","");_(this,"name","");_(this,"routingUrl","");C.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 C.util.equals(xs,n,r)}};_(xs,"runtime",C),_(xs,"typeName","wg.cosmo.node.v1.Subgraph"),_(xs,"fields",C.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 Oh=xs,qs=class qs extends we{constructor(n){super();_(this,"configByFeatureFlagName",{});C.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 C.util.equals(qs,n,r)}};_(qs,"runtime",C),_(qs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfigs"),_(qs,"fields",C.util.newFieldList(()=>[{no:1,name:"config_by_feature_flag_name",kind:"map",K:9,V:{kind:"message",T:Ab}}]));var bb=qs,Vs=class Vs extends we{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);C.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 C.util.equals(Vs,n,r)}};_(Vs,"runtime",C),_(Vs,"typeName","wg.cosmo.node.v1.FeatureFlagRouterExecutionConfig"),_(Vs,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:md},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Oh,repeated:!0}]));var Ab=Vs,js=class js extends we{constructor(n){super();_(this,"engineConfig");_(this,"version","");_(this,"subgraphs",[]);_(this,"featureFlagConfigs");_(this,"compatibilityVersion","");C.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 C.util.equals(js,n,r)}};_(js,"runtime",C),_(js,"typeName","wg.cosmo.node.v1.RouterConfig"),_(js,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_config",kind:"message",T:md},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"subgraphs",kind:"message",T:Oh,repeated:!0},{no:4,name:"feature_flag_configs",kind:"message",T:bb,opt:!0},{no:5,name:"compatibility_version",kind:"scalar",T:9}]));var bp=js,Ks=class Ks extends we{constructor(n){super();_(this,"code",pd.OK);_(this,"details");C.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 C.util.equals(Ks,n,r)}};_(Ks,"runtime",C),_(Ks,"typeName","wg.cosmo.node.v1.Response"),_(Ks,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"enum",T:C.getEnumType(pd)},{no:2,name:"details",kind:"scalar",T:9,opt:!0}]));var Rb=Ks,Gs=class Gs extends we{constructor(n){super();_(this,"code",0);_(this,"message","");C.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 C.util.equals(Gs,n,r)}};_(Gs,"runtime",C),_(Gs,"typeName","wg.cosmo.node.v1.ResponseStatus"),_(Gs,"fields",C.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9}]));var Uj=Gs,$s=class $s extends we{constructor(n){super();_(this,"accountLimits");_(this,"graphPublicKey","");C.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 C.util.equals($s,n,r)}};_($s,"runtime",C),_($s,"typeName","wg.cosmo.node.v1.RegistrationInfo"),_($s,"fields",C.util.newFieldList(()=>[{no:1,name:"account_limits",kind:"message",T:Fb},{no:2,name:"graph_public_key",kind:"scalar",T:9}]));var Pb=$s,Qs=class Qs extends we{constructor(n){super();_(this,"traceSamplingRate",0);C.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 C.util.equals(Qs,n,r)}};_(Qs,"runtime",C),_(Qs,"typeName","wg.cosmo.node.v1.AccountLimits"),_(Qs,"fields",C.util.newFieldList(()=>[{no:1,name:"trace_sampling_rate",kind:"scalar",T:2}]));var Fb=Qs,Ys=class Ys extends we{constructor(t){super(),C.util.initPartial(t,this)}static fromBinary(t,n){return new Ys().fromBinary(t,n)}static fromJson(t,n){return new Ys().fromJson(t,n)}static fromJsonString(t,n){return new Ys().fromJsonString(t,n)}static equals(t,n){return C.util.equals(Ys,t,n)}};_(Ys,"runtime",C),_(Ys,"typeName","wg.cosmo.node.v1.SelfRegisterRequest"),_(Ys,"fields",C.util.newFieldList(()=>[]));var kj=Ys,Js=class Js extends we{constructor(n){super();_(this,"response");_(this,"registrationInfo");C.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 C.util.equals(Js,n,r)}};_(Js,"runtime",C),_(Js,"typeName","wg.cosmo.node.v1.SelfRegisterResponse"),_(Js,"fields",C.util.newFieldList(()=>[{no:1,name:"response",kind:"message",T:Rb},{no:2,name:"registrationInfo",kind:"message",T:Pb,opt:!0}]));var Mj=Js,Hs=class Hs extends we{constructor(n){super();_(this,"defaultFlushInterval",Qn.zero);_(this,"datasourceConfigurations",[]);_(this,"fieldConfigurations",[]);_(this,"graphqlSchema","");_(this,"typeConfigurations",[]);_(this,"stringStorage",{});_(this,"graphqlClientSchema");C.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 C.util.equals(Hs,n,r)}};_(Hs,"runtime",C),_(Hs,"typeName","wg.cosmo.node.v1.EngineConfiguration"),_(Hs,"fields",C.util.newFieldList(()=>[{no:1,name:"defaultFlushInterval",kind:"scalar",T:3},{no:2,name:"datasource_configurations",kind:"message",T:Ap,repeated:!0},{no:3,name:"field_configurations",kind:"message",T:Fp,repeated:!0},{no:4,name:"graphqlSchema",kind:"scalar",T:9},{no:5,name:"type_configurations",kind:"message",T:wb,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 md=Hs,zs=class zs extends we{constructor(n){super();_(this,"kind",wu.STATIC);_(this,"rootNodes",[]);_(this,"childNodes",[]);_(this,"overrideFieldPathFromAlias",!1);_(this,"customGraphql");_(this,"customStatic");_(this,"directives",[]);_(this,"requestTimeoutSeconds",Qn.zero);_(this,"id","");_(this,"keys",[]);_(this,"provides",[]);_(this,"requires",[]);_(this,"customEvents");_(this,"entityInterfaces",[]);_(this,"interfaceObjects",[]);C.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 C.util.equals(zs,n,r)}};_(zs,"runtime",C),_(zs,"typeName","wg.cosmo.node.v1.DataSourceConfiguration"),_(zs,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(wu)},{no:2,name:"root_nodes",kind:"message",T:Nd,repeated:!0},{no:3,name:"child_nodes",kind:"message",T:Nd,repeated:!0},{no:4,name:"override_field_path_from_alias",kind:"scalar",T:8},{no:5,name:"custom_graphql",kind:"message",T:Cp},{no:6,name:"custom_static",kind:"message",T:Gb},{no:7,name:"directives",kind:"message",T:$b,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:Vc,repeated:!0},{no:11,name:"provides",kind:"message",T:Vc,repeated:!0},{no:12,name:"requires",kind:"message",T:Vc,repeated:!0},{no:13,name:"custom_events",kind:"message",T:$c},{no:14,name:"entity_interfaces",kind:"message",T:Td,repeated:!0},{no:15,name:"interface_objects",kind:"message",T:Td,repeated:!0}]));var Ap=zs,Ws=class Ws extends we{constructor(n){super();_(this,"name","");_(this,"sourceType",jc.OBJECT_FIELD);C.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 C.util.equals(Ws,n,r)}};_(Ws,"runtime",C),_(Ws,"typeName","wg.cosmo.node.v1.ArgumentConfiguration"),_(Ws,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"source_type",kind:"enum",T:C.getEnumType(jc)}]));var Rp=Ws,Xs=class Xs extends we{constructor(n){super();_(this,"requiredAndScopes",[]);C.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 C.util.equals(Xs,n,r)}};_(Xs,"runtime",C),_(Xs,"typeName","wg.cosmo.node.v1.Scopes"),_(Xs,"fields",C.util.newFieldList(()=>[{no:1,name:"required_and_scopes",kind:"scalar",T:9,repeated:!0}]));var Gc=Xs,Zs=class Zs extends we{constructor(n){super();_(this,"requiresAuthentication",!1);_(this,"requiredOrScopes",[]);_(this,"requiredOrScopesByOr",[]);C.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 C.util.equals(Zs,n,r)}};_(Zs,"runtime",C),_(Zs,"typeName","wg.cosmo.node.v1.AuthorizationConfiguration"),_(Zs,"fields",C.util.newFieldList(()=>[{no:1,name:"requires_authentication",kind:"scalar",T:8},{no:2,name:"required_or_scopes",kind:"message",T:Gc,repeated:!0},{no:3,name:"required_or_scopes_by_or",kind:"message",T:Gc,repeated:!0}]));var Pp=Zs,eo=class eo extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"argumentsConfiguration",[]);_(this,"authorizationConfiguration");_(this,"subscriptionFilterCondition");C.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 C.util.equals(eo,n,r)}};_(eo,"runtime",C),_(eo,"typeName","wg.cosmo.node.v1.FieldConfiguration"),_(eo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"arguments_configuration",kind:"message",T:Rp,repeated:!0},{no:4,name:"authorization_configuration",kind:"message",T:Pp},{no:5,name:"subscription_filter_condition",kind:"message",T:Cu,opt:!0}]));var Fp=eo,to=class to extends we{constructor(n){super();_(this,"typeName","");_(this,"renameTo","");C.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 C.util.equals(to,n,r)}};_(to,"runtime",C),_(to,"typeName","wg.cosmo.node.v1.TypeConfiguration"),_(to,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var wb=to,no=class no extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldNames",[]);_(this,"externalFieldNames",[]);_(this,"requireFetchReasonsFieldNames",[]);C.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 C.util.equals(no,n,r)}};_(no,"runtime",C),_(no,"typeName","wg.cosmo.node.v1.TypeField"),_(no,"fields",C.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},{no:4,name:"require_fetch_reasons_field_names",kind:"scalar",T:9,repeated:!0}]));var Nd=no,ro=class ro extends we{constructor(n){super();_(this,"fieldName","");_(this,"typeName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ro().fromBinary(n,r)}static fromJson(n,r){return new ro().fromJson(n,r)}static fromJsonString(n,r){return new ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ro,n,r)}};_(ro,"runtime",C),_(ro,"typeName","wg.cosmo.node.v1.FieldCoordinates"),_(ro,"fields",C.util.newFieldList(()=>[{no:1,name:"field_name",kind:"scalar",T:9},{no:2,name:"type_name",kind:"scalar",T:9}]));var wp=ro,io=class io extends we{constructor(n){super();_(this,"fieldCoordinatesPath",[]);_(this,"fieldPath",[]);C.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 C.util.equals(io,n,r)}};_(io,"runtime",C),_(io,"typeName","wg.cosmo.node.v1.FieldSetCondition"),_(io,"fields",C.util.newFieldList(()=>[{no:1,name:"field_coordinates_path",kind:"message",T:wp,repeated:!0},{no:2,name:"field_path",kind:"scalar",T:9,repeated:!0}]));var Lp=io,ao=class ao extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");_(this,"selectionSet","");_(this,"disableEntityResolver",!1);_(this,"conditions",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ao().fromBinary(n,r)}static fromJson(n,r){return new ao().fromJson(n,r)}static fromJsonString(n,r){return new ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ao,n,r)}};_(ao,"runtime",C),_(ao,"typeName","wg.cosmo.node.v1.RequiredField"),_(ao,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9},{no:3,name:"selection_set",kind:"scalar",T:9},{no:4,name:"disable_entity_resolver",kind:"scalar",T:8},{no:5,name:"conditions",kind:"message",T:Lp,repeated:!0}]));var Vc=ao,so=class so extends we{constructor(n){super();_(this,"interfaceTypeName","");_(this,"concreteTypeNames",[]);C.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 C.util.equals(so,n,r)}};_(so,"runtime",C),_(so,"typeName","wg.cosmo.node.v1.EntityInterfaceConfiguration"),_(so,"fields",C.util.newFieldList(()=>[{no:1,name:"interface_type_name",kind:"scalar",T:9},{no:2,name:"concrete_type_names",kind:"scalar",T:9,repeated:!0}]));var Td=so,oo=class oo extends we{constructor(n){super();_(this,"url");_(this,"method",Kc.GET);_(this,"header",{});_(this,"body");_(this,"query",[]);_(this,"urlEncodeBody",!1);_(this,"mtls");_(this,"baseUrl");_(this,"path");_(this,"httpProxyUrl");C.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 C.util.equals(oo,n,r)}};_(oo,"runtime",C),_(oo,"typeName","wg.cosmo.node.v1.FetchConfiguration"),_(oo,"fields",C.util.newFieldList(()=>[{no:1,name:"url",kind:"message",T:$r},{no:2,name:"method",kind:"enum",T:C.getEnumType(Kc)},{no:3,name:"header",kind:"map",K:9,V:{kind:"message",T:Yb}},{no:4,name:"body",kind:"message",T:$r},{no:5,name:"query",kind:"message",T:Qb,repeated:!0},{no:7,name:"url_encode_body",kind:"scalar",T:8},{no:8,name:"mtls",kind:"message",T:Jb},{no:9,name:"base_url",kind:"message",T:$r},{no:10,name:"path",kind:"message",T:$r},{no:11,name:"http_proxy_url",kind:"message",T:$r,opt:!0}]));var Lb=oo,uo=class uo extends we{constructor(n){super();_(this,"statusCode",Qn.zero);_(this,"typeName","");_(this,"injectStatusCodeIntoBody",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new uo().fromBinary(n,r)}static fromJson(n,r){return new uo().fromJson(n,r)}static fromJsonString(n,r){return new uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(uo,n,r)}};_(uo,"runtime",C),_(uo,"typeName","wg.cosmo.node.v1.StatusCodeTypeMapping"),_(uo,"fields",C.util.newFieldList(()=>[{no:1,name:"status_code",kind:"scalar",T:3},{no:2,name:"type_name",kind:"scalar",T:9},{no:3,name:"inject_status_code_into_body",kind:"scalar",T:8}]));var xj=uo,co=class co extends we{constructor(n){super();_(this,"fetch");_(this,"subscription");_(this,"federation");_(this,"upstreamSchema");_(this,"customScalarTypeFields",[]);_(this,"grpc");C.util.initPartial(n,this)}static fromBinary(n,r){return new co().fromBinary(n,r)}static fromJson(n,r){return new co().fromJson(n,r)}static fromJsonString(n,r){return new co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(co,n,r)}};_(co,"runtime",C),_(co,"typeName","wg.cosmo.node.v1.DataSourceCustom_GraphQL"),_(co,"fields",C.util.newFieldList(()=>[{no:1,name:"fetch",kind:"message",T:Lb},{no:2,name:"subscription",kind:"message",T:Hb},{no:3,name:"federation",kind:"message",T:zb},{no:4,name:"upstream_schema",kind:"message",T:qp},{no:6,name:"custom_scalar_type_fields",kind:"message",T:Wb,repeated:!0},{no:7,name:"grpc",kind:"message",T:Ed}]));var Cp=co,lo=class lo extends we{constructor(n){super();_(this,"mapping");_(this,"protoSchema","");_(this,"plugin");C.util.initPartial(n,this)}static fromBinary(n,r){return new lo().fromBinary(n,r)}static fromJson(n,r){return new lo().fromJson(n,r)}static fromJsonString(n,r){return new lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(lo,n,r)}};_(lo,"runtime",C),_(lo,"typeName","wg.cosmo.node.v1.GRPCConfiguration"),_(lo,"fields",C.util.newFieldList(()=>[{no:1,name:"mapping",kind:"message",T:Bb},{no:2,name:"proto_schema",kind:"scalar",T:9},{no:3,name:"plugin",kind:"message",T:Bp}]));var Ed=lo,fo=class fo extends we{constructor(n){super();_(this,"repository","");_(this,"reference","");C.util.initPartial(n,this)}static fromBinary(n,r){return new fo().fromBinary(n,r)}static fromJson(n,r){return new fo().fromJson(n,r)}static fromJsonString(n,r){return new fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(fo,n,r)}};_(fo,"runtime",C),_(fo,"typeName","wg.cosmo.node.v1.ImageReference"),_(fo,"fields",C.util.newFieldList(()=>[{no:1,name:"repository",kind:"scalar",T:9},{no:2,name:"reference",kind:"scalar",T:9}]));var Cb=fo,po=class po extends we{constructor(n){super();_(this,"name","");_(this,"version","");_(this,"imageReference");C.util.initPartial(n,this)}static fromBinary(n,r){return new po().fromBinary(n,r)}static fromJson(n,r){return new po().fromJson(n,r)}static fromJsonString(n,r){return new po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(po,n,r)}};_(po,"runtime",C),_(po,"typeName","wg.cosmo.node.v1.PluginConfiguration"),_(po,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"image_reference",kind:"message",T:Cb,opt:!0}]));var Bp=po,mo=class mo extends we{constructor(n){super();_(this,"enabled",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new mo().fromBinary(n,r)}static fromJson(n,r){return new mo().fromJson(n,r)}static fromJsonString(n,r){return new mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(mo,n,r)}};_(mo,"runtime",C),_(mo,"typeName","wg.cosmo.node.v1.SSLConfiguration"),_(mo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8}]));var qj=mo,No=class No extends we{constructor(n){super();_(this,"version",0);_(this,"service","");_(this,"operationMappings",[]);_(this,"entityMappings",[]);_(this,"typeFieldMappings",[]);_(this,"enumMappings",[]);_(this,"resolveMappings",[]);C.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 C.util.equals(No,n,r)}};_(No,"runtime",C),_(No,"typeName","wg.cosmo.node.v1.GRPCMapping"),_(No,"fields",C.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:Mb,repeated:!0},{no:4,name:"entity_mappings",kind:"message",T:xb,repeated:!0},{no:5,name:"type_field_mappings",kind:"message",T:qb,repeated:!0},{no:6,name:"enum_mappings",kind:"message",T:jb,repeated:!0},{no:7,name:"resolve_mappings",kind:"message",T:Ub,repeated:!0}]));var Bb=No,To=class To extends we{constructor(n){super();_(this,"type",Sp.UNSPECIFIED);_(this,"lookupMapping");_(this,"rpc","");_(this,"request","");_(this,"response","");C.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 C.util.equals(To,n,r)}};_(To,"runtime",C),_(To,"typeName","wg.cosmo.node.v1.LookupMapping"),_(To,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(Sp)},{no:2,name:"lookup_mapping",kind:"message",T:kb},{no:3,name:"rpc",kind:"scalar",T:9},{no:4,name:"request",kind:"scalar",T:9},{no:5,name:"response",kind:"scalar",T:9}]));var Ub=To,Eo=class Eo extends we{constructor(n){super();_(this,"type","");_(this,"fieldMapping");C.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 C.util.equals(Eo,n,r)}};_(Eo,"runtime",C),_(Eo,"typeName","wg.cosmo.node.v1.LookupFieldMapping"),_(Eo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mapping",kind:"message",T:Sh}]));var kb=Eo,ho=class ho extends we{constructor(n){super();_(this,"type",Dp.UNSPECIFIED);_(this,"original","");_(this,"mapped","");_(this,"request","");_(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new ho().fromBinary(n,r)}static fromJson(n,r){return new ho().fromJson(n,r)}static fromJsonString(n,r){return new ho().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ho,n,r)}};_(ho,"runtime",C),_(ho,"typeName","wg.cosmo.node.v1.OperationMapping"),_(ho,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"enum",T:C.getEnumType(Dp)},{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 Mb=ho,yo=class yo extends we{constructor(n){super();_(this,"typeName","");_(this,"kind","");_(this,"key","");_(this,"rpc","");_(this,"request","");_(this,"response","");C.util.initPartial(n,this)}static fromBinary(n,r){return new yo().fromBinary(n,r)}static fromJson(n,r){return new yo().fromJson(n,r)}static fromJsonString(n,r){return new yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(yo,n,r)}};_(yo,"runtime",C),_(yo,"typeName","wg.cosmo.node.v1.EntityMapping"),_(yo,"fields",C.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 xb=yo,Io=class Io extends we{constructor(n){super();_(this,"type","");_(this,"fieldMappings",[]);C.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 C.util.equals(Io,n,r)}};_(Io,"runtime",C),_(Io,"typeName","wg.cosmo.node.v1.TypeFieldMapping"),_(Io,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"field_mappings",kind:"message",T:Sh,repeated:!0}]));var qb=Io,go=class go extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");_(this,"argumentMappings",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new go().fromBinary(n,r)}static fromJson(n,r){return new go().fromJson(n,r)}static fromJsonString(n,r){return new go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(go,n,r)}};_(go,"runtime",C),_(go,"typeName","wg.cosmo.node.v1.FieldMapping"),_(go,"fields",C.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:Vb,repeated:!0}]));var Sh=go,_o=class _o extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");C.util.initPartial(n,this)}static fromBinary(n,r){return new _o().fromBinary(n,r)}static fromJson(n,r){return new _o().fromJson(n,r)}static fromJsonString(n,r){return new _o().fromJsonString(n,r)}static equals(n,r){return C.util.equals(_o,n,r)}};_(_o,"runtime",C),_(_o,"typeName","wg.cosmo.node.v1.ArgumentMapping"),_(_o,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var Vb=_o,vo=class vo extends we{constructor(n){super();_(this,"type","");_(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new vo().fromBinary(n,r)}static fromJson(n,r){return new vo().fromJson(n,r)}static fromJsonString(n,r){return new vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(vo,n,r)}};_(vo,"runtime",C),_(vo,"typeName","wg.cosmo.node.v1.EnumMapping"),_(vo,"fields",C.util.newFieldList(()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"values",kind:"message",T:Kb,repeated:!0}]));var jb=vo,Oo=class Oo extends we{constructor(n){super();_(this,"original","");_(this,"mapped","");C.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 C.util.equals(Oo,n,r)}};_(Oo,"runtime",C),_(Oo,"typeName","wg.cosmo.node.v1.EnumValueMapping"),_(Oo,"fields",C.util.newFieldList(()=>[{no:1,name:"original",kind:"scalar",T:9},{no:2,name:"mapped",kind:"scalar",T:9}]));var Kb=Oo,So=class So extends we{constructor(n){super();_(this,"consumerName","");_(this,"streamName","");_(this,"consumerInactiveThreshold",0);C.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 C.util.equals(So,n,r)}};_(So,"runtime",C),_(So,"typeName","wg.cosmo.node.v1.NatsStreamConfiguration"),_(So,"fields",C.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 Up=So,Do=class Do extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"subjects",[]);_(this,"streamConfiguration");C.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 C.util.equals(Do,n,r)}};_(Do,"runtime",C),_(Do,"typeName","wg.cosmo.node.v1.NatsEventConfiguration"),_(Do,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Ho},{no:2,name:"subjects",kind:"scalar",T:9,repeated:!0},{no:3,name:"stream_configuration",kind:"message",T:Up}]));var kp=Do,bo=class bo extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"topics",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new bo().fromBinary(n,r)}static fromJson(n,r){return new bo().fromJson(n,r)}static fromJsonString(n,r){return new bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(bo,n,r)}};_(bo,"runtime",C),_(bo,"typeName","wg.cosmo.node.v1.KafkaEventConfiguration"),_(bo,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Ho},{no:2,name:"topics",kind:"scalar",T:9,repeated:!0}]));var Mp=bo,Ao=class Ao extends we{constructor(n){super();_(this,"engineEventConfiguration");_(this,"channels",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Ao().fromBinary(n,r)}static fromJson(n,r){return new Ao().fromJson(n,r)}static fromJsonString(n,r){return new Ao().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ao,n,r)}};_(Ao,"runtime",C),_(Ao,"typeName","wg.cosmo.node.v1.RedisEventConfiguration"),_(Ao,"fields",C.util.newFieldList(()=>[{no:1,name:"engine_event_configuration",kind:"message",T:Ho},{no:2,name:"channels",kind:"scalar",T:9,repeated:!0}]));var xp=Ao,Ro=class Ro extends we{constructor(n){super();_(this,"providerId","");_(this,"type",Jo.PUBLISH);_(this,"typeName","");_(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ro().fromBinary(n,r)}static fromJson(n,r){return new Ro().fromJson(n,r)}static fromJsonString(n,r){return new Ro().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ro,n,r)}};_(Ro,"runtime",C),_(Ro,"typeName","wg.cosmo.node.v1.EngineEventConfiguration"),_(Ro,"fields",C.util.newFieldList(()=>[{no:1,name:"provider_id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:C.getEnumType(Jo)},{no:3,name:"type_name",kind:"scalar",T:9},{no:4,name:"field_name",kind:"scalar",T:9}]));var Ho=Ro,Po=class Po extends we{constructor(n){super();_(this,"nats",[]);_(this,"kafka",[]);_(this,"redis",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Po().fromBinary(n,r)}static fromJson(n,r){return new Po().fromJson(n,r)}static fromJsonString(n,r){return new Po().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Po,n,r)}};_(Po,"runtime",C),_(Po,"typeName","wg.cosmo.node.v1.DataSourceCustomEvents"),_(Po,"fields",C.util.newFieldList(()=>[{no:1,name:"nats",kind:"message",T:kp,repeated:!0},{no:2,name:"kafka",kind:"message",T:Mp,repeated:!0},{no:3,name:"redis",kind:"message",T:xp,repeated:!0}]));var $c=Po,Fo=class Fo extends we{constructor(n){super();_(this,"data");C.util.initPartial(n,this)}static fromBinary(n,r){return new Fo().fromBinary(n,r)}static fromJson(n,r){return new Fo().fromJson(n,r)}static fromJsonString(n,r){return new Fo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Fo,n,r)}};_(Fo,"runtime",C),_(Fo,"typeName","wg.cosmo.node.v1.DataSourceCustom_Static"),_(Fo,"fields",C.util.newFieldList(()=>[{no:1,name:"data",kind:"message",T:$r}]));var Gb=Fo,wo=class wo extends we{constructor(n){super();_(this,"kind",Lu.STATIC_CONFIGURATION_VARIABLE);_(this,"staticVariableContent","");_(this,"environmentVariableName","");_(this,"environmentVariableDefaultValue","");_(this,"placeholderVariableName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new wo().fromBinary(n,r)}static fromJson(n,r){return new wo().fromJson(n,r)}static fromJsonString(n,r){return new wo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(wo,n,r)}};_(wo,"runtime",C),_(wo,"typeName","wg.cosmo.node.v1.ConfigurationVariable"),_(wo,"fields",C.util.newFieldList(()=>[{no:1,name:"kind",kind:"enum",T:C.getEnumType(Lu)},{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 $r=wo,Lo=class Lo extends we{constructor(n){super();_(this,"directiveName","");_(this,"renameTo","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Lo().fromBinary(n,r)}static fromJson(n,r){return new Lo().fromJson(n,r)}static fromJsonString(n,r){return new Lo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Lo,n,r)}};_(Lo,"runtime",C),_(Lo,"typeName","wg.cosmo.node.v1.DirectiveConfiguration"),_(Lo,"fields",C.util.newFieldList(()=>[{no:1,name:"directive_name",kind:"scalar",T:9},{no:2,name:"rename_to",kind:"scalar",T:9}]));var $b=Lo,Co=class Co extends we{constructor(n){super();_(this,"name","");_(this,"value","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Co().fromBinary(n,r)}static fromJson(n,r){return new Co().fromJson(n,r)}static fromJsonString(n,r){return new Co().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Co,n,r)}};_(Co,"runtime",C),_(Co,"typeName","wg.cosmo.node.v1.URLQueryConfiguration"),_(Co,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]));var Qb=Co,Bo=class Bo extends we{constructor(n){super();_(this,"values",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new Bo().fromBinary(n,r)}static fromJson(n,r){return new Bo().fromJson(n,r)}static fromJsonString(n,r){return new Bo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Bo,n,r)}};_(Bo,"runtime",C),_(Bo,"typeName","wg.cosmo.node.v1.HTTPHeader"),_(Bo,"fields",C.util.newFieldList(()=>[{no:1,name:"values",kind:"message",T:$r,repeated:!0}]));var Yb=Bo,Uo=class Uo extends we{constructor(n){super();_(this,"key");_(this,"cert");_(this,"insecureSkipVerify",!1);C.util.initPartial(n,this)}static fromBinary(n,r){return new Uo().fromBinary(n,r)}static fromJson(n,r){return new Uo().fromJson(n,r)}static fromJsonString(n,r){return new Uo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Uo,n,r)}};_(Uo,"runtime",C),_(Uo,"typeName","wg.cosmo.node.v1.MTLSConfiguration"),_(Uo,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"message",T:$r},{no:2,name:"cert",kind:"message",T:$r},{no:3,name:"insecureSkipVerify",kind:"scalar",T:8}]));var Jb=Uo,ko=class ko extends we{constructor(n){super();_(this,"enabled",!1);_(this,"url");_(this,"useSSE");_(this,"protocol");_(this,"websocketSubprotocol");C.util.initPartial(n,this)}static fromBinary(n,r){return new ko().fromBinary(n,r)}static fromJson(n,r){return new ko().fromJson(n,r)}static fromJsonString(n,r){return new ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ko,n,r)}};_(ko,"runtime",C),_(ko,"typeName","wg.cosmo.node.v1.GraphQLSubscriptionConfiguration"),_(ko,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"url",kind:"message",T:$r},{no:3,name:"useSSE",kind:"scalar",T:8,opt:!0},{no:4,name:"protocol",kind:"enum",T:C.getEnumType(ks),opt:!0},{no:5,name:"websocketSubprotocol",kind:"enum",T:C.getEnumType(Ms),opt:!0}]));var Hb=ko,Mo=class Mo extends we{constructor(n){super();_(this,"enabled",!1);_(this,"serviceSdl","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Mo().fromBinary(n,r)}static fromJson(n,r){return new Mo().fromJson(n,r)}static fromJsonString(n,r){return new Mo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Mo,n,r)}};_(Mo,"runtime",C),_(Mo,"typeName","wg.cosmo.node.v1.GraphQLFederationConfiguration"),_(Mo,"fields",C.util.newFieldList(()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"serviceSdl",kind:"scalar",T:9}]));var zb=Mo,xo=class xo extends we{constructor(n){super();_(this,"key","");C.util.initPartial(n,this)}static fromBinary(n,r){return new xo().fromBinary(n,r)}static fromJson(n,r){return new xo().fromJson(n,r)}static fromJsonString(n,r){return new xo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(xo,n,r)}};_(xo,"runtime",C),_(xo,"typeName","wg.cosmo.node.v1.InternedString"),_(xo,"fields",C.util.newFieldList(()=>[{no:1,name:"key",kind:"scalar",T:9}]));var qp=xo,qo=class qo extends we{constructor(n){super();_(this,"typeName","");_(this,"fieldName","");C.util.initPartial(n,this)}static fromBinary(n,r){return new qo().fromBinary(n,r)}static fromJson(n,r){return new qo().fromJson(n,r)}static fromJsonString(n,r){return new qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(qo,n,r)}};_(qo,"runtime",C),_(qo,"typeName","wg.cosmo.node.v1.SingleTypeField"),_(qo,"fields",C.util.newFieldList(()=>[{no:1,name:"type_name",kind:"scalar",T:9},{no:2,name:"field_name",kind:"scalar",T:9}]));var Wb=qo,Vo=class Vo extends we{constructor(n){super();_(this,"fieldPath",[]);_(this,"json","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Vo().fromBinary(n,r)}static fromJson(n,r){return new Vo().fromJson(n,r)}static fromJsonString(n,r){return new Vo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Vo,n,r)}};_(Vo,"runtime",C),_(Vo,"typeName","wg.cosmo.node.v1.SubscriptionFieldCondition"),_(Vo,"fields",C.util.newFieldList(()=>[{no:1,name:"field_path",kind:"scalar",T:9,repeated:!0},{no:2,name:"json",kind:"scalar",T:9}]));var Vp=Vo,ta=class ta extends we{constructor(n){super();_(this,"and",[]);_(this,"in");_(this,"not");_(this,"or",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new ta().fromBinary(n,r)}static fromJson(n,r){return new ta().fromJson(n,r)}static fromJsonString(n,r){return new ta().fromJsonString(n,r)}static equals(n,r){return C.util.equals(ta,n,r)}};_(ta,"runtime",C),_(ta,"typeName","wg.cosmo.node.v1.SubscriptionFilterCondition"),_(ta,"fields",C.util.newFieldList(()=>[{no:1,name:"and",kind:"message",T:ta,repeated:!0},{no:2,name:"in",kind:"message",T:Vp,opt:!0},{no:3,name:"not",kind:"message",T:ta,opt:!0},{no:4,name:"or",kind:"message",T:ta,repeated:!0}]));var Cu=ta,jo=class jo extends we{constructor(n){super();_(this,"operations",[]);C.util.initPartial(n,this)}static fromBinary(n,r){return new jo().fromBinary(n,r)}static fromJson(n,r){return new jo().fromJson(n,r)}static fromJsonString(n,r){return new jo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(jo,n,r)}};_(jo,"runtime",C),_(jo,"typeName","wg.cosmo.node.v1.CacheWarmerOperations"),_(jo,"fields",C.util.newFieldList(()=>[{no:1,name:"operations",kind:"message",T:Xb,repeated:!0}]));var Vj=jo,Ko=class Ko extends we{constructor(n){super();_(this,"request");_(this,"client");C.util.initPartial(n,this)}static fromBinary(n,r){return new Ko().fromBinary(n,r)}static fromJson(n,r){return new Ko().fromJson(n,r)}static fromJsonString(n,r){return new Ko().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Ko,n,r)}};_(Ko,"runtime",C),_(Ko,"typeName","wg.cosmo.node.v1.Operation"),_(Ko,"fields",C.util.newFieldList(()=>[{no:1,name:"request",kind:"message",T:Zb},{no:2,name:"client",kind:"message",T:n0}]));var Xb=Ko,Go=class Go extends we{constructor(n){super();_(this,"operationName","");_(this,"query","");_(this,"extensions");C.util.initPartial(n,this)}static fromBinary(n,r){return new Go().fromBinary(n,r)}static fromJson(n,r){return new Go().fromJson(n,r)}static fromJsonString(n,r){return new Go().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Go,n,r)}};_(Go,"runtime",C),_(Go,"typeName","wg.cosmo.node.v1.OperationRequest"),_(Go,"fields",C.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:e0}]));var Zb=Go,$o=class $o extends we{constructor(n){super();_(this,"persistedQuery");C.util.initPartial(n,this)}static fromBinary(n,r){return new $o().fromBinary(n,r)}static fromJson(n,r){return new $o().fromJson(n,r)}static fromJsonString(n,r){return new $o().fromJsonString(n,r)}static equals(n,r){return C.util.equals($o,n,r)}};_($o,"runtime",C),_($o,"typeName","wg.cosmo.node.v1.Extension"),_($o,"fields",C.util.newFieldList(()=>[{no:1,name:"persisted_query",kind:"message",T:t0}]));var e0=$o,Qo=class Qo extends we{constructor(n){super();_(this,"sha256Hash","");_(this,"version",0);C.util.initPartial(n,this)}static fromBinary(n,r){return new Qo().fromBinary(n,r)}static fromJson(n,r){return new Qo().fromJson(n,r)}static fromJsonString(n,r){return new Qo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Qo,n,r)}};_(Qo,"runtime",C),_(Qo,"typeName","wg.cosmo.node.v1.PersistedQuery"),_(Qo,"fields",C.util.newFieldList(()=>[{no:1,name:"sha256_hash",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:5}]));var t0=Qo,Yo=class Yo extends we{constructor(n){super();_(this,"name","");_(this,"version","");C.util.initPartial(n,this)}static fromBinary(n,r){return new Yo().fromBinary(n,r)}static fromJson(n,r){return new Yo().fromJson(n,r)}static fromJsonString(n,r){return new Yo().fromJsonString(n,r)}static equals(n,r){return C.util.equals(Yo,n,r)}};_(Yo,"runtime",C),_(Yo,"typeName","wg.cosmo.node.v1.ClientInfo"),_(Yo,"fields",C.util.newFieldList(()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"version",kind:"scalar",T:9}]));var n0=Yo;m();T();N();function r0(e){return new Error(`Normalization failed to return a ${e}.`)}function jj(e){return new Error(`Invalid router compatibility version "${e}".`)}m();T();N();var hd=ys(ZE(),1);function fpe(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 wp({fieldName:a[1],typeName:a[0]}))}t.push(new Lp({fieldCoordinatesPath:r,fieldPath:n.fieldPath}))}return t}function i0(e,t,n){if(e)for(let r of e){let i=fpe(r);t.push(new Vc(M(M({typeName:n,fieldName:r.fieldName,selectionSet:r.selectionSet},r.disableEntityResolver?{disableEntityResolver:!0}:{}),i?{conditions:i}:{})))}}function a0(e){switch(e){case"publish":return Jo.PUBLISH;case"request":return Jo.REQUEST;case"subscribe":return Jo.SUBSCRIBE}}function Kj(e){var n;let t={rootNodes:[],childNodes:[],keys:[],provides:[],events:new $c({nats:[],kafka:[],redis:[]}),requires:[],entityInterfaces:[],interfaceObjects:[]};for(let r of e.values()){let i=r.typeName,a=[...r.fieldNames],o=new Nd({fieldNames:a,typeName:i});if(r.externalFieldNames&&r.externalFieldNames.size>0&&(o.externalFieldNames=[...r.externalFieldNames]),r.requireFetchReasonsFieldNames&&r.requireFetchReasonsFieldNames.length>0&&(o.requireFetchReasonsFieldNames=[...r.requireFetchReasonsFieldNames]),r.isRootNode?t.rootNodes.push(o):t.childNodes.push(o),r.entityInterfaceConcreteTypeNames){let p=new Td({interfaceTypeName:i,concreteTypeNames:[...r.entityInterfaceConcreteTypeNames]});r.isInterfaceObject?t.interfaceObjects.push(p):t.entityInterfaces.push(p)}i0(r.keys,t.keys,i),i0(r.provides,t.provides,i),i0(r.requires,t.requires,i);let c=[],l=[],d=[];for(let p of(n=r.events)!=null?n:[])switch(p.providerType){case hd.PROVIDER_TYPE_KAFKA:{l.push(new Mp({engineEventConfiguration:new Ho({fieldName:p.fieldName,providerId:p.providerId,type:a0(p.type),typeName:i}),topics:p.topics}));break}case hd.PROVIDER_TYPE_NATS:{c.push(new kp(M({engineEventConfiguration:new Ho({fieldName:p.fieldName,providerId:p.providerId,type:a0(p.type),typeName:i}),subjects:p.subjects},p.streamConfiguration?{streamConfiguration:new Up({consumerInactiveThreshold:p.streamConfiguration.consumerInactiveThreshold,consumerName:p.streamConfiguration.consumerName,streamName:p.streamConfiguration.streamName})}:{})));break}case hd.PROVIDER_TYPE_REDIS:{d.push(new xp({engineEventConfiguration:new Ho({fieldName:p.fieldName,providerId:p.providerId,type:a0(p.type),typeName:i}),channels:p.channels}));break}default:throw new Error("Fatal: Unknown event provider.")}t.events.nats.push(...c),t.events.kafka.push(...l),t.events.redis.push(...d)}return t}function Gj(e){var n,r;let t=[];for(let i of e){let a=i.argumentNames.map(p=>new Rp({name:p,sourceType:jc.FIELD_ARGUMENT})),o=new Fp({argumentsConfiguration:a,fieldName:i.fieldName,typeName:i.typeName}),c=((n=i.requiredScopes)==null?void 0:n.map(p=>new Gc({requiredAndScopes:p})))||[],l=((r=i.requiredScopesByOR)==null?void 0:r.map(p=>new Gc({requiredAndScopes:p})))||[],d=c.length>0;if((i.requiresAuthentication||d)&&(o.authorizationConfiguration=new Pp({requiresAuthentication:i.requiresAuthentication||d,requiredOrScopes:c,requiredOrScopesByOr:l})),i.subscriptionFilterCondition){let p=new Cu;Dh(p,i.subscriptionFilterCondition),o.subscriptionFilterCondition=p}t.push(o)}return t}function Dh(e,t){if(t.and!==void 0){let n=[];for(let r of t.and){let i=new Cu;Dh(i,r),n.push(i)}e.and=n;return}if(t.in!==void 0){e.in=new Vp({fieldPath:t.in.fieldPath,json:JSON.stringify(t.in.values)});return}if(t.not!==void 0){e.not=new Cu,Dh(e.not,t.not);return}if(t.or!==void 0){let n=[];for(let r of t.or){let i=new Cu;Dh(i,r),n.push(i)}e.or=n;return}throw new Error("Fatal: Incoming SubscriptionCondition object was malformed.")}var Qc;(function(e){e[e.Plugin=0]="Plugin",e[e.Standard=1]="Standard",e[e.GRPC=2]="GRPC"})(Qc||(Qc={}));var ppe=(e,t)=>{let n=stringHash(t);return e.stringStorage[n]=t,new qp({key:n})},mpe=e=>{switch(e){case"ws":return ks.GRAPHQL_SUBSCRIPTION_PROTOCOL_WS;case"sse":return ks.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE;case"sse_post":return ks.GRAPHQL_SUBSCRIPTION_PROTOCOL_SSE_POST}},Npe=e=>{switch(e){case"auto":return Ms.GRAPHQL_WEBSOCKET_SUBPROTOCOL_AUTO;case"graphql-ws":return Ms.GRAPHQL_WEBSOCKET_SUBPROTOCOL_WS;case"graphql-transport-ws":return Ms.GRAPHQL_WEBSOCKET_SUBPROTOCOL_TRANSPORT_WS}},Qj=function(e){if(!yd.ROUTER_COMPATIBILITY_VERSIONS.has(e.routerCompatibilityVersion))throw jj(e.routerCompatibilityVersion);let t=new md({defaultFlushInterval:BigInt(500),datasourceConfigurations:[],fieldConfigurations:[],graphqlSchema:"",stringStorage:{},typeConfigurations:[]});for(let n of e.subgraphs){if(!n.configurationDataByTypeName)throw r0("ConfigurationDataByTypeName");if(!n.schema)throw r0("GraphQLSchema");let r={enabled:!0},i=ppe(t,ZV((0,$j.lexicographicSortSchema)(n.schema))),{childNodes:a,entityInterfaces:o,events:c,interfaceObjects:l,keys:d,provides:p,requires:E,rootNodes:I}=Kj(n.configurationDataByTypeName),v;switch(n.kind){case Qc.Standard:{r.enabled=!0,r.protocol=mpe(n.subscriptionProtocol||"ws"),r.websocketSubprotocol=Npe(n.websocketSubprotocol||"auto"),r.url=new $r({kind:Lu.STATIC_CONFIGURATION_VARIABLE,staticVariableContent:n.subscriptionUrl||n.url});break}case Qc.Plugin:{v=new Ed({mapping:n.mapping,protoSchema:n.protoSchema,plugin:new Bp({name:n.name,version:n.version,imageReference:n.imageReference})});break}case Qc.GRPC:{v=new Ed({mapping:n.mapping,protoSchema:n.protoSchema});break}}let A,U,j;if(c.kafka.length>0||c.nats.length>0||c.redis.length>0){A=wu.PUBSUB,j=new $c({kafka:c.kafka,nats:c.nats,redis:c.redis});let re=ue=>yd.ROOT_TYPE_NAMES.has(ue.typeName),ne=0,me=0;for(;ne({id:n.id,name:n.name,routingUrl:n.url})),compatibilityVersion:`${e.routerCompatibilityVersion}:${yd.COMPOSITION_VERSION}`})};m();T();N();var Jc=ys(Oe());function Yj(e){let t;try{t=(0,Jc.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 Tpe(e){let t=(0,Yc.federateSubgraphs)({subgraphs:e.map(Yj),version:Yc.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,Jc.print)(t.federatedGraphAST)}}function Epe(e){let t=(0,Yc.federateSubgraphs)({subgraphs:e.map(Yj),version:Yc.LATEST_ROUTER_COMPATIBILITY_VERSION});if(!t.success)throw new Error(`could not federate schema: ${t.errors.map(r=>r.message).join(", ")}`);return Qj({federatedClientSDL:(0,Jc.printSchema)(t.federatedGraphClientSchema),federatedSDL:(0,Jc.printSchema)(t.federatedGraphSchema),fieldConfigurations:t.fieldConfigurations,routerCompatibilityVersion:Yc.LATEST_ROUTER_COMPATIBILITY_VERSION,schemaVersionId:"",subgraphs:e.map((r,i)=>{var l,d;let a=t.subgraphConfigBySubgraphName.get(r.name),o=a==null?void 0:a.schema,c=a==null?void 0:a.configurationDataByTypeName;return{kind:Qc.Standard,id:`${i}`,name:r.name,url:db(r.url),sdl:r.schema,subscriptionUrl:db((l=r.subscription_url)!=null?l:r.url),subscriptionProtocol:(d=r.subscription_protocol)!=null?d:"ws",websocketSubprotocol:r.subscription_protocol==="ws"?r.websocketSubprotocol||"auto":void 0,schema:o,configurationDataByTypeName:c}})}).toJsonString()}return wm(hpe);})(); /*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: diff --git a/composition/package.json b/composition/package.json index d508ce872d..9c3f673c79 100644 --- a/composition/package.json +++ b/composition/package.json @@ -30,7 +30,7 @@ "dependencies": { "@graphql-tools/merge": "^9.0.0", "@graphql-tools/schema": "^10.0.0", - "@graphql-tools/utils": "^10.1.0", + "@graphql-tools/utils": "^10.10.2", "core-js": "^3.41.0", "graphql": "^16.9.0", "lodash": "^4.17.21", diff --git a/composition/src/buildASTSchema/buildASTSchema.ts b/composition/src/buildASTSchema/buildASTSchema.ts index 1ab7ad7d2b..d16a934d08 100644 --- a/composition/src/buildASTSchema/buildASTSchema.ts +++ b/composition/src/buildASTSchema/buildASTSchema.ts @@ -4,12 +4,12 @@ import { extendSchemaImpl } from './extendSchema'; import { GraphQLSchemaValidationOptions } from 'graphql/type/schema'; export interface BuildASTSchemaOptions extends GraphQLSchemaValidationOptions { + addInvalidExtensionOrphans?: boolean; /** * Set to true to assume the SDL is valid. * * Default: false */ - addInvalidExtensionOrphans?: boolean; assumeValidSDL?: boolean | undefined; } diff --git a/composition/src/federation/types.ts b/composition/src/federation/types.ts index b1e23e16e7..29ab78531f 100644 --- a/composition/src/federation/types.ts +++ b/composition/src/federation/types.ts @@ -1,5 +1,5 @@ import { Warning } from '../warnings/types'; -import { ConstDirectiveNode, DocumentNode, GraphQLSchema, StringValueNode } from 'graphql'; +import { ConstDirectiveNode, DirectiveDefinitionNode, DocumentNode, GraphQLSchema, StringValueNode } from 'graphql'; import { ConfigureDescriptionData, ExtensionType, @@ -9,7 +9,7 @@ import { import { FieldConfiguration } from '../router-configuration/types'; import { Subgraph, SubgraphConfig } from '../subgraph/types'; import { SupportedRouterCompatibilityVersion } from '../router-compatibility-version/router-compatibility-version'; -import { ContractName } from '../types/types'; +import { ContractName, DirectiveName, SubgraphName, TypeName } from '../types/types'; export type FederationFailure = { errors: Array; @@ -18,6 +18,7 @@ export type FederationFailure = { }; export type FederationSuccess = { + directiveDefinitionByName: Map; fieldConfigurations: Array; federatedGraphAST: DocumentNode; federatedGraphClientSchema: GraphQLSchema; @@ -38,13 +39,14 @@ export type FederationResultWithContractsFailure = { }; export type FederationResultWithContractsSuccess = { + directiveDefinitionByName: Map; fieldConfigurations: Array; federatedGraphAST: DocumentNode; federatedGraphClientSchema: GraphQLSchema; federatedGraphSchema: GraphQLSchema; federationResultByContractName: Map; - parentDefinitionDataByTypeName: Map; - subgraphConfigBySubgraphName: Map; + parentDefinitionDataByTypeName: Map; + subgraphConfigBySubgraphName: Map; success: true; warnings: Array; shouldIncludeClientSchema?: boolean; diff --git a/composition/src/schema-building/utils.ts b/composition/src/schema-building/utils.ts index 3f271db264..5fca8e6dda 100644 --- a/composition/src/schema-building/utils.ts +++ b/composition/src/schema-building/utils.ts @@ -58,6 +58,7 @@ import { INPUT_FIELD, INPUT_NODE_KINDS, INT_SCALAR, + KEY, MUTATION, OUTPUT_NODE_KINDS, PERSISTED_CLIENT_DIRECTIVES, @@ -80,6 +81,7 @@ import { import { InputNodeKind, InvalidRequiredInputValueData, OutputNodeKind } from '../utils/types'; import { getDescriptionFromString } from '../v1/federation/utils'; import { DirectiveName, FieldName, SubgraphName, TypeName } from '../types/types'; +import { DEFAULT_DEPRECATION_REASON } from 'graphql'; export function newPersistedDirectivesData(): PersistedDirectivesData { return { @@ -237,7 +239,32 @@ export function childMapToValueArray; coordsByNamedTypeName = new Map>(); disableResolvabilityValidation: boolean = false; - clientDefinitions: (MutableDefinitionNode | DefinitionNode)[] = []; + directiveDefinitionByName = new Map(); + clientDefinitions: Array = []; currentSubgraphName = ''; concreteTypeNamesByAbstractTypeName: Map>; subgraphNamesByNamedTypeNameByFieldCoords = new Map>>(); entityDataByTypeName: Map; entityInterfaceFederationDataByTypeName: Map; - errors: Error[] = []; + errors: Array = []; fieldConfigurationByFieldCoords = new Map(); fieldCoordsByNamedTypeName: Map>; inaccessibleCoords = new Set(); @@ -286,10 +287,10 @@ export class FederationFactory { ]); potentialPersistedDirectiveDefinitionDataByDirectiveName = new Map(); referencedPersistedDirectiveNames = new Set(); - routerDefinitions: (MutableDefinitionNode | DefinitionNode)[] = []; + routerDefinitions: Array = []; subscriptionFilterDataByFieldPath = new Map(); tagNamesByCoords = new Map>(); - warnings: Warning[]; + warnings: Array; constructor({ authorizationDataByParentTypeName, @@ -2324,6 +2325,7 @@ export class FederationFactory { continue; } const dependencies = DEPENDENCIES_BY_DIRECTIVE_NAME.get(directiveName) ?? []; + this.directiveDefinitionByName.set(directiveName, definition); if (CLIENT_PERSISTED_DIRECTIVE_NAMES.has(directiveName)) { this.clientDefinitions.push(definition); addIterableToSet({ @@ -2896,12 +2898,13 @@ export class FederationFactory { upsertAuthorizationConfiguration(this.fieldConfigurationByFieldCoords, authorizationData); } return { + directiveDefinitionByName: this.directiveDefinitionByName, fieldConfigurations: Array.from(this.fieldConfigurationByFieldCoords.values()), - subgraphConfigBySubgraphName, federatedGraphAST: newRouterAST, federatedGraphSchema: buildASTSchema(newRouterAST, { assumeValid: true, assumeValidSDL: true }), federatedGraphClientSchema: newClientSchema, parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + subgraphConfigBySubgraphName, success: true, warnings: this.warnings, ...this.getClientSchemaObjectBoolean(), @@ -3188,12 +3191,13 @@ export class FederationFactory { upsertAuthorizationConfiguration(this.fieldConfigurationByFieldCoords, authorizationData); } return { + directiveDefinitionByName: this.directiveDefinitionByName, fieldConfigurations: Array.from(this.fieldConfigurationByFieldCoords.values()), - subgraphConfigBySubgraphName, federatedGraphAST: newRouterAST, federatedGraphSchema: buildASTSchema(newRouterAST, { assumeValid: true, assumeValidSDL: true }), federatedGraphClientSchema: newClientSchema, parentDefinitionDataByTypeName: this.parentDefinitionDataByTypeName, + subgraphConfigBySubgraphName, success: true, warnings: this.warnings, ...this.getClientSchemaObjectBoolean(), diff --git a/composition/src/v1/normalization/normalization-factory.ts b/composition/src/v1/normalization/normalization-factory.ts index 12b846d9ca..1df125100b 100644 --- a/composition/src/v1/normalization/normalization-factory.ts +++ b/composition/src/v1/normalization/normalization-factory.ts @@ -40,6 +40,8 @@ import { ScalarTypeNode, SchemaNode, setToNamedTypeNodeArray, + stringToNamedTypeNode, + stringToNameNode, UnionTypeNode, } from '../../ast/utils'; import { @@ -260,6 +262,7 @@ import { CONSUMER_INACTIVE_THRESHOLD, CONSUMER_NAME, DEFAULT_EDFS_PROVIDER_ID, + DEPRECATED, DESCRIPTION_OVERRIDE, EDFS_KAFKA_PUBLISH, EDFS_KAFKA_SUBSCRIBE, @@ -305,6 +308,7 @@ import { PROVIDER_TYPE_REDIS, PUBLISH, QUERY, + REASON, REQUEST, REQUIRE_FETCH_REASONS, REQUIRES_SCOPES, @@ -361,6 +365,7 @@ import { ImplementationErrors, InvalidFieldImplementation } from '../../utils/ty import { DirectiveName, FieldName, SubgraphName, TypeName } from '../../types/types'; import { HandleFieldInheritableDirectivesParams, ValidateOneOfDirectiveParams } from './params'; import { EDFS_NATS_STREAM_CONFIGURATION_DEFINITION } from '../constants/non-directive-definitions'; +import { DEFAULT_DEPRECATION_REASON } from 'graphql/index'; export function normalizeSubgraphFromString(subgraphSDL: string, noLocation = true): NormalizationResult { const { error, documentNode } = safeParse(subgraphSDL, noLocation); @@ -3106,7 +3111,7 @@ export class NormalizationFactory { directiveCoords: string, removeInheritedDirectives = false, ): ConstDirectiveNode[] { - const flattenedArray: ConstDirectiveNode[] = []; + const flattenedArray: Array = []; for (const [directiveName, directiveNodes] of directivesByDirectiveName) { if (removeInheritedDirectives && INHERITABLE_DIRECTIVE_NAMES.has(directiveName)) { continue; @@ -3198,11 +3203,33 @@ export class NormalizationFactory { } getSchemaNodeByData(schemaData: SchemaData): SchemaDefinitionNode { + const operationTypes: Array = []; + for (const operationTypeNode of Object.values(OperationTypeNode)) { + const node = schemaData.operationTypes.get(operationTypeNode); + if (node) { + operationTypes.push(node); + continue; + } + const defaultRootTypeName = getOrThrowError( + operationTypeNodeToDefaultType, + operationTypeNode, + 'operationTypeNodeToDefaultType', + ); + if (!this.parentDefinitionDataByTypeName.has(defaultRootTypeName)) { + continue; + } + operationTypes.push({ + kind: Kind.OPERATION_TYPE_DEFINITION, + operation: operationTypeNode, + type: stringToNamedTypeNode(defaultRootTypeName), + }); + } + return { description: schemaData.description, directives: this.getValidFlattenedDirectiveArray(schemaData.directivesByDirectiveName, schemaData.name), kind: schemaData.kind, - operationTypes: mapToArrayOfValues(schemaData.operationTypes), + operationTypes, }; } @@ -3459,6 +3486,20 @@ export class NormalizationFactory { definitions.push(...dependencies); } + #addSchemaDefinitionNode(definitions: Array): void { + const schemaNode = this.getSchemaNodeByData(this.schemaData); + if (schemaNode.operationTypes.length > 0) { + definitions.push(schemaNode); + return; + } + if (schemaNode.directives?.length) { + definitions.push({ + directives: schemaNode.directives, + kind: Kind.SCHEMA_EXTENSION, + }); + } + } + normalize(document: DocumentNode): NormalizationResult { // Collect any renamed root types upsertDirectiveSchemaAndEntityDefinitions(this, document); @@ -3466,15 +3507,13 @@ export class NormalizationFactory { const definitions: DefinitionNode[] = []; this.#addDirectiveDefinitionsToDocument(definitions); this.validateDirectives(this.schemaData, SCHEMA); + this.#addSchemaDefinitionNode(definitions); for (const [parentTypeName, parentData] of this.parentDefinitionDataByTypeName) { this.validateDirectives(parentData, parentTypeName); } if (this.invalidORScopesCoords.size > 0) { this.errors.push(orScopesLimitError(MAX_OR_SCOPES, [...this.invalidORScopesCoords])); } - if (this.schemaData.operationTypes.size > 0) { - definitions.push(this.getSchemaNodeByData(this.schemaData)); - } /* * Sometimes an @openfed__configureDescription directive is defined before a description is, e.g., on an extension. * If at this stage there is still no description, it is propagated as an error. @@ -3752,7 +3791,7 @@ export class NormalizationFactory { persistedDirectiveDefinitionDataByDirectiveName, subgraphAST: newAST, subgraphString: print(newAST), - schema: buildASTSchema(newAST, { assumeValid: true, assumeValidSDL: true }), + schema: buildASTSchema(newAST, { addInvalidExtensionOrphans: true, assumeValid: true, assumeValidSDL: true }), success: true, warnings: this.warnings, }; diff --git a/composition/tests/v1/directives/directives.test.ts b/composition/tests/v1/directives/directives.test.ts index 346912e010..600b211d30 100644 --- a/composition/tests/v1/directives/directives.test.ts +++ b/composition/tests/v1/directives/directives.test.ts @@ -1,18 +1,28 @@ import { + DirectiveName, FIRST_ORDINAL, + INACCESSIBLE, + INACCESSIBLE_DEFINITION, invalidArgumentValueErrorMessage, invalidDirectiveError, NormalizationFailure, NormalizationSuccess, normalizeSubgraph, - normalizeSubgraphFromString, parse, ROUTER_COMPATIBILITY_VERSION_ONE, Subgraph, + TAG, + TAG_DEFINITION, } from '../../../src'; import { describe, expect, test } from 'vitest'; -import { INACCESSIBLE_DIRECTIVE, SCHEMA_QUERY_DEFINITION } from '../utils/utils'; -import { federateSubgraphsSuccess, normalizeString, schemaToSortedNormalizedString } from '../../utils/utils'; +import { INACCESSIBLE_DIRECTIVE, SCHEMA_QUERY_DEFINITION, TAG_DIRECTIVE } from '../utils/utils'; +import { + federateSubgraphsSuccess, + normalizeString, + normalizeSubgraphSuccess, + schemaToSortedNormalizedString, +} from '../../utils/utils'; +import { DirectiveDefinitionNode } from 'graphql/language'; describe('Directive tests', () => { describe('Normalization tests', () => { @@ -97,14 +107,8 @@ describe('Directive tests', () => { }); test('that an object can be coerced into a List of Input Object type', () => { - const result = normalizeSubgraph( - ne.definitions, - ne.name, - undefined, - ROUTER_COMPATIBILITY_VERSION_ONE, - ) as NormalizationSuccess; - expect(result.success).toBe(true); - expect(schemaToSortedNormalizedString(result.schema)).toBe( + const { schema, warnings } = normalizeSubgraphSuccess(ne, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(schema)).toBe( normalizeString( SCHEMA_QUERY_DEFINITION + ` @@ -115,12 +119,12 @@ describe('Directive tests', () => { } type Query { - dummy: String! @z(list: {name: String}) + dummy: String! @z(list: {name: "String"}) } `, ), ); - expect(result.warnings).toHaveLength(0); + expect(warnings).toHaveLength(0); }); test('that an error is returned if an @inaccessible Enum attempts to coerce into a List type', () => { @@ -278,27 +282,8 @@ describe('Directive tests', () => { }); test('that directives declared after schema definitions and extensions are still valid #1', () => { - const result = normalizeSubgraphFromString( - ` - schema @directiveOne(argOne: "value") { - query: Queries - } - - type Queries { - dummy: String! - } - - extend schema @directiveTwo(argOne: "value") - - directive @directiveOne(argOne: String!) on SCHEMA - - directive @directiveTwo(argOne: String!) on SCHEMA - `, - undefined, - ROUTER_COMPATIBILITY_VERSION_ONE, - ) as NormalizationSuccess; - expect(result.success).toBe(true); - expect(schemaToSortedNormalizedString(result.schema)).toBe( + const { schema } = normalizeSubgraphSuccess(naaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(schema)).toBe( normalizeString( ` schema @directiveOne(argOne: "value") @directiveTwo(argOne: "value") { @@ -317,25 +302,26 @@ describe('Directive tests', () => { }); test('that directives declared after schema definitions and extensions are still valid #2', () => { - const result = normalizeSubgraphFromString( - ` - extend schema @directiveOne(argOne: "value") - - extend schema @directiveTwo(argOne: "value") - - directive @directiveOne(argOne: String!) on SCHEMA - - directive @directiveTwo(argOne: String!) on SCHEMA - `, - undefined, - ROUTER_COMPATIBILITY_VERSION_ONE, - ) as NormalizationSuccess; - expect(result.success).toBe(true); - expect(schemaToSortedNormalizedString(result.schema)).toBe( + const { schema } = normalizeSubgraphSuccess(nbaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(schema)).toBe( normalizeString( ` - directive @directiveOne(argOne: String!) on SCHEMA - directive @directiveTwo(argOne: String!) on SCHEMA`, + extend schema @directiveOne(argOne: "value") @directiveTwo(argOne: "value") + directive @directiveOne(argOne: String!) on SCHEMA + directive @directiveTwo(argOne: String!) on SCHEMA`, + ), + ); + }); + + test('that @deprecated propagates its default argument if none is provided', () => { + const { schema } = normalizeSubgraphSuccess(ncaaa, ROUTER_COMPATIBILITY_VERSION_ONE); + expect(schemaToSortedNormalizedString(schema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + ` + type Query { + a: ID @deprecated(reason: "No longer supported") + }`, ), ); }); @@ -399,6 +385,31 @@ describe('Directive tests', () => { ROUTER_COMPATIBILITY_VERSION_ONE, ); }); + + test('that directive definitions are added to federation result', () => { + const { directiveDefinitionByName, federatedGraphSchema } = federateSubgraphsSuccess( + [faaaa], + ROUTER_COMPATIBILITY_VERSION_ONE, + ); + expect(schemaToSortedNormalizedString(federatedGraphSchema)).toBe( + normalizeString( + SCHEMA_QUERY_DEFINITION + + INACCESSIBLE_DIRECTIVE + + TAG_DIRECTIVE + + ` + type Query { + a: ID @inaccessible + b: ID @tag(name: "name") + }`, + ), + ); + expect(directiveDefinitionByName).toStrictEqual( + new Map([ + [INACCESSIBLE, INACCESSIBLE_DEFINITION], + [TAG, TAG_DEFINITION], + ]), + ); + }); }); const na: Subgraph = { @@ -461,7 +472,7 @@ const ne: Subgraph = { directive @z(list: [[Input!]!]!) on FIELD_DEFINITION type Query { - dummy: String! @z(list: { name: String }) + dummy: String! @z(list: { name: "String" }) } input Input { @@ -574,3 +585,55 @@ const subgraphB: Subgraph = { field: String! }`), }; + +const naaaa: Subgraph = { + name: 'naaaa', + url: '', + definitions: parse(` + schema @directiveOne(argOne: "value") @directiveTwo(argOne: "value") { + query: Queries + } + + directive @directiveOne(argOne: String!) on SCHEMA + directive @directiveTwo(argOne: String!) on SCHEMA + + type Queries { + dummy: String! + } + `), +}; + +const nbaaa: Subgraph = { + name: 'nbaaa', + url: '', + definitions: parse(` + extend schema @directiveOne(argOne: "value") + + extend schema @directiveTwo(argOne: "value") + + directive @directiveOne(argOne: String!) on SCHEMA + + directive @directiveTwo(argOne: String!) on SCHEMA + `), +}; + +const ncaaa: Subgraph = { + name: 'ncaaa', + url: '', + definitions: parse(` + type Query { + a: ID @deprecated + } + `), +}; + +const faaaa: Subgraph = { + name: 'faaaa', + url: '', + definitions: parse(` + type Query { + a: ID @inaccessible + b: ID @tag(name: "name") + } + `), +}; diff --git a/composition/tests/v1/directives/fieldset-directives.test.ts b/composition/tests/v1/directives/fieldset-directives.test.ts index 896b3c316c..51ab988860 100644 --- a/composition/tests/v1/directives/fieldset-directives.test.ts +++ b/composition/tests/v1/directives/fieldset-directives.test.ts @@ -852,27 +852,23 @@ describe('openfed_FieldSet tests', () => { type Entity @key(fields: "id") { id: ID! interface: InterfaceOne @external - requirerOne: String! @requires(fields: """ - interface { - ... on InterfaceTwo { - ... on ObjectOne { - isObjectOne - } - name - ... on ObjectTwo { - isObjectTwo - } + requirerOne: String! @requires(fields: "interface { + ... on InterfaceTwo { + ... on ObjectOne { + isObjectOne } - age - } - """) - requirerTwo: String! @requires(fields: """ - interface { - ... on InterfaceOne { - age + name + ... on ObjectTwo { + isObjectTwo } } - """) + age + }") + requirerTwo: String! @requires(fields: "interface { + ... on InterfaceOne { + age + } + }") } interface InterfaceOne { @@ -1439,30 +1435,11 @@ const subgraphH: Subgraph = { interface: InterfaceOne @external requirerOne: String! @requires( - fields: """ - interface { - ... on InterfaceTwo { - ... on ObjectOne { - isObjectOne - } - name - ... on ObjectTwo { - isObjectTwo - } - } - age - } - """ + fields: "interface { ... on InterfaceTwo { ... on ObjectOne { isObjectOne } name ... on ObjectTwo { isObjectTwo } } age }" ) requirerTwo: String! @requires( - fields: """ - interface { - ... on InterfaceOne { - age - } - } - """ + fields: "interface { ... on InterfaceOne { age } }" ) } diff --git a/composition/tests/v1/events.test.ts b/composition/tests/v1/events.test.ts index 7e42334772..23f7371a68 100644 --- a/composition/tests/v1/events.test.ts +++ b/composition/tests/v1/events.test.ts @@ -176,7 +176,7 @@ describe('events Configuration tests', () => { type Subscription { entitySubscription(id: ID!): Entity! @edfs__natsSubscribe(subjects: ["entities.{{ args.id }}"], providerId: "my-provider") - entitySubscriptionTwo(firstID: ID!, secondID: ID!): Entity! @edfs__natsSubscribe(subjects: ["firstSub.{{ args.firstID }}", "secondSub.{{ args.secondID }}"], providerId: "double", streamConfiguration: {consumerName: "consumer", streamName: "streamName", consumerInactiveThreshold: 300}) + entitySubscriptionTwo(firstID: ID!, secondID: ID!): Entity! @edfs__natsSubscribe(subjects: ["firstSub.{{ args.firstID }}", "secondSub.{{ args.secondID }}"], providerId: "double", streamConfiguration: {consumerInactiveThreshold: 300, consumerName: "consumer", streamName: "streamName"}) } ` + EDFS_NATS_STREAM_CONFIGURATION_INPUT + diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eaf50e14af..1ae96c56ea 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -383,8 +383,8 @@ importers: specifier: ^10.0.0 version: 10.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) '@graphql-tools/utils': - specifier: ^10.1.0 - version: 10.1.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + specifier: ^10.10.2 + version: 10.10.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) core-js: specifier: ^3.41.0 version: 3.41.0 @@ -3773,14 +3773,14 @@ packages: peerDependencies: graphql: 16.9.0 - '@graphql-tools/utils@10.1.0': - resolution: {integrity: sha512-wLPqhgeZ9BZJPRoaQbsDN/CtJDPd/L4qmmtPkjI3NuYJ39x+Eqz1Sh34EAGMuDh+xlOHqBwHczkZUpoK9tvzjw==} + '@graphql-tools/utils@10.1.2': + resolution: {integrity: sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==} engines: {node: '>=16.0.0'} peerDependencies: graphql: 16.9.0 - '@graphql-tools/utils@10.1.2': - resolution: {integrity: sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==} + '@graphql-tools/utils@10.10.2': + resolution: {integrity: sha512-aVPIAsZ8PMomO2UODO+uG8YCwYOfPthHO2b8pXqixlXx01L0B01qGkrQ0KYJDI/gozNNFXiZ3TfoFMXSGnPiow==} engines: {node: '>=16.0.0'} peerDependencies: graphql: 16.9.0 @@ -7893,6 +7893,10 @@ packages: '@whatwg-node/node-fetch@0.3.6': resolution: {integrity: sha512-w9wKgDO4C95qnXZRwZTfCmLWqyRnooGjcIwG0wADWjw9/HN0p7dtvtgSvItZtUyNteEvgTrd8QojNEqV6DAGTA==} + '@whatwg-node/promise-helpers@1.3.2': + resolution: {integrity: sha512-Nst5JdK47VIl9UcGwtv2Rcgyn5lWtZ0/mhRQ4G8NN2isxpq2TO30iqHzmwoJycjWuyUfg3GFXqP/gFHXeV57IA==} + engines: {node: '>=16.0.0'} + '@xtuc/ieee754@1.2.0': resolution: {integrity: sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==} @@ -8905,6 +8909,10 @@ packages: resolution: {integrity: sha512-4PFfn4b5ZN6FMNGSZlyb7wUhuN8wvj8t/VQHZdM4JsDcruGJ8L2kf9zao98QIrBPFCpdk27qst/AGTl7pL3ypQ==} engines: {node: '>=16.0.0'} + cross-inspect@1.0.1: + resolution: {integrity: sha512-Pcw1JTvZLSJH83iiGWt6fRcT+BjZlCDRVwYLbUcHzv/CRpB7r0MlSrGbIyQvVSNyGnbt7G4AXuyCiDR3POvZ1A==} + engines: {node: '>=16.0.0'} + cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -17520,14 +17528,14 @@ snapshots: '@graphql-tools/merge@9.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: - '@graphql-tools/utils': 10.1.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/utils': 10.10.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) tslib: 2.6.1 '@graphql-tools/schema@10.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: '@graphql-tools/merge': 9.0.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - '@graphql-tools/utils': 10.1.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) + '@graphql-tools/utils': 10.10.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) tslib: 2.6.1 value-or-promise: 1.0.12 @@ -17570,7 +17578,7 @@ snapshots: - encoding - utf-8-validate - '@graphql-tools/utils@10.1.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/utils@10.1.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) cross-inspect: 1.0.0 @@ -17578,13 +17586,13 @@ snapshots: graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) tslib: 2.6.2 - '@graphql-tools/utils@10.1.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': + '@graphql-tools/utils@10.10.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly)) - cross-inspect: 1.0.0 - dset: 3.1.3 + '@whatwg-node/promise-helpers': 1.3.2 + cross-inspect: 1.0.1 graphql: 16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly) - tslib: 2.6.2 + tslib: 2.8.1 '@graphql-tools/utils@10.2.2(graphql@16.9.0(patch_hash=hafdlc54qtxpqvetpefk646rly))': dependencies: @@ -22651,6 +22659,10 @@ snapshots: fast-url-parser: 1.1.3 tslib: 2.8.1 + '@whatwg-node/promise-helpers@1.3.2': + dependencies: + tslib: 2.8.1 + '@xtuc/ieee754@1.2.0': {} '@xtuc/long@4.2.2': {} @@ -23711,6 +23723,10 @@ snapshots: dependencies: tslib: 2.8.1 + cross-inspect@1.0.1: + dependencies: + tslib: 2.8.1 + cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -30646,9 +30662,9 @@ snapshots: wrap-ansi@7.0.0: dependencies: - ansi-styles: 4.3.0 + ansi-styles: 6.2.1 string-width: 4.2.3 - strip-ansi: 6.0.1 + strip-ansi: 7.1.0 wrap-ansi@8.1.0: dependencies: