Dot_Files/.config/raycast/extensions/46fa7071-8491-4a13-99f1-25dae0015432/todos.js

241 lines
811 KiB
JavaScript
Raw Normal View History

var Xh=Object.create;var cu=Object.defineProperty;var Zh=Object.getOwnPropertyDescriptor;var ey=Object.getOwnPropertyNames;var ty=Object.getPrototypeOf,ry=Object.prototype.hasOwnProperty;var ay=e=>cu(e,"__esModule",{value:!0});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var ny=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ey(t))!ry.call(e,n)&&(r||n!=="default")&&cu(e,n,{get:()=>t[n],enumerable:!(a=Zh(t,n))||a.enumerable});return e},gt=(e,t)=>ny(ay(cu(e!=null?Xh(ty(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var vu=g(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.getDefaultLocale=iy;Va.setDefaultLocale=oy;Va.getLocaleData=py;Va.addLocaleData=sy;Va.resolveLocale=uy;var b2="en",fu={},mu={};function iy(){return b2}function oy(e){b2=e}function py(e){return fu[e]}function sy(e){if(!e)throw new Error("No locale data passed");fu[e.locale]=e,mu[e.locale.toLowerCase()]=e.locale}function uy(e){if(fu[e])return e;if(mu[e.toLowerCase()])return mu[e.toLowerCase()]}});var T2=g(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.default=dy;up.resolveLocaleLookup=hu;var _2=vu();function dy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.localeMatcher||"lookup";switch(r){case"lookup":return hu(e);case"best fit":return hu(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(r))}}function hu(e){var t=(0,_2.resolveLocale)(e);if(t)return t;for(var r=e.split("-");e.length>1;){r.pop(),e=r.join("-");var a=(0,_2.resolveLocale)(e);if(a)return a}}});var w2=g(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.default=void 0;var _={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var r=String(t).split("."),a=Number(r[0])==t,n=a&&r[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ast:function(t){var r=String(t).split("."),a=!r[1];return t==1&&a?"one":"other"},be:function(t){var r=String(t).split("."),a=Number(r[0])==t,n=a&&r[0].slice(-1),i=a&&r[0].slice(-2);return n==1&&i!=11?"one":n>=2&&n<=4&&(i<12||i>14)?"few":a&&n==0||n>=5&&n<=9||i>=11&&i<=14?"many":"other"},br:function(t){var r=String(t).split("."),a=Number(r[0])==t,n=a&&r[0].slice(-1),i=a&&r[0].slice(-2),o=a&&r[0].slice(-6);return n==1&&i!=11&&i!=71&&i!=91?"one":n==2&&i!=12&&i!=72&&i!=92?"two":(n==3||n==4||n==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&a&&o==0?"many":"other"},bs:function(t){var r=String(t).split("."),a=r[0],n=r[1]||"",i=!r[1],o=a.slice(-1),p=a.slice(-2),s=n.slice(-1),u=n.slice(-2);return i&&o==1&&p!=11||s==1&&u!=11?"one":i&&o>=2&&o<=4&&(p<12||p>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},ceb:function(t){var r=String(t).split("."),a=r[0],n=r[1]||"",i=!r[1],o=a.slice(-1),p=n.slice(-1);return i&&(a==1||a==2||a==3)||i&&o!=4&&o!=6&&o!=9||!i&&p!=4&&p!=6&&p!=9?"one":"other"},cs:function(t){var r=String(t).split("."),a=r[0],n=!r[1];return t==1&&n?"one":a>=2&&a<=4&&n?"few":n?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var r=String(t).split("."),a=r[0],n=Number(r[0])==t;return t==1||!n&&(a==0||a==1)?"one":"other"},dsb:function(t){var r=String(t).split("."),a=r[0],n=r[1]||"",i=!r[1],o=a.slice(-2),p=n.slice(-2);return i&&o==1||p==1?"one":i&&o==2||p==2?"two":i&&(o==3||o==4)||p==3||p==4?"few":"other"},dz:function(t){return"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var r=String(t).split("."),a=r[0],n=!r[1],i=a.slice(-6);return t>=0&&t<2?"one":a!=0&&i==0&&n?"many":"other"},ga:function(t){var r=String(t).split("."),a=Number(r[0])==t;return t==1?"one":t==2?"two":a&&t>=3&&t<=6?"few":a&&t>=7&&t<=10?"many":"other"},gd:function(t){var r=String(t).split("."),a=Number(r[0])==t;return t==1||t==11?"one":t==2||t==12?"two":a&&t>=3&&t<=10||a&&t>=13&&t<=19?"few":"other"},he:function(t){var r=String(t).split("."),a=r[0],n=!r[1],i=Number(r[0])==t,o=i&&r[0].slice(-1);return t==1&&n?"one":
`),d=a.split(/\r\n|[\n\r]/g),l=d[n];if(l.length>120){for(var c=Math.floor(s/80),f=s%80,m=[],v=0;v<l.length;v+=80)m.push(l.slice(v,v+80));return u+b6([["".concat(o),m[0]]].concat(m.slice(1,c+1).map(function(h){return["",h]}),[[" ",Wp(f-1)+"^"],["",m[c+1]]]))}return u+b6([["".concat(o-1),d[n-1]],["".concat(o),l],["",Wp(s-1)+"^"],["".concat(o+1),d[n+1]]])}function b6(e){var t=e.filter(function(a){var n=a[0],i=a[1];return i!==void 0}),r=Math.max.apply(Math,t.map(function(a){var n=a[0];return n.length}));return t.map(function(a){var n=a[0],i=a[1];return h_(r,n)+(i?" | "+i:" |")}).join(`
`)}function Wp(e){return Array(e+1).join(" ")}function h_(e,t){return Wp(e-t.length)+t}});var K=g(Bi=>{"use strict";function Hp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Hp=function(r){return typeof r}:Hp=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Hp(e)}Object.defineProperty(Bi,"__esModule",{value:!0});Bi.printError=S6;Bi.GraphQLError=void 0;var y_=b_(vr()),g_=hr(),_6=$p(),T6=od();function b_(e){return e&&e.__esModule?e:{default:e}}function __(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w6(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function T_(e,t,r){return t&&w6(e.prototype,t),r&&w6(e,r),e}function w_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ui(e,t)}function O_(e){var t=E6();return function(){var a=Gi(e),n;if(t){var i=Gi(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return O6(this,n)}}function O6(e,t){return t&&(Hp(t)==="object"||typeof t=="function")?t:Qi(e)}function Qi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pd(e){var t=typeof Map=="function"?new Map:void 0;return pd=function(a){if(a===null||!E_(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t!="undefined"){if(t.has(a))return t.get(a);t.set(a,n)}function n(){return Xp(a,arguments,Gi(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ui(n,a)},pd(e)}function Xp(e,t,r){return E6()?Xp=Reflect.construct:Xp=function(n,i,o){var p=[null];p.push.apply(p,i);var s=Function.bind.apply(n,p),u=new s;return o&&Ui(u,o.prototype),u},Xp.apply(null,arguments)}function E6(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function E_(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ui(e,t){return Ui=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},Ui(e,t)}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(e)}var S_=function(e){w_(r,e);var t=O_(r);function r(a,n,i,o,p,s,u){var d,l,c,f,m;__(this,r),m=t.call(this,a);var v=Array.isArray(n)?n.length!==0?n:void 0:n?[n]:void 0,h=i;if(!h&&v){var y;h=(y=v[0].loc)===null||y===void 0?void 0:y.source}var T=o;!T&&v&&(T=v.reduce(function(N,R){return R.loc&&N.push(R.loc.start),N},[])),T&&T.length===0&&(T=void 0);var w;o&&i?w=o.map(function(N){return(0,_6.getLocation)(i,N)}):v&&(w=v.reduce(function(N,R){return R.loc&&N.push((0,_6.getLocation)(R.loc.source,R.loc.start)),N},[]));var O=u;if(O==null&&s!=null){var E=s.extensions;(0,y_.default)(E)&&(O=E)}return Object.defineProperties(Qi(m),{name:{value:"GraphQLError"},message:{value:a,enumerable:!0,writable:!0},locations:{value:(d=w)!==null&&d!==void 0?d:void 0,enumerable:w!=null},path:{value:p??void 0,enumerable:p!=null},nodes:{value:v??void 0},source:{value:(l=h)!==null&&l!==void 0?l:void 0},positions:{value:(c=T)!==null&&c!==void 0?c:void 0},originalError:{value:s},extensions:{value:(f=O)!==null&&f!==void 0?f:void 0,enumerable:O!=null}}),s!=null&&s.stack?(Object.defineProperty(Qi(m),"stack",{value:s.stack,writable:!0,configurable:!0}),O6(m)):(Error.captureStackTrace?Error.captureStackTrace(Qi(m),r):Object.defineProperty(Qi(m),"stack",{value:Error().stack,writable:!0,configurable:!0}),m)}return T_(r,[{key:"toString",value:function(){return S6(this)}},{key:g_.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),r}(pd(Error));Bi.GraphQL
`+(0,T6.printLocation)(n.loc))}else if(e.source&&e.locations)for(var i=0,o=e.locations;i<o.length;i++){var p=o[i];t+=`
`+(0,T6.printSourceLocation)(e.source,p)}return t}});var Zp=g(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.syntaxError=N_;var D_=K();function N_(e,t,r){return new D_.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var Te=g(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.Kind=void 0;var I_=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});es.Kind=I_});var it=g(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.default=R_;function R_(e,t){var r=Boolean(e);if(!r)throw new Error(t??"Unexpected invariant triggered.")}});var dd=g(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.default=void 0;var L_=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,P_=L_;ts.default=P_});var rs=g(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.default=k_;var A_=N6(it()),D6=N6(dd());function N6(e){return e&&e.__esModule?e:{default:e}}function k_(e){var t=e.prototype.toJSON;typeof t=="function"||(0,A_.default)(0),e.prototype.inspect=t,D6.default&&(e.prototype[D6.default]=t)}});var Ln=g(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.isNode=M_;Qa.Token=Qa.Location=void 0;var I6=F_(rs());function F_(e){return e&&e.__esModule?e:{default:e}}var R6=function(){function e(r,a,n){this.start=r.start,this.end=a.end,this.startToken=r,this.endToken=a,this.source=n}var t=e.prototype;return t.toJSON=function(){return{start:this.start,end:this.end}},e}();Qa.Location=R6;(0,I6.default)(R6);var L6=function(){function e(r,a,n,i,o,p,s){this.kind=r,this.start=a,this.end=n,this.line=i,this.column=o,this.value=s,this.prev=p,this.next=null}var t=e.prototype;return t.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();Qa.Token=L6;(0,I6.default)(L6);function M_(e){return e!=null&&typeof e.kind=="string"}});var Pn=g(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});as.TokenKind=void 0;var V_=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});as.TokenKind=V_});var se=g(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.default=x_;var q_=j_(dd());function j_(e){return e&&e.__esModule?e:{default:e}}function ns(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ns=function(r){return typeof r}:ns=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!=
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
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};ps.default=W_});var ss=g(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.isSource=eT;zi.Source=void 0;var J_=hr(),H_=vd(se()),md=vd(Gt()),X_=vd(Ki());function vd(e){return e&&e.__esModule?e:{default:e}}function A6(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Z_(e,t,r){return t&&A6(e.prototype,t),r&&A6(e,r),e}var k6=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GraphQL request",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{line:1,column:1};typeof t=="string"||(0,md.default)(0,"Body must be a string. Received: ".concat((0,H_.default)(t),".")),this.body=t,this.name=r,this.locationOffset=a,this.locationOffset.line>0||(0,md.default)(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,md.default)(0,"column in locationOffset is 1-indexed and must be positive.")}return Z_(e,[{key:J_.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();zi.Source=k6;function eT(e){return(0,X_.default)(e,k6)}});var An=g(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.DirectiveLocation=void 0;var tT=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});us.DirectiveLocation=tT});var kn=g(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.dedentBlockStringValue=rT;Yi.getBlockStringIndentation=M6;Yi.printBlockString=aT;function rT(e){var t=e.split(/\r\n|[\n\r]/g),r=M6(e);if(r!==0)for(var a=1;a<t.length;a++)t[a]=t[a].slice(r);for(var n=0;n<t.length&&F6(t[n]);)++n;for(var i=t.length;i>n&&F6(t[i-1]);)--i;return t.slice(n,i).join(`
`)}function F6(e){for(var t=0;t<e.length;++t)if(e[t]!==" "&&e[t]!==" ")return!1;return!0}function M6(e){for(var t,r=!0,a=!0,n=0,i=null,o=0;o<e.length;++o)switch(e.charCodeAt(o)){case 13:e.charCodeAt(o+1)===10&&++o;case 10:r=!1,a=!0,n=0;break;case 9:case 32:++n;break;default:a&&!r&&(i===null||n<i)&&(i=n),a=!1}return(t=i)!==null&&t!==void 0?t:0}function aT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=e.indexOf(`
`)===-1,n=e[0]===" "||e[0]===" ",i=e[e.length-1]==='"',o=e[e.length-1]==="\\",p=!a||i||o||r,s="";return p&&!(a&&n)&&(s+=`
`+t),s+=t?e.replace(/\n/g,`
`+t):e,p&&(s+=`
`),'"""'+s.replace(/"""/g,'\\"""')+'"""'}});var ls=g($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.isPunctuatorTokenKind=oT;$i.Lexer=void 0;var yr=Zp(),Ke=Ln(),Z=Pn(),nT=kn(),iT=function(){function e(r){var a=new Ke.Token(Z.TokenKind.SOF,0,0,0,0,null);this.source=r,this.lastToken=a,this.token=a,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){this.lastToken=this.token;var a=this.token=this.lookahead();return a},t.lookahead=function(){var a=this.token;if(a.kind!==Z.TokenKind.EOF)do{var n;a=(n=a.next)!==null&&n!==void 0?n:a.next=pT(this,a)}while(a.kind===Z.TokenKind.COMMENT);return a},e}();$i.Lexer=iT;function oT(e){return e===Z.TokenKind.BANG||e===Z.TokenKind.DOLLAR||e===Z.TokenKind.AMP||e===Z.TokenKind.PAREN_L||e===Z.TokenKind.PAREN_R||e===Z.TokenKind.SPREAD||e===Z.TokenKind.COLON||e===Z.TokenKind.EQUALS||e===Z.TokenKind.AT||e===Z.TokenKind.BRACKET_L||e===Z.TokenKind.BRACKET_R||e===Z.TokenKind.BRACE_L||e===Z.TokenKind.PIPE||e===Z.TokenKind.BRACE_R}function Ua(e){return isNaN(e)?Z.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function pT(e,t){for(var r=e.source,a=r.body,n=a.length,i=t.end;i<n;){var o=a.charCodeAt(i),p=e.line,s=1+i-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:a.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 33:return new Ke.Token(Z.TokenKind.BANG,i,i+1,p,s,t);case 35:return uT(r,i,p,s,t);case 36:return new Ke.Token(Z.TokenKind.DOLLAR,i,i+1,p,s,t);case 38:return new Ke.Token(Z.TokenKind.AMP,i,i+1,p,s,t);case 40:return new Ke.Token(Z.TokenKind.PAREN_L,i,i+1,p,s,t);case 41:return new Ke.Token(Z.TokenKind.PAREN_R,i,i+1,p,s,t);case 46:if(a.charCodeAt(i+1)===46&&a.charCodeAt(i+2)===46)return new Ke.Token(Z.TokenKind.SPREAD,i,i+3,p,s,t);break;case 58:return new Ke.Token(Z.TokenKind.COLON,i,i+1,p,s,t);case 61:return new Ke.Token(Z.TokenKind.EQUALS,i,i+1,p,s,t);case 64:return new Ke.Token(Z.TokenKind.AT,i,i+1,p,s,t);case 91:return new Ke.Token(Z.TokenKind.BRACKET_L,i,i+1,p,s,t);case 93:return new Ke.Token(Z.TokenKind.BRACKET_R,i,i+1,p,s,t);case 123:return new Ke.Token(Z.TokenKind.BRACE_L,i,i+1,p,s,t);case 124:return new Ke.Token(Z.TokenKind.PIPE,i,i+1,p,s,t);case 125:return new Ke.Token(Z.TokenKind.BRACE_R,i,i+1,p,s,t);case 34:return a.charCodeAt(i+1)===34&&a.charCodeAt(i+2)===34?cT(r,i,p,s,t,e):lT(r,i,p,s,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return dT(r,i,o,p,s,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return mT(r,i,p,s,t)}throw(0,yr.syntaxError)(r,i,sT(o))}var u=e.line,d=1+i-e.lineStart;return new Ke.Token(Z.TokenKind.EOF,n,n,u,d,t)}function sT(e){return e<32&&e!==9&&e!==10&&e!==13?"Cannot contain the invalid character ".concat(Ua(e),"."):e===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(Ua(e),".")}function uT(e,t,r,a,n){var i=e.body,o,p=t;do o=i.charCodeAt(++p);while(!isNaN(o)&&(o>31||o===9));return new Ke.Token(Z.TokenKind.COMMENT,t,p,r,a,n,i.slice(t+1,p))}function dT(e,t,r,a,n,i){var o=e.body,p=r,s=t,u=!1;if(p===45&&(p=o.charCodeAt(++s)),p===48){if(p=o.charCodeAt(++s),p>=48&&p<=57)throw(0,yr.syntaxError)(e,s,"Invalid number, unexpected digit after 0: ".concat(Ua(p),"."))}else s=hd(e,s,p),p=o.charCodeAt(s);if(p===46&&(u=!0,p=o.charCodeAt(++s),s=hd(e,s,p),p=o.charCodeAt(s)),(p===69||p===101)&&(u=!0,p=o.charCodeAt(++s),(p===43||p===45)&&(p=o.charCodeAt(++s)),s=hd(e,s,p),p=o.charCodeAt(s)),p===46||vT(p))throw(0,yr.syntaxError)(e,s,"Invalid number, expecte
`;break;case 114:u+="\r";break;case 116:u+=" ";break;case 117:{var d=fT(i.charCodeAt(o+1),i.charCodeAt(o+2),i.charCodeAt(o+3),i.charCodeAt(o+4));if(d<0){var l=i.slice(o+1,o+5);throw(0,yr.syntaxError)(e,o,"Invalid character escape sequence: \\u".concat(l,"."))}u+=String.fromCharCode(d),o+=4;break}default:throw(0,yr.syntaxError)(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(s),"."))}++o,p=o}}throw(0,yr.syntaxError)(e,o,"Unterminated string.")}function cT(e,t,r,a,n,i){for(var o=e.body,p=t+3,s=p,u=0,d="";p<o.length&&!isNaN(u=o.charCodeAt(p));){if(u===34&&o.charCodeAt(p+1)===34&&o.charCodeAt(p+2)===34)return d+=o.slice(s,p),new Ke.Token(Z.TokenKind.BLOCK_STRING,t,p+3,r,a,n,(0,nT.dedentBlockStringValue)(d));if(u<32&&u!==9&&u!==10&&u!==13)throw(0,yr.syntaxError)(e,p,"Invalid character within String: ".concat(Ua(u),"."));u===10?(++p,++i.line,i.lineStart=p):u===13?(o.charCodeAt(p+1)===10?p+=2:++p,++i.line,i.lineStart=p):u===92&&o.charCodeAt(p+1)===34&&o.charCodeAt(p+2)===34&&o.charCodeAt(p+3)===34?(d+=o.slice(s,p)+'"""',p+=4,s=p):++p}throw(0,yr.syntaxError)(e,p,"Unterminated string.")}function fT(e,t,r,a){return ds(e)<<12|ds(t)<<8|ds(r)<<4|ds(a)}function ds(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function mT(e,t,r,a,n){for(var i=e.body,o=i.length,p=t+1,s=0;p!==o&&!isNaN(s=i.charCodeAt(p))&&(s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++p;return new Ke.Token(Z.TokenKind.NAME,t,p,r,a,n,i.slice(t,p))}function vT(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var Fn=g(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.parse=gT;Ga.parseValue=bT;Ga.parseType=_T;Ga.Parser=void 0;var yd=Zp(),Y=Te(),hT=Ln(),k=Pn(),V6=ss(),yT=An(),q6=ls();function gT(e,t){var r=new cs(e,t);return r.parseDocument()}function bT(e,t){var r=new cs(e,t);r.expectToken(k.TokenKind.SOF);var a=r.parseValueLiteral(!1);return r.expectToken(k.TokenKind.EOF),a}function _T(e,t){var r=new cs(e,t);r.expectToken(k.TokenKind.SOF);var a=r.parseTypeReference();return r.expectToken(k.TokenKind.EOF),a}var cs=function(){function e(r,a){var n=(0,V6.isSource)(r)?r:new V6.Source(r);this._lexer=new q6.Lexer(n),this._options=a}var t=e.prototype;return t.parseName=function(){var a=this.expectToken(k.TokenKind.NAME);return{kind:Y.Kind.NAME,value:a.value,loc:this.loc(a)}},t.parseDocument=function(){var a=this._lexer.token;return{kind:Y.Kind.DOCUMENT,definitions:this.many(k.TokenKind.SOF,this.parseDefinition,k.TokenKind.EOF),loc:this.loc(a)}},t.parseDefinition=function(){if(this.peek(k.TokenKind.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(k.TokenKind.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var a=this._lexer.token;if(this.peek(k.TokenKind.BRACE_L))return{kind:Y.Kind.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(a)};var n=this.parseOperationType(),i;return this.peek(k.TokenKind.NAME)&&(i=this.parseName()),{kind:Y.Kind.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(a)}},t.parseOperationType=function(){var a=this.expectToken(k.TokenKind.NAME);switch(a.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(a)},t.parseVariableDefinitions=function(){return this.optionalMany(k.TokenKind.PAREN_L,this.parseVariableDefinition,k.TokenKind.PAREN_R)},t.parseVariableDefinition=function(){var a=this._lexer.token;return{kind:Y.Kind.VARIABLE_DEFINITION,varia
`)+`
`},OperationDefinition:function(t){var r=t.operation,a=t.name,n=Ae("(",V(t.variableDefinitions,", "),")"),i=V(t.directives," "),o=t.selectionSet;return!a&&!i&&!n&&r==="query"?o:V([r,V([a,n]),i,o]," ")},VariableDefinition:function(t){var r=t.variable,a=t.type,n=t.defaultValue,i=t.directives;return r+": "+a+Ae(" = ",n)+Ae(" ",V(i," "))},SelectionSet:function(t){var r=t.selections;return er(r)},Field:function(t){var r=t.alias,a=t.name,n=t.arguments,i=t.directives,o=t.selectionSet,p=Ae("",r,": ")+a,s=p+Ae("(",V(n,", "),")");return s.length>iw&&(s=p+Ae(`(
`,_s(V(n,`
`)),`
)`)),V([s,V(i," "),o]," ")},Argument:function(t){var r=t.name,a=t.value;return r+": "+a},FragmentSpread:function(t){var r=t.name,a=t.directives;return"..."+r+Ae(" ",V(a," "))},InlineFragment:function(t){var r=t.typeCondition,a=t.directives,n=t.selectionSet;return V(["...",Ae("on ",r),V(a," "),n]," ")},FragmentDefinition:function(t){var r=t.name,a=t.typeCondition,n=t.variableDefinitions,i=t.directives,o=t.selectionSet;return"fragment ".concat(r).concat(Ae("(",V(n,", "),")")," ")+"on ".concat(a," ").concat(Ae("",V(i," ")," "))+o},IntValue:function(t){var r=t.value;return r},FloatValue:function(t){var r=t.value;return r},StringValue:function(t,r){var a=t.value,n=t.block;return n?(0,aw.printBlockString)(a,r==="description"?"":" "):JSON.stringify(a)},BooleanValue:function(t){var r=t.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){var r=t.value;return r},ListValue:function(t){var r=t.values;return"["+V(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+V(r,", ")+"}"},ObjectField:function(t){var r=t.name,a=t.value;return r+": "+a},Directive:function(t){var r=t.name,a=t.arguments;return"@"+r+Ae("(",V(a,", "),")")},NamedType:function(t){var r=t.name;return r},ListType:function(t){var r=t.type;return"["+r+"]"},NonNullType:function(t){var r=t.type;return r+"!"},SchemaDefinition:Zt(function(e){var t=e.directives,r=e.operationTypes;return V(["schema",V(t," "),er(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,a=t.type;return r+": "+a},ScalarTypeDefinition:Zt(function(e){var t=e.name,r=e.directives;return V(["scalar",t,V(r," ")]," ")}),ObjectTypeDefinition:Zt(function(e){var t=e.name,r=e.interfaces,a=e.directives,n=e.fields;return V(["type",t,Ae("implements ",V(r," & ")),V(a," "),er(n)]," ")}),FieldDefinition:Zt(function(e){var t=e.name,r=e.arguments,a=e.type,n=e.directives;return t+(K6(r)?Ae(`(
`,_s(V(r,`
`)),`
)`):Ae("(",V(r,", "),")"))+": "+a+Ae(" ",V(n," "))}),InputValueDefinition:Zt(function(e){var t=e.name,r=e.type,a=e.defaultValue,n=e.directives;return V([t+": "+r,Ae("= ",a),V(n," ")]," ")}),InterfaceTypeDefinition:Zt(function(e){var t=e.name,r=e.interfaces,a=e.directives,n=e.fields;return V(["interface",t,Ae("implements ",V(r," & ")),V(a," "),er(n)]," ")}),UnionTypeDefinition:Zt(function(e){var t=e.name,r=e.directives,a=e.types;return V(["union",t,V(r," "),a&&a.length!==0?"= "+V(a," | "):""]," ")}),EnumTypeDefinition:Zt(function(e){var t=e.name,r=e.directives,a=e.values;return V(["enum",t,V(r," "),er(a)]," ")}),EnumValueDefinition:Zt(function(e){var t=e.name,r=e.directives;return V([t,V(r," ")]," ")}),InputObjectTypeDefinition:Zt(function(e){var t=e.name,r=e.directives,a=e.fields;return V(["input",t,V(r," "),er(a)]," ")}),DirectiveDefinition:Zt(function(e){var t=e.name,r=e.arguments,a=e.repeatable,n=e.locations;return"directive @"+t+(K6(r)?Ae(`(
`,_s(V(r,`
`)),`
)`):Ae("(",V(r,", "),")"))+(a?" repeatable":"")+" on "+V(n," | ")}),SchemaExtension:function(t){var r=t.directives,a=t.operationTypes;return V(["extend schema",V(r," "),er(a)]," ")},ScalarTypeExtension:function(t){var r=t.name,a=t.directives;return V(["extend scalar",r,V(a," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,a=t.interfaces,n=t.directives,i=t.fields;return V(["extend type",r,Ae("implements ",V(a," & ")),V(n," "),er(i)]," ")},InterfaceTypeExtension:function(t){var r=t.name,a=t.interfaces,n=t.directives,i=t.fields;return V(["extend interface",r,Ae("implements ",V(a," & ")),V(n," "),er(i)]," ")},UnionTypeExtension:function(t){var r=t.name,a=t.directives,n=t.types;return V(["extend union",r,V(a," "),n&&n.length!==0?"= "+V(n," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,a=t.directives,n=t.values;return V(["extend enum",r,V(a," "),er(n)]," ")},InputObjectTypeExtension:function(t){var r=t.name,a=t.directives,n=t.fields;return V(["extend input",r,V(a," "),er(n)]," ")}};function Zt(e){return function(t){return V([t.description,e(t)],`
`)}}function V(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(t=e==null?void 0:e.filter(function(a){return a}).join(r))!==null&&t!==void 0?t:""}function er(e){return Ae(`{
`,_s(V(e,`
`)),`
}`)}function Ae(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function _s(e){return Ae(" ",e.replace(/\n/g,`
`))}function pw(e){return e.indexOf(`
`)!==-1}function K6(e){return e!=null&&e.some(pw)}});var Md=g(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.valueFromASTUntyped=kd;var sw=Ad(se()),uw=Ad(it()),dw=Ad(Ji()),kr=Te();function Ad(e){return e&&e.__esModule?e:{default:e}}function kd(e,t){switch(e.kind){case kr.Kind.NULL:return null;case kr.Kind.INT:return parseInt(e.value,10);case kr.Kind.FLOAT:return parseFloat(e.value);case kr.Kind.STRING:case kr.Kind.ENUM:case kr.Kind.BOOLEAN:return e.value;case kr.Kind.LIST:return e.values.map(function(r){return kd(r,t)});case kr.Kind.OBJECT:return(0,dw.default)(e.fields,function(r){return r.name.value},function(r){return kd(r.value,t)});case kr.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}(0,uw.default)(0,"Unexpected value node: "+(0,sw.default)(e))}});var oe=g(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.isType=Vd;G.assertType=H6;G.isScalarType=Ba;G.assertScalarType=yw;G.isObjectType=Cn;G.assertObjectType=gw;G.isInterfaceType=Ka;G.assertInterfaceType=bw;G.isUnionType=za;G.assertUnionType=_w;G.isEnumType=Ya;G.assertEnumType=Tw;G.isInputObjectType=Zi;G.assertInputObjectType=ww;G.isListType=ws;G.assertListType=Ow;G.isNonNullType=pa;G.assertNonNullType=Ew;G.isInputType=qd;G.assertInputType=Sw;G.isOutputType=jd;G.assertOutputType=Dw;G.isLeafType=X6;G.assertLeafType=Nw;G.isCompositeType=Z6;G.assertCompositeType=Iw;G.isAbstractType=e4;G.assertAbstractType=Rw;G.GraphQLList=sa;G.GraphQLNonNull=ua;G.isWrappingType=eo;G.assertWrappingType=Lw;G.isNullableType=t4;G.assertNullableType=r4;G.getNullableType=Pw;G.isNamedType=a4;G.assertNamedType=Aw;G.getNamedType=kw;G.argsToArgsConfig=p4;G.isRequiredArgument=Fw;G.isRequiredInputField=jw;G.GraphQLInputObjectType=G.GraphQLEnumType=G.GraphQLUnionType=G.GraphQLInterfaceType=G.GraphQLObjectType=G.GraphQLScalarType=void 0;var z6=At(qn()),na=hr(),Se=At(se()),lw=At(ta()),Ts=At(Od()),gr=At(gs()),Ie=At(Gt()),Y6=At(Ji()),ia=At(Ki()),cw=At(ra()),fw=At(vr()),$6=At(G6()),oa=At(rs()),mw=At(aa()),Xi=K(),vw=Te(),W6=Pt(),hw=Md();function At(e){return e&&e.__esModule?e:{default:e}}function J6(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function jn(e,t,r){return t&&J6(e.prototype,t),r&&J6(e,r),e}function Vd(e){return Ba(e)||Cn(e)||Ka(e)||za(e)||Ya(e)||Zi(e)||ws(e)||pa(e)}function H6(e){if(!Vd(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL type."));return e}function Ba(e){return(0,ia.default)(e,Cd)}function yw(e){if(!Ba(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL Scalar type."));return e}function Cn(e){return(0,ia.default)(e,xd)}function gw(e){if(!Cn(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL Object type."));return e}function Ka(e){return(0,ia.default)(e,Qd)}function bw(e){if(!Ka(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL Interface type."));return e}function za(e){return(0,ia.default)(e,Ud)}function _w(e){if(!za(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL Union type."));return e}function Ya(e){return(0,ia.default)(e,Gd)}function Tw(e){if(!Ya(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL Enum type."));return e}function Zi(e){return(0,ia.default)(e,Bd)}function ww(e){if(!Zi(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL Input Object type."));return e}function ws(e){return(0,ia.default)(e,sa)}function Ow(e){if(!ws(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL List type."));return e}function pa(e){return(0,ia.default)(e,ua)}function Ew(e){if(!pa(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL Non-Null type."));return e}function qd(e){return Ba(e)||Ya(e)||Zi(e)||eo(e)&&qd(e.ofType)}function Sw(e){if(!qd(e))throw new Error("Expected ".concat((0,Se.default)(e)," to be a GraphQL input type."));return e}function jd(e){return Ba(e)||Cn(e)||Ka(e)||za(e)||Ya(e)||eo(e)&&jd(e.ofType)}function Dw(e){if(!jd(
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:function(){return{name:{type:new q.GraphQLNonNull(we.GraphQLString),resolve:function(r){return r.name}},description:{type:we.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new q.GraphQLNonNull(we.GraphQLBoolean),resolve:function(r){return r.isRepeatable}},locations:{type:new q.GraphQLNonNull(new q.GraphQLList(new q.GraphQLNonNull(rl))),resolve:function(r){return r.locations}},args:{type:new q.GraphQLNonNull(new q.GraphQLList(new q.GraphQLNonNull(uo))),args:{includeDeprecated:{type:we.GraphQLBoolean,defaultValue:!1}},resolve:function(r,a){var n=a.includeDeprecated;return n?r.args:r.args.filter(function(i){return i.deprecationReason==null})}}}}});ye.__Directive=tl;var rl=new q.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:He.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:He.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:He.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:He.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:He.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:He.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:He.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:He.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:He.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:He.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:He.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:He.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:He.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:He.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:He.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:He.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:He.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:He.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:He.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});ye.__DirectiveLocation=rl;var Kt=new q.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:function(){return{kind:{type:new q.GraphQLNonNull(il),resolve:function(r){if((0,q.isScalarType)(r))return ot.SCALAR;if((0,q.isObjectType)(r))return ot.OBJECT;if((0,q.is
`))}var BO=function(){function e(r){this._errors=[],this.schema=r}var t=e.prototype;return t.reportError=function(a,n){var i=Array.isArray(n)?n.filter(Boolean):n;this.addError(new jO.GraphQLError(a,i))},t.addError=function(a){this._errors.push(a)},t.getErrors=function(){return this._errors},e}();function KO(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,ze.isObjectType)(r)){var a;e.reportError("Query root type must be Object type, it cannot be ".concat((0,lt.default)(r),"."),(a=dl(t,"query"))!==null&&a!==void 0?a:r.astNode)}var n=t.getMutationType();if(n&&!(0,ze.isObjectType)(n)){var i;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,lt.default)(n),"."),(i=dl(t,"mutation"))!==null&&i!==void 0?i:n.astNode)}var o=t.getSubscriptionType();if(o&&!(0,ze.isObjectType)(o)){var p;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,lt.default)(o),"."),(p=dl(t,"subscription"))!==null&&p!==void 0?p:o.astNode)}}function dl(e,t){for(var r=ll(e,function(i){return i.operationTypes}),a=0;a<r.length;a++){var n=r[a];if(n.operation===t)return n.type}}function zO(e){for(var t=0,r=e.schema.getDirectives();t<r.length;t++){var a=r[t];if(!(0,F4.isDirective)(a)){e.reportError("Expected directive but got: ".concat((0,lt.default)(a),"."),a==null?void 0:a.astNode);continue}Xa(e,a);for(var n=0,i=a.args;n<i.length;n++){var o=i[n];if(Xa(e,o),(0,ze.isInputType)(o.type)||e.reportError("The type of @".concat(a.name,"(").concat(o.name,":) must be Input Type ")+"but got: ".concat((0,lt.default)(o.type),"."),o.astNode),(0,ze.isRequiredArgument)(o)&&o.deprecationReason!=null){var p;e.reportError("Required argument @".concat(a.name,"(").concat(o.name,":) cannot be deprecated."),[cl(o.astNode),(p=o.astNode)===null||p===void 0?void 0:p.type])}}}}function Xa(e,t){var r=(0,xO.isValidNameError)(t.name);r&&e.addError((0,CO.locatedError)(r,t.astNode))}function YO(e){for(var t=ZO(e),r=e.schema.getTypeMap(),a=0,n=(0,lo.default)(r);a<n.length;a++){var i=n[a];if(!(0,ze.isNamedType)(i)){e.reportError("Expected GraphQL named type but got: ".concat((0,lt.default)(i),"."),i.astNode);continue}(0,UO.isIntrospectionType)(i)||Xa(e,i),(0,ze.isObjectType)(i)||(0,ze.isInterfaceType)(i)?(V4(e,i),q4(e,i)):(0,ze.isUnionType)(i)?JO(e,i):(0,ze.isEnumType)(i)?HO(e,i):(0,ze.isInputObjectType)(i)&&(XO(e,i),t(i))}}function V4(e,t){var r=(0,lo.default)(t.getFields());r.length===0&&e.reportError("Type ".concat(t.name," must define one or more fields."),Bn(t));for(var a=0;a<r.length;a++){var n=r[a];if(Xa(e,n),!(0,ze.isOutputType)(n.type)){var i;e.reportError("The type of ".concat(t.name,".").concat(n.name," must be Output Type ")+"but got: ".concat((0,lt.default)(n.type),"."),(i=n.astNode)===null||i===void 0?void 0:i.type)}for(var o=0,p=n.args;o<p.length;o++){var s=p[o],u=s.name;if(Xa(e,s),!(0,ze.isInputType)(s.type)){var d;e.reportError("The type of ".concat(t.name,".").concat(n.name,"(").concat(u,":) must be Input ")+"Type but got: ".concat((0,lt.default)(s.type),"."),(d=s.astNode)===null||d===void 0?void 0:d.type)}if((0,ze.isRequiredArgument)(s)&&s.deprecationReason!=null){var l;e.reportError("Required argument ".concat(t.name,".").concat(n.name,"(").concat(u,":) cannot be deprecated."),[cl(s.astNode),(l=s.astNode)===null||l===void 0?void 0:l.type])}}}}function q4(e,t){for(var r=Object.create(null),a=0,n=t.getInterfaces();a<n.length;a++){var i=n[a];if(!(0,ze.isInterfaceType)(i)){e.reportError("Type ".concat((0,lt.default)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,lt.default)(i),"."),co(t,i));continue}if(t===i){e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),co(t,i));continue}if(r[i.name]){e.reportError("Type ".concat(t.name," can only implement ").concat(i.name," once."),co(t,i));continue}r[i.name]=!0,WO(e,t,i),$O(e,t,i)}}function $O(e,t,r){for(var a=t.getFields(),n=0,i=(0,lo.default)(r.getFields());n<i.length;n++){var o=i[n],p=o.name
`))}function JD(e,t){var r=Cc(e,t);if(r.length!==0)throw new Error(r.map(function(a){return a.message}).join(`
`))}});var r3=g(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.default=HD;function HD(e){var t;return function(a,n,i){t||(t=new WeakMap);var o=t.get(a),p;if(o){if(p=o.get(n),p){var s=p.get(i);if(s!==void 0)return s}}else o=new WeakMap,t.set(a,o);p||(p=new WeakMap,o.set(n,p));var u=e(a,n,i);return p.set(i,u),u}}});var a3=g(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.default=eN;var XD=ZD(zp());function ZD(e){return e&&e.__esModule?e:{default:e}}function eN(e,t,r){return e.reduce(function(a,n){return(0,XD.default)(a)?a.then(function(i){return t(i,n)}):t(a,n)},r)}});var n3=g(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.default=tN;function tN(e){var t=Object.keys(e),r=t.map(function(a){return e[a]});return Promise.all(r).then(function(a){return a.reduce(function(n,i,o){return n[t[o]]=i,n},Object.create(null))})}});var go=g(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.addPath=rN;Js.pathToArray=aN;function rN(e,t,r){return{prev:e,key:t,typename:r}}function aN(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var Xs=g(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.getOperationRootType=nN;var Hs=K();function nN(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new Hs.GraphQLError("Schema does not define the required query root type.",t);return r}if(t.operation==="mutation"){var a=e.getMutationType();if(!a)throw new Hs.GraphQLError("Schema is not configured for mutations.",t);return a}if(t.operation==="subscription"){var n=e.getSubscriptionType();if(!n)throw new Hs.GraphQLError("Schema is not configured for subscriptions.",t);return n}throw new Hs.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var Kc=g(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.default=iN;function iN(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var _o=g(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.valueFromAST=bo;var oN=Zs(Lt()),pN=Zs(ta()),sN=Zs(se()),uN=Zs(it()),Hn=Te(),rn=oe();function Zs(e){return e&&e.__esModule?e:{default:e}}function bo(e,t,r){if(!!e){if(e.kind===Hn.Kind.VARIABLE){var a=e.name.value;if(r==null||r[a]===void 0)return;var n=r[a];return n===null&&(0,rn.isNonNullType)(t)?void 0:n}if((0,rn.isNonNullType)(t))return e.kind===Hn.Kind.NULL?void 0:bo(e,t.ofType,r);if(e.kind===Hn.Kind.NULL)return null;if((0,rn.isListType)(t)){var i=t.ofType;if(e.kind===Hn.Kind.LIST){for(var o=[],p=0,s=e.values;p<s.length;p++){var u=s[p];if(i3(u,r)){if((0,rn.isNonNullType)(i))return;o.push(null)}else{var d=bo(u,i,r);if(d===void 0)return;o.push(d)}}return o}var l=bo(e,i,r);return l===void 0?void 0:[l]}if((0,rn.isInputObjectType)(t)){if(e.kind!==Hn.Kind.OBJECT)return;for(var c=Object.create(null),f=(0,pN.default)(e.fields,function(O){return O.name.value}),m=0,v=(0,oN.default)(t.getFields());m<v.length;m++){var h=v[m],y=f[h.name];if(!y||i3(y.value,r)){if(h.defaultValue!==void 0)c[h.name]=h.defaultValue;else if((0,rn.isNonNullType)(h.type))return;continue}var T=bo(y.value,h.type,r);if(T===void 0)return;c[h.name]=T}return c}if((0,rn.isLeafType)(t)){var w;try{w=t.parseLiteral(e,r)}catch{return}return w===void 0?void 0:w}(0,uN.default)(0,"Unexpected input type: "+(0,sN.default)(t))}}function i3(e,t){return e.kind===Hn.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var $c=g(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.coerceInputValue=yN;var dN=fa(Lt()),e1=fa(se()),lN=fa(it()),cN=fa(ra()),fN=fa(vr()),mN=fa(Rs()),vN=fa(aa()),hN=fa(Kc()),Fr=go(),an=K(),To=oe();function fa(e){return e&&e.__esModule?e:{default:e}}function yN(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gN;return wo(e,t,r)}function gN(e,t,r){var a="Invalid value "+(0,e1.default)(t);throw e.length>0&&(a+=' at "value'.concat((0,hN.default)(e),'"')),r.message=a+": "+r.message,r}function wo(e,t,r,a){if((0,To.isNonNullType)(t)){if(e!=null)return wo(e,t.ofType,r,a);r((0,Fr.pat
query IntrospectionQuery {
__schema {
`.concat(i,`
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
`).concat(r,`
`).concat(n,`
locations
args`).concat(o("(includeDeprecated: true)"),` {
...InputValue
}
}
}
}
fragment FullType on __Type {
kind
name
`).concat(r,`
`).concat(a,`
fields(includeDeprecated: true) {
name
`).concat(r,`
args`).concat(o("(includeDeprecated: true)"),` {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields`).concat(o("(includeDeprecated: true)"),` {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
`).concat(r,`
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
`).concat(r,`
type { ...TypeRef }
defaultValue
`).concat(o("isDeprecated"),`
`).concat(o("deprecationReason"),`
}
fragment TypeRef on __Type {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
ofType {
kind
name
}
}
}
}
}
}
}
}
`)}});var Z3=g(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.getOperationAST=gR;var yR=Te();function gR(e,t){for(var r=null,a=0,n=e.definitions;a<n.length;a++){var i=n[a];if(i.kind===yR.Kind.OPERATION_DEFINITION){var o;if(t==null){if(r)return null;r=i}else if(((o=i.name)===null||o===void 0?void 0:o.value)===t)return i}}return r}});var t5=g(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});m0.introspectionFromSchema=DR;var bR=OR(it()),_R=Fn(),TR=Io(),wR=c0();function OR(e){return e&&e.__esModule?e:{default:e}}function e5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function ER(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e5(Object(r),!0).forEach(function(a){SR(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e5(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function SR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DR(e,t){var r=ER({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),a=(0,_R.parse)((0,wR.getIntrospectionQuery)(r)),n=(0,TR.executeSync)({schema:e,document:a});return!n.errors&&n.data||(0,bR.default)(0),n.data}});var a5=g(v0=>{"use strict";Object.defineProperty(v0,"__esModule",{value:!0});v0.buildClientSchema=FR;var NR=Lo(Lt()),Ft=Lo(se()),IR=Lo(Gt()),l1=Lo(Ji()),r5=Lo(vr()),RR=Fn(),LR=Ha(),PR=bt(),AR=br(),Er=zt(),Mt=oe(),kR=_o();function Lo(e){return e&&e.__esModule?e:{default:e}}function FR(e,t){(0,r5.default)(e)&&(0,r5.default)(e.__schema)||(0,IR.default)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,Ft.default)(e),"."));for(var r=e.__schema,a=(0,l1.default)(r.types,function(S){return S.name},function(S){return v(S)}),n=0,i=[].concat(AR.specifiedScalarTypes,Er.introspectionTypes);n<i.length;n++){var o=i[n];a[o.name]&&(a[o.name]=o)}var p=r.queryType?f(r.queryType):null,s=r.mutationType?f(r.mutationType):null,u=r.subscriptionType?f(r.subscriptionType):null,d=r.directives?r.directives.map(Be):[];return new LR.GraphQLSchema({description:r.description,query:p,mutation:s,subscription:u,types:(0,NR.default)(a),directives:d,assumeValid:t==null?void 0:t.assumeValid});function l(S){if(S.kind===Er.TypeKind.LIST){var z=S.ofType;if(!z)throw new Error("Decorated type deeper than introspection query.");return new Mt.GraphQLList(l(z))}if(S.kind===Er.TypeKind.NON_NULL){var fe=S.ofType;if(!fe)throw new Error("Decorated type deeper than introspection query.");var Pe=l(fe);return new Mt.GraphQLNonNull((0,Mt.assertNullableType)(Pe))}return c(S)}function c(S){var z=S.name;if(!z)throw new Error("Unknown type reference: ".concat((0,Ft.default)(S),"."));var fe=a[z];if(!fe)throw new Error("Invalid or incomplete schema, unknown type: ".concat(z,". Ensure that a full introspection query is used in order to build a client schema."));return fe}function f(S){return(0,Mt.assertObjectType)(c(S))}function m(S){return(0,Mt.assertInterfaceType)(c(S))}function v(S){if(S!=null&&S.name!=null&&S.kind!=null)switch(S.kind){case Er.TypeKind.SCALAR:return h(S);case Er.TypeKind.OBJECT:return T(S);case Er.TypeKind.INTERFACE:return w(S);case Er.TypeKind.UNION:return O(S);case Er.TypeKind.ENUM:return E(S);case Er.TypeKind.INPUT_OBJECT:return N(S)}var z=(0,Ft.default)(S);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(z,"."))}function h(S){return new Mt.GraphQLScalarType({name:S.name,description:S.description,specifiedByUrl:S.specifiedByUrl})}function y(S){if(S.interfaces===null&&S.kind===Er.TypeKind.INTERFACE)return[];if(!S.interfaces){var z=(0,Ft.default)(S);t
`+r)}}function GR(e){var t=e.loc;if(!!t){for(var r=[],a=t.startToken.prev;a!=null&&a.kind===jR.TokenKind.COMMENT&&a.next&&a.prev&&a.line+1===a.next.line&&a.line!==a.prev.line;){var n=String(a.value);r.push(n),a=a.prev}return r.length>0?r.reverse().join(`
`):void 0}}});var g5=g(m1=>{"use strict";Object.defineProperty(m1,"__esModule",{value:!0});m1.buildASTSchema=y5;m1.buildSchema=HR;var BR=JR(Gt()),KR=Te(),zR=Fn(),YR=Jn(),$R=Ha(),h5=bt(),WR=h0();function JR(e){return e&&e.__esModule?e:{default:e}}function y5(e,t){e!=null&&e.kind===KR.Kind.DOCUMENT||(0,BR.default)(0,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,YR.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},a=(0,WR.extendSchemaImpl)(r,e,t);if(a.astNode==null)for(var n=0,i=a.types;n<i.length;n++){var o=i[n];switch(o.name){case"Query":a.query=o;break;case"Mutation":a.mutation=o;break;case"Subscription":a.subscription=o;break}}for(var p=a.directives,s=function(l){var c=h5.specifiedDirectives[l];p.every(function(f){return f.name!==c.name})&&p.push(c)},u=0;u<h5.specifiedDirectives.length;u++)s(u);return new $R.GraphQLSchema(a)}function HR(e,t){var r=(0,zR.parse)(e,{noLocation:t==null?void 0:t.noLocation,allowLegacySDLEmptyFields:t==null?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:t==null?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:t==null?void 0:t.experimentalFragmentVariables});return y5(r,{commentDescriptions:t==null?void 0:t.commentDescriptions,assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var _5=g(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.lexicographicSortSchema=pL;var XR=ko(Lt()),ZR=ko(se()),eL=ko(it()),tL=ko(Ji()),rL=ko(Hi()),aL=Ha(),nL=bt(),iL=zt(),yt=oe();function ko(e){return e&&e.__esModule?e:{default:e}}function b5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b5(Object(r),!0).forEach(function(a){oL(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b5(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function oL(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pL(e){var t=e.toConfig(),r=(0,tL.default)(y0(t.types),function(c){return c.name},l);return new aL.GraphQLSchema(We(We({},t),{},{types:(0,XR.default)(r),directives:y0(t.directives).map(o),query:i(t.query),mutation:i(t.mutation),subscription:i(t.subscription)}));function a(c){return(0,yt.isListType)(c)?new yt.GraphQLList(a(c.ofType)):(0,yt.isNonNullType)(c)?new yt.GraphQLNonNull(a(c.ofType)):n(c)}function n(c){return r[c.name]}function i(c){return c&&n(c)}function o(c){var f=c.toConfig();return new nL.GraphQLDirective(We(We({},f),{},{locations:g0(f.locations,function(m){return m}),args:p(f.args)}))}function p(c){return v1(c,function(f){return We(We({},f),{},{type:a(f.type)})})}function s(c){return v1(c,function(f){return We(We({},f),{},{type:a(f.type),args:p(f.args)})})}function u(c){return v1(c,function(f){return We(We({},f),{},{type:a(f.type)})})}function d(c){return y0(c).map(n)}function l(c){if((0,yt.isScalarType)(c)||(0,iL.isIntrospectionType)(c))return c;if((0,yt.isObjectType)(c)){var f=c.toConfig();return new yt.GraphQLObjectType(We(We({},f),{},{interfaces:function(){return d(f.interfaces)},fields:function(){return s(f.fields)}}))}if((0,yt.isInterfaceType)(c)){var m=c.toConfig();return new yt.GraphQLInterfaceType(We(We({},m),{},{interfaces:function(){return d(m.interfaces)},fields:function(){return s(m.fields)}}))}if((0,yt.isUnionType)(c)){var v=c.toConfig();return new yt.GraphQLUnionType(We(We({},v),{},{types:function(){return d(v.types)}}))}if((0,yt.isEnumType)(c)){var h=c.toConfig();return new yt.GraphQLEnumType(We(We({},h),{},{values:v1(h.values)}))}if((0,yt.isInputObjectType)(c)){var y=c.toConfig();return new yt.GraphQLInputObjectType(We(We(
`)+`
`}function fL(e){if(!(e.description==null&&mL(e))){var t=[],r=e.getQueryType();r&&t.push(" query: ".concat(r.name));var a=e.getMutationType();a&&t.push(" mutation: ".concat(a.name));var n=e.getSubscriptionType();return n&&t.push(" subscription: ".concat(n.name)),Wt({},e)+`schema {
`.concat(t.join(`
`),`
}`)}}function mL(e){var t=e.getQueryType();if(t&&t.name!=="Query")return!1;var r=e.getMutationType();if(r&&r.name!=="Mutation")return!1;var a=e.getSubscriptionType();return!(a&&a.name!=="Subscription")}function E5(e,t){if((0,ni.isScalarType)(e))return vL(e,t);if((0,ni.isObjectType)(e))return hL(e,t);if((0,ni.isInterfaceType)(e))return yL(e,t);if((0,ni.isUnionType)(e))return gL(e,t);if((0,ni.isEnumType)(e))return bL(e,t);if((0,ni.isInputObjectType)(e))return _L(e,t);(0,T5.default)(0,"Unexpected type: "+(0,sL.default)(e))}function vL(e,t){return Wt(t,e)+"scalar ".concat(e.name)+wL(e)}function S5(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function hL(e,t){return Wt(t,e)+"type ".concat(e.name)+S5(e)+D5(t,e)}function yL(e,t){return Wt(t,e)+"interface ".concat(e.name)+S5(e)+D5(t,e)}function gL(e,t){var r=e.getTypes(),a=r.length?" = "+r.join(" | "):"";return Wt(t,e)+"union "+e.name+a}function bL(e,t){var r=e.getValues().map(function(a,n){return Wt(t,a," ",!n)+" "+a.name+I0(a.deprecationReason)});return Wt(t,e)+"enum ".concat(e.name)+D0(r)}function _L(e,t){var r=(0,_0.default)(e.getFields()).map(function(a,n){return Wt(t,a," ",!n)+" "+N0(a)});return Wt(t,e)+"input ".concat(e.name)+D0(r)}function D5(e,t){var r=(0,_0.default)(t.getFields()).map(function(a,n){return Wt(e,a," ",!n)+" "+a.name+N5(e,a.args," ")+": "+String(a.type)+I0(a.deprecationReason)});return D0(r)}function D0(e){return e.length!==0?` {
`+e.join(`
`)+`
}`:""}function N5(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t.length===0?"":t.every(function(a){return!a.description})?"("+t.map(N0).join(", ")+")":`(
`+t.map(function(a,n){return Wt(e,a," "+r,!n)+" "+r+N0(a)}).join(`
`)+`
`+r+")"}function N0(e){var t=(0,E0.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,T0.print)(t))),r+I0(e.deprecationReason)}function TL(e,t){return Wt(t,e)+"directive @"+e.name+N5(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function I0(e){if(e==null)return"";var t=(0,E0.astFromValue)(e,w0.GraphQLString);return t&&e!==O0.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,T0.print)(t)+")":" @deprecated"}function wL(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,E0.astFromValue)(t,w0.GraphQLString);return r||(0,T5.default)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,T0.print)(r)+")"}function Wt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,n=t.description;if(n==null)return"";if((e==null?void 0:e.commentDescriptions)===!0)return OL(n,r,a);var i=n.length>70,o=(0,uL.printBlockString)(n,"",i),p=r&&!a?`
`+r:r;return p+o.replace(/\n/g,`
`+r)+`
`}function OL(e,t,r){var a=t&&!r?`
`:"",n=e.split(`
`).map(function(i){return t+(i!==""?"# "+i:"#")}).join(`
`);return a+n+`
`}});var R5=g(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});R0.concatAST=EL;function EL(e){for(var t=[],r=0;r<e.length;r++){var a=e[r];t=t.concat(a.definitions)}return{kind:"Document",definitions:t}}});var A5=g(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});L0.separateOperations=DL;var h1=Te(),SL=ea();function DL(e){for(var t=[],r=Object.create(null),a=0,n=e.definitions;a<n.length;a++){var i=n[a];switch(i.kind){case h1.Kind.OPERATION_DEFINITION:t.push(i);break;case h1.Kind.FRAGMENT_DEFINITION:r[i.name.value]=P5(i.selectionSet);break}}for(var o=Object.create(null),p=function(d){for(var l=t[d],c=new Set,f=0,m=P5(l.selectionSet);f<m.length;f++){var v=m[f];L5(c,r,v)}var h=l.name?l.name.value:"";o[h]={kind:h1.Kind.DOCUMENT,definitions:e.definitions.filter(function(y){return y===l||y.kind===h1.Kind.FRAGMENT_DEFINITION&&c.has(y.name.value)})}},s=0;s<t.length;s++)p(s);return o}function L5(e,t,r){if(!e.has(r)){e.add(r);var a=t[r];if(a!==void 0)for(var n=0;n<a.length;n++){var i=a[n];L5(e,t,i)}}}function P5(e){var t=[];return(0,SL.visit)(e,{FragmentSpread:function(a){t.push(a.name.value)}}),t}});var V5=g(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});A0.stripIgnoredCharacters=NL;var k5=ss(),P0=Pn(),F5=ls(),M5=kn();function NL(e){for(var t=(0,k5.isSource)(e)?e:new k5.Source(e),r=t.body,a=new F5.Lexer(t),n="",i=!1;a.advance().kind!==P0.TokenKind.EOF;){var o=a.token,p=o.kind,s=!(0,F5.isPunctuatorTokenKind)(o.kind);i&&(s||o.kind===P0.TokenKind.SPREAD)&&(n+=" ");var u=r.slice(o.start,o.end);p===P0.TokenKind.BLOCK_STRING?n+=IL(u):n+=u,i=s}return n}function IL(e){var t=e.slice(3,-3),r=(0,M5.dedentBlockStringValue)(t);(0,M5.getBlockStringIndentation)(r)>0&&(r=`
`+r);var a=r[r.length-1],n=a==='"'&&r.slice(-4)!=='\\"""';return(n||a==="\\")&&(r+=`
`),'"""'+r+'"""'}});var z5=g(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});va.findBreakingChanges=VL;va.findDangerousChanges=qL;va.DangerousChangeType=va.BreakingChangeType=void 0;var ii=Mo(Lt()),q5=Mo(ta()),RL=Mo(se()),j5=Mo(it()),LL=Mo(Hi()),PL=Pt(),AL=ea(),kL=br(),le=oe(),FL=so();function Mo(e){return e&&e.__esModule?e:{default:e}}function C5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,a)}return r}function x5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C5(Object(r),!0).forEach(function(a){ML(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C5(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function ML(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Je=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"});va.BreakingChangeType=Je;var Cr=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});va.DangerousChangeType=Cr;function VL(e,t){var r=Q5(e,t).filter(function(a){return a.type in Je});return r}function qL(e,t){var r=Q5(e,t).filter(function(a){return a.type in Cr});return r}function Q5(e,t){return[].concat(CL(e,t),jL(e,t))}function jL(e,t){for(var r=[],a=xr(e.getDirectives(),t.getDirectives()),n=0,i=a.removed;n<i.length;n++){var o=i[n];r.push({type:Je.DIRECTIVE_REMOVED,description:"".concat(o.name," was removed.")})}for(var p=0,s=a.persisted;p<s.length;p++){for(var u=s[p],d=u[0],l=u[1],c=xr(d.args,l.args),f=0,m=c.added;f<m.length;f++){var v=m[f];(0,le.isRequiredArgument)(v)&&r.push({type:Je.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(v.name," on directive ").concat(d.name," was added.")})}for(var h=0,y=c.removed;h<y.length;h++){var T=y[h];r.push({type:Je.DIRECTIVE_ARG_REMOVED,description:"".concat(T.name," was removed from ").concat(d.name,".")})}d.isRepeatable&&!l.isRepeatable&&r.push({type:Je.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(d.name,".")});for(var w=0,O=d.locations;w<O.length;w++){var E=O[w];l.locations.indexOf(E)===-1&&r.push({type:Je.DIRECTIVE_LOCATION_REMOVED,description:"".concat(E," was removed from ").concat(d.name,".")})}}return r}function CL(e,t){for(var r=[],a=xr((0,ii.default)(e.getTypeMap()),(0,ii.default)(t.getTypeMap())),n=0,i=a.removed;n<i.length;n++){var o=i[n];r.push({type:Je.TYPE_REMOVED,description:(0,kL.isSpecifiedScalarType)(o)?"Standard scalar ".concat(o.name," was removed because it is not referenced anymore."):"".concat(o.name," was removed.")})}for(var p=0,s=a.persisted;p<s.length;p++){var u=s[p],d=u[0],l=u[1];(0,le.isEnumType)(d)&&(0,le.isEnumType)(l)?r.push.apply(r,UL(d,l)):(0,le.isUnionType)(d)&&(0,le.isUnionType)(l)?r.push.apply(r,QL(d,l)):(0,le.isInputObjectType)(d)&&(0,le.isInputObjectType)(l)?r.push.apply(r,xL(d,l)):(0,le.isObjectType)(d)&&(0,le.isObjectType)(l)||(0,le.isInterfaceType)(d)&&(0,le.isInterfaceType)
"fetch" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:
import fetch from 'cross-fetch';
import { ApolloClient, HttpLink } from '@apollo/client';
const client = new ApolloClient({
link: new HttpLink({ uri: '/graphql', fetch })
});
`):new N1.InvariantError(22)},H8=function(){if(typeof AbortController=="undefined")return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},X8=function(e,t){var r=e.getContext(),a=r.uri;return a||(typeof t=="function"?t(e):t||"/graphql")};function Z8(e,t){var r=[],a=function(l,c){r.push(l+"="+encodeURIComponent(c))};if("query"in t&&a("query",t.query),t.operationName&&a("operationName",t.operationName),t.variables){var n=void 0;try{n=R1(t.variables,"Variables map")}catch(l){return{parseError:l}}a("variables",n)}if(t.extensions){var i=void 0;try{i=R1(t.extensions,"Extensions map")}catch(l){return{parseError:l}}a("extensions",i)}var o="",p=e,s=e.indexOf("#");s!==-1&&(o=e.substr(s),p=e.substr(0,s));var u=p.indexOf("?")===-1?"?":"&",d=p+u+r.join("&")+o;return{newURI:d}}var ev=pf.maybe(function(){return fetch}),tv=function(e){e===void 0&&(e={});var t=e.uri,r=t===void 0?"/graphql":t,a=e.fetch,n=e.includeExtensions,i=e.useGETForQueries,o=e.includeUnusedVariables,p=o===void 0?!1:o,s=wt.__rest(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&J8(a||ev);var u={http:{includeExtensions:n},options:s.fetchOptions,credentials:s.credentials,headers:s.headers};return new K8.ApolloLink(function(d){var l=X8(d,r),c=d.getContext(),f={};if(c.clientAwareness){var m=c.clientAwareness,v=m.name,h=m.version;v&&(f["apollographql-client-name"]=v),h&&(f["apollographql-client-version"]=h)}var y=wt.__assign(wt.__assign({},f),c.headers),T={http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:y},w=W8(d,$8,u,T),O=w.options,E=w.body;if(E.variables&&!p){var N=new Set(Object.keys(E.variables));B8.visit(d.query,{Variable:function(Pe,Qt,Me){Me&&Me.kind!=="VariableDefinition"&&N.delete(Pe.name.value)}}),N.size&&(E.variables=wt.__assign({},E.variables),N.forEach(function(Pe){delete E.variables[Pe]}))}var R;if(!O.signal){var L=H8(),B=L.controller,_e=L.signal;R=B,R&&(O.signal=_e)}var Be=function(Pe){return Pe.kind==="OperationDefinition"&&Pe.operation==="mutation"};if(i&&!d.query.definitions.some(Be)&&(O.method="GET"),O.method==="GET"){var S=Z8(l,E),z=S.newURI,fe=S.parseError;if(fe)return I1.fromError(fe);l=z}else try{O.body=R1(E,"Payload")}catch(Pe){return I1.fromError(Pe)}return new pf.Observable(function(Pe){var Qt=a||pf.maybe(function(){return fetch})||ev;return Qt(l,O).then(function(Me){return d.setContext({response:Me}),Me}).then(Y8(d)).then(function(Me){return Pe.next(Me),Pe.complete(),Me}).catch(function(Me){Me.name!=="AbortError"&&(Me.result&&Me.result.errors&&Me.result.data&&Pe.next(Me.result),Pe.error(Me))}),function(){R&&R.abort()}})})},kA=function(e){wt.__extends(t,e);function t(r){r===void 0&&(r={});var a=e.call(this,tv(r).request)||this;return a.options=r,a}return t}(K8.ApolloLink);Jt.HttpLink=kA;Jt.checkFetcher=J8;Jt.createHttpLink=tv;Jt.createSignalIfSupported=H8;Jt.fallbackHttpConfig=$8;Jt.parseAndCheckHttpResponse=Y8;Jt.rewriteURIForGET=Z8;Jt.selectHttpOptionsAndBody=W8;Jt.selectURI=X8;Jt.serializeFetchParameter=R1});var Go=g(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});var av=Object.prototype,nv=av.toString,FA=av.hasOwnProperty,iv=Function.prototype.toString,sf=new Map;function ov(e,t){try{return uf(e,t)}finally{sf.clear()}}function uf(e,t){if(e===t)return!0;var r=nv.call(e),a=nv.call(t);if(r!==a)return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(sv(e,t))return!0;var n=pv(e),i=pv(t),o=n.length;if(o!==i.length)return!1;for(var p=0;p<o;++p)if(!FA.call(t,n[p]))return!1;for(var p=0;p<o;++p){var s=n[p];if(!uf(e[s],t[s]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(sv(e,t))return!0;for(var u=e.entries(),d=r==="[object Map]";;){var l=u.next();if(l.done)break;var c=l.value,f=c[0],m=c[1];if(!t.has(f)||d&&!uf(m,t.get(f
To address this problem (which is not a bug in Apollo Client), `+(d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"")+"define a custom merge function for the "+u+` field, so InMemoryCache can safely merge these objects:
existing: `+JSON.stringify(i).slice(0,1e3)+`
incoming: `+JSON.stringify(o).slice(0,1e3)+`
For more information about these options, please refer to the documentation:
* Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers
* Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects
`)}}}}var Rf=new dk.Slot,Cv=new WeakMap;function $o(e){var t=Cv.get(e);return t||Cv.set(e,t={vars:new Set,dep:mi.dep()}),t}function xv(e){$o(e).vars.forEach(function(t){return t.forgetCache(e)})}function Tk(e){$o(e).vars.forEach(function(t){return t.attachCache(e)})}function Qv(e){var t=new Set,r=new Set,a=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach(function(s){$o(s).dep.dirty(a),wk(s)});var o=Array.from(r);r.clear(),o.forEach(function(s){return s(e)})}}else{var p=Rf.getValue();p&&(n(p),$o(p).dep(a))}return e};a.onNextChange=function(i){return r.add(i),function(){r.delete(i)}};var n=a.attachCache=function(i){return t.add(i),$o(i).vars.add(a),a};return a.forgetCache=function(i){return t.delete(i)},a}function wk(e){e.broadcastWatches&&e.broadcastWatches()}I.getStoreKeyName.setStringify(fn);function Lf(e){return e.args!==void 0?e.args:e.field?I.argumentsObjectFromField(e.field,e.variables):null}var Ok=function(){},Uv=function(e,t){return t.fieldName},Gv=function(e,t,r){var a=r.mergeObjects;return a(e,t)},Bv=function(e,t){return t},Kv=function(){function e(t){this.config=t,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=W.__assign({dataIdFromObject:Tf},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return e.prototype.identify=function(t,r,a){var n=r&&a?I.getTypenameFromResult(t,r,a):t.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i={typename:n,selectionSet:r,fragmentMap:a},o,p=n&&this.getTypePolicy(n),s=p&&p.keyFn||this.config.dataIdFromObject;s;){var u=s(t,i);if(Array.isArray(u))s=Wv(u);else{o=u;break}}return o=o?String(o):void 0,i.keyObject?[o,i.keyObject]:[o]},e.prototype.addTypePolicies=function(t){var r=this;Object.keys(t).forEach(function(a){var n=t[a],i=n.queryType,o=n.mutationType,p=n.subscriptionType,s=W.__rest(n,["queryType","mutationType","subscriptionType"]);i&&r.setRootTypename("Query",a),o&&r.setRootTypename("Mutation",a),p&&r.setRootTypename("Subscription",a),st.call(r.toBeAdded,a)?r.toBeAdded[a].push(s):r.toBeAdded[a]=[s]})},e.prototype.updateTypePolicy=function(t,r){var a=this,n=this.getTypePolicy(t),i=r.keyFields,o=r.fields;function p(s,u){s.merge=typeof u=="function"?u:u===!0?Gv:u===!1?Bv:s.merge}p(n,r.merge),n.keyFn=i===!1?Ok:Array.isArray(i)?Wv(i):typeof i=="function"?i:n.keyFn,o&&Object.keys(o).forEach(function(s){var u=a.getFieldPolicy(t,s,!0),d=o[s];if(typeof d=="function")u.read=d;else{var l=d.keyArgs,c=d.read,f=d.merge;u.keyFn=l===!1?Uv:Array.isArray(l)?$v(l):typeof l=="function"?l:u.keyFn,typeof c=="function"&&(u.read=c),p(u,f)}u.read&&u.merge&&(u.keyFn=u.keyFn||Uv)})},e.prototype.setRootTypename=function(t,r){r===void 0&&(r=t);var a="ROOT_"+t.toUpperCase(),n=this.rootTypenamesById[a];r!==n&&(__DEV__?Ne.invariant(!n||n===t,"Cannot change root "+t+" __typename more than once"):Ne.invariant(!n||n===t,2),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[r]=a,this.rootTypenamesById[a]=r)},e.prototype.addPossibleTypes=function(t){var r=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(a){r.getSupertypeSet(a,!0),t[a].forEach(function(n){r.getSupertypeSet(n,!0).add(a);var i=n.match(Iv);(!i||i[0]!==n)&&r.fuzzySubtypes.set(n,new RegExp(n))})})},e.prototype.getTypePolicy=function(t){var r=this;if(!st.call(this.typePolicies,t)){var a=this.typePolicies[t]=Object.create(null);a.fields=Object.create(null);var n=this.supertypeMap.get(t);n&&n.size&&n.forEach(function(o){var p=r.getTypePolicy(o),s=p.fields,u=W.__rest(p,["fields"]);Object.assign(a,u),Object.assign(a.fields,s)})}var i=this.toBeAdded[t];return i&&i.length&&i.splice(0).forEach(function(o){r.updateTypePolicy(t,o)}),this.typePolicies[t]},e.prototype.getFieldPolicy=function(t,r,a){if(t){var n=
`})}return e.networkError&&(t+=e.networkError.message+`
`),t=t.replace(/\n$/,""),t},Ik=function(e){Sk.__extends(t,e);function t(r){var a=r.graphQLErrors,n=r.clientErrors,i=r.networkError,o=r.errorMessage,p=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=a||[],s.clientErrors=n||[],s.networkError=i||null,s.message=o||Nk(s),s.extraInfo=p,s.__proto__=t.prototype,s}return t}(Error);j1.ApolloError=Ik;j1.isApolloError=Dk});var e7=g((C1,Zv)=>{(function(e,t){typeof C1=="object"&&typeof Zv!="undefined"?t(C1,Ut(),pi()):typeof define=="function"&&define.amd?define(["exports","tslib","graphql"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["graphql-tag"]={},e.tslib,e.graphql))})(C1,function(e,t,r){"use strict";var a=new Map,n=new Map,i=!0,o=!1;function p(w){return w.replace(/[\s,]+/g," ").trim()}function s(w){return p(w.source.body.substring(w.start,w.end))}function u(w){var O=new Set,E=[];return w.definitions.forEach(function(N){if(N.kind==="FragmentDefinition"){var R=N.name.value,L=s(N.loc),B=n.get(R);B&&!B.has(L)?i&&console.warn("Warning: fragment with name "+R+` already exists.
graphql-tag enforces all fragment names across your application to be unique; read more about
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):B||n.set(R,B=new Set),B.add(L),O.has(L)||(O.add(L),E.push(N))}else E.push(N)}),t.__assign(t.__assign({},w),{definitions:E})}function d(w){var O=new Set(w.definitions);O.forEach(function(N){N.loc&&delete N.loc,Object.keys(N).forEach(function(R){var L=N[R];L&&typeof L=="object"&&O.add(L)})});var E=w.loc;return E&&(delete E.startToken,delete E.endToken),w}function l(w){var O=p(w);if(!a.has(O)){var E=r.parse(w,{experimentalFragmentVariables:o});if(!E||E.kind!=="Document")throw new Error("Not a valid GraphQL document.");a.set(O,d(u(E)))}return a.get(O)}function c(w){for(var O=[],E=1;E<arguments.length;E++)O[E-1]=arguments[E];typeof w=="string"&&(w=[w]);var N=w[0];return O.forEach(function(R,L){R&&R.kind==="Document"?N+=R.loc.source.body:N+=R,N+=w[L+1]}),l(N)}function f(){a.clear(),n.clear()}function m(){i=!1}function v(){o=!0}function h(){o=!1}var y={gql:c,resetCaches:f,disableFragmentWarnings:m,enableExperimentalFragmentVariables:v,disableExperimentalFragmentVariables:h};(function(w){w.gql=y.gql,w.resetCaches=y.resetCaches,w.disableFragmentWarnings=y.disableFragmentWarnings,w.enableExperimentalFragmentVariables=y.enableExperimentalFragmentVariables,w.disableExperimentalFragmentVariables=y.disableExperimentalFragmentVariables})(c||(c={})),c.default=c;var T=c;e.default=T,e.disableExperimentalFragmentVariables=h,e.disableFragmentWarnings=m,e.enableExperimentalFragmentVariables=v,e.gql=c,e.resetCaches=f,Object.defineProperty(e,"__esModule",{value:!0})})});var r7=g(($C,t7)=>{t7.exports=e7().gql});var qf=g(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});var ie=Vt(),F=Ut(),vi=of(),x=ya(),kf=rv(),Ot=Go(),wa=Hv(),Br=Af(),a7=pi(),x1=S1(),n7=ed(),Wo=r7(),Rk="3.4.16";U.NetworkStatus=void 0;(function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"})(U.NetworkStatus||(U.NetworkStatus={}));function Jo(e){return e?e<7:!1}var Lk=Object.assign,Pk=Object.hasOwnProperty,i7=!1,Q1=function(e){F.__extends(t,e);function t(r){var a=r.queryManager,n=r.queryInfo,i=r.options,o=e.call(this,function(s){try{var u=s._subscription._observer;u&&!u.error&&(u.error=Ak)}catch{}var d=!o.observers.size;o.observers.add(s);var l=o.last;return l&&l.error?s.error&&s.error(l.error):l&&l.result&&s.next&&s.next(l.result),d&&o.reobserve().catch(function(){}),function(){o.observers.delete(s)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.isTornDown=!1,o.options=i,o.queryId=n.queryId||a.generateQueryId();var p=x.getOperationDefinition(i.query);return o.queryName=p&&p.name&&p.name.value,o.initialFetchPolicy=i.fetchPolicy||"cache-first",o.queryManager=a,o.queryInfo=n,o}return Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var r=this;return new Promise(function(a,n){var i={next:function(p){a(p),r.observers.delete(i),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){o.unsubscribe()},0)},error:n},o=r.subscribe(i)})},t.prototype.getCurrentResult=function(r){r===void 0&&(r=!0);var a=this.getLastResult(!0),n=this.queryInfo.networkStatus||a&&a.networkStatus||U.NetworkStatus.ready,i=F.__assign(F.__assign({},a),{loading:Jo(n),networkStatus:n}),o=this.options.fetchPolicy,p=o===void 0?"cache-first":o,s=a||p!=="network-only"&&p!=="no-cache"&&p!=="standby";if(s&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),Ot.equal(i.data,{})&&(i.data=void 0),u.complete?(i.networkStatus===U.NetworkStatus.loading&&(p==="cache-first"||p==="cache-only")&&(i.networkStatus=U.NetworkStatus.ready,i.loading=!1),delete i.partial):p!=="no-cache"&&(i.partial=!0),__DEV__&&!u.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&o7(u.missing)}return r&&this.updateLastResult(i),i},t
Did you mean to call refetch(variables) instead of refetch({ variables })?`)}return r&&!Ot.equal(this.options.variables,r)&&(n.variables=this.options.variables=F.__assign(F.__assign({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(n,U.NetworkStatus.refetch)},t.prototype.fetchMore=function(r){var a=this,n=F.__assign(F.__assign({},r.query?r:F.__assign(F.__assign(F.__assign({},this.options),r),{variables:F.__assign(F.__assign({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=U.NetworkStatus.fetchMore,this.observe()),this.queryManager.fetchQuery(i,n,U.NetworkStatus.fetchMore).then(function(o){var p=o.data,s=r.updateQuery;return s?(__DEV__&&!i7&&(__DEV__&&ie.invariant.warn(`The updateQuery callback for fetchMore is deprecated, and will be removed
in the next major version of Apollo Client.
Please convert updateQuery functions to field policies with appropriate
read and merge functions, or use/adapt a helper function (such as
concatPagination, offsetLimitPagination, or relayStylePagination) from
@apollo/client/utilities.
The field policy system handles pagination more effectively than a
hand-written updateQuery function, and you only need to define the policy
once, rather than every time you call fetchMore.`),i7=!0),a.updateQuery(function(u){return s(u,{fetchMoreResult:p,variables:n.variables})})):a.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:p}),o}).finally(function(){a.queryManager.stopQuery(i),a.reobserve()})},t.prototype.subscribeToMore=function(r){var a=this,n=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(i){var o=r.updateQuery;o&&a.updateQuery(function(p,s){var u=s.variables;return o(p,{subscriptionData:i,variables:u})})},error:function(i){if(r.onError){r.onError(i);return}__DEV__&&ie.invariant.error("Unhandled GraphQL subscription error",i)}});return this.subscriptions.add(n),function(){a.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(r){return this.reobserve(r)},t.prototype.setVariables=function(r){return Ot.equal(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.initialFetchPolicy,variables:r},U.NetworkStatus.setVariables):Promise.resolve())},t.prototype.updateQuery=function(r){var a=this.queryManager,n=a.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,i=r(n,{variables:this.variables});i&&(a.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),a.broadcastQueries())},t.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.fetch=function(r,a){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,r,a)},t.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var a=this,n=a.pollingInfo,i=a.options.pollInterval;if(!i){n&&(clearTimeout(n.timeout),delete this.pollingInfo);return}if(!(n&&n.interval===i)){__DEV__?ie.invariant(i,"Attempted to start a polling query without a polling interval."):ie.invariant(i,12);var o=n||(this.pollingInfo={});o.interval=i;var p=function(){r.pollingInfo&&(Jo(r.queryInfo.networkStatus)?s():r.reobserve({fetchPolicy:"network-only"},U.NetworkStatus.poll).then(s,s))},s=function(){var u=r.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(p,u.interval))};s()}}},t.prototype.updateLastResult=function(r,a){return a===void 0&&(a=this.variables),this.last=F.__assign(F.__assign({},this.last),{result:this.queryManager.assumeImmutableResults?r:x.cloneDeep(r),variables:a}),x.isNonEmptyArray(r.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(r,a){var n=this;this.isTornDown=!1;var i=a===U.NetworkStatus.refetch||a===U.NetworkStatus.fetchMore||a===U.NetworkStatus.poll,o=this.options.variables,p=i?x.compact(this.options,r):Lk(this.options,x.compact(r));i||(this.updatePolling(),r&&r.variables&&!r.fetchPolicy&&!Ot.equal(r.variables,o)&&(p.fetchPolicy=this.initialFetchPolicy,a===void 0&&(a=U.NetworkStatus.setVariables)));var s=p.variables&&F.__assign({},p.variables),u=this.fetch(p,a),d={next:function(l){n.reportResult(l,s)},error:function(l){n.reportError(l,s)}};return i||(this.concast&&this.observer&&this.concast.removeObserver(this.observer,!0),this.concast=u,this.observer=d),u.addObserver(d),u.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(r,a){(this.getLastError()||this.isDifferentFromLastResult(r))&&(this.updateLastResult(r,a),x.iterateObserversSafely(this.observers,"next",r))},t.prototype.reportError=function(r,a){var n=F.__assign(F.__assign({},this.getLastResult()),{error:r,errors:r.graphQLErrors,networkStatus:U.NetworkStatus.error,loading:!1});this.updateLastResult(n,a),x.iterateObserversSafely(this.observers,"error",this.last.error=r)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),del
For more information, please visit: https://go.apollo.dev/c/docs`):new ie.InvariantError(9);if(this.link=R,this.cache=o,this.disableNetworkFetches=s||d>0,this.queryDeduplication=m,this.defaultOptions=v||{},this.typeDefs=w,d&&setTimeout(function(){return r.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),c&&typeof window=="object"&&(window.__APOLLO_CLIENT__=this),!d7&&__DEV__&&(d7=!0,typeof window!="undefined"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var L=window.navigator,B=L&&L.userAgent,_e=void 0;typeof B=="string"&&(B.indexOf("Chrome/")>-1?_e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":B.indexOf("Firefox/")>-1&&(_e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),_e&&__DEV__&&ie.invariant.log("Download the Apollo DevTools for a better development experience: "+_e)}this.version=Rk,this.localState=new s7({cache:o,client:this,resolvers:T,fragmentMatcher:O}),this.queryManager=new Fk({cache:this.cache,link:this.link,queryDeduplication:m,ssrMode:s,clientAwareness:{name:E,version:N},localState:this.localState,assumeImmutableResults:y,onBroadcast:c?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=U1(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&(t.fetchPolicy==="network-only"||t.fetchPolicy==="cache-and-network")&&(t=F.__assign(F.__assign({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},e.prototype.query=function(t){return this.defaultOptions.query&&(t=U1(this.defaultOptions.query,t)),__DEV__?ie.invariant(t.fetchPolicy!=="cache-and-network","The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):ie.invariant(t.fetchPolicy!=="cache-and-network",10),this.disableNetworkFetches&&t.fetchPolicy==="network-only"&&(t=F.__assign(F.__assign({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},e.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=U1(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},e.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},e.prototype.readQuery=function(t,r){return r===void 0&&(r=!1),this.cache.readQuery(t,r)},e.prototype.readFragment=function(t,r){return r===void 0&&(r=!1),this.cache.readFragment(t,r)},e.prototype.writeQuery=function(t){this.cache.writeQuery(t),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(t){this.cache.writeFragment(t),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},e.prototype.__requestRaw=function(t){return vi.execute(this.link,t)},e.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return t.reFetchObservableQueries()})},e.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(r){return r()}))})},e.prototype.onResetStore=function(t){var r=this;return this.resetStoreCallbacks.push(t),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(a){return a!==t})}},e.prototype.onClearStore=functi
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wr(e){return Array.isArray?Array.isArray(e):lh(e)==="[object Array]"}var tM=1/0;function rM(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-tM?"-0":t}function aM(e){return e==null?"":rM(e)}function Jr(e){return typeof e=="string"}function uh(e){return typeof e=="number"}function nM(e){return e===!0||e===!1||iM(e)&&lh(e)=="[object Boolean]"}function dh(e){return eu(e)==="object"}function iM(e){return dh(e)&&e!==null}function xt(e){return e!=null}function i2(e){return!e.trim().length}function lh(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var oM="Incorrect 'index' type",pM=function(t){return"Invalid value for key ".concat(t)},sM=function(t){return"Pattern length exceeds max of ".concat(t,".")},uM=function(t){return"Missing ".concat(t," property in key")},dM=function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")},ch=Object.prototype.hasOwnProperty,lM=function(){function e(t){var r=this;Et(this,e),this._keys=[],this._keyMap={};var a=0;t.forEach(function(n){var i=fh(n);a+=i.weight,r._keys.push(i),r._keyMap[i.id]=i,a+=i.weight}),this._keys.forEach(function(n){n.weight/=a})}return St(e,[{key:"get",value:function(r){return this._keyMap[r]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function fh(e){var t=null,r=null,a=null,n=1;if(Jr(e)||Wr(e))a=e,t=mh(e),r=o2(e);else{if(!ch.call(e,"name"))throw new Error(uM("name"));var i=e.name;if(a=i,ch.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(dM(i));t=mh(i),r=o2(i)}return{path:t,id:r,weight:n,src:a}}function mh(e){return Wr(e)?e:e.split(".")}function o2(e){return Wr(e)?e.join("."):e}function cM(e,t){var r=[],a=!1,n=function i(o,p,s){if(!!xt(o))if(!p[s])r.push(o);else{var u=p[s],d=o[u];if(!xt(d))return;if(s===p.length-1&&(Jr(d)||uh(d)||nM(d)))r.push(aM(d));else if(Wr(d)){a=!0;for(var l=0,c=d.length;l<c;l+=1)i(d[l],p,s+1)}else p.length&&i(d,p,s+1)}};return n(e,Jr(t)?t.split("."):t,0),a?r:r[0]}var fM={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},mM={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(t,r){return t.score===r.score?t.idx<r.idx?-1:1:t.score<r.score?-1:1}},vM={location:0,threshold:.6,distance:100},hM={useExtendedSearch:!1,getFn:cM,ignoreLocation:!1,ignoreFieldNorm:!1},H=sh({},mM,{},fM,{},vM,{},hM),yM=/[^ ]+/g;function gM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3,t=new Map,r=Math.pow(10,e);return{get:function(n){var i=n.match(yM).length;if(t.has(i))return t.get(i);var o=1/Math.sqrt(i),p=parseFloat(Math.round(o*r)/r);return t.set(i,p),p},clear:function(){t.clear()}}}var p2=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.getFn,a=r===void 0?H.getFn:r;Et(this,e),this.norm=gM(3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return St(e,[{key:"setSources",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.docs=r}},{key:"setIndexRecords",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.records=r}},{key:"setKeys",value:function(){var r=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.keys=a,this._keysMap={},a.forEach(function(n,i){r._keysMap[n.id]=i})}},{key:"create",value:function(){var r=this;this.isCreated||!this.docs.length||(this.isCreated=!0,Jr(this.docs[0])?this.docs.forEach(function(a,n){r._addString(a,n)}):this.docs.forEach(function(a,n){r._addObject(a,n)}),this.norm.clear())}},{key:"add",value:function(r){var a=this.size();Jr(r)?this._addString(r,a):this._addObject(r,a)}},{key:"removeAt",value:function(r){this.records.splice(r,1);for(var a=r,n=this.size();a<n;a+=1)this.records[a].i-=1}},{key:"getValueForItemAtKeyId",value:function(r,a){return r[this._keysMap[a]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(r,a){if(!(!xt(r)||i2(r))){var n={v:r,i:a,n:t
`),t}function xm(e,t){let r=Cm.createHash("sha256");Object.entries(e).sort().forEach((n,i)=>{r.update(`${n}${i}`)});let a=r.digest("hex");return t?`${t}_${a}`:a}function Qm(e){e=e.replace(/^\s+|\s+$/g,""),e=e.toLowerCase();let t="\xE5\xE0\xE1\xE3\xE4\xE2\xE8\xE9\xEB\xEA\xEC\xED\xEF\xEE\xF2\xF3\xF6\xF4\xF9\xFA\xFC\xFB\xF1\xE7\xB7/_,:;",r="aaaaaaeeeeiiiioooouuuunc------";for(let a=0,n=t.length;a<n;a++)e=e.replace(new RegExp(t.charAt(a),"g"),r.charAt(a));return e=e.replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-"),e}function xi(){return new Date}var Bm=require("react");function Km(){let e=Um.environment.supportPath;return Wu.default.join(e,"cache")}async function zm(e,t=!1){let r=Km();return t&&(console.log(`create cache directoy '${r}'`),await Pr.mkdir(r,{recursive:!0})),Wu.default.join(r,`${e}.json`)}async function Zb(e,t){console.log("GET cache");let r;try{r=await zm(e),await Pr.access(r,Gm.constants.R_OK);let a=await Pr.readFile(r,"utf-8"),n=JSON.parse(a);return!n||Yu()-n.timestamp>t?void 0:n.payload}catch{console.log(`could not access cache file or not exists '${r}'`)}}async function e_(e,t){let r;try{r=await zm(e,!0),console.log(`set cache object '${e}'`);let a={timestamp:Yu(),payload:t},n=JSON.stringify(a);await Pr.writeFile(r,n,"utf-8")}catch(a){console.log(a),console.log(`could not write cache file '${r}'`)}}async function Ju(e,t){let r=await Zb(e,5*60);return r?(console.log("use cached data"),r):(r=await t(),await e_(e,r),r)}var Rr=gt(W1()),Lh=gt(t2()),c2=require("@raycast/api");var Sh=gt(Eh()),ip=gt(t2());var Dh=gt(require("util")),Nh=gt(require("fs")),Ih=require("stream"),QM=Dh.default.promisify(Ih.pipeline);function nu(e){if(!!e)return{id:e.id,name:e.name,username:e.username,web_url:e.web_url,avatar_url:e.avatar_url,state:e.state}}function iu(e){return{id:e.id,name_with_namespace:e.name_with_namespace,fullPath:e.path_with_namespace,web_url:e.web_url,star_count:e.star_count,fork_count:e.forks_count,last_activity_at:e.last_activity_at,readme_url:e.readme_url,avatar_url:e.avatar_url,owner:nu(e.owner),ssh_url_to_repo:e.ssh_url_to_repo,http_url_to_repo:e.http_url_to_repo,default_branch:e.default_branch}}function ou(e){return{title:e.title,web_url:e.web_url,id:e.id,iid:e.iid,state:e.state,updated_at:new Date(e.updated_at),author:nu(e.author),project_id:e.project_id,description:e.description,reference_full:e.references?.full,labels:e.labels}}function pu(e){let t=r=>{if(r)return{id:r.id,title:r.title}};return{title:e.title,description:e.description,web_url:e.web_url,id:e.id,iid:e.iid,reference_full:e.references?.full,state:e.state,updated_at:new Date(e.updated_at),author:nu(e.author),project_id:e.project_id,milestone:t(e.milestone),labels:e.labels}}function UM(e){let t=[];for(let a in e){let n=encodeURI(e[a]);t.push(`${a}=${n}`)}let r="";return t.length>0&&(r="?"),r+t.join("&")}async function Rh(e){let t=e.status;if(console.log(`status code: ${t}`),t>=200&&t<300)return await e.json();if(t==401)throw Error("Unauthorized");if(t==403){let r=await e.json(),a="Forbidden";throw r.error&&r.error=="insufficient_scope"&&(a="Insufficient API token scope"),console.log(a),Error(a)}else{if(t==404)throw Error("Not found");if(t>=400&&t<500){let r=await e.json();console.log(r);let a=r.message;throw Error(a)}else throw console.log("unknown error"),Error(`http status ${t}`)}}var su=class{constructor(t,r){this.token=r,this.url=t}async fetch(t,r={},a=!1){let n=a?100:50,i=async o=>{let p={...r,per_page:`${n}`,page:`${o}`},s=UM(p),u=this.url+"/api/v4/"+t+s;return console.log(`send GET request: ${u}`),await(0,ip.default)(u,{method:"GET",headers:{"Content-Type":"application/json","PRIVATE-TOKEN":this.token}})};try{let o=1,p=await i(o),s=await Rh(p);if(a){let u=p.headers.get("x-next-page");if(u&&u.length>0){console.log(u),o++;let d=await i(o);s.concat(d)}}return s}catch(o){throw Error(o)}}async downloadFile(t,r){console.log(`download ${t}`);let a=await(0,ip.default)(t,{method:"GET",headers:{"PRIVATE-TOKEN":this.token}});if(!a.ok)throw new Error(`unexpected response ${a.statusText}`);return console.log(`write ${t} to ${r.localF
${t.color}`;return t.description&&(r+=`
## Description
${t.description}`),_jsx(ft.Detail,{markdown:r})}function $M(e){let t=e.label,r=Object.keys(t).includes("subscribed")&&t.subscribed?"subscribed":void 0;return _jsx(ft.List.Item,{key:t.id.toString(),title:t.name,icon:{source:ft.Icon.Circle,tintColor:t.color},accessoryTitle:r,actions:_jsx(ft.ActionPanel,null,_jsx(ft.PushAction,{title:"Show Details",target:_jsx(YM,{label:t}),icon:{source:"sidebar-right-16",tintColor:ft.Color.PrimaryText}}),_jsx(ft.CopyToClipboardAction,{title:"Copy Color",content:t.color}))})}function du(e){return _jsx(ft.List,{searchBarPlaceholder:"Search labels by name",onSearchTextChange:e.onSearchTextChange,isLoading:e.isLoading,throttle:e.throttle},_jsx(ft.List.Section,{title:e.title},e.labels.map(t=>_jsx($M,{key:t.id.toString(),label:t}))))}var Ge=require("@raycast/api");var op=require("react");async function WM(e){let t=await $e.fetch(`projects/${e}/repository/branches`,{},!0)||[],r=await $e.getProject(e);return{branches:t,project:r}}function kh({issue:e,projectID:t,title:r}){let a=`${e.iid}-${Qm(e.title)}`,[n,i]=(0,op.useState)(),[o,p]=(0,op.useState)();(0,op.useEffect)(()=>{t&&WM(t).then(u=>(p(u?.project),i(u?.branches)))},[t]);async function s(u){let{source_branch:d,target_branch:l}=u;try{await $e.post(`projects/${t}/repository/branches?branch=${d}&ref=${l}`),await $e.createMR(t,{id:t,description:`Closes #${e.iid}`,source_branch:d,target_branch:l,title:r,assignee_id:o?.owner?.id}),(0,Ge.showToast)(Ge.ToastStyle.Success,"Merge Request created","Merge Request creation successful"),(0,Ge.popToRoot)()}catch(c){(0,Ge.showToast)(Ge.ToastStyle.Failure,"Cannot create Merge Request",c instanceof Error&&c.message||"")}}return _jsx(Ge.Form,{isLoading:o===void 0&&n===void 0,actions:_jsx(Ge.ActionPanel,null,_jsx(Ge.SubmitFormAction,{title:"Create Merge Request",onSubmit:s}))},_jsx(Ge.Form.TextField,{id:"source_branch",title:"Source branch",placeholder:"Enter source branch",defaultValue:a}),_jsx(JM,{project:o,info:{branches:n||[]}}))}function JM(e){if(e.project&&e.info){let t=e.project,r=t.default_branch&&t.default_branch.length>0?e.project.default_branch:void 0;return console.log(r),_jsx(Ge.Form.Dropdown,{id:"target_branch",title:"Target branch",value:r},e.info?.branches.map(a=>_jsx(Ge.Form.Dropdown.Item,{key:a.name,value:a.name,title:a.name})))}else return _jsx(Ge.Form.Dropdown,{id:"target_branch",title:"Target branch"})}function HM(e){let t=e.issue;async function r(){try{await $e.post(`projects/${t.project_id}/issues/${t.iid}/notes`,{body:"/close"}),e.finished&&e.finished()}catch(a){(0,be.showToast)(be.ToastStyle.Failure,"Failed to close issue",a instanceof Error?a.message:a.toString())}}return _jsx(be.ActionPanel.Item,{title:"Close Issue",icon:{source:be.Icon.XmarkCircle,tintColor:be.Color.Red},onAction:r})}function XM({issue:e}){return _jsx(be.PushAction,{icon:be.Icon.Pencil,title:"Create Merge Request",shortcut:{modifiers:["cmd","shift"],key:"m"},target:_jsx(kh,{issue:e,projectID:e.project_id,title:`Draft: Resolve: ${e.title}`})})}function ZM(e){let t=e.issue;async function r(){try{await $e.post(`projects/${t.project_id}/issues/${t.iid}/notes`,{body:"/reopen"}),e.finished&&e.finished()}catch(a){(0,be.showToast)(be.ToastStyle.Failure,"Failed to reopen issue",a instanceof Error?a.message:a.toString())}}return _jsx(be.ActionPanel.Item,{title:"Reopen Issue",icon:{source:be.Icon.ExclamationMark},onAction:r})}function eV(e){return e.labels.length<=0?null:_jsx(be.PushAction,{title:"Show attached Labels",target:_jsx(du,{labels:e.labels}),shortcut:{modifiers:["cmd"],key:"l"},icon:{source:"dash.png",tintColor:be.Color.PrimaryText}})}function tV(e){let t=e.issue;async function r(){try{await $e.post(`projects/${t.project_id}/issues/${t.iid}/todo`),(0,be.showToast)(be.ToastStyle.Success,"To do created")}catch(a){(0,be.showToast)(be.ToastStyle.Failure,"Failed to add as to do",a instanceof Error?a.message:a.toString())}}return t.state==="opened"?_jsx(be.ActionPanel.Item,{title:"Add a to do",shortcut:e.shortcut,icon:{source:"todo.png",tintColor:be.Color.PrimaryText},onAction:r}):null}function Mh(e){let t=e.issue;return _
query GetIssueDetail($id: ID!) {
issue(id: $id) {
description
}
}
`;function qh(e){let{description:t,error:r,isLoading:a}=iV(e.issue.id);r&&(0,Dt.showToast)(Dt.ToastStyle.Failure,"Could not get issue details",r);let n=t||e.issue.description||"",i="";return e.issue&&(i=e.issue.labels.map(o=>`\`${o.name||o}\``).join(" ")+`
`),i+=`## Description
`+jp(n),_jsx(Dt.Detail,{markdown:i,isLoading:a,navigationTitle:`${e.issue.reference_full}`,actions:_jsx(Dt.ActionPanel,null,_jsx(Dt.OpenInBrowserAction,{url:e.issue.web_url}),_jsx(Mh,{issue:e.issue}))})}function iV(e){let[t,r]=(0,Ii.useState)(),[a,n]=(0,Ii.useState)(),[i,o]=(0,Ii.useState)(!1);return(0,Ii.useEffect)(()=>{let p=!1;async function s(){if(!(e<=0||p)){o(!0),n(void 0);try{let d=(await uu.client.query({query:nV,variables:{id:`gid://gitlab/Issue/${e}`}})).data.issue.description||"<no description>";p||r(d)}catch(u){p||n(u.message)}finally{p||o(!1)}}}return s(),()=>{p=!0}},[e]),{description:t,error:a,isLoading:i}}var Nt=require("@raycast/api");var Ri=require("react");var xh=gt(W1());var J=require("@raycast/api"),jh=gt(require("react"));async function f2(e,t){return await $e.post(`projects/${e.project_id}/merge_requests/${e.iid}/notes`,{body:t})}function oV(e){let t=e.mr;async function r(){try{await f2(t,"/close"),(0,J.showToast)(J.ToastStyle.Success,"Closed"),e.finished&&e.finished()}catch(a){(0,J.showToast)(J.ToastStyle.Failure,"Failed to close merge request",a instanceof Error?a.message:a.toString())}}return _jsx(J.ActionPanel.Item,{title:"Close MR",icon:{source:J.Icon.XmarkCircle,tintColor:J.Color.Red},onAction:r})}function pV(e){let t=e.mr;async function r(){try{await f2(t,"/reopen"),(0,J.showToast)(J.ToastStyle.Success,"Reopened"),e.finished&&e.finished()}catch(a){(0,J.showToast)(J.ToastStyle.Failure,"Failed to reopen merge request",a instanceof Error?a.message:a.toString())}}return _jsx(J.ActionPanel.Item,{title:"Reopen MR",icon:{source:J.Icon.ExclamationMark},onAction:r})}function sV(e){let t=e.mr;async function r(){try{await f2(t,"/rebase"),(0,J.showToast)(J.ToastStyle.Success,"Rebased")}catch(a){(0,J.showToast)(J.ToastStyle.Failure,"Failed to rebase merge request",a instanceof Error?a.message:a.toString())}}return _jsx(J.ActionPanel.Item,{title:"Rebase",shortcut:e.shortcut,icon:{source:J.Icon.ExclamationMark},onAction:r})}function uV(e){let t=e.mr;async function r(){try{await $e.put(`projects/${t.project_id}/merge_requests/${t.iid}/merge`),(0,J.showToast)(J.ToastStyle.Success,"Merged"),e.finished&&e.finished()}catch(a){(0,J.showToast)(J.ToastStyle.Failure,"Failed to merge",a instanceof Error?a.message:a.toString())}}return t.state==="opened"?_jsx(J.ActionPanel.Item,{title:"Merge",shortcut:e.shortcut,icon:{source:"merged.png",tintColor:J.Color.PrimaryText},onAction:r}):null}function dV(e){let t=e.mr;async function r(){try{await $e.post(`projects/${t.project_id}/merge_requests/${t.iid}/todo`),(0,J.showToast)(J.ToastStyle.Success,"To do created")}catch(a){(0,J.showToast)(J.ToastStyle.Failure,"Failed to add to do",a instanceof Error?a.message:a.toString())}}return t.state==="opened"?_jsx(J.ActionPanel.Item,{title:"Add a to do",shortcut:e.shortcut,icon:{source:"todo.png",tintColor:J.Color.PrimaryText},onAction:r}):null}function lV(e){return e.labels.length<=0?null:_jsx(J.PushAction,{title:"Show Labels",target:_jsx(du,{labels:e.labels}),shortcut:{modifiers:["cmd"],key:"l"},icon:{source:"dash.png",tintColor:J.Color.PrimaryText}})}function Ch(e){let t=e.mr;return _jsx(jh.default.Fragment,null,_jsx(dV,{shortcut:{modifiers:["cmd"],key:"t"},mr:t}),t.state==="opened"&&_jsx(oV,{mr:t,finished:e.onDataChange}),t.state==="closed"&&_jsx(pV,{mr:t,finished:e.onDataChange}),_jsx(uV,{shortcut:{modifiers:["cmd","shift"],key:"enter"},mr:t,finished:e.onDataChange}),_jsx(sV,{shortcut:{modifiers:["cmd","shift"],key:"r"},mr:t}),_jsx(J.CopyToClipboardAction,{title:"Copy Merge Request Number",content:t.iid}),_jsx(J.CopyToClipboardAction,{title:"Copy Merge Request URL",content:t.web_url}),_jsx(J.CopyToClipboardAction,{title:"Copy Merge Request Title",content:t.title}),_jsx(lV,{labels:t.labels}))}var cV=xh.gql`
query GetMRDetail($id: ID!) {
mergeRequest(id: $id) {
description
}
}
`;function Qh(e){let{description:t,error:r,isLoading:a}=fV(e.mr.id);r&&(0,Nt.showToast)(Nt.ToastStyle.Failure,"Could not get merge request details",r);let n=t||e.mr.description||"",i="";return e.mr&&(i=e.mr.labels.map(o=>`\`${o.name||o}\``).join(" ")+`
`),i+=`## Description
`+jp(n),_jsx(Nt.Detail,{markdown:i,isLoading:a,navigationTitle:`${e.mr.reference_full}`,actions:_jsx(Nt.ActionPanel,null,_jsx(Nt.OpenInBrowserAction,{url:e.mr.web_url}),_jsx(Ch,{mr:e.mr}))})}function fV(e){let[t,r]=(0,Ri.useState)(),[a,n]=(0,Ri.useState)(),[i,o]=(0,Ri.useState)(!1);return(0,Ri.useEffect)(()=>{let p=!1;async function s(){if(!(e<=0||p)){o(!0),n(void 0);try{let d=(await uu.client.query({query:cV,variables:{id:`gid://gitlab/MergeRequest/${e}`}})).data.mergeRequest.description||"<no description>";p||r(d)}catch(u){p||n(u.message)}finally{p||o(!1)}}}return s(),()=>{p=!0}},[e]),{description:t,error:a,isLoading:i}}function Uh(e){let t=e.todo,r={source:"sidebar-right-16",tintColor:Fe.Color.PrimaryText};if(t.target_type==="MergeRequest"){let a=ou(t.target);return _jsx(Fe.PushAction,{title:"Show Details",target:_jsx(Qh,{mr:a}),icon:r})}else if(t.target_type==="Issue"){let a=pu(t.target);return _jsx(Fe.PushAction,{title:"Show Details",target:_jsx(qh,{issue:a}),icon:r})}else return null}function Gh(e){let t=e.todo;async function r(){try{await $e.post(`todos/${t.id}/mark_as_done`),(0,Fe.showToast)(Fe.ToastStyle.Success,"Done","Todo is now marked as done"),e.finished&&e.finished()}catch(a){(0,Fe.showToast)(Fe.ToastStyle.Failure,"Failed to mark Todo as done",a instanceof Error?a.message:a.toString())}}return _jsx(Fe.ActionPanel.Item,{title:"Mark as Done",icon:{source:Fe.Icon.XmarkCircle,tintColor:Fe.Color.Red},shortcut:{modifiers:["cmd"],key:"d"},onAction:r})}function Bh(e){async function t(){try{await $e.post("todos/mark_as_done"),(0,Fe.showToast)(Fe.ToastStyle.Success,"Done","All Todos are now marked as done"),e.finished&&e.finished()}catch(r){(0,Fe.showToast)(Fe.ToastStyle.Failure,"Failed to Close All to do's",r instanceof Error?r.message:r.toString())}}return _jsx(Fe.ActionPanel.Item,{title:"Mark All as Done",icon:{source:Fe.Icon.ExclamationMark,tintColor:Fe.Color.Red},onAction:t})}function mV(e){let t="";return e?(e.avatar_url&&(t=e.avatar_url),{source:t,mask:nt.ImageMask.Circle}):""}function Kh(){let[e,t]=(0,Ma.useState)(),{todos:r,error:a,isLoading:n,refresh:i}=hV(e);return a&&(0,nt.showToast)(nt.ToastStyle.Failure,"Cannot search Merge Requests",a),r?_jsx(nt.List,{searchBarPlaceholder:"Filter Todos by name...",onSearchTextChange:t,isLoading:n,throttle:!0},r?.map(o=>_jsx(vV,{key:o.id,todo:o,refreshData:i}))):_jsx(nt.List,{isLoading:!0,searchBarPlaceholder:"Loading"})}function vV(e){let t=e.todo,r=t.group?t.group.full_path:t.project_with_namespace||"";return _jsx(nt.List.Item,{id:t.id.toString(),title:t.title,subtitle:r,accessoryTitle:t.action_name,accessoryIcon:mV(t.author),icon:{source:"todo.png",tintColor:nt.Color.Green},actions:_jsx(nt.ActionPanel,null,_jsx(nt.ActionPanel.Section,null,_jsx(Uh,{todo:t}),_jsx(nt.OpenInBrowserAction,{url:t.target_url})),_jsx(nt.ActionPanel.Section,null,_jsx(Gh,{todo:t,finished:e.refreshData}),_jsx(Bh,{finished:e.refreshData})))})}function hV(e){let[t,r]=(0,Ma.useState)(),[a,n]=(0,Ma.useState)(),[i,o]=(0,Ma.useState)(!1),[p,s]=(0,Ma.useState)(xi()),u=()=>{s(xi())};return(0,Ma.useEffect)(()=>{let d=!1;async function l(){if(!(e===null||d)){o(!0),n(void 0);try{let c=await $e.getTodos({search:e||""});d||r(c)}catch(c){d||n(c.message)}finally{d||o(!1)}}}return l(),()=>{d=!0}},[e,p]),{todos:t,error:a,isLoading:i,refresh:u}}(0,zh.render)(_jsx(Kh,null));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */