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

313 lines
843 KiB
JavaScript
Raw Normal View History

var qg=Object.create;var W1=Object.defineProperty;var Vg=Object.getOwnPropertyDescriptor;var Cg=Object.getOwnPropertyNames;var xg=Object.getPrototypeOf,Qg=Object.prototype.hasOwnProperty;var Ug=e=>W1(e,"__esModule",{value:!0});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Gg=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Cg(t))!Qg.call(e,n)&&(r||n!=="default")&&W1(e,n,{get:()=>t[n],enumerable:!(a=Vg(t,n))||a.enumerable});return e},Me=(e,t)=>Gg(Ug(W1(e!=null?qg(xg(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var $t=g(($V,qp)=>{var wm,Om,Em,Sm,Dm,Nm,Im,Pm,Lm,jp,H1,Rm,Am,km,xn,Fm,jm,Mm,qm,Vm,Cm,xm,Qm,Mp;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(a){e(r(t,r(a)))}):typeof qp=="object"&&typeof qp.exports=="object"?e(r(t,r(qp.exports))):e(r(t));function r(a,n){return a!==t&&(typeof Object.create=="function"?Object.defineProperty(a,"__esModule",{value:!0}):a.__esModule=!0),function(i,o){return a[i]=n?n(i,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(a[i]=n[i])};wm=function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(a,n);function i(){this.constructor=a}a.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)},Om=Object.assign||function(a){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var p in n)Object.prototype.hasOwnProperty.call(n,p)&&(a[p]=n[p])}return a},Em=function(a,n){var i={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&n.indexOf(o)<0&&(i[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,o=Object.getOwnPropertySymbols(a);p<o.length;p++)n.indexOf(o[p])<0&&Object.prototype.propertyIsEnumerable.call(a,o[p])&&(i[o[p]]=a[o[p]]);return i},Sm=function(a,n,i,o){var p=arguments.length,s=p<3?n:o===null?o=Object.getOwnPropertyDescriptor(n,i):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(a,n,i,o);else for(var d=a.length-1;d>=0;d--)(u=a[d])&&(s=(p<3?u(s):p>3?u(n,i,s):u(n,i))||s);return p>3&&s&&Object.defineProperty(n,i,s),s},Dm=function(a,n){return function(i,o){n(i,o,a)}},Nm=function(a,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(a,n)},Im=function(a,n,i,o){function p(s){return s instanceof i?s:new i(function(u){u(s)})}return new(i||(i=Promise))(function(s,u){function d(f){try{c(o.next(f))}catch(m){u(m)}}function l(f){try{c(o.throw(f))}catch(m){u(m)}}function c(f){f.done?s(f.value):p(f.value).then(d,l)}c((o=o.apply(a,n||[])).next())})},Pm=function(a,n){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,p,s,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(c){return function(f){return l([c,f])}}function l(c){if(o)throw new TypeError("Generator is already executing.");for(;i;)try{if(o=1,p&&(s=c[0]&2?p.return:c[0]?p.throw||((s=p.return)&&s.call(p),0):p.next)&&!(s=s.call(p,c[1])).done)return s;switch(p=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,p=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(s=i.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){i=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){i.label=c[1];break}if(c[0]===6&&i.label<s[1]){i.label=s[1],s=c;break}if(s&&i.label<s[2]){i.label=s[2],i.ops.push(c);break}s[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(a,i)}catch(f){c=[6,f],p=0}finally{o=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Lm=function(a,n){for(var i in a)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&Mp(n,a,i)},Mp=Object.create?function(a,n,i,o){o===voi
`),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+$m([["".concat(o),m[0]]].concat(m.slice(1,c+1).map(function(h){return["",h]}),[[" ",Kp(f-1)+"^"],["",m[c+1]]]))}return u+$m([["".concat(o-1),d[n-1]],["".concat(o),l],["",Kp(s-1)+"^"],["".concat(o+1),d[n+1]]])}function $m(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 ib(r,n)+(i?" | "+i:" |")}).join(`
`)}function Kp(e){return Array(e+1).join(" ")}function ib(e,t){return Kp(e-t.length)+t}});var z=g(lo=>{"use strict";function Yp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yp=function(r){return typeof r}:Yp=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yp(e)}Object.defineProperty(lo,"__esModule",{value:!0});lo.printError=e6;lo.GraphQLError=void 0;var ob=sb(Sr()),pb=Dr(),Jm=Bp(),Wm=od();function sb(e){return e&&e.__esModule?e:{default:e}}function ub(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hm(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 db(e,t,r){return t&&Hm(e.prototype,t),r&&Hm(e,r),e}function lb(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&&so(e,t)}function cb(e){var t=Zm();return function(){var a=uo(e),n;if(t){var i=uo(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return Xm(this,n)}}function Xm(e,t){return t&&(Yp(t)==="object"||typeof t=="function")?t:po(e)}function po(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||!fb(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 $p(a,arguments,uo(this).constructor)}return n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),so(n,a)},pd(e)}function $p(e,t,r){return Zm()?$p=Reflect.construct:$p=function(n,i,o){var p=[null];p.push.apply(p,i);var s=Function.bind.apply(n,p),u=new s;return o&&so(u,o.prototype),u},$p.apply(null,arguments)}function Zm(){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 fb(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function so(e,t){return so=Object.setPrototypeOf||function(a,n){return a.__proto__=n,a},so(e,t)}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},uo(e)}var mb=function(e){lb(r,e);var t=cb(r);function r(a,n,i,o,p,s,u){var d,l,c,f,m;ub(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 _=o;!_&&v&&(_=v.reduce(function(N,P){return P.loc&&N.push(P.loc.start),N},[])),_&&_.length===0&&(_=void 0);var w;o&&i?w=o.map(function(N){return(0,Jm.getLocation)(i,N)}):v&&(w=v.reduce(function(N,P){return P.loc&&N.push((0,Jm.getLocation)(P.loc.source,P.loc.start)),N},[]));var O=u;if(O==null&&s!=null){var E=s.extensions;(0,ob.default)(E)&&(O=E)}return Object.defineProperties(po(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=_)!==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(po(m),"stack",{value:s.stack,writable:!0,configurable:!0}),Xm(m)):(Error.captureStackTrace?Error.captureStackTrace(po(m),r):Object.defineProperty(po(m),"stack",{value:Error().stack,writable:!0,configurable:!0}),m)}return db(r,[{key:"toString",value:function(){return e6(this)}},{key:pb.SYMBOL_TO_STRING_TAG,get:function(){return"Object"}}]),r}(pd(Error));lo.GraphQL
`+(0,Wm.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,Wm.printSourceLocation)(e.source,p)}return t}});var Jp=g(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.syntaxError=hb;var vb=z();function hb(e,t,r){return new vb.GraphQLError("Syntax Error: ".concat(r),void 0,e,[t])}});var Pe=g(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.Kind=void 0;var yb=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"});Wp.Kind=yb});var ct=g(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.default=gb;function gb(e,t){var r=Boolean(e);if(!r)throw new Error(t??"Unexpected invariant triggered.")}});var dd=g(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.default=void 0;var bb=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):void 0,_b=bb;Hp.default=_b});var Xp=g(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.default=wb;var Tb=r6(ct()),t6=r6(dd());function r6(e){return e&&e.__esModule?e:{default:e}}function wb(e){var t=e.prototype.toJSON;typeof t=="function"||(0,Tb.default)(0),e.prototype.inspect=t,t6.default&&(e.prototype[t6.default]=t)}});var Gn=g(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.isNode=Eb;Ha.Token=Ha.Location=void 0;var a6=Ob(Xp());function Ob(e){return e&&e.__esModule?e:{default:e}}var n6=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}();Ha.Location=n6;(0,a6.default)(n6);var i6=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}();Ha.Token=i6;(0,a6.default)(i6);function Eb(e){return e!=null&&typeof e.kind=="string"}});var Bn=g(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.TokenKind=void 0;var Sb=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"});Zp.TokenKind=Sb});var me=g(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.default=Pb;var Db=Nb(dd());function Nb(e){return e&&e.__esModule?e:{default:e}}function es(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?es=function(r){return typeof r}:es=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};as.default=Vb});var ns=g(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.isSource=Gb;fo.Source=void 0;var Cb=Dr(),xb=vd(me()),md=vd(Jt()),Qb=vd(co());function vd(e){return e&&e.__esModule?e:{default:e}}function p6(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 Ub(e,t,r){return t&&p6(e.prototype,t),r&&p6(e,r),e}var s6=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,xb.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 Ub(e,[{key:Cb.SYMBOL_TO_STRING_TAG,get:function(){return"Source"}}]),e}();fo.Source=s6;function Gb(e){return(0,Qb.default)(e,s6)}});var Kn=g(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.DirectiveLocation=void 0;var Bb=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"});is.DirectiveLocation=Bb});var zn=g(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.dedentBlockStringValue=Kb;mo.getBlockStringIndentation=d6;mo.printBlockString=zb;function Kb(e){var t=e.split(/\r\n|[\n\r]/g),r=d6(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&&u6(t[n]);)++n;for(var i=t.length;i>n&&u6(t[i-1]);)--i;return t.slice(n,i).join(`
`)}function u6(e){for(var t=0;t<e.length;++t)if(e[t]!==" "&&e[t]!==" ")return!1;return!0}function d6(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 zb(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 ps=g(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.isPunctuatorTokenKind=Jb;vo.Lexer=void 0;var Nr=Jp(),Ze=Gn(),ee=Bn(),Yb=zn(),$b=function(){function e(r){var a=new Ze.Token(ee.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!==ee.TokenKind.EOF)do{var n;a=(n=a.next)!==null&&n!==void 0?n:a.next=Wb(this,a)}while(a.kind===ee.TokenKind.COMMENT);return a},e}();vo.Lexer=$b;function Jb(e){return e===ee.TokenKind.BANG||e===ee.TokenKind.DOLLAR||e===ee.TokenKind.AMP||e===ee.TokenKind.PAREN_L||e===ee.TokenKind.PAREN_R||e===ee.TokenKind.SPREAD||e===ee.TokenKind.COLON||e===ee.TokenKind.EQUALS||e===ee.TokenKind.AT||e===ee.TokenKind.BRACKET_L||e===ee.TokenKind.BRACKET_R||e===ee.TokenKind.BRACE_L||e===ee.TokenKind.PIPE||e===ee.TokenKind.BRACE_R}function Xa(e){return isNaN(e)?ee.TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Wb(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 Ze.Token(ee.TokenKind.BANG,i,i+1,p,s,t);case 35:return Xb(r,i,p,s,t);case 36:return new Ze.Token(ee.TokenKind.DOLLAR,i,i+1,p,s,t);case 38:return new Ze.Token(ee.TokenKind.AMP,i,i+1,p,s,t);case 40:return new Ze.Token(ee.TokenKind.PAREN_L,i,i+1,p,s,t);case 41:return new Ze.Token(ee.TokenKind.PAREN_R,i,i+1,p,s,t);case 46:if(a.charCodeAt(i+1)===46&&a.charCodeAt(i+2)===46)return new Ze.Token(ee.TokenKind.SPREAD,i,i+3,p,s,t);break;case 58:return new Ze.Token(ee.TokenKind.COLON,i,i+1,p,s,t);case 61:return new Ze.Token(ee.TokenKind.EQUALS,i,i+1,p,s,t);case 64:return new Ze.Token(ee.TokenKind.AT,i,i+1,p,s,t);case 91:return new Ze.Token(ee.TokenKind.BRACKET_L,i,i+1,p,s,t);case 93:return new Ze.Token(ee.TokenKind.BRACKET_R,i,i+1,p,s,t);case 123:return new Ze.Token(ee.TokenKind.BRACE_L,i,i+1,p,s,t);case 124:return new Ze.Token(ee.TokenKind.PIPE,i,i+1,p,s,t);case 125:return new Ze.Token(ee.TokenKind.BRACE_R,i,i+1,p,s,t);case 34:return a.charCodeAt(i+1)===34&&a.charCodeAt(i+2)===34?t_(r,i,p,s,t,e):e_(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 Zb(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 a_(r,i,p,s,t)}throw(0,Nr.syntaxError)(r,i,Hb(o))}var u=e.line,d=1+i-e.lineStart;return new Ze.Token(ee.TokenKind.EOF,n,n,u,d,t)}function Hb(e){return e<32&&e!==9&&e!==10&&e!==13?"Cannot contain the invalid character ".concat(Xa(e),"."):e===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:"Cannot parse the unexpected character ".concat(Xa(e),".")}function Xb(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 Ze.Token(ee.TokenKind.COMMENT,t,p,r,a,n,i.slice(t+1,p))}function Zb(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,Nr.syntaxError)(e,s,"Invalid number, unexpected digit after 0: ".concat(Xa(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||n_(p))throw(0,Nr.syntax
`;break;case 114:u+="\r";break;case 116:u+=" ";break;case 117:{var d=r_(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,Nr.syntaxError)(e,o,"Invalid character escape sequence: \\u".concat(l,"."))}u+=String.fromCharCode(d),o+=4;break}default:throw(0,Nr.syntaxError)(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(s),"."))}++o,p=o}}throw(0,Nr.syntaxError)(e,o,"Unterminated string.")}function t_(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 Ze.Token(ee.TokenKind.BLOCK_STRING,t,p+3,r,a,n,(0,Yb.dedentBlockStringValue)(d));if(u<32&&u!==9&&u!==10&&u!==13)throw(0,Nr.syntaxError)(e,p,"Invalid character within String: ".concat(Xa(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,Nr.syntaxError)(e,p,"Unterminated string.")}function r_(e,t,r,a){return os(e)<<12|os(t)<<8|os(r)<<4|os(a)}function os(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function a_(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 Ze.Token(ee.TokenKind.NAME,t,p,r,a,n,i.slice(t,p))}function n_(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}});var Yn=g(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.parse=p_;Za.parseValue=s_;Za.parseType=u_;Za.Parser=void 0;var yd=Jp(),$=Pe(),i_=Gn(),k=Bn(),l6=ns(),o_=Kn(),c6=ps();function p_(e,t){var r=new ss(e,t);return r.parseDocument()}function s_(e,t){var r=new ss(e,t);r.expectToken(k.TokenKind.SOF);var a=r.parseValueLiteral(!1);return r.expectToken(k.TokenKind.EOF),a}function u_(e,t){var r=new ss(e,t);r.expectToken(k.TokenKind.SOF);var a=r.parseTypeReference();return r.expectToken(k.TokenKind.EOF),a}var ss=function(){function e(r,a){var n=(0,l6.isSource)(r)?r:new l6.Source(r);this._lexer=new c6.Lexer(n),this._options=a}var t=e.prototype;return t.parseName=function(){var a=this.expectToken(k.TokenKind.NAME);return{kind:$.Kind.NAME,value:a.value,loc:this.loc(a)}},t.parseDocument=function(){var a=this._lexer.token;return{kind:$.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:$.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:$.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:$.Kind.VARIABLE_DEFINITION,var
`)+`
`},OperationDefinition:function(t){var r=t.operation,a=t.name,n=Qe("(",M(t.variableDefinitions,", "),")"),i=M(t.directives," "),o=t.selectionSet;return!a&&!i&&!n&&r==="query"?o:M([r,M([a,n]),i,o]," ")},VariableDefinition:function(t){var r=t.variable,a=t.type,n=t.defaultValue,i=t.directives;return r+": "+a+Qe(" = ",n)+Qe(" ",M(i," "))},SelectionSet:function(t){var r=t.selections;return lr(r)},Field:function(t){var r=t.alias,a=t.name,n=t.arguments,i=t.directives,o=t.selectionSet,p=Qe("",r,": ")+a,s=p+Qe("(",M(n,", "),")");return s.length>$_&&(s=p+Qe(`(
`,hs(M(n,`
`)),`
)`)),M([s,M(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+Qe(" ",M(a," "))},InlineFragment:function(t){var r=t.typeCondition,a=t.directives,n=t.selectionSet;return M(["...",Qe("on ",r),M(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(Qe("(",M(n,", "),")")," ")+"on ".concat(a," ").concat(Qe("",M(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,z_.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"["+M(r,", ")+"]"},ObjectValue:function(t){var r=t.fields;return"{"+M(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+Qe("(",M(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:dr(function(e){var t=e.directives,r=e.operationTypes;return M(["schema",M(t," "),lr(r)]," ")}),OperationTypeDefinition:function(t){var r=t.operation,a=t.type;return r+": "+a},ScalarTypeDefinition:dr(function(e){var t=e.name,r=e.directives;return M(["scalar",t,M(r," ")]," ")}),ObjectTypeDefinition:dr(function(e){var t=e.name,r=e.interfaces,a=e.directives,n=e.fields;return M(["type",t,Qe("implements ",M(r," & ")),M(a," "),lr(n)]," ")}),FieldDefinition:dr(function(e){var t=e.name,r=e.arguments,a=e.type,n=e.directives;return t+(_6(r)?Qe(`(
`,hs(M(r,`
`)),`
)`):Qe("(",M(r,", "),")"))+": "+a+Qe(" ",M(n," "))}),InputValueDefinition:dr(function(e){var t=e.name,r=e.type,a=e.defaultValue,n=e.directives;return M([t+": "+r,Qe("= ",a),M(n," ")]," ")}),InterfaceTypeDefinition:dr(function(e){var t=e.name,r=e.interfaces,a=e.directives,n=e.fields;return M(["interface",t,Qe("implements ",M(r," & ")),M(a," "),lr(n)]," ")}),UnionTypeDefinition:dr(function(e){var t=e.name,r=e.directives,a=e.types;return M(["union",t,M(r," "),a&&a.length!==0?"= "+M(a," | "):""]," ")}),EnumTypeDefinition:dr(function(e){var t=e.name,r=e.directives,a=e.values;return M(["enum",t,M(r," "),lr(a)]," ")}),EnumValueDefinition:dr(function(e){var t=e.name,r=e.directives;return M([t,M(r," ")]," ")}),InputObjectTypeDefinition:dr(function(e){var t=e.name,r=e.directives,a=e.fields;return M(["input",t,M(r," "),lr(a)]," ")}),DirectiveDefinition:dr(function(e){var t=e.name,r=e.arguments,a=e.repeatable,n=e.locations;return"directive @"+t+(_6(r)?Qe(`(
`,hs(M(r,`
`)),`
)`):Qe("(",M(r,", "),")"))+(a?" repeatable":"")+" on "+M(n," | ")}),SchemaExtension:function(t){var r=t.directives,a=t.operationTypes;return M(["extend schema",M(r," "),lr(a)]," ")},ScalarTypeExtension:function(t){var r=t.name,a=t.directives;return M(["extend scalar",r,M(a," ")]," ")},ObjectTypeExtension:function(t){var r=t.name,a=t.interfaces,n=t.directives,i=t.fields;return M(["extend type",r,Qe("implements ",M(a," & ")),M(n," "),lr(i)]," ")},InterfaceTypeExtension:function(t){var r=t.name,a=t.interfaces,n=t.directives,i=t.fields;return M(["extend interface",r,Qe("implements ",M(a," & ")),M(n," "),lr(i)]," ")},UnionTypeExtension:function(t){var r=t.name,a=t.directives,n=t.types;return M(["extend union",r,M(a," "),n&&n.length!==0?"= "+M(n," | "):""]," ")},EnumTypeExtension:function(t){var r=t.name,a=t.directives,n=t.values;return M(["extend enum",r,M(a," "),lr(n)]," ")},InputObjectTypeExtension:function(t){var r=t.name,a=t.directives,n=t.fields;return M(["extend input",r,M(a," "),lr(n)]," ")}};function dr(e){return function(t){return M([t.description,e(t)],`
`)}}function M(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 lr(e){return Qe(`{
`,hs(M(e,`
`)),`
}`)}function Qe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return t!=null&&t!==""?e+t+r:""}function hs(e){return Qe(" ",e.replace(/\n/g,`
`))}function W_(e){return e.indexOf(`
`)!==-1}function _6(e){return e!=null&&e.some(W_)}});var jd=g(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.valueFromASTUntyped=kd;var H_=Ad(me()),X_=Ad(ct()),Z_=Ad(yo()),Yr=Pe();function Ad(e){return e&&e.__esModule?e:{default:e}}function kd(e,t){switch(e.kind){case Yr.Kind.NULL:return null;case Yr.Kind.INT:return parseInt(e.value,10);case Yr.Kind.FLOAT:return parseFloat(e.value);case Yr.Kind.STRING:case Yr.Kind.ENUM:case Yr.Kind.BOOLEAN:return e.value;case Yr.Kind.LIST:return e.values.map(function(r){return kd(r,t)});case Yr.Kind.OBJECT:return(0,Z_.default)(e.fields,function(r){return r.name.value},function(r){return kd(r.value,t)});case Yr.Kind.VARIABLE:return t==null?void 0:t[e.name.value]}(0,X_.default)(0,"Unexpected value node: "+(0,H_.default)(e))}});var de=g(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.isType=Md;G.assertType=D6;G.isScalarType=en;G.assertScalarType=oT;G.isObjectType=Xn;G.assertObjectType=pT;G.isInterfaceType=tn;G.assertInterfaceType=sT;G.isUnionType=rn;G.assertUnionType=uT;G.isEnumType=an;G.assertEnumType=dT;G.isInputObjectType=_o;G.assertInputObjectType=lT;G.isListType=gs;G.assertListType=cT;G.isNonNullType=_a;G.assertNonNullType=fT;G.isInputType=qd;G.assertInputType=mT;G.isOutputType=Vd;G.assertOutputType=vT;G.isLeafType=N6;G.assertLeafType=hT;G.isCompositeType=I6;G.assertCompositeType=yT;G.isAbstractType=P6;G.assertAbstractType=gT;G.GraphQLList=Ta;G.GraphQLNonNull=wa;G.isWrappingType=To;G.assertWrappingType=bT;G.isNullableType=L6;G.assertNullableType=R6;G.getNullableType=_T;G.isNamedType=A6;G.assertNamedType=TT;G.getNamedType=wT;G.argsToArgsConfig=M6;G.isRequiredArgument=OT;G.isRequiredInputField=NT;G.GraphQLInputObjectType=G.GraphQLEnumType=G.GraphQLUnionType=G.GraphQLInterfaceType=G.GraphQLObjectType=G.GraphQLScalarType=void 0;var T6=Mt(Wn()),ya=Dr(),ke=Mt(me()),eT=Mt(ma()),ys=Mt(Od()),Ir=Mt(ms()),qe=Mt(Jt()),w6=Mt(yo()),ga=Mt(co()),tT=Mt(va()),rT=Mt(Sr()),O6=Mt(g6()),ba=Mt(Xp()),aT=Mt(ha()),bo=z(),nT=Pe(),E6=jt(),iT=jd();function Mt(e){return e&&e.__esModule?e:{default:e}}function S6(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 Hn(e,t,r){return t&&S6(e.prototype,t),r&&S6(e,r),e}function Md(e){return en(e)||Xn(e)||tn(e)||rn(e)||an(e)||_o(e)||gs(e)||_a(e)}function D6(e){if(!Md(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL type."));return e}function en(e){return(0,ga.default)(e,Cd)}function oT(e){if(!en(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL Scalar type."));return e}function Xn(e){return(0,ga.default)(e,xd)}function pT(e){if(!Xn(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL Object type."));return e}function tn(e){return(0,ga.default)(e,Qd)}function sT(e){if(!tn(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL Interface type."));return e}function rn(e){return(0,ga.default)(e,Ud)}function uT(e){if(!rn(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL Union type."));return e}function an(e){return(0,ga.default)(e,Gd)}function dT(e){if(!an(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL Enum type."));return e}function _o(e){return(0,ga.default)(e,Bd)}function lT(e){if(!_o(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL Input Object type."));return e}function gs(e){return(0,ga.default)(e,Ta)}function cT(e){if(!gs(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL List type."));return e}function _a(e){return(0,ga.default)(e,wa)}function fT(e){if(!_a(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL Non-Null type."));return e}function qd(e){return en(e)||an(e)||_o(e)||To(e)&&qd(e.ofType)}function mT(e){if(!qd(e))throw new Error("Expected ".concat((0,ke.default)(e)," to be a GraphQL input type."));return e}function Vd(e){return en(e)||Xn(e)||tn(e)||rn(e)||an(e)||To(e)&&Vd(e.ofType)}function vT(e){if(!Vd(
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(Le.GraphQLString),resolve:function(r){return r.name}},description:{type:Le.GraphQLString,resolve:function(r){return r.description}},isRepeatable:{type:new q.GraphQLNonNull(Le.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(Lo))),args:{includeDeprecated:{type:Le.GraphQLBoolean,defaultValue:!1}},resolve:function(r,a){var n=a.includeDeprecated;return n?r.args:r.args.filter(function(i){return i.deprecationReason==null})}}}}});Ee.__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:it.DirectiveLocation.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:it.DirectiveLocation.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:it.DirectiveLocation.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:it.DirectiveLocation.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:it.DirectiveLocation.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:it.DirectiveLocation.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:it.DirectiveLocation.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:it.DirectiveLocation.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:it.DirectiveLocation.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:it.DirectiveLocation.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:it.DirectiveLocation.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:it.DirectiveLocation.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:it.DirectiveLocation.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:it.DirectiveLocation.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:it.DirectiveLocation.UNION,description:"Location adjacent to a union definition."},ENUM:{value:it.DirectiveLocation.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:it.DirectiveLocation.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:it.DirectiveLocation.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:it.DirectiveLocation.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}});Ee.__DirectiveLocation=rl;var Ht=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 ft.SCALAR;if((0,q.isObjectType)(r))return ft.OBJECT;if((0,q.is
`))}var kw=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 Nw.GraphQLError(a,i))},t.addError=function(a){this._errors.push(a)},t.getErrors=function(){return this._errors},e}();function Fw(e){var t=e.schema,r=t.getQueryType();if(!r)e.reportError("Query root type must be provided.",t.astNode);else if(!(0,et.isObjectType)(r)){var a;e.reportError("Query root type must be Object type, it cannot be ".concat((0,gt.default)(r),"."),(a=dl(t,"query"))!==null&&a!==void 0?a:r.astNode)}var n=t.getMutationType();if(n&&!(0,et.isObjectType)(n)){var i;e.reportError("Mutation root type must be Object type if provided, it cannot be "+"".concat((0,gt.default)(n),"."),(i=dl(t,"mutation"))!==null&&i!==void 0?i:n.astNode)}var o=t.getSubscriptionType();if(o&&!(0,et.isObjectType)(o)){var p;e.reportError("Subscription root type must be Object type if provided, it cannot be "+"".concat((0,gt.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 jw(e){for(var t=0,r=e.schema.getDirectives();t<r.length;t++){var a=r[t];if(!(0,u4.isDirective)(a)){e.reportError("Expected directive but got: ".concat((0,gt.default)(a),"."),a==null?void 0:a.astNode);continue}un(e,a);for(var n=0,i=a.args;n<i.length;n++){var o=i[n];if(un(e,o),(0,et.isInputType)(o.type)||e.reportError("The type of @".concat(a.name,"(").concat(o.name,":) must be Input Type ")+"but got: ".concat((0,gt.default)(o.type),"."),o.astNode),(0,et.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 un(e,t){var r=(0,Pw.isValidNameError)(t.name);r&&e.addError((0,Iw.locatedError)(r,t.astNode))}function Mw(e){for(var t=Uw(e),r=e.schema.getTypeMap(),a=0,n=(0,Ro.default)(r);a<n.length;a++){var i=n[a];if(!(0,et.isNamedType)(i)){e.reportError("Expected GraphQL named type but got: ".concat((0,gt.default)(i),"."),i.astNode);continue}(0,Rw.isIntrospectionType)(i)||un(e,i),(0,et.isObjectType)(i)||(0,et.isInterfaceType)(i)?(l4(e,i),c4(e,i)):(0,et.isUnionType)(i)?Cw(e,i):(0,et.isEnumType)(i)?xw(e,i):(0,et.isInputObjectType)(i)&&(Qw(e,i),t(i))}}function l4(e,t){var r=(0,Ro.default)(t.getFields());r.length===0&&e.reportError("Type ".concat(t.name," must define one or more fields."),ai(t));for(var a=0;a<r.length;a++){var n=r[a];if(un(e,n),!(0,et.isOutputType)(n.type)){var i;e.reportError("The type of ".concat(t.name,".").concat(n.name," must be Output Type ")+"but got: ".concat((0,gt.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(un(e,s),!(0,et.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,gt.default)(s.type),"."),(d=s.astNode)===null||d===void 0?void 0:d.type)}if((0,et.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 c4(e,t){for(var r=Object.create(null),a=0,n=t.getInterfaces();a<n.length;a++){var i=n[a];if(!(0,et.isInterfaceType)(i)){e.reportError("Type ".concat((0,gt.default)(t)," must only implement Interface types, ")+"it cannot implement ".concat((0,gt.default)(i),"."),Ao(t,i));continue}if(t===i){e.reportError("Type ".concat(t.name," cannot implement itself because it would create a circular reference."),Ao(t,i));continue}if(r[i.name]){e.reportError("Type ".concat(t.name," can only implement ").concat(i.name," once."),Ao(t,i));continue}r[i.name]=!0,Vw(e,t,i),qw(e,t,i)}}function qw(e,t,r){for(var a=t.getFields(),n=0,i=(0,Ro.default)(r.getFields());n<i.length;n++){var o=i[n],p=o.name
`))}function CS(e,t){var r=Cc(e,t);if(r.length!==0)throw new Error(r.map(function(a){return a.message}).join(`
`))}});var R9=g(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.default=xS;function xS(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 A9=g(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.default=GS;var QS=US(Up());function US(e){return e&&e.__esModule?e:{default:e}}function GS(e,t,r){return e.reduce(function(a,n){return(0,QS.default)(a)?a.then(function(i){return t(i,n)}):t(a,n)},r)}});var k9=g(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.default=BS;function BS(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 Vo=g(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.addPath=KS;zs.pathToArray=zS;function KS(e,t,r){return{prev:e,key:t,typename:r}}function zS(e){for(var t=[],r=e;r;)t.push(r.key),r=r.prev;return t.reverse()}});var $s=g(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.getOperationRootType=YS;var Ys=z();function YS(e,t){if(t.operation==="query"){var r=e.getQueryType();if(!r)throw new Ys.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 Ys.GraphQLError("Schema is not configured for mutations.",t);return a}if(t.operation==="subscription"){var n=e.getSubscriptionType();if(!n)throw new Ys.GraphQLError("Schema is not configured for subscriptions.",t);return n}throw new Ys.GraphQLError("Can only have query, mutation and subscription operations.",t)}});var Kc=g(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.default=$S;function $S(e){return e.map(function(t){return typeof t=="number"?"["+t.toString()+"]":"."+t}).join("")}});var xo=g(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.valueFromAST=Co;var JS=Js(Ft()),WS=Js(ma()),HS=Js(me()),XS=Js(ct()),di=Pe(),fn=de();function Js(e){return e&&e.__esModule?e:{default:e}}function Co(e,t,r){if(!!e){if(e.kind===di.Kind.VARIABLE){var a=e.name.value;if(r==null||r[a]===void 0)return;var n=r[a];return n===null&&(0,fn.isNonNullType)(t)?void 0:n}if((0,fn.isNonNullType)(t))return e.kind===di.Kind.NULL?void 0:Co(e,t.ofType,r);if(e.kind===di.Kind.NULL)return null;if((0,fn.isListType)(t)){var i=t.ofType;if(e.kind===di.Kind.LIST){for(var o=[],p=0,s=e.values;p<s.length;p++){var u=s[p];if(F9(u,r)){if((0,fn.isNonNullType)(i))return;o.push(null)}else{var d=Co(u,i,r);if(d===void 0)return;o.push(d)}}return o}var l=Co(e,i,r);return l===void 0?void 0:[l]}if((0,fn.isInputObjectType)(t)){if(e.kind!==di.Kind.OBJECT)return;for(var c=Object.create(null),f=(0,WS.default)(e.fields,function(O){return O.name.value}),m=0,v=(0,JS.default)(t.getFields());m<v.length;m++){var h=v[m],y=f[h.name];if(!y||F9(y.value,r)){if(h.defaultValue!==void 0)c[h.name]=h.defaultValue;else if((0,fn.isNonNullType)(h.type))return;continue}var _=Co(y.value,h.type,r);if(_===void 0)return;c[h.name]=_}return c}if((0,fn.isLeafType)(t)){var w;try{w=t.parseLiteral(e,r)}catch{return}return w===void 0?void 0:w}(0,XS.default)(0,"Unexpected input type: "+(0,HS.default)(t))}}function F9(e,t){return e.kind===di.Kind.VARIABLE&&(t==null||t[e.name.value]===void 0)}});var $c=g(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.coerceInputValue=oD;var ZS=Da(Ft()),Ws=Da(me()),eD=Da(ct()),tD=Da(va()),rD=Da(Sr()),aD=Da(Ss()),nD=Da(ha()),iD=Da(Kc()),$r=Vo(),mn=z(),Qo=de();function Da(e){return e&&e.__esModule?e:{default:e}}function oD(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pD;return Uo(e,t,r)}function pD(e,t,r){var a="Invalid value "+(0,Ws.default)(t);throw e.length>0&&(a+=' at "value'.concat((0,iD.default)(e),'"')),r.message=a+": "+r.message,r}function Uo(e,t,r,a){if((0,Qo.isNonNullType)(t)){if(e!=null)return Uo(e,t.ofType,r,a);r((0,$r.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 I3=g(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.getOperationAST=pI;var oI=Pe();function pI(e,t){for(var r=null,a=0,n=e.definitions;a<n.length;a++){var i=n[a];if(i.kind===oI.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 L3=g(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.introspectionFromSchema=vI;var sI=cI(ct()),uI=Yn(),dI=$o(),lI=ff();function cI(e){return e&&e.__esModule?e:{default:e}}function P3(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 fI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P3(Object(r),!0).forEach(function(a){mI(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P3(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function mI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vI(e,t){var r=fI({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),a=(0,uI.parse)((0,lI.getIntrospectionQuery)(r)),n=(0,dI.executeSync)({schema:e,document:a});return!n.errors&&n.data||(0,sI.default)(0),n.data}});var A3=g(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.buildClientSchema=OI;var hI=Wo(Ft()),Vt=Wo(me()),yI=Wo(Jt()),pu=Wo(yo()),R3=Wo(Sr()),gI=Yn(),bI=sn(),_I=Dt(),TI=Pr(),Fr=Xt(),Ct=de(),wI=xo();function Wo(e){return e&&e.__esModule?e:{default:e}}function OI(e,t){(0,R3.default)(e)&&(0,R3.default)(e.__schema)||(0,yI.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,Vt.default)(e),"."));for(var r=e.__schema,a=(0,pu.default)(r.types,function(S){return S.name},function(S){return v(S)}),n=0,i=[].concat(TI.specifiedScalarTypes,Fr.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(Xe):[];return new bI.GraphQLSchema({description:r.description,query:p,mutation:s,subscription:u,types:(0,hI.default)(a),directives:d,assumeValid:t==null?void 0:t.assumeValid});function l(S){if(S.kind===Fr.TypeKind.LIST){var Y=S.ofType;if(!Y)throw new Error("Decorated type deeper than introspection query.");return new Ct.GraphQLList(l(Y))}if(S.kind===Fr.TypeKind.NON_NULL){var _e=S.ofType;if(!_e)throw new Error("Decorated type deeper than introspection query.");var xe=l(_e);return new Ct.GraphQLNonNull((0,Ct.assertNullableType)(xe))}return c(S)}function c(S){var Y=S.name;if(!Y)throw new Error("Unknown type reference: ".concat((0,Vt.default)(S),"."));var _e=a[Y];if(!_e)throw new Error("Invalid or incomplete schema, unknown type: ".concat(Y,". Ensure that a full introspection query is used in order to build a client schema."));return _e}function f(S){return(0,Ct.assertObjectType)(c(S))}function m(S){return(0,Ct.assertInterfaceType)(c(S))}function v(S){if(S!=null&&S.name!=null&&S.kind!=null)switch(S.kind){case Fr.TypeKind.SCALAR:return h(S);case Fr.TypeKind.OBJECT:return _(S);case Fr.TypeKind.INTERFACE:return w(S);case Fr.TypeKind.UNION:return O(S);case Fr.TypeKind.ENUM:return E(S);case Fr.TypeKind.INPUT_OBJECT:return N(S)}var Y=(0,Vt.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(Y,"."))}function h(S){return new Ct.GraphQLScalarType({name:S.name,description:S.description,specifiedByUrl:S.specifiedByUrl})}function y(S){if(S.interfaces===null&&S.kind===Fr.TypeKind.INTERFACE)return[];if(!S.interfaces){var Y=(0,Vt.default)(S);t
`+r)}}function AI(e){var t=e.loc;if(!!t){for(var r=[],a=t.startToken.prev;a!=null&&a.kind===NI.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 Y3=g(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.buildASTSchema=z3;du.buildSchema=xI;var kI=CI(Jt()),FI=Pe(),jI=Yn(),MI=ui(),qI=sn(),K3=Dt(),VI=yf();function CI(e){return e&&e.__esModule?e:{default:e}}function z3(e,t){e!=null&&e.kind===FI.Kind.DOCUMENT||(0,kI.default)(0,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&(0,MI.assertValidSDL)(e);var r={description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},a=(0,VI.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=K3.specifiedDirectives[l];p.every(function(f){return f.name!==c.name})&&p.push(c)},u=0;u<K3.specifiedDirectives.length;u++)s(u);return new qI.GraphQLSchema(a)}function xI(e,t){var r=(0,jI.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 z3(r,{commentDescriptions:t==null?void 0:t.commentDescriptions,assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}});var J3=g(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.lexicographicSortSchema=WI;var QI=Zo(Ft()),UI=Zo(me()),GI=Zo(ct()),BI=Zo(yo()),KI=Zo(go()),zI=sn(),YI=Dt(),$I=Xt(),Et=de();function Zo(e){return e&&e.__esModule?e:{default:e}}function $3(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 at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$3(Object(r),!0).forEach(function(a){JI(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$3(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function JI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WI(e){var t=e.toConfig(),r=(0,BI.default)(gf(t.types),function(c){return c.name},l);return new zI.GraphQLSchema(at(at({},t),{},{types:(0,QI.default)(r),directives:gf(t.directives).map(o),query:i(t.query),mutation:i(t.mutation),subscription:i(t.subscription)}));function a(c){return(0,Et.isListType)(c)?new Et.GraphQLList(a(c.ofType)):(0,Et.isNonNullType)(c)?new Et.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 YI.GraphQLDirective(at(at({},f),{},{locations:bf(f.locations,function(m){return m}),args:p(f.args)}))}function p(c){return lu(c,function(f){return at(at({},f),{},{type:a(f.type)})})}function s(c){return lu(c,function(f){return at(at({},f),{},{type:a(f.type),args:p(f.args)})})}function u(c){return lu(c,function(f){return at(at({},f),{},{type:a(f.type)})})}function d(c){return gf(c).map(n)}function l(c){if((0,Et.isScalarType)(c)||(0,$I.isIntrospectionType)(c))return c;if((0,Et.isObjectType)(c)){var f=c.toConfig();return new Et.GraphQLObjectType(at(at({},f),{},{interfaces:function(){return d(f.interfaces)},fields:function(){return s(f.fields)}}))}if((0,Et.isInterfaceType)(c)){var m=c.toConfig();return new Et.GraphQLInterfaceType(at(at({},m),{},{interfaces:function(){return d(m.interfaces)},fields:function(){return s(m.fields)}}))}if((0,Et.isUnionType)(c)){var v=c.toConfig();return new Et.GraphQLUnionType(at(at({},v),{},{types:function(){return d(v.types)}}))}if((0,Et.isEnumType)(c)){var h=c.toConfig();return new Et.GraphQLEnumType(at(at({},h),{},{values:lu(h.values)}))}if((0,Et.isInputObjectType)(c)){var y=c.toConfig();return new Et.GraphQLInputObjectType(at(at(
`)+`
`}function rP(e){if(!(e.description==null&&aP(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)),tr({},e)+`schema {
`.concat(t.join(`
`),`
}`)}}function aP(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 Z3(e,t){if((0,yi.isScalarType)(e))return nP(e,t);if((0,yi.isObjectType)(e))return iP(e,t);if((0,yi.isInterfaceType)(e))return oP(e,t);if((0,yi.isUnionType)(e))return pP(e,t);if((0,yi.isEnumType)(e))return sP(e,t);if((0,yi.isInputObjectType)(e))return uP(e,t);(0,W3.default)(0,"Unexpected type: "+(0,HI.default)(e))}function nP(e,t){return tr(t,e)+"scalar ".concat(e.name)+lP(e)}function e5(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(r){return r.name}).join(" & "):""}function iP(e,t){return tr(t,e)+"type ".concat(e.name)+e5(e)+t5(t,e)}function oP(e,t){return tr(t,e)+"interface ".concat(e.name)+e5(e)+t5(t,e)}function pP(e,t){var r=e.getTypes(),a=r.length?" = "+r.join(" | "):"";return tr(t,e)+"union "+e.name+a}function sP(e,t){var r=e.getValues().map(function(a,n){return tr(t,a," ",!n)+" "+a.name+Pf(a.deprecationReason)});return tr(t,e)+"enum ".concat(e.name)+Nf(r)}function uP(e,t){var r=(0,Tf.default)(e.getFields()).map(function(a,n){return tr(t,a," ",!n)+" "+If(a)});return tr(t,e)+"input ".concat(e.name)+Nf(r)}function t5(e,t){var r=(0,Tf.default)(t.getFields()).map(function(a,n){return tr(e,a," ",!n)+" "+a.name+r5(e,a.args," ")+": "+String(a.type)+Pf(a.deprecationReason)});return Nf(r)}function Nf(e){return e.length!==0?` {
`+e.join(`
`)+`
}`:""}function r5(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(If).join(", ")+")":`(
`+t.map(function(a,n){return tr(e,a," "+r,!n)+" "+r+If(a)}).join(`
`)+`
`+r+")"}function If(e){var t=(0,Sf.astFromValue)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,wf.print)(t))),r+Pf(e.deprecationReason)}function dP(e,t){return tr(t,e)+"directive @"+e.name+r5(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Pf(e){if(e==null)return"";var t=(0,Sf.astFromValue)(e,Of.GraphQLString);return t&&e!==Ef.DEFAULT_DEPRECATION_REASON?" @deprecated(reason: "+(0,wf.print)(t)+")":" @deprecated"}function lP(e){if(e.specifiedByUrl==null)return"";var t=e.specifiedByUrl,r=(0,Sf.astFromValue)(t,Of.GraphQLString);return r||(0,W3.default)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,wf.print)(r)+")"}function tr(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 cP(n,r,a);var i=n.length>70,o=(0,XI.printBlockString)(n,"",i),p=r&&!a?`
`+r:r;return p+o.replace(/\n/g,`
`+r)+`
`}function cP(e,t,r){var a=t&&!r?`
`:"",n=e.split(`
`).map(function(i){return t+(i!==""?"# "+i:"#")}).join(`
`);return a+n+`
`}});var n5=g(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.concatAST=fP;function fP(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 p5=g(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.separateOperations=vP;var cu=Pe(),mP=fa();function vP(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 cu.Kind.OPERATION_DEFINITION:t.push(i);break;case cu.Kind.FRAGMENT_DEFINITION:r[i.name.value]=o5(i.selectionSet);break}}for(var o=Object.create(null),p=function(d){for(var l=t[d],c=new Set,f=0,m=o5(l.selectionSet);f<m.length;f++){var v=m[f];i5(c,r,v)}var h=l.name?l.name.value:"";o[h]={kind:cu.Kind.DOCUMENT,definitions:e.definitions.filter(function(y){return y===l||y.kind===cu.Kind.FRAGMENT_DEFINITION&&c.has(y.name.value)})}},s=0;s<t.length;s++)p(s);return o}function i5(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];i5(e,t,i)}}}function o5(e){var t=[];return(0,mP.visit)(e,{FragmentSpread:function(a){t.push(a.name.value)}}),t}});var l5=g(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.stripIgnoredCharacters=hP;var s5=ns(),Af=Bn(),u5=ps(),d5=zn();function hP(e){for(var t=(0,s5.isSource)(e)?e:new s5.Source(e),r=t.body,a=new u5.Lexer(t),n="",i=!1;a.advance().kind!==Af.TokenKind.EOF;){var o=a.token,p=o.kind,s=!(0,u5.isPunctuatorTokenKind)(o.kind);i&&(s||o.kind===Af.TokenKind.SPREAD)&&(n+=" ");var u=r.slice(o.start,o.end);p===Af.TokenKind.BLOCK_STRING?n+=yP(u):n+=u,i=s}return n}function yP(e){var t=e.slice(3,-3),r=(0,d5.dedentBlockStringValue)(t);(0,d5.getBlockStringIndentation)(r)>0&&(r=`
`+r);var a=r[r.length-1],n=a==='"'&&r.slice(-4)!=='\\"""';return(n||a==="\\")&&(r+=`
`),'"""'+r+'"""'}});var T5=g(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});Ia.findBreakingChanges=SP;Ia.findDangerousChanges=DP;Ia.DangerousChangeType=Ia.BreakingChangeType=void 0;var gi=tp(Ft()),c5=tp(ma()),gP=tp(me()),f5=tp(ct()),bP=tp(go()),_P=jt(),TP=fa(),wP=Pr(),ye=de(),OP=Po();function tp(e){return e&&e.__esModule?e:{default:e}}function m5(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 v5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m5(Object(r),!0).forEach(function(a){EP(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m5(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function EP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nt=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"});Ia.BreakingChangeType=nt;var Zr=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"});Ia.DangerousChangeType=Zr;function SP(e,t){var r=h5(e,t).filter(function(a){return a.type in nt});return r}function DP(e,t){var r=h5(e,t).filter(function(a){return a.type in Zr});return r}function h5(e,t){return[].concat(IP(e,t),NP(e,t))}function NP(e,t){for(var r=[],a=ea(e.getDirectives(),t.getDirectives()),n=0,i=a.removed;n<i.length;n++){var o=i[n];r.push({type:nt.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=ea(d.args,l.args),f=0,m=c.added;f<m.length;f++){var v=m[f];(0,ye.isRequiredArgument)(v)&&r.push({type:nt.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 _=y[h];r.push({type:nt.DIRECTIVE_ARG_REMOVED,description:"".concat(_.name," was removed from ").concat(d.name,".")})}d.isRepeatable&&!l.isRepeatable&&r.push({type:nt.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:nt.DIRECTIVE_LOCATION_REMOVED,description:"".concat(E," was removed from ").concat(d.name,".")})}}return r}function IP(e,t){for(var r=[],a=ea((0,gi.default)(e.getTypeMap()),(0,gi.default)(t.getTypeMap())),n=0,i=a.removed;n<i.length;n++){var o=i[n];r.push({type:nt.TYPE_REMOVED,description:(0,wP.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,ye.isEnumType)(d)&&(0,ye.isEnumType)(l)?r.push.apply(r,RP(d,l)):(0,ye.isUnionType)(d)&&(0,ye.isUnionType)(l)?r.push.apply(r,LP(d,l)):(0,ye.isInputObjectType)(d)&&(0,ye.isInputObjectType)(l)?r.push.apply(r,PP(d,l)):(0,ye.isObjectType)(d)&&(0,ye.isObjectType)(l)||(0,ye.isInterfaceType)(d)&&(0,ye.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 Ou.InvariantError(22)},D8=function(){if(typeof AbortController=="undefined")return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},N8=function(e,t){var r=e.getContext(),a=r.uri;return a||(typeof t=="function"?t(e):t||"/graphql")};function I8(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=Su(t.variables,"Variables map")}catch(l){return{parseError:l}}a("variables",n)}if(t.extensions){var i=void 0;try{i=Su(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 P8=p0.maybe(function(){return fetch}),L8=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=Pt.__rest(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&S8(a||P8);var u={http:{includeExtensions:n},options:s.fetchOptions,credentials:s.credentials,headers:s.headers};return new _8.ApolloLink(function(d){var l=N8(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=Pt.__assign(Pt.__assign({},f),c.headers),_={http:c.http,options:c.fetchOptions,credentials:c.credentials,headers:y},w=E8(d,O8,u,_),O=w.options,E=w.body;if(E.variables&&!p){var N=new Set(Object.keys(E.variables));b8.visit(d.query,{Variable:function(xe,Yt,Be){Be&&Be.kind!=="VariableDefinition"&&N.delete(xe.name.value)}}),N.size&&(E.variables=Pt.__assign({},E.variables),N.forEach(function(xe){delete E.variables[xe]}))}var P;if(!O.signal){var L=D8(),B=L.controller,Ie=L.signal;P=B,P&&(O.signal=Ie)}var Xe=function(xe){return xe.kind==="OperationDefinition"&&xe.operation==="mutation"};if(i&&!d.query.definitions.some(Xe)&&(O.method="GET"),O.method==="GET"){var S=I8(l,E),Y=S.newURI,_e=S.parseError;if(_e)return Eu.fromError(_e);l=Y}else try{O.body=Su(E,"Payload")}catch(xe){return Eu.fromError(xe)}return new p0.Observable(function(xe){var Yt=a||p0.maybe(function(){return fetch})||P8;return Yt(l,O).then(function(Be){return d.setContext({response:Be}),Be}).then(w8(d)).then(function(Be){return xe.next(Be),xe.complete(),Be}).catch(function(Be){Be.name!=="AbortError"&&(Be.result&&Be.result.errors&&Be.result.data&&xe.next(Be.result),xe.error(Be))}),function(){P&&P.abort()}})})},wR=function(e){Pt.__extends(t,e);function t(r){r===void 0&&(r={});var a=e.call(this,L8(r).request)||this;return a.options=r,a}return t}(_8.ApolloLink);rr.HttpLink=wR;rr.checkFetcher=S8;rr.createHttpLink=L8;rr.createSignalIfSupported=D8;rr.fallbackHttpConfig=O8;rr.parseAndCheckHttpResponse=w8;rr.rewriteURIForGET=I8;rr.selectHttpOptionsAndBody=E8;rr.selectURI=N8;rr.serializeFetchParameter=Su});var up=g(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});var A8=Object.prototype,k8=A8.toString,OR=A8.hasOwnProperty,F8=Function.prototype.toString,s0=new Map;function j8(e,t){try{return u0(e,t)}finally{s0.clear()}}function u0(e,t){if(e===t)return!0;var r=k8.call(e),a=k8.call(t);if(r!==a)return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(q8(e,t))return!0;var n=M8(e),i=M8(t),o=n.length;if(o!==i.length)return!1;for(var p=0;p<o;++p)if(!OR.call(t,n[p]))return!1;for(var p=0;p<o;++p){var s=n[p];if(!u0(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(q8(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&&!u0(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 P0=new ZR.Slot,mv=new WeakMap;function mp(e){var t=mv.get(e);return t||mv.set(e,t={vars:new Set,dep:Ni.dep()}),t}function vv(e){mp(e).vars.forEach(function(t){return t.forgetCache(e)})}function dA(e){mp(e).vars.forEach(function(t){return t.attachCache(e)})}function hv(e){var t=new Set,r=new Set,a=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach(function(s){mp(s).dep.dirty(a),lA(s)});var o=Array.from(r);r.clear(),o.forEach(function(s){return s(e)})}}else{var p=P0.getValue();p&&(n(p),mp(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),mp(i).vars.add(a),a};return a.forgetCache=function(i){return t.delete(i)},a}function lA(e){e.broadcastWatches&&e.broadcastWatches()}I.getStoreKeyName.setStringify(On);function L0(e){return e.args!==void 0?e.args:e.field?I.argumentsObjectFromField(e.field,e.variables):null}var cA=function(){},yv=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},_v=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:T0},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=Ev(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),vt.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?cA:Array.isArray(i)?Ev(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?yv:Array.isArray(l)?Ov(l):typeof l=="function"?l:u.keyFn,typeof c=="function"&&(u.read=c),p(u,f)}u.read&&u.merge&&(u.keyFn=u.keyFn||yv)})},e.prototype.setRootTypename=function(t,r){r===void 0&&(r=t);var a="ROOT_"+t.toUpperCase(),n=this.rootTypenamesById[a];r!==n&&(__DEV__?je.invariant(!n||n===t,"Cannot change root "+t+" __typename more than once"):je.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(av);(!i||i[0]!==n)&&r.fuzzySubtypes.set(n,new RegExp(n))})})},e.prototype.getTypePolicy=function(t){var r=this;if(!vt.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},yA=function(e){mA.__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||hA(s),s.extraInfo=p,s.__proto__=t.prototype,s}return t}(Error);Fu.ApolloError=yA;Fu.isApolloError=vA});var Pv=g((ju,Iv)=>{(function(e,t){typeof ju=="object"&&typeof Iv!="undefined"?t(ju,$t(),_i()):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))})(ju,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 P=N.name.value,L=s(N.loc),B=n.get(P);B&&!B.has(L)?i&&console.warn("Warning: fragment with name "+P+` 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(P,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(P){var L=N[P];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(P,L){P&&P.kind==="Document"?N+=P.loc.source.body:N+=P,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 _=c;e.default=_,e.disableExperimentalFragmentVariables=h,e.disableFragmentWarnings=m,e.enableExperimentalFragmentVariables=v,e.gql=c,e.resetCaches=f,Object.defineProperty(e,"__esModule",{value:!0})})});var Rv=g((RQ,Lv)=>{Lv.exports=Pv().gql});var q0=g(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});var se=xt(),F=$t(),Ii=o0(),x=La(),k0=R8(),Lt=up(),ja=Dv(),na=A0(),Av=_i(),Mu=Tu(),kv=ed(),vp=Rv(),gA="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 hp(e){return e?e<7:!1}var bA=Object.assign,_A=Object.hasOwnProperty,Fv=!1,qu=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=TA)}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:hp(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),Lt.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&&jv(u.missing)}return r&&this.updateLastResult(i),i},t
Did you mean to call refetch(variables) instead of refetch({ variables })?`)}return r&&!Lt.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__&&!Fv&&(__DEV__&&se.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.`),Fv=!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__&&se.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 Lt.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__?se.invariant(i,"Attempted to start a polling query without a polling interval."):se.invariant(i,12);var o=n||(this.pollingInfo={});o.interval=i;var p=function(){r.pollingInfo&&(hp(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):bA(this.options,x.compact(r));i||(this.updatePolling(),r&&r.variables&&!r.fetchPolicy&&!Lt.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 se.InvariantError(9);if(this.link=P,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),!Cv&&__DEV__&&(Cv=!0,typeof window!="undefined"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var L=window.navigator,B=L&&L.userAgent,Ie=void 0;typeof B=="string"&&(B.indexOf("Chrome/")>-1?Ie="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":B.indexOf("Firefox/")>-1&&(Ie="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),Ie&&__DEV__&&se.invariant.log("Download the Apollo DevTools for a better development experience: "+Ie)}this.version=gA,this.localState=new qv({cache:o,client:this,resolvers:_,fragmentMatcher:O}),this.queryManager=new OA({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=Vu(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=Vu(this.defaultOptions.query,t)),__DEV__?se.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."):se.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=Vu(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 Ii.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 ua(e){return Array.isArray?Array.isArray(e):x7(e)==="[object Array]"}var Bk=1/0;function Kk(e){if(typeof e=="string")return e;var t=e+"";return t=="0"&&1/e==-Bk?"-0":t}function zk(e){return e==null?"":Kk(e)}function da(e){return typeof e=="string"}function V7(e){return typeof e=="number"}function Yk(e){return e===!0||e===!1||$k(e)&&x7(e)=="[object Boolean]"}function C7(e){return Ju(e)==="object"}function $k(e){return C7(e)&&e!==null}function Bt(e){return e!=null}function i2(e){return!e.trim().length}function x7(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var Jk="Incorrect 'index' type",Wk=function(t){return"Invalid value for key ".concat(t)},Hk=function(t){return"Pattern length exceeds max of ".concat(t,".")},Xk=function(t){return"Missing ".concat(t," property in key")},Zk=function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")},Q7=Object.prototype.hasOwnProperty,eF=function(){function e(t){var r=this;Rt(this,e),this._keys=[],this._keyMap={};var a=0;t.forEach(function(n){var i=U7(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 At(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 U7(e){var t=null,r=null,a=null,n=1;if(da(e)||ua(e))a=e,t=G7(e),r=o2(e);else{if(!Q7.call(e,"name"))throw new Error(Xk("name"));var i=e.name;if(a=i,Q7.call(e,"weight")&&(n=e.weight,n<=0))throw new Error(Zk(i));t=G7(i),r=o2(i)}return{path:t,id:r,weight:n,src:a}}function G7(e){return ua(e)?e:e.split(".")}function o2(e){return ua(e)?e.join("."):e}function tF(e,t){var r=[],a=!1,n=function i(o,p,s){if(!!Bt(o))if(!p[s])r.push(o);else{var u=p[s],d=o[u];if(!Bt(d))return;if(s===p.length-1&&(da(d)||V7(d)||Yk(d)))r.push(zk(d));else if(ua(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,da(t)?t.split("."):t,0),a?r:r[0]}var rF={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},aF={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}},nF={location:0,threshold:.6,distance:100},iF={useExtendedSearch:!1,getFn:tF,ignoreLocation:!1,ignoreFieldNorm:!1},X=q7({},aF,{},rF,{},nF,{},iF),oF=/[^ ]+/g;function pF(){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(oF).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?X.getFn:r;Rt(this,e),this.norm=pF(3),this.getFn=a,this.isCreated=!1,this.setIndexRecords()}return At(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,da(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();da(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(!(!Bt(r)||i2(r))){var n={v:r,i:a,n:t
`),t}function f2(e){let t=z2.createHash("sha256");return t.update(e),t.digest("hex")}function J2(e,t){let r=z2.createHash("sha256");Object.entries(e).sort().forEach((n,i)=>{r.update(`${n}${i}`)});let a=r.digest("hex");return t?`${t}_${a}`:a}function Ny(e){let t={};for(let[r,a]of Object.entries(e))if(a)if(Array.isArray(a))if(a.length>0)t[r]=a.join(",");else continue;else t[r]=a;return t}function Iy(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 F1(e,t){let r={},a={},n=e;if(e){let i=e.split(" "),o=[];for(let p of i){if(p.indexOf("=")>0){let s=p.split("="),u=s[0],d=u.endsWith("!"),l=(d?u.slice(0,u.length-1):u).toLocaleLowerCase();if(t.includes(l)){let c=s.slice(1).join("=");if(c){let f=d?a:r;l in f?f[l].push(c):f[l]=[c]}continue}}o.push(p)}n=o.join(" ")}return{query:n,named:r,negativeNamed:a}}function ir(){return new Date}var $i=require("react");function e1(){let e=Py.environment.supportPath;return W2.default.join(e,"cache")}async function X2(e,t=!1){let r=e1();return t&&(console.log(`create cache directoy '${r}'`),await or.mkdir(r,{recursive:!0})),W2.default.join(r,`${e}.json`)}async function Sq(e){let t;try{t=await X2(e),await or.access(t,H2.constants.R_OK);let r=await or.readFile(t,"utf-8"),a=JSON.parse(r);if(!a)return;let i=A1()-a.timestamp;return{data:a.payload,ageInSeconds:i}}catch{console.log(`could not access cache file or not exists '${t}'`)}}async function Dq(e,t){console.log("GET cache");let r;try{r=await X2(e),await or.access(r,H2.constants.R_OK);let a=await or.readFile(r,"utf-8"),n=JSON.parse(a);return!n||A1()-n.timestamp>t?void 0:n.payload}catch{console.log(`could not access cache file or not exists '${r}'`)}}async function Z2(e,t){let r;try{r=await X2(e,!0),console.log(`set cache object '${e}'`);let a={timestamp:A1(),payload:t},n=JSON.stringify(a);await or.writeFile(r,n,"utf-8")}catch(a){console.log(a),console.log(`could not write cache file '${r}'`)}}async function em(e,t){let r=await Dq(e,5*60);return r?(console.log("use cached data"),r):(r=await t(),await Z2(e,r),r)}async function Ly(){let e=e1();await Sy(e)&&await or.rm(e,{recursive:!0})}function la(e,t,r){let a=r.secondsToRefetch===void 0?5*60:r.secondsToRefetch,n=r.secondsToInvalid===void 0?24*60*60:r.secondsToInvalid,[i,o]=(0,$i.useState)(),[p,s]=(0,$i.useState)(),[u,d]=(0,$i.useState)(!1),l=async c=>r.onFilter?await r.onFilter(c):c;return(0,$i.useEffect)(()=>{let c=!1,f=!1;async function m(){if(!f){d(!0),s(void 0);try{console.log("check data from cache");let v=await Sq(e);if(v&&v.ageInSeconds<n)console.log("cache data found"),f||(console.log("set cache data"),o(await l(v.data)),console.log(`${v.ageInSeconds} vs ${a}`),v.ageInSeconds>a&&(console.log("cache is older, start refetch"),c=!0,t().then(async h=>{console.log("set refetched data"),Z2(e,h),h=await l(h),c=!1,f||(o(h),d(!1))}).catch(h=>{f||s(h)}).finally(()=>{f||(d(!1),c=!1)})));else{console.log("no cache data, start fetch");let h=await t();Z2(e,h),f||o(await l(h))}}catch(v){f||s(v.message)}finally{!f&&!c&&d(!1)}}}return m(),()=>{f=!0}},r.deps),{data:i,error:p,isLoading:u}}var Ay=Me(require("util")),ky=Me(require("fs")),Fy=require("stream"),Nq=Ay.default.promisify(Fy.pipeline);function j1(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 Ji(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:j1(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 jy(e){return{title:e.title,web_url:e.web_url,id:e.id,iid:e.iid,state:e.state,updated_at:new Date(e.up
${t.color}`;return t.description&&(r+=`
## Description
${t.description}`),_jsx(Tt.Detail,{markdown:r})}function jq(e){let t=e.label,r=Object.keys(t).includes("subscribed")&&t.subscribed?"subscribed":void 0;return _jsx(Tt.List.Item,{key:t.id.toString(),title:t.name,icon:{source:Tt.Icon.Circle,tintColor:t.color},accessoryTitle:r,actions:_jsx(Tt.ActionPanel,null,_jsx(Tt.PushAction,{title:"Show Details",target:_jsx(Fq,{label:t}),icon:{source:"sidebar-right-16",tintColor:Tt.Color.PrimaryText}}),_jsx(Tt.CopyToClipboardAction,{title:"Copy Color",content:t.color}))})}function Hi(e){return _jsx(Tt.List,{searchBarPlaceholder:"Search labels by name",onSearchTextChange:e.onSearchTextChange,isLoading:e.isLoading,throttle:e.throttle},_jsx(Tt.List.Section,{title:e.title},e.labels.map(t=>_jsx(jq,{key:t.id.toString(),label:t}))))}var K=require("@raycast/api");var Br=require("react");async function Mq(e){try{if(e.title==="")throw Error("Please enter a title");if(e.source_branch==="")throw Error("Please select a source branch");let t=Ny(e);console.log(t),await te.createMR(e.project_id,t),await(0,K.showToast)(K.ToastStyle.Success,"Merge Request created","Merge Request creation successful"),(0,K.popToRoot)()}catch(t){await(0,K.showToast)(K.ToastStyle.Failure,"Error",t.message)}}async function qq(e){let t=await te.fetch(`projects/${e}/repository/branches`,{},!0)||[],r=await te.getProject(e);return{branches:t,project:r}}function Gy({issue:e,projectID:t,title:r}){let a=`${e.iid}-${Iy(e.title)}`,[n,i]=(0,Br.useState)(),[o,p]=(0,Br.useState)();(0,Br.useEffect)(()=>{t&&qq(t).then(u=>(p(u?.project),i(u?.branches)))},[t]);async function s(u){let{source_branch:d,target_branch:l}=u;try{await te.post(`projects/${t}/repository/branches?branch=${d}&ref=${l}`),await te.createMR(t,{id:t,description:`Closes #${e.iid}`,source_branch:d,target_branch:l,title:r,assignee_id:o?.owner?.id}),(0,K.showToast)(K.ToastStyle.Success,"Merge Request created","Merge Request creation successful"),(0,K.popToRoot)()}catch(c){(0,K.showToast)(K.ToastStyle.Failure,"Cannot create Merge Request",c instanceof Error&&c.message||"")}}return _jsx(K.Form,{isLoading:o===void 0&&n===void 0,actions:_jsx(K.ActionPanel,null,_jsx(K.SubmitFormAction,{title:"Create Merge Request",onSubmit:s}))},_jsx(K.Form.TextField,{id:"source_branch",title:"Source branch",placeholder:"Enter source branch",defaultValue:a}),_jsx(Ky,{project:o,info:{branches:n||[]}}))}function By(e){let[t,r]=(0,Br.useState)(e.project?e.project.id.toString():void 0),{data:a,error:n,isLoading:i}=la("mrFormProjects",async()=>await te.getUserProjects({},!0)||[],{deps:[]}),{projectinfo:o,errorProjectInfo:p,isLoadingProjectInfo:s}=Qq(t),u=o?.members||[],d=o?.labels||[],l=i||s,c=n||p;c&&(0,K.showToast)(K.ToastStyle.Failure,"Cannot create Merge Request",c);let f;return t&&(f=a?.find(m=>m.id.toString()===t)),_jsx(K.Form,{isLoading:l,actions:_jsx(K.ActionPanel,null,_jsx(K.SubmitFormAction,{title:"Create Merge Request",onSubmit:Mq}))},_jsx(Vq,{projects:a||[],setSelectedProject:r,value:t}),_jsx(Cq,{project:f,info:o,value:e.branch}),_jsx(Ky,{project:f,info:o}),_jsx(K.Form.TextField,{id:"title",title:"Title",placeholder:"Enter title"}),_jsx(K.Form.TextArea,{id:"description",title:"Description",placeholder:"Enter description"}),_jsx(K.FormTagPicker,{id:"assignee_ids",title:"Assignees",placeholder:"Type or choose an assignee"},u.map(m=>_jsx(K.FormTagPickerItem,{key:m.id.toString(),value:m.id.toString(),title:m.name||m.username,icon:{source:m.avatar_url,mask:K.ImageMask.Circle}}))),_jsx(K.FormTagPicker,{id:"reviewer_ids",title:"Reviewers",placeholder:"Type or choose a reviewer"},u.map(m=>_jsx(K.FormTagPickerItem,{key:m.id.toString(),value:m.id.toString(),title:m.name||m.username,icon:{source:m.avatar_url}}))),_jsx(K.FormTagPicker,{id:"labels",title:"Labels",placeholder:"Type or choose an label"},d.map(m=>_jsx(K.FormTagPickerItem,{key:m.name,value:m.name,title:m.name,icon:{source:K.Icon.Circle,tintColor:m.color}}))),_jsx(K.Form.Dropdown,{id:"milestone_id",title:"Milestone"},o?.milestones?.map(m=>_jsx(K.Form.Dropdown.Item,{key:m.id,value:m.id.toString(),title:m.title}))))}function Vq(e){let t=e.proj
query GetIssueDetail($id: ID!) {
issue(id: $id) {
description
}
}
`;function $q(e){let{description:t,error:r,isLoading:a}=Jq(e.issue.id);r&&(0,Ne.showToast)(Ne.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
`+k1(n),_jsx(Ne.Detail,{markdown:i,isLoading:a,navigationTitle:`${e.issue.reference_full}`,actions:_jsx(Ne.ActionPanel,null,_jsx(Ne.OpenInBrowserAction,{url:e.issue.web_url}),_jsx(tm,{issue:e.issue}))})}function Jq(e){let[t,r]=(0,sr.useState)(),[a,n]=(0,sr.useState)(),[i,o]=(0,sr.useState)(!1);return(0,sr.useEffect)(()=>{let p=!1;async function s(){if(!(e<=0||p)){o(!0),n(void 0);try{let d=(await ht.client.query({query:Yq,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}}function Wq(e){let t=e.issue,r=t.state==="opened"?Ne.Color.Green:Ne.Color.Red,a=t.milestone?`${t.milestone.title} | `:"";return _jsx(Ne.List.Item,{id:t.id.toString(),title:t.title,subtitle:"#"+t.iid,icon:{source:"exclamation.png",tintColor:r},accessoryIcon:{source:t.author?.avatar_url||"",mask:Ne.ImageMask.Circle},accessoryTitle:a+R1(t.updated_at),actions:_jsx(Ne.ActionPanel,null,_jsx(Ne.ActionPanel.Section,null,_jsx(Ne.PushAction,{title:"Show Details",target:_jsx($q,{issue:t}),icon:{source:"sidebar-right-16",tintColor:Ne.Color.PrimaryText}}),_jsx(Ne.OpenInBrowserAction,{url:t.web_url,shortcut:{modifiers:["cmd"],key:"enter"}})),_jsx(Ne.ActionPanel.Section,null,_jsx(tm,{issue:t,onDataChange:e.refreshData})))})}function Hq(e,t){if(t)return`Group Issues ${t.full_path}`;if(e)return`Issue ${e.fullPath}`}function x1({scope:e="created_by_me",state:t="all",project:r=void 0,group:a=void 0}){let[n,i]=(0,sr.useState)(),{issues:o,error:p,isLoading:s,refresh:u}=Zq(n,e,t,r,a);if(p&&(0,Ne.showToast)(Ne.ToastStyle.Failure,"Cannot search issue",p),!o)return _jsx(Ne.List,{isLoading:!0,searchBarPlaceholder:"Loading"});let d=e=="assigned_to_me"?"Your Issues":"Created Recently";return _jsx(Ne.List,{searchBarPlaceholder:"Search issues by name...",onSearchTextChange:i,isLoading:s,throttle:!0,navigationTitle:Hq(r,a)},_jsx(Ne.List.Section,{title:d,subtitle:o?.length.toString()||""},o?.map(l=>_jsx(Wq,{key:l.id,issue:l,refreshData:u}))))}function Xq(e){return F1(e,["label","author","milestone","assignee"])}function $y(e,t,r,a){let n=a?t.negativeNamed:t.named;for(let i of Object.keys(n)){let o=n[i],p=s=>a?`not[${s}]`:s;if(o)switch(i){case"label":e[p("labels")]=o.join(",");break;case"author":r==="all"&&(e[p("author_username")]=o.join(","));break;case"milestone":e[p("milestone")]=o.join(",");break;case"assignee":r==="all"&&(e[p("assignee_username")]=o.join(","));break}}}function Zq(e,t,r,a,n){let[i,o]=(0,sr.useState)(),[p,s]=(0,sr.useState)(),[u,d]=(0,sr.useState)(!1),[l,c]=(0,sr.useState)(ir()),f=()=>{c(ir())};return(0,sr.useEffect)(()=>{let m=!1;async function v(){if(!(e===null||m)){d(!0),s(void 0);try{let h=Xq(e);e=h.query;let y={state:r,scope:t,search:e||"",in:"title"};if($y(y,h,t,!1),$y(y,h,t,!0),n){let _=await te.getGroupIssues(y,n.id);m||o(_)}else{let _=await te.getIssues(y,a);m||o(_)}}catch(h){m||s(h.message)}finally{m||d(!1)}}}return v(),()=>{m=!0}},[e,l]),{issues:i,error:p,isLoading:u,refresh:f}}var rm=Me(En()),wr=require("@raycast/api"),Xi=require("react");var eV=rm.gql`
query GetProjectMilestones($fullPath: ID!) {
project(fullPath: $fullPath) {
milestones {
nodes {
id
title
dueDate
state
expired
webPath
stats {
closedIssuesCount
totalIssuesCount
}
}
}
}
}
`,tV=rm.gql`
query GetGroupMilestones($fullPath: ID!) {
group(fullPath: $fullPath) {
milestones(includeDescendants: true) {
nodes {
id
title
dueDate
state
expired
webPath
stats {
closedIssuesCount
totalIssuesCount
}
}
}
}
}
`;function rV(e){let t=e.milestone,r=`${t.closedIssuesCount}/${t.totalIssuesCount}`,a="";return t.dueDate&&(a=t.dueDate+(t.expired?" [expired]":"")),_jsx(wr.List.Item,{id:t.id,title:t.title,subtitle:a,accessoryTitle:r,actions:_jsx(wr.ActionPanel,null,_jsx(wr.OpenInBrowserAction,{url:t.webUrl}))})}function Q1(e){let t=!!e.group,r=e.project?e.project.fullPath:"";r.length<=0&&(r=e.group?e.group.full_path:"");let{milestones:a,error:n,isLoading:i}=aV("",r,t);return n&&(0,wr.showToast)(wr.ToastStyle.Failure,"Cannot search Milestones",n),_jsx(wr.List,{isLoading:i,navigationTitle:"Milestones"},a?.map(o=>_jsx(rV,{key:o.id,milestone:o})))}function aV(e,t,r){let[a,n]=(0,Xi.useState)([]),[i,o]=(0,Xi.useState)(),[p,s]=(0,Xi.useState)(!1);return(0,Xi.useEffect)(()=>{let u=!1;async function d(){if(!(e===null||u)){s(!0),o(void 0);try{let l=r?tV:eV,c=await ht.client.query({query:l,variables:{fullPath:t}}),f;r?f=c.data.group:f=c.data.project;let m=f.milestones.nodes.map(v=>({id:An(v.id),title:v.title,dueDate:v.dueDate,state:v.state,expired:v.expired,webUrl:`${ht.url}/${v.webPath}`,closedIssuesCount:v.stats.closedIssuesCount,totalIssuesCount:v.stats.totalIssuesCount}));u||n(m)}catch(l){u||o(l.message)}finally{u||s(!1)}}}return d(),()=>{u=!0}},[e,t]),{milestones:a,error:i,isLoading:p}}var ce=require("@raycast/api");var ur=require("react");var Wy=Me(En());var H=require("@raycast/api"),Jy=Me(require("react"));async function am(e,t){return await te.post(`projects/${e.project_id}/merge_requests/${e.iid}/notes`,{body:t})}function nV(e){let t=e.mr;async function r(){try{await am(t,"/close"),(0,H.showToast)(H.ToastStyle.Success,"Closed"),e.finished&&e.finished()}catch(a){(0,H.showToast)(H.ToastStyle.Failure,"Failed to close merge request",a instanceof Error?a.message:a.toString())}}return _jsx(H.ActionPanel.Item,{title:"Close MR",icon:{source:H.Icon.XmarkCircle,tintColor:H.Color.Red},onAction:r})}function iV(e){let t=e.mr;async function r(){try{await am(t,"/reopen"),(0,H.showToast)(H.ToastStyle.Success,"Reopened"),e.finished&&e.finished()}catch(a){(0,H.showToast)(H.ToastStyle.Failure,"Failed to reopen merge request",a instanceof Error?a.message:a.toString())}}return _jsx(H.ActionPanel.Item,{title:"Reopen MR",icon:{source:H.Icon.ExclamationMark},onAction:r})}function oV(e){let t=e.mr;async function r(){try{await am(t,"/rebase"),(0,H.showToast)(H.ToastStyle.Success,"Rebased")}catch(a){(0,H.showToast)(H.ToastStyle.Failure,"Failed to rebase merge request",a instanceof Error?a.message:a.toString())}}return _jsx(H.ActionPanel.Item,{title:"Rebase",shortcut:e.shortcut,icon:{source:H.Icon.ExclamationMark},onAction:r})}function pV(e){let t=e.mr;async function r(){try{await te.put(`projects/${t.project_id}/merge_requests/${t.iid}/merge`),(0,H.showToast)(H.ToastStyle.Success,"Merged"),e.finished&&e.finished()}catch(a){(0,H.showToast)(H.ToastStyle.Failure,"Failed to merge",a instanceof Error?a.message:a.toString())}}return t.state==="opened"?_jsx(H.ActionPanel.Item,{title:"Merge",shortcut:e.shortcut,icon:{source:"merged.png",tintColor:H.Color.PrimaryText},onAction:r}):null}function sV(e){let t=e.mr;async function r(){try{await te.post(`projects/${t.project_id}/merge_requests/${t.iid}/todo`),(0,H.showToast)(H.ToastStyle.Success,"To do created")}catch(a){(0,H.showToast)(H.ToastStyle.Failure,"Failed to add to do",a instanceof Error?a.message:a.toString())}}return t.state==="opened"?_jsx(H.ActionPanel.Item,{title:"Add a to do",shortcut:e.shortcut,icon:{source:"todo.png",tintColor:H.Color.PrimaryText},onAction:r}):null}function uV(e){return e.labels.length<=0?null:_jsx(H.PushAction,{title:"Show Labels",target:_jsx(Hi,{labels:e.labels}),shortcut:{modifiers:["cmd"],key:"l"},icon:{source:"dash.png",tintColor:H.Color.PrimaryText}})}function nm(e){let t=e.mr;return _jsx(Jy.default.Fragment,null,_jsx(sV,{shortcut:{modifiers:["cmd"],key:"t"},mr:t}),t.state==="opened"&&_jsx(nV,{mr:t,finished:e.onDataChange}),t.state==="closed"&&_jsx(iV,{mr:t,finished:e.onDataChange}),_jsx(pV,{shortcut:{modifiers:["cmd","shift"],key:"enter"},mr:t,finished:e.onDataChange}),_jsx(oV,{shortcut
query GetMRDetail($id: ID!) {
mergeRequest(id: $id) {
description
}
}
`;function lV(e){let{description:t,error:r,isLoading:a}=cV(e.mr.id);r&&(0,ce.showToast)(ce.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
`+k1(n),_jsx(ce.Detail,{markdown:i,isLoading:a,navigationTitle:`${e.mr.reference_full}`,actions:_jsx(ce.ActionPanel,null,_jsx(ce.OpenInBrowserAction,{url:e.mr.web_url}),_jsx(nm,{mr:e.mr}))})}function cV(e){let[t,r]=(0,ur.useState)(),[a,n]=(0,ur.useState)(),[i,o]=(0,ur.useState)(!1);return(0,ur.useEffect)(()=>{let p=!1;async function s(){if(!(e<=0||p)){o(!0),n(void 0);try{let d=(await ht.client.query({query:dV,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 fV(e,t){if(t)return`Group MRs ${t.full_path}`;if(e)return`MRs ${e.fullPath}`}function U1({scope:e="created_by_me",state:t="all",project:r=void 0,group:a=void 0}){let[n,i]=(0,ur.useState)(),{mrs:o,error:p,isLoading:s,refresh:u}=hV(n,e,t,r,a);if(p&&(0,ce.showToast)(ce.ToastStyle.Failure,"Cannot search Merge Requests",p),!o)return _jsx(ce.List,{isLoading:!0,searchBarPlaceholder:"Loading"});let d=e=="assigned_to_me"?"Your Merge Requests":"Created Recently";return _jsx(ce.List,{searchBarPlaceholder:"Filter Merge Requests by name...",onSearchTextChange:i,isLoading:s,throttle:!0,navigationTitle:fV(r,a)},_jsx(ce.List.Section,{title:d,subtitle:o?.length.toString()||"0"},o?.map(l=>_jsx(mV,{key:l.id,mr:l,refreshData:u}))))}function mV(e){let t=e.mr,a=(()=>t.state==="merged"?{source:"merged.png",tintColor:ce.Color.Purple,mask:ce.ImageMask.Circle}:t.state==="closed"?{source:"mropen.png",tintColor:ce.Color.Red,mask:ce.ImageMask.Circle}:{source:"mropen.png",tintColor:ce.Color.Green,mask:ce.ImageMask.Circle})();return _jsx(ce.List.Item,{id:t.id.toString(),title:t.title,subtitle:"#"+t.iid,icon:a,accessoryIcon:{source:t.author?.avatar_url||"",mask:ce.ImageMask.Circle},accessoryTitle:R1(t.updated_at),actions:_jsx(ce.ActionPanel,null,_jsx(ce.ActionPanel.Section,null,_jsx(ce.PushAction,{title:"Show Details",target:_jsx(lV,{mr:t}),icon:{source:"sidebar-right-16",tintColor:ce.Color.PrimaryText}}),_jsx(ce.OpenInBrowserAction,{url:t.web_url})),_jsx(ce.ActionPanel.Section,null,_jsx(nm,{mr:t,onDataChange:e.refreshData})))})}function vV(e){return F1(e,["label","author","milestone","assignee","draft","target-branch","reviewer"])}function Hy(e,t,r,a){let n=a?t.negativeNamed:t.named;for(let i of Object.keys(n)){let o=n[i],p=s=>a?`not[${s}]`:s;if(o)switch(i){case"label":e[p("labels")]=o.join(",");break;case"author":r==="all"&&(e[p("author_username")]=o.join(","));break;case"milestone":e[p("milestone")]=o.join(",");break;case"assignee":r==="all"&&(e[p("assignee_username")]=o.join(","));break;case"draft":e[p("wip")]=o.join(",").toLocaleLowerCase();break;case"target-branch":e[p("target_branch")]=o.join(",");break;case"reviewer":e[p("reviewer_username")]=o.join(",");break}}}function hV(e,t,r,a,n){let[i,o]=(0,ur.useState)(),[p,s]=(0,ur.useState)(),[u,d]=(0,ur.useState)(!1),[l,c]=(0,ur.useState)(ir()),f=()=>{c(ir())};return(0,ur.useEffect)(()=>{let m=!1;async function v(){if(!(e===null||m)){d(!0),s(void 0);try{let h=vV(e);e=h.query;let y={state:r,scope:t,search:e||"",in:"title"};if(Hy(y,h,t,!1),Hy(y,h,t,!0),n){let _=await te.getGroupMergeRequests(y,n);m||o(_)}else{let _=await te.getMergeRequests(y,a);m||o(_)}}catch(h){m||s(h.message)}finally{m||d(!1)}}}return v(),()=>{m=!0}},[e,a,l]),{mrs:i,error:p,isLoading:u,refresh:f}}var fe=require("@raycast/api"),GV=require("react");var be=require("@raycast/api"),Fn=require("react");var ng=Me(En());var ue=require("@raycast/api"),kn=require("react");var eg=Me(En());var Zi=require("@raycast/api");function Xy(e){let t=()=>{e.onRefreshJobs&&e.onRefreshJobs()};return _jsx(Zi.ActionPanel.Item,{title:"Refresh",icon:{source:Zi.Icon.ArrowClockwise,tintColor:Zi.Color.PrimaryText},shortcut:{modifiers:["cmd"],key:"r"},onAction:t})}var tg=Me(im()),gV=eg.gql`
query GetProjectPipeplines($fullPath: ID!, $pipelineIID: ID!) {
project(fullPath: $fullPath) {
pipeline(iid: $pipelineIID) {
stages {
nodes {
name
jobs {
nodes {
id
name
status
}
}
}
}
}
}
}
`;function bV(e){switch(e.toLowerCase()){case"success":return{source:ue.Icon.Checkmark,tintColor:ue.Color.Green};case"created":return{source:ue.Icon.ExclamationMark,tintColor:ue.Color.Yellow};case"pending":return{source:ue.Icon.ExclamationMark,tintColor:ue.Color.Yellow};case"running":return{source:ue.Icon.ExclamationMark,tintColor:ue.Color.Blue};case"failed":return{source:ue.Icon.ExclamationMark,tintColor:ue.Color.Red};case"canceled":return{source:ue.Icon.ExclamationMark,tintColor:ue.Color.Red};case"skipped":return{source:ue.Icon.ExclamationMark,tintColor:ue.Color.Brown};case"scheduled":return{source:ue.Icon.ExclamationMark,tintColor:ue.Color.Blue};default:return{source:ue.Icon.ExclamationMark,tintColor:ue.Color.Magenta}}}function _V(e){return e.toLowerCase()==="success"?"passed":e}function TV(e){let t=e.job,r=bV(t.status),a="#"+An(t.id),n=_V(t.status.toLowerCase());return _jsx(ue.List.Item,{id:t.id,icon:r,title:t.name,subtitle:a,accessoryTitle:n,actions:_jsx(ue.ActionPanel,null,_jsx(ue.ActionPanel.Section,null,_jsx(ue.OpenInBrowserAction,{url:ht.urlJoin(`${e.projectFullPath}/-/jobs/${An(t.id)}`)})),_jsx(ue.ActionPanel.Section,null,_jsx(Xy,{onRefreshJobs:e.onRefreshJobs})))})}function rg(e){let{stages:t,error:r,isLoading:a,refresh:n}=wV("",e.projectFullPath,e.pipelineIID);return(0,tg.default)(()=>{n()},V1()),r&&(0,ue.showToast)(ue.ToastStyle.Failure,"Cannot search Pipelines",r),_jsx(ue.List,{isLoading:a,navigationTitle:"Jobs"},Object.keys(t).map(i=>_jsx(ue.ListSection,{key:i,title:i},t[i].map(o=>_jsx(TV,{job:o,projectFullPath:e.projectFullPath,onRefreshJobs:n})))))}function wV(e,t,r){let[a,n]=(0,kn.useState)({}),[i,o]=(0,kn.useState)(),[p,s]=(0,kn.useState)(!1),[u,d]=(0,kn.useState)(ir()),l=()=>{d(ir())};return(0,kn.useEffect)(()=>{let c=!1;async function f(){if(!(e===null||c)){s(!0),o(void 0);try{let m=await ht.client.query({query:gV,variables:{fullPath:t,pipelineIID:r},fetchPolicy:"network-only"}),v={};for(let h of m.data.project.pipeline.stages.nodes){v[h.name]||(v[h.name]=[]);for(let y of h.jobs.nodes)v[h.name].push({id:y.id,name:y.name,status:y.status})}c||n(v)}catch(m){c||o(m.message)}finally{c||s(!1)}}}return f(),()=>{c=!0}},[e,t,r,u]),{stages:a,error:i,isLoading:p,refresh:l}}var eo=require("@raycast/api");function ag(e){let t=()=>{e.onRefreshPipelines&&e.onRefreshPipelines()};return _jsx(eo.ActionPanel.Item,{title:"Refresh",icon:{source:eo.Icon.ArrowClockwise,tintColor:eo.Color.PrimaryText},shortcut:{modifiers:["cmd"],key:"r"},onAction:t})}var ig=Me(im()),OV=ng.gql`
query GetProjectPipeplines($fullPath: ID!) {
project(fullPath: $fullPath) {
pipelines {
nodes {
id
iid
status
active
path
ref
}
}
}
}
`;function EV(e){switch(e.toLowerCase()){case"success":return{source:be.Icon.Checkmark,tintColor:be.Color.Green};case"created":return{source:be.Icon.ExclamationMark,tintColor:be.Color.Yellow};case"pending":return{source:be.Icon.ExclamationMark,tintColor:be.Color.Yellow};case"running":return{source:be.Icon.ExclamationMark,tintColor:be.Color.Blue};case"failed":return{source:be.Icon.ExclamationMark,tintColor:be.Color.Red};default:return{source:be.Icon.ExclamationMark,tintColor:be.Color.Magenta}}}function SV(e){return e=="success"?"passed":e}function DV(e){let t=e.pipeline,r=EV(t.status);return _jsx(be.List.Item,{id:t.id,title:t.id.toString(),icon:r,subtitle:t.ref||"",accessoryTitle:SV(t.status.toLowerCase()),actions:_jsx(be.ActionPanel,null,_jsx(be.ActionPanel.Section,null,_jsx(be.PushAction,{title:"Show Jobs",target:_jsx(rg,{projectFullPath:e.projectFullPath,pipelineIID:t.iid}),icon:{source:be.Icon.Terminal,tintColor:be.Color.PrimaryText}}),_jsx(be.OpenInBrowserAction,{url:t.webUrl})),_jsx(be.ActionPanel.Section,null,_jsx(ag,{onRefreshPipelines:e.onRefreshPipelines})))})}function og(e){let{pipelines:t,error:r,isLoading:a,refresh:n}=NV("",e.projectFullPath);return(0,ig.default)(()=>{n()},V1()),r&&(0,be.showToast)(be.ToastStyle.Failure,"Cannot search Pipelines",r),_jsx(be.List,{isLoading:a,navigationTitle:"Pipelines"},t?.map(i=>_jsx(DV,{key:i.id,pipeline:i,projectFullPath:e.projectFullPath,onRefreshPipelines:n})))}function NV(e,t){let[r,a]=(0,Fn.useState)([]),[n,i]=(0,Fn.useState)(),[o,p]=(0,Fn.useState)(!1),[s,u]=(0,Fn.useState)(ir()),d=()=>{u(ir())};return(0,Fn.useEffect)(()=>{let l=!1;async function c(){if(!(e===null||l)){p(!0),i(void 0);try{let m=(await ht.client.query({query:OV,variables:{fullPath:t},fetchPolicy:"network-only"})).data.project.pipelines.nodes.map(v=>({id:An(v.id),iid:`${v.iid}`,status:v.status,active:v.active,webUrl:`${ht.url}${v.path}`,ref:v.ref}));l||a(m)}catch(f){l||i(f.message)}finally{l||p(!1)}}}return c(),()=>{l=!0}},[e,t,s]),{pipelines:r,error:n,isLoading:o,refresh:d}}var kt=require("@raycast/api"),jn=require("react");var K1=require("@raycast/api");function pg(e){return e.project.default_branch!==e.branch.name?_jsx(K1.PushAction,{icon:K1.Icon.Pencil,title:"Create Merge Request",target:_jsx(By,{project:e.project,branch:e.branch.name})}):null}function IV(e){return e?{source:"merged.png",tintColor:kt.Color.Purple}:{source:"mropen.png",tintColor:kt.Color.Green}}function PV(e){let t=e.branch,r=IV(t.merged),a=[];return t.default&&a.push("[default]"),t.protected&&a.push("[protected]"),_jsx(kt.List.Item,{id:t.id,title:t.name,subtitle:a.join(" "),icon:r,actions:_jsx(kt.ActionPanel,null,_jsx(pg,{project:e.project,branch:t}),_jsx(kt.OpenInBrowserAction,{url:t.web_url}))})}function sg(e){let[t,r]=(0,jn.useState)(""),{branches:a,error:n,isLoading:i}=LV(t,e.project);return n&&(0,kt.showToast)(kt.ToastStyle.Failure,"Cannot search branches",n),_jsx(kt.List,{isLoading:i,onSearchTextChange:r,throttle:!0,navigationTitle:"Branches"},a?.map((o,p)=>_jsx(PV,{key:p,branch:o,project:e.project})))}function LV(e,t){let[r,a]=(0,jn.useState)([]),[n,i]=(0,jn.useState)(),[o,p]=(0,jn.useState)(!1);return(0,jn.useEffect)(()=>{let s=!1;async function u(){if(!(e===null||s)){p(!0),i(void 0);try{let d=await te.fetch(`projects/${t.id}/repository/branches`,{search:e||""})||[];s||a(d)}catch(d){s||i(d.message)}finally{s||p(!1)}}}return u(),()=>{s=!0}},[e,t]),{branches:r,error:n,isLoading:o}}var Ge=require("@raycast/api"),Sg=Me(wg());function fm(){let e="/Applications/Visual Studio Code.app";if(Dy(e))return e}var ro=require("@raycast/api"),Og=require("react");function Eg(e){let[t,r]=(0,Og.useState)(),{data:a,error:n,isLoading:i}=la(`project_${e.project.id}_labels`,async()=>te.getProjectLabels(e.project.id),{deps:[t,e.project],onFilter:async o=>await Wi(o,{search:t||"",keys:["name"],limit:50})});return n&&(0,ro.showToast)(ro.ToastStyle.Failure,"Cannot search Project labels",n),a?_jsx(Hi,{labels:a,onSearchTextChange:r,isLoading:i,throttle:!0}):_jsx(ro.List,{isLoading:!0,searchBarPlaceholder:"Loading"})}function Dg(e){let t=async r=>{try{if
/*! *****************************************************************************
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.
***************************************************************************** */