1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`26.09.24.0119`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`2c5a44aa-6efe-4cc9-81a1-9bccae1cc275`,e._sentryDebugIdIdentifier=`sentry-dbid-2c5a44aa-6efe-4cc9-81a1-9bccae1cc275`)}catch{}})();import{a as e,n as t,o as n,r,t as i}from"./rolldown-runtime-Bxf_Cl9G.js";import{xr as a}from"./icon-BDkq4lpg.js";function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);p(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function c(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function l(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function u(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}function f(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var p,m,h=t((()=>{p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},p(e,t)},m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)}}));function g(e,t){if(!e)throw new S(t)}function _(e){return function(){if(C.indexOf(e)>=w)return(console[e]||console.log).apply(console,arguments)}}function v(e){var t=C[w];return w=Math.max(0,C.indexOf(e)),t}var y,b,x,S,C,w,T=t((()=>{h(),y=`Invariant Violation`,b=Object.setPrototypeOf,x=b===void 0?function(e,t){return e.__proto__=t,e}:b,S=function(e){o(t,e);function t(n){n===void 0&&(n=y);var r=e.call(this,typeof n==`number`?y+`: `+n+` (see https://github.com/apollographql/invariant-packages)`:n)||this;return r.framesToPop=1,r.name=y,x(r,t.prototype),r}return t}(Error),C=[`debug`,`log`,`warn`,`error`,`silent`],w=C.indexOf(`log`),(function(e){e.debug=_(`debug`),e.log=_(`log`),e.warn=_(`warn`),e.error=_(`error`)})(g||={})})),ee,te=t((()=>{ee=`3.14.1`}));function E(e){try{return e()}catch{}}var ne=t((()=>{})),re,ie=t((()=>{ne(),re=E(function(){return globalThis})||E(function(){return window}
1)||E(function(){return self})||E(function(){return global})||E(function(){return E.constructor(`return this`)()})}));function ae(e){var t=oe.get(e)||1;return oe.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}var oe,se=t((()=>{oe=new Map}));function ce(e,t){t===void 0&&(t=0);var n=ae(`stringifyForDisplay`);return JSON.stringify(e,function(e,t){return t===void 0?n:t},t).split(JSON.stringify(n)).join(`<undefined>`)}var le=t((()=>{se()}));function ue(e){return function(t){var n=[...arguments].slice(1);if(typeof t==`number`){var r=t;t=fe(r),t||(t=pe(r,n),n=[])}e.apply(void 0,[t].concat(n))}}function D(e){var t=[...arguments].slice(1);return new S(fe(e,t)||pe(e,t))}function de(e){if(typeof e==`string`)return e;try{return ce(e,2).slice(0,1e3)}catch{return`<non-serializable>`}}function fe(e,t){if(t===void 0&&(t=[]),e)return re[me]&&re[me](e,t.map(de))}function pe(e,t){if(t===void 0&&(t=[]),e)return`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:ee,message:e,args:t.map(de)}))}`}var O,me,he=t((()=>{T(),te(),ie(),le(),O=Object.assign(function(e,t){var n=[...arguments].slice(2);e||g(e,fe(t,n)||pe(t,n))},{debug:ue(g.debug),log:ue(g.log),warn:ue(g.warn),error:ue(g.error)}),me=Symbol.for(`ApolloErrorMessageHandler_`+ee)})),ge,k=t((()=>{he(),ne(),ie(),ge=globalThis.__DEV__!==!1})),A,_e=t((()=>{(function(e){e.NAME=`Name`,e.DOCUMENT=`Document`,e.OPERATION_DEFINITION=`OperationDefinition`,e.VARIABLE_DEFINITION=`VariableDefinition`,e.SELECTION_SET=`SelectionSet`,e.FIELD=`Field`,e.ARGUMENT=`Argument`,e.FRAGMENT_SPREAD=`FragmentSpread`,e.INLINE_FRAGMENT=`InlineFragment`,e.FRAGMENT_DEFINITION=`FragmentDefinition`,e.VARIABLE=`Variable`,e.INT=`IntValue`,e.FLOAT=`FloatValue`,e.STRING=`StringValue`,e.BOOLEAN=`BooleanValue`,e.NULL=`NullValue`,e.ENUM=`EnumValue`,e.LIST=`ListValue`,e.OBJECT=`ObjectValue`,e.OBJECT_FIELD=`ObjectField`,e.DIRECTIVE=`Directive`,e.NAMED_TYPE=`NamedType`,e.LIST_TYPE=`ListType`,e.NON_NULL_TYPE=`NonNullType`,e.SCHEMA_DEFINITION=`SchemaDefinition`,e.OPERATION_TYPE_DEFINITION=`OperationTypeDefinition`,e.SCALAR_TYPE_DEFINITION=`ScalarTypeDefinition`,e.OBJECT_TYPE_DEFINITION=`ObjectTypeDefinition`,e.FIELD_DEFINITION=`FieldDefinition`,e.INPUT_VALUE_DEFINITION=`InputValueDefinition`,e.INTERFACE_TYPE_DEFINITION=`InterfaceTypeDefinition`,e.UNION_TYPE_DEFINITION=`UnionTypeDefinition`,e.ENUM_TYPE_DEFINITION=`EnumTypeDefinition`,e.ENUM_VALUE_DEFINITION=`EnumValueDefinition`,e.INPUT_OBJECT_TYPE_DEFINITION=`InputObjectTypeDefinition`,e.DIRECTIVE_DEFINITION=`DirectiveDefinition`,e.SCHEMA_EXTENSION=`SchemaExtension`,e.DIRECTIVE_EXTENSION=`DirectiveExtension`,e.SCALAR_TYPE_EXTENSION=`ScalarTypeExtension`,e.OBJECT_TYPE_EXTENSION=`ObjectTypeExtension`,e.INTERFACE_TYPE_EXTENSION=`InterfaceTypeExtension`,e.UNION_TYPE_EXTENSION=`UnionTypeExtension`,e.ENUM_TYPE_EXTENSION=`EnumTypeExtension`,e.INPUT_OBJECT_TYPE_EXTENSION=`InputObjectTypeExtension`,e.TYPE_COORDINATE=`TypeCoordinate`,e.MEMBER_COORDINATE=`MemberCoordinate`,e.ARGUMENT_COORDINATE=`ArgumentCoordinate`,e.DIRECTIVE_COORDINATE=`DirectiveCoordinate`,e.DIRECTIVE_ARGUMENT_COORDINATE=`DirectiveArgumentCoordinate`})(A||={})}));function ve(e){return typeof e==`object`&&!!e}var ye=t((()=>{}));function be(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var xe=t((()=>{}));function Se(e,t){let n=0,r=1;for(let i of e.body.matchAll(Ce)){if(typeof i.index==`number`||be(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var Ce,we=t((()=>{xe(),Ce=/\r\n|[\n\r]/g}));function Te(e){return Ee(e.source,Se(e.source,e.start))}function Ee(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}\n`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+De([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+De([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function De(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(` 2`)}var Oe=t((()=>{we()}));function ke(e){let t=e[0];return t==null||`kind`in t||`length`in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}function Ae(e){return e===void 0||e.length===0?void 0:e}var je,Me=t((()=>
2{ye(),we(),Oe(),je=class e extends Error{constructor(t,...n){let{nodes:r,source:i,positions:a,path:o,originalError:s,extensions:c}=ke(n);super(t),this.name=`GraphQLError`,this.path=o??void 0,this.originalError=s??void 0,this.nodes=Ae(Array.isArray(r)?r:r?[r]:void 0);let l=Ae(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=i??l?.[0]?.source,this.positions=a??l?.map(e=>e.start),this.locations=a&&i?a.map(e=>Se(i,e)):l?.map(e=>Se(e.source,e.start));let u=ve(s?.extensions)?s?.extensions:void 0;this.extensions=c??u??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),s!=null&&s.stack?Object.defineProperty(this,"stack",{value:s.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return`GraphQLError`}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+=` 3 4`+Te(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=` 5 6`+Ee(this.source,t);return e}toJSON(){let e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}}));function j(e,t,n){return new je(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Ne=t((()=>{Me()}));function Pe(e){let t=e?.kind;return typeof t==`string`&&Re.has(t)}var Fe,Ie,Le,Re,ze,Be=t((()=>{Fe=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return`Location`}toJSON(){return{start:this.start,end:this.end}}},Ie=class{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return`Token`}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Le={Name:[],Document:[`definitions`],OperationDefinition:[`description`,`name`,`variableDefinitions`,`directives`,`selectionSet`],VariableDefinition:[`description`,`variable`,`type`,`defaultValue`,`directives`],Variable:[`name`],SelectionSet:[`selections`],Field:[`alias`,`name`,`arguments`,`directives`,`selectionSet`],Argument:[`name`,`value`],FragmentSpread:[`name`,`directives`],InlineFragment:[`typeCondition`,`directives`,`selectionSet`],FragmentDefinition:[`description`,`name`,`variableDefinitions`,`typeCondition`,`directives`,`selectionSet`],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[`values`],ObjectValue:[`fields`],ObjectField:[`name`,`value`],Directive:[`name`,`arguments`],NamedType:[`name`],ListType:[`type`],NonNullType:[`type`],SchemaDefinition:[`description`,`directives`,`operationTypes`],OperationTypeDefinition:[`type`],ScalarTypeDefinition:[`description`,`name`,`directives`],ObjectTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],FieldDefinition:[`description`,`name`,`arguments`,`type`,`directives`],InputValueDefinition:[`description`,`name`,`type`,`defaultValue`,`directives`],InterfaceTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],UnionTypeDefinition:[`description`,`name`,`directives`,`types`],EnumTypeDefinition:[`description`,`name`,`directives`,`values`],EnumValueDefinition:[`description`,`name`,`directives`],InputObjectTypeDefinition:[`description`,`name`,`directives`,`fields`],DirectiveDefinition:[`description`,`name`,`arguments`,`directives`,`locations`],SchemaExtension:[`directives`,`operationTypes`],DirectiveExtension:[`name`,`directives`],ScalarTypeExtension:[`name`,`directives`],ObjectTypeExtension:[`name`,`interfaces`,`directives`,`fields`],InterfaceTypeExtension:[`name`,`interfaces`,`directives`,`fields`],UnionTypeExtension:[`name`,`directives`,`types`],EnumTypeExtension:[`name`,`directives`,`values`],InputObjectTypeExtension:[`name`,`directives`,`fields`],TypeCoordinate:[`name`],MemberCoordinate:[`name`,`memberName`],ArgumentCoordinate:[`name`,`fieldName`,`argumentName`],DirectiveCoordinate:[`name`],DirectiveArgumentCoordinate:[`name`,`argumentName`]},Re=new Set(Object.keys(Le)),(function(e){e.QUERY=`query`,e.MUTATION=`mutation`,e.SUBSCRIPTION=`subscription`})(ze||={})})),Ve,He=t((()=>{(function(e){e.QUERY=`QUERY`,e.MUTATION=`MUTATION`,e.SUBSCRIPTION=`SUBSCRIPTION`,e.FIELD=`FIELD`,e.FRAGMENT_DEFINITION=`FRAGMENT_DEFINITION`,e.FRAGMENT_SPREAD=`FRAGMENT_SPREAD`,e.INLINE_FRAGMENT=`INLINE_FRAGMENT`,e.VARIABLE_DEFINITION=`VARIABLE_DEFINITION`,e.SCHEMA=`SCHEMA`,e.SCALAR=`SCALAR`,e.OBJECT=`OBJECT`,e.FIELD_DEFINITION=`FIELD_DEFINITION`,e.ARGUMENT_DEFINITION=`ARGUMENT_DEFINITION`,e.INTERFACE=`INTERFACE`,e.UNION=`UNION`,e.ENUM=`
6ENUM`,e.ENUM_VALUE=`ENUM_VALUE`,e.INPUT_OBJECT=`INPUT_OBJECT`,e.INPUT_FIELD_DEFINITION=`INPUT_FIELD_DEFINITION`,e.DIRECTIVE_DEFINITION=`DIRECTIVE_DEFINITION`})(Ve||={})}));function Ue(e){return e===9||e===32}function We(e){return e>=48&&e<=57}function Ge(e){return e>=97&&e<=122||e>=65&&e<=90}function Ke(e){return Ge(e)||e===95}function qe(e){return Ge(e)||We(e)||e===95}var Je=t((()=>{}));function Ye(e){let t=2**53-1,n=null,r=-1;for(let i=0;i<e.length;++i){let a=e[i],o=Xe(a);o!==a.length&&(n??=i,r=i,i!==0&&o<t&&(t=o))}return e.map((e,n)=>n===0?e:e.slice(t)).slice(n??0,r+1)}function Xe(e){let t=0;for(;t<e.length&&Ue(e.charCodeAt(t));)++t;return t}function Ze(e,t){let n=e.replace(/"""/g,`\\"""`),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(e=>e.length===0||Ue(e.charCodeAt(0))),o=n.endsWith(`\\"""`),s=e.endsWith(`"`)&&!o,c=e.endsWith(`\\`),l=s||c,u=!(t!=null&&t.minimize)&&(!i||e.length>70||l||a||o),d=``,f=i&&Ue(e.charCodeAt(0));return(u&&!f||a)&&(d+=` 7`),d+=n,(u||l)&&(d+=` 8`),`"""`+d+`"""`}var Qe=t((()=>{Je()})),M,$e=t((()=>{(function(e){e.SOF=`<SOF>`,e.EOF=`<EOF>`,e.BANG=`!`,e.DOLLAR=`$`,e.AMP=`&`,e.PAREN_L=`(`,e.PAREN_R=`)`,e.DOT=`.`,e.SPREAD=`...`,e.COLON=`:`,e.EQUALS=`=`,e.AT=`@`,e.BRACKET_L=`[`,e.BRACKET_R=`]`,e.BRACE_L=`{`,e.PIPE=`|`,e.BRACE_R=`}`,e.NAME=`Name`,e.INT=`Int`,e.FLOAT=`Float`,e.STRING=`String`,e.BLOCK_STRING=`BlockString`,e.COMMENT=`Comment`})(M||={})}));function et(e){return e===M.BANG||e===M.DOLLAR||e===M.AMP||e===M.PAREN_L||e===M.PAREN_R||e===M.DOT||e===M.SPREAD||e===M.COLON||e===M.EQUALS||e===M.AT||e===M.BRACKET_L||e===M.BRACKET_R||e===M.BRACE_L||e===M.PIPE||e===M.BRACE_R}function tt(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function nt(e,t){return rt(e.charCodeAt(t))&&it(e.charCodeAt(t+1))}function rt(e){return e>=55296&&e<=56319}function it(e){return e>=56320&&e<=57343}function at(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return M.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return e===`"`?`'"'`:`"${e}"`}return`U+`+n.toString(16).toUpperCase().padStart(4,`0`)}function N(e,t,n,r,i){let a=e.line;return new Ie(t,n,r,a,1+n-e.lineStart,i)}function ot(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return st(e,i);case 33:return N(e,M.BANG,i,i+1);case 36:return N(e,M.DOLLAR,i,i+1);case 38:return N(e,M.AMP,i,i+1);case 40:return N(e,M.PAREN_L,i,i+1);case 41:return N(e,M.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return N(e,M.SPREAD,i,i+3);break;case 58:return N(e,M.COLON,i,i+1);case 61:return N(e,M.EQUALS,i,i+1);case 64:return N(e,M.AT,i,i+1);case 91:return N(e,M.BRACKET_L,i,i+1);case 93:return N(e,M.BRACKET_R,i,i+1);case 123:return N(e,M.BRACE_L,i,i+1);case 124:return N(e,M.PIPE,i,i+1);case 125:return N(e,M.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?gt(e,i):ut(e,i)}if(We(t)||t===45)return ct(e,i,t);if(Ke(t))return _t(e,i);throw j(e.source,i,t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:tt(t)||nt(n,i)?`Unexpected character: ${at(e,i)}.`:`Invalid character: ${at(e,i)}.`)}return N(e,M.EOF,r,r)}function st(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(e===10||e===13)break;if(tt(e))++i;else if(nt(n,i))i+=2;else break}return N(e,M.COMMENT,t,i,n.slice(t+1,i))}function ct(e,t,n){let r=e.source.body,i=t,a=n,o=!1;if(a===45&&(a=r.charCodeAt(++i)),a===48){if(a=r.charCodeAt(++i),We(a))throw j(e.source,i,`Invalid number, unexpected digit after 0: ${at(e,i)}.`)}else i=lt(e,i,a),a=r.charCodeAt(i);if(a===46&&(o=!0,a=r.charCodeAt(++i),i=lt(e,i,a),a=r.charCodeAt(i)),(a===69||a===101)&&(o=!0,a=r.charCodeAt(++i),(a===43||a===45)&&(a=r.charCodeAt(++i)),i=lt(e,i,a),a=r.charCodeAt(i)),a===46||Ke(a))throw j(e.source,i,`Invalid number, expected digit but got: ${at(e,i)}.`);return N(e,o?M.FLOAT:M.INT,t,i,r.slice(t,i))}
8function lt(e,t,n){if(!We(n))throw j(e.source,t,`Invalid number, expected digit but got: ${at(e,t)}.`);let r=e.source.body,i=t+1;for(;We(r.charCodeAt(i));)++i;return i}function ut(e,t){let n=e.source.body,r=n.length,i=t+1,a=i,o=``;for(;i<r;){let r=n.charCodeAt(i);if(r===34)return o+=n.slice(a,i),N(e,M.STRING,t,i+1,o);if(r===92){o+=n.slice(a,i);let t=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?dt(e,i):ft(e,i):ht(e,i);o+=t.value,i+=t.size,a=i;continue}if(r===10||r===13)break;if(tt(r))++i;else if(nt(n,i))i+=2;else throw j(e.source,i,`Invalid character within String: ${at(e,i)}.`)}throw j(e.source,i,`Unterminated string.`)}function dt(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(e===125){if(i<5||!tt(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|mt(e),r<0)break}throw j(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function ft(e,t){let n=e.source.body,r=pt(n,t+2);if(tt(r))return{value:String.fromCodePoint(r),size:6};if(rt(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let e=pt(n,t+8);if(it(e))return{value:String.fromCodePoint(r,e),size:12}}throw j(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function pt(e,t){return mt(e.charCodeAt(t))<<12|mt(e.charCodeAt(t+1))<<8|mt(e.charCodeAt(t+2))<<4|mt(e.charCodeAt(t+3))}function mt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ht(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:`"`,size:2};case 92:return{value:`\\`,size:2};case 47:return{value:`/`,size:2};case 98:return{value:`\b`,size:2};case 102:return{value:`\f`,size:2};case 110:return{value:` 9`,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:` `,size:2}}throw j(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function gt(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s=``,c=[];for(;a<r;){let r=n.charCodeAt(a);if(r===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){s+=n.slice(o,a),c.push(s);let r=N(e,M.BLOCK_STRING,t,a+3,Ye(c).join(` 10`));return e.line+=c.length-1,e.lineStart=i,r}if(r===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){s+=n.slice(o,a),o=a+1,a+=4;continue}if(r===10||r===13){s+=n.slice(o,a),c.push(s),r===13&&n.charCodeAt(a+1)===10?a+=2:++a,s=``,o=a,i=a;continue}if(tt(r))++a;else if(nt(n,a))a+=2;else throw j(e.source,a,`Invalid character within String: ${at(e,a)}.`)}throw j(e.source,a,`Unterminated string.`)}function _t(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r&&qe(n.charCodeAt(i));)++i;return N(e,M.NAME,t,i,n.slice(t,i))}var vt,yt=t((()=>{Ne(),Be(),Qe(),Je(),$e(),vt=class{constructor(e){let t=new Ie(M.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return`Lexer`}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==M.EOF)do if(e.next)e=e.next;else{let t=ot(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===M.COMMENT);return e}}}));function bt(e,t){if(!e)throw Error(t)}var xt=t((()=>{}));function St(e){return Ct(e,[])}function Ct(e,t){switch(typeof e){case`string`:return JSON.stringify(e);case`function`:return e.name?`[function ${e.name}]`:`[function]`;case`object`:return wt(e,t);default:return String(e)}}function wt(e,t){if(e===null)return`null`;if(t.includes(e))return`[Circular]`;let n=[...t,e];if(Tt(e)){let t=e.toJSON();if(t!==e)return typeof t==`string`?t:Ct(t,n)}else if(Array.isArray(e))return Dt(e,n);return Et(e,n)}function Tt(e){return typeof e.toJSON==`function`}function Et(e,t){let n=Object.entries(e);return n.length===0?`{}`:t.length>At?`[`+Ot(e)+`]`:`{ `+n.map(([e,n])=>e+`: `+Ct(n,t)).join(`, `)+` }`}function Dt(e,t){if(e.length===0)return`[]`;if(t.length>At)return`[Array]`;let n=Math.min(kt,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(Ct(e[r],t));return r===1?i.push(`... 1 more item`):r>1&&i.push(`... ${r} more items`),`[`+i.join(`, `)+`]`}function Ot(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,``).replace(/]$/,``);if(t===`Object`&&typeof e.constructor==`function`){let t=e.constructor.name;if(typeof t==`string`&&t!==``)return t}return t}var kt,At,jt=t((()=>{kt=10,At=2})),Mt,Nt,Pt=t((()=>{jt(),Mt=globalThis.process&&!0,Nt=Mt?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
10if(typeof e==`object`&&e){let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:e.constructor?.name)){let t=St(e);throw Error(`Cannot use ${n} "${t}" from another module or realm. 11 12Ensure that there is only one instance of "graphql" in the node_modules 13directory. If different versions of "graphql" are the dependencies of other 14relied on modules, use "resolutions" to ensure only one version is installed. 15 16https://yarnpkg.com/en/docs/selective-version-resolutions 17 18Duplicate "graphql" modules cannot be used at the same time since different 19versions may have different capabilities and behavior. The data from one 20version used in the function from another could produce confusing and 21spurious results.`)}}return!1}}));function Ft(e){return Nt(e,It)}var It,Lt=t((()=>{xt(),jt(),Pt(),It=class{constructor(e,t=`GraphQL request`,n={line:1,column:1}){typeof e==`string`||bt(!1,`Body must be a string. Received: ${St(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||bt(!1,`line in locationOffset is 1-indexed and must be positive.`),this.locationOffset.column>0||bt(!1,`column in locationOffset is 1-indexed and must be positive.`)}get[Symbol.toStringTag](){return`Source`}}}));function Rt(e,t){let n=new Vt(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function zt(e){let t=e.value;return Bt(e.kind)+(t==null?``:` "${t}"`)}function Bt(e){return et(e)?`"${e}"`:e}var Vt,Ht=t((()=>{Ne(),Be(),He(),_e(),yt(),Lt(),$e(),Vt=class{constructor(e,t={}){let{lexer:n,...r}=t;if(n)this._lexer=n;else{let t=Ft(e)?e:new It(e);this._lexer=new vt(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(M.NAME);return this.node(e,{kind:A.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:A.DOCUMENT,definitions:this.many(M.SOF,this.parseDefinition,M.EOF)})}parseDefinition(){if(this.peek(M.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===M.BRACE_L)throw j(this._lexer.source,this._lexer.token.start,`Unexpected description, descriptions are not supported on shorthand queries.`);if(t.kind===M.NAME){switch(t.value){case`schema`:return this.parseSchemaDefinition();case`scalar`:return this.parseScalarTypeDefinition();case`type`:return this.parseObjectTypeDefinition();case`interface`:return this.parseInterfaceTypeDefinition();case`union`:return this.parseUnionTypeDefinition();case`enum`:return this.parseEnumTypeDefinition();case`input`:return this.parseInputObjectTypeDefinition();case`directive`:return this.parseDirectiveDefinition()}switch(t.value){case`query`:case`mutation`:case`subscription`:return this.parseOperationDefinition();case`fragment`:return this.parseFragmentDefinition()}if(e)throw j(this._lexer.source,this._lexer.token.start,`Unexpected description, only GraphQL definitions support descriptions.`);switch(t.value){case`extend`:return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(M.BRACE_L))return this.node(e,{kind:A.OPERATION_DEFINITION,operation:ze.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),n=this.parseOperationType(),r;return this.peek(M.NAME)&&(r=this.parseName()),this.node(e,{kind:A.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(M.NAME);switch(e.value){case`query`:return ze.QUERY;case`mutation`:return ze.MUTATION;case`subscription`:return ze.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(M.PAREN_L,this.parseVariableDefinition,M.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:A.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(M.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(M.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(M.DOLLAR),this.node(e,{kind:A.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:A.SELECTION_SET,selections:this.many(M.BRACE_L,this.parseSelection,M.BRACE_R)})}parseSelection(){return this.peek(M.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,r;return this.expectOptionalToken(M.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:A.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(M.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(M.PAREN_L,t,M.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(M.COLON),this.node(t,{kind:A.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(M.SPREAD);let t=this.expectOptionalKeyword(`on`);return!t&&this.peek(M.NAME)?this.node(e,{kind:A.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:A.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return this.expectKeyword(`fragment`),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:A.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:A.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===`on`)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case M.BRACKET_L:return this.parseList(e);case M.BRACE_L:return this.parseObject(e);case M.INT:return this.advanceLexer(),this.node(t,{kind:A.INT,value:t.value});case M.FLOAT:return this.advanceLexer(),this.node(t,{kind:A.FLOAT,value:t.value});case M.STRING:case M.BLOCK_STRING:return this.parseStringLiteral();case M.NAME:switch(this.advanceLexer(),t.value){case`true`:return this.node(t,{kind:A.BOOLEAN,value:!0});case`false`:return this.node(t,{kind:A.BOOLEAN,value:!1});case`null`:return this.node(t,{kind:A.NULL});default:return this.node(t,{kind:A.ENUM,value:t.value})}case M.DOLLAR:if(e)if(this.expectToken(M.DOLLAR),this._lexer.token.kind===M.NAME){let e=this._lexer.token.value;throw j(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:A.STRING,value:e.value,block:e.kind===M.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:A.LIST,values:this.any(M.BRACKET_L,()=>this.parseValueLiteral(e),M.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:A.OBJECT,fields:this.any(M.BRACE_L,()=>this.parseObjectField(e),M.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(M.COLON),this.node(t,{kind:A.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(M.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(M.AT),this.node(t,{kind:A.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(M.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(M.BRACKET_R),t=this.node(e,{kind:A.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(M.BANG)?this.node(e,{kind:A.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:A.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(M.STRING)||this.peek(M.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`schema`);let n=this.parseConstDirectives(),r=this.many(M.BRACE_L,this.parseOperationTypeDefinition,M.BRACE_R);return this.node(e,{kind:A.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(M.COLON);let n=this.parseNamedType();return this.node(e,{kind:A.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`scalar`);let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:A.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`type`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:A.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(`implements`)?this.delimitedMany(M.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(M.BRACE_L,this.parseFieldDefinition,M.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(M.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:A.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(M.PAREN_L,this.parseInputValueDef,M.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(M.COLON);let r=this.parseTypeReference(),i;this.expectOptionalToken(M.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:A.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`interface`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:A.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`union`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:A.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(M.EQUALS)?this.delimitedMany(M.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`enum`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:A.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(M.BRACE_L,this.parseEnumValueDefinition,M.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:A.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value===`true`||this._lexer.token.value===`fal
21se`||this._lexer.token.value===`null`)throw j(this._lexer.source,this._lexer.token.start,`${zt(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`input`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:A.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(M.BRACE_L,this.parseInputValueDef,M.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===M.NAME)switch(e.value){case`schema`:return this.parseSchemaExtension();case`scalar`:return this.parseScalarTypeExtension();case`type`:return this.parseObjectTypeExtension();case`interface`:return this.parseInterfaceTypeExtension();case`union`:return this.parseUnionTypeExtension();case`enum`:return this.parseEnumTypeExtension();case`input`:return this.parseInputObjectTypeExtension();case`directive`:if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`schema`);let t=this.parseConstDirectives(),n=this.optionalMany(M.BRACE_L,this.parseOperationTypeDefinition,M.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:A.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`scalar`);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:A.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`type`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:A.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`interface`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:A.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`union`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:A.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`enum`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:A.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`input`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:A.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`directive`),this.expectToken(M.AT);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:A.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`directive`),this.expectToken(M.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],a=this.expectOptionalKeyword(`repeatable`);this.expectKeyword(`on`);let o=this.parseDirectiveLocations();return this.node(e,{kind:A.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,directives:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(M.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(Ve,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e=this._lexer.token,t=this.expectOptionalToken(M.AT),n=this.parseName(),r;!t&&this.expectOptionalToken(M.DOT)&&(r=this.parseName());let i;return(t||r)&&this.expectOptionalToken(M.PAREN_L)&&(i=this.parseName(),this.expectToken(M.COLON),this.expectToken(M.PAREN_R)),t?i?this.node(e,{kind:A.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:A.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:A.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:A.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:A.TYPE_COORDINATE,name:n})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new Fe(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw j(this._lexer.source,t.start,`Expected ${Bt(e)}, found ${zt(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===M.NAME&&t.value===e)this.advanceLexer();else throw j(this._lexer.source,t.start,`Expected "${e}", found ${zt(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===M.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return j(this._lexer.source,t.start,`Unexpected ${zt(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==M.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw j(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}}));function Ut(e){return`"${e.replace(Gt,Wt)}"`}function Wt(e){return Kt[e.charCodeAt(0)]}var Gt,Kt,qt=t((()=>{Gt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g,Kt=`\\u0000.\\u0001.\\u0002.\\u0003.\\u0004.\\u0005.\\u0006.\\u0007.\\b.\\t.\\n.\\u000B.\\f.\\r.\\u000E.\\u000F.\\u0010.\\u0011.\\u0012.\\u0013.\\u0014.\\u0015.\\u0016.\\u0017.\\u0018.\\u0019.\\u001A.\\u001B.\\u001C.\\u001D.\\u001E.\\u001F...\\"..........................................................\\\\...................................\\u007F.\\u0080.\\u0081.\\u0082.\\u0083.\\u0084.\\u0085.\\u0086.\\u0087.\\u0088.\\u0089.\\u008A.\\u008B.\\u008C.\\u008D.\\u008E.\\u008F.\\u0090.\\u0091.\\u0092.\\u0093.\\u0094.\\u0095.\\u0096.\\u0097.\\u0098.\\u0099.\\u009A.\\u009B.\\u009C.\\u009D.\\u009E.\\u009F`.split(`.`)}));function P(e,t,n=Le){let r=new Map;for(let e of Object.values(A))r.set(e,Jt(t,e));let i,a=Array.isArray(e),o=[e],s=-1,c=[],l=e,u,d,f=[],p=[];do{s++;let e=s===o.length,m=e&&c.length!==0;if(e){if(u=p.length===0?void 0:f[f.length-1],l=d,d=p.pop(),m)if(a){l=l.slice();let e=0;for(let[t,n]of c){let r=t-e;n===null?(l.splice(r,1),e++):l[r]=n}}else{l={...l};for(let[e,t]of c)l[e]=t}s=i.index,o=i.keys,c=i.edits,a=i.inArray,i=i.prev}else if(d){if(u=a?s:o[s],l=d[u],l==null)continue;f.push(u)}let h;
21if(!Array.isArray(l)){if(Pe(l)||bt(!1,`Invalid AST Node: ${St(l)}.`),h=(e?r.get(l.kind)?.leave:r.get(l.kind)?.enter)?.call(t,l,u,d,f,p),h===Yt)break;if(h===!1){if(!e){f.pop();continue}}else if(h!==void 0&&(c.push([u,h]),!e))if(Pe(h))l=h;else{f.pop();continue}}h===void 0&&m&&c.push([u,l]),e?f.pop():(i={inArray:a,index:s,keys:o,edits:c,prev:i},a=Array.isArray(l),o=a?l:n[l.kind]??[],s=-1,c=[],d&&p.push(d),d=l)}while(i!==void 0);return c.length===0?e:c[c.length-1][1]}function Jt(e,t){let n=e[t];return typeof n==`object`?n:typeof n==`function`?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Yt,Xt=t((()=>{xt(),jt(),Be(),_e(),Yt=Object.freeze({})})),Zt=r({print:()=>Qt});function Qt(e){return P(e,rn)}function F(e,t=``){return e?.filter(e=>e).join(t)??``}function $t(e){return I(`{ 22`,en(F(e,` 23`)),` 24}`)}function I(e,t,n=``){return t!=null&&t!==``?e+t+n:``}function en(e){return I(` `,e.replace(/\n/g,` 25 `))}function tn(e){return e?.some(e=>e.includes(` 26`))??!1}var nn,rn,an=t((()=>{Qe(),qt(),Xt(),nn=80,rn={Name:{leave:e=>e.value},Variable:{leave:e=>`$`+e.name},Document:{leave:e=>F(e.definitions,` 27 28`)},OperationDefinition:{leave(e){let t=tn(e.variableDefinitions)?I(`( 29`,F(e.variableDefinitions,` 30`),` 31)`):I(`(`,F(e.variableDefinitions,`, `),`)`),n=I(``,e.description,` 32`)+F([e.operation,F([e.name,t]),F(e.directives,` `)],` `);return(n===`query`?``:n+` `)+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>I(``,i,` 33`)+e+`: `+t+I(` = `,n)+I(` `,F(r,` `))},SelectionSet:{leave:({selections:e})=>$t(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=I(``,e,`: `)+t,o=a+I(`(`,F(n,`, `),`)`);return o.length>nn&&(o=a+I(`( 34`,en(F(n,` 35`)),` 36)`)),F([o,F(r,` `),i],` `)}},Argument:{leave:({name:e,value:t})=>e+`: `+t},FragmentSpread:{leave:({name:e,directives:t})=>`...`+e+I(` `,F(t,` `))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>F([`...`,I(`on `,e),F(t,` `),n],` `)},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:a})=>I(``,a,` 37`)+`fragment ${e}${I(`(`,F(n,`, `),`)`)} on ${t} ${I(``,F(r,` `),` `)}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Ze(e):Ut(e)},BooleanValue:{leave:({value:e})=>e?`true`:`false`},NullValue:{leave:()=>`null`},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>`[`+F(e,`, `)+`]`},ObjectValue:{leave:({fields:e})=>`{`+F(e,`, `)+`}`},ObjectField:{leave:({name:e,value:t})=>e+`: `+t},Directive:{leave:({name:e,arguments:t})=>`@`+e+I(`(`,F(t,`, `),`)`)},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>`[`+e+`]`},NonNullType:{leave:({type:e})=>e+`!`},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>I(``,e,` 38`)+F([`schema`,F(t,` `),$t(n)],` `)},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+`: `+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>I(``,e,` 39`)+F([`scalar`,t,F(n,` `)],` `)},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>I(``,e,` 40`)+F([`type`,t,I(`implements `,F(n,` & `)),F(r,` `),$t(i)],` `)},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>I(``,e,` 41`)+t+(tn(n)?I(`( 42`,en(F(n,` 43`)),` 44)`):I(`(`,F(n,`, `),`)`))+`: `+r+I(` `,F(i,` `))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>I(``,e,` 45`)+F([t+`: `+n,I(`= `,r),F(i,` `)],` `)},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>I(``,e,` 46`)+F([`interface`,t,I(`implements `,F(n,` & `)),F(r,` `),$t(i)],` `)},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>I(``,e,` 47`)+F([`union`,t,F(n,` `),I(`= `,F(r,` | `))],` `)},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>I(``,e,` 48`)+F([`enum`,t,F(n,` `),$t(r)],` `)},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>I(``,e,` 49`)+F([t,F(n,` `)],` `)},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>I(``,e,` 50`)+F([`input`,t,F(n,` `),$t(r)],` `)},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:a})=>I(``,e,` 51`)+`directive @`+t+(tn(n)?I(`( 52`,en(F(n,` 53`)),` 54)`):I(`(`,F(n,`, `),`)`))+I(` `,F(r,` `))+(i?` repeatable`:``)+` on `+F(a,` | `)},SchemaExtension:{leave:({directives:e,operationTypes:t})=>F([`extend schema`,F(e,` `),$t(t)],` `)},ScalarTypeExtension:{leave:({name:e,directives:t})=>F([`extend scalar`,e,F(t,` `)],` `)},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>F([`extend type`,e,I(`implements `,F(t,` & `)),F(n,` `),$t(r)],` `)},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>F([`extend interface`,e,I(`implements `,F(t,` & `)),F(n,` `),$t(r)],` `)},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>F([`extend union`,e,F(t,` `),I(`= `,F(n,` | `))],` `)},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>F([`extend enum`,e,F(t,` `),$t(n)],` `)},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>F([`extend input`,e,F(t,` `),$t(n)],` `)},DirectiveExtension:{leave:({name:e,directives:t})=>F([`extend directive @`+e,F(t,` `)],` `)},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>F([e,I(`.`,t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>F([e,I(`.`,t),I(`(`,n,`:)`)])},DirectiveCoordinate:{leave:({name:e})=>F([`@`,e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>F([`@`,e,I(`(`,t,`:)`)])}}}));function on(e){return e.kind===A.FIELD||e.kind===A.FRAGMENT_SPREAD||e.kind===A.INLINE_FRAGMENT}var sn=t((()=>{_e()})),cn=t((()=>{_e(),Ht(),an(),Xt(),sn()})),ln=t((()=>{cn()}));function un(e,t){var n=e.directives;return!n||!n.length?!0:hn(n).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return r.value.kind===`Variable`?(i=t&&t[r.value.name.value],O(i!==void 0,105,n.name.value)):i=r.value.value,n.name.value===`skip`?!i:i})}function dn(e){var t=[];return P(e,{Directive:function(e){t.push(e.name.value)}}),t}function fn(e,t,n){var r=new Set(e),i=r.size;return P(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return Yt}}),n?!r.size:r.size<i}function pn(e){return e&&fn([`client`,`export`],e,!0)}function mn(e){var t=e.name.value;
54return t===`skip`||t===`include`}function hn(e){var t=[];return e&&e.length&&e.forEach(function(e){if(mn(e)){var n=e.arguments,r=e.name.value;O(n&&n.length===1,106,r);var i=n[0];O(i.name&&i.name.value===`if`,107,r);var a=i.value;O(a&&(a.kind===`Variable`||a.kind===`BooleanValue`),108,r),t.push({directive:e,ifArgument:i})}}),t}function gn(e){var t=e.directives?.find(function(e){return e.name.value===`unmask`});if(!t)return`mask`;var n=t.arguments?.find(function(e){return e.name.value===`mode`});return globalThis.__DEV__!==!1&&n&&(n.value.kind===A.VARIABLE?globalThis.__DEV__!==!1&&O.warn(109):n.value.kind===A.STRING?n.value.value!==`migrate`&&globalThis.__DEV__!==!1&&O.warn(111,n.value.value):globalThis.__DEV__!==!1&&O.warn(110)),n&&`value`in n.value&&n.value.value===`migrate`?`migrate`:`unmask`}var _n,vn,yn=t((()=>{k(),ln(),_n=function(e,t){return fn(e,t,!1)},vn=function(e,t){return fn(e,t,!0)}}));function bn(e){switch(typeof e){case`object`:if(e===null)break;case`function`:return!0}return!1}var xn,Sn,Cn,wn,Tn,En=t((()=>{xn=()=>Object.create(null),{forEach:Sn,slice:Cn}=Array.prototype,{hasOwnProperty:wn}=Object.prototype,Tn=class e{constructor(e=!0,t=xn){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Sn.call(e,e=>t=t.getChildTrie(e)),wn.call(t,`data`)?t.data:t.data=this.makeData(Cn.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){let r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(Cn.call(e,1)),!i.data&&!i.weak&&!(i.strong&&i.strong.size)&&r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(t){let n=this.mapFor(t,!0),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&bn(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}})),Dn,On,kn,An,jn,Mn,Nn,Pn,Fn=t((()=>{k(),Dn=E(function(){return navigator.product})==`ReactNative`,On=typeof WeakMap==`function`&&!(Dn&&!global.HermesInternal),kn=typeof WeakSet==`function`,An=typeof Symbol==`function`&&typeof Symbol.for==`function`,jn=An&&Symbol.asyncIterator,Mn=typeof E(function(){return window.document.createElement})==`function`,Nn=E(function(){return navigator.userAgent.indexOf(`jsdom`)>=0})||!1,Pn=(Mn||Dn)&&!Nn}));function L(e){return typeof e==`object`&&!!e}function In(e){return typeof e==`object`&&!!e&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}var Ln=t((()=>{}));function Rn(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if(e.kind===`OperationDefinition`)throw D(112,e.operation,e.name?` named '${e.name.value}'`:``);e.kind===`FragmentDefinition`&&r.push(e)}),n===void 0&&(O(r.length===1,113,r.length),n=r[0].name.value),m(m({},e),{definitions:f([{kind:`OperationDefinition`,operation:`query`,selectionSet:{kind:`SelectionSet`,selections:[{kind:`FragmentSpread`,name:{kind:`Name`,value:n}}]}}],e.definitions,!0)})}function zn(e){e===void 0&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function Bn(e,t){switch(e.kind){case`InlineFragment`:return e;case`FragmentSpread`:var n=e.name.value;if(typeof t==`function`)return t(n);var r=t&&t[n];return O(r,114,n),r||null;default:return null}}function Vn(e){var t=!0;return P(e,{FragmentSpread:function(e){if(t=!!e.directives&&e.directives.some(function(e){return e.name.value===`unmask`}),!t)return Yt}}),t}var Hn=t((()=>{h(),k(),ln()}));function Un(){}var Wn,Gn=t((()=>{Wn=class{constructor(e=1/0,t=Un){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);
54return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return t?(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0):!1}}}));function Kn(){}var qn,Jn,Yn,Xn,Zn,Qn,$n=t((()=>{qn=Kn,Jn=typeof WeakRef<`u`?WeakRef:function(e){return{deref:()=>e}},Yn=typeof WeakMap<`u`?WeakMap:Map,Xn=typeof FinalizationRegistry<`u`?FinalizationRegistry:function(){return{register:Kn,unregister:Kn}},Zn=10024,Qn=class{constructor(e=1/0,t=qn){this.max=e,this.dispose=t,this.map=new Yn,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<Zn;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let n=t.key;delete t.key,t.keyRef=new Jn(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Xn(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return t?(this.deleteNode(t),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}})),er=t((()=>{Gn(),$n()}));function tr(e){e.size<=(e.max||-1)||nr.has(e)||(nr.add(e),setTimeout(function(){e.clean(),nr.delete(e)},100))}var nr,rr,ir,ar=t((()=>{er(),nr=new WeakSet,rr=function(e,t){var n=new Qn(e,t);return n.set=function(e,t){var n=Qn.prototype.set.call(this,e,t);return tr(this),n},n},ir=function(e,t){var n=new Wn(e,t);return n.set=function(e,t){var n=Wn.prototype.set.call(this,e,t);return tr(this),n},n}})),or,R,sr=t((()=>{h(),k(),or=Symbol.for(`apollo.cacheSize`),R=m({},re[or])})),cr=t((()=>{ar(),sr()}));function lr(e,t){br[e]=t}function ur(){return Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],n=e[1];return[t,R[t]||n]}))}function dr(){var e;if(globalThis.__DEV__===!1)throw Error(`only supported in development mode`);return{limits:ur(),sizes:m({print:br.print?.call(br),parser:br.parser?.call(br),canonicalStringify:br.canonicalStringify?.call(br),links:yr(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:_r(this.queryManager.documentTransform)}},(e=this.cache).getMemoryInternals?.call(e))}}function fr(){return{cache:{fragmentQueryDocuments:hr(this.getFragmentDoc)}}}function pr(){var e=this.config.fragments;return m(m({},fr.apply(this)),{addTypenameDocumentTransform:_r(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:hr(this.storeReader.executeSelectionSet),executeSubSelectedArray:hr(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:hr(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:hr(e?.findFragmentSpreads),lookup:hr(e?.lookup),transform:hr(e?.transform)}})}function mr(e){return!!e&&`dirtyKey`in e}function hr(e){return mr(e)?e.size:void 0}function gr(e){return e!=null}function _r(e){return vr(e).map(function(e){return{cache:e}})}function vr(e){return e?f(f([hr(e?.performWork)],vr(e?.left),!0),vr(e?.right),!0).filter(gr):[]}function yr(e){return e?f(f([(e?.getMemoryInternals)?.call(e)],yr(e?.left),!0),yr(e?.right),!0).filter(gr):[]}var br,xr,Sr,Cr,wr=t((()=>{h(),sr(),br={},xr=globalThis.__DEV__===!1?void 0:dr,Sr=globalThis.__DEV__===!1?void 0:pr,Cr=globalThis.__DEV__===!1?void 0:fr}));function Tr(e,t){if(t&&typeof t==`object`){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(Er))return t;var i=JSON.stringify(r),a=Or.get(i);if(!a){r.sort();var o=JSON.stringify(r);a=Or.get(o)||r,Or.set(i,a),Or.set(o,a)}var s=Object.create(n);return a.forEach(function(e){s[e]=t[e]}),s}}return t}function Er(e,t,n){return t===0||n[t-1]<=e}var Dr,Or,kr=t((()=>{cr(),wr(),Dr=Object.assign(function(e){return JSON.stringify(e,Tr)},{reset:function(){Or=new ir(R.canonicalStringify||1e3)}}),globalThis.__DEV__!==!1&&lr(`canonicalStringify`,function(){return Or.size}),Dr.reset()}));function Ar(e){return{__ref:String(e)}}function z(e){return!!(e&&typeof e==`object`&&typeof e.__ref==`string`)}function jr(e){return L(e)&&e.kind===`Document`&&Array.isArray(e.definitions)}function Mr(e){return e.kind===`StringValue`}function Nr(e){return e.kind===`BooleanValue`}function Pr(e){return e.kind===`IntValue`}function Fr(e){return e.kind===`FloatValue`}function Ir(e){return e.kind===`Variable`}function Lr(e){return e.kind===`ObjectValue`}function Rr(e){return e.kind===`ListValue`}function zr(e){return e.kind===`EnumValue`}function Br(e){return e.kind===`NullValue`}function Vr(e,t,n,r){if(Pr(n)||Fr(n))e[t.value]=Number(n.value);else if(Nr(n)||Mr(n))e[t.value]=n.value;else if(Lr(n)){var i={};n.fields.map(function(e){return Vr(i,e.name,e.value,r)}),e[t.value]=i}else if(Ir(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(Rr(n))e[t.value]=n.values.map(function(e){var n={};return Vr(n,t,e,r),n[t.value]});else if(zr(n))e[t.value]=n.value;else if(Br(n))e[t.value]=null;else throw D(123,t.value,n.kind)}function Hr(e,t){var n=null;e.directives&&(n={}
54,e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,a=r.value;return Vr(n[e.name.value],i,a,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return Vr(r,n,i,t)})),Xr(e.name.value,r,n)}function Ur(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return Vr(n,r,i,t)}),n}return null}function Wr(e){return e.alias?e.alias.value:e.name.value}function Gr(e,t,n){for(var r,i=0,a=t.selections;i<a.length;i++){var o=a[i];if(Kr(o)){if(o.name.value===`__typename`)return e[Wr(o)]}else r?r.push(o):r=[o]}if(typeof e.__typename==`string`)return e.__typename;if(r)for(var s=0,c=r;s<c.length;s++){var o=c[s],l=Gr(e,Bn(o,n).selectionSet,n);if(typeof l==`string`)return l}}function Kr(e){return e.kind===`Field`}function qr(e){return e.kind===`InlineFragment`}var Jr,Yr,Xr,Zr=t((()=>{k(),Ln(),Hn(),kr(),Jr=[`connection`,`include`,`skip`,`client`,`rest`,`export`,`nonreactive`],Yr=Dr,Xr=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),`${n.connection.key}(${Yr(i)})`}else return n.connection.key;var a=e;if(t){var o=Yr(t);a+=`(${o})`}return n&&Object.keys(n).forEach(function(e){Jr.indexOf(e)===-1&&(n[e]&&Object.keys(n[e]).length?a+=`@${e}(${Yr(n[e])})`:a+=`@${e}`)}),a},{setStringify:function(e){var t=Yr;return Yr=e,t}})}));function Qr(e){O(e&&e.kind===`Document`,115);var t=e.definitions.filter(function(e){return e.kind!==`FragmentDefinition`}).map(function(e){if(e.kind!==`OperationDefinition`)throw D(116,e.kind);return e});return O(t.length<=1,117,t.length),e}function $r(e){return Qr(e),e.definitions.filter(function(e){return e.kind===`OperationDefinition`})[0]}function ei(e){return e.definitions.filter(function(e){return e.kind===`OperationDefinition`&&!!e.name}).map(function(e){return e.name.value})[0]||null}function ti(e){return e.definitions.filter(function(e){return e.kind===`FragmentDefinition`})}function ni(e){var t=$r(e);return O(t&&t.operation===`query`,118),t}function ri(e){O(e.kind===`Document`,119),O(e.definitions.length<=1,120);var t=e.definitions[0];return O(t.kind===`FragmentDefinition`,121),t}function ii(e){Qr(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if(i.kind===`OperationDefinition`){var a=i.operation;if(a===`query`||a===`mutation`||a===`subscription`)return i}i.kind===`FragmentDefinition`&&!t&&(t=i)}if(t)return t;throw D(122)}function ai(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&Vr(t,e.variable.name,e.defaultValue)}),t}var oi=t((()=>{k(),Zr()}));function si(e){try{return e()}catch{}}var B,ci,li,ui,di,fi,pi,mi=t((()=>{B=null,ci={},li=1,ui=()=>class{constructor(){this.id=[`slot`,li++,Date.now(),Math.random().toString(36).slice(2)].join(`:`)}hasValue(){for(let e=B;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===ci)break;return e!==B&&(B.slots[this.id]=t),!0}return B&&(B.slots[this.id]=ci),!1}getValue(){if(this.hasValue())return B.slots[this.id]}withValue(e,t,n,r){let i={__proto__:null,[this.id]:e},a=B;B={parent:a,slots:i};try{return t.apply(r,n)}finally{B=a}}static bind(e){let t=B;return function(){let n=B;try{return B=t,e.apply(this,arguments)}finally{B=n}}}static noContext(e,t,n){if(B){let r=B;try{return B=null,e.apply(n,t)}finally{B=r}}else return e.apply(n,t)}},di=`@wry/context:Slot`,fi=si(()=>globalThis)||si(()=>global)||Object.create(null),pi=fi[di]||Array[di]||(function(e){try{Object.defineProperty(fi,di,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}})(ui())})),hi,gi,_i=t((()=>{mi(),{bind:hi,noContext:gi}=pi})),vi,yi=t((()=>{_i(),vi=new pi}));function bi(e){let{unsubscribe:t}=e;typeof t==`function`&&(e.unsubscribe=void 0,t())}var xi,Si,Ci=t((()=>{({hasOwnProperty:xi}=Object.prototype),Si=Array.from||function(e){let t=[];
54return e.forEach(e=>t.push(e)),t}}));function wi(e,t){if(!e)throw Error(t||`assertion failure`)}function Ti(e,t){let n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Ei(e){switch(e.length){case 0:throw Error(`unknown value`);case 1:return e[0];case 2:throw e[1]}}function Di(e){return e.slice(0)}function Oi(e){let t=vi.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),ji(e)?Ii(t,e):Li(t,e),t}function ki(e,t){return zi(e),vi.withValue(e,Ai,[e,t]),Vi(e,t)&&Mi(e),Ei(e.value)}function Ai(e,t){e.recomputing=!0;let{normalizeResult:n}=e,r;n&&e.value.length===1&&(r=Di(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!Ti(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(t){e.value[1]=t}e.recomputing=!1}function ji(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function Mi(e){e.dirty=!1,!ji(e)&&Pi(e)}function Ni(e){Fi(e,Ii)}function Pi(e){Fi(e,Li)}function Fi(e,t){let n=e.parents.size;if(n){let r=Si(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function Ii(e,t){wi(e.childValues.has(t)),wi(ji(t));let n=!ji(e);if(!e.dirtyChildren)e.dirtyChildren=Hi.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&Ni(e)}function Li(e,t){wi(e.childValues.has(t)),wi(!ji(t));let n=e.childValues.get(t);n.length===0?e.childValues.set(t,Di(t.value)):Ti(n,t.value)||e.setDirty(),Ri(e,t),!ji(e)&&Pi(e)}function Ri(e,t){let n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(Hi.length<Ui&&Hi.push(n),e.dirtyChildren=null))}function zi(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{Bi(e,n)}),e.forgetDeps(),wi(e.dirtyChildren===null)}function Bi(e,t){t.parents.delete(e),e.childValues.delete(t),Ri(e,t)}function Vi(e,t){if(typeof e.subscribe==`function`)try{bi(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}var Hi,Ui,Wi,Gi=t((()=>{yi(),Ci(),Hi=[],Ui=100,Wi=class e{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(this.value.length===1&&!ji(this))return Oi(this),this.value[0]}recompute(e){return wi(!this.recomputing,`already recomputing`),Oi(this),ji(this)?ki(this,e):Ei(this.value)}setDirty(){this.dirty||(this.dirty=!0,Ni(this),bi(this))}dispose(){this.setDirty(),zi(this),Fi(this,(e,t)=>{e.setDirty(),Bi(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||=Hi.pop()||new Set,this.deps.add(e)}forgetDeps(){this.deps&&=(Si(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Hi.push(this.deps),null)}},Wi.count=0}));function Ki(e){let t=new Map,n=e&&e.subscribe;function r(e){let r=vi.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),typeof n==`function`&&(bi(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){let r=t.get(e);if(r){let i=n&&xi.call(qi,n)?n:`setDirty`;Si(r).forEach(e=>e[i]()),t.delete(e),bi(r)}},r}var qi,Ji=t((()=>{yi(),Ci(),qi={setDirty:!0,dispose:!0,forget:!0}}));function Yi(...e){return(Zi||=new Tn(typeof WeakMap==`function`)).lookupArray(e)}function Xi(e,{max:t=2**16,keyArgs:n,makeCacheKey:r=Yi,normalizeResult:i,subscribe:a,cache:o=Wn}=Object.create(null)){let s=typeof o==`function`?new o(t,e=>e.dispose()):o,c=function(){let t=r.apply(null,n?n.apply(null,arguments):arguments);if(t===void 0)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new Wi(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>s.delete(t));let c=o.recompute(Array.prototype.slice.call(arguments));return s.set(t,o),Qi.add(s),vi.hasValue()||(Qi.forEach(e=>e.clean()),Qi.clear()),c};Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:a,cache:s});function l(e){let t=e&&s.get(e);t&&t.setDirty()}c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))};function u(e){let t=e&&s.get(e);if(t)return t.peek()}c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))};function d(e){return e?s.delete(e):!1}return c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}var Zi,Qi,$i=t((()=>{En(),er(),Gi(),yi(),Ji(),Qi=new Set}));function ea(e){return e}var ta,na=t((()=>{En(),Fn(),oi(),k(),er(),$i(),cr(),ta=function(){function e(e,t){t===void 0&&(t=Object.create(null)),this.resultCache=kn?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=t.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(ea,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new Tn(On);this.performWork=Xi(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return O(Array.isArray(r),104),n.lookupArray(r)},max:R[`documentTransform.cache`],cache:Qn})}},e.prototype.performWork=function(e){return Qr(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()})),ra,ia,aa=t((()=>{ln(),cr(),wr(),ia=Object.assign(function(e){var t=ra.get(e);return t||(t=Qt(e),ra.set(e,t)),t},{reset:function(){ra=new rr(R.print||2e3)}}),ia.reset(),globalThis.__DEV__!==!1&&lr(`print`,function(){return ra?ra.size:0})}));function V(e){return Array.isArray(e)&&e.length>0}var H,oa=t((()=>{H=Array.isArray}));function sa(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===A.FRAGMENT_SPREAD&&sa(t[e.name.value],t)})}function ca(e){return sa($r(e)||ri(e),zn(ti(e)))?null:e}function la(e){var t=new Map,n=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}
54),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach(function(t,n){n(e)&&(r=t)}),r}}function ua(e){var t=new Map;return function(n){n===void 0&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function da(e,t){Qr(t);for(var n=ua(``),r=ua(``),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!H(i)){if(i.kind===A.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===A.FRAGMENT_DEFINITION)return r(i.name.value)}return globalThis.__DEV__!==!1&&O.error(124),null},a=0,o=t.definitions.length-1;o>=0;--o)t.definitions[o].kind===A.OPERATION_DEFINITION&&++a;var s=la(e),c=function(e){return V(e)&&e.map(s).some(function(e){return e&&e.remove})},l=new Map,u=!1,d={enter:function(e){if(c(e.directives))return u=!0,null}},f=P(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,a){var o=i(a);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,a){if(c(e.directives))return u=!0,null;var o=i(a);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){l.set(JSON.stringify(r),e)},leave:function(e,t,n,i){if(e===l.get(JSON.stringify(i)))return e;if(a>0&&e.selectionSet.selections.every(function(e){return e.kind===A.FIELD&&e.name.value===`__typename`}))return r(e.name.value).removed=!0,u=!0,null}},Directive:{leave:function(e){if(s(e))return u=!0,null}}});if(!u)return t;var p=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){p(r(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},h=new Set;f.definitions.forEach(function(e){e.kind===A.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){h.add(e)}):e.kind===A.FRAGMENT_DEFINITION&&a===0&&!r(e.name.value).removed&&h.add(e.name.value)}),h.forEach(function(e){p(r(e)).fragmentSpreads.forEach(function(e){h.add(e)})});var g=function(e){return!!(!h.has(e)||r(e).removed)},_={enter:function(e){if(g(e.name.value))return null}};return ca(P(f,{FragmentSpread:_,FragmentDefinition:_,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return m(m({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}function fa(e){return da([xa],Qr(e))}function pa(e){return function(t){return e.some(function(e){return t.value&&t.value.kind===A.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}function ma(e,t){var n=pa(e);return ca(P(t,{OperationDefinition:{enter:function(t){return m(m({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var r=0;if(t.arguments&&t.arguments.forEach(function(e){n(e)&&(r+=1)}),r===1)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}function ha(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return ca(P(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}function ga(e){return ii(e).operation===`query`?e:P(e,{OperationDefinition:{enter:function(e){return m(m({},e),{operation:`query`})}}})}function _a(e){return Qr(e),da([{test:function(e){return e.name.value===`client`},remove:!0}],e)}function va(e){return Qr(e),P(e,{FragmentSpread:function(e){if(!e.directives?.some(function(e){return e.name.value===`unmask`}))return m(m({},e),{directives:f(f([],e.directives||[],!0),[{kind:A.DIRECTIVE,name:{kind:A.NAME,value:`nonreactive`}}],!1)})}})}var ya,ba,xa,Sa=t((()=>{h(),k(),ln(),oi(),Zr(),Hn(),oa(),ya={kind:A.FIELD,name:{kind:A.NAME,value:`__typename`}},ba=Object.assign(function(e){return P(e,{SelectionSet:{enter:function(e,t,n){if(!(n&&n.kind===A.OPERATION_DEFINITION)){var r=e.selections;if(r&&!r.some(function(e){return Kr(e)&&(e.name.value===`__typename`||e.name.value.lastIndexOf(`__`,0)===0)})){var i=n;
54if(!(Kr(i)&&i.directives&&i.directives.some(function(e){return e.name.value===`export`})))return m(m({},e),{selections:f(f([],r,!0),[ya],!1)})}}}}})},{added:function(e){return e===ya}}),xa={test:function(e){var t=e.name.value===`connection`;return t&&(!e.arguments||!e.arguments.some(function(e){return e.name.value===`key`}))&&globalThis.__DEV__!==!1&&O.warn(125),t}}}));function Ca(e,t){return $r(e)?.operation===t}function wa(e){return Ca(e,`mutation`)}function Ta(e){return Ca(e,`query`)}function Ea(e){return Ca(e,`subscription`)}var Da=t((()=>{oi()}));function Oa(){return ka([...arguments])}function ka(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new Ma,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var Aa,ja,Ma,Na=t((()=>{h(),Ln(),Aa=Object.prototype.hasOwnProperty,ja=function(e,t,n){return this.merge(e[n],t[n])},Ma=function(){function e(e){e===void 0&&(e=ja),this.reconciler=e,this.isObject=L,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return L(t)&&L(e)?(Object.keys(t).forEach(function(i){if(Aa.call(e,i)){var a=e[i];if(t[i]!==a){var o=n.reconciler.apply(n,f([e,t,i],r,!1));o!==a&&(e=n.shallowCopyForMerge(e),e[i]=o)}}else e=n.shallowCopyForMerge(e),e[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return L(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):m({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}()}));function Pa(e){return e===void 0&&(e=!1),{keyArgs:e,merge:function(e,t){return e?f(f([],e,!0),t,!0):t}}}function Fa(e){return e===void 0&&(e=!1),{keyArgs:e,merge:function(e,t,n){var r=n.args,i=e?e.slice(0):[];if(t)if(r)for(var a=r.offset,o=a===void 0?0:a,s=0;s<t.length;++s)i[o+s]=t[s];else i.push.apply(i,t);return i}}}function Ia(e){return e===void 0&&(e=!1),{keyArgs:e,read:function(e,t){var n=t.canRead,r=t.readField;if(!e)return e;var i=[],a=``,o=``;
54e.edges.forEach(function(e){n(r(`node`,e))&&(i.push(e),e.cursor&&(a=a||e.cursor||``,o=e.cursor||o))}),i.length>1&&a===o&&(a=``);var s=e.pageInfo||{},c=s.startCursor,l=s.endCursor;return m(m({},Ra(e)),{edges:i,pageInfo:m(m({},e.pageInfo),{startCursor:c||a,endCursor:l||o})})},merge:function(e,t,n){var r=n.args,i=n.isReference,a=n.readField;if(e||=La(),!t)return e;var o=t.edges?t.edges.map(function(e){return i(e=m({},e))&&(e.cursor=a(`cursor`,e)),e}):[];if(t.pageInfo){var c=t.pageInfo,l=c.startCursor,u=c.endCursor,d=o[0],p=o[o.length-1];d&&l&&(d.cursor=l),p&&u&&(p.cursor=u);var h=d&&d.cursor;h&&!l&&(t=Oa(t,{pageInfo:{startCursor:h}}));var g=p&&p.cursor;g&&!u&&(t=Oa(t,{pageInfo:{endCursor:g}}))}var _=e.edges,v=[];if(r&&r.after){var y=_.findIndex(function(e){return e.cursor===r.after});y>=0&&(_=_.slice(0,y+1))}else if(r&&r.before){var y=_.findIndex(function(e){return e.cursor===r.before});v=y<0?_:_.slice(y),_=[]}else t.edges&&(_=[]);var b=f(f(f([],_,!0),o,!0),v,!0),x=m(m({},t.pageInfo),e.pageInfo);if(t.pageInfo){var S=t.pageInfo,C=S.hasPreviousPage,w=S.hasNextPage,l=S.startCursor,u=S.endCursor,T=s(S,[`hasPreviousPage`,`hasNextPage`,`startCursor`,`endCursor`]);Object.assign(x,T),_.length||(C!==void 0&&(x.hasPreviousPage=C),l!==void 0&&(x.startCursor=l)),v.length||(w!==void 0&&(x.hasNextPage=w),u!==void 0&&(x.endCursor=u))}return m(m(m({},Ra(e)),Ra(t)),{edges:b,pageInfo:x})}}}function La(){return{edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:``,endCursor:``}}}var Ra,za,Ba=t((()=>{h(),Na(),Ra=function(e){return s(e,za)},za=[`edges`,`pageInfo`]}));function Va(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Ha(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 55In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ha(e,t){if(e){if(typeof e==`string`)return Ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ua(e,t)}}function Ua(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ga(e,t,n){return t&&Wa(e.prototype,t),n&&Wa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ka(e,t){var n=e[t];if(n!=null){if(typeof n!=`function`)throw TypeError(n+` is not a function`);return n}}function qa(e){var t=e.constructor;return t!==void 0&&(t=t[so],t===null&&(t=void 0)),t===void 0?U:t}function Ja(e){return e instanceof U}function Ya(e){Ya.log?Ya.log(e):setTimeout(function(){throw e})}function Xa(e){Promise.resolve().then(function(){try{e()}catch(e){Ya(e)}})}function Za(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,t))try{if(typeof t==`function`)t();else{var n=Ka(t,`unsubscribe`);n&&n.call(t)}}catch(e){Ya(e)}}function Qa(e){e._observer=void 0,e._queue=void 0,e._state=`closed`}function $a(e){var t=e._queue;if(t){e._queue=void 0,e._state=`ready`;for(var n=0;n<t.length&&(eo(e,t[n].type,t[n].value),e._state!==`closed`);++n);}}function eo(e,t,n){e._state=`running`;var r=e._observer;try{var i=Ka(r,t);switch(t){case`next`:i&&i.call(r,n);break;case`error`:if(Qa(e),i)i.call(r,n);else throw n;break;case`complete`:Qa(e),i&&i.call(r);break}}catch(e){Ya(e)}e._state===`closed`?Za(e):e._state===`running`&&(e._state=`ready`)}function to(e,t,n){if(e._state!==`closed`){if(e._state===`buffering`){e._queue.push({type:t,value:n});return}if(e._state!==`ready`){e._state=`buffering`,e._queue=[{type:t,value:n}],Xa(function(){return $a(e)});return}eo(e,t,n)}}var no,ro,io,ao,oo,so,co,lo,U,uo=t((()=>{no=function(){return typeof Symbol==`function`},ro=function(e){return no()&&!!Symbol[e]},io=function(e){return ro(e)?Symbol[e]:`@@`+e},no()&&!ro(`observable`)&&(Symbol.observable=Symbol(`observable`)),ao=io(`iterator`),oo=io(`observable`),so=io(`species`),co=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state=`initializing`;var n=new lo(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}this._state===`initializing`&&(this._state=`ready`)}var t=e.prototype;return t.unsubscribe=function(){this._state!==`closed`&&(Qa(this),Za(this))},Ga(e,[{key:`closed`,get:function(){return this._state===`closed`}}]),e}(),lo=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){to(this._subscription,`next`,e)},t.error=function(e){to(this._subscription,`error`,e)},t.complete=function(){to(this._subscription,`complete`)},Ga(e,[{key:`closed`,get:function(){return this._subscription._state===`closed`}}]),e}(),U=function(){function e(t){if(!(this instanceof e))throw TypeError(`Observable cannot be called as a function`);if(typeof t!=`function`)throw TypeError(`Observable initializer must be a function`);this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return(typeof e!=`object`||!e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new co(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if(typeof e!=`function`){r(TypeError(e+` is not a function`));return}function i(){a.unsubscribe(),n()}var a=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),a.unsubscribe()}},error:r,complete:n})})},t.map=function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(qa(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(qa(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=qa(this),r=arguments.length>1,i=!1,a=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError(`Cannot reduce an empty sequence`));n.next(a),n.complete()}})})},t.concat=function(){var e=this,t=[...arguments],n=qa(this);return new n(function(r){var i,a=0;function o(e){i=e.subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){a===t.length?(i=void 0,r.complete()):o(n.from(t[a++]))}})}return o(e),function(){i&&=(i.unsubscribe(),void 0)}})},t.flatMap=function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=qa(this);return new n(function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&i.length===0&&r.complete()}
55return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})},t[oo]=function(){return this},e.from=function(t){var n=typeof this==`function`?this:e;if(t==null)throw TypeError(t+` is not an object`);var r=Ka(t,oo);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+` is not an object`);return Ja(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(ro(`iterator`)&&(r=Ka(t,ao),r))return new n(function(e){Xa(function(){if(!e.closed){for(var n=Va(r.call(t)),i;!(i=n()).done;){var a=i.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){Xa(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+` is not observable`)},e.of=function(){var t=[...arguments];return new(typeof this==`function`?this:e)(function(e){Xa(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})})},Ga(e,null,[{key:so,get:function(){return this}}]),e}(),no()&&Object.defineProperty(U,Symbol(`extensions`),{value:{symbol:oo,hostReportError:Ya},configurable:!0})})),fo,po,mo=t((()=>{uo(),fo=U.prototype,po=`@@observable`,fo[po]||(fo[po]=function(){return this})}));function ho(e){var t=Promise.resolve(e);return t.status=`fulfilled`,t.value=e,t}function go(e){var t=Promise.reject(e);return t.catch(function(){}),t.status=`rejected`,t.reason=e,t}function _o(e){return`status`in e}function vo(e){if(_o(e))return e;var t=e;return t.status=`pending`,t.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}}),e}var yo=t((()=>{}));function bo(e){return e.catch(function(){}),e}var xo=t((()=>{}));function So(e){return Co(e)}function Co(e,t){switch(wo.call(e)){case`[object Array]`:if(t||=new Map,t.has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=Co(e,t)}),n;case`[object Object]`:if(t||=new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=Co(e[n],t)}),r;default:return e}}var wo,To=t((()=>{wo=Object.prototype.toString}));function Eo(e){var t=new Set([e]);return t.forEach(function(e){L(e)&&Do(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){L(e[n])&&t.add(e[n])})}),e}function Do(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}function Oo(e){return globalThis.__DEV__!==!1&&Eo(e),e}var ko=t((()=>{Ln()}));function Ao(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}var jo=t((()=>{}));function Mo(e,t,n){return new U(function(r){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(n){if(e){var a=function(){return r.closed?0:e(n)};i=i.then(a,a).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var o={next:a(t,`next`),error:a(n,`error`),complete:function(){i.then(function(){return r.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}var No=t((()=>{mo()}));function Po(e){function t(t){Object.defineProperty(e,t,{value:U})}return An&&Symbol.species&&t(Symbol.species),t(`@@species`),e}var Fo=t((()=>{mo(),Fn()}));function Io(e){return e&&typeof e.then==`function`}var Lo,Ro=t((()=>{h(),mo(),jo(),Fo(),Lo=function(e){o(t,e);function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){n.sub!==null&&(n.latest=[`next`,e],n.notify(`next`,e),Ao(n.observers,`next`,e))},error:function(e){var t=n.sub;t!==null&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=[`error`,e],n.reject(e),n.notify(`error`,e),Ao(n.observers,`error`,e))},complete:function(){var e=n,t=e.sub,r=e.sources,i=r===void 0?[]:r;if(t!==null){var a=i.shift();a?Io(a)?a.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=a.subscribe(n.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]===`next`?n.resolve(n.latest[1]):n.resolve(),n.notify(`complete`),Ao(n.observers,`complete`))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),typeof t==`function`&&(t=[new U(t)]),Io(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return t.prototype.start=function(e){this.sub===void 0&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),this.sub===null&&t===`next`&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;
55n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(U),Po(Lo)}));function zo(e){return`incremental`in e}function Bo(e){return`hasNext`in e&&`data`in e}function Vo(e){return zo(e)||Bo(e)}function Ho(e){return L(e)&&`payload`in e}function Uo(e,t){var n=e,r=new Ma;return zo(t)&&V(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}n=r.merge(n,t)}),n}var Wo=t((()=>{Ln(),oa(),Na()}));function Go(e){return V(Ko(e))}function Ko(e){var t=V(e.errors)?e.errors.slice(0):[];return zo(e)&&V(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var qo=t((()=>{oa(),Wo()}));function Jo(){var e=[...arguments],t=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(n){var r=e[n];r!==void 0&&(t[n]=r)})}),t}var Yo=t((()=>{}));function Xo(e,t){return Jo(e,t,t.variables&&{variables:Jo(m(m({},e&&e.variables),t.variables))})}var Zo=t((()=>{h(),Yo()}));function Qo(e,t){return $o(e,t)}function $o(e,t,n){if(n===void 0&&(n=new Map),n.has(e))return n.get(e);var r=!1;if(Array.isArray(e)){var i=[];if(n.set(e,i),e.forEach(function(e,a){var o=$o(e,t,n);r||=o!==e,i[a]=o}),r)return i}else if(In(e)){var a=Object.create(Object.getPrototypeOf(e));if(n.set(e,a),Object.keys(e).forEach(function(i){if(i===t){r=!0;return}var o=$o(e[i],t,n);r||=o!==e[i],a[i]=o}),r)return a}return e}var es=t((()=>{Ln()}));function ts(e){return Qo(e,`__typename`)}var ns=t((()=>{es()}));function rs(e){return ss[as]||(cs.getValue()||[]).includes(e)}function W(e){var t=[...arguments].slice(1);return cs.withValue.apply(cs,f([Array.isArray(e)?e:[e]],t,!1))}function G(e,t,n,r){r===void 0&&(r=`Please remove this option.`),is(t,function(){t in e&&globalThis.__DEV__!==!1&&O.warn(103,n,t,r)})}function is(e,t){rs(e)||t()}var as,os,ss,cs,ls=t((()=>{h(),$i(),k(),as=Symbol.for(`apollo.deprecations`),os=Symbol.for(`apollo.deprecations.slot`),ss=re,cs=ss[os]??(ss[os]=new pi)})),us=r({AutoCleanedStrongCache:()=>ir,AutoCleanedWeakCache:()=>rr,Concast:()=>Lo,DEV:()=>ge,DeepMerger:()=>Ma,DocumentTransform:()=>ta,Observable:()=>U,addNonReactiveToNamedFragments:()=>va,addTypenameToDocument:()=>ba,argumentsObjectFromField:()=>Ur,asyncMap:()=>Mo,buildQueryFromSelectionSet:()=>ga,cacheSizes:()=>R,canUseAsyncIteratorSymbol:()=>jn,canUseDOM:()=>Mn,canUseLayoutEffect:()=>Pn,canUseSymbol:()=>An,canUseWeakMap:()=>On,canUseWeakSet:()=>kn,canonicalStringify:()=>Dr,checkDocument:()=>Qr,cloneDeep:()=>So,compact:()=>Jo,concatPagination:()=>Pa,createFragmentMap:()=>zn,createFulfilledPromise:()=>ho,createRejectedPromise:()=>go,fixObservableSubclass:()=>Po,getDefaultValues:()=>ai,getDirectiveNames:()=>dn,getFragmentDefinition:()=>ri,getFragmentDefinitions:()=>ti,getFragmentFromSelection:()=>Bn,getFragmentMaskMode:()=>gn,getFragmentQueryDocument:()=>Rn,getGraphQLErrorsFromResult:()=>Ko,getInclusionDirectives:()=>hn,getMainDefinition:()=>ii,getOperationDefinition:()=>$r,getOperationName:()=>ei,getQueryDefinition:()=>ni,getStoreKeyName:()=>Xr,getTypenameFromResult:()=>Gr,graphQLResultHasError:()=>Go,hasAllDirectives:()=>vn,hasAnyDirectives:()=>_n,hasClientExports:()=>pn,hasDirectives:()=>fn,isApolloPayloadResult:()=>Ho,isArray:()=>H,isDocumentNode:()=>jr,isExecutionPatchIncrementalResult:()=>zo,isExecutionPatchInitialResult:()=>Bo,isExecutionPatchResult:()=>Vo,isField:()=>Kr,isFullyUnmaskedOperation:()=>Vn,isInlineFragment:()=>qr,isMutationOperation:()=>wa,isNonEmptyArray:()=>V,isNonNullObject:()=>L,isPlainObject:()=>In,isQueryOperation:()=>Ta,isReference:()=>z,isStatefulPromise:()=>_o,isSubscriptionOperation:()=>Ea,iterateObserversSafely:()=>Ao,makeReference:()=>Ar,makeUniqueId:()=>ae,maybe:()=>E,maybeDeepFreeze:()=>Oo,mergeDeep:()=>Oa,mergeDeepArray:()=>ka,mergeIncrementalData:()=>Uo,mergeOptions:()=>Xo,muteDeprecations:()=>W,offsetLimitPagination:()=>Fa,omitDeep:()=>Qo,preventUnhandledRejection:()=>bo,print:()=>ia,relayStylePagination:()=>Ia,removeArgumentsFromDocument:()=>
55ma,removeClientSetsFromDocument:()=>_a,removeConnectionDirectiveFromDocument:()=>fa,removeDirectivesFromDocument:()=>da,removeFragmentSpreadFromDocument:()=>ha,resultKeyNameFromField:()=>Wr,shouldInclude:()=>un,storeKeyNameFromField:()=>Hr,stringifyForDisplay:()=>ce,stripTypename:()=>ts,valueToObjectRepresentation:()=>Vr,warnDeprecated:()=>is,warnRemovedOption:()=>G,wrapPromiseWithState:()=>vo}),K=t((()=>{k(),yn(),na(),Hn(),oi(),aa(),Zr(),Sa(),Da(),Ba(),mo(),yo(),xo(),Na(),To(),ko(),jo(),No(),Ro(),Fo(),oa(),Ln(),qo(),Fn(),Yo(),se(),le(),Zo(),Wo(),kr(),es(),ns(),cr(),ls()}));function ds(e){return new U(function(t){t.error(e)})}var fs=t((()=>{K()}));function ps(e){var t=!1;return new Promise(function(n,r){e.subscribe({next:function(e){t?globalThis.__DEV__!==!1&&O.warn(57):(t=!0,n(e))},error:r})})}var ms=t((()=>{k()}));function hs(e){return new U(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}var gs=t((()=>{K()})),_s,vs=t((()=>{_s=function(e,t,n){var r=Error(n);throw r.name=`ServerError`,r.response=e,r.statusCode=e.status,r.result=t,r}}));function ys(e){for(var t=[`query`,`operationName`,`variables`,`extensions`,`context`],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw D(58,i)}return e}var bs=t((()=>{k()}));function xs(e,t){var n=m({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=typeof e==`function`?m(m({},n),e(n)):m(m({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return m({},n)}}),t}var Ss=t((()=>{h()}));function Cs(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||=typeof t.query==`string`?``:ei(t.query)||void 0,t}var ws=t((()=>{K()}));function Ts(e,t){var n=m({},e),r=new Set(Object.keys(e));return P(t,{Variable:function(e,t,n){n&&n.kind!==`VariableDefinition`&&r.delete(e.name.value)}}),r.forEach(function(e){delete n[e]}),n}var Es=t((()=>{h(),ln()})),Ds=r({createOperation:()=>xs,filterOperationVariables:()=>Ts,fromError:()=>ds,fromPromise:()=>hs,throwServerError:()=>_s,toPromise:()=>ps,transformOperation:()=>Cs,validateOperation:()=>ys}),Os=t((()=>{fs(),ms(),gs(),vs(),bs(),Ss(),ws(),Es()}));function ks(e,t){return t?t(e):U.of()}function As(e){return typeof e==`function`?new q(e):e}function js(e){return e.request.length<=1}var q,Ms=t((()=>{k(),K(),Os(),q=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return U.of()})},e.from=function(t){return t.length===0?e.empty():t.map(As).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=As(n),a=As(r||new e(ks)),o=js(i)&&js(a)?new e(function(e){return t(e)?i.request(e)||U.of():a.request(e)||U.of()}):new e(function(e,n){return t(e)?i.request(e,n)||U.of():a.request(e,n)||U.of()});return Object.assign(o,{left:i,right:a})},e.execute=function(e,t){return e.request(xs(t.context,Cs(ys(t))))||U.of()},e.concat=function(t,n){var r=As(t);if(js(r))return globalThis.__DEV__!==!1&&O.warn(47,r),r;var i=As(n),a=js(i)?new e(function(e){return r.request(e,function(e){return i.request(e)||U.of()})||U.of()}):new e(function(e,t){return r.request(e,function(e){return i.request(e,t)||U.of()})||U.of()});return Object.assign(a,{left:r,right:i})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(ks)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw D(48)},e.prototype.onError=function(e,t){if(globalThis.__DEV__!==!1&&is(`onError`,function(){globalThis.__DEV__!==!1&&O.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&O.warn(50),this.onError=e,this},e}()})),Ns,Ps=t((()=>{Ms(),Ns=q.empty})),Fs,Is=t((()=>{Ms(),Fs=q.from})),Ls,Rs=t((()=>{Ms(),Ls=q.split})),zs,Bs=t((()=>{Ms(),zs=q.concat})),Vs,Hs=t((()=>{Ms(),Vs=q.execute})),Us=r({ApolloLink:()=>q,concat:()=>zs,empty:()=>Ns,execute:()=>Vs,from:()=>Fs,split:()=>Ls}),Ws=t((()=>{Ps(),Is(),Rs(),Bs(),Hs(),Ms()}));function Gs(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}var Ks=t((()=>{}));function qs(e){var t=null,n=null,r=!1,i=[],a=[];
55function o(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,a.slice().forEach(function(t){t[1](e)}),!t||t()}function c(){r=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener(`data`,o),e.removeListener(`error`,s),e.removeListener(`end`,c),e.removeListener(`finish`,c),e.removeListener(`close`,c)},e.on(`data`,o),e.on(`error`,s),e.on(`end`,c),e.on(`finish`,c),e.on(`close`,c);function l(){return new Promise(function(e,t){if(n)return t(n);if(i.length)return e({value:i.shift(),done:!1});if(r)return e({value:void 0,done:!0});a.push([e,t])})}var u={next:function(){return l()}};return jn&&(u[Symbol.asyncIterator]=function(){return this}),u}var Js=t((()=>{K()}));function Ys(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(t,n){e.then(function(e){t({value:e,done:!1})}).catch(n)}))}};return jn&&(n[Symbol.asyncIterator]=function(){return this}),n}var Xs=t((()=>{K()}));function Zs(e){var t={next:function(){return e.read()}};return jn&&(t[Symbol.asyncIterator]=function(){return this}),t}var Qs=t((()=>{K()}));function $s(e){return!!e.body}function ec(e){return!!e.getReader}function tc(e){return!!(jn&&e[Symbol.asyncIterator])}function nc(e){return!!e.stream}function rc(e){return!!e.arrayBuffer}function ic(e){return!!e.pipe}function ac(e){var t=e;if($s(e)&&(t=e.body),tc(t))return Gs(t);if(ec(t))return Zs(t.getReader());if(nc(t))return Zs(t.stream().getReader());if(rc(t))return Ys(t.arrayBuffer());if(ic(t))return qs(t);throw Error(`Unknown body type for responseIterator. Please pass a streamable response.`)}var oc=t((()=>{K(),Ks(),Js(),Xs(),Qs()}));function sc(e){return e.extensions?Array.isArray(e.extensions[lc]):!1}function cc(e){return e.hasOwnProperty(`graphQLErrors`)}var lc,uc,J,dc=t((()=>{h(),K(),lc=Symbol(),uc=function(e){var t=f(f(f([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return L(e)&&e.message||`Error message not found.`}).join(` 56`)},J=function(e){o(t,e);function t(n){var r=n.graphQLErrors,i=n.protocolErrors,a=n.clientErrors,o=n.networkError,s=n.errorMessage,c=n.extraInfo,l=e.call(this,s)||this;return l.name=`ApolloError`,l.graphQLErrors=r||[],l.protocolErrors=i||[],l.clientErrors=a||[],l.networkError=o||null,l.message=s||uc(l),l.extraInfo=c,l.cause=f(f(f([o],r||[],!0),i||[],!0),a||[],!0).find(function(e){return!!e})||null,l.__proto__=t.prototype,l}return t}(Error)}));function fc(e,t){return c(this,void 0,void 0,function(){var n,r,i,a,o,s,c,u,d,f,p,h,g,_,v,y,b,x,S,C,w,T,ee;return l(this,function(l){switch(l.label){case 0:if(TextDecoder===void 0)throw Error(`TextDecoder must be defined in the environment: please import a polyfill.`);n=new TextDecoder(`utf-8`),r=e.headers?.get(`content-type`),i=`boundary=`,a=r?.includes(i)?r?.substring(r?.indexOf(i)+i.length).replace(/['"]/g,``).replace(/\;(.*)/gm,``).trim():`-`,o=`\r 57--${a}`,s=``,c=ac(e),u=!0,l.label=1;case 1:return u?[4,c.next()]:[3,3];case 2:for(d=l.sent(),f=d.value,p=d.done,h=typeof f==`string`?f:n.decode(f),g=s.length-o.length+1,u=!p,s+=h,_=s.indexOf(o,g);_>-1;){if(v=void 0,T=[s.slice(0,_),s.slice(_+o.length)],v=T[0],s=T[1],y=v.indexOf(`\r 58\r 59`),b=pc(v.slice(0,y)),x=b[`content-type`],x&&x.toLowerCase().indexOf(`application/json`)===-1)throw Error(`Unsupported patch content type: application/json is required.`);if(S=v.slice(y),S){if(C=mc(e,S),Object.keys(C).length>1||`data`in C||`incremental`in C||`errors`in C||`payload`in C)if(Ho(C)){if(w={},`payload`in C){if(Object.keys(C).length===1&&C.payload===null)return[2];w=m({},C.payload)}`errors`in C&&(w=m(m({},w),{extensions:m(m({},`extensions`in w?w.extensions:null),(ee={},ee[lc]=C.errors,ee))})),t(w)}else t(C);else if(Object.keys(C).length===1&&`hasNext`in C&&!C.hasNext)return[2]}_=s.indexOf(o)}return[3,1];case 3:return[2]}})})}function pc(e){var t={};return e.split(` 60`).forEach(function(e){var n=e.indexOf(`:`);if(n>-1){var r=e.slice(0,n).trim().toLowerCase();t[r]=e.slice(n+1).trim()}}),t}function mc(e,t){e.status>=300&&_s(e,function(){try{return JSON.parse(t)}catch{return t}}(),`Response not successful: Received status code ${e.status}`);try{return JSON.parse(t)}catch(r){var n=r;throw n.name=`ServerParseError`,n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function hc(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function gc(e){return function(t){return t.text().then(function(e){return mc(t,e)}).then(function(n){return!Array.isArray(n)&&!_c.call(n,`data`)&&!_c.call(n,`errors`)&&_s(t,
60n,`Server response was missing for query '${Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName}'.`),n})}}var _c,vc=t((()=>{h(),oc(),Os(),dc(),Wo(),_c=Object.prototype.hasOwnProperty})),yc,bc=t((()=>{k(),yc=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=D(54,t,e.message);throw r.parseError=e,r}return n}}));function xc(e,t){var n=[...arguments].slice(2);return n.unshift(t),Sc.apply(void 0,f([e,Oc],n,!1))}function Sc(e,t){var n=[...arguments].slice(2),r={},i={};n.forEach(function(e){r=m(m(m({},r),e.options),{headers:m(m({},r.headers),e.headers)}),e.credentials&&(r.credentials=e.credentials),i=m(m({},i),e.http)}),r.headers&&=Cc(r.headers,i.preserveHeaderCase);var a=e.operationName,o=e.extensions,s=e.variables,c=e.query,l={operationName:a,variables:s};return i.includeExtensions&&(l.extensions=o),i.includeQuery&&(l.query=t(c,ia)),{options:r,body:l}}function Cc(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEac
60h(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}var wc,Tc,Ec,Dc,Oc,kc=t((()=>{h(),K(),wc={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Tc={accept:`*/*`,"content-type":`application/json`},Ec={method:`POST`},Dc={http:wc,headers:Tc,options:Ec},Oc=function(e,t){return t(e)}})),Ac,jc=t((()=>{k(),Ac=function(e){if(!e&&typeof fetch>`u`)throw D(51)}})),Mc,Nc=t((()=>{Mc=function(){if(typeof AbortController>`u`)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}})),Pc,Fc=t((()=>{Pc=function(e,t){return e.getContext().uri||(typeof t==`function`?t(e):t||`/graphql`)}}));function Ic(e,t){var n=[],r=function(e,t){n.push(`${e}=${encodeURIComponent(t)}`)};if(`query`in t&&r(`query`,t.query),t.operationName&&r(`operationName`,t.operationName),t.variables){var i=void 0;try{i=yc(t.variables,`Variables map`)}catch(e){return{parseError:e}}r(`variables`,i)}if(t.extensions){var a=void 0;try{a=yc(t.extensions,`Extensions map`)}catch(e){return{parseError:e}}r(`extensions`,a)}var o=``,s=e,c=e.indexOf(`#`);c!==-1&&(o=e.substr(c),s=e.substr(0,c));var l=s.indexOf(`?`)===-1?`?`:`&`;return{newURI:s+l+n.join(`&`)+o}}var Lc=t((()=>{bc()})),Rc,zc,Bc=t((()=>{h(),k(),Ws(),K(),bc(),Fc(),vc(),jc(),kc(),Lc(),Os(),Rc=E(function(){return fetch}),zc=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?`/graphql`:t,r=e.fetch,i=e.print,a=i===void 0?Oc:i,o=e.includeExtensions,c=e.preserveHeaderCase,l=e.useGETForQueries,u=e.includeUnusedVariables,d=u===void 0?!1:u,f=s(e,[`uri`,`fetch`,`print`,`includeExtensions`,`preserveHeaderCase`,`useGETForQueries`,`includeUnusedVariables`]);globalThis.__DEV__!==!1&&Ac(r||Rc);var p={http:{includeExtensions:o,preserveHeaderCase:c},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new q(function(e){var t=Pc(e,n),i=e.getContext(),o={};if(i.clientAwareness){var s=i.clientAwareness,c=s.name,u=s.version;c&&(o[`apollographql-client-name`]=c),u&&(o[`apollographql-client-version`]=u)}var f=m(m({},o),i.headers),h={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:f};if(fn([`client`],e.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&O.warn(52);var g=_a(e.query);if(!g)return ds(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=g}var _=Sc(e,a,Dc,p,h),v=_.options,y=_.body;y.variables&&!d&&(y.variables=Ts(y.variables,e.query));var b;
60!v.signal&&typeof AbortController<`u`&&(b=new AbortController,v.signal=b.signal);var x=function(e){return e.kind===`OperationDefinition`&&e.operation===`mutation`},S=function(e){return e.kind===`OperationDefinition`&&e.operation===`subscription`}(ii(e.query)),C=fn([`defer`],e.query);if(l&&!e.query.definitions.some(x)&&(v.method=`GET`),C||S){v.headers=v.headers||{};var w=`multipart/mixed;`;S&&C&&globalThis.__DEV__!==!1&&O.warn(53),S?w+=`boundary=graphql;subscriptionSpec=1.0,application/json`:C&&(w+=`deferSpec=20220824,application/json`),v.headers.accept=w}if(v.method===`GET`){var T=Ic(t,y),ee=T.newURI,te=T.parseError;if(te)return ds(te);t=ee}else try{v.body=yc(y,`Payload`)}catch(e){return ds(e)}return new U(function(n){var i=r||E(function(){return fetch})||Rc,a=n.next.bind(n);return i(t,v).then(function(t){e.setContext({response:t});var n=t.headers?.get(`content-type`);return n!==null&&/^multipart\/mixed/i.test(n)?fc(t,a):gc(e)(t).then(a)}).then(function(){b=void 0,n.complete()}).catch(function(e){b=void 0,hc(e,n)}),function(){b&&b.abort()}})})}})),Vc,Hc=t((()=>{h(),Ws(),Bc(),Vc=function(e){o(t,e);function t(t){t===void 0&&(t={});var n=e.call(this,zc(t).request)||this;return n.options=t,n}return t}(q)})),Uc=t((()=>{vc(),bc(),kc(),jc(),Nc(),Fc(),Bc(),Hc(),Lc()}));function Y(e,t){try{return Wc(e,t)}finally{Qc.clear()}}function Wc(e,t){if(e===t)return!0;let n=Yc.call(e);if(n!==Yc.call(t))return!1;switch(n){case`[object Array]`:if(e.length!==t.length)return!1;case`[object Object]`:{if(Jc(e,t))return!0;let n=Gc(e),r=Gc(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!Xc.call(t,n[e]))return!1;for(let r=0;r<i;++r){let i=n[r];if(!Wc(e[i],t[i]))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(Jc(e,t))return!0;let r=e.entries(),i=n===`[object Map]`;for(;;){let e=r.next();if(e.done)break;let[n,a]=e.value;if(!t.has(n)||i&&!Wc(a,t.get(n)))return!1}return!0}case`[object Uint16Array]`:case`[object Uint8Array]`:case`[object Uint32Array]`:case`[object Int32Array]`:case`[object Int8Array]`:case`[object Int16Array]`:case`[object ArrayBuffer]`:e=new Uint8Array(e),t=new Uint8Array(t);case`[object DataView]`:{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}case`[object AsyncFunction]`:case`[object GeneratorFunction]`:case`[object AsyncGeneratorFunction]`:case`[object Function]`:{let n=Zc.call(e);return n===Zc.call(t)?!qc(n,$c):!1}}return!1}function Gc(e){return Object.keys(e).filter(Kc,e)}function Kc(e){return this[e]!==void 0}function qc(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function Jc(e,t){let n=Qc.get(e);if(n){if(n.has(t))return!0}else Qc.set(e,n=new Set);return n.add(t),!1}var Yc,Xc,Zc,Qc,$c,el=t((()=>{({toString:Yc,hasOwnProperty:Xc}=Object.prototype),Zc=Function.prototype.toString,Qc=new Map,$c=`{ [native code] }`}));function tl(e,t,n,r){var i=t.data,a=s(t,[`data`]),o=n.data;return Y(a,s(n,[`data`]))&&nl(ii(e).selectionSet,i,o,{fragmentMap:zn(ti(e)),variables:r})}function nl(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every(function(e){if(i.has(e)||(i.add(e),!un(e,r.variables))||rl(e))return!0;if(Kr(e)){var a=Wr(e),o=t&&t[a],s=n&&n[a],c=e.selectionSet;if(!c)return Y(o,s);var l=Array.isArray(o),u=Array.isArray(s);if(l!==u)return!1;if(l&&u){var d=o.length;if(s.length!==d)return!1;for(var f=0;f<d;++f)if(!nl(c,o[f],s[f],r))return!1;return!0}return nl(c,o,s,r)}else{var p=Bn(e,r.fragmentMap);if(p)return rl(p)?!0:nl(p.selectionSet,t,n,r)}})}function rl(e){return!!e.directives&&e.directives.some(il)}function il(e){return e.name.value===`nonreactive`}var al=t((()=>{h(),el(),K()}));function ol(){ul||(ul=!0,globalThis.__DEV__!==!1&&O.warn(64))}var sl,cl,ll,ul,dl=t((()=>{$i(),k(),K(),sl=On?WeakMap:Map,cl=kn?WeakSet:Set,ll=new pi,ul=!1}));function fl(e,t,n){return ll.withValue(!0,function(){var r=ml(e,t,n,!1);return Object.isFrozen(e)&&Oo(r),r})}function pl(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function ml(e,t,n,r,i){var a=n.knownChanged,o=pl(e,n.mutableTargets);if(Array.isArray(e)){for(var s=0,c=Array.from(e.entries());s<c.length;s++){var l=c[s],u=l[0],d=l[1];if(d===null){o[u]=null;continue}var f=ml(d,t,n,r,globalThis.__DEV__===!1?void 0:`${i||``}[${u}]`);a.has(f)&&a.add(o),o[u]=f}return a.has(o)?o:e}for(var p=0,m=t.selections;p<m.length;p++){var h=m[p],g=void 0;if(r&&a.add(o),h.kind===A.FIELD){var _=Wr(h),v=h.selectionSet;if(g=o[_]||e[_],g===void 0)continue;if(v&&g!==null){var f=ml(e[_],v,n,r,globalThis.__DEV__===!1?void 0:`${i||``}.${_}`);a.has(f)&&(g=f)}globalThis.__DEV__===!1&&(o[_]=g),globalThis.__DEV__!==!1&&(r&&_!==`__typename`&&!Object.getOwnPropertyDescriptor(o,_)?.value?Object.defineProperty(o,_,hl(_,g,i||``,n.operationName,n.operationType)):(delete o[_],o[_]=g))}if(h.kind===A.INLINE_FRAGMENT&&(!h.typeCondition||n.cache.fragmentMatches(h,e.__typename))&&(g=ml(e,h.selectionSet,n,r,i)),h.kind===A.FRAGMENT_SPREAD){var y=h.name.value,b=n.fragmentMap[y]||(n.fragmentMap[y]=n.cache.lookupFragment(y));O(b,59,y);var x=gn(h);x!==`mask`&&(g=ml(e,b.selectionSet,n,x===`migrate`,i))}a.has(g)&&a.add(o)}return`__typename`in e&&!(`__typename`in o)&&(o.__typename=e.__typename),Object.keys(o).length!==Object.keys(e).length&&a.add(o),a.has(o)?o:e}function hl(e,t,n,r,i){var a=function(){return ll.getValue()?t:(globalThis.__DEV__!==!1&&O.warn(60,r?`${i} '${r}'`:`anonymous ${i}`,`${n}.${e}`.replace(/^\./,``)),a=function(){return t},t)};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}var gl=t((()=>{ln(),K(),dl(),k()}));function _l(e,t,n,r){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&ol(),e;var i=t.definitions.filter(function(e){return e.kind===A.FRAGMENT_DEFINITION});r===void 0&&(O(i.length===1,61,i.length),r=i[0].name.value);var a=i.find(function(e){return e.name.value===r});return O(!!a,62,r),e==null||Y(e,{})?e:fl(e,a.selectionSet,{operationType:`fragment`,operationName:a.name.value,fragmentMap:zn(ti(t)),cache:n,mutableTargets:new sl,knownChanged:new cl})}var vl=t((()=>{ln(),dl(),k(),el(),gl(),K()}));function yl(e,t,n){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&ol(),e;var r=$r(t);return O(r,63),e==null?e:fl(e,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:zn(ti(t)),cache:n,mutableTargets:new sl,knownChanged:new cl})}var bl=t((()=>{k(),K(),gl(),dl()})),xl=t((()=>{dl(),vl(),bl()}
60)),Sl,Cl=t((()=>{h(),$i(),K(),er(),wr(),al(),k(),xl(),Sl=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Xi(Rn,{max:R[`cache.fragmentQueryDocuments`]||1e3,cache:Qn})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t=this,n=typeof e.optimistic==`string`?e.optimistic:e.optimistic===!1?null:void 0,r;return this.performTransaction(function(){return r=e.update(t)},n),r},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var n=this;return t===void 0&&(t=!!e.optimistic),globalThis.__DEV__!==!1&&G(e,`canonizeResults`,`cache.readQuery`),W(`canonizeResults`,function(){return n.read(m(m({},e),{rootId:e.id||`ROOT_QUERY`,optimistic:t}))})},e.prototype.watchFragment=function(e){var t=this,n=e.fragment,r=e.fragmentName,i=e.from,a=e.optimistic,o=a===void 0?!0:a,c=s(e,[`fragment`,`fragmentName`,`from`,`optimistic`]),l=this.getFragmentDoc(n,r),u=i===void 0||typeof i==`string`?i:this.identify(i),d=!!e[Symbol.for(`apollo.dataMasking`)];if(globalThis.__DEV__!==!1){var f=r||ri(n).name.value;u||globalThis.__DEV__!==!1&&O.warn(1,f)}var p=m(m({},c),{returnPartialData:!0,id:u,query:l,optimistic:o}),h;return new U(function(i){return t.watch(m(m({},p),{immediate:!0,callback:function(a){var o=d?_l(a.result,n,t,r):a.result;if(!(h&&tl(l,{data:h.result},{data:o},e.variables))){var s={data:o,complete:!!a.complete};a.missing&&(s.missing=ka(a.missing.map(function(e){return e.missing}))),h=m(m({},a),{result:o}),i.next(s)}}}))})},e.prototype.readFragment=function(e,t){var n=this;return t===void 0&&(t=!!e.optimistic),globalThis.__DEV__!==!1&&G(e,`canonizeResults`,`cache.readFragment`),W(`canonizeResults`,function(){return n.read(m(m({},e),{query:n.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=s(e,[`id`,`data`]);return this.write(Object.assign(r,{dataId:t||`ROOT_QUERY`,result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=s(e,[`id`,`data`,`fragment`,`fragmentName`]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return globalThis.__DEV__!==!1&&G(e,`canonizeResults`,`cache.updateQuery`),this.batch({update:function(n){var r=W(`canonizeResults`,function(){return n.readQuery(e)}),i=t(r);return i==null?r:(n.writeQuery(m(m({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return globalThis.__DEV__!==!1&&G(e,`canonizeResults`,`cache.updateFragment`),this.batch({update:function(n){var r=W(`canonizeResults`,function(){return n.readFragment(e)}),i=t(r);return i==null?r:(n.writeFragment(m(m({},e),{data:i})),i)}})},e}(),globalThis.__DEV__!==!1&&(Sl.prototype.getMemoryInternals=Cr)})),wl,Tl=t((()=>{wl||={}})),El,Dl=t((()=>{h(),El=function(e){o(t,e);function t(n,r,i,a){var o,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=(o={},o[s.path[c]]=s.missing,o)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error)}));function Ol(e){return e==null}function kl(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n==`string`&&(t&&(t.keyObject=Ol(r)?Ol(i)?void 0:{_id:i}:{id:r}),Ol(r)&&!Ol(i)&&(r=i),!Ol(r)))return`${n}:${typeof r==`number`||typeof r==`string`?r:JSON.stringify(r)}`}function Al(e){return Jo(Rl,e)}function jl(e){var t=e.canonizeResults;return t===void 0?Rl.canonizeResults:t}function Ml(e,t){return z(t)?e.get(t.__ref,`__typename`):t&&t.__typename}function Nl(e){var t=e.match(zl);return t?t[0]:e}function Pl(e,t,n){return L(t)?H(t)?t.every(function(t){return Pl(e,t,n)}):e.selections.every(function(e){if(Kr(e)&&un(e,n)){var r=Wr(e);return X.call(t,r)&&(!e.selectionSet||Pl(e.selectionSet,t[r],n))}return!0}):!1}function Fl(e){return L(e)&&!z(e)&&!H(e)}function Il(){return new Ma}function Ll(e,t){var n=zn(ti(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var X,Rl,zl,Bl=t((()=>{K(),X=Object.prototype.hasOwnProperty,Rl={dataIdFromObject:kl,addTypename:!0,resultCaching:!0,canonizeResults:!1},zl=/^[_a-z][_0-9a-z]*/i}));function Vl(e,t){return t+`#`+e}function Hl(e,t){Wl(e)&&e.group.depend(t,`__exists`)}function Ul(e,t,n){var r=e[n],i=t[n];return Y(r,i)?r:i}function Wl(e){return!!(e instanceof Jl&&e.group.caching)}var Gl,Kl,ql,Jl,Yl,Xl,Zl,Ql=t((()=>{h(),k(),$i(),el(),En(),K(),Bl(),Gl=Object.create(null),Kl=function(){return Gl},ql=Object.create(null),Jl=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return Oo(z(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return z(e)?n.has(e.__ref):typeof e==`object`},this.toReference=function(e,t){if(typeof e==`string`)return Ar(e);if(z(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Ar(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return m({},this.data)},e.prototype.has=function(e){return this.lookup(e,!0)!==void 0},e.prototype.get=function(e,t){if(this.group.depend(e,t),X.call(this.data,e)){var n=this.data[e];if(n&&X.call(n,t))return n[t]}if(t===`__typename`&&X.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof Xl)return this.parent.get(e,t)},e.prototype.lookup=function(e,t){if(t&&this.group.depend(e,`__exists`),X.call(this.data,e))return this.data[e];if(this instanceof Xl)return this.parent.lookup(e,t);if(this.policies.rootTypenamesById[e])return Object.create(null)},e.prototype.merge=function(e,t){var n=this,r;z(e)&&(e=e.__ref),z(t)&&(t=t.__ref);var i=typeof e==`string`?this.lookup(r=e):e,a=typeof t==`string`?this.lookup(r=t):t;if(a){O(typeof r==`string`,2);
60var o=new Ma(Ul).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=Nl(e);t!==e&&!n.policies.hasKeyArgs(o.__typename,t)&&(s[t]=1),o[e]===void 0&&!(n instanceof Xl)&&delete o[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,o=!0,s={DELETE:Gl,INVALIDATE:ql,isReference:z,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField(typeof t==`string`?{fieldName:t,from:r||Ar(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(c){var l=Nl(c),u=r[c];if(u!==void 0){var d=typeof t==`function`?t:t[c]||t[l];if(d){var f=d===Kl?Gl:d(Oo(u),m(m({},s),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));if(f===ql)n.group.dirty(e,c);else if(f===Gl&&(f=void 0),f!==u&&(i[c]=f,a=!0,u=f,globalThis.__DEV__!==!1)){var p=function(e){if(n.lookup(e.__ref)===void 0)return globalThis.__DEV__!==!1&&O.warn(3,e),!0};if(z(f))p(f);else if(Array.isArray(f))for(var h=!1,g=void 0,_=0,v=f;_<v.length;_++){var y=v[_];
60if(z(y)){if(h=!0,p(y))break}else typeof y==`object`&&y&&n.policies.identify(y)[0]&&(g=y);if(h&&g!==void 0){globalThis.__DEV__!==!1&&O.warn(4,g);break}}}}u!==void 0&&(o=!1)}}),a)return this.merge(e,i),o&&(this instanceof Xl?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,`__exists`)),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,`__typename`),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?(r={},r[o]=Kl,r):Kl)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(X.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof Xl&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||`__exists`)),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){X.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&X.call(e,n)||t.delete(n)}),e){var n=e.__META,r=s(e,[`__META`]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Xl?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){X.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof Xl;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!X.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){z(e)&&(t[e.__ref]=!0),L(e)&&Object.keys(e).forEach(function(t){var n=e[t];L(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Yl=function(){function e(e,t){t===void 0&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Ki():null,this.keyMaker=new Tn(On)}
60,e.prototype.depend=function(e,t){if(this.d){this.d(Vl(e,t));var n=Nl(t);n!==t&&this.d(Vl(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Vl(e,t),t===`__exists`?`forget`:`setDirty`)},e}(),(function(e){e.Root=function(e){o(t,e);function t(t){var n=t.policies,r=t.resultCaching,i=r===void 0?!0:r,a=t.seed,o=e.call(this,n,new Yl(i))||this;return o.stump=new Zl(o),o.storageTrie=new Tn(On),a&&o.replace(a),o}return t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e)})(Jl||={}),Xl=function(e){o(t,e);function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){Y(r[n],i[n])||t.group.dirty(e,n)}
60):(t.group.dirty(e,`__exists`),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return m(m({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return X.call(this.data,t)?m(m({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Jl),Zl=function(e){o(t,e);function t(t){return e.call(this,`EntityStore.Stump`,t,function(){},new Yl(t.group.caching,t.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(Xl)}));function $l(e){return L(e)?H(e)?e.slice(0):m({__proto__:Object.getPrototypeOf(e)},e):e}var eu,tu=t((()=>{h(),En(),K(),Bl(),eu=function(){function e(){this.known=new(kn?WeakSet:Set),this.pool=new Tn(On),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return L(e)&&this.known.has(e)},e.prototype.pass=function(e){if(L(e)){var t=$l(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(L(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return i.array||(this.known.add(i.array=r),globalThis.__DEV__!==!1&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))return e;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var c=o.length;s.sorted.forEach(function(n){o.push(t.admit(e[n]))});var i=this.pool.lookupArray(o);if(!i.object){var l=i.object=Object.create(a);this.known.add(l),s.sorted.forEach(function(e,t){l[e]=o[c+t]}),globalThis.__DEV__!==!1&&Object.freeze(l)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}()}));function nu(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}function ru(e){try{JSON.stringify(e,function(e,t){if(typeof t==`string`)throw t;return t})}catch(e){return e}}function iu(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){L(n)&&(O(!z(n),11,Ml(e,n),t.name.value),Object.values(n).forEach(r.add,r))})}}var au,ou=t((()=>{h(),k(),ln(),$i(),K(),Ql(),Bl(),Dl(),tu(),au=function(){function e(e){var t=this;this.knownResults=new(On?WeakMap:Map),this.config=Jo(e,{addTypename:e.addTypename!==!1,canonizeResults:jl(e)}),this.canon=e.canon||new eu,this.executeSelectionSet=Xi(function(e){var n,r=e.context.canonizeResults,i=nu(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?m(m({},a),{result:t.canon.admit(a.result)}):a:(Hl(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||R[`inMemoryCache.executeSelectionSet`]||5e4,keyArgs:nu,makeCacheKey:function(e,t,n,r){if(Wl(n.store))return n.store.makeCacheKey(e,z(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=Xi(function(e){return Hl(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||R[`inMemoryCache.executeSubSelectedArray`]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(Wl(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new eu},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=r===void 0?`ROOT_QUERY`:r,a=e.variables,o=e.returnPartialData,s=o===void 0?!0:o,c=e.canonizeResults,l=c===void 0?this.config.canonizeResults:c,u=this.config.cache.policies;a=m(m({},ai(ni(n))),a);var d=Ar(i),f=this.executeSelectionSet({selectionSet:ii(n).selectionSet,objectOrReference:d,enclosingRef:d,context:m({store:t,query:n,policies:u,variables:a,varString:Dr(a),canonizeResults:l},Ll(n,this.config.fragments))}),p;if(f.missing&&(p=[new El(ru(f.missing),f.missing,n,a)],!s))throw p[0];return{result:f.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,n,r){if(Wl(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,a=e.context;if(z(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:`Dangling reference to missing ${r.__ref} object`};var o=a.variables,s=a.policies,c=a.store.getFieldValue(r,`__typename`),l=[],u,d=new Ma;this.config.addTypename&&typeof c==`string`&&!s.rootIdsByTypename[c]&&l.push({__typename:c}
60);function f(e,t){var n;return e.missing&&(u=d.merge(u,(n={},n[t]=e.missing,n))),e.result}var p=new Set(n.selections);p.forEach(function(e){var n,m;if(un(e,o))if(Kr(e)){var h=s.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),g=Wr(e);h===void 0?ba.added(e)||(u=d.merge(u,(n={},n[g]=`Can't find field '${e.name.value}' on ${z(r)?r.__ref+` object`:`object `+JSON.stringify(r,null,2)}`,n))):H(h)?h.length>0&&(h=f(t.executeSubSelectedArray({field:e,array:h,enclosingRef:i,context:a}),g)):e.selectionSet?h!=null&&(h=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:z(h)?h:i,context:a}),g)):a.canonizeResults&&(h=t.canon.pass(h)),h!==void 0&&l.push((m={},m[g]=h,m))}else{var _=Bn(e,a.lookupFragment);if(!_&&e.kind===A.FRAGMENT_SPREAD)throw D(10,e.name.value);_&&s.fragmentMatches(_,c)&&_.selectionSet.selections.forEach(p.add,p)}});var m={result:ka(l),missing:u},h=a.canonizeResults?this.canon.admit(m):Oo(m);return h.result&&this.knownResults.set(h.result,n),h},e.prototype.execSubSelectedArrayImpl=function(e){var t=this,n=e.field,r=e.array,i=e.enclosingRef,a=e.context,o,s=new Ma;function c(e,t){var n;return e.missing&&(o=s.merge(o,(n={},n[t]=e.missing,n))),e.result}return n.selectionSet&&(r=r.filter(a.store.canRead)),r=r.map(function(e,r){return e===null?null:H(e)?c(t.executeSubSelectedArray({field:n,array:e,enclosingRef:i,context:a}),r):n.selectionSet?c(t.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:z(e)?e:i,context:a}),r):(globalThis.__DEV__!==!1&&iu(a.store,n,e),e)}),{result:a.canonizeResults?this.canon.admit(r):r,missing:o}},e}()}));function su(e){var t=pu.get(e);return t||pu.set(e,t={vars:new Set,dep:Ki()}),t}function cu(e){su(e).vars.forEach(function(t){return t.forgetCache(e)})}function lu(e){su(e).vars.forEach(function(t){return t.attachCache(e)})}function uu(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){su(e).dep.dirty(r),du(e)});var o=Array.from(n);n.clear(),o.forEach(function(t){return t(e)})}}else{var s=fu.getValue();s&&(i(s),su(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),su(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function du(e){e.broadcastWatches&&e.broadcastWatches()}var fu,pu,mu=t((()=>{$i(),fu=new pi,pu=new WeakMap}));function hu(e){var t=JSON.stringify(e);return Cu[t]||(Cu[t]=Object.create(null))}function gu(e){var t=hu(e);return t.keyFieldsFn||=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=vu(e,function(e){var i=xu(n.storeObject,e,r);return i===void 0&&t!==n.storeObject&&X.call(t,e[0])&&(i=xu(t,e,bu)),O(i!==void 0,5,e.join(`.`),t),i});return`${n.typename}:${JSON.stringify(i)}`}}function _u(e){var t=hu(e);return t.keyArgsFn||=function(t,n){var r=n.field,i=n.variables,a=n.fieldName,o=vu(e,function(e){var n=e[0],a=n.charAt(0);if(a===`@`){if(r&&V(r.directives)){var o=n.slice(1),s=r.directives.find(function(e){return e.name.value===o}),c=s&&Ur(s,i);return c&&xu(c,e.slice(1))}return}if(a===`$`){var l=n.slice(1);if(i&&X.call(i,l)){var u=e.slice(0);return u[0]=l,xu(i,u)}return}if(t)return xu(t,e)}),s=JSON.stringify(o);return(t||s!==`{}`)&&(a+=`:`+s),a}}function vu(e,t){var n=new Ma;return yu(e).reduce(function(e,r){var i,a=t(r);if(a!==void 0){for(var o=r.length-1;o>=0;--o)a=(i={},i[r[o]]=a,i);e=n.merge(e,a)}return e},Object.create(null))}function yu(e){var t=hu(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(t,i){H(t)?(yu(t).forEach(function(e){return n.push(r.concat(e))}),r.length=0):(r.push(t),H(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function bu(e,t){return e[t]}function xu(e,t,n){return n||=bu,Su(t.reduce(function e(t,r){return H(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function Su(e){return L(e)?H(e)?e.map(Su):vu(Object.keys(e).sort(),function(t){return xu(e,t)}):e}var Cu,wu=t((()=>{k(),K(),Bl(),Cu=Object.create(null)}));function Tu(e){return e.args===void 0?e.field?Ur(e.field,e.variables):null:e.args}function Eu(e,t,n,r,i){var a=e.getStoreFieldName(n),o=Nl(a),s=n.variables||r.variables,c=r.store,l=c.toReference,u=c.canRead;return{args:Tu(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:z,toReference:l,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(Du(arguments,t,s),r)},mergeObjects:Ou(r.store)}}function Du(e,t,n){var r=e[0],i=e[1],a=e.length,o;return typeof r==`string`?o={fieldName:r,from:a>1?i:t}:(o=m({},r),X.call(o,`from`)||(o.from=t)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&O.warn(8,ce(Array.from(e))),o.variables===void 0&&(o.variables=n),o}function Ou(e){return function(t,n){if(H(t)||H(n))throw D(9);if(L(t)&&L(n)){var r=e.getFieldValue(t,`__typename`),i=e.getFieldValue(n,`__typename`);if(r&&i&&r!==i)return n;if(z(t)&&Fl(n))return e.merge(t.__ref,n),t;if(Fl(t)&&z(n))return e.merge(t,n.__ref),n;if(Fl(t)&&Fl(n))return m(m({},t),n)}return n}}var ku,Au,ju,Mu,Nu,Pu=t((()=>{h(),k(),K(),Bl(),mu(),wu(),xl(),ku=function(){},Au=function(e,t){return t.fieldName},ju=function(e,t,n){var r=n.mergeObjects;return r(e,t)},Mu=function(e,t){return t},Nu=function(){function e(e){this.config=e,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=m({dataIdFromObject:kl},e),this.cache=this.config.cache,this.setRootTypename(`Query`),this.setRootTypename(`Mutation`),this.setRootTypename(`Subscription`),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n=this,r=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return[`ROOT_QUERY`];var i=t&&t.storeObject||e,a=m(m({},t),{typename:r,storeObject:i,readField:t&&t.readField||function(){var e=Du(arguments,i);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),o,s=r&&this.getTypePolicy(r),c=s&&s.keyFn||this.config.dataIdFromObject;return ll.withValue(!0,function(){for(;c;){var t=c(m(m({},e),i),a);if(H(t))c=gu(t);else{o=t;break}}}),o=o?String(o):void 0,a.keyObject?[o,a.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,a=r.mutationType,o=r.subscriptionType,c=s(r,[`queryType`,`mutationType`,`subscriptionType`]);i&&t.setRootTypename(`Query`,n),a&&t.setRootTypename(`Mutation`,n),o&&t.setRootTypename(`Subscription`,n),X.call(t.toBeAdded,n)?t.toBeAdded[n].push(c):t.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(e,t,n){var r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge=typeof t==`function`?t:t===!0?ju:t===!1?Mu:e.merge}o(r,t.merge),r.keyFn=i===!1?ku:H(i)?gu(i):typeof i==`function`?i:r.keyFn,a&&Object.keys(a).forEac
60h(function(t){var r=n[t];(!r||r?.typename!==e)&&(r=n[t]={typename:e});var i=a[t];if(typeof i==`function`)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=s===!1?Au:H(s)?_u(s):typeof s==`function`?s:r.keyFn,typeof c==`function`&&(r.read=c),o(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||Au)})},e.prototype.setRootTypename=function(e,t){t===void 0&&(t=e);var n=`ROOT_`+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(O(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(zl);(!r||r[0]!==e)&&t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!X.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,i){if(n.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return r.add(e)})}})),r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields,a=s(r,[`fields`]);Object.assign(n,a),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!!(n&&this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var f=s[d];if(f.has(a))return o.has(a)||(u&&globalThis.__DEV__!==!1&&O.warn(7,t,a),o.add(a)),!0;f.forEach(c),l&&d===s.length-1&&Pl(e.selectionSet,n,r)&&(l=!1,u=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t=e.typename,n=e.fieldName,r=this.getFieldPolicy(t,n),i,a=r&&r.keyFn;if(a&&t)for(var o={typename:t,fieldName:n,field:e.field||null,variables:e.variables},s=Tu(e);a;){var c=a(s,o);if(H(c))a=_u(c);else{i=c||n;break}}return i===void 0&&(i=e.field?Hr(e.field,e.variables):Xr(n,Tu(e))),i===!1?n:n===Nl(i)?i:n+`:`+i},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(e.typename===void 0){var r=t.store.getFieldValue(n,`__typename`);r&&(e.typename=r)}var i=this.getStoreFieldName(e),a=Nl(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a),c=s&&s.read;if(c){var l=Eu(this,n,e,t,t.store.getStorage(z(n)?n.__ref:n,i));return fu.withValue(this.cache,c,[o,l])}return o}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t),i=r&&r.merge;return!i&&n&&(r=this.getTypePolicy(n),i=r&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===ju?Ou(r.store)(e,t):s===Mu?t:(r.overwrite&&(e=void 0),s(e,t,Eu(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}()}));function Fu(e,t,n){var r=`${t}${n}`,i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:m(m({},e),{clientOnly:t,deferred:n})),i}function Iu(e,t){var n=e.map;return n.has(t)||n.set(t,Hu.pop()||{map:new Map}),n.get(t)}function Lu(e,t){if(e===t||!t||Ru(t))return e;if(!e||Ru(e))return t;var n=e.info&&t.info?m(m({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var a=new Set(t.map.keys());
60e.map.forEach(function(e,n){i.map.set(n,Lu(e,t.map.get(n))),a.delete(n)}),a.forEach(function(n){i.map.set(n,Lu(t.map.get(n),e.map.get(n)))})}return i}function Ru(e){return!e||!(e.info||e.map.size)}function zu(e,t){var n=e.map,r=n.get(t);r&&Ru(r)&&(Hu.push(r),n.delete(t))}function Bu(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return typeof t==`object`&&t},a=i(e);if(a){var o=i(t);if(o&&!z(a)&&!Y(a,o)&&!Object.keys(a).every(function(e){return r.getFieldValue(o,e)!==void 0})){var s=r.getFieldValue(e,`__typename`)||r.getFieldValue(t,`__typename`),c=Nl(n),l=`${s}.${c}`;if(!Uu.has(l)){Uu.add(l);var u=[];!H(a)&&!H(o)&&[a,o].forEach(function(e){var t=r.getFieldValue(e,`__typename`);typeof t==`string`&&!u.includes(t)&&u.push(t)}),globalThis.__DEV__!==!1&&O.warn(15,c,s,u.length?`either ensure all objects of type `+u.join(` and `)+` have an ID or a custom merge function, or `:``,l,m({},a),m({},o))}}}}var Vu,Hu,Uu,Wu=t((()=>{h(),k(),el(),En(),ln(),K(),Bl(),Pu(),Vu=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,c=$r(r),l=Il();o=m(m({},ai(c)),o);var u=m(m({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:o,varString:Dr(o)},Ll(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!z(d))throw D(12,i);return u.incomingById.forEach(function(t,r){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=Ar(r);if(a&&a.map.size){var c=n.applyMerges(a,s,i,u);if(z(c))return;i=c}if(globalThis.__DEV__!==!1&&!u.overwrite){var l=Object.create(null);o.forEach(function(e){e.selectionSet&&(l[e.name.value]=!0)});var d=function(e){return l[Nl(e)]===!0},f=function(e){var t=a&&a.map.get(e);return!!(t&&t.info&&t.info.merge)};
60Object.keys(i).forEach(function(e){d(e)&&!f(e)&&Bu(s,i,e,u.store)})}e.merge(r,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||Gr(r,i,a.fragmentMap)||n&&a.store.get(n,`__typename`);typeof l==`string`&&(c.__typename=l);var u=function(){var e=Du(arguments,c,a.variables);if(z(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=s.readField(m(m({},e),{from:t.storeObject}),a);if(n!==void 0)return n}}return s.readField(e,a)},d=new Set;this.flattenFields(i,r,a,l).forEach(function(e,n){var i,a=r[Wr(n)];if(d.add(n),a!==void 0){var f=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),p=Iu(o,f),m=t.processFieldValue(a,n,n.selectionSet?Fu(e,!1,!1):e,p),h=void 0;n.selectionSet&&(z(m)||Fl(m))&&(h=u(`__typename`,m));var g=s.getMergeFunction(l,n.name.value,h);g?p.info={field:n,typename:l,merge:g}:zu(o,f),c=e.merge(c,(i={},i[f]=m,i))}else globalThis.__DEV__!==!1&&!e.clientOnly&&!e.deferred&&!ba.added(n)&&!s.getReadFunction(l,n.name.value)&&globalThis.__DEV__!==!1&&O.error(13,Wr(n),r)});try{var f=s.identify(r,{typename:l,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:c,readField:u}),p=f[0],h=f[1];n||=p,h&&(c=a.merge(c,h))}catch(e){if(!n)throw e}if(typeof n==`string`){var g=Ar(n),_=a.written[n]||(a.written[n]=[]);if(_.indexOf(i)>=0||(_.push(i),this.reader&&this.reader.isFresh(r,g,i,a)))return g;var v=a.incomingById.get(n);return v?(v.storeObject=a.merge(v.storeObject,c),v.mergeTree=Lu(v.mergeTree,o),d.forEach(function(e){return v.fieldNodeSet.add(e)})):a.incomingById.set(n,{storeObject:c,mergeTree:Ru(o)?void 0:o,fieldNodeSet:d}),g}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return!t.selectionSet||e===null?globalThis.__DEV__===!1?e:So(e):H(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,n,Iu(r,a));return zu(r,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r})},e.prototype.flattenFields=function(e,t,n,r){r===void 0&&(r=Gr(t,e,n.fragmentMap));var i=new Map,a=this.cache.policies,o=new Tn(!1);return(function e(s,c){var l=o.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(o){if(un(o,n.variables)){var s=c.clientOnly,l=c.deferred;if(!(s&&l)&&V(o.directives)&&o.directives.forEach(function(e){var t=e.name.value;if(t===`client`&&(s=!0),t===`defer`){var r=Ur(e,n.variables);(!r||r.if!==!1)&&(l=!0)}}),Kr(o)){var u=i.get(o);u&&(s&&=u.clientOnly,l&&=u.deferred),i.set(o,Fu(n,s,l))}else{var d=Bn(o,n.lookupFragment);if(!d&&o.kind===A.FRAGMENT_SPREAD)throw D(14,o.name.value);d&&a.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,Fu(n,s,l))}}}))})(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var a,o=this;if(e.map.size&&!z(n)){var s=!H(n)&&(z(t)||Fl(t))?t:void 0,c=n;s&&!i&&(i=[z(s)?s.__ref:s]);var l,u=function(e,t){return H(e)?typeof t==`number`?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=u(s,t),a=u(c,t);if(a!==void 0){i&&i.push(t);var d=o.applyMerges(e,n,a,r,i);d!==a&&(l||=new Map,l.set(t,d)),i&&O(i.pop()===t)}}),l&&(n=H(c)?c.slice(0):m({},c),l.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),Hu=[],Uu=new Set})),Gu,Ku=t((()=>{h(),k(),$i(),el(),Cl(),Dl(),K(),ou(),Wu(),Ql(),mu(),Pu(),Bl(),wr(),Gu=function(e){o(t,e);function t(t){t===void 0&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new ta(ba),n.assumeImmutableResults=!0,n.makeVar=uu,n.txCount=0,globalThis.__DEV__!==!1&&(G(t,`addTypename`,`InMemoryCache`,"Please remove the `addTypename` option when initializing `InMemoryCache`."),G(t,`canonizeResults`,`InMemoryCache`,"Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),n.config=Al(t),n.addTypename=!!n.config.addTypename,n.policies=new Nu({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return t.prototype.init=function(){var e=this.data=new Jl.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.addTypenameTransform.resetCache(),r?.resetCaches(),this.storeWriter=new Vu(this,this.storeReader=new au({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:jl(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=Xi(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||R[`inMemoryCache.maybeBroadcastWatch`]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Wl(n)){var r=e.optimistic,i=e.id,a=e.variables;return n.makeCacheKey(e.query,e.callback,Dr({optimistic:r,id:i,variables:a}))}}}
60),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return e===void 0&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){globalThis.__DEV__!==!1&&G(e,`canonizeResults`,`cache.read`);var t=e.returnPartialData,n=t===void 0?!1:t;try{return this.storeReader.diffQueryAgainstStore(m(m({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof El)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(e){if(X.call(e,`id`)&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||`ROOT_QUERY`,e.fields)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(e){return globalThis.__DEV__!==!1&&G(e,`canonizeResults`,`cache.diff`),this.storeReader.diffQueryAgainstStore(m(m({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||`ROOT_QUERY`,config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||lu(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&cu(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){globalThis.__DEV__!==!1&&G(e||{},`resetResultIdentities`,`cache.gc`,"First ensure all usages of `canonizeResults` are removed, then remove this option."),Dr.reset(),ia.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(z(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){globalThis.__DEV__!==!1&&O.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(X.call(e,`id`))return!1;e=m(m({},e),{id:`ROOT_QUERY`})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Dr.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),cu(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=r===void 0?!0:r,a=e.removeOptimistic,o=e.onWatchUpdated,s,c=function(e){var r=t,i=r.data,a=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{return s=n(t)}finally{--t.txCount,t.data=i,t.optimisticData=a}},l=new Set;return o&&!this.txCount&&this.broadcastWatches(m(m({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),typeof i==`string`?this.optimisticData=this.optimisticData.addLayer(i,c):i===!1?c(this.data):c(),typeof a==`string`&&(this.optimisticData=this.optimisticData.removeLayer(a)),o&&l.size?(this.broadcastWatches(m(m({},e),{onWatchUpdated:function(e,t){var n=o.call(this,e,t);return n!==!1&&l.delete(e),n}})),l.size&&l.forEach(function(e){return t.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),s},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||t!==null})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){return this.config.fragments?.lookup(e)||null},t.prototype.broadcastWatches=function(e){var t=this;
60this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=this,r=e.lastDiff,i=W(`canonizeResults`,function(){return n.diff(e)});t&&(e.optimistic&&typeof t.optimistic==`string`&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&t.onWatchUpdated.call(this,e,i,r)===!1)||(!r||!Y(r.result,i.result))&&e.callback(e.lastDiff=i,r)},t}(Sl),globalThis.__DEV__!==!1&&(Gu.prototype.getMemoryInternals=Sr)}));function qu(){var e=[...arguments];return new(Ju.bind.apply(Ju,f([void 0],e,!1)))}var Ju,Yu=t((()=>{h(),ln(),$i(),K(),er(),Ju=function(){function e(){var e=[...arguments];this.registry=Object.create(null),this.resetCaches(),e.length&&this.register.apply(this,e)}return e.prototype.register=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new Map;return t.forEach(function(e){ti(e).forEach(function(e){r.set(e.name.value,e)})}),r.forEach(function(t,n){t!==e.registry[n]&&(e.registry[n]=t,e.invalidate(n))}),this},e.prototype.invalidate=function(e){},e.prototype.resetCaches=function(){var t=e.prototype;this.invalidate=(this.lookup=Xi(t.lookup.bind(this),{makeCacheKey:function(e){return e},max:R[`fragmentRegistry.lookup`]||1e3})).dirty,this.transform=Xi(t.transform.bind(this),{cache:Qn,max:R[`fragmentRegistry.transform`]||2e3}),this.findFragmentSpreads=Xi(t.findFragmentSpreads.bind(this),{cache:Qn,max:R[`fragmentRegistry.findFragmentSpreads`]||4e3})},e.prototype.lookup=function(e){return this.registry[e]||null},e.prototype.transform=function(e){var t=this,n=new Map;ti(e).forEach(function(e){n.set(e.name.value,e)});var r=new Set,i=function(e){n.has(e)||r.add(e)},a=function(e){return Object.keys(t.findFragmentSpreads(e)).forEach(i)};a(e);var o=[],s=Object.create(null);if(r.forEach(function(e){var r=n.get(e);if(r)a(s[e]=r);else{o.push(e);var i=t.lookup(e);i&&a(s[e]=i)}}),o.length){var c=[];o.forEach(function(e){var t=s[e];t&&c.push(t)}),c.length&&(e=m(m({},e),{definitions:e.definitions.concat(c)}))}return e},e.prototype.findFragmentSpreads=function(e){var t=Object.create(null);return P(e,{FragmentSpread:function(e){t[e.name.value]=e}}),t},e}()})),Xu=t((()=>{Cl(),Tl(),Dl(),K(),Bl(),Ku(),mu(),Yu()}));function Zu(e){return e?e<7:!1}function Qu(e){return e===7||e===8}var Z,$u=t((()=>{(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`})(Z||={})}));function ed(e){globalThis.__DEV__!==!1&&O.error(33,e.message,e.stack)}function td(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&O.debug(34,e)}function nd(e){return e===`network-only`||e===`no-cache`||e===`standby`}var rd,id,ad,od=t((()=>{h(),k(),el(),$u(),K(),dc(),al(),$i(),rd=Object.assign,id=Object.hasOwnProperty,ad=function(e){o(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,a=n.options,o=this,s=t.inactiveOnCreation.getValue();o=e.call(this,function(e){o._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=ed)}catch{}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(o.maskResult(r.result)),n&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this,o.observers=new Set,o.subscriptions=new Set,o.dirty=!1,o._getOrCreateQuery=function(){return s&&=(r.queries.set(o.queryId,i),!1),o.queryManager.getOrCreateQuery(o.queryId)},o.queryInfo=i,o.queryManager=r,o.waitForOwnResult=nd(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var c=r.defaultOptions.watchQuery,l=(c===void 0?{}:c).fetchPolicy,u=l===void 0?`cache-first`:l,d=a.fetchPolicy,f=d===void 0?u:d,p=a.initialFetchPolicy,h=p===void 0?f===`standby`?u:f:p;o.options=m(m({},a),{initialFetchPolicy:h,fetchPolicy:f}),o.queryId=i.queryId||r.generateQueryId();
60var g=$r(o.query);return o.queryName=g&&g.name&&g.name.value,o}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return globalThis.__DEV__!==!1&&is(`observableQuery.result`,function(){globalThis.__DEV__!==!1&&O.warn(23)}),new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){var t=this;e===void 0&&(e=!0);var n=W(`getLastResult`,function(){return t.getLastResult(!0)}),r=this.queryInfo.networkStatus||n&&n.networkStatus||Z.ready,i=m(m({},n),{loading:Zu(r),networkStatus:r}),a=this.options.fetchPolicy,o=a===void 0?`cache-first`:a;if(!(nd(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),Y(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===Z.loading&&(o===`cache-first`||o===`cache-only`)&&(i.networkStatus=Z.ready,i.loading=!1)):i.partial=!0,i.networkStatus===Z.ready&&(i.error||i.errors)&&(i.networkStatus=Z.error),globalThis.__DEV__!==!1&&!s.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&td(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.getCurrentResult=function(e){return e===void 0&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),r=this.queryManager.dataMasking,i=r?n.nonReactiveQuery:this.query;return(r||n.hasNonreactiveDirective?!tl(i,this.last.result,e,this.variables):!Y(this.last.result,e))||t&&!Y(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||Y(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return globalThis.__DEV__!==!1&&is(`getLastResult`,function(){globalThis.__DEV__!==!1&&O.warn(24)}),this.getLast(`result`,e)},t.prototype.getLastError=function(e){return globalThis.__DEV__!==!1&&is(`getLastError`,function(){globalThis.__DEV__!==!1&&O.warn(25)}),this.getLast(`error`,e)},t.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&is(`resetLastResults`,function(){globalThis.__DEV__!==!1&&O.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&O.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0};if(this.options.fetchPolicy===`no-cache`?t.fetchPolicy=`no-cache`:t.fetchPolicy=`network-only`,globalThis.__DEV__!==!1&&e&&id.call(e,`variables`)){var n=ni(this.query),r=n.variableDefinitions;(!r||!r.some(function(e){return e.variable.name.value===`variables`}))&&globalThis.__DEV__!==!1&&O.warn(28,e,n.name?.value||n)}return e&&!Y(this.options.variables,e)&&(t.variables=this.options.variables=m(m({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,Z.refetch)},t.prototype.fetchMore=function(e){var t=this,n=m(m({},e.query?e:m(m(m(m({},this.options),{query:this.options.query}),e),{variables:m(m({},this.options.variables),e.variables)})),{fetchPolicy:`no-cache`});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var i=this.queryInfo,a=i.networkStatus;i.networkStatus=Z.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var o=new Set,s=e?.updateQuery,c=this.options.fetchPolicy!==`no-cache`;return c||O(s,29),this.queryManager.fetchQuery(r,n,Z.fetchMore).then(function(l){if(t.queryManager.removeQuery(r),i.networkStatus===Z.fetchMore&&(i.networkStatus=a),c)t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:l.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:l.data})},onWatchUpdated:function(e){o.add(e.query)}});else{var u=t.getLast(`result`),d=s(u.data,{fetchMoreResult:l.data,variables:n.variables});t.reportResult(m(m({},u),{networkStatus:a,loading:Zu(a),data:d}),t.variables)}return t.maskResult(l)}).finally(function(){c&&!o.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,m({subscriptionData:n},t))})},error:function(t){if(e.onError){e.onError(t);return}globalThis.__DEV__!==!1&&O.error(30,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return globalThis.__DEV__!==!1&&(G(e,`canonizeResults`,`setOptions`),is(`setOptions`,function(){globalThis.__DEV__!==!1&&O.warn(31)})),this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=Jo(this.options,e||{});rd(this.options,t)},t.prototype.setVariables=function(e){var t=this;return Y(this.variables,e)?this.observers.size?W(`observableQuery.result`,function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},Z.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,i=n.complete,a=e(r,{variables:this.variables,complete:!!i,previousData:r});a&&(t.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=n===void 0?`cache-first`:n,i=t.initialFetchPolicy,a=i===void 0?r:i;r===`standby`||(typeof t.nextFetchPolicy==`function`?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:a}):e===`variables-changed`?t.fetchPolicy=a:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){var r=this._getOrCreateQuery();return r.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(r,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this,n=t.pollingInfo,r=t.options.pollInterval;if(!r||!this.hasObservers()){n&&(clearTimeout(n.timeout),delete this.pollingInfo);return}if(!(n&&n.interval===r)){O(r,32);var i=n||(this.pollingInfo={});i.interval=r;var a=function(){var t;e.pollingInfo&&(!Zu(e.queryInfo.networkStatus)&&!(t=e.options).skipPollAttempt?.call(t)?e.reobserve({fetchPolicy:e.options.initialFetchPolicy===`no-cache`?`no-cache`:`network-only`},Z.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(a,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){var n=this;t===void 0&&(t=this.variables);var r=W(`getLastError`,function(){return n.getLastError()});return r&&this.last&&!Y(t,this.last.variables)&&(r=void 0),this.last=m({result:this.queryManager.assumeImmutableResults?e:So(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===Z.refetch||t===Z.fetchMore||t===Z.poll,i=this.options.variables,a=this.options.fetchPolicy,o=Jo(this.options,e||{}),s=r?o:rd(this.options,o),c=this.transformDocument(s.query);this.lastQuery=c,r||(this.updatePolling(),e&&e.variables&&!Y(e.variables,i)&&s.fetchPolicy!==`standby`&&(s.fetchPolicy===a||typeof s.nextFetchPolicy==`function`)&&(this.applyNextFetchPolicy(`variables-changed`,s),t===void 0&&(t=Z.setVariables))),this.waitForOwnResult&&=nd(s.fetchPolicy);var l=function(){n.concast===f&&(n.waitForOwnResult=!1)},u=s.variables&&m({},s.variables),d=this.fetch(s,t,c),f=d.concast,p=d.fromLink,h={next:function(e){Y(n.variables,u)&&(l(),n.reportResult(e,u))},error:function(e){Y(n.variables,u)&&(cc(e)||(e=new J({networkError:e})),l(),n.reportError(e,u))}};return!r&&(p||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=h),f.addObserver(h),f},t.prototype.reobserve=function(e,t){return bo(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.last;W(`resetLastResults`,function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=r,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this,r=W(`getLastError`,function(){return n.getLastError()}),i=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||i)&&Ao(this.observers,`next`,this.maskResult(e))},t.prototype.reportError=function(e,t){var n=this,r=m(m({},W(`getLastResult`,function(){return n.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:Z.error,loading:!1});this.updateLastResult(r,t),Ao(this.observers,`error`,this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||=(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&`data`in e?m(m({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&=(clearTimeout(this.notifyTimeout),void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||=setTimeout(function(){return e.notify()},0))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy==`cache-only`||this.options.fetchPolicy==`cache-and-network`||!Zu(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return t===`cache-and-network`||t===`network-only`?this.reobserve({fetchPolicy:`cache-first`,nextFetchPolicy:function(e,r){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy==`function`?this.nextFetchPolicy(e,r):t}}):this.reobserve()},t.inactiveOnCreation=new pi,t}(U),Po(ad)}));function sd(e,t){var n=e[t];typeof n==`function`&&(e[t]=function(){return ld.set(e,(ld.get(e)+1)%0x38d7ea4c68000),n.apply(this,arguments)})}
60function cd(e,t){t===void 0&&(t=`none`);var n=t===`ignore`||t===`all`,r=!Go(e);return!r&&n&&e.data&&(r=!0),r}var ld,ud,dd=t((()=>{h(),el(),K(),$u(),ld=new(On?WeakMap:Map),ud=function(){function e(e,t){t===void 0&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;ld.has(n)||(ld.set(n,0),sd(n,`evict`),sd(n,`modify`),sd(n,`reset`))}return e.prototype.init=function(e){var t=e.networkStatus||Z.loading;return this.variables&&this.networkStatus!==Z.loading&&!Y(this.variables,e.variables)&&(t=Z.setVariables),Y(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&Y(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy===`no-cache`)return{complete:!1};var r=W(`canonizeResults`,function(){return e.cache.diff(t)});return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:this.observableQuery?.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&W(`getLastError`,function(){return t.observableQuery?.getLastError()})||(this.updateLastDiff(e),Y(r&&r.result,e&&e.result)||(n=this.observableQuery)==null||n.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,(e=this.observableQuery)==null||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;(e=this.cancelWatch)==null||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy===`no-cache`)){var r=m(m({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});(!this.lastWatch||!Y(r,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===ld.get(this.cache)&&Y(t,n.variables)&&Y(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,a,o=new Ma,s=V(e.errors)?e.errors.slice(0):[];if((a=this.observableQuery)==null||a.resetNotifications(),`incremental`in e&&V(e.incremental))e.data=Uo(this.getDiff().result,e);else if(`hasNext`in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=s,n.fetchPolicy===`no-cache`?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):r!==0&&(cd(e,n.errorPolicy)?this.cache.performTransaction(function(a){if(i.shouldWrite(e,n.variables))a.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:r===1}),i.lastWrite={result:e,variables:n.variables,dmCount:ld.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var o=i.getDiffOptions(n.variables),s=W(`canonizeResults`,function(){return a.diff(o)});!i.stopped&&Y(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Z.ready},e.prototype.markError=function(e){var t;return this.networkStatus=Z.error,this.lastWrite=void 0,(t=this.observableQuery)==null||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}()})),fd,pd,md,hd=t((()=>{h(),k(),el(),Ws(),K(),Xu(),Wo(),dc(),od(),$u(),dd(),En(),xl(),fd=Object.prototype.hasOwnProperty,pd=Object.create(null),md=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new rr(R[`queryManager.getDocumentInfo`]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Tn(!1),this.noCacheWarningsByQueryId=new Set;var n=new ta(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;
60this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(D(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return c(this,arguments,void 0,function(e){var t,n,r,i,a,o=e.mutation,s=e.variables,c=e.optimisticResponse,u=e.updateQueries,d=e.refetchQueries,f=d===void 0?[]:d,p=e.awaitRefetchQueries,h=p===void 0?!1:p,g=e.update,_=e.onQueryUpdated,v=e.fetchPolicy,y=v===void 0?this.defaultOptions.mutate?.fetchPolicy||`network-only`:v,b=e.errorPolicy,x=b===void 0?this.defaultOptions.mutate?.errorPolicy||`none`:b,S=e.keepRootFields,C=e.context;return l(this,function(e){switch(e.label){case 0:return O(o,36),O(y===`network-only`||y===`no-cache`,37),t=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),n=this.getDocumentInfo(o).hasClientExports,s=this.getVariables(o,s),n?[4,this.localState.addExportedVariables(o,s,C)]:[3,2];case 1:s=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:o,variables:s,loading:!0,error:null}),i=c&&this.markMutationOptimistic(c,{mutationId:t,document:o,variables:s,fetchPolicy:y,errorPolicy:x,context:C,updateQueries:u,update:g,keepRootFields:S}),this.broadcastQueries(),a=this,[2,new Promise(function(e,n){return Mo(a.getObservableFromLink(o,m(m({},C),{optimisticResponse:i?c:void 0}),s,{},!1),function(e){if(Go(e)&&x===`none`)throw new J({graphQLErrors:Ko(e)});r&&(r.loading=!1,r.error=null);var n=m({},e);return typeof f==`function`&&(f=f(n)),x===`ignore`&&Go(n)&&delete n.errors,a.markMutationResult({mutationId:t,result:n,document:o,variables:s,fetchPolicy:y,errorPolicy:x,context:C,update:g,updateQueries:u,awaitRefetchQueries:h,refetchQueries:f,removeOptimistic:i?t:void 0,onQueryUpdated:_,keepRootFields:S})}).subscribe({next:function(n){a.broadcastQueries(),(!(`hasNext`in n)||n.hasNext===!1)&&e(m(m({},n),{data:a.maskOperation({document:o,data:n.data,fetchPolicy:y,id:t})}))},error:function(e){r&&(r.loading=!1,r.error=e),i&&a.cache.removeOptimistic(t),a.broadcastQueries(),n(e instanceof J?e:new J({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;t===void 0&&(t=this.cache);var r=e.result,i=[],a=e.fetchPolicy===`no-cache`;if(!a&&cd(r,e.errorPolicy)){if(zo(r)||i.push({result:r.data,dataId:`ROOT_MUTATION`,query:e.document,variables:e.variables}),zo(r)&&V(r.incremental)){var o=t.diff({id:`ROOT_MUTATION`,query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;o.result&&(s=Uo(o.result,r)),s!==void 0&&(r.data=s,i.push({result:s,dataId:`ROOT_MUTATION`,query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(!(!s||!fd.call(c,s))){var l=c[s],u=n.queries.get(a),d=u.document,f=u.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),m=p.result;if(p.complete&&m){var h=l(m,{mutationResult:r,queryName:d&&ei(d)||void 0,queryVariables:f});h&&i.push({result:h,dataId:`ROOT_QUERY`,query:d,variables:f})}}})}if(i.length>0||(e.refetchQueries||``).length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var o=e.update,s=!Vo(r)||zo(r)&&!r.hasNext;if(o){if(!a){var c=t.diff({id:`ROOT_MUTATION`,query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&(r=m(m({},r),{data:c.result}),`incremental`in r&&delete r.incremental,`hasNext`in r&&delete r.hasNext)}s&&o(t,r,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&s&&t.modify({id:`ROOT_MUTATION`,fields:function(e,t){var n=t.fieldName,r=t.DELETE;return n===`__typename`?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r=typeof e==`function`?e(t.variables,{IGNORE:pd}):e;return r===pd?!1:(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(m(m({},t),{result:{data:r}}),e)}catch(e){globalThis.__DEV__!==!1&&O.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);
60return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:pn(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:fn([`nonreactive`],e),nonReactiveQuery:va(e),clientQuery:this.localState.clientQuery(e),serverQuery:da([{name:`client`,remove:!0},{name:`connection`},{name:`nonreactive`},{name:`unmask`}],e),defaultVars:ai($r(e)),asQuery:m(m({},e),{definitions:e.definitions.map(function(e){return e.kind===`OperationDefinition`&&e.operation!==`query`?m(m({},e),{operation:`query`}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return m(m({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);e=m(m({},e),{variables:this.getVariables(t,e.variables)}),e.notifyOnNetworkStatusChange===void 0&&(e.notifyOnNetworkStatusChange=!1);var n=new ud(this),r=new ad({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,ad.inactiveOnCreation.getValue()||this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;t===void 0&&(t=this.generateQueryId()),O(e.query,38),O(e.query.kind===`Document`,39),O(!e.returnPartialData,40),O(!e.pollInterval,41);var r=this.transform(e.query);return this.fetchQuery(t,m(m({},e),{query:r})).then(function(i){return i&&m(m({},i),{data:n.maskOperation({document:r,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(D(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=Z.loading:e.stop()}),this.mutationStore&&=Object.create(null),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;e===void 0&&(e=`active`);var n=new Map,r=new Map,i=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if(typeof e==`string`)r.set(e,e),i.set(e,!1);else if(jr(e)){var n=ia(t.transform(e));r.set(n,ei(e)),i.set(n,!1)}else L(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,r){var a=t.observableQuery,o=t.document;if(a){if(e===`all`){n.set(r,a);return}var s=a.queryName;if(a.options.fetchPolicy===`standby`||e===`active`&&!a.hasObservers())return;(e===`active`||s&&i.has(s)||o&&i.has(ia(o)))&&(n.set(r,a),s&&i.set(s,!0),o&&i.set(ia(o),!0))}}),a.size&&a.forEach(function(e){var r=ae(`legacyOneTimeQuery`),i=t.getOrCreateQuery(r).init({document:e.query,variables:e.variables}),a=new ad({queryManager:t,queryInfo:i,options:m(m({},e),{fetchPolicy:`network-only`})});O(a.queryId===r),i.setObservableQuery(a),n.set(r,a)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(e,t){if(!e){var n=r.get(t);n?globalThis.__DEV__!==!1&&O.warn(43,n):globalThis.__DEV__!==!1&&O.warn(44)}}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?`all`:`active`).forEach(function(r,i){var a=r.options.fetchPolicy;W(`resetLastResults`,function(){return r.resetLastResults()}),(e||a!==`standby`&&a!==`cache-only`)&&n.push(r.refetch()),(t.queries.get(i)||r.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=a===void 0?`none`:a,s=e.context,c=s===void 0?{}:s,l=e.extensions,u=l===void 0?{}:l;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,c,e,u).map(function(r){i!==`no-cache`&&(cd(r,o)&&t.cache.write({query:n,result:r.data,dataId:`ROOT_SUBSCRIPTION`,variables:e}),t.broadcastQueries());var a=Go(r),s=sc(r);if(a||s){var c={};
60if(a&&(c.graphQLErrors=r.errors),s&&(c.protocolErrors=r.extensions[lc]),o===`none`||s)throw new J(c)}return o===`ignore`&&delete r.errors,r})};if(this.getDocumentInfo(n).hasClientExports){var f=this.localState.addExportedVariables(n,r,c).then(d);return new U(function(e){var t=null;return f.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(r)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&((t=this.queries.get(e))==null||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.observableQuery?.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r,i){var a=this;i===void 0&&(i=t?.queryDeduplication??this.queryDeduplication);var o,s=this.getDocumentInfo(e),c=s.serverQuery,l=s.clientQuery;if(c){var u=this,d=u.inFlightLinkObservables,f=u.link,p={query:c,variables:n,operationName:ei(c)||void 0,context:this.prepareContext(m(m({},t),{forceFetch:!i})),extensions:r};if(t=p.context,i){var h=ia(c),g=Dr(n),_=d.lookup(h,g);if(o=_.observable,!o){var v=new Lo([Vs(f,p)]);o=_.observable=v,v.beforeNext(function e(t,n){t===`next`&&`hasNext`in n&&n.hasNext?v.beforeNext(e):d.remove(h,g)})}}else o=new Lo([Vs(f,p)])}else o=new Lo([U.of({data:{}})]),t=this.prepareContext(t);return l&&(o=Mo(o,function(e){return a.localState.runResolvers({document:l,remoteResult:e,context:t,variables:n})})),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return Mo(this.getObservableFromLink(i,n.context,n.variables),function(a){var o=Ko(a),s=o.length>0,c=n.errorPolicy;if(r>=e.lastRequestId){if(s&&c===`none`)throw e.markError(new J({graphQLErrors:o}));e.markResult(a,i,n,t),e.markReady()}var l={data:a.data,loading:!1,networkStatus:Z.ready};return s&&c===`none`&&(l.data=void 0),s&&c!==`ignore`&&(l.errors=o,l.networkStatus=Z.error),l},function(t){var n=cc(t)?t:new J({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;n===void 0&&(n=Z.loading),r===void 0&&(r=t.query);var a=this.getVariables(r,t.variables),o=this.defaultOptions.watchQuery,s=t.fetchPolicy,c=s===void 0?o&&o.fetchPolicy||`cache-first`:s,l=t.errorPolicy,u=l===void 0?o&&o.errorPolicy||`none`:l,d=t.returnPartialData,f=d===void 0?!1:d,p=t.notifyOnNetworkStatusChange,m=p===void 0?!1:p,h=t.context,g=Object.assign({},t,{query:r,variables:a,fetchPolicy:c,errorPolicy:u,returnPartialData:f,notifyOnNetworkStatusChange:m,context:h===void 0?{}:h}),_=function(r){g.variables=r;var a=i.fetchQueryByPolicy(e,g,n);return g.fetchPolicy!==`standby`&&a.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy(`after-fetch`,t),a},v=function(){return i.fetchCancelFns.delete(e.queryId)};this.fetchCancelFns.set(e.queryId,function(e){v(),setTimeout(function(){return y.cancel(e)})});var y,b;if(this.getDocumentInfo(g.query).hasClientExports)y=new Lo(this.localState.addExportedVariables(g.query,g.variables,g.context).then(_).then(function(e){return e.sources})),b=!0;else{var x=_(g.variables);b=x.fromLink,y=new Lo(x.sources)}return y.promise.then(v,v),{concast:y,fromLink:b}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=i===void 0?!1:i,o=e.removeOptimistic,s=o===void 0?a?ae(`refetchQueries`):void 0:o,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof ud&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return i===!0&&(i=r.refetch()),i!==!1&&u.set(r,i),i}c!==null&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r=e.oq,i=e.lastDiff,a=e.diff,o;c&&(a||=W(`canonizeResults`,function(){return t.cache.diff(r.queryInfo.getDiffOptions())}),o=c(r,a,i)),(!c||o===!0)&&(o=r.refetch()),o!==!1&&u.set(r,o),n.indexOf(`legacyOneTimeQuery`)>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t=e.document,n=e.data;if(globalThis.__DEV__!==!1){var r=e.fetchPolicy,i=e.id,a=$r(t)?.operation,o=(a?.[0]??`o`)+i;this.dataMasking&&r===`no-cache`&&!Vn(t)&&!this.noCacheWarningsByQueryId.has(o)&&(this.noCacheWarningsByQueryId.add(o),globalThis.__DEV__!==!1&&O.warn(45,ei(t)??`Unnamed ${a??`operation`}`))}return this.dataMasking?yl(n,t,this.cache):n},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?_l(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,f
60=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var p=function(){return e.getDiff()},h=function(t,n){n===void 0&&(n=e.networkStatus||Z.loading);var o=t.result;globalThis.__DEV__!==!1&&!l&&!Y(o,{})&&td(t.missing);var s=function(e){return U.of(m({data:e,loading:Zu(n),networkStatus:n},t.complete?null:{partial:!0}))};return o&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:o},context:u,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):c===`none`&&n===Z.refetch&&Array.isArray(t.missing)?s(void 0):s(o)},g=o===`no-cache`?0:n===Z.refetch&&s!==`merge`?1:2,_=function(){return r.getResultsFromLink(e,g,{query:i,variables:a,context:u,fetchPolicy:o,errorPolicy:c})},v=d&&typeof f==`number`&&f!==n&&Zu(n);switch(o){default:case`cache-first`:var y=p();return y.complete?{fromLink:!1,sources:[h(y,e.markReady())]}:l||v?{fromLink:!0,sources:[h(y),_()]}:{fromLink:!0,sources:[_()]};case`cache-and-network`:var y=p();return y.complete||l||v?{fromLink:!0,sources:[h(y),_()]}:{fromLink:!0,sources:[_()]};case`cache-only`:return{fromLink:!1,sources:[h(p(),e.markReady())]};case`network-only`:return v?{fromLink:!0,sources:[h(p()),_()]}:{fromLink:!0,sources:[_()]};case`no-cache`:return v?{fromLink:!0,sources:[h(e.getDiff()),_()]}:{fromLink:!0,sources:[_()]};case`standby`:return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ud(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){e===void 0&&(e={});var t=this.localState.prepareContext(e);return m(m(m({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}()})),gd,_d=t((()=>{h(),k(),ln(),K(),Xu(),gd=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=Oa(t.resolvers,e)}):this.resolvers=Oa(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return c(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=a===void 0?!1:a;return l(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then(function(e){return m(m({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return fn([`client`],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return _a(e)},e.prototype.prepareContext=function(e){var t=this.cache;return m(m({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return c(this,arguments,void 0,function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),l(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return m(m({},t),e.exportedVariables)})]:[2,m({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return P(e,{Directive:{enter:function(e){if(e.name.value===`client`&&e.arguments&&(t=e.arguments.some(function(e){return e.name.value===`always`&&e.value.kind===`BooleanValue`&&e.value.value===!0}),t))return Yt}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:ga(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return c(this,arguments,void 0,function(e,t,n,r,i,a){var o,s,c,u,d,f,p,h,g,_,v;return n===void 0&&(n={}),r===void 0&&(r={}),i===void 0&&(i=function(){return!0}),a===void 0&&(a=!1),l(this,function(l){return o=ii(e),s=ti(e),c=zn(s),u=this.collectSelectionsToResolve(o,c),d=o.operation,f=d?d.charAt(0).toUpperCase()+d.slice(1):`Query`,p=this,h=p.cache,g=p.client,_={fragmentMap:c,context:m(m({},n),{cache:h,client:g}),variables:r,fragmentMatcher:i,defaultOperationType:f,exportedVariables:{},selectionsToResolve:u,onlyRunForcedResolvers:a},v=!1,[2,this.resolveSelectionSet(o.selectionSet,v,t,_).then(function(e){return{result:e,exportedVariables:_.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return c(this,void 0,void 0,function(){var i,a,o,s,u,d=this;return l(this,function(f){return i=r.fragmentMap,a=r.context,o=r.variables,s=[n],u=function(e){return c(d,void 0,void 0,function(){var c,u;return l(this,function(l){return!t&&!r.selectionsToResolve.has(e)||!un(e,o)?[2]:Kr(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;t!==void 0&&s.push((n={},n[Wr(e)]=t,n))})]:(qr(e)?c=e:(c=i[e.name.value],O(c,21,e.name.value)),c&&c.typeCondition&&(u=c.typeCondition.name.value,r.fragmentMatcher(n,u,a))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then(function(e){s.push(e)})]:[2])})})},[2,Promise.all(e.selections.map(u)).then(function(){return ka(s)})]})})},e.prototype.resolveField=function(e,t,n,r){return c(this,void 0,void 0,function(){var i,a,o,s,c,u,d,f,p,m=this;return l(this,function(l){return n?(i=r.variables,a=e.name.value,o=Wr(e),s=a!==o,c=n[o]||n[a],u=Promise.resolve(c),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=n.__typename||r.defaultOperationType,f=this.resolvers&&this.resolvers[d],f&&(p=f[s?a:o],p&&(u=Promise.resolve(fu.withValue(this.cache,p,[n,Ur(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}]))))),[2,u.then(function(n){if(n===void 0&&(n=c),e.directives&&e.directives.forEac
60h(function(e){e.name.value===`export`&&e.arguments&&e.arguments.forEach(function(e){e.name.value===`as`&&e.value.kind===`StringValue`&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet||n==null)return n;var i=e.directives?.some(function(e){return e.name.value===`client`})??!1;if(Array.isArray(n))return m.resolveSubSelectedArray(e,t||i,n,r);if(e.selectionSet)return m.resolveSelectionSet(e.selectionSet,t||i,n,r)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){if(n===null)return null;if(Array.isArray(n))return i.resolveSubSelectedArray(e,t,n,r);if(e.selectionSet)return i.resolveSelectionSet(e.selectionSet,t,n,r)}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;function i(e){if(!r.has(e)){var a=new Set;r.set(e,a),P(e,{Directive:function(e,t,r,i,o){e.name.value===`client`&&o.forEach(function(e){n(e)&&on(e)&&a.add(e)})},FragmentSpread:function(e,r,o,s,c){var l=t[e.name.value];O(l,22,e.name.value);var u=i(l);u.size>0&&(c.forEach(function(e){n(e)&&on(e)&&a.add(e)}),a.add(e),u.forEach(function(e){a.add(e)}))}})}return r.get(e)}return i(e)},e}()})),vd,yd,bd=t((()=>{h(),k(),Ws(),te(),Uc(),hd(),_d(),K(),wr(),vd=!1,yd=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw D(16);var n=e.uri,r=e.credentials,i=e.headers,a=e.cache,o=e.documentTransform,s=e.ssrMode,c=s===void 0?!1:s,l=e.ssrForceFetchDelay,u=l===void 0?0:l,d=e.connectToDevTools,f=e.queryDeduplication,p=f===void 0?!0:f,h=e.defaultOptions,g=e.defaultContext,_=e.assumeImmutableResults,v=_===void 0?a.assumeImmutableResults:_,y=e.resolvers,b=e.typeDefs,x=e.fragmentMatcher,S=e.clientAwareness,C=e.name,w=e.version,T=e.devtools,te=e.dataMasking;globalThis.__DEV__!==!1&&(G(e,`connectToDevTools`,`ApolloClient`,"Please use `devtools.enabled` instead."),G(e,`uri`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `uri` instead."),G(e,`credentials`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `credentials` instead."),G(e,`headers`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `headers` instead."),G(e,`name`,`ApolloClient`,"Please use the `clientAwareness.name` option instead."),G(e,`version`,`ApolloClient`,"Please use the `clientAwareness.version` option instead."),G(e,`typeDefs`,`ApolloClient`),e.link||globalThis.__DEV__!==!1&&O.warn(17));var E=e.link;E||=n?new Vc({uri:n,credentials:r,headers:i}):q.empty(),this.link=E,this.cache=a,this.disableNetworkFetches=c||u>0,this.queryDeduplication=p,this.defaultOptions=h||Object.create(null),this.typeDefs=b,this.devtoolsConfig=m(m({},T),{enabled:T?.enabled??d}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),u&&setTimeout(function(){return t.disableNetworkFetches=!1},u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=ee,this.localState=new gd({cache:a,client:this,resolvers:y,fragmentMatcher:x}),this.queryManager=new md({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:o,queryDeduplication:p,ssrMode:c,dataMasking:!!te,clientAwareness:{name:S?.name??C,version:S?.version??w},localState:this.localState,assumeImmutableResults:v,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if(!(typeof window>`u`)){var e=window,t=Symbol.for(`apollo.devtools`);(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!vd&&globalThis.__DEV__!==!1&&(vd=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;typeof t==`string`&&(t.indexOf(`Chrome/`)>
60-1?n=`https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm`:t.indexOf(`Firefox/`)>-1&&(n=`https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/`)),n&&globalThis.__DEV__!==!1&&O.log(`Download the Apollo DevTools for a better development experience: %s`,n)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Xo(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy===`network-only`||e.fetchPolicy===`cache-and-network`)&&(e=m(m({},e),{fetchPolicy:`cache-first`})),globalThis.__DEV__!==!1&&(G(e,`canonizeResults`,`client.watchQuery`),G(e,`partialRefetch`,`client.watchQuery`)),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Xo(this.defaultOptions.query,e)),O(e.fetchPolicy!==`cache-and-network`,18),this.disableNetworkFetches&&e.fetchPolicy===`network-only`&&(e=m(m({},e),{fetchPolicy:`cache-first`})),globalThis.__DEV__!==!1&&(G(e,`canonizeResults`,`client.query`),G(e,`notifyOnNetworkStatusChange`,`client.query`,"This option does not affect `client.query` and can be safely removed."),e.fetchPolicy===`standby`&&globalThis.__DEV__!==!1&&O.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Xo(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(r){return m(m({},r),{data:t.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})})},e.prototype.readQuery=function(e,t){return t===void 0&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(m(m({},e),(t={},t[Symbol.for(`apollo.dataMasking`)]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return t===void 0&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Vs(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){globalThis.__DEV__!==!1&&O.debug(20,e)}),i},e.prototype.getObservableQueries=function(e){return e===void 0&&(e=`active`),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
60,enumerable:!1,configurable:!0}),e}(),globalThis.__DEV__!==!1&&(yd.prototype.getMemoryInternals=xr)}));function xd(e){return e.replace(/[\s,]+/g,` `).trim()}function Sd(e){return xd(e.source.body.substring(e.start,e.end))}function Cd(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if(e.kind===`FragmentDefinition`){var r=e.name.value,i=Sd(e.loc),a=Md.get(r);a&&!a.has(i)?Nd&&console.warn(`Warning: fragment with name `+r+` already exists. 61graphql-tag enforces all fragment names across your application to be unique; read more about 62this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Md.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)}),m(m({},e),{definitions:n})}function wd(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&typeof r==`object`&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function Td(e){var t=xd(e);if(!jd.has(t)){var n=Rt(e,{experimentalFragmentVariables:Pd,allowLegacyFragmentVariables:Pd,experimentalFragmentArguments:Pd});if(!n||n.kind!==`Document`)throw Error(`Not a valid GraphQL document.`);
62jd.set(t,wd(Cd(n)))}return jd.get(t)}function Ed(e){var t=[...arguments].slice(1);typeof e==`string`&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&t.kind===`Document`?n+=t.loc.source.body:n+=t,n+=e[r+1]}),Td(n)}function Dd(){jd.clear(),Md.clear()}function Od(){Nd=!1}function kd(){Pd=!0}function Ad(){Pd=!1}var jd,Md,Nd,Pd,Fd,Id=t((()=>{h(),ln(),jd=new Map,Md=new Map,Nd=!0,Pd=!1,Fd={gql:Ed,resetCaches:Dd,disableFragmentWarnings:Od,enableExperimentalFragmentVariables:kd,disableExperimentalFragmentVariables:Ad},(function(e){e.gql=Fd.gql,e.resetCaches=Fd.resetCaches,e.disableFragmentWarnings=Fd.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Fd.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Fd.disableExperimentalFragmentVariables})(Ed||={}),Ed.default=Ed})),Ld=r({ApolloCache:()=>Sl,ApolloClient:()=>yd,ApolloError:()=>J,ApolloLink:()=>q,Cache:()=>wl,DocumentTransform:()=>ta,HttpLink:()=>Vc,InMemoryCache:()=>Gu,MissingFieldError:()=>El,NetworkStatus:()=>Z,Observable:()=>U,ObservableQuery:()=>ad,checkFetcher:()=>Ac,concat:()=>zs,createHttpLink:()=>zc,createSignalIfSupported:()=>Mc,defaultDataIdFromObject:()=>kl,defaultPrinter:()=>Oc,disableExperimentalFragmentVariables:()=>Ad,disableFragmentWarnings:()=>Od,empty:()=>Ns,enableExperimentalFragmentVariables:()=>kd,execute:()=>Vs,fallbackHttpConfig:()=>Dc,from:()=>Fs,fromError:()=>ds,fromPromise:()=>hs,gql:()=>Ed,isApolloError:()=>cc,isNetworkRequestSettled:()=>Qu,isReference:()=>z,makeReference:()=>Ar,makeVar:()=>uu,mergeOptions:()=>Xo,parseAndCheckHttpResponse:()=>gc,resetCaches:()=>Dd,rewriteURIForGET:()=>Ic,selectHttpOptionsAndBody:()=>xc,selectHttpOptionsAndBodyInternal:()=>Sc,selectURI:()=>Pc,serializeFetchParameter:()=>yc,setLogVerbosity:()=>v,split:()=>Ls,throwServerError:()=>_s,toPromise:()=>ps}),Rd=t((()=>{bd(),od(),$u(),dc(),Xu(),Ws(),Uc(),Os(),K(),T(),Id(),v(globalThis.__DEV__===!1?`silent`:`log`)})),Q=n(i(((e,t)=>{t.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,t.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,t.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(t.exports,a())}))(),1);K(),k();var zd=An?Symbol.for(`__APOLLO_CONTEXT__`):`__APOLLO_CONTEXT__`;function Bd(){O(`createContext`in Q,69);var e=Q.createContext[zd];return e||(Object.defineProperty(Q.createContext,zd,{value:e=Q.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName=`ApolloContext`),e}h(),k();var Vd=function(e){var t=e.client,n=e.children,r=Bd(),i=Q.useContext(r),a=Q.useMemo(function(){return m(m({},i),{client:t||i.client})},[i,t]);return O(a.client,71),Q.createElement(r.Provider,{value:a},n)};Rd(),k();function Hd(e){var t=Q.useContext(Bd()),n=e||t.client;return O(!!n,78),n}k(),K();var Ud=!1,Wd=Q.useSyncExternalStore||(function(e,t,n){var r=t();globalThis.__DEV__!==!1&&!Ud&&r!==t()&&(Ud=!0,globalThis.__DEV__!==!1&&O.error(91));var i=Q.useState({inst:{value:r,getSnapshot:t}}),a=i[0].inst,o=i[1];return Pn?Q.useLayoutEffect(function(){Object.assign(a,{value:r,getSnapshot:t}),Gd(a)&&o({inst:a})},[e,r,t]):Object.assign(a,{value:r,getSnapshot:t}),Q.useEffect(function(){return Gd(a)&&o({inst:a}),e(function(){Gd(a)&&o({inst:a})})},[e]),r});function Gd(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch{return!0}}k(),K(),wr();var Kd;(function(e){e[e.Query=0]=`Query`,e[e.Mutation=1]=`Mutation`,e[e.Subscription=2]=`Subscription`})(Kd||={});var qd;function Jd(e){var t;switch(e){case Kd.Query:t=`Query`;break;case Kd.Mutation:t=`Mutation`;break;case Kd.Subscription:t=`Subscription`;break}return t}function Yd(e){is(`parser`,function(){globalThis.__DEV__!==!1&&O.warn(93)}),qd||=new rr(R.parser||1e3);var t=qd.get(e);if(t)return t;var n,r,i;O(!!e&&!!e.kind,94,e);for(var a=[],o=[],s=[],c=[],l=0,u=e.definitions;l<u.length;l++){var d=u[l];if(d.kind===`FragmentDefinition`){a.push(d);continue}if(d.kind===`OperationDefinition`)switch(d.operation){case`query`:o.push(d);break;case`mutation`:s.push(d);break;case`subscription`:c.push(d);break}}O(!a.length||o.length||s.length||c.length,95),O(o.length+s.length+c.length<=1,96,e,o.length,c.length,s.length),r=o.length?Kd.Query:Kd.Mutation,!o.length&&!s.length&&(r=Kd.Subscription);var f=o.length?o:s.length?s:c;O(f.length===1,97,e,f.length);var p=f[0];n=p.variableDefinitions||[],i=p.name&&p.name.kind===`Name`?p.name.value:`data`;var m={name:i,type:r,variables:n};return qd.set(e,m),m}Yd.resetCache=function(){qd=void 0},globalThis.__DEV__!==!1&&lr(`parser`,function(){return qd?qd.size:0});function Xd(e,t){var n=W(`parser`,Yd,[e]),r=Jd(t),i=Jd(n.type);O(n.type===t,98,r,r,i)}el();function Zd(e,t){var n=Q.useRef(void 0);return(!n.current||!Y(n.current.deps,t))&&(n.current={value:e(),deps:t}),n.current.value}var Qd;function $d(){}function ef(){return Qd||=Q.createContext(null),Q.useCallback(function(){var e=console.error;try{return console.error=$d,Q.useContext(Qd),!0}catch{return!1}finally{console.error=e}},[])}K();function $(e,t,n,r){"use no memo";r===void 0&&(r=`Please remove this option.`);var i=Q.useRef(!1);globalThis.__DEV__!==!1&&t in e&&!i.current&&(G(e,t,n,r),i.current=!0)}var tf=Symbol.for(`apollo.hook.wrappers`);function nf(e,t,n){var r=n.queryManager,i=r&&r[tf],a=i&&i[e];return a?a(t):t}h(),k(),el(),K(),dc();var rf=Object.prototype.hasOwnProperty;function af(){}var of=Symbol();function sf(e,t){return t===void 0&&(t=Object.create(null)),nf(`useQuery`,cf,Hd(t&&t.client))(e,t)}function cf(e,t){globalThis.__DEV__!==!1&&($(t,`canonizeResults`,`useQuery`),$(t,`partialRefetch`,`useQuery`),$(t,`defaultOptions`,`useQuery`,`Pass the options directly to the hook instead.`),$(t,`onCompleted`,`useQuery`,"If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),$(t,`onError`,`useQuery`,"If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var n=uf(e,t),r=n.result,i=n.obsQueryFields;return Q.useMemo(function(){return m(m({},r),i)},[r,i])}function lf(e,t,n,r,i){function a(a){return Xd(t,Kd.Query),{client:e,query:t,observable:r&&r.getSSRObservable(i())||ad.inactiveOnCreation.withValue(!r,function(){return W([`canonizeResults`,`partialRefetch`],function(){return e.watchQuery(hf(void 0,e,n,i()))})}),resultData:{previousData:a?.resultData.current?.data}}}var o=Q.useState(a),s=o[0],c=o[1];function l(e){var t;Object.assign(s.observable,(t={},t[of]=e,t));var n=s.resultData;c(m(m({},s),{query:e.query,resultData:Object.assign(n,{previousData:n.current?.data||n.previousData,current:void 0})}))}if(e!==s.client||t!==s.query){var u=a(s);return c(u),[u,l]}return[s,l]}function uf(e,t){var n=Hd(t.client),r=Q.useContext(Bd()).renderPromises,i=!!r,a=n.disableNetworkFetches,o=t.ssr!==!1&&!t.skip,s=t.partialRefetch,c=mf(n,e,t,i),l=lf(n,e,t,r,c),u=l[0],d=u.observable,f=u.resultData,p=l[1],m=c(d);pf(f,d,n,t,m);var h=Q.useMemo(function(){return Tf(d)},[d]);return ff(d,r,o),{result:df(f,d,n,t,m,a,s,i,{onCompleted:t.onCompleted||af,onError:t.onError||af}),obsQueryFields:h,observable:d,resultData:f,client:n,onQueryExecuted:p}}function df(e,t,n,r,i,a,o,s,c){var l=Q.useRef(c);Q.useEffect(function(){l.current=c});var u=(s||a)&&r.ssr===!1&&!r.skip?Cf:r.skip||i.fetchPolicy===`standby`?wf:void 0,d=e.previousData,f=Q.useMemo(function(){return u&&xf(u,d,t,n)},[n,t,u,d]);return Wd(Q.useCallback(function(r){if(s)return function(){};var i=function(){var i=e.current,a=t.getCurrentResult();i&&i.loading===a.loading&&i.networkStatus===a.networkStatus&&Y(i.data,a.data)||gf(a,e,t,n,o,r,l.current)},a=function(s){if(c.current.unsubscribe(),c.current=t.resubscribeAfterError(i,a),!rf.call(s,`graphQLErrors`))throw s;var u=e.current;(!u||u&&u.loading||!Y(s,u.error))&&gf({data:u&&u.data,error:s,loading:!1,networkStatus:Z.error},e,t,n,o,r,l.current)},c={current:t.subscribe(i,a)};return function(){setTimeout(function(){return c.current.unsubscribe()})}},[a,s,t,e,o,n]),function(){return f||vf(e,t,l.current,o,n)},function(){return f||vf(e,t,l.current,o,n)})}function ff(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function pf(e,t,n,r,i){t[of]&&!Y(t[of],i)&&(t.reobserve(hf(t,n,r,i)),e.previousData=e.current?.data||e.previousData,e.current=void 0),t[of]=i}function mf(e,t,n,r){n===void 0&&(n={});var i=n.skip;n.ssr,n.onCompleted,n.onError;var a=n.defaultOptions,o=s(n,[`skip`,`ssr`,`onCompleted`,`onError`,`defaultOptions`]);return function(n){var s=Object.assign(o,{query:t});return r&&(s.fetchPolicy===`network-only`||s.fetchPolicy===`cache-and-network`)&&(s.fetchPolicy=`cache-first`),s.variables||={},i?(s.initialFetchPolicy=s.initialFetchPolicy||s.fetchPolicy||yf(a,e.defaultOptions),s.fetchPolicy=`standby`):s.fetchPolicy||=n?.options.initialFetchPolicy||yf(a,e.defaultOptions),s}}function hf(e,t,n,r){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),n.defaultOptions&&i.push(n.defaultOptions),i.push(Jo(e&&e.options,r)),i.reduce(Xo)}function gf(e,t,n,r,i,a,o){var s=t.current;s&&s.data&&(t.previousData=s.data),!e.error&&V(e.errors)&&(e.error=new J({graphQLErrors:e.errors})),t.current=xf(Sf(e,n,i),t.previousData,n,r),a(),_f(e,s?.networkStatus,o)}function _f(e,t,n){if(!e.loading){var r=bf(e);Promise.resolve().then(function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===Z.ready&&n.onCompleted(e.data)}).catch(function(e){globalThis.__DEV__!==!1&&O.warn(e)})}}function vf(e,t,n,r,i){return e.current||gf(t.getCurrentResult(),e,t,i,r,function(){},n),e.current}function yf(e,t){return e?.fetchPolicy||t?.watchQuery?.fetchPolicy||`cache-first`}
62function bf(e){return V(e.errors)?new J({graphQLErrors:e.errors}):e.error}function xf(e,t,n,r){var i=e.data;e.partial;var a=s(e,[`data`,`partial`]);return m(m({data:i},a),{client:r,observable:n,variables:n.variables,called:e!==Cf&&e!==wf,previousData:t})}function Sf(e,t,n){return e.partial&&n&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!==`cache-only`?(t.refetch(),m(m({},e),{loading:!0,networkStatus:Z.refetch})):e}var Cf=Oo({loading:!0,data:void 0,error:void 0,networkStatus:Z.loading}),wf=Oo({loading:!1,data:void 0,error:void 0,networkStatus:Z.ready});function Tf(e){return{refetch:e.refetch.bind(e),reobserve:function(){var t=[...arguments];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&O.warn(83),e.reobserve.apply(e,t)},fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}K();var Ef=Mn?Q.useLayoutEffect:Q.useEffect;h(),K(),he();var Df=[`refetch`,`reobserve`,`fetchMore`,`updateQuery`,`startPolling`,`stopPolling`,`subscribeToMore`],Of=[`initialFetchPolicy`,`onCompleted`,`onError`,`defaultOptions`,`partialRefetch`,`canonizeResults`],kf=[`query`,`ssr`,`client`,`fetchPolicy`,`nextFetchPolicy`,`refetchWritePolicy`,`errorPolicy`,`pollInterval`,`notifyOnNetworkStatusChange`,`returnPartialData`,`skipPollAttempt`];function Af(e,t){if(globalThis.__DEV__!==!1){var n=t||{};$(n,`canonizeResults`,`useLazyQuery`),$(n,`variables`,`useLazyQuery`,"Pass all `variables` to the returned `execute` function instead."),$(n,`context`,`useLazyQuery`,"Pass `context` to the returned `execute` function instead."),$(n,`onCompleted`,`useLazyQuery`,"If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),$(n,`onError`,`useLazyQuery`,"If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."),$(n,`defaultOptions`,`useLazyQuery`,`Pass the options directly to the hook instead.`),$(n,`initialFetchPolicy`,`useLazyQuery`,"Use the `fetchPolicy` option instead."),$(n,`partialRefetch`,`useLazyQuery`)}var r=Q.useRef(void 0),i=Q.useRef(void 0),a=Q.useRef(void 0),o=Xo(t,r.current||{}),s=o?.query??e;i.current=t,a.current=s;var c=m(m({},o),{skip:!r.current}),l=uf(s,c),u=l.obsQueryFields,d=l.result,f=l.client,p=l.resultData,h=l.observable,g=l.onQueryExecuted,_=h.options.initialFetchPolicy||yf(c.defaultOptions,f.defaultOptions),v=Q.useReducer(function(e){return e+1},0)[1],y=Q.useMemo(function(){for(var e={},t=function(t){var n=u[t];e[t]=function(){return globalThis.__DEV__!==!1&&t===`reobserve`&&globalThis.__DEV__!==!1&&O.warn(79),r.current||(r.current=Object.create(null),v()),n.apply(this,arguments)}},n=0,i=Df;n<i.length;n++){var a=i[n];t(a)}return e},[v,u]),b=!!r.current,x=Q.useMemo(function(){return m(m(m({},d),y),{called:b})},[d,y,b]),S=ef(),C=Q.useRef(new Set),w=Q.useCallback(function(e){if(globalThis.__DEV__!==!1){S()&&globalThis.__DEV__!==!1&&O.warn(80);for(var t=0,n=Of;t<n.length;t++){var o=n[t];C.current.has(o)||(G(e||{},o,`useLazyQuery.execute`),C.current.add(o))}for(var c=0,l=kf;c<l.length;c++){var u=l[c];C.current.has(u)||(G(e||{},u,`useLazyQuery.execute`,"Please pass the option to the `useLazyQuery` hook instead."),C.current.add(u))}}r.current=e?m(m({},e),{fetchPolicy:e.fetchPolicy||_}):{fetchPolicy:_};var d=jf(p,h,f,s,m(m({},Xo(i.current,m({query:a.current},r.current))),{skip:!1}),g).then(function(e){return Object.assign(e,y)});return d.catch(function(){}),d},[S,f,s,y,_,h,p,g]),T=Q.useRef(w);return Ef(function(){T.current=w}),[Q.useCallback(function(){var e=[...arguments];return T.current.apply(T,e)},[]),x]}function jf(e,t,n,r,i,a){var o=mf(n,i.query||r,i,!1)(t),s=t.reobserveAsConcast(hf(t,n,i,o));return a(o),new Promise(function(r){var i;s.subscribe({next:function(e){i=e},error:function(){r(xf(t.getCurrentResult(),e.previousData,t,n))},complete:function(){r(xf(t.maskResult(i),e.previousData,t,n))}})})}h(),K(),el(),dc();function Mf(e,t){globalThis.__DEV__!==!1&&$(t||{},`ignoreResults`,`useMutation`,"If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var n=Hd(t?.client);Xd(e,Kd.Mutation);var r=Q.useState({called:!1,loading:!1,client:n}),i=r[0],a=r[1],o=Q.useRef({result:i,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});Ef(function(){Object.assign(o.current,{client:n,options:t,mutation:e})});var s=Q.useCallback(function(e){e===void 0&&(e={});var t=o.current,n=t.options,r=t.mutation,i=m(m({},n),{mutation:r}),s=e.client||o.current.client;!o.current.result.loading&&!i.ignoreResults&&o.current.isMounted&&a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var c=++o.current.mutationId,l=Xo(i,e);return s.mutate(l).then(function(t){var n=t.data,r=t.errors,i=r&&r.length>0?new J({graphQLErrors:r}):void 0,u=e.onError||o.current.options?.onError;if(i&&u&&u(i,l),c===o.current.mutationId&&!l.ignoreResults){var d={called:!0,loading:!1,data:n,error:i,client:s};o.current.isMounted&&!Y(o.current.result,d)&&a(o.current.result=d)}var f=e.onCompleted||o.current.options?.onCompleted;return i||f?.(t.data,l),t},function(t){if(c===o.current.mutationId&&o.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:s};Y(o.current.result,n)||a(o.current.result=n)}
62var r=e.onError||o.current.options?.onError;if(r)return r(t,l),{data:void 0,errors:t};throw t})},[]),c=Q.useCallback(function(){if(o.current.isMounted){var e={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:e}),a(e)}},[]);return Q.useEffect(function(){var e=o.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[s,m({reset:c},i)]}h(),k(),el(),Rd();function Nf(e,t){t===void 0&&(t=Object.create(null));var n=Q.useRef(!1),r=Hd(t.client);Xd(e,Kd.Subscription),n.current||(n.current=!0,t.onSubscriptionData&&globalThis.__DEV__!==!1&&O.warn(t.onData?84:85),t.onSubscriptionComplete&&globalThis.__DEV__!==!1&&O.warn(t.onComplete?86:87));var i=t.skip,a=t.fetchPolicy,o=t.errorPolicy,s=t.shouldResubscribe,c=t.context,l=t.extensions,u=t.ignoreResults,d=Zd(function(){return t.variables},[t.variables]),f=function(){return Pf(r,e,d,a,o,c,l)},p=Q.useState(t.skip?null:f),h=p[0],g=p[1],_=Q.useRef(f);Ef(function(){_.current=f}),i?h&&g(h=null):(!h||(r!==h.__.client||e!==h.__.query||a!==h.__.fetchPolicy||o!==h.__.errorPolicy||!Y(d,h.__.variables))&&(typeof s==`function`?!!s(t):s)!==!1)&&g(h=f());var v=Q.useRef(t);Q.useEffect(function(){v.current=t});var y=!i&&!u,b=Q.useMemo(function(){return{loading:y,error:void 0,data:void 0,variables:d}},[y,d]),x=Q.useRef(u);Ef(function(){x.current=u});var S=Wd(Q.useCallback(function(e){if(!h)return function(){};var t=!1,n=h.__.variables,r=h.__.client,i=h.subscribe({next:function(i){var a,o;if(!t){var s={loading:!1,data:i.data,error:bf(i),variables:n};h.__.setResult(s),x.current||e(),s.error?(o=(a=v.current).onError)==null||o.call(a,s.error):v.current.onData?v.current.onData({client:r,data:s}):v.current.onSubscriptionData&&v.current.onSubscriptionData({client:r,subscriptionData:s})}},error:function(r){var i,a;r=r instanceof J?r:new J({protocolErrors:[r]}),t||(h.__.setResult({loading:!1,data:void 0,error:r,variables:n}),x.current||e(),(a=(i=v.current).onError)==null||a.call(i,r))},complete:function(){t||(v.current.onComplete?v.current.onComplete():v.current.onSubscriptionComplete&&v.current.onSubscriptionComplete())}});return function(){t=!0,setTimeout(function(){i.unsubscribe()})}},[h]),function(){return h&&!i&&!u?h.__.result:b},function(){return b}),C=Q.useCallback(function(){O(!v.current.skip,88),g(_.current())},[v,_]);return Q.useMemo(function(){return m(m({},S),{restart:C})},[S,C])}function Pf(e,t,n,r,i,a,o){var s={query:t,variables:n,fetchPolicy:r,errorPolicy:i,context:a,extensions:o},c=m(m({},s),{client:e,result:{loading:!0,data:void 0,error:void 0,variables:n},setResult:function(e){c.result=e}}),l=null;return Object.assign(new U(function(t){l||=e.subscribe(s);var n=l.subscribe(t);return function(){return n.unsubscribe()}}),{__:c})}h(),K(),el();function Ff(e){return nf(`useFragment`,If,Hd(e.client))(e)}function If(e){globalThis.__DEV__!==!1&&$(e,`canonizeResults`,`useFragment`);var t=Hd(e.client),n=t.cache,r=e.from,i=s(e,[`from`]),a=Q.useMemo(function(){return typeof r==`string`?r:r===null?null:n.identify(r)},[n,r]),o=Zd(function(){return m(m({},i),{from:a})},[i,a]),c=Q.useMemo(function(){var e=o.fragment,n=o.fragmentName,r=o.from,i=o.optimistic,a=i===void 0?!0:i;if(r===null)return{result:Lf({result:{},complete:!1})};var s=t.cache,c=W(`canonizeResults`,function(){return s.diff(m(m({},o),{returnPartialData:!0,id:r,query:s.getFragmentDoc(e,n),optimistic:a}))});return{result:Lf(m(m({},c),{result:t.queryManager.maskFragment({fragment:e,fragmentName:n,data:c.result})}))}},[t,o]),l=Q.useCallback(function(){return c.result},[c]);return Wd(Q.useCallback(function(e){var n=0,r=W(`canonizeResults`,function(){return o.from===null?null:t.watchFragment(o).subscribe({next:function(t){Y(t,c.result)||(c.result=t,clearTimeout(n),n=setTimeout(e))}})});return function(){r?.unsubscribe(),clearTimeout(n)}},[t,o,c]),l,l)}function Lf(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=ka(e.missing.map(function(e){return e.missing}))),t}h(),Ws(),K();function Rf(e){return new q(function(t,n){var r=s(t,[]);return new U(function(i){var a,o=!1;return Promise.resolve(r).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){o||(a=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})}function zf(e){var t=e||{},n=t.initial,r=n===void 0?300:n,i=t.jitter,a=i===void 0?!0:i,o=t.max,s=o===void 0?1/0:o,c=a?r:r/2;return function(e){var t=Math.min(s,c*2**e);return a&&(t=Math.random()*t),t}}function Bf(e){var t=e||{},n=t.retryIf,r=t.max,i=r===void 0?5:r;return function(e,t,r){return e>=i?!1:n?n(r,t):!!r}}h(),Ws(),K(),dc();var Vf=function(){function e(e,t,n,r,i){var a=this;this.observer=e,this.operation=t,this.forward=n,this.delayFor=r,this.retryIf=i,this.retryCount=0,this.currentSubscription=null,this.onError=function(e){return c(a,void 0,void 0,function(){var t;return l(this,function(n){switch(n.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:return t=n.sent(),t?(this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2]):(this.observer.error(e),[2])}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){var e=this;this.currentSubscription=this.forward(this.operation).subscribe({next:function(t){var n;if(sc(t)){e.onError(new J({protocolErrors:t.extensions[lc]})),(n=e.currentSubscription)==null||n.unsubscribe();return}e.observer.next(t)},error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw Error(`RetryLink BUG! Encountered overlapping retries`);this.timerId=setTimeout(function(){t.timerId=void 0,t.try()},e)},e}(),Hf=function(e){o(t,e);function t(t){var n=e.call(this)||this,r=t||{},i=r.attempts,a=r.delay;return n.delayFor=typeof a==`function`?a:zf(a),n.retryIf=typeof i==`function`?i:Bf(i),n}return t.prototype.request=function(e,t){var n=this;return new U(function(r){var i=new Vf(r,e,t,n.delayFor,n.retryIf);return function(){i.cancel()}})},t}(q);h(),dc(),K(),Ws();function Uf(e){return new q(function(t,n){return new U(function(r){var i,a,o;try{i=n(t).subscribe({next:function(i){if(i.errors?o=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}):sc(i)&&(o=e({protocolErrors:i.extensions[lc],response:i,operation:t,forward:n})),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:n}),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(i)},complete:function(){o||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}(function(e){o(t,e);function t(t){var n=e.call(this)||this;return n.link=Uf(t),n}return t.prototype.request=function(e,t){return this.link.request(e,t)},t})(q),$i(),ln(),Ws(),K(),er();function Wf(e){return e===void 0&&(e=Object.create(null)),Object.assign(new q(function(t,n){var r=e.except,i=t.query,a=t.variables;
62return a&&(t.variables=r?Gf(i,a,r):ts(a)),n(t)}),globalThis.__DEV__===!1?{}:{getMemoryInternals:function(){return{removeTypenameFromVariables:{getVariableDefinitions:qf?.size??0}}}})}function Gf(e,t,n){var r=qf(e);return Object.fromEntries(Object.entries(t).map(function(e){var t=e[0],i=e[1],a=n[r[t]];return e[1]=a?Kf(i,a):ts(i),e}))}function Kf(e,t){if(t===`__KEEP`)return e;if(Array.isArray(e))return e.map(function(e){return Kf(e,t)});if(In(e)){var n={};return Object.keys(e).forEach(function(r){var i=e[r];if(r!==`__typename`){var a=t[r];n[r]=a?Kf(i,a):ts(i)}}),n}return e}var qf=Xi(function(e){var t={};return P(e,{VariableDefinition:function(e){t[e.variable.name.value]=Jf(e.type)}}),t},{max:R[`removeTypenameFromVariables.getVariableDefinitions`]||2e3,cache:Qn});function Jf(e){switch(e.kind){case A.NON_NULL_TYPE:return Jf(e.type);case A.LIST_TYPE:return Jf(e.type);case A.NAMED_TYPE:return e.name.value}}var Yf=i(((e,t)=>{t.exports=n;function n(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}n.prototype.duration=function(){var e=this.ms*this.factor**+this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}})),Xf=i(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),Zf=i((e=>
62{Object.defineProperty(e,"__esModule",{value:!0});function t(e){return typeof e==`string`}e.default=t})),Qf=i((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){return typeof e==`object`&&!!e}e.default=t})),$f=r({getOperationAST:()=>ep});function ep(e,t){let n=null;for(let r of e.definitions)if(r.kind===A.OPERATION_DEFINITION){if(t==null){if(n)return null;n=r}else if(r.name?.value===t)return r}return n}var tp=t((()=>{_e()}));function np(e){var t,n=e.Symbol;return typeof n==`function`?n.observable?t=n.observable:(t=n(`observable`),n.observable=t):t=`@@observable`,t}var rp=t((()=>{})),ip=r({default:()=>op}),ap,op,sp=t((()=>{rp(),ap=typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:typeof module<`u`?module:Function(`return this`)(),op=np(ap)})),cp=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GRAPHQL_SUBSCRIPTIONS=e.GRAPHQL_WS=void 0,e.GRAPHQL_WS=`graphql-ws`,e.GRAPHQL_SUBSCRIPTIONS=`graphql-subscriptions`})),lp=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WS_TIMEOUT=e.MIN_WS_TIMEOUT=void 0,e.MIN_WS_TIMEOUT=1e3,e.WS_TIMEOUT=3e4})),up=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){function e(){throw Error(`Static Class`)}return e.GQL_CONNECTION_INIT=`connection_init`,e.GQL_CONNECTION_ACK=`connection_ack`,e.GQL_CONNECTION_ERROR=`connection_error`,e.GQL_CONNECTION_KEEP_ALIVE=`ka`,e.GQL_CONNECTION_TERMINATE=`connection_terminate`,e.GQL_START=`start`,e.GQL_DATA=`data`,e.GQL_ERROR=`error`,e.GQL_COMPLETE=`complete`,e.GQL_STOP=`stop`,e.SUBSCRIPTION_START=`subscription_start`,e.SUBSCRIPTION_DATA=`subscription_data`,e.SUBSCRIPTION_SUCCESS=`subscription_success`,e.SUBSCRIPTION_FAIL=`subscription_fail`,e.SUBSCRIPTION_END=`subscription_end`,e.INIT=`init`,e.INIT_SUCCESS=`init_success`,e.INIT_FAIL=`init_fail`,e.KEEP_ALIVE=`keepalive`,e}()})),dp=i((t=>{var n=t&&t.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=t&&t.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},i=t&&t.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},a=t&&t.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionClient=void 0;var o=typeof global<`u`?global:typeof window<`u`?window:{},s=o.WebSocket||o.MozWebSocket,c=Yf(),l=Xf(),u=Zf(),d=Qf(),f=(an(),e(Zt)),p=(tp(),e($f)),m=(sp(),e(ip)),h=cp(),g=lp(),_=up();t.SubscriptionClient=function(){function e(e,t,n,r){var i=t||{},a=i.connectionCallback,o=a===void 0?void 0:a,u=i.connectionParams,d=u===void 0?{}:u,f=i.minTimeout,p=f===void 0?g.MIN_WS_TIMEOUT:f,m=i.timeout,_=m===void 0?g.WS_TIMEOUT:m,v=i.reconnect,y=v===void 0?!1:v,b=i.reconnectionAttempts,x=b===void 0?1/0:b,S=i.lazy,C=S===void 0?!1:S,w=i.inactivityTimeout,T=w===void 0?0:w,ee=i.wsOptionArguments,te=ee===void 0?[]:ee;if(this.wsImpl=n||s,!this.wsImpl)throw Error(`Unable to find native implementation, or alternative implementation for WebSocket!`);this.wsProtocols=r||h.GRAPHQL_WS,this.connectionCallback=o,this.url=e,this.operations={},this.nextOperationId=0,this.minWsTimeout=p,this.wsTimeout=_,this.unsentMessagesQueue=[],this.reconnect=y,this.reconnecting=!1,this.reconnectionAttempts=x,this.lazy=!!C,this.inactivityTimeout=T,this.closedByUser=!1,this.backoff=new c({jitter:.5}),this.eventEmitter=new l.EventEmitter,this.middlewares=[],this.client=null,this.maxConnectTimeGenerator=this.createMaxConnectTimeGenerator(),this.connectionParams=this.getConnectionParams(d),this.wsOptionArguments=te,this.lazy||this.connect()}return Object.defineProperty(e.prototype,"status",{get:function(){return this.client===null?this.wsImpl.CLOSED:this.client.readyState}
62,enumerable:!1,configurable:!0}),e.prototype.close=function(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0),this.clearInactivityTimeout(),this.client!==null&&(this.closedByUser=t,e&&(this.clearCheckConnectionInterval(),this.clearMaxConnectTimeout(),this.clearTryReconnectTimeout(),this.unsubscribeAll(),this.sendMessage(void 0,_.default.GQL_CONNECTION_TERMINATE,null)),this.client.close(),this.client.onopen=null,this.client.onclose=null,this.client.onerror=null,this.client.onmessage=null,this.client=null,this.eventEmitter.emit(`disconnected`),e||this.tryReconnect())},e.prototype.request=function(e){var t,n=this.getObserver.bind(this),r=this.executeOperation.bind(this),i=this.unsubscribe.bind(this),a;return this.clearInactivityTimeout(),t={},t[m.default]=function(){return this},t.subscribe=function(t,o,s){var c=n(t,o,s);return a=r(e,function(e,t){e===null&&t===null?c.complete&&c.complete():e?c.error&&c.error(e[0]):c.next&&c.next(t)}),{unsubscribe:function(){a&&=(i(a),null)}}},t},e.prototype.on=function(e,t,n){var r=this.eventEmitter.on(e,t,n);return function(){r.off(e,t,n)}},e.prototype.onConnected=function(e,t){return this.on(`connected`,e,t)},e.prototype.onConnecting=function(e,t){return this.on(`connecting`,e,t)},e.prototype.onDisconnected=function(e,t){return this.on(`disconnected`,e,t)},e.prototype.onReconnected=function(e,t){return this.on(`reconnected`,e,t)},e.prototype.onReconnecting=function(e,t){return this.on(`reconnecting`,e,t)},e.prototype.onError=function(e,t){return this.on(`error`,e,t)},e.prototype.unsubscribeAll=function(){var e=this;Object.keys(this.operations).forEach(function(t){e.unsubscribe(t)})},e.prototype.applyMiddlewares=function(e){var t=this;return new Promise(function(n,r){(function(t,i){var a=function(o){if(o)r(o);else if(t.length>0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,a])}else n(e)};a()})(a([],t.middlewares,!0),t)})},e.prototype.use=function(e){var t=this;return e.map(function(e){if(typeof e.applyMiddleware==`function`)t.middlewares.push(e);else throw Error(`Middleware must implement the applyMiddleware function.`)}),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise(function(t,n){if(typeof e==`function`)try{return t(e.call(null))}catch(e){return n(e)}t(e)})}},e.prototype.executeOperation=function(e,t){var n=this;this.client===null&&this.connect();var r=this.generateOperationId();return this.operations[r]={options:e,handler:t},this.applyMiddlewares(e).then(function(e){n.checkOperationOptions(e,t),n.operations[r]&&(n.operations[r]={options:e,handler:t},n.sendMessage(r,_.default.GQL_START,e))}).catch(function(e){n.unsubscribe(r),t(n.formatErrors(e))}),r},e.prototype.getObserver=function(e,t,n){return typeof e==`function`?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return n&&n()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new c({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&=(clearInterval(this.checkConnectionIntervalId),null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&=(clearTimeout(this.maxConnectTimeoutId),null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&=(clearTimeout(this.tryReconnectTimeoutId),null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&=(clearTimeout(this.inactivityTimeoutId),null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&Object.keys(this.operations).length===0&&(this.inactivityTimeoutId=setTimeout(function(){Object.keys(e.operations).length===0&&e.close()},this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var n=e.query,r=e.variables,i=e.operationName;if(!n)throw Error(`Must provide a query.`);if(!t)throw Error(`Must provide an handler.`);if(!(0,u.default)(n)&&!(0,p.getOperationAST)(n,i)||i&&!(0,u.default)(i)||r&&!(0,d.default)(r))throw Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,r){return{id:e,type:t,payload:r&&r.query?n(n({},r),{query:typeof r.query==`string`?r.query:(0,f.print)(r.query)}):r}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:`FormatedError`,message:`Unknown error`,originalError:e}]},e.prototype.sendMessage=function(e,t,n){this.sendMessageRaw(this.buildMessage(e,t,n))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch{this.eventEmitter.emit(`error`,Error(`Message must be JSON-serializable. Got: `+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit(`error`,Error(`A message was not sent because socket is not connected, is closing or is already closed. Message was: `+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(!(!this.reconnect||this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||=(Object.keys(this.operations).forEac
62h(function(t){e.unsentMessagesQueue.push(e.buildMessage(t,_.default.GQL_START,e.operations[t].options))}),!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout(function(){e.connect()},t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach(function(t){e.sendMessageRaw(t)}),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){if(this.wasKeepAliveReceived){this.wasKeepAliveReceived=!1;return}this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout(function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))},this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments,!1))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return r(t,void 0,void 0,function(){var e,t;return i(this,function(n){switch(n.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?`reconnecting`:`connecting`),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=n.sent(),this.sendMessage(void 0,_.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=n.sent(),this.sendMessage(void 0,_.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}})})},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit(`error`,e)},this.client.onmessage=function(e){var n=e.data;t.processReceivedData(n)}},e.prototype.processReceivedData=function(e){var t,r;try{t=JSON.parse(e),r=t.id}catch{throw Error(`Message must be JSON-parseable. Got: `+e)}if([_.default.GQL_DATA,_.default.GQL_COMPLETE,_.default.GQL_ERROR].indexOf(t.type)!==-1&&!this.operations[r]){this.unsubscribe(r);return}switch(t.type){case _.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case _.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?`reconnected`:`connected`,t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case _.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case _.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(t.payload),null),delete this.operations[r];break;case _.default.GQL_DATA:var a=t.payload.errors?n(n({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[r].handler(null,a);break;case _.default.GQL_CONNECTION_KEEP_ALIVE:var o=this.wasKeepAliveReceived===void 0;this.wasKeepAliveReceived=!0,o&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw Error(`Invalid message type!`)}},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,_.default.GQL_STOP,void 0))},e}()}));h();var fp=dp();Ws();var pp=function(e){o(t,e);function t(t){var n=e.call(this)||this;return t instanceof fp.SubscriptionClient?n.subscriptionClient=t:n.subscriptionClient=new fp.SubscriptionClient(t.uri,t.options,t.webSocketImpl),n}return t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(q);export{Us as A,Ba as B,Yu as C,uu as D,mu as E,Ms as F,l as G,ii as H,Os as I,d as K,Ds as L,Rs as M,Ls as N,Vc as O,q as P,K as R,qu as S,Ku as T,oi as U,Fa as V,c as W,yd as _,Rf as a,$u as b,Mf as c,Hd as d,Vd as f,Id as g,Ed as h,Hf as i,Ws as j,Hc as k,Af as l,Rd as m,Wf as n,Ff as o,Ld as p,h as q,Uf as r,Nf as s,pp as t,sf as u,bd as v,Gu as w,Xu as x,Z as y,us as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.