PageSourceSearch

https://app.currents.dev/assets/apollo-B9xYJgZj.js

js currents.dev collected 2026-09-25 20:48:33 UTC 203,355 bytes, 58 lines download raw bytes

1import{r as qa,g as Ba}from"./datepicker-CN3oO0F6.js";(function(){try{var t=typeof window<"u"?window:typeof st<"u"?st:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"01e610d75577dcaf5e5c9af84e79c9458f58a767"},t._sentryModuleMetadata=t._sentryModuleMetadata||{},t._sentryModuleMetadata[new t.Error().stack]=(function(r){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i!=null)for(var a in i)i.hasOwnProperty(a)&&(r[a]=i[a])}return r})({},t._sentryModuleMetadata[new t.Error().stack],{"_sentryBundlerPluginAppKey:currents-dashboard":!0});var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="a4c1faf7-f596-4648-a490-b5abf37d9116",t._sentryDebugIdIdentifier="sentry-dbid-a4c1faf7-f596-4648-a490-b5abf37d9116")}catch{}})();function Ua(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(t,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var sr=function(t,e){return sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},sr(t,e)};function ae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");sr(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var v=function(){return v=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},v.apply(this,arguments)};function te(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r}function fe(t,e,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(f){try{c(n.next(f))}catch(l){o(l)}}function u(f){try{c(n.throw(f))}catch(l){o(l)}}function c(f){f.done?a(f.value):i(f.value).then(s,u)}c((n=n.apply(t,e||[])).next())})}function le(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,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(c){return function(f){return u([c,f])}}function u(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(f){c=[6,f],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function hn(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function jc(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function Y(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}
1function ur(t){return this instanceof ur?(this.v=t,this):new ur(t)}function Vc(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(d){return function(p){return Promise.resolve(p).then(d,l)}}function s(d,p){n[d]&&(i[d]=function(m){return new Promise(function(g,y){a.push([d,m,g,y])>1||u(d,m)})},p&&(i[d]=p(i[d])))}function u(d,p){try{c(n[d](p))}catch(m){h(a[0][3],m)}}function c(d){d.value instanceof ur?Promise.resolve(d.value.v).then(f,l):h(a[0][2],d)}function f(d){u("next",d)}function l(d){u("throw",d)}function h(d,p){d(p),a.shift(),a.length&&u(a[0][0],a[0][1])}}function Qc(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof hn=="function"?hn(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=t[a]&&function(o){return new Promise(function(s,u){o=t[a](o),i(s,u,o.done,o.value)})}}function i(a,o,s,u){Promise.resolve(u).then(function(c){a({value:c,done:s})},o)}}var Wt="Invariant Violation",dn=Object.setPrototypeOf,za=dn===void 0?function(t,e){return t.__proto__=e,t}:dn,mi=(function(t){ae(e,t);function e(r){r===void 0&&(r=Wt);var n=t.call(this,typeof r=="number"?Wt+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=Wt,za(n,e.prototype),n}return e})(Error);function be(t,e){if(!t)throw new mi(e)}var gi=["debug","log","warn","error","silent"],Wa=gi.indexOf("log");function yt(t){return function(){if(gi.indexOf(t)>=Wa){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=yt("debug"),t.log=yt("log"),t.warn=yt("warn"),t.error=yt("error")})(be||(be={}));var Fr="3.13.8";function ee(t){try{return t()}catch{}}const st=ee(function(){return globalThis})||ee(function(){return window})||ee(function(){return self})||ee(function(){return globalThis})||ee(function(){return ee.constructor("return this")()});var pn=new Map;function cr(t){var e=pn.get(t)||1;return pn.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function bi(t,e){e===void 0&&(e=0);var r=cr("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("<undefined>")}function mt(t){return function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(typeof e=="number"){var i=e;e=Ar(i),e||(e=Mr(i,r),r=[])}t.apply(void 0,[e].concat(r))}}var T=Object.assign(function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e||be(e,Ar(r,n)||Mr(r,n))},{debug:mt(be.debug),log:mt(be.log),warn:mt(be.warn),error:mt(be.error)});function H(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return new mi(Ar(t,e)||Mr(t,e))}var vn=Symbol.for("ApolloErrorMessageHandler_"+Fr);function Ei(t){if(typeof t=="string")return t;try{return bi(t,2).slice(0,1e3)}catch{return"<non-serializable>"}}function Ar(t,e){if(e===void 0&&(e=[]),!!t)return st[vn]&&st[vn](t,e.map(Ei))}function Mr(t,e){if(e===void 0&&(e=[]),!!t)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Fr,message:t,args:e.map(Ei)})))}function Et(t,e){if(!!!t)throw new Error(e)}function Ga(t){return typeof t=="object"&&t!==null}function $a(t,e){if(!!!t)throw new Error("Unexpected invariant triggered.")}const Ya=/\r\n|[\n\r]/g;function fr(t,e){let r=0,n=1;for(const i of t.body.matchAll(Ya)){if(typeof i.index=="number"||$a(!1),i.index>=e)break;r=i.index+i[0].length,n+=1}return{line:n,column:e+1-r}}function Ha(t){return _i(t.source,fr(t.source,t.start))}function _i(t,e){const r=t.locationOffset.column-1,n="".padStart(r)+t.body,i=e.line-1,a=t.locationOffset.line-1,o=e.line+a,s=e.line===1?r:0,u=e.column+s,c=`${t.name}:${o}:${u}
2`,f=n.split(/\r\n|[\n\r]/g),l=f[i];if(l.length>120){const h=Math.floor(u/80),d=u%80,p=[];for(let m=0;m<l.length;m+=80)p.push(l.slice(m,m+80));return c+yn([[`${o} |`,p[0]],...p.slice(1,h+1).map(m=>["|",m]),["|","^".padStart(d)],["|",p[h+1]]])}return c+yn([[`${o-1} |`,f[i-1]],[`${o} |`,l],["|","^".padStart(u)],[`${o+1} |`,f[i+1]]])}function yn(t){const e=t.filter(([n,i])=>i!==void 0),r=Math.max(...e.map(([n])=>n.length));return e.map(([n,i])=>n.padStart(r)+(i?" "+i:"")).join(`
3`)}function Ja(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}
3class Pr extends Error{constructor(e,...r){var n,i,a;const{nodes:o,source:s,positions:u,path:c,originalError:f,extensions:l}=Ja(r);super(e),this.name="GraphQLError",this.path=c??void 0,this.originalError=f??void 0,this.nodes=mn(Array.isArray(o)?o:o?[o]:void 0);const h=mn((n=this.nodes)===null||n===void 0?void 0:n.map(p=>p.loc).filter(p=>p!=null));this.source=s??(h==null||(i=h[0])===null||i===void 0?void 0:i.source),this.positions=u??(h==null?void 0:h.map(p=>p.start)),this.locations=u&&s?u.map(p=>fr(s,p)):h==null?void 0:h.map(p=>fr(p.source,p.start));const d=Ga(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(a=l??d)!==null&&a!==void 0?a:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Pr):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(const r of this.nodes)r.loc&&(e+=`
4
5`+Ha(r.loc));else if(this.source&&this.locations)for(const r of this.locations)e+=`
6
7`+_i(this.source,r);return e}toJSON(){const 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 mn(t){return t===void 0||t.length===0?void 0:t}function W(t,e,r){return new Pr(`Syntax Error: ${r}`,{source:t,positions:[e]})}class Ka{constructor(e,r,n){this.start=e.start,this.end=r.end,this.startToken=e,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Oi{constructor(e,r,n,i,a,o){this.kind=e,this.start=r,this.end=n,this.line=i,this.column=a,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Si={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Xa=new Set(Object.keys(Si));function gn(t){const e=t==null?void 0:t.kind;return typeof e=="string"&&Xa.has(e)}var Ne;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Ne||(Ne={}));var lr;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(lr||(lr={}));var k;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.
vendor: 4,979 bytes, lines 7-9
7STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(k||(k={}));function hr(t){return t===9||t===32}function ut(t){return t>=48&&t<=57}function wi(t){return t>=97&&t<=122||t>=65&&t<=90}function Ti(t){return wi(t)||t===95}function Za(t){return wi(t)||ut(t)||t===95}function eo(t){var e;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let o=0;o<t.length;++o){var a;const s=t[o],u=to(s);u!==s.length&&(n=(a=n)!==null&&a!==void 0?a:o,i=o,o!==0&&u<r&&(r=u))}return t.map((o,s)=>s===0?o:o.slice(r)).slice((e=n)!==null&&e!==void 0?e:0,i+1)}function to(t){let e=0;for(;e<t.length&&hr(t.charCodeAt(e));)++e;return e}function ro(t,e){const r=t.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=n.length===1,a=n.length>1&&n.slice(1).every(d=>d.length===0||hr(d.charCodeAt(0))),o=r.endsWith('\\"""'),s=t.endsWith('"')&&!o,u=t.endsWith("\\"),c=s||u,f=!i||t.length>70||c||a||o;let l="";const h=i&&hr(t.charCodeAt(0));return(f&&!h||a)&&(l+=`
8`),l+=r,(f||c)&&(l+=`
9`),'"""'+l+'"""'}var _;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(_||(_={}));class no{constructor(e){const r=new Oi(_.SOF,0,0,0,0);this.source=e,this.lastToken=r,this.token=r,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!==_.EOF)do if(e.next)e=e.next;else{const r=ao(this,e.end);e.next=r,r.prev=e,e=r}while(e.kind===_.COMMENT);return e}}function io(t){return t===_.BANG||t===_.DOLLAR||t===_.AMP||t===_.PAREN_L||t===_.PAREN_R||t===_.SPREAD||t===_.COLON||t===_.EQUALS||t===_.AT||t===_.BRACKET_L||t===_.BRACKET_R||t===_.BRACE_L||t===_.PIPE||t===_.BRACE_R}function Be(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function At(t,e){return ki(t.charCodeAt(e))&&Di(t.charCodeAt(e+1))}function ki(t){return t>=55296&&t<=56319}function Di(t){return t>=56320&&t<=57343}function Se(t,e){const r=t.source.body.codePointAt(e);if(r===void 0)return _.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function q(t,e,r,n,i){const a=t.line,o=1+r-t.lineStart;return new Oi(e,r,n,a,o,i)}function ao(t,e){const r=t.source.body,n=r.length;let i=e;for(;i<n;){const a=r.charCodeAt(i);switch(a){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++t.line,t.lineStart=i;continue;case 13:r.charCodeAt(i+1)===10?i+=2:++i,++t.line,t.lineStart=i;continue;case 35:return oo(t,i);case 33:return q(t,_.BANG,i,i+1);case 36:return q(t,_.DOLLAR,i,i+1);case 38:return q(t,_.AMP,i,i+1);case 40:return q(t,_.PAREN_L,i,i+1);case 41:return q(t,_.PAREN_R,i,i+1);case 46:if(r.charCodeAt(i+1)===46&&r.charCodeAt(i+2)===46)return q(t,_.SPREAD,i,i+3);break;case 58:return q(t,_.COLON,i,i+1);case 61:return q(t,_.EQUALS,i,i+1);case 64:return q(t,_.AT,i,i+1);case 91:return q(t,_.BRACKET_L,i,i+1);case 93:return q(t,_.BRACKET_R,i,i+1);case 123:return q(t,_.BRACE_L,i,i+1);case 124:return q(t,_.PIPE,i,i+1);case 125:return q(t,_.BRACE_R,i,i+1);case 34:return r.charCodeAt(i+1)===34&&r.charCodeAt(i+2)===34?ho(t,i):uo(t,i)}if(ut(a)||a===45)return so(t,i,a);if(Ti(a))return po(t,i);throw W(t.source,i,a===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Be(a)||At(r,i)?`Unexpected character: ${Se(t,i)}.`:`Invalid character: ${Se(t,i)}.`)}return q(t,_.EOF,n,n)}function oo(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;i<n;){const a=r.charCodeAt(i);if(a===10||a===13)break;if(Be(a))++i;else if(At(r,i))i+=2;else break}return q(t,_.COMMENT,e,i,r.slice(e+1,i))}function so(t,e,r){const n=t.source.body;let i=e,a=r,o=!1;
vendor: 4,197 bytes, lines 9-11
9if(a===45&&(a=n.charCodeAt(++i)),a===48){if(a=n.charCodeAt(++i),ut(a))throw W(t.source,i,`Invalid number, unexpected digit after 0: ${Se(t,i)}.`)}else i=Gt(t,i,a),a=n.charCodeAt(i);if(a===46&&(o=!0,a=n.charCodeAt(++i),i=Gt(t,i,a),a=n.charCodeAt(i)),(a===69||a===101)&&(o=!0,a=n.charCodeAt(++i),(a===43||a===45)&&(a=n.charCodeAt(++i)),i=Gt(t,i,a),a=n.charCodeAt(i)),a===46||Ti(a))throw W(t.source,i,`Invalid number, expected digit but got: ${Se(t,i)}.`);return q(t,o?_.FLOAT:_.INT,e,i,n.slice(e,i))}function Gt(t,e,r){if(!ut(r))throw W(t.source,e,`Invalid number, expected digit but got: ${Se(t,e)}.`);const n=t.source.body;let i=e+1;for(;ut(n.charCodeAt(i));)++i;return i}function uo(t,e){const r=t.source.body,n=r.length;let i=e+1,a=i,o="";for(;i<n;){const s=r.charCodeAt(i);if(s===34)return o+=r.slice(a,i),q(t,_.STRING,e,i+1,o);if(s===92){o+=r.slice(a,i);const u=r.charCodeAt(i+1)===117?r.charCodeAt(i+2)===123?co(t,i):fo(t,i):lo(t,i);o+=u.value,i+=u.size,a=i;continue}if(s===10||s===13)break;if(Be(s))++i;else if(At(r,i))i+=2;else throw W(t.source,i,`Invalid character within String: ${Se(t,i)}.`)}throw W(t.source,i,"Unterminated string.")}function co(t,e){const r=t.source.body;let n=0,i=3;for(;i<12;){const a=r.charCodeAt(e+i++);if(a===125){if(i<5||!Be(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|Ze(a),n<0)break}throw W(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+i)}".`)}function fo(t,e){const r=t.source.body,n=bn(r,e+2);if(Be(n))return{value:String.fromCodePoint(n),size:6};if(ki(n)&&r.charCodeAt(e+6)===92&&r.charCodeAt(e+7)===117){const i=bn(r,e+8);if(Di(i))return{value:String.fromCodePoint(n,i),size:12}}throw W(t.source,e,`Invalid Unicode escape sequence: "${r.slice(e,e+6)}".`)}function bn(t,e){return Ze(t.charCodeAt(e))<<12|Ze(t.charCodeAt(e+1))<<8|Ze(t.charCodeAt(e+2))<<4|Ze(t.charCodeAt(e+3))}function Ze(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function lo(t,e){const r=t.source.body;switch(r.charCodeAt(e+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:`
10`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw W(t.source,e,`Invalid character escape sequence: "${r.slice(e,e+2)}".`)}function ho(t,e){const r=t.source.body,n=r.length;let i=t.lineStart,a=e+3,o=a,s="";const u=[];for(;a<n;){const c=r.charCodeAt(a);if(c===34&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){s+=r.slice(o,a),u.push(s);const f=q(t,_.BLOCK_STRING,e,a+3,eo(u).join(`
11`));return t.line+=u.length-1,t.lineStart=i,f}if(c===92&&r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34&&r.charCodeAt(a+3)===34){s+=r.slice(o,a),o=a+1,a+=4;continue}if(c===10||c===13){s+=r.slice(o,a),u.push(s),c===13&&r.charCodeAt(a+1)===10?a+=2:++a,s="",o=a,i=a;continue}if(Be(c))++a;else if(At(r,a))a+=2;else throw W(t.source,a,`Invalid character within String: ${Se(t,a)}.`)}throw W(t.source,a,"Unterminated string.")}function po(t,e){const r=t.source.body,n=r.length;let i=e+1;for(;i<n;){const a=r.charCodeAt(i);if(Za(a))++i;else break}return q(t,_.NAME,e,i,r.slice(e,i))}const vo=10,Ii=2;function Lr(t){return Mt(t,[])}function Mt(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return yo(t,e);default:return String(t)}}function yo(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const r=[...e,t];if(mo(t)){const n=t.toJSON();if(n!==t)return typeof n=="string"?n:Mt(n,r)}else if(Array.isArray(t))return bo(t,r);return go(t,r)}function mo(t){return typeof t.toJSON=="function"}function go(t,e){const r=Object.entries(t);return r.length===0?"{}":e.length>Ii?"["+Eo(t)+"]":"{ "+r.map(([i,a])=>i+": "+Mt(a,e)).join(", ")+" }"}function bo(t,e){if(t.length===0)return"[]";if(e.length>Ii)return"[Array]";const r=Math.min(vo,t.length),n=t.length-r,i=[];for(let a=0;a<r;++a)i.push(Mt(t[a],e));return n===1?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}function Eo(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");
vendor: 7,558 bytes, lines 11-22
11if(e==="Object"&&typeof t.constructor=="function"){const r=t.constructor.name;if(typeof r=="string"&&r!=="")return r}return e}const _o=globalThis.process&&!0,Oo=_o?function(e,r){return e instanceof r}:function(e,r){if(e instanceof r)return!0;if(typeof e=="object"&&e!==null){var n;const i=r.prototype[Symbol.toStringTag],a=Symbol.toStringTag in e?e[Symbol.toStringTag]:(n=e.constructor)===null||n===void 0?void 0:n.name;if(i===a){const o=Lr(e);throw new Error(`Cannot use ${i} "${o}" from another module or realm.
12
13Ensure that there is only one instance of "graphql" in the node_modules
14directory. If different versions of "graphql" are the dependencies of other
15relied on modules, use "resolutions" to ensure only one version is installed.
16
17https://yarnpkg.com/en/docs/selective-version-resolutions
18
19Duplicate "graphql" modules cannot be used at the same time since different
20versions may have different capabilities and behavior. The data from one
21version used in the function from another could produce confusing and
22spurious results.`)}}return!1};class xi{constructor(e,r="GraphQL request",n={line:1,column:1}){typeof e=="string"||Et(!1,`Body must be a string. Received: ${Lr(e)}.`),this.body=e,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Et(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Et(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function So(t){return Oo(t,xi)}function wo(t,e){const r=new To(t,e),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class To{constructor(e,r={}){const n=So(e)?e:new xi(e);this._lexer=new no(n),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(_.NAME);return this.node(e,{kind:k.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:k.DOCUMENT,definitions:this.many(_.SOF,this.parseDefinition,_.EOF)})}parseDefinition(){if(this.peek(_.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),r=e?this._lexer.lookahead():this._lexer.token;if(r.kind===_.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw W(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(_.BRACE_L))return this.node(e,{kind:k.OPERATION_DEFINITION,operation:Ne.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(_.NAME)&&(n=this.parseName()),this.node(e,{kind:k.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(_.NAME);switch(e.value){case"query":return Ne.QUERY;case"mutation":return Ne.MUTATION;case"subscription":return Ne.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(_.PAREN_L,this.parseVariableDefinition,_.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:k.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(_.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(_.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(_.DOLLAR),this.node(e,{kind:k.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:k.SELECTION_SET,selections:this.many(_.BRACE_L,this.parseSelection,_.BRACE_R)})}parseSelection(){return this.peek(_.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,r=this.parseName();let n,i;return this.expectOptionalToken(_.COLON)?(n=r,i=this.parseName()):i=r,this.node(e,{kind:k.FIELD,alias:n,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(_.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const r=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(_.PAREN_L,r,_.PAREN_R)}parseArgument(e=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(_.COLON),this.node(r,{kind:k.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(_.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(_.NAME)?this.node(e,{kind:k.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:k.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:k.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:k.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const r=this._lexer.token;switch(r.kind){case _.BRACKET_L:return this.parseList(e);case _.BRACE_L:return this.parseObject(e);case _.INT:return this.advanceLexer(),this.node(r,{kind:k.INT,value:r.value});case _.FLOAT:return this.advanceLexer(),this.node(r,{kind:k.FLOAT,value:r.value});case _.STRING:case _.BLOCK_STRING:return this.parseStringLiteral();case _.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:k.BOOLEAN,value:!0});case"false":return this.node(r,{kind:k.BOOLEAN,value:!1});case"null":return this.node(r,{kind:k.NULL});default:return this.node(r,{kind:k.ENUM,value:r.value})}case _.DOLLAR:if(e)if(this.expectToken(_.DOLLAR),this._lexer.token.kind===_.NAME){const n=this._lexer.token.value;throw W(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:k.STRING,value:e.value,block:e.kind===_.BLOCK_STRING})}parseList(e){const r=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:k.LIST,values:this.any(_.BRACKET_L,r,_.BRACKET_R)})}parseObject(e){const r=()=>this.parseObjectField(e);
vendor: 6,673 bytes, line 22
22return this.node(this._lexer.token,{kind:k.OBJECT,fields:this.any(_.BRACE_L,r,_.BRACE_R)})}parseObjectField(e){const r=this._lexer.token,n=this.parseName();return this.expectToken(_.COLON),this.node(r,{kind:k.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const r=[];for(;this.peek(_.AT);)r.push(this.parseDirective(e));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const r=this._lexer.token;return this.expectToken(_.AT),this.node(r,{kind:k.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let r;if(this.expectOptionalToken(_.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(_.BRACKET_R),r=this.node(e,{kind:k.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(_.BANG)?this.node(e,{kind:k.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:k.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(_.STRING)||this.peek(_.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),i=this.many(_.BRACE_L,this.parseOperationTypeDefinition,_.BRACE_R);return this.node(e,{kind:k.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:i})}parseOperationTypeDefinition(){const e=this._lexer.token,r=this.parseOperationType();this.expectToken(_.COLON);const n=this.parseNamedType();return this.node(e,{kind:k.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:k.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:i})}parseObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:k.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(_.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(_.BRACE_L,this.parseFieldDefinition,_.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(_.COLON);const a=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:k.FIELD_DEFINITION,description:r,name:n,arguments:i,type:a,directives:o})}parseArgumentDefs(){return this.optionalMany(_.PAREN_L,this.parseInputValueDef,_.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(_.COLON);const i=this.parseTypeReference();let a;this.expectOptionalToken(_.EQUALS)&&(a=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:k.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:a,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),i=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:k.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:i,directives:a,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),i=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:k.UNION_TYPE_DEFINITION,description:r,name:n,directives:i,types:a})}parseUnionMemberTypes(){return this.expectOptionalToken(_.EQUALS)?this.delimitedMany(_.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),i=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:k.ENUM_TYPE_DEFINITION,description:r,name:n,directives:i,values:a})}parseEnumValuesDefinition(){return this.optionalMany(_.BRACE_L,this.parseEnumValueDefinition,_.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:k.ENUM_VALUE_DEFINITION,description:r,name:n,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw W(this._lexer.source,this._lexer.token.start,`${gt(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),i=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:k.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:i,fields:a})}parseInputFieldsDefinition(){return this.optionalMany(_.BRACE_L,this.parseInputValueDef,_.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===_.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()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(_.BRACE_L,this.parseOperationTypeDefinition,_.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:k.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:k.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();
vendor: 10,965 bytes, lines 22-49
22return this.node(e,{kind:k.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(n.length===0&&i.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:k.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:k.UNION_TYPE_EXTENSION,name:r,directives:n,types:i})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:k.ENUM_TYPE_EXTENSION,name:r,directives:n,values:i})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(n.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:k.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:i})}parseDirectiveDefinition(){const e=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(_.AT);const n=this.parseName(),i=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:k.DIRECTIVE_DEFINITION,description:r,name:n,arguments:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(_.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(lr,r.value))return r;throw this.unexpected(e)}node(e,r){return this._options.noLocation!==!0&&(r.loc=new Ka(e,this._lexer.lastToken,this._lexer.source)),r}peek(e){return this._lexer.token.kind===e}expectToken(e){const r=this._lexer.token;if(r.kind===e)return this.advanceLexer(),r;throw W(this._lexer.source,r.start,`Expected ${Ni(e)}, found ${gt(r)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const r=this._lexer.token;if(r.kind===_.NAME&&r.value===e)this.advanceLexer();else throw W(this._lexer.source,r.start,`Expected "${e}", found ${gt(r)}.`)}expectOptionalKeyword(e){const r=this._lexer.token;return r.kind===_.NAME&&r.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const r=e??this._lexer.token;return W(this._lexer.source,r.start,`Unexpected ${gt(r)}.`)}any(e,r,n){this.expectToken(e);const i=[];for(;!this.expectOptionalToken(n);)i.push(r.call(this));return i}optionalMany(e,r,n){if(this.expectOptionalToken(e)){const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}return[]}many(e,r,n){this.expectToken(e);const i=[];do i.push(r.call(this));while(!this.expectOptionalToken(n));return i}delimitedMany(e,r){this.expectOptionalToken(e);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,r=this._lexer.advance();if(r.kind!==_.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw W(this._lexer.source,r.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function gt(t){const e=t.value;return Ni(t.kind)+(e!=null?` "${e}"`:"")}function Ni(t){return io(t)?`"${t}"`:t}function ko(t){return`"${t.replace(Do,Io)}"`}const Do=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Io(t){return xo[t.charCodeAt(0)]}const xo=["\\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"],Pt=Object.freeze({});function ne(t,e,r=Si){const n=new Map;for(const y of Object.values(k))n.set(y,No(e,y));let i,a=Array.isArray(t),o=[t],s=-1,u=[],c=t,f,l;const h=[],d=[];do{s++;const y=s===o.length,b=y&&u.length!==0;if(y){if(f=d.length===0?void 0:h[h.length-1],c=l,l=d.pop(),b)if(a){c=c.slice();let O=0;for(const[S,w]of u){const x=S-O;w===null?(c.splice(x,1),O++):c[x]=w}}else{c=Object.defineProperties({},Object.getOwnPropertyDescriptors(c));for(const[O,S]of u)c[O]=S}s=i.index,o=i.keys,u=i.edits,a=i.inArray,i=i.prev}else if(l){if(f=a?s:o[s],c=l[f],c==null)continue;h.push(f)}let E;if(!Array.isArray(c)){var p,m;gn(c)||Et(!1,`Invalid AST Node: ${Lr(c)}.`);const O=y?(p=n.get(c.kind))===null||p===void 0?void 0:p.leave:(m=n.get(c.kind))===null||m===void 0?void 0:m.enter;if(E=O==null?void 0:O.call(e,c,f,l,h,d),E===Pt)break;if(E===!1){if(!y){h.pop();continue}}else if(E!==void 0&&(u.push([f,E]),!y))if(gn(E))c=E;else{h.pop();continue}}if(E===void 0&&b&&u.push([f,c]),y)h.pop();else{var g;i={inArray:a,index:s,keys:o,edits:u,prev:i},a=Array.isArray(c),o=a?c:(g=r[c.kind])!==null&&g!==void 0?g:[],s=-1,u=[],l&&d.push(l),l=c}}while(i!==void 0);return u.length!==0?u[u.length-1][1]:t}function No(t,e){const r=t[e];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:t.enter,leave:t.leave}}function Co(t){return ne(t,Fo)}const Ro=80,Fo={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>D(t.definitions,`
23
24`)},OperationDefinition:{leave(t){const e=R("(",D(t.variableDefinitions,", "),")"),r=D([t.operation,D([t.name,e]),D(t.directives," ")]," ");return(r==="query"?"":r+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:r,directives:n})=>t+": "+e+R(" = ",r)+R(" ",D(n," "))},SelectionSet:{leave:({selections:t})=>Z(t)},Field:{leave({alias:t,name:e,arguments:r,directives:n,selectionSet:i}){const a=R("",t,": ")+e;let o=a+R("(",D(r,", "),")");return o.length>Ro&&(o=a+R(`(
25`,_t(D(r,`
26`)),`
27)`)),D([o,D(n," "),i]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+R(" ",D(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:r})=>D(["...",R("on ",t),D(e," "),r]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${t}${R("(",D(r,", "),")")} on ${e} ${R("",D(n," ")," ")}`+i},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?ro(t):ko(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+D(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+D(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+R("(",D(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:r})=>R("",t,`
28`)+D(["schema",D(e," "),Z(r)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:r})=>R("",t,`
29`)+D(["scalar",e,D(r," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>R("",t,`
30`)+D(["type",e,R("implements ",D(r," & ")),D(n," "),Z(i)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:r,type:n,directives:i})=>R("",t,`
31`)+e+(En(r)?R(`(
32`,_t(D(r,`
33`)),`
34)`):R("(",D(r,", "),")"))+": "+n+R(" ",D(i," "))},InputValueDefinition:{leave:({description:t,name:e,type:r,defaultValue:n,directives:i})=>R("",t,`
35`)+D([e+": "+r,R("= ",n),D(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:r,directives:n,fields:i})=>R("",t,`
36`)+D(["interface",e,R("implements ",D(r," & ")),D(n," "),Z(i)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:r,types:n})=>R("",t,`
37`)+D(["union",e,D(r," "),R("= ",D(n," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:r,values:n})=>R("",t,`
38`)+D(["enum",e,D(r," "),Z(n)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:r})=>R("",t,`
39`)+D([e,D(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:r,fields:n})=>R("",t,`
40`)+D(["input",e,D(r," "),Z(n)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:r,repeatable:n,locations:i})=>R("",t,`
41`)+"directive @"+e+(En(r)?R(`(
42`,_t(D(r,`
43`)),`
44)`):R("(",D(r,", "),")"))+(n?" repeatable":"")+" on "+D(i," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>D(["extend schema",D(t," "),Z(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>D(["extend scalar",t,D(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>D(["extend type",t,R("implements ",D(e," & ")),D(r," "),Z(n)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:r,fields:n})=>D(["extend interface",t,R("implements ",D(e," & ")),D(r," "),Z(n)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:r})=>D(["extend union",t,D(e," "),R("= ",D(r," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:r})=>D(["extend enum",t,D(e," "),Z(r)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:r})=>D(["extend input",t,D(e," "),Z(r)]," ")}};function D(t,e=""){var r;return(r=t==null?void 0:t.filter(n=>n).join(e))!==null&&r!==void 0?r:""}function Z(t){return R(`{
45`,_t(D(t,`
46`)),`
47}`)}function R(t,e,r=""){return e!=null&&e!==""?t+e+r:""}function _t(t){return R("  ",t.replace(/\n/g,`
48  `))}function En(t){var e;return(e=t==null?void 0:t.some(r=>r.includes(`
49`)))!==null&&e!==void 0?e:!1}function _n(t){return t.kind===k.FIELD||t.kind===k.FRAGMENT_SPREAD||t.kind===k.INLINE_FRAGMENT}function pt(t,e){var r=t.directives;return!r||!r.length?!0:Po(r).every(function(n){var i=n.directive,a=n.ifArgument,o=!1;return a.value.kind==="Variable"?(o=e&&e[a.value.name.value],T(o!==void 0,78,i.name.value)):o=a.value.value,i.name.value==="skip"?!o:o})}function ct(t,e,r){var n=new Set(t),i=n.size;
49return ne(e,{Directive:function(a){if(n.delete(a.name.value)&&(!r||!n.size))return Pt}}),r?!n.size:n.size<i}function Ao(t){return t&&ct(["client","export"],t,!0)}function Mo(t){var e=t.name.value;return e==="skip"||e==="include"}function Po(t){var e=[];return t&&t.length&&t.forEach(function(r){if(Mo(r)){var n=r.arguments,i=r.name.value;T(n&&n.length===1,79,i);var a=n[0];T(a.name&&a.name.value==="if",80,i);var o=a.value;T(o&&(o.kind==="Variable"||o.kind==="BooleanValue"),81,i),e.push({directive:r,ifArgument:a})}}),e}function Lo(t){var e,r,n=(e=t.directives)===null||e===void 0?void 0:e.find(function(a){var o=a.name;return o.value==="unmask"});if(!n)return"mask";var i=(r=n.arguments)===null||r===void 0?void 0:r.find(function(a){var o=a.name;return o.value==="mode"});return globalThis.__DEV__!==!1&&i&&(i.value.kind===k.VARIABLE?globalThis.__DEV__!==!1&&T.warn(82):i.value.kind!==k.STRING?globalThis.__DEV__!==!1&&T.warn(83):i.value.value!=="migrate"&&globalThis.__DEV__!==!1&&T.warn(84,i.value.value)),i&&"value"in i.value&&i.value.value==="migrate"?"migrate":"unmask"}const jo=()=>Object.create(null),{forEach:Vo,slice:On}=Array.prototype,{hasOwnProperty:Qo}=Object.prototype;class ue{constructor(e=!0,r=jo){this.weakness=e,this.makeData=r}lookup(){return this.lookupArray(arguments)}lookupArray(e){let r=this;return Vo.call(e,n=>r=r.getChildTrie(n)),Qo.call(r,"data")?r.data:r.data=this.makeData(On.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&n<i;++n){const a=r.mapFor(e[n],!1);r=a&&a.get(e[n])}return r&&r.data}remove(){return this.removeArray(arguments)}removeArray(e){let r;if(e.length){const n=e[0],i=this.mapFor(n,!1),a=i&&i.get(n);a&&(r=a.removeArray(On.call(e,1)),!a.data&&!a.weak&&!(a.strong&&a.strong.size)&&i.delete(n))}else r=this.data,delete this.data;return r}getChildTrie(e){const r=this.mapFor(e,!0);let n=r.get(e);return n||r.set(e,n=new ue(this.weakness,this.makeData)),n}mapFor(e,r){return this.weakness&&qo(e)?this.weak||(r?this.weak=new WeakMap:void 0):this.strong||(r?this.strong=new Map:void 0)}}function qo(t){switch(typeof t){case"object":if(t===null)break;case"function":return!0}return!1}var Ci=ee(function(){return navigator.product})=="ReactNative",ke=typeof WeakMap=="function"&&!(Ci&&!globalThis.HermesInternal),jr=typeof WeakSet=="function",Vr=typeof Symbol=="function"&&typeof Symbol.for=="function",Lt=Vr&&Symbol.asyncIterator,Ri=typeof ee(function(){return window.document.createElement})=="function",Bo=ee(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,Uo=(Ri||Ci)&&!Bo;function V(t){return t!==null&&typeof t=="object"}function zo(t,e){var r=e,n=[];t.definitions.forEach(function(a){if(a.kind==="OperationDefinition")throw H(85,a.operation,a.name?" named '".concat(a.name.value,"'"):"");a.kind==="FragmentDefinition"&&n.push(a)}),typeof r>"u"&&(T(n.length===1,86,n.length),r=n[0].name.value);var i=v(v({},t),{definitions:Y([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return i}function Ue(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function jt(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return T(n,87,r),n||null}default:return null}}function Wo(t){var e=!0;return ne(t,{FragmentSpread:function(r){if(e=!!r.directives&&r.directives.some(function(n){return n.name.value==="unmask"}),!e)return Pt}}),e}function Go(){}class dr{constructor(e=1/0,r=Go){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}get size(){return this.map.size}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,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){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}}function pr(){}const $o=pr,Yo=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},Ho=typeof WeakMap<"u"?WeakMap:Map,Jo=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:pr,unregister:pr}},Ko=10024;class It{constructor(e=1/0,r=$o){this.max=e,this.dispose=r,this.map=new Ho,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let i=0;i<Ko;i++){const a=n.next().value;if(!a)break;this.unfinalizedNodes.delete(a);const o=a.key;delete a.key,a.keyRef=new Yo(o),this.registry.register(o,a,a)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Jo(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);
49return n?n.value=r:(n={key:e,value:r,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--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var $t=new WeakSet;function Fi(t){t.size<=(t.max||-1)||$t.has(t)||($t.add(t),setTimeout(function(){t.clean(),$t.delete(t)},100))}var Qr=function(t,e){var r=new It(t,e);return r.set=function(n,i){var a=It.prototype.set.call(this,n,i);return Fi(this),a},r},Xo=function(t,e){var r=new dr(t,e);return r.set=function(n,i){var a=dr.prototype.set.call(this,n,i);return Fi(this),a},r},Zo=Symbol.for("apollo.cacheSize"),ie=v({},st[Zo]),ge={};function qr(t,e){ge[t]=e}var es=globalThis.__DEV__!==!1?is:void 0,ts=globalThis.__DEV__!==!1?as:void 0,rs=globalThis.__DEV__!==!1?Ai:void 0;function ns(){var t={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};return Object.fromEntries(Object.entries(t).map(function(e){var r=e[0],n=e[1];return[r,ie[r]||n]}))}function is(){var t,e,r,n,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:ns(),sizes:v({print:(t=ge.print)===null||t===void 0?void 0:t.call(ge),parser:(e=ge.parser)===null||e===void 0?void 0:e.call(ge),canonicalStringify:(r=ge.canonicalStringify)===null||r===void 0?void 0:r.call(ge),links:yr(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:Pi(this.queryManager.documentTransform)}},(i=(n=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(n))}}function Ai(){return{cache:{fragmentQueryDocuments:he(this.getFragmentDoc)}}}function as(){var t=this.config.fragments;return v(v({},Ai.apply(this)),{addTypenameDocumentTransform:Pi(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:he(this.storeReader.executeSelectionSet),executeSubSelectedArray:he(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:he(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:he(t==null?void 0:t.findFragmentSpreads),lookup:he(t==null?void 0:t.lookup),transform:he(t==null?void 0:t.transform)}})}function os(t){return!!t&&"dirtyKey"in t}function he(t){return os(t)?t.size:void 0}function Mi(t){return t!=null}function Pi(t){return vr(t).map(function(e){return{cache:e}})}function vr(t){return t?Y(Y([he(t==null?void 0:t.performWork)],vr(t==null?void 0:t.left),!0),vr(t==null?void 0:t.right),!0).filter(Mi):[]}function yr(t){var e;return t?Y(Y([(e=t==null?void 0:t.getMemoryInternals)===null||e===void 0?void 0:e.call(t)],yr(t==null?void 0:t.left),!0),yr(t==null?void 0:t.right),!0).filter(Mi):[]}var de=Object.assign(function(e){return JSON.stringify(e,ss)},{reset:function(){Ce=new Xo(ie.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&qr("canonicalStringify",function(){return Ce.size});var Ce;de.reset();function ss(t,e){if(e&&typeof e=="object"){var r=Object.getPrototypeOf(e);if(r===Object.prototype||r===null){var n=Object.keys(e);if(n.every(us))return e;var i=JSON.stringify(n),a=Ce.get(i);if(!a){n.sort();var o=JSON.stringify(n);a=Ce.get(o)||n,Ce.set(i,a),Ce.set(o,a)}var s=Object.create(r);return a.forEach(function(u){s[u]=e[u]}),s}}return e}function us(t,e,r){return e===0||r[e-1]<=t}function Me(t){return{__ref:String(t)}}function P(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function cs(t){return V(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function fs(t){return t.kind==="StringValue"}function ls(t){return t.kind==="BooleanValue"}function hs(t){return t.kind==="IntValue"}function ds(t){return t.kind==="FloatValue"}function ps(t){return t.kind==="Variable"}function vs(t){return t.kind==="ObjectValue"}function ys(t){return t.kind==="ListValue"}function ms(t){return t.kind==="EnumValue"}
49function gs(t){return t.kind==="NullValue"}function je(t,e,r,n){if(hs(r)||ds(r))t[e.value]=Number(r.value);else if(ls(r)||fs(r))t[e.value]=r.value;else if(vs(r)){var i={};r.fields.map(function(o){return je(i,o.name,o.value,n)}),t[e.value]=i}else if(ps(r)){var a=(n||{})[r.name.value];t[e.value]=a}else if(ys(r))t[e.value]=r.values.map(function(o){var s={};return je(s,e,o,n),s[e.value]});else if(ms(r))t[e.value]=r.value;else if(gs(r))t[e.value]=null;else throw H(96,e.value,r.kind)}function bs(t,e){var r=null;t.directives&&(r={},t.directives.forEach(function(i){r[i.name.value]={},i.arguments&&i.arguments.forEach(function(a){var o=a.name,s=a.value;return je(r[i.name.value],o,s,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(i){var a=i.name,o=i.value;return je(n,a,o,e)})),Li(t.name.value,n,r)}var Es=["connection","include","skip","client","rest","export","nonreactive"],Ye=de,Li=Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(s){i[s]=e[s]}),"".concat(r.connection.key,"(").concat(Ye(i),")")}else return r.connection.key;var a=t;if(e){var o=Ye(e);a+="(".concat(o,")")}return r&&Object.keys(r).forEach(function(s){Es.indexOf(s)===-1&&(r[s]&&Object.keys(r[s]).length?a+="@".concat(s,"(").concat(Ye(r[s]),")"):a+="@".concat(s))}),a},{setStringify:function(t){var e=Ye;return Ye=t,e}});function Vt(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var i=n.name,a=n.value;return je(r,i,a,e)}),r}return null}function se(t){return t.alias?t.alias.value:t.name.value}function mr(t,e,r){for(var n,i=0,a=e.selections;i<a.length;i++){var o=a[i];if(pe(o)){if(o.name.value==="__typename")return t[se(o)]}else n?n.push(o):n=[o]}if(typeof t.__typename=="string")return t.__typename;if(n)for(var s=0,u=n;s<u.length;s++){var o=u[s],c=mr(t,jt(o,r).selectionSet,r);if(typeof c=="string")return c}}function pe(t){return t.kind==="Field"}function _s(t){return t.kind==="InlineFragment"}function ze(t){T(t&&t.kind==="Document",88);var e=t.definitions.filter(function(r){return r.kind!=="FragmentDefinition"}).map(function(r){if(r.kind!=="OperationDefinition")throw H(89,r.kind);return r});return T(e.length<=1,90,e.length),t}function we(t){return ze(t),t.definitions.filter(function(e){return e.kind==="OperationDefinition"})[0]}function et(t){return t.definitions.filter(function(e){return e.kind==="OperationDefinition"&&!!e.name}).map(function(e){return e.name.value})[0]||null}function We(t){return t.definitions.filter(function(e){return e.kind==="FragmentDefinition"})}function ji(t){var e=we(t);return T(e&&e.operation==="query",91),e}function Vi(t){T(t.kind==="Document",92),T(t.definitions.length<=1,93);var e=t.definitions[0];return T(e.kind==="FragmentDefinition",94),e}function vt(t){ze(t);for(var e,r=0,n=t.definitions;r<n.length;r++){var i=n[r];if(i.kind==="OperationDefinition"){var a=i.operation;if(a==="query"||a==="mutation"||a==="subscription")return i}i.kind==="FragmentDefinition"&&!e&&(e=i)}if(e)return e;throw H(95)}function Br(t){var e=Object.create(null),r=t&&t.variableDefinitions;return r&&r.length&&r.forEach(function(n){n.defaultValue&&je(e,n.variable.name,n.defaultValue)}),e}var $=null,Sn={},Os=1,Ss=function(){return(function(){function t(){this.id=["slot",Os++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var e=$;e;e=e.parent)if(this.id in e.slots){var r=e.slots[this.id];if(r===Sn)break;return e!==$&&($.slots[this.id]=r),!0}return $&&($.slots[this.id]=Sn),!1},t.prototype.getValue=function(){if(this.hasValue())return $.slots[this.id]},t.prototype.withValue=function(e,r,n,i){var a,o=(a={__proto__:null},a[this.id]=e,a),s=$;$={parent:s,slots:o};try{return r.apply(i,n)}finally{$=s}},t.bind=function(e){var r=$;return function(){var n=$;try{return $=r,e.apply(this,arguments)}finally{$=n}}},t.noContext=function(e,r,n){if($){var i=$;try{return $=null,e.apply(n,r)}finally{$=i}}else return e.apply(n,r)},t})()};function wn(t){try{return t()}catch{}}var Yt="@wry/context:Slot",ws=wn(function(){return globalThis})||wn(function(){return globalThis})||Object.create(null),Tn=ws,Ge=Tn[Yt]||Array[Yt]||(function(t){try{Object.defineProperty(Tn,Yt,{value:t,enumerable:!1,writable:!1,
49configurable:!0})}finally{return t}})(Ss());Ge.bind;Ge.noContext;const Qt=new Ge,{hasOwnProperty:Ts}=Object.prototype,Ur=Array.from||function(t){const e=[];return t.forEach(r=>e.push(r)),e};function zr(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const ft=[],ks=100;function Ve(t,e){if(!t)throw new Error(e||"assertion failure")}function Qi(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function qi(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function Bi(t){return t.slice(0)}class qt{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++qt.count}peek(){if(this.value.length===1&&!ve(this))return kn(this),this.value[0]}recompute(e){return Ve(!this.recomputing,"already recomputing"),kn(this),ve(this)?Ds(this,e):qi(this.value)}setDirty(){this.dirty||(this.dirty=!0,Ui(this),zr(this))}dispose(){this.setDirty(),Yi(this),Wr(this,(e,r)=>{e.setDirty(),Hi(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=ft.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(Ur(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),ft.push(this.deps),this.deps=null)}}qt.count=0;function kn(t){const e=Qt.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),ve(t)?Wi(e,t):Gi(e,t),e}function Ds(t,e){return Yi(t),Qt.withValue(t,Is,[t,e]),Ns(t,e)&&xs(t),qi(t.value)}function Is(t,e){t.recomputing=!0;const{normalizeResult:r}=t;let n;r&&t.value.length===1&&(n=Bi(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),r&&n&&!Qi(n,t.value))try{t.value[0]=r(t.value[0],n[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function ve(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function xs(t){t.dirty=!1,!ve(t)&&zi(t)}function Ui(t){Wr(t,Wi)}function zi(t){Wr(t,Gi)}function Wr(t,e){const r=t.parents.size;if(r){const n=Ur(t.parents);for(let i=0;i<r;++i)e(n[i],t)}}function Wi(t,e){Ve(t.childValues.has(e)),Ve(ve(e));const r=!ve(t);if(!t.dirtyChildren)t.dirtyChildren=ft.pop()||new Set;else if(t.dirtyChildren.has(e))return;t.dirtyChildren.add(e),r&&Ui(t)}function Gi(t,e){Ve(t.childValues.has(e)),Ve(!ve(e));const r=t.childValues.get(e);r.length===0?t.childValues.set(e,Bi(e.value)):Qi(r,e.value)||t.setDirty(),$i(t,e),!ve(t)&&zi(t)}function $i(t,e){const r=t.dirtyChildren;r&&(r.delete(e),r.size===0&&(ft.length<ks&&ft.push(r),t.dirtyChildren=null))}function Yi(t){t.childValues.size>0&&t.childValues.forEach((e,r)=>{Hi(t,r)}),t.forgetDeps(),Ve(t.dirtyChildren===null)}function Hi(t,e){e.parents.delete(t),t.childValues.delete(e),$i(t,e)}function Ns(t,e){if(typeof t.subscribe=="function")try{zr(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const Cs={setDirty:!0,dispose:!0,forget:!0};function Ji(t){const e=new Map;function r(n){const i=Qt.getValue();if(i){let a=e.get(n);a||e.set(n,a=new Set),i.dependOn(a)}}return r.dirty=function(i,a){const o=e.get(i);if(o){const s=a&&Ts.call(Cs,a)?a:"setDirty";Ur(o).forEach(u=>u[s]()),e.delete(i),zr(o)}},r}let Dn;function Rs(...t){return(Dn||(Dn=new ue(typeof WeakMap=="function"))).lookupArray(t)}const Ht=new Set;function lt(t,{max:e=Math.pow(2,16),keyArgs:r,makeCacheKey:n=Rs,normalizeResult:i,subscribe:a,cache:o=dr}=Object.create(null)){const s=typeof o=="function"?new o(e,h=>h.dispose()):o,u=function(){const h=n.apply(null,r?r.apply(null,arguments):arguments);if(h===void 0)return t.apply(null,arguments);let d=s.get(h);d||(s.set(h,d=new qt(t)),d.normalizeResult=i,d.subscribe=a,d.forget=()=>s.delete(h));const p=d.recompute(Array.prototype.slice.call(arguments));return s.set(h,d),Ht.add(s),Qt.hasValue()||(Ht.forEach(m=>m.clean()),Ht.clear()),p};Object.defineProperty(u,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:e,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:s});function c(h){const d=h&&s.get(h);d&&d.setDirty()}u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))};function f(h){const d=h&&s.get(h);if(d)return d.peek()}u.peekKey=f,u.peek=function(){return f(n.apply(null,arguments))};function l(h){return h?s.delete(h):!1}return u.forgetKey=l,u.forget=function(){return l(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}function Fs(t){return t}var Ki=(function(){function t(e,r){r===void 0&&(r=Object.create(null)),this.resultCache=jr?new WeakSet:new Set,this.transform=e,r.getCacheKey&&(this.getCacheKey=r.getCacheKey),this.cached=r.cache!==!1,this.resetCache()}return t.prototype.getCacheKey=function(e){return[e]},t.identity=function(){return new t(Fs,{cache:!1})},t.split=function(e,r,n){return n===void 0&&(n=t.identity()),Object.assign(new t(function(i){var a=e(i)?r:n;return a.transformDocument(i)},{cache:!1}),{left:r,right:n})},t.prototype.resetCache=function(){var e=this;if(this.cached){var r=new ue(ke);this.performWork=lt(t.prototype.performWork.bind(this),{makeCacheKey:function(n){var i=e.getCacheKey(n);if(i)return T(Array.isArray(i),77),r.lookupArray(i)},max:ie["documentTransform.cache"],cache:It})}},t.prototype.performWork=function(e){return ze(e),this.transform(e)},t.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var r=this.performWork(e);return this.resultCache.add(r),r},t.prototype.concat=function(e){var r=this;return Object.assign(new t(function(n){return e.transformDocument(r.transformDocument(n))},{cache:!1}),{left:this,right:e})},t})(),rt,Ee=Object.assign(function(t){var e=rt.get(t);return e||(e=Co(t),rt.set(t,e)),e},{reset:function(){rt=new Qr(ie.print||2e3)}});Ee.reset();globalThis.__DEV__!==!1&&qr("print",function(){return rt?rt.size:0});var Q=Array.isArray;function X(t){return Array.isArray(t)&&t.length>0}var In={kind:k.FIELD,name:{kind:k.NAME,value:"__typename"}};function Xi(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===k.FRAGMENT_SPREAD&&Xi(e[r.name.value],e)})}function As(t){return Xi(we(t)||Vi(t),Ue(We(t)))?null:t}function Ms(t){var e=new Map,r=new Map;return t.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&r.set(n.test,n))}),function(n){var i=e.get(n.name.value);return!i&&r.size&&r.forEach(function(a,o){o(n)&&(i=a)}),i}}function xn(t){var e=new Map;return function(n){n===void 0&&(n=t);var i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function Zi(t,e){ze(e);for(var r=xn(""),n=xn(""),i=function(y){for(var b=0,E=void 0;b<y.length&&(E=y[b]);++b)if(!Q(E)){if(E.kind===k.OPERATION_DEFINITION)return r(E.name&&E.name.value);if(E.kind===k.FRAGMENT_DEFINITION)return n(E.name.value)}return globalThis.__DEV__!==!1&&T.error(97),null},a=0,o=e.definitions.length-1;o>=0;--o)e.definitions[o].kind===k.OPERATION_DEFINITION&&++a;var s=Ms(t),u=function(y){return X(y)&&y.map(s).some(function(b){return b&&b.remove})},c=new Map,f=!1,l={enter:function(y){if(u(y.directives))return f=!0,null}},h=ne(e,{Field:l,InlineFragment:l,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(y,b,E,O,S){var w=i(S);w&&w.variables.add(y.name.value)}},FragmentSpread:{enter:function(y,b,E,O,S){if(u(y.directives))return f=!0,null;var w=i(S);w&&w.fragmentSpreads.add(y.name.value)}},FragmentDefinition:{enter:function(y,b,E,O){c.set(JSON.stringify(O),y)},leave:function(y,b,E,O){var S=c.get(JSON.stringify(O));if(y===S)return y;if(a>0&&y.selectionSet.selections.every(function(w){return w.kind===k.FIELD&&w.name.value==="__typename"}))return n(y.name.value).removed=!0,f=!0,null}},Directive:{leave:function(y){if(s(y))return f=!0,null}}});if(!f)return e;var d=function(y){return y.transitiveVars||(y.transitiveVars=new Set(y.variables),y.removed||y.fragmentSpreads.forEach(function(b){d(n(b)).transitiveVars.forEac
49h(function(E){y.transitiveVars.add(E)})})),y},p=new Set;h.definitions.forEach(function(y){y.kind===k.OPERATION_DEFINITION?d(r(y.name&&y.name.value)).fragmentSpreads.forEach(function(b){p.add(b)}):y.kind===k.FRAGMENT_DEFINITION&&a===0&&!n(y.name.value).removed&&p.add(y.name.value)}),p.forEach(function(y){d(n(y)).fragmentSpreads.forEach(function(b){p.add(b)})});var m=function(y){return!!(!p.has(y)||n(y).removed)},g={enter:function(y){if(m(y.name.value))return null}};return As(ne(h,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(y){if(y.variableDefinitions){var b=d(r(y.name&&y.name.value)).transitiveVars;if(b.size<y.variableDefinitions.length)return v(v({},y),{variableDefinitions:y.variableDefinitions.filter(function(E){return b.has(E.variable.name.value)})})}}}}))}var Gr=Object.assign(function(t){return ne(t,{SelectionSet:{enter:function(e,r,n){if(!(n&&n.kind===k.OPERATION_DEFINITION)){var i=e.selections;if(i){var a=i.some(function(s){return pe(s)&&(s.name.value==="__typename"||s.name.value.lastIndexOf("__",0)===0)});if(!a){var o=n;if(!(pe(o)&&o.directives&&o.directives.some(function(s){return s.name.value==="export"})))return v(v({},e),{selections:Y(Y([],i,!0),[In],!1)})}}}}}})},{added:function(t){return t===In}});function Ps(t){var e=vt(t),r=e.operation;if(r==="query")return t;var n=ne(t,{OperationDefinition:{enter:function(i){return v(v({},i),{operation:"query"})}}});return n}function ea(t){ze(t);var e=Zi([{test:function(r){return r.name.value==="client"},remove:!0}],t);return e}function Ls(t){return ze(t),ne(t,{FragmentSpread:function(e){var r;if(!(!((r=e.directives)===null||r===void 0)&&r.some(function(n){return n.name.value==="unmask"})))return v(v({},e),{directives:Y(Y([],e.directives||[],!0),[{kind:k.DIRECTIVE,name:{kind:k.NAME,value:"nonreactive"}}
49],!1)})}})}var js=Object.prototype.hasOwnProperty;function Nn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Bt(t)}function Bt(t){var e=t[0]||{},r=t.length;if(r>1)for(var n=new ye,i=1;i<r;++i)e=n.merge(e,t[i]);return e}var Vs=function(t,e,r){return this.merge(t[r],e[r])},ye=(function(){function t(e){e===void 0&&(e=Vs),this.reconciler=e,this.isObject=V,this.pastCopies=new Set}return t.prototype.merge=function(e,r){for(var n=this,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];return V(r)&&V(e)?(Object.keys(r).forEach(function(o){if(js.call(e,o)){var s=e[o];if(r[o]!==s){var u=n.reconciler.apply(n,Y([e,r,o],i,!1));u!==s&&(e=n.shallowCopyForMerge(e),e[o]=u)}}else e=n.shallowCopyForMerge(e),e[o]=r[o]}),e):r},t.prototype.shallowCopyForMerge=function(e){return V(e)&&(this.pastCopies.has(e)||(Array.isArray(e)?e=e.slice(0):e=v({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},t})();function Qs(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=qs(t))||e){r&&(t=r);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qs(t,e){if(t){if(typeof t=="string")return Cn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cn(t,e)}}function Cn(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $r(t,e,r){return e&&Rn(t.prototype,e),r&&Rn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Yr=function(){return typeof Symbol=="function"},Hr=function(t){return Yr()&&!!Symbol[t]},Jr=function(t){return Hr(t)?Symbol[t]:"@@"+t};Yr()&&!Hr("observable")&&(Symbol.observable=Symbol("observable"));var Bs=Jr("iterator"),gr=Jr("observable"),ta=Jr("species");function xt(t,e){var r=t[e];if(r!=null){if(typeof r!="function")throw new TypeError(r+" is not a function");return r}}function He(t){var e=t.constructor;return e!==void 0&&(e=e[ta],e===null&&(e=void 0)),e!==void 0?e:L}function Us(t){return t instanceof L}function Qe(t){Qe.log?Qe.log(t):setTimeout(function(){throw t})}function Ot(t){Promise.resolve().then(function(){try{t()}catch(e){Qe(e)}})}function ra(t){var e=t._cleanup;if(e!==void 0&&(t._cleanup=void 0,!!e))try{if(typeof e=="function")e();else{var r=xt(e,"unsubscribe");r&&r.call(e)}}catch(n){Qe(n)}}function br(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function zs(t){var e=t._queue;if(e){t._queue=void 0,t._state="ready";for(var r=0;r<e.length&&(na(t,e[r].type,e[r].value),t._state!=="closed");++r);}}function na(t,e,r){t._state="running";var n=t._observer;try{var i=xt(n,e);switch(e){case"next":i&&i.call(n,r);break;case"error":if(br(t),i)i.call(n,r);else throw r;break;case"complete":br(t),i&&i.call(n);break}}catch(a){Qe(a)}t._state==="closed"?ra(t):t._state==="running"&&(t._state="ready")}function Jt(t,e,r){if(t._state!=="closed"){if(t._state==="buffering"){t._queue.push({type:e,value:r});return}if(t._state!=="ready"){t._state="buffering",t._queue=[{type:e,value:r}],Ot(function(){return zs(t)});return}na(t,e,r)}}var Ws=(function(){function t(r,n){this._cleanup=void 0,this._observer=r,this._queue=void 0,this._state="initializing";var i=new Gs(this);try{this._cleanup=n.call(void 0,i)}catch(a){i.error(a)}this._state==="initializing"&&(this._state="ready")}var e=t.prototype;return e.unsubscribe=function(){this._state!=="closed"&&(br(this),ra(this))},$r(t,[{key:"closed",get:function(){return this._state==="closed"}}]),t})(),Gs=(function(){function t(r){this._subscription=r}var e=t.prototype;return e.next=function(n){Jt(this._subscription,"next",n)},e.error=function(n){Jt(this._subscription,"error",n)},e.complete=function(){Jt(this._subscription,"complete")},$r(t,[{key:"closed",get:function(){return this._subscription._state==="closed"}}]),t})(),L=(function(){function t(r){if(!(this instanceof t))throw new TypeError("Observable cannot be called as a function");if(typeof r!="function")throw new TypeError("Observable initializer must be a function");this._subscriber=r}var e=t.prototype;return e.subscribe=function(n){return(typeof n!="object"||n===null)&&(n={next:n,error:arguments[1],complete:arguments[2]}),new Ws(n,this._subscriber)},e.forEach=function(n){var i=this;return new Promise(function(a,o){if(typeof n!="function"){o(new TypeError(n+" is not a function"));return}function s(){u.unsubscribe(),a()}var u=i.subscribe({next:function(c){try{n(c,s)}catch(f){o(f),u.unsubscribe()}},error:o,complete:a})})},e.map=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=He(this);return new a(function(o){return i.subscribe({next:function(s){try{s=n(s)}catch(u){return o.error(u)}o.next(s)},error:function(s){o.error(s)},complete:function(){o.complete()}})})},e.filter=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=He(this);return new a(function(o){return i.subscribe({next:function(s){try{if(!n(s))return}catch(u){return o.error(u)}o.next(s)},error:function(s){o.error(s)},complete:function(){o.complete()}})})},e.reduce=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=He(this),o=arguments.length>1,s=!1,u=arguments[1],c=u;return new a(function(f){return i.subscribe({next:function(l){var h=!s;
50if(s=!0,!h||o)try{c=n(c,l)}catch(d){return f.error(d)}else c=l},error:function(l){f.error(l)},complete:function(){if(!s&&!o)return f.error(new TypeError("Cannot reduce an empty sequence"));f.next(c),f.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var s=He(this);return new s(function(u){var c,f=0;function l(h){c=h.subscribe({next:function(d){u.next(d)},error:function(d){u.error(d)},complete:function(){f===a.length?(c=void 0,u.complete()):l(s.from(a[f++]))}})}return l(n),function(){c&&(c.unsubscribe(),c=void 0)}})},e.flatMap=function(n){var i=this;if(typeof n!="function")throw new TypeError(n+" is not a function");var a=He(this);return new a(function(o){var s=[],u=i.subscribe({next:function(f){if(n)try{f=n(f)}catch(h){return o.error(h)}var l=a.from(f).subscribe({next:function(h){o.next(h)},error:function(h){o.error(h)},complete:function(){var h=s.indexOf(l);h>=0&&s.splice(h,1),c()}});s.push(l)},error:function(f){o.error(f)},complete:function(){c()}});function c(){u.closed&&s.length===0&&o.complete()}return function(){s.forEach(function(f){return f.unsubscribe()}),u.unsubscribe()}})},e[gr]=function(){return this},t.from=function(n){var i=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var a=xt(n,gr);if(a){var o=a.call(n);if(Object(o)!==o)throw new TypeError(o+" is not an object");return Us(o)&&o.constructor===i?o:new i(function(s){return o.subscribe(s)})}if(Hr("iterator")&&(a=xt(n,Bs),a))return new i(function(s){Ot(function(){if(!s.closed){for(var u=Qs(a.call(n)),c;!(c=u()).done;){var f=c.value;if(s.next(f),s.closed)return}s.complete()}})});if(Array.isArray(n))return new i(function(s){Ot(function(){if(!s.closed){for(var u=0;u<n.length;++u)if(s.next(n[u]),s.closed)return;s.complete()}})});throw new TypeError(n+" is not observable")},t.of=function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=typeof this=="function"?this:t;return new o(function(s){Ot(function(){if(!s.closed){for(var u=0;u<i.length;++u)if(s.next(i[u]),s.closed)return;s.complete()}})})},$r(t,null,[{key:ta,get:function(){return this}}]),t})();Yr()&&Object.defineProperty(L,Symbol("extensions"),{value:{symbol:gr,hostReportError:Qe},configurable:!0});function $s(t){var e,r=t.Symbol;if(typeof r=="function")if(r.observable)e=r.observable;else{typeof r.for=="function"?e=r.for("https://github.com/benlesh/symbol-observable"):e=r("https://github.com/benlesh/symbol-observable");try{r.observable=e}catch{}}else e="@@observable";return e}var Ie;typeof self<"u"?Ie=self:typeof window<"u"?Ie=window:typeof globalThis<"u"?Ie=globalThis:typeof module<"u"?Ie=module:Ie=Function("return this")();$s(Ie);var Fn=L.prototype,An="@@observable";Fn[An]||(Fn[An]=function(){return this});function Ys(t){return t.catch(function(){}),t}var Hs=Object.prototype.toString;function ia(t){return Er(t)}function Er(t,e){switch(Hs.call(t)){case"[object Array]":{if(e=e||new Map,e.has(t))return e.get(t);var r=t.slice(0);return e.set(t,r),r.forEach(function(i,a){r[a]=Er(i,e)}),r}case"[object Object]":{if(e=e||new Map,e.has(t))return e.get(t);var n=Object.create(Object.getPrototypeOf(t));return e.set(t,n),Object.keys(t).forEach(function(i){n[i]=Er(t[i],e)}),n}default:return t}}function Js(t){var e=new Set([t]);return e.forEach(function(r){V(r)&&Ks(r)===r&&Object.getOwnPropertyNames(r).forEach(function(n){V(r[n])&&e.add(r[n])})}),t}function Ks(t){if(globalThis.__DEV__!==!1&&!Object.isFrozen(t))try{Object.freeze(t)}catch(e){if(e instanceof TypeError)return null;throw e}return t}function qe(t){return globalThis.__DEV__!==!1&&Js(t),t}function nt(t,e,r){var n=[];t.forEach(function(i){return i[e]&&n.push(i)}),n.forEach(function(i){return i[e](r)})}function Kt(t,e,r){return new L(function(n){var i={then:function(u){return new Promise(function(c){return c(u())})}};function a(u,c){return function(f){if(u){var l=function(){return n.closed?0:u(f)};i=i.then(l,l).then(function(h){return n.next(h)},function(h){return n.error(h)})}else n[c](f)}}var o={next:a(e,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=t.subscribe(o);return function(){return s.unsubscribe()}})}function aa(t){function e(r){Object.defineProperty(t,r,{value:L})}return Vr&&Symbol.species&&e(Symbol.species),e("@@species"),t}function Mn(t){return t&&typeof t.then=="function"}var xe=(function(t){ae(e,t);function e(r){var n=t.call(this,function(i){return n.addObserver(i),function(){return n.removeObserver(i)}})||this;return n.observers=new Set,n.promise=new Promise(function(i,a){n.resolve=i,n.reject=a}),n.handlers={next:function(i){n.sub!==null&&(n.latest=["next",i],n.notify("next",i),nt(n.observers,"next",i))},error:function(i){var a=n.sub;a!==null&&(a&&setTimeout(function(){return a.unsubscribe()}),n.sub=null,n.latest=["error",i],n.reject(i),n.notify("error",i),nt(n.observers,"error",i))},complete:function(){var i=n,a=i.sub,o=i.sources,s=o===void 0?[]:o;if(a!==null){var u=s.shift();u?Mn(u)?u.then(function(c){return n.sub=c.subscribe(n.handlers)},n.handlers.error):n.sub=u.subscribe(n.handlers):(a&&setTimeout(function(){return a.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]==="next"?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),nt(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(i){n.reject(i),n.sources=[],n.handlers.error(i)},n.promise.catch(function(i){}),typeof r=="function"&&(r=[new L(r)]),Mn(r)?r.then(function(i){return n.start(i)},n.handlers.error):n.start(r),n}return e.prototype.start=function(r){this.sub===void 0&&(this.sources=Array.from(r),this.handlers.complete())},e.prototype.deliverLastMessage=function(r){if(this.latest){var n=this.latest[0],i=r[n];i&&i.call(r,this.latest[1]),this.sub===null&&n==="next"&&r.complete&&r.complete()}},e.prototype.addObserver=function(r){this.observers.has(r)||(this.deliverLastMessage(r),this.observers.add(r))},e.prototype.removeObserver=function(r){this.observers.delete(r)&&this.observers.size<1&&this.handlers.complete()},e.prototype.notify=function(r,n){var i=this.nextResultListeners;
50i.size&&(this.nextResultListeners=new Set,i.forEach(function(a){return a(r,n)}))},e.prototype.beforeNext=function(r){var n=!1;this.nextResultListeners.add(function(i,a){n||(n=!0,r(i,a))})},e})(L);aa(xe);function Pe(t){return"incremental"in t}function Xs(t){return"hasNext"in t&&"data"in t}function Zs(t){return Pe(t)||Xs(t)}function eu(t){return V(t)&&"payload"in t}function oa(t,e){var r=t,n=new ye;return Pe(e)&&X(e.incremental)&&e.incremental.forEach(function(i){for(var a=i.data,o=i.path,s=o.length-1;s>=0;--s){var u=o[s],c=!isNaN(+u),f=c?[]:{};f[u]=a,a=f}r=n.merge(r,a)}),r}function St(t){var e=_r(t);return X(e)}function _r(t){var e=X(t.errors)?t.errors.slice(0):[];return Pe(t)&&X(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function Te(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Object.create(null);return t.forEach(function(n){n&&Object.keys(n).forEach(function(i){var a=n[i];a!==void 0&&(r[i]=a)})}),r}function Oe(t,e){return Te(t,e,e.variables&&{variables:Te(v(v({},t&&t.variables),e.variables))})}function Xt(t){return new L(function(e){e.error(t)})}var sa=function(t,e,r){var n=new Error(r);throw n.name="ServerError",n.response=t,n.statusCode=t.status,n.result=e,n};function tu(t){for(var e=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];if(e.indexOf(i)<0)throw H(46,i)}return t}function ru(t,e){var r=v({},t),n=function(a){typeof a=="function"?r=v(v({},r),a(r)):r=v(v({},r),a)},i=function(){return v({},r)};return Object.defineProperty(e,"setContext",{enumerable:!1,value:n}),Object.defineProperty(e,"getContext",{enumerable:!1,value:i}),e}function nu(t){var e={variables:t.variables||{},extensions:t.extensions||{},operationName:t.operationName,query:t.query};return e.operationName||(e.operationName=typeof e.query!="string"?et(e.query)||void 0:""),e}function iu(t,e){var r=v({},t),n=new Set(Object.keys(t));return ne(e,{Variable:function(i,a,o){o&&o.kind!=="VariableDefinition"&&n.delete(i.name.value)}}),n.forEach(function(i){delete r[i]}),r}function Pn(t,e){return e?e(t):L.of()}function Je(t){return typeof t=="function"?new $e(t):t}function bt(t){return t.request.length<=1}var $e=(function(){function t(e){e&&(this.request=e)}return t.empty=function(){return new t(function(){return L.of()})},t.from=function(e){return e.length===0?t.empty():e.map(Je).reduce(function(r,n){return r.concat(n)})},t.split=function(e,r,n){var i=Je(r),a=Je(n||new t(Pn)),o;return bt(i)&&bt(a)?o=new t(function(s){return e(s)?i.request(s)||L.of():a.request(s)||L.of()}):o=new t(function(s,u){return e(s)?i.request(s,u)||L.of():a.request(s,u)||L.of()}),Object.assign(o,{left:i,right:a})},t.execute=function(e,r){return e.request(ru(r.context,nu(tu(r))))||L.of()},t.concat=function(e,r){var n=Je(e);if(bt(n))return globalThis.__DEV__!==!1&&T.warn(38,n),n;var i=Je(r),a;return bt(i)?a=new t(function(o){return n.request(o,function(s){return i.request(s)||L.of()})||L.of()}):a=new t(function(o,s){return n.request(o,function(u){return i.request(u,s)||L.of()})||L.of()}),Object.assign(a,{left:n,right:i})},t.prototype.split=function(e,r,n){return this.concat(t.split(e,r,n||new t(Pn)))},t.prototype.concat=function(e){return t.concat(this,e)},t.prototype.request=function(e,r){throw H(39)},t.prototype.onError=function(e,r){if(r&&r.error)return r.error(e),!1;throw e},t.prototype.setOnError=function(e){return this.onError=e,this},t})(),qc=$e.split,Or=$e.execute;function au(t){var e,r=t[Symbol.asyncIterator]();return e={next:function(){return r.next()}},e[Symbol.asyncIterator]=function(){return this},e}function ou(t){var e=null,r=null,n=!1,i=[],a=[];function o(l){if(!r){if(a.length){var h=a.shift();if(Array.isArray(h)&&h[0])return h[0]({value:l,done:!1})}i.push(l)}}function s(l){r=l;var h=a.slice();h.forEach(function(d){d[1](l)}),!e||e()}function u(){n=!0;var l=a.slice();l.forEach(function(h){h[0]({value:void 0,done:!0})}),!e||e()}e=function(){e=null,t.removeListener("data",o),t.removeListener("error",s),t.removeListener("end",u),t.removeListener("finish",u),t.removeListener("close",u)},t.on("data",o),t.on("error",s),t.on("end",u),t.on("finish",u),t.on("close",u);function c(){return new Promise(function(l,h){if(r)return h(r);if(i.length)return l({value:i.shift(),done:!1});if(n)return l({value:void 0,done:!0});a.push([l,h])})}var f={next:function(){return c()}};return Lt&&(f[Symbol.asyncIterator]=function(){return this}),f}function su(t){var e=!1,r={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(n,i){t.then(function(a){n({value:a,done:!1})}).catch(i)}))}};return Lt&&(r[Symbol.asyncIterator]=function(){return this}),r}function Ln(t){var e={next:function(){return t.read()}};return Lt&&(e[Symbol.asyncIterator]=function(){return this}),e}function uu(t){return!!t.body}function cu(t){return!!t.getReader}function fu(t){return!!(Lt&&t[Symbol.asyncIterator])}function lu(t){return!!t.stream}function hu(t){return!!t.arrayBuffer}function du(t){return!!t.pipe}function pu(t){var e=t;
50if(uu(t)&&(e=t.body),fu(e))return au(e);if(cu(e))return Ln(e.getReader());if(lu(e))return Ln(e.stream().getReader());if(hu(e))return su(e.arrayBuffer());if(du(e))return ou(e);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Kr=Symbol();function vu(t){return t.extensions?Array.isArray(t.extensions[Kr]):!1}function ua(t){return t.hasOwnProperty("graphQLErrors")}var yu=function(t){var e=Y(Y(Y([],t.graphQLErrors,!0),t.clientErrors,!0),t.protocolErrors,!0);return t.networkError&&e.push(t.networkError),e.map(function(r){return V(r)&&r.message||"Error message not found."}).join(`
51`)},K=(function(t){ae(e,t);function e(r){var n=r.graphQLErrors,i=r.protocolErrors,a=r.clientErrors,o=r.networkError,s=r.errorMessage,u=r.extraInfo,c=t.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=i||[],c.clientErrors=a||[],c.networkError=o||null,c.message=s||yu(c),c.extraInfo=u,c.cause=Y(Y(Y([o],n||[],!0),i||[],!0),a||[],!0).find(function(f){return!!f})||null,c.__proto__=e.prototype,c}return e})(Error),jn=Object.prototype.hasOwnProperty;function mu(t,e){return fe(this,void 0,void 0,function(){var r,n,i,a,o,s,u,c,f,l,h,d,p,m,g,y,b,E,O,S,w,x,I,C;return le(this,function(M){switch(M.label){case 0:if(TextDecoder===void 0)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=(C=t.headers)===null||C===void 0?void 0:C.get("content-type"),i="boundary=",a=n!=null&&n.includes(i)?n==null?void 0:n.substring((n==null?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o=`\r
52--`.concat(a),s="",u=pu(t),c=!0,M.label=1;case 1:return c?[4,u.next()]:[3,3];case 2:for(f=M.sent(),l=f.value,h=f.done,d=typeof l=="string"?l:r.decode(l),p=s.length-o.length+1,c=!h,s+=d,m=s.indexOf(o,p);m>-1;){if(g=void 0,x=[s.slice(0,m),s.slice(m+o.length)],g=x[0],s=x[1],y=g.indexOf(`\r
53\r
54`),b=gu(g.slice(0,y)),E=b["content-type"],E&&E.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(O=g.slice(y),O){if(S=ca(t,O),Object.keys(S).length>1||"data"in S||"incremental"in S||"errors"in S||"payload"in S)if(eu(S)){if(w={},"payload"in S){if(Object.keys(S).length===1&&S.payload===null)return[2];w=v({},S.payload)}"errors"in S&&(w=v(v({},w),{extensions:v(v({},"extensions"in w?w.extensions:null),(I={},I[Kr]=S.errors,I))})),e(w)}else e(S);else if(Object.keys(S).length===1&&"hasNext"in S&&!S.hasNext)return[2]}m=s.indexOf(o)}return[3,1];case 3:return[2]}})})}function gu(t){var e={};return t.split(`
55`).forEach(function(r){var n=r.indexOf(":");if(n>-1){var i=r.slice(0,n).trim().toLowerCase(),a=r.slice(n+1).trim();e[i]=a}}),e}function ca(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};sa(t,r(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function bu(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function Eu(t){return function(e){return e.text().then(function(r){return ca(e,r)}).then(function(r){return!Array.isArray(r)&&!jn.call(r,"data")&&!jn.call(r,"errors")&&sa(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var Sr=function(t,e){var r;try{r=JSON.stringify(t)}catch(i){var n=H(42,e,i.message);throw n.parseError=i,n}return r},_u={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Ou={accept:"*/*","content-type":"application/json"},Su={method:"POST"},wu={http:_u,headers:Ou,options:Su},Tu=function(t,e){return e(t)};function ku(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach(function(l){i=v(v(v({},i),l.options),{headers:v(v({},i.headers),l.headers)}),l.credentials&&(i.credentials=l.credentials),a=v(v({},a),l.http)}),i.headers&&(i.headers=Du(i.headers,a.preserveHeaderCase));var o=t.operationName,s=t.extensions,u=t.variables,c=t.query,f={operationName:o,variables:u};return a.includeExtensions&&(f.extensions=s),a.includeQuery&&(f.query=e(c,Ee)),{options:i,body:f}}function Du(t,e){if(!e){var r={};
55return Object.keys(Object(t)).forEach(function(a){r[a.toLowerCase()]=t[a]}),r}var n={};Object.keys(Object(t)).forEach(function(a){n[a.toLowerCase()]={originalName:a,value:t[a]}});var i={};return Object.keys(n).forEach(function(a){i[n[a].originalName]=n[a].value}),i}var Iu=function(t){if(!t&&typeof fetch>"u")throw H(40)},xu=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function Nu(t,e){var r=[],n=function(l,h){r.push("".concat(l,"=").concat(encodeURIComponent(h)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var i=void 0;try{i=Sr(e.variables,"Variables map")}catch(l){return{parseError:l}}n("variables",i)}if(e.extensions){var a=void 0;try{a=Sr(e.extensions,"Extensions map")}catch(l){return{parseError:l}}n("extensions",a)}var o="",s=t,u=t.indexOf("#");u!==-1&&(o=t.substr(u),s=t.substr(0,u));var c=s.indexOf("?")===-1?"?":"&",f=s+c+r.join("&")+o;return{newURI:f}}var Vn=ee(function(){return fetch}),Cu=function(t){t===void 0&&(t={});var e=t.uri,r=e===void 0?"/graphql":e,n=t.fetch,i=t.print,a=i===void 0?Tu:i,o=t.includeExtensions,s=t.preserveHeaderCase,u=t.useGETForQueries,c=t.includeUnusedVariables,f=c===void 0?!1:c,l=te(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&Iu(n||Vn);var h={http:{includeExtensions:o,preserveHeaderCase:s},options:l.fetchOptions,credentials:l.credentials,headers:l.headers};return new $e(function(d){var p=xu(d,r),m=d.getContext(),g={};if(m.clientAwareness){var y=m.clientAwareness,b=y.name,E=y.version;b&&(g["apollographql-client-name"]=b),E&&(g["apollographql-client-version"]=E)}var O=v(v({},g),m.headers),S={http:m.http,options:m.fetchOptions,credentials:m.credentials,headers:O};if(ct(["client"],d.query)){var w=ea(d.query);if(!w)return Xt(new 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`."));d.query=w}var x=ku(d,a,wu,h,S),I=x.options,C=x.body;C.variables&&!f&&(C.variables=iu(C.variables,d.query));var M;!I.signal&&typeof AbortController<"u"&&(M=new AbortController,I.signal=M.signal);var G=function(J){return J.kind==="OperationDefinition"&&J.operation==="mutation"},B=function(J){return J.kind==="OperationDefinition"&&J.operation==="subscription"},j=B(vt(d.query)),U=ct(["defer"],d.query);if(u&&!d.query.definitions.some(G)&&(I.method="GET"),U||j){I.headers=I.headers||{};var oe="multipart/mixed;";j&&U&&globalThis.__DEV__!==!1&&T.warn(41),j?oe+="boundary=graphql;subscriptionSpec=1.0,application/json":U&&(oe+="deferSpec=20220824,application/json"),I.headers.accept=oe}if(I.method==="GET"){var un=Nu(p,C),Va=un.newURI,cn=un.parseError;if(cn)return Xt(cn);p=Va}else try{I.body=Sr(C,"Payload")}catch(J){return Xt(J)}return new L(function(J){var Qa=n||ee(function(){return fetch})||Vn,fn=J.next.bind(J);return Qa(p,I).then(function(De){var zt;d.setContext({response:De});var ln=(zt=De.headers)===null||zt===void 0?void 0:zt.get("content-type");return ln!==null&&/^multipart\/mixed/i.test(ln)?mu(De,fn):Eu(d)(De).then(fn)}).then(function(){M=void 0,J.complete()}).catch(function(De){M=void 0,bu(De,J)}),function(){M&&M.abort()}})})},Ru=(function(t){ae(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,Cu(r).request)||this;return n.options=r,n}return e})($e);const{toString:Qn,hasOwnProperty:Fu}=Object.prototype,qn=Function.prototype.toString,wr=new Map;function A(t,e){try{return Tr(t,e)}finally{wr.clear()}}function Tr(t,e){if(t===e)return!0;const r=Qn.call(t),n=Qn.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(Un(t,e))return!0;const i=Bn(t),a=Bn(e),o=i.length;if(o!==a.length)return!1;for(let s=0;s<o;++s)if(!Fu.call(e,i[s]))return!1;for(let s=0;s<o;++s){const u=i[s];if(!Tr(t[u],e[u]))return!1}return!0}case"[object Error]":return t.name===e.name&&t.message===e.message;case"[object Number]":if(t!==t)return e!==e;case"[object Boolean]":case"[object Date]":return+t==+e;case"[object RegExp]":case"[object String]":return t==`${e}`;case"[object Map]":case"[object Set]":{if(t.size!==e.size)return!1;if(Un(t,e))return!0;const i=t.entries(),a=r==="[object Map]";for(;;){const o=i.next();if(o.done)break;const[s,u]=o.value;if(!e.has(s)||a&&!Tr(u,e.get(s)))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]":t=new Uint8Array(t),e=new Uint8Array(e);case"[object DataView]":{let i=t.byteLength;if(i===e.byteLength)for(;i--&&t[i]===e[i];);return i===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const i=qn.call(t);return i!==qn.call(e)?!1:!Pu(i,Mu)}}return!1}function Bn(t){return Object.keys(t).filter(Au,t)}function Au(t){return this[t]!==void 0}const Mu="{ [native code] }";function Pu(t,e){const r=t.length-e.length;return r>=0&&t.indexOf(e,r)===r}function Un(t,e){let r=wr.get(t);if(r){if(r.has(e))return!0}else wr.set(t,r=new Set);return r.add(e),!1}function fa(t,e,r,n){var i=e.data,a=te(e,["data"]),o=r.data,s=te(r,["data"]);return A(a,s)&&wt(vt(t).selectionSet,i,o,{fragmentMap:Ue(We(t)),variables:n})}function wt(t,e,r,n){if(e===r)return!0;var i=new Set;
55return t.selections.every(function(a){if(i.has(a)||(i.add(a),!pt(a,n.variables))||zn(a))return!0;if(pe(a)){var o=se(a),s=e&&e[o],u=r&&r[o],c=a.selectionSet;if(!c)return A(s,u);var f=Array.isArray(s),l=Array.isArray(u);if(f!==l)return!1;if(f&&l){var h=s.length;if(u.length!==h)return!1;for(var d=0;d<h;++d)if(!wt(c,s[d],u[d],n))return!1;return!0}return wt(c,s,u,n)}else{var p=jt(a,n.fragmentMap);if(p)return zn(p)?!0:wt(p.selectionSet,e,r,n)}})}function zn(t){return!!t.directives&&t.directives.some(Lu)}function Lu(t){return t.name.value==="nonreactive"}var la=ke?WeakMap:Map,ha=jr?WeakSet:Set,Xr=new Ge,Wn=!1;function da(){Wn||(Wn=!0,globalThis.__DEV__!==!1&&T.warn(52))}function pa(t,e,r){return Xr.withValue(!0,function(){var n=tt(t,e,r,!1);return Object.isFrozen(t)&&qe(n),n})}function ju(t,e){if(e.has(t))return e.get(t);var r=Array.isArray(t)?[]:Object.create(null);return e.set(t,r),r}function tt(t,e,r,n,i){var a,o=r.knownChanged,s=ju(t,r.mutableTargets);if(Array.isArray(t)){for(var u=0,c=Array.from(t.entries());u<c.length;u++){var f=c[u],l=f[0],h=f[1];if(h===null){s[l]=null;continue}var d=tt(h,e,r,n,globalThis.__DEV__!==!1?"".concat(i||"","[").concat(l,"]"):void 0);o.has(d)&&o.add(s),s[l]=d}return o.has(s)?s:t}for(var p=0,m=e.selections;p<m.length;p++){var g=m[p],y=void 0;if(n&&o.add(s),g.kind===k.FIELD){var b=se(g),E=g.selectionSet;if(y=s[b]||t[b],y===void 0)continue;if(E&&y!==null){var d=tt(t[b],E,r,n,globalThis.__DEV__!==!1?"".concat(i||"",".").concat(b):void 0);o.has(d)&&(y=d)}globalThis.__DEV__===!1&&(s[b]=y),globalThis.__DEV__!==!1&&(n&&b!=="__typename"&&!(!((a=Object.getOwnPropertyDescriptor(s,b))===null||a===void 0)&&a.value)?Object.defineProperty(s,b,Vu(b,y,i||"",r.operationName,r.operationType)):(delete s[b],s[b]=y))}if(g.kind===k.INLINE_FRAGMENT&&(!g.typeCondition||r.cache.fragmentMatches(g,t.__typename))&&(y=tt(t,g.selectionSet,r,n,i)),g.kind===k.FRAGMENT_SPREAD){var O=g.name.value,S=r.fragmentMap[O]||(r.fragmentMap[O]=r.cache.lookupFragment(O));T(S,47,O);var w=Lo(g);w!=="mask"&&(y=tt(t,S.selectionSet,r,w==="migrate",i))}o.has(y)&&o.add(s)}return"__typename"in t&&!("__typename"in s)&&(s.__typename=t.__typename),Object.keys(s).length!==Object.keys(t).length&&o.add(s),o.has(s)?s:t}function Vu(t,e,r,n,i){var a=function(){return Xr.getValue()||(globalThis.__DEV__!==!1&&T.warn(48,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(t).replace(/^\./,"")),a=function(){return e}),e};return{get:function(){return a()},set:function(o){a=function(){return o}},enumerable:!0,configurable:!0}}function va(t,e,r,n){if(!r.fragmentMatches)return globalThis.__DEV__!==!1&&da(),t;var i=e.definitions.filter(function(o){return o.kind===k.FRAGMENT_DEFINITION});typeof n>"u"&&(T(i.length===1,49,i.length),n=i[0].name.value);var a=i.find(function(o){return o.name.value===n});return T(!!a,50,n),t==null||A(t,{})?t:pa(t,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:Ue(We(e)),cache:r,mutableTargets:new la,knownChanged:new ha})}function Qu(t,e,r){var n;if(!r.fragmentMatches)return globalThis.__DEV__!==!1&&da(),t;var i=we(e);return T(i,51),t==null?t:pa(t,i.selectionSet,{operationType:i.operation,operationName:(n=i.name)===null||n===void 0?void 0:n.value,fragmentMap:Ue(We(e)),cache:r,mutableTargets:new la,knownChanged:new ha})}var ya=(function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=lt(zo,{max:ie["cache.fragmentQueryDocuments"]||1e3,cache:It})}return t.prototype.lookupFragment=function(e){return null},t.prototype.batch=function(e){var r=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(r)},n),i},t.prototype.recordOptimisticTransaction=function(e,r){this.performTransaction(e,r)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(v(v({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))},t.prototype.watchFragment=function(e){var r=this,n=e.fragment,i=e.fragmentName,a=e.from,o=e.optimistic,s=o===void 0?!0:o,u=te(e,["fragment","fragmentName","from","optimistic"]),c=this.getFragmentDoc(n,i),f=typeof a>
55"u"||typeof a=="string"?a:this.identify(a),l=!!e[Symbol.for("apollo.dataMasking")];if(globalThis.__DEV__!==!1){var h=i||Vi(n).name.value;f||globalThis.__DEV__!==!1&&T.warn(1,h)}var d=v(v({},u),{returnPartialData:!0,id:f,query:c,optimistic:s}),p;return new L(function(m){return r.watch(v(v({},d),{immediate:!0,callback:function(g){var y=l?va(g.result,n,r,i):g.result;if(!(p&&fa(c,{data:p.result},{data:y},e.variables))){var b={data:y,complete:!!g.complete};g.missing&&(b.missing=Bt(g.missing.map(function(E){return E.missing}))),p=v(v({},g),{result:y}),m.next(b)}}}))})},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(v(v({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))},t.prototype.writeQuery=function(e){var r=e.id,n=e.data,i=te(e,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},t.prototype.writeFragment=function(e){var r=e.id,n=e.data,i=e.fragment,a=e.fragmentName,o=te(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(i,a),dataId:r,result:n}))},t.prototype.updateQuery=function(e,r){return this.batch({update:function(n){var i=n.readQuery(e),a=r(i);return a==null?i:(n.writeQuery(v(v({},e),{data:a})),a)}})},t.prototype.updateFragment=function(e,r){return this.batch({update:function(n){var i=n.readFragment(e),a=r(i);return a==null?i:(n.writeFragment(v(v({},e),{data:a})),a)}})},t})();globalThis.__DEV__!==!1&&(ya.prototype.getMemoryInternals=rs);var ma=(function(t){ae(e,t);function e(r,n,i,a){var o,s=t.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=(o={},o[s.path[u]]=s.missing,o)}else s.missing=s.path;return s.__proto__=e.prototype,s}return e})(Error),z=Object.prototype.hasOwnProperty;function Ke(t){return t==null}function ga(t,e){var r=t.__typename,n=t.id,i=t._id;if(typeof r=="string"&&(e&&(e.keyObject=Ke(n)?Ke(i)?void 0:{_id:i}:{id:n}),Ke(n)&&!Ke(i)&&(n=i),!Ke(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var ba={dataIdFromObject:ga,addTypename:!0,resultCaching:!0,canonizeResults:!1};function qu(t){return Te(ba,t)}function Ea(t){var e=t.canonizeResults;return e===void 0?ba.canonizeResults:e}function Bu(t,e){return P(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var _a=/^[_a-z][_0-9a-z]*/i;function me(t){var e=t.match(_a);return e?e[0]:t}function kr(t,e,r){return V(e)?Q(e)?e.every(function(n){return kr(t,n,r)}):t.selections.every(function(n){if(pe(n)&&pt(n,r)){var i=se(n);return z.call(e,i)&&(!n.selectionSet||kr(n.selectionSet,e[i],r))}return!0}):!1}function Re(t){return V(t)&&!P(t)&&!Q(t)}function Uu(){return new ye}function Oa(t,e){var r=Ue(We(t));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var Tt=Object.create(null),Zt=function(){return Tt},Gn=Object.create(null),ht=(function(){function t(e,r){var n=this;this.policies=e,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,a){return qe(P(i)?n.get(i.__ref,a):i&&i[a])},this.canRead=function(i){return P(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,a){if(typeof i=="string")return Me(i);if(P(i))return i;var o=n.policies.identify(i)[0];if(o){var s=Me(o);return a&&n.merge(o,i),s}}}return t.prototype.toObject=function(){return v({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,r){if(this.group.depend(e,r),z.call(this.data,e)){var n=this.data[e];if(n&&z.call(n,r))return n[r]}if(r==="__typename"&&z.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof ce)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),z.call(this.data,e))return this.data[e];if(this instanceof ce)return this.parent.lookup(e,r);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,r){var n=this,i;P(e)&&(e=e.__ref),P(r)&&(r=r.__ref);var a=typeof e=="string"?this.lookup(i=e):e,o=typeof r=="string"?this.lookup(i=r):r;if(o){T(typeof i=="string",2);var s=new ye(Wu).merge(a,o);if(this.data[i]=s,s!==a&&(delete this.refs[i],this.group.caching)){var u=Object.create(null);
55a||(u.__exists=1),Object.keys(o).forEach(function(c){if(!a||a[c]!==s[c]){u[c]=1;var f=me(c);f!==c&&!n.policies.hasKeyArgs(s.__typename,f)&&(u[f]=1),s[c]===void 0&&!(n instanceof ce)&&delete s[c]}}),u.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(c){return n.group.dirty(i,c)})}}},t.prototype.modify=function(e,r){var n=this,i=this.lookup(e);if(i){var a=Object.create(null),o=!1,s=!0,u={DELETE:Tt,INVALIDATE:Gn,isReference:P,toReference:this.toReference,canRead:this.canRead,readField:function(c,f){return n.policies.readField(typeof c=="string"?{fieldName:c,from:f||Me(e)}:c,{store:n})}};if(Object.keys(i).forEach(function(c){var f=me(c),l=i[c];if(l!==void 0){var h=typeof r=="function"?r:r[c]||r[f];if(h){var d=h===Zt?Tt:h(qe(l),v(v({},u),{fieldName:f,storeFieldName:c,storage:n.getStorage(e,c)}));if(d===Gn)n.group.dirty(e,c);else if(d===Tt&&(d=void 0),d!==l&&(a[c]=d,o=!0,l=d,globalThis.__DEV__!==!1)){var p=function(S){if(n.lookup(S.__ref)===void 0)return globalThis.__DEV__!==!1&&T.warn(3,S),!0};if(P(d))p(d);else if(Array.isArray(d))for(var m=!1,g=void 0,y=0,b=d;y<b.length;y++){var E=b[y];if(P(E)){if(m=!0,p(E))break}else if(typeof E=="object"&&E){var O=n.policies.identify(E)[0];O&&(g=E)}if(m&&g!==void 0){globalThis.__DEV__!==!1&&T.warn(4,g);break}}}}l!==void 0&&(s=!1)}}),o)return this.merge(e,a),s&&(this instanceof ce?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},t.prototype.delete=function(e,r,n){var i,a=this.lookup(e);if(a){var o=this.getFieldValue(a,"__typename"),s=r&&n?this.policies.getStoreFieldName({typename:o,fieldName:r,args:n}):r;return this.modify(e,s?(i={},i[s]=Zt,i):Zt)}return!1},t.prototype.evict=function(e,r){var n=!1;return e.id&&(z.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof ce&&this!==r&&(n=this.parent.evict(e,r)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},t.prototype.clear=function(){this.replace(null)},t.prototype.extract=function(){var e=this,r=this.toObject(),n=[];return this.getRootIdSet().forEach(function(i){z.call(e.policies.rootTypenamesById,i)||n.push(i)}),n.length&&(r.__META={extraRootIds:n.sort()}),r},t.prototype.replace=function(e){var r=this;if(Object.keys(this.data).forEach(function(a){e&&z.call(e,a)||r.delete(a)}),e){var n=e.__META,i=te(e,["__META"]);
55Object.keys(i).forEach(function(a){r.merge(a,i[a])}),n&&n.extraRootIds.forEach(this.retain,this)}},t.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},t.prototype.release=function(e){if(this.rootIds[e]>0){var r=--this.rootIds[e];return r||delete this.rootIds[e],r}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ce?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(o){z.call(n,o)&&(Object.keys(e.findChildRefIds(o)).forEach(r.add,r),delete n[o])});var i=Object.keys(n);if(i.length){for(var a=this;a instanceof ce;)a=a.parent;i.forEach(function(o){return a.delete(o)})}return i},t.prototype.findChildRefIds=function(e){if(!z.call(this.refs,e)){var r=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return r;var i=new Set([n]);i.forEach(function(a){P(a)&&(r[a.__ref]=!0),V(a)&&Object.keys(a).forEach(function(o){var s=a[o];V(s)&&i.add(s)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t})(),Sa=(function(){function t(e,r){r===void 0&&(r=null),this.caching=e,this.parent=r,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?Ji():null,this.keyMaker=new ue(ke)}
55,t.prototype.depend=function(e,r){if(this.d){this.d(er(e,r));var n=me(r);n!==r&&this.d(er(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(er(e,r),r==="__exists"?"forget":"setDirty")},t})();function er(t,e){return e+"#"+t}function $n(t,e){it(t)&&t.group.depend(e,"__exists")}(function(t){var e=(function(r){ae(n,r);function n(i){var a=i.policies,o=i.resultCaching,s=o===void 0?!0:o,u=i.seed,c=r.call(this,a,new Sa(s))||this;return c.stump=new zu(c),c.storageTrie=new ue(ke),u&&c.replace(u),c}return n.prototype.addLayer=function(i,a){return this.stump.addLayer(i,a)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n})(t);t.Root=e})(ht||(ht={}));var ce=(function(t){ae(e,t);function e(r,n,i,a){var o=t.call(this,n.policies,a)||this;return o.id=r,o.parent=n,o.replay=i,o.group=a,i(o),o}return e.prototype.addLayer=function(r,n){return new e(r,this,n,this.group)},e.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var o=n.data[a],s=i.lookup(a);s?o?o!==s&&Object.keys(o).forEach(function(u){A(o[u],s[u])||n.group.dirty(a,u)}):(n.group.dirty(a,"__exists"),Object.keys(s).forEach(function(u){n.group.dirty(a,u)})):n.delete(a)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return v(v({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return z.call(this.data,r)?v(v({},n),t.prototype.findChildRefIds.call(this,r)):n},e.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},e})(ht),zu=(function(t){ae(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new Sa(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(r,n){return this.parent.merge(r,n)},e})(ce);function Wu(t,e,r){var n=t[r],i=e[r];return A(n,i)?n:i}function it(t){return!!(t instanceof ht&&t.group.caching)}function Gu(t){return V(t)?Q(t)?t.slice(0):v({__proto__:Object.getPrototypeOf(t)},t):t}var Yn=(function(){function t(){this.known=new(jr?WeakSet:Set),this.pool=new ue(ke),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return V(e)&&this.known.has(e)},t.prototype.pass=function(e){if(V(e)){var r=Gu(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(V(e)){var n=this.passes.get(e);if(n)return n;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var a=e.map(this.admit,this),o=this.pool.lookupArray(a);return o.array||(this.known.add(o.array=a),globalThis.__DEV__!==!1&&Object.freeze(a)),o.array}case null:case Object.prototype:{if(this.known.has(e))return e;var s=Object.getPrototypeOf(e),u=[s],c=this.sortedKeys(e);u.push(c.json);var f=u.length;c.sorted.forEach(function(d){u.push(r.admit(e[d]))});var o=this.pool.lookupArray(u);if(!o.object){var l=o.object=Object.create(s);this.known.add(l),c.sorted.forEach(function(d,p){l[d]=u[f+p]}),globalThis.__DEV__!==!1&&Object.freeze(l)}return o.object}}}return e},t.prototype.sortedKeys=function(e){var r=Object.keys(e),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},t})();function Hn(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var $u=(function(){function t(e){var r=this;this.knownResults=new(ke?WeakMap:Map),this.config=Te(e,{addTypename:e.addTypename!==!1,canonizeResults:Ea(e)}),this.canon=e.canon||new Yn,this.executeSelectionSet=lt(function(n){var i,a=n.context.canonizeResults,o=Hn(n);o[3]=!a;var s=(i=r.executeSelectionSet).peek.apply(i,o);return s?a?v(v({},s),{result:r.canon.admit(s.result)}):s:($n(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize||ie["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Hn,makeCacheKey:function(n,i,a,o){if(it(a.store))return a.store.makeCacheKey(n,P(i)?i.__ref:i,a.varString,o)}}),this.executeSubSelectedArray=lt(function(n){return $n(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize||ie["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(n){var i=n.field,a=n.array,o=n.context;if(it(o.store))return o.store.makeCacheKey(i,a,o.varString)}})}return t.prototype.resetCanon=function(){this.canon=new Yn},t.prototype.diffQueryAgainstStore=function(e){var r=e.store,n=e.query,i=e.rootId,a=i===void 0?"ROOT_QUERY":i,o=e.variables,s=e.returnPartialData,u=s===void 0?!0:s,c=e.canonizeResults,f=c===void 0?this.config.canonizeResults:c,l=this.config.cache.policies;o=v(v({},Br(ji(n))),o);var h=Me(a),d=this.executeSelectionSet({selectionSet:vt(n).selectionSet,objectOrReference:h,enclosingRef:h,context:v({store:r,query:n,policies:l,variables:o,varString:de(o),canonizeResults:f},Oa(n,this.config.fragments))}),p;if(d.missing&&(p=[new ma(Yu(d.missing),d.missing,n,o)],!u))throw p[0];return{result:d.result,complete:!p,missing:p}},t.prototype.isFresh=function(e,r,n,i){if(it(i.store)&&this.knownResults.get(e)===n){var a=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(e));if(a&&e===a.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var r=this,n=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,o=e.context;if(P(i)&&!o.policies.rootTypenamesById[i.__ref]&&!o.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=o.variables,u=o.policies,c=o.store,f=c.getFieldValue(i,"__typename"),l=[],h,d=new ye;this.config.addTypename&&typeof f=="string"&&!u.rootIdsByTypename[f]&&l.push({__typename:f});function p(E,O){var S;return E.missing&&(h=d.merge(h,(S={},S[O]=E.missing,S))),E.result}var m=new Set(n.selections);m.forEach(function(E){var O,S;if(pt(E,s))if(pe(E)){var w=u.readField({fieldName:E.name.value,field:E,variables:o.variables,from:i},o),x=se(E);w===void 0?Gr.added(E)||(h=d.merge(h,(O={},O[x]="Can't find field '".concat(E.name.value,"' on ").concat(P(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),O))):Q(w)?w.length>0&&(w=p(r.executeSubSelectedArray({field:E,array:w,enclosingRef:a,context:o}),x)):E.selectionSet?w!=null&&(w=p(r.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:w,enclosingRef:P(w)?w:a,context:o}),x)):o.canonizeResults&&(w=r.canon.pass(w)),w!==void 0&&l.push((S={},S[x]=w,S))}else{var I=jt(E,o.lookupFragment);if(!I&&E.kind===k.FRAGMENT_SPREAD)throw H(10,E.name.value);I&&u.fragmentMatches(I,f)&&I.selectionSet.selections.forEach(m.add,m)}});var g=Bt(l),y={result:g,missing:h},b=o.canonizeResults?this.canon.admit(y):qe(y);return b.result&&this.knownResults.set(b.result,n),b},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s,u=new ye;function c(f,l){var h;return f.missing&&(s=u.merge(s,(h={},h[l]=f.missing,h))),f.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(f,l){return f===null?null:Q(f)?c(r.executeSubSelectedArray({field:n,array:f,enclosingRef:a,context:o}),l):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:f,enclosingRef:P(f)?f:a,context:o}
55),l):(globalThis.__DEV__!==!1&&Hu(o.store,n,f),f)}),{result:o.canonizeResults?this.canon.admit(i):i,missing:s}},t})();function Yu(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function Hu(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(i){V(i)&&(T(!P(i),11,Bu(t,i),e.name.value),Object.values(i).forEach(n.add,n))})}}var Zr=new Ge,Jn=new WeakMap;function at(t){var e=Jn.get(t);return e||Jn.set(t,e={vars:new Set,dep:Ji()}),e}function Kn(t){at(t).vars.forEach(function(e){return e.forgetCache(t)})}function Ju(t){at(t).vars.forEach(function(e){return e.attachCache(t)})}function Ku(t){var e=new Set,r=new Set,n=function(a){if(arguments.length>0){if(t!==a){t=a,e.forEach(function(u){at(u).dep.dirty(n),Xu(u)});var o=Array.from(r);r.clear(),o.forEach(function(u){return u(t)})}}else{var s=Zr.getValue();s&&(i(s),at(s).dep(n))}return t};n.onNextChange=function(a){return r.add(a),function(){r.delete(a)}};var i=n.attachCache=function(a){return e.add(a),at(a).vars.add(n),n};return n.forgetCache=function(a){return e.delete(a)},n}function Xu(t){t.broadcastWatches&&t.broadcastWatches()}var Xn=Object.create(null);function en(t){var e=JSON.stringify(t);return Xn[e]||(Xn[e]=Object.create(null))}function Zn(t){var e=en(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var i=function(o,s){return n.readField(s,o)},a=n.keyObject=tn(t,function(o){var s=Le(n.storeObject,o,i);return s===void 0&&r!==n.storeObject&&z.call(r,o[0])&&(s=Le(r,o,Ta)),T(s!==void 0,5,o.join("."),r),s});return"".concat(n.typename,":").concat(JSON.stringify(a))})}function ei(t){var e=en(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var i=n.field,a=n.variables,o=n.fieldName,s=tn(t,function(c){var f=c[0],l=f.charAt(0);if(l==="@"){if(i&&X(i.directives)){var h=f.slice(1),d=i.directives.find(function(y){return y.name.value===h}),p=d&&Vt(d,a);return p&&Le(p,c.slice(1))}return}if(l==="$"){var m=f.slice(1);if(a&&z.call(a,m)){var g=c.slice(0);return g[0]=m,Le(a,g)}return}if(r)return Le(r,c)}),u=JSON.stringify(s);return(r||u!=="{}")&&(o+=":"+u),o})}function tn(t,e){var r=new ye;return wa(t).reduce(function(n,i){var a,o=e(i);if(o!==void 0){for(var s=i.length-1;s>=0;--s)o=(a={},a[i[s]]=o,a);n=r.merge(n,o)}return n},Object.create(null))}function wa(t){var e=en(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(i,a){Q(i)?(wa(i).forEach(function(o){return r.push(n.concat(o))}),n.length=0):(n.push(i),Q(t[a+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function Ta(t,e){return t[e]}function Le(t,e,r){return r=r||Ta,ka(e.reduce(function n(i,a){return Q(i)?i.map(function(o){return n(o,a)}):i&&r(i,a)},t))}function ka(t){return V(t)?Q(t)?t.map(ka):tn(Object.keys(t).sort(),function(e){return Le(t,e)}):t}function Dr(t){return t.args!==void 0?t.args:t.field?Vt(t.field,t.variables):null}var Zu=function(){},ti=function(t,e){return e.fieldName},ri=function(t,e,r){var n=r.mergeObjects;return n(t,e)},ni=function(t,e){return e},ec=(function(){function t(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=v({dataIdFromObject:ga},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 t.prototype.identify=function(e,r){var n,i=this,a=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var o=r&&r.storeObject||e,s=v(v({},r),{typename:a,storeObject:o,readField:r&&r.readField||function(){var l=rn(arguments,o);return i.readField(l,{store:i.cache.data,variables:l.variables})}}),u,c=a&&this.getTypePolicy(a),f=c&&c.keyFn||this.config.dataIdFromObject;return Xr.withValue(!0,function(){for(;f;){var l=f(v(v({},e),o),s);if(Q(l))f=Zn(l);else{u=l;break}}}),u=u?String(u):void 0,s.keyObject?[u,s.keyObject]:[u]},t.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var i=e[n],a=i.queryType,o=i.mutationType,s=i.subscriptionType,u=te(i,["queryType","mutationType","subscriptionType"]);a&&r.setRootTypename("Query",n),o&&r.setRootTypename("Mutation",n),s&&r.setRootTypename("Subscription",n),z.call(r.toBeAdded,n)?r.toBeAdded[n].push(u):r.toBeAdded[n]=[u]})},t.prototype.updateTypePolicy=function(e,r){var n=this,i=this.getTypePolicy(e),a=r.keyFields,o=r.fields;function s(u,c){u.merge=typeof c=="function"?c:c===!0?ri:c===!1?ni:u.merge}s(i,r.merge),i.keyFn=a===!1?Zu:Q(a)?Zn(a):typeof a=="function"?a:i.keyFn,o&&Object.keys(o).forEac
55h(function(u){var c=n.getFieldPolicy(e,u,!0),f=o[u];if(typeof f=="function")c.read=f;else{var l=f.keyArgs,h=f.read,d=f.merge;c.keyFn=l===!1?ti:Q(l)?ei(l):typeof l=="function"?l:c.keyFn,typeof h=="function"&&(c.read=h),s(c,d)}c.read&&c.merge&&(c.keyFn=c.keyFn||ti)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(T(!i||i===e,6,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},t.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var a=i.match(_a);(!a||a[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!z.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(o,s){if(o.test(e)){var u=r.supertypeMap.get(s);u&&u.forEach(function(c){return i.add(c)})}})),i&&i.size&&i.forEach(function(o){var s=r.getTypePolicy(o),u=s.fields,c=te(s,["fields"]);Object.assign(n,c),Object.assign(n.fields,u)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(o){r.updateTypePolicy(e,o)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,r,n){if(e){var i=this.getTypePolicy(e).fields;return i[r]||n&&(i[r]=Object.create(null))}},t.prototype.getSupertypeSet=function(e,r){var n=this.supertypeMap.get(e);return!n&&r&&this.supertypeMap.set(e,n=new Set),n},t.prototype.fragmentMatches=function(e,r,n,i){var a=this;if(!e.typeCondition)return!0;if(!r)return!1;var o=e.typeCondition.name.value;if(r===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(r,!0),u=[s],c=function(p){var m=a.getSupertypeSet(p,!1);m&&m.size&&u.indexOf(m)<0&&u.push(m)},f=!!(n&&this.fuzzySubtypes.size),l=!1,h=0;h<u.length;++h){var d=u[h];if(d.has(o))return s.has(o)||(l&&globalThis.__DEV__!==!1&&T.warn(7,r,o),s.add(o)),!0;d.forEach(c),f&&h===u.length-1&&kr(e.selectionSet,n,i)&&(f=!1,l=!0,this.fuzzySubtypes.forEach(function(p,m){var g=r.match(p);g&&g[0]===r&&c(m)}))}return!1},t.prototype.hasKeyArgs=function(e,r){var n=this.getFieldPolicy(e,r,!1);return!!(n&&n.keyFn)},t.prototype.getStoreFieldName=function(e){var r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),a,o=i&&i.keyFn;if(o&&r)for(var s={typename:r,fieldName:n,field:e.field||null,variables:e.variables},u=Dr(e);o;){var c=o(u,s);if(Q(c))o=ei(c);else{a=c||n;break}}return a===void 0&&(a=e.field?bs(e.field,e.variables):Li(n,Dr(e))),a===!1?n:n===me(a)?a:n+":"+a},t.prototype.readField=function(e,r){var n=e.from;if(n){var i=e.field||e.fieldName;if(i){if(e.typename===void 0){var a=r.store.getFieldValue(n,"__typename");a&&(e.typename=a)}var o=this.getStoreFieldName(e),s=me(o),u=r.store.getFieldValue(n,o),c=this.getFieldPolicy(e.typename,s,!1),f=c&&c.read;if(f){var l=ii(this,n,e,r,r.store.getStorage(P(n)?n.__ref:n,o));return Zr.withValue(this.cache,f,[u,l])}return u}}},t.prototype.getReadFunction=function(e,r){var n=this.getFieldPolicy(e,r,!1);return n&&n.read},t.prototype.getMergeFunction=function(e,r,n){var i=this.getFieldPolicy(e,r,!1),a=i&&i.merge;return!a&&n&&(i=this.getTypePolicy(n),a=i&&i.merge),a},t.prototype.runMergeFunction=function(e,r,n,i,a){var o=n.field,s=n.typename,u=n.merge;return u===ri?Da(i.store)(e,r):u===ni?r:(i.overwrite&&(e=void 0),u(e,r,ii(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:i.variables},i,a||Object.create(null))))},t})();function ii(t,e,r,n,i){var a=t.getStoreFieldName(r),o=me(a),s=r.variables||n.variables,u=n.store,c=u.toReference,f=u.canRead;return{args:Dr(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:P,toReference:c,storage:i,cache:t.cache,canRead:f,readField:function(){return t.readField(rn(arguments,e,s),n)},mergeObjects:Da(n.store)}}function rn(t,e,r){var n=t[0],i=t[1],a=t.length,o;return typeof n=="string"?o={fieldName:n,from:a>1?i:e}:(o=v({},n),z.call(o,"from")||(o.from=e)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&T.
55warn(8,bi(Array.from(t))),o.variables===void 0&&(o.variables=r),o}function Da(t){return function(r,n){if(Q(r)||Q(n))throw H(9);if(V(r)&&V(n)){var i=t.getFieldValue(r,"__typename"),a=t.getFieldValue(n,"__typename"),o=i&&a&&i!==a;if(o)return n;if(P(r)&&Re(n))return t.merge(r.__ref,n),r;if(Re(r)&&P(n))return t.merge(r,n.__ref),n;if(Re(r)&&Re(n))return v(v({},r),n)}return n}}function tr(t,e,r){var n="".concat(e).concat(r),i=t.flavors.get(n);return i||t.flavors.set(n,i=t.clientOnly===e&&t.deferred===r?t:v(v({},t),{clientOnly:e,deferred:r})),i}var tc=(function(){function t(e,r,n){this.cache=e,this.reader=r,this.fragments=n}return t.prototype.writeToStore=function(e,r){var n=this,i=r.query,a=r.result,o=r.dataId,s=r.variables,u=r.overwrite,c=we(i),f=Uu();s=v(v({},Br(c)),s);var l=v(v({store:e,written:Object.create(null),merge:function(d,p){return f.merge(d,p)},variables:s,varString:de(s)},Oa(i,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:a||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:l});if(!P(h))throw H(12,a);return l.incomingById.forEach(function(d,p){var m=d.storeObject,g=d.mergeTree,y=d.fieldNodeSet,b=Me(p);if(g&&g.map.size){var E=n.applyMerges(g,b,m,l);if(P(E))return;m=E}if(globalThis.__DEV__!==!1&&!l.overwrite){var O=Object.create(null);y.forEach(function(x){x.selectionSet&&(O[x.name.value]=!0)});var S=function(x){return O[me(x)]===!0},w=function(x){var I=g&&g.map.get(x);return!!(I&&I.info&&I.info.merge)};Object.keys(m).forEach(function(x){S(x)&&!w(x)&&rc(b,m,x,l.store)})}e.merge(p,m)}),e.retain(h.__ref),h},t.prototype.processSelectionSet=function(e){var r=this,n=e.dataId,i=e.result,a=e.selectionSet,o=e.context,s=e.mergeTree,u=this.cache.policies,c=Object.create(null),f=n&&u.rootTypenamesById[n]||mr(i,a,o.fragmentMap)||n&&o.store.get(n,"__typename");typeof f=="string"&&(c.__typename=f);var l=function(){var E=rn(arguments,c,o.variables);if(P(E.from)){var O=o.incomingById.get(E.from.__ref);if(O){var S=u.readField(v(v({},E),{from:O.storeObject}),o);if(S!==void 0)return S}}return u.readField(E,o)},h=new Set;this.flattenFields(a,i,o,f).forEach(function(E,O){var S,w=se(O),x=i[w];if(h.add(O),x!==void 0){var I=u.getStoreFieldName({typename:f,fieldName:O.name.value,field:O,variables:E.variables}),C=ai(s,I),M=r.processFieldValue(x,O,O.selectionSet?tr(E,!1,!1):E,C),G=void 0;O.selectionSet&&(P(M)||Re(M))&&(G=l("__typename",M));var B=u.getMergeFunction(f,O.name.value,G);B?C.info={field:O,typename:f,merge:B}:oi(s,I),c=E.merge(c,(S={},S[I]=M,S))}else globalThis.__DEV__!==!1&&!E.clientOnly&&!E.deferred&&!Gr.added(O)&&!u.getReadFunction(f,O.name.value)&&globalThis.__DEV__!==!1&&T.error(13,se(O),i)});try{var d=u.identify(i,{typename:f,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:c,readField:l}),p=d[0],m=d[1];n=n||p,m&&(c=o.merge(c,m))}catch(E){if(!n)throw E}if(typeof n=="string"){var g=Me(n),y=o.written[n]||(o.written[n]=[]);if(y.indexOf(a)>=0||(y.push(a),this.reader&&this.reader.isFresh(i,g,a,o)))return g;var b=o.incomingById.get(n);return b?(b.storeObject=o.merge(b.storeObject,c),b.mergeTree=Ir(b.mergeTree,s),h.forEach(function(E){return b.fieldNodeSet.add(E)})):o.incomingById.set(n,{storeObject:c,mergeTree:Nt(s)?void 0:s,fieldNodeSet:h}),g}return c},t.prototype.processFieldValue=function(e,r,n,i){var a=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?ia(e):e:Q(e)?e.map(function(o,s){var u=a.processFieldValue(o,r,n,ai(i,s));return oi(i,s),u}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:i})},t.prototype.flattenFields=function(e,r,n,i){i===void 0&&(i=mr(r,e,n.fragmentMap));var a=new Map,o=this.cache.policies,s=new ue(!1);return(function u(c,f){var l=s.lookup(c,f.clientOnly,f.deferred);l.visited||(l.visited=!0,c.selections.forEach(function(h){if(pt(h,n.variables)){var d=f.clientOnly,p=f.deferred;if(!(d&&p)&&X(h.directives)&&h.directives.forEach(function(y){var b=y.name.value;if(b==="client"&&(d=!0),b==="defer"){var E=Vt(y,n.variables);(!E||E.if!==!1)&&(p=!0)}}),pe(h)){var m=a.get(h);m&&(d=d&&m.clientOnly,p=p&&m.deferred),a.set(h,tr(n,d,p))}else{var g=jt(h,n.lookupFragment);if(!g&&h.kind===k.FRAGMENT_SPREAD)throw H(14,h.name.value);g&&o.fragmentMatches(g,i,r,n.variables)&&u(g.selectionSet,tr(n,d,p))}}}))})(e,n),a},t.prototype.applyMerges=function(e,r,n,i,a){var o,s=this;if(e.map.size&&!P(n)){var u=!Q(n)&&(P(r)||Re(r))?r:void 0,c=n;u&&!a&&(a=[P(u)?u.__ref:u]);var f,l=function(h,d){return Q(h)?typeof d=="number"?h[d]:void 0:i.store.getFieldValue(h,String(d))};
55e.map.forEach(function(h,d){var p=l(u,d),m=l(c,d);if(m!==void 0){a&&a.push(d);var g=s.applyMerges(h,p,m,i,a);g!==m&&(f=f||new Map,f.set(d,g)),a&&T(a.pop()===d)}}),f&&(n=Q(c)?c.slice(0):v({},c),f.forEach(function(h,d){n[d]=h}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,i,a&&(o=i.store).getStorage.apply(o,a)):n},t})(),Ia=[];function ai(t,e){var r=t.map;return r.has(e)||r.set(e,Ia.pop()||{map:new Map}),r.get(e)}function Ir(t,e){if(t===e||!e||Nt(e))return t;if(!t||Nt(t))return e;var r=t.info&&e.info?v(v({},t.info),e.info):t.info||e.info,n=t.map.size&&e.map.size,i=n?new Map:t.map.size?t.map:e.map,a={info:r,map:i};if(n){var o=new Set(e.map.keys());t.map.forEach(function(s,u){a.map.set(u,Ir(s,e.map.get(u))),o.delete(u)}),o.forEach(function(s){a.map.set(s,Ir(e.map.get(s),t.map.get(s)))})}return a}function Nt(t){return!t||!(t.info||t.map.size)}function oi(t,e){var r=t.map,n=r.get(e);n&&Nt(n)&&(Ia.push(n),r.delete(e))}var si=new Set;function rc(t,e,r,n){var i=function(l){var h=n.getFieldValue(l,r);return typeof h=="object"&&h},a=i(t);if(a){var o=i(e);if(o&&!P(a)&&!A(a,o)&&!Object.keys(a).every(function(l){return n.getFieldValue(o,l)!==void 0})){var s=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),u=me(r),c="".concat(s,".").concat(u);if(!si.has(c)){si.add(c);var f=[];!Q(a)&&!Q(o)&&[a,o].forEach(function(l){var h=n.getFieldValue(l,"__typename");typeof h=="string"&&!f.includes(h)&&f.push(h)}),globalThis.__DEV__!==!1&&T.warn(15,u,s,f.length?"either ensure all objects of type "+f.join(" and ")+" have an ID or a custom merge function, or ":"",c,v({},a),v({},o))}}}}var nc=(function(t){ae(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new Ki(Gr),n.assumeImmutableResults=!0,n.makeVar=Ku,n.txCount=0,n.config=qu(r),n.addTypename=!!n.config.addTypename,n.policies=new ec({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var r=this.data=new ht.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},e.prototype.resetResultCache=function(r){var n=this,i=this.storeReader,a=this.config.fragments;this.storeWriter=new tc(this,this.storeReader=new $u({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Ea(this.config),canon:r?void 0:i&&i.canon,fragments:a}),a),this.maybeBroadcastWatch=lt(function(o,s){return n.broadcastWatch(o,s)},{max:this.config.resultCacheMaxSize||ie["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(o){var s=o.optimistic?n.optimisticData:n.data;if(it(s)){var u=o.optimistic,c=o.id,f=o.variables;return s.makeCacheKey(o.query,o.callback,de({optimistic:u,id:c,variables:f}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(o){return o.resetCaching()})},e.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},e.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},e.prototype.read=function(r){var n=r.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(v(v({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(a){if(a instanceof ma)return null;throw a}},e.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(r){if(z.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(v(v({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(r){var n=this;return this.watches.size||Ju(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&Kn(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){var n;de.reset(),Ee.reset(),this.addTypenameTransform.resetCache(),(n=this.config.fragments)===null||n===void 0||n.resetCaches();var i=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),i},e.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},e.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},e.prototype.identify=function(r){if(P(r))return r.__ref;try{return this.policies.identify(r)[0]}
55catch(n){globalThis.__DEV__!==!1&&T.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(z.call(r,"id"))return!1;r=v(v({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(r){var n=this;return this.init(),de.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Kn(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(r){var n=this,i=r.update,a=r.optimistic,o=a===void 0?!0:a,s=r.removeOptimistic,u=r.onWatchUpdated,c,f=function(h){var d=n,p=d.data,m=d.optimisticData;++n.txCount,h&&(n.data=n.optimisticData=h);try{return c=i(n)}finally{--n.txCount,n.data=p,n.optimisticData=m}},l=new Set;return u&&!this.txCount&&this.broadcastWatches(v(v({},r),{onWatchUpdated:function(h){return l.add(h),!1}})),typeof o=="string"?this.optimisticData=this.optimisticData.addLayer(o,f):o===!1?f(this.data):f(),typeof s=="string"&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches(v(v({},r),{onWatchUpdated:function(h,d){var p=u.call(this,h,d);return p!==!1&&l.delete(h),p}})),l.size&&l.forEach(function(h){return n.maybeBroadcastWatch.dirty(h)})):this.broadcastWatches(r),c},e.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},e.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},e.prototype.fragmentMatches=function(r,n){return this.policies.fragmentMatches(r,n)},e.prototype.lookupFragment=function(r){var n;return((n=this.config.fragments)===null||n===void 0?void 0:n.lookup(r))||null},e.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,r)})},e.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},e.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},e.prototype.broadcastWatch=function(r,n){var i=r.lastDiff,a=this.diff(r);n&&(r.optimistic&&typeof n.optimistic=="string"&&(a.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,a,i)===!1)||(!i||!A(i.result,a.result))&&r.callback(r.lastDiff=a,i)},e})(ya);globalThis.__DEV__!==!1&&(nc.prototype.getMemoryInternals=ts);var F;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(F||(F={}));function Fe(t){return t?t<7:!1}var ui=Object.assign,ic=Object.hasOwnProperty,ot=(function(t){ae(e,t);function e(r){var n=r.queryManager,i=r.queryInfo,a=r.options,o=this,s=e.inactiveOnCreation.getValue();o=t.call(this,function(y){s&&(n.queries.set(o.queryId,i),s=!1);try{var b=y._subscription._observer;b&&!b.error&&(b.error=ac)}catch{}var E=!o.observers.size;o.observers.add(y);var O=o.last;return O&&O.error?y.error&&y.error(O.error):O&&O.result&&y.next&&y.next(o.maskResult(O.result)),E&&o.reobserve().catch(function(){}),function(){o.observers.delete(y)&&!o.observers.size&&o.tearDownQuery()}})||this,o.observers=new Set,o.subscriptions=new Set,o.dirty=!1,o.queryInfo=i,o.queryManager=n,o.waitForOwnResult=rr(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var u=n.defaultOptions.watchQuery,c=u===void 0?{}:u,f=c.fetchPolicy,l=f===void 0?"cache-first":f,h=a.fetchPolicy,d=h===void 0?l:h,p=a.initialFetchPolicy,m=p===void 0?d==="standby"?l:d:p;o.options=v(v({},a),{initialFetchPolicy:m,fetchPolicy:d}),o.queryId=i.queryId||n.generateQueryId();var g=we(o.query);return o.queryName=g&&g.name&&g.name.value,o}return Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables}
55,enumerable:!1,configurable:!0}),e.prototype.result=function(){var r=this;return new Promise(function(n,i){var a={next:function(s){n(s),r.observers.delete(a),r.observers.size||r.queryManager.removeQuery(r.queryId),setTimeout(function(){o.unsubscribe()},0)},error:i},o=r.subscribe(a)})},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentFullResult=function(r){r===void 0&&(r=!0);var n=this.getLastResult(!0),i=this.queryInfo.networkStatus||n&&n.networkStatus||F.ready,a=v(v({},n),{loading:Fe(i),networkStatus:i}),o=this.options.fetchPolicy,s=o===void 0?"cache-first":o;if(!(rr(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(a.data=u.result),A(a.data,{})&&(a.data=void 0),u.complete?(delete a.partial,u.complete&&a.networkStatus===F.loading&&(s==="cache-first"||s==="cache-only")&&(a.networkStatus=F.ready,a.loading=!1)):a.partial=!0,a.networkStatus===F.ready&&(a.error||a.errors)&&(a.networkStatus=F.error),globalThis.__DEV__!==!1&&!u.complete&&!this.options.partialRefetch&&!a.loading&&!a.data&&!a.error&&xa(u.missing)}return r&&this.updateLastResult(a),a},e.prototype.getCurrentResult=function(r){return r===void 0&&(r=!0),this.maskResult(this.getCurrentFullResult(r))},e.prototype.isDifferentFromLastResult=function(r,n){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),a=this.queryManager.dataMasking,o=a?i.nonReactiveQuery:this.query,s=a||i.hasNonreactiveDirective?!fa(o,this.last.result,r,this.variables):!A(this.last.result,r);return s||n&&!A(this.last.variables,n)},e.prototype.getLast=function(r,n){var i=this.last;if(i&&i[r]&&(!n||A(i.variables,this.variables)))return i[r]},e.prototype.getLastResult=function(r){return this.getLast("result",r)},e.prototype.getLastError=function(r){return this.getLast("error",r)},e.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(r){var n,i={pollInterval:0},a=this.options.fetchPolicy;if(a==="no-cache"?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",globalThis.__DEV__!==!1&&r&&ic.call(r,"variables")){var o=ji(this.query),s=o.variableDefinitions;(!s||!s.some(function(u){return u.variable.name.value==="variables"}))&&globalThis.__DEV__!==!1&&T.warn(21,r,((n=o.name)===null||n===void 0?void 0:n.value)||o)}return r&&!A(this.options.variables,r)&&(i.variables=this.options.variables=v(v({},this.options.variables),r)),this.queryInfo.resetLastWrite(),this.reobserve(i,F.refetch)},e.prototype.fetchMore=function(r){var n=this,i=v(v({},r.query?r:v(v(v(v({},this.options),{query:this.options.query}),r),{variables:v(v({},this.options.variables),r.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var a=this.queryManager.generateQueryId();this.lastQuery=r.query?this.transformDocument(this.options.query):i.query;var o=this.queryInfo,s=o.networkStatus;o.networkStatus=F.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var u=new Set,c=r==null?void 0:r.updateQuery,f=this.options.fetchPolicy!=="no-cache";return f||T(c,22),this.queryManager.fetchQuery(a,i,F.fetchMore).then(function(l){if(n.queryManager.removeQuery(a),o.networkStatus===F.fetchMore&&(o.networkStatus=s),f)n.queryManager.cache.batch({update:function(p){var m=r.updateQuery;m?p.updateQuery({query:n.query,variables:n.variables,returnPartialData:!0,optimistic:!1},function(g){return m(g,{fetchMoreResult:l.data,variables:i.variables})}):p.writeQuery({query:i.query,variables:i.variables,data:l.data})},onWatchUpdated:function(p){u.add(p.query)}});else{var h=n.getLast("result"),d=c(h.data,{fetchMoreResult:l.data,variables:i.variables});n.reportResult(v(v({},h),{networkStatus:s,loading:Fe(s),data:d}),n.variables)}return n.maskResult(l)}).finally(function(){f&&!u.has(n.query)&&n.reobserveCacheFirst()})},e.prototype.subscribeToMore=function(r){var n=this,i=this.queryManager.startGraphQLSubscription({query:r.document,variables:r.variables,context:r.context}).subscribe({next:function(a){var o=r.updateQuery;o&&n.updateQuery(function(s,u){return o(s,v({subscriptionData:a},u))})}
55,error:function(a){if(r.onError){r.onError(a);return}globalThis.__DEV__!==!1&&T.error(23,a)}});return this.subscriptions.add(i),function(){n.subscriptions.delete(i)&&i.unsubscribe()}},e.prototype.setOptions=function(r){return this.reobserve(r)},e.prototype.silentSetOptions=function(r){var n=Te(this.options,r||{});ui(this.options,n)},e.prototype.setVariables=function(r){return A(this.variables,r)?this.observers.size?this.result():Promise.resolve():(this.options.variables=r,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:r},F.setVariables):Promise.resolve())},e.prototype.updateQuery=function(r){var n=this.queryManager,i=n.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),a=i.result,o=i.complete,s=r(a,{variables:this.variables,complete:!!o,previousData:a});s&&(n.cache.writeQuery({query:this.options.query,data:s,variables:this.variables}),n.broadcastQueries())},e.prototype.startPolling=function(r){this.options.pollInterval=r,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(r,n){if(n.nextFetchPolicy){var i=n.fetchPolicy,a=i===void 0?"cache-first":i,o=n.initialFetchPolicy,s=o===void 0?a:o;a==="standby"||(typeof n.nextFetchPolicy=="function"?n.fetchPolicy=n.nextFetchPolicy(a,{reason:r,options:n,observable:this,initialFetchPolicy:s}):r==="variables-changed"?n.fetchPolicy=s:n.fetchPolicy=n.nextFetchPolicy)}return n.fetchPolicy},e.prototype.fetch=function(r,n,i){var a=this.queryManager.getOrCreateQuery(this.queryId);return a.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(a,r,n,i)},e.prototype.updatePolling=function(){var r=this;if(!this.queryManager.ssrMode){var n=this,i=n.pollingInfo,a=n.options.pollInterval;if(!a||!this.hasObservers()){i&&(clearTimeout(i.timeout),delete this.pollingInfo);return}if(!(i&&i.interval===a)){T(a,24);var o=i||(this.pollingInfo={});o.interval=a;var s=function(){var c,f;r.pollingInfo&&(!Fe(r.queryInfo.networkStatus)&&!(!((f=(c=r.options).skipPollAttempt)===null||f===void 0)&&f.call(c))?r.reobserve({fetchPolicy:r.options.initialFetchPolicy==="no-cache"?"no-cache":"network-only"},F.poll).then(u,u):u())},u=function(){var c=r.pollingInfo;c&&(clearTimeout(c.timeout),c.timeout=setTimeout(s,c.interval))};u()}}},e.prototype.updateLastResult=function(r,n){n===void 0&&(n=this.variables);var i=this.getLastError();return i&&this.last&&!A(n,this.last.variables)&&(i=void 0),this.last=v({result:this.queryManager.assumeImmutableResults?r:ia(r),variables:n},i?{error:i}:null)},e.prototype.reobserveAsConcast=function(r,n){var i=this;this.isTornDown=!1;var a=n===F.refetch||n===F.fetchMore||n===F.poll,o=this.options.variables,s=this.options.fetchPolicy,u=Te(this.options,r||{}),c=a?u:ui(this.options,u),f=this.transformDocument(c.query);this.lastQuery=f,a||(this.updatePolling(),r&&r.variables&&!A(r.variables,o)&&c.fetchPolicy!=="standby"&&(c.fetchPolicy===s||typeof c.nextFetchPolicy=="function")&&(this.applyNextFetchPolicy("variables-changed",c),n===void 0&&(n=F.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=rr(c.fetchPolicy));var l=function(){i.concast===p&&(i.waitForOwnResult=!1)},h=c.variables&&v({},c.variables),d=this.fetch(c,n,f),p=d.concast,m=d.fromLink,g={next:function(y){A(i.variables,h)&&(l(),i.reportResult(y,h))},error:function(y){A(i.variables,h)&&(ua(y)||(y=new K({networkError:y})),l(),i.reportError(y,h))}};return!a&&(m||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=g),p.addObserver(g),p},e.prototype.reobserve=function(r,n){return Ys(this.reobserveAsConcast(r,n).promise.then(this.maskResult))},e.prototype.resubscribeAfterError=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=this.last;this.resetLastResults();var a=this.subscribe.apply(this,r);return this.last=i,a},e.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},e.prototype.reportResult=function(r,n){var i=this.getLastError(),a=this.isDifferentFromLastResult(r,n);(i||!r.partial||this.options.returnPartialData)&&this.updateLastResult(r,n),(i||a)&&nt(this.observers,"next",this.maskResult(r))},e.prototype.reportError=function(r,n){var i=v(v({},this.getLastResult()),{error:r,errors:r.graphQLErrors,networkStatus:F.error,loading:!1});this.updateLastResult(i,n),nt(this.observers,"error",this.last.error=r)},e.prototype.hasObservers=function(){return this.observers.size>0},e.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(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e.prototype.maskResult=function(r){return r&&"data"in r?v(v({},r),{data:this.queryManager.maskOperation({document:this.query,data:r.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):r},e.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},e.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},e.prototype.scheduleNotify=function(){var r=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0)))},e.prototype.notify=function(){if(this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy=="cache-only"||this.options.fetchPolicy=="cache-and-network"||!Fe(this.queryInfo.networkStatus))){var r=this.queryInfo.getDiff();r.fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()}this.dirty=!1},e.prototype.reobserveCacheFirst=function(){var r=this.options,n=r.fetchPolicy,i=r.nextFetchPolicy;return n==="cache-and-network"||n==="network-only"?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(a,o){return this.nextFetchPolicy=i,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(a,o):n}}):this.reobserve()},e.inactiveOnCreation=new Ge,e})(L);aa(ot);function ac(t){globalThis.__DEV__!==!1&&T.error(25,t.message,t.stack)}function xa(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&T.debug(26,t)}function rr(t){return t==="network-only"||t==="no-cache"||t==="standby"}var Ae=new(ke?WeakMap:Map);function nr(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return Ae.set(t,(Ae.get(t)+1)%1e15),r.apply(this,arguments)})}var ir=(function(){function t(e,r){r===void 0&&(r=e.generateQueryId()),this.queryId=r,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;Ae.has(n)||(Ae.set(n,0),nr(n,"evict"),nr(n,"modify"),nr(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||F.loading;return this.variables&&this.networkStatus!==F.loading&&!A(this.variables,e.variables)&&(r=F.setVariables),A(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:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.resetDiff=function(){this.lastDiff=void 0},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&A(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},t.prototype.updateLastDiff=function(e,r){this.lastDiff=e?{diff:e,options:r||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var r;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},t.prototype.setDiff=function(e){var r,n,i=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(!((r=this.observableQuery)===null||r===void 0)&&r.getLastError())||(this.updateLastDiff(e),A(i&&i.result,e&&e.result)||(n=this.observableQuery)===null||n===void 0||n.scheduleNotify())},t.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},t.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,(e=this.observableQuery)===null||e===void 0||e.resetNotifications(),this.cancel();var r=this.observableQuery;r&&r.stopPolling()}},t.prototype.cancel=function(){var e;(e=this.cancelWatch)===null||e===void 0||e.call(this),this.cancelWatch=void 0},t.prototype.updateWatch=function(e){var r=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=v(v({},this.getDiffOptions(e)),{watcher:this,callback:function(a){return r.setDiff(a)}});(!this.lastWatch||!A(i,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,r){var n=this.lastWrite;return!(n&&n.dmCount===Ae.get(this.cache)&&A(r,n.variables)&&A(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,i){var a=this,o,s=new ye,u=X(e.errors)?e.errors.slice(0):[];if((o=this.observableQuery)===null||o===void 0||o.resetNotifications(),"incremental"in e&&X(e.incremental)){var c=oa(this.getDiff().result,e);e.data=c}else if("hasNext"in e&&e.hasNext){var f=this.getDiff();
55e.data=s.merge(f.result,e.data)}this.graphQLErrors=u,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(xr(e,n.errorPolicy)?this.cache.performTransaction(function(l){if(a.shouldWrite(e,n.variables))l.writeQuery({query:r,data:e.data,variables:n.variables,overwrite:i===1}),a.lastWrite={result:e,variables:n.variables,dmCount:Ae.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var h=a.getDiffOptions(n.variables),d=l.diff(h);!a.stopped&&A(a.variables,n.variables)&&a.updateWatch(n.variables),a.updateLastDiff(d,h),d.complete&&(e.data=d.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=F.ready},t.prototype.markError=function(e){var r;return this.networkStatus=F.error,this.lastWrite=void 0,(r=this.observableQuery)===null||r===void 0||r.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t})();function xr(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!St(t);return!n&&r&&t.data&&(n=!0),n}var oc=Object.prototype.hasOwnProperty,ci=Object.create(null),sc=(function(){function t(e){var r=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Qr(ie["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new ue(!1),this.noCacheWarningsByQueryId=new Set;var n=new Ki(function(a){return r.cache.transformDocument(a)},{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 i=e.documentTransform;this.documentTransform=i?n.concat(i).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(H(27))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){return fe(this,arguments,void 0,function(r){var n,i,a,o,s,u,c,f=r.mutation,l=r.variables,h=r.optimisticResponse,d=r.updateQueries,p=r.refetchQueries,m=p===void 0?[]:p,g=r.awaitRefetchQueries,y=g===void 0?!1:g,b=r.update,E=r.onQueryUpdated,O=r.fetchPolicy,S=O===void 0?((u=this.defaultOptions.mutate)===null||u===void 0?void 0:u.fetchPolicy)||"network-only":O,w=r.errorPolicy,x=w===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.errorPolicy)||"none":w,I=r.keepRootFields,C=r.context;return le(this,function(M){switch(M.label){case 0:return T(f,28),T(S==="network-only"||S==="no-cache",29),n=this.generateMutationId(),f=this.cache.transformForLink(this.transform(f)),i=this.getDocumentInfo(f).hasClientExports,l=this.getVariables(f,l),i?[4,this.localState.addExportedVariables(f,l,C)]:[3,2];case 1:l=M.sent(),M.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[n]={mutation:f,variables:l,loading:!0,error:null}),o=h&&this.markMutationOptimistic(h,{mutationId:n,document:f,variables:l,fetchPolicy:S,errorPolicy:x,context:C,updateQueries:d,update:b,keepRootFields:I}),this.broadcastQueries(),s=this,[2,new Promise(function(G,B){return Kt(s.getObservableFromLink(f,v(v({},C),{optimisticResponse:o?h:void 0}),l,{},!1),function(j){if(St(j)&&x==="none")throw new K({graphQLErrors:_r(j)});a&&(a.loading=!1,a.error=null);var U=v({},j);return typeof m=="function"&&(m=m(U)),x==="ignore"&&St(U)&&delete U.errors,s.markMutationResult({mutationId:n,result:U,document:f,variables:l,fetchPolicy:S,errorPolicy:x,context:C,update:b,updateQueries:d,awaitRefetchQueries:y,refetchQueries:m,removeOptimistic:o?n:void 0,onQueryUpdated:E,keepRootFields:I})}).subscribe({next:function(j){s.broadcastQueries(),(!("hasNext"in j)||j.hasNext===!1)&&G(v(v({},j),{data:s.maskOperation({document:f,data:j.data,fetchPolicy:S,id:n})}))},error:function(j){a&&(a.loading=!1,a.error=j),o&&s.cache.removeOptimistic(n),s.broadcastQueries(),B(j instanceof K?j:new K({networkError:j}))}})})]}})})},t.prototype.markMutationResult=function(e,r){var n=this;r===void 0&&(r=this.cache);var i=e.result,a=[],o=e.fetchPolicy==="no-cache";if(!o&&xr(i,e.errorPolicy)){if(Pe(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),Pe(i)&&X(i.incremental)){var s=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
55),u=void 0;s.result&&(u=oa(s.result,i)),typeof u<"u"&&(i.data=u,a.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(l,h){var d=l.observableQuery,p=d&&d.queryName;if(!(!p||!oc.call(c,p))){var m=c[p],g=n.queries.get(h),y=g.document,b=g.variables,E=r.diff({query:y,variables:b,returnPartialData:!0,optimistic:!1}),O=E.result,S=E.complete;if(S&&O){var w=m(O,{mutationResult:i,queryName:y&&et(y)||void 0,queryVariables:b});w&&a.push({result:w,dataId:"ROOT_QUERY",query:y,variables:b})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(l){o||a.forEach(function(m){return l.write(m)});var h=e.update,d=!Zs(i)||Pe(i)&&!i.hasNext;if(h){if(!o){var p=l.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&(i=v(v({},i),{data:p.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}d&&h(l,i,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&d&&l.modify({id:"ROOT_MUTATION",fields:function(m,g){var y=g.fieldName,b=g.DELETE;return y==="__typename"?m:b}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(l){return f.push(l)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},t.prototype.markMutationOptimistic=function(e,r){var n=this,i=typeof e=="function"?e(r.variables,{IGNORE:ci}):e;return i===ci?!1:(this.cache.recordOptimisticTransaction(function(a){try{n.markMutationResult(v(v({},r),{result:{data:i}}),a)}catch(o){globalThis.__DEV__!==!1&&T.error(o)}},r.mutationId),!0)},t.prototype.fetchQuery=function(e,r,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),r,n).concast.promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(r,n){e[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var r=this.queries.get(e);r&&(r.networkError=void 0,r.graphQLErrors=[])},t.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},t.prototype.getDocumentInfo=function(e){var r=this.transformCache;if(!r.has(e)){var n={hasClientExports:Ao(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:ct(["nonreactive"],e),nonReactiveQuery:Ls(e),clientQuery:this.localState.clientQuery(e),serverQuery:Zi([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:Br(we(e)),asQuery:v(v({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?v(v({},i),{operation:"query"}):i})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return v(v({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=v(v({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new ir(this),i=new ot({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,ot.inactiveOnCreation.getValue()||this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},t.prototype.query=function(e,r){var n=this;r===void 0&&(r=this.generateQueryId()),T(e.query,30),T(e.query.kind==="Document",31),T(!e.returnPartialData,32),T(!e.pollInterval,33);var i=this.transform(e.query);return this.fetchQuery(r,v(v({},e),{query:i})).then(function(a){return a&&v(v({},a),{data:n.maskOperation({document:i,data:a.data,fetchPolicy:e.fetchPolicy,id:r})})}).finally(function(){return n.stopQuery(r)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var r=this.queries.get(e);r&&r.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}
55),this.cancelPendingFetches(H(34)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=F.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var r=this;e===void 0&&(e="active");var n=new Map,i=new Map,a=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(s){if(typeof s=="string")i.set(s,s),a.set(s,!1);else if(cs(s)){var u=Ee(r.transform(s));i.set(u,et(s)),a.set(u,!1)}else V(s)&&s.query&&o.add(s)}),this.queries.forEach(function(s,u){var c=s.observableQuery,f=s.document;if(c){if(e==="all"){n.set(u,c);return}var l=c.queryName,h=c.options.fetchPolicy;if(h==="standby"||e==="active"&&!c.hasObservers())return;(e==="active"||l&&a.has(l)||f&&a.has(Ee(f)))&&(n.set(u,c),l&&a.set(l,!0),f&&a.set(Ee(f),!0))}}),o.size&&o.forEach(function(s){var u=cr("legacyOneTimeQuery"),c=r.getOrCreateQuery(u).init({document:s.query,variables:s.variables}),f=new ot({queryManager:r,queryInfo:c,options:v(v({},s),{fetchPolicy:"network-only"})});T(f.queryId===u),c.setObservableQuery(f),n.set(u,f)}),globalThis.__DEV__!==!1&&a.size&&a.forEach(function(s,u){if(!s){var c=i.get(u);c?globalThis.__DEV__!==!1&&T.warn(35,c):globalThis.__DEV__!==!1&&T.warn(36)}}),n},t.prototype.reFetchObservableQueries=function(e){var r=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,a){var o=i.options.fetchPolicy;i.resetLastResults(),(e||o!=="standby"&&o!=="cache-only")&&n.push(i.refetch()),(r.queries.get(a)||i.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},t.prototype.startGraphQLSubscription=function(e){var r=this,n=e.query,i=e.variables,a=e.fetchPolicy,o=e.errorPolicy,s=o===void 0?"none":o,u=e.context,c=u===void 0?{}:u,f=e.extensions,l=f===void 0?{}:f;n=this.transform(n),i=this.getVariables(n,i);var h=function(p){return r.getObservableFromLink(n,c,p,l).map(function(m){a!=="no-cache"&&(xr(m,s)&&r.cache.write({query:n,result:m.data,dataId:"ROOT_SUBSCRIPTION",variables:p}),r.broadcastQueries());var g=St(m),y=vu(m);if(g||y){var b={};if(g&&(b.graphQLErrors=m.errors),y&&(b.protocolErrors=m.extensions[Kr]),s==="none"||y)throw new K(b)}return s==="ignore"&&delete m.errors,m})};if(this.getDocumentInfo(n).hasClientExports){var d=this.localState.addExportedVariables(n,i,c).then(h);return new L(function(p){var m=null;return d.then(function(g){return m=g.subscribe(p)},p.error),function(){return m&&m.unsubscribe()}})}return h(i)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){var r;this.fetchCancelFns.delete(e),this.queries.has(e)&&((r=this.queries.get(e))===null||r===void 0||r.stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var r;return(r=e.observableQuery)===null||r===void 0?void 0:r.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,r,n,i,a){var o=this,s;a===void 0&&(a=(s=r==null?void 0:r.queryDeduplication)!==null&&s!==void 0?s:this.queryDeduplication);var u,c=this.getDocumentInfo(e),f=c.serverQuery,l=c.clientQuery;if(f){var h=this,d=h.inFlightLinkObservables,p=h.link,m={query:f,variables:n,operationName:et(f)||void 0,context:this.prepareContext(v(v({},r),{forceFetch:!a})),extensions:i};if(r=m.context,a){var g=Ee(f),y=de(n),b=d.lookup(g,y);if(u=b.observable,!u){var E=new xe([Or(p,m)]);u=b.observable=E,E.beforeNext(function O(S,w){S==="next"&&"hasNext"in w&&w.hasNext?E.beforeNext(O):d.remove(g,y)})}}else u=new xe([Or(p,m)])}else u=new xe([L.of({data:{}})]),r=this.prepareContext(r);return l&&(u=Kt(u,function(O){return o.localState.runResolvers({document:l,remoteResult:O,context:r,variables:n})})),u},t.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(n.query);return Kt(this.getObservableFromLink(a,n.context,n.variables),function(o){var s=_r(o),u=s.length>0,c=n.errorPolicy;if(i>
55=e.lastRequestId){if(u&&c==="none")throw e.markError(new K({graphQLErrors:s}));e.markResult(o,a,n,r),e.markReady()}var f={data:o.data,loading:!1,networkStatus:F.ready};return u&&c==="none"&&(f.data=void 0),u&&c!=="ignore"&&(f.errors=s,f.networkStatus=F.error),f},function(o){var s=ua(o)?o:new K({networkError:o});throw i>=e.lastRequestId&&e.markError(s),s})},t.prototype.fetchConcastWithInfo=function(e,r,n,i){var a=this;n===void 0&&(n=F.loading),i===void 0&&(i=r.query);var o=this.getVariables(i,r.variables),s=this.defaultOptions.watchQuery,u=r.fetchPolicy,c=u===void 0?s&&s.fetchPolicy||"cache-first":u,f=r.errorPolicy,l=f===void 0?s&&s.errorPolicy||"none":f,h=r.returnPartialData,d=h===void 0?!1:h,p=r.notifyOnNetworkStatusChange,m=p===void 0?!1:p,g=r.context,y=g===void 0?{}:g,b=Object.assign({},r,{query:i,variables:o,fetchPolicy:c,errorPolicy:l,returnPartialData:d,notifyOnNetworkStatusChange:m,context:y}),E=function(I){b.variables=I;var C=a.fetchQueryByPolicy(e,b,n);return b.fetchPolicy!=="standby"&&C.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",r),C},O=function(){return a.fetchCancelFns.delete(e.queryId)};this.fetchCancelFns.set(e.queryId,function(I){O(),setTimeout(function(){return S.cancel(I)})});var S,w;if(this.getDocumentInfo(b.query).hasClientExports)S=new xe(this.localState.addExportedVariables(b.query,b.variables,b.context).then(E).then(function(I){return I.sources})),w=!0;else{var x=E(b.variables);w=x.fromLink,S=new xe(x.sources)}return S.promise.then(O,O),{concast:S,fromLink:w}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,i=e.include,a=e.optimistic,o=a===void 0?!1:a,s=e.removeOptimistic,u=s===void 0?o?cr("refetchQueries"):void 0:s,c=e.onQueryUpdated,f=new Map;i&&this.getObservableQueries(i).forEach(function(h,d){f.set(d,{oq:h,lastDiff:(r.queries.get(d)||h.queryInfo).getDiff()})});var l=new Map;return n&&this.cache.batch({update:n,optimistic:o&&u||!1,removeOptimistic:u,onWatchUpdated:function(h,d,p){var m=h.watcher instanceof ir&&h.watcher.observableQuery;if(m){if(c){f.delete(m.queryId);var g=c(m,d,p);return g===!0&&(g=m.refetch()),g!==!1&&l.set(m,g),g}c!==null&&f.set(m.queryId,{oq:m,lastDiff:p,diff:d})}}}),f.size&&f.forEach(function(h,d){var p=h.oq,m=h.lastDiff,g=h.diff,y;c&&(g||(g=r.cache.diff(p.queryInfo.getDiffOptions())),y=c(p,g,m)),(!c||y===!0)&&(y=p.refetch()),y!==!1&&l.set(p,y),d.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(d)}),u&&this.cache.removeOptimistic(u),l},t.prototype.maskOperation=function(e){var r,n,i,a=e.document,o=e.data;if(globalThis.__DEV__!==!1){var s=e.fetchPolicy,u=e.id,c=(r=we(a))===null||r===void 0?void 0:r.operation,f=((n=c==null?void 0:c[0])!==null&&n!==void 0?n:"o")+u;this.dataMasking&&s==="no-cache"&&!Wo(a)&&!this.noCacheWarningsByQueryId.has(f)&&(this.noCacheWarningsByQueryId.add(f),globalThis.__DEV__!==!1&&T.warn(37,(i=et(a))!==null&&i!==void 0?i:"Unnamed ".concat(c??"operation")))}return this.dataMasking?Qu(o,a,this.cache):o},t.prototype.maskFragment=function(e){var r=e.data,n=e.fragment,i=e.fragmentName;return this.dataMasking?va(r,n,this.cache,i):r},t.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,a=r.query,o=r.variables,s=r.fetchPolicy,u=r.refetchWritePolicy,c=r.errorPolicy,f=r.returnPartialData,l=r.context,h=r.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:a,variables:o,networkStatus:n});var p=function(){return e.getDiff()},m=function(O,S){S===void 0&&(S=e.networkStatus||F.loading);var w=O.result;globalThis.__DEV__!==!1&&!f&&!A(w,{})&&xa(O.missing);var x=function(I){return L.of(v({data:I,loading:Fe(S),networkStatus:S},O.complete?null:{partial:!0}))};return w&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:w},context:l,variables:o,onlyRunForcedResolvers:!0}).then(function(I){return x(I.data||void 0)}):c==="none"&&S===F.refetch&&Array.isArray(O.missing)?x(void 0):x(w)},g=s==="no-cache"?0:n===F.refetch&&u!=="merge"?1:2,y=function(){return i.getResultsFromLink(e,g,{query:a,variables:o,context:l,fetchPolicy:s,errorPolicy:c})},b=h&&typeof d=="number"&&d!==n&&Fe(n);switch(s){default:case"cache-first":{var E=p();return E.complete?{fromLink:!1,sources:[m(E,e.markReady())]}:f||b?{fromLink:!0,sources:[m(E),y()]}:{fromLink:!0,sources:[y()]}}case"cache-and-network":{var E=p();return E.complete||f||b?{fromLink:!0,sources:[m(E),y()]}:{fromLink:!0,sources:[y()]}}case"cache-only":return{fromLink:!1,sources:[m(p(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[m(p()),y()]}:{fromLink:!0,sources:[y()]};case"no-cache":return b?{fromLink:!0,sources:[m(e.getDiff()),y()]}:{fromLink:!0,sources:[y()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ir(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return v(v(v({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},t}
55)(),uc=(function(){function t(e){var r=e.cache,n=e.client,i=e.resolvers,a=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),i&&this.addResolvers(i),a&&this.setFragmentMatcher(a)}return t.prototype.addResolvers=function(e){var r=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){r.resolvers=Nn(r.resolvers,n)}):this.resolvers=Nn(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){return fe(this,arguments,void 0,function(r){var n=r.document,i=r.remoteResult,a=r.context,o=r.variables,s=r.onlyRunForcedResolvers,u=s===void 0?!1:s;return le(this,function(c){return n?[2,this.resolveDocument(n,i.data,a,o,this.fragmentMatcher,u).then(function(f){return v(v({},i),{data:f.result})})]:[2,i]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return ct(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return ea(e)},t.prototype.prepareContext=function(e){var r=this.cache;return v(v({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e){return fe(this,arguments,void 0,function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i={}),le(this,function(a){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,n)||{},this.prepareContext(i),n).then(function(o){return v(v({},n),o.exportedVariables)})]:[2,v({},n)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return ne(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),r))return Pt}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:Ps(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r){return fe(this,arguments,void 0,function(n,i,a,o,s,u){var c,f,l,h,d,p,m,g,y,b,E;return a===void 0&&(a={}),o===void 0&&(o={}),s===void 0&&(s=function(){return!0}),u===void 0&&(u=!1),le(this,function(O){return c=vt(n),f=We(n),l=Ue(f),h=this.collectSelectionsToResolve(c,l),d=c.operation,p=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",m=this,g=m.cache,y=m.client,b={fragmentMap:l,context:v(v({},a),{cache:g,client:y}),variables:o,fragmentMatcher:s,defaultOperationType:p,exportedVariables:{},selectionsToResolve:h,onlyRunForcedResolvers:u},E=!1,[2,this.resolveSelectionSet(c.selectionSet,E,i,b).then(function(S){return{result:S,exportedVariables:b.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,i){return fe(this,void 0,void 0,function(){var a,o,s,u,c,f=this;return le(this,function(l){return a=i.fragmentMap,o=i.context,s=i.variables,u=[n],c=function(h){return fe(f,void 0,void 0,function(){var d,p;return le(this,function(m){return!r&&!i.selectionsToResolve.has(h)?[2]:pt(h,s)?pe(h)?[2,this.resolveField(h,r,n,i).then(function(g){var y;typeof g<"u"&&u.push((y={},y[se(h)]=g,y))})]:(_s(h)?d=h:(d=a[h.name.value],T(d,19,h.name.value)),d&&d.typeCondition&&(p=d.typeCondition.name.value,i.fragmentMatcher(n,p,o))?[2,this.resolveSelectionSet(d.selectionSet,r,n,i).then(function(g){u.push(g)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return Bt(u)})]})})},t.prototype.resolveField=function(e,r,n,i){return fe(this,void 0,void 0,function(){var a,o,s,u,c,f,l,h,d,p=this;return le(this,function(m){return n?(a=i.variables,o=e.name.value,s=se(e),u=o!==s,c=n[s]||n[o],f=Promise.resolve(c),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=n.__typename||i.defaultOperationType,h=this.resolvers&&this.resolvers[l],h&&(d=h[u?o:s],d&&(f=Promise.resolve(Zr.withValue(this.cache,d,[n,Vt(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,f.then(function(g){var y,b;if(g===void 0&&(g=c),e.directives&&e.directives.forEach(function(O){O.name.value==="export"&&O.arguments&&O.arguments.forEac
55h(function(S){S.name.value==="as"&&S.value.kind==="StringValue"&&(i.exportedVariables[S.value.value]=g)})}),!e.selectionSet||g==null)return g;var E=(b=(y=e.directives)===null||y===void 0?void 0:y.some(function(O){return O.name.value==="client"}))!==null&&b!==void 0?b:!1;if(Array.isArray(g))return p.resolveSubSelectedArray(e,r||E,g,i);if(e.selectionSet)return p.resolveSelectionSet(e.selectionSet,r||E,g,i)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,r,n,i){var a=this;return Promise.all(n.map(function(o){if(o===null)return null;if(Array.isArray(o))return a.resolveSubSelectedArray(e,r,o,i);if(e.selectionSet)return a.resolveSelectionSet(e.selectionSet,r,o,i)}))},t.prototype.collectSelectionsToResolve=function(e,r){var n=function(o){return!Array.isArray(o)},i=this.selectionsToResolveCache;function a(o){if(!i.has(o)){var s=new Set;i.set(o,s),ne(o,{Directive:function(u,c,f,l,h){u.name.value==="client"&&h.forEach(function(d){n(d)&&_n(d)&&s.add(d)})},FragmentSpread:function(u,c,f,l,h){var d=r[u.name.value];T(d,20,u.name.value);var p=a(d);p.size>0&&(h.forEach(function(m){n(m)&&_n(m)&&s.add(m)}),s.add(u),p.forEach(function(m){s.add(m)}))}})}return i.get(o)}return a(e)},t})(),fi=!1,cc=(function(){function t(e){var r=this,n;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw H(16);var i=e.uri,a=e.credentials,o=e.headers,s=e.cache,u=e.documentTransform,c=e.ssrMode,f=c===void 0?!1:c,l=e.ssrForceFetchDelay,h=l===void 0?0:l,d=e.connectToDevTools,p=e.queryDeduplication,m=p===void 0?!0:p,g=e.defaultOptions,y=e.defaultContext,b=e.assumeImmutableResults,E=b===void 0?s.assumeImmutableResults:b,O=e.resolvers,S=e.typeDefs,w=e.fragmentMatcher,x=e.name,I=e.version,C=e.devtools,M=e.dataMasking,G=e.link;G||(G=i?new Ru({uri:i,credentials:a,headers:o}):$e.empty()),this.link=G,this.cache=s,this.disableNetworkFetches=f||h>0,this.queryDeduplication=m,this.defaultOptions=g||Object.create(null),this.typeDefs=S,this.devtoolsConfig=v(v({},C),{enabled:(n=C==null?void 0:C.enabled)!==null&&n!==void 0?n:d}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),h&&setTimeout(function(){return r.disableNetworkFetches=!1},h),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=Fr,this.localState=new uc({cache:s,client:this,resolvers:O,fragmentMatcher:w}),this.queryManager=new sc({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:y,documentTransform:u,queryDeduplication:m,ssrMode:f,dataMasking:!!M,clientAwareness:{name:x,version:I},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var e=window,r=Symbol.for("apollo.devtools");(e[r]=e[r]||[]).push(this),e.__APOLLO_CLIENT__=this,!fi&&globalThis.__DEV__!==!1&&(fi=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,i=n&&n.userAgent,a=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&globalThis.__DEV__!==!1&&T.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Oe(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=v(v({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=Oe(this.defaultOptions.query,e)),T(e.fetchPolicy!=="cache-and-network",17),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=v(v({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Oe(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){var r=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return v(v({},i),{data:r.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:n})})})},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!1),this.cache.readQuery(e,r)},t.prototype.watchFragment=function(e){var r;return this.cache.watchFragment(v(v({},e),(r={},r[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,r)))},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!1),this.cache.readFragment(e,r)},t.prototype.writeQuery=function(e){var r=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.writeFragment=function(e){var r=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return Or(this.link,e)},t.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(r){return r()}))}).then(function(){return e.reFetchObservableQueries()})},t.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(r){return r()}))})},t.prototype.onResetStore=function(e){var r=this;return this.resetStoreCallbacks.push(e),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.onClearStore=function(e){var r=this;return this.clearStoreCallbacks.push(e),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var r=this.queryManager.refetchQueries(e),n=[],i=[];r.forEach(function(o,s){n.push(s),i.push(o)});var a=Promise.all(i);return a.queries=n,a.results=i,a.catch(function(o){globalThis.__DEV__!==!1&&T.debug(18,o)}),a},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(t.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
55,enumerable:!1,configurable:!0}),t})();globalThis.__DEV__!==!1&&(cc.prototype.getMemoryInternals=es);var kt=new Map,Nr=new Map,Na=!0,Ct=!1;function Ca(t){return t.replace(/[\s,]+/g," ").trim()}function fc(t){return Ca(t.source.body.substring(t.start,t.end))}function lc(t){var e=new Set,r=[];return t.definitions.forEach(function(n){if(n.kind==="FragmentDefinition"){var i=n.name.value,a=fc(n.loc),o=Nr.get(i);o&&!o.has(a)?Na&&console.warn("Warning: fragment with name "+i+` already exists.
56graphql-tag enforces all fragment names across your application to be unique; read more about
57this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):o||Nr.set(i,o=new Set),o.add(a),e.has(a)||(e.add(a),r.push(n))}else r.push(n)}),v(v({},t),{definitions:r})}function hc(t){var e=new Set(t.definitions);e.forEach(function(n){n.loc&&delete n.loc,Object.keys(n).forEach(function(i){var a=n[i];a&&typeof a=="object"&&e.add(a)})});var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}function dc(t){var e=Ca(t);if(!kt.has(e)){var r=wo(t,{experimentalFragmentVariables:Ct,allowLegacyFragmentVariables:Ct});if(!r||r.kind!=="Document")throw new Error("Not a valid GraphQL document.");kt.set(e,hc(lc(r)))}return kt.get(e)}function dt(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];typeof t=="string"&&(t=[t]);var n=t[0];return e.forEach(function(i,a){i&&i.kind==="Document"?n+=i.loc.source.body:n+=i,n+=t[a+1]}),dc(n)}function pc(){kt.clear(),Nr.clear()}function vc(){Na=!1}function yc(){Ct=!0}function mc(){Ct=!1}var Xe={gql:dt,resetCaches:pc,disableFragmentWarnings:vc,enableExperimentalFragmentVariables:yc,disableExperimentalFragmentVariables:mc};(function(t){t.gql=Xe.gql,t.resetCaches=Xe.resetCaches,t.disableFragmentWarnings=Xe.disableFragmentWarnings,t.enableExperimentalFragmentVariables=Xe.enableExperimentalFragmentVariables,t.disableExperimentalFragmentVariables=Xe.disableExperimentalFragmentVariables})(dt||(dt={}));dt.default=dt;var ar={exports:{}},li;function gc(){return li||(li=1,(function(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,qa())})(ar)),ar.exports}var N=gc();const bc=Ba(N),Ra=Ua({__proto__:null,default:bc},[N]);var hi=Vr?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function nn(){T("createContext"in Ra,54);var t=N.createContext[hi];return t||(Object.defineProperty(N.createContext,hi,{value:t=N.createContext({}),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t}var Bc=function(t){var e=t.client,r=t.children,n=nn(),i=N.useContext(n),a=N.useMemo(function(){return v(v({},i),{client:e||i.client})},[i,e]);return T(a.client,55),N.createElement(n.Provider,{value:a},r)};function Ut(t){var e=N.useContext(nn()),r=t||e.client;return T(!!r,58),r}var di=!1,Ec="useSyncExternalStore",_c=Ra[Ec],an=_c||(function(t,e,r){var n=e();globalThis.__DEV__!==!1&&!di&&n!==e()&&(di=!0,globalThis.__DEV__!==!1&&T.error(68));var i=N.useState({inst:{value:n,getSnapshot:e}}),a=i[0].inst,o=i[1];return Uo?N.useLayoutEffect(function(){Object.assign(a,{value:n,getSnapshot:e}),or(a)&&o({inst:a})},[t,n,e]):Object.assign(a,{value:n,getSnapshot:e}),N.useEffect(function(){return or(a)&&o({inst:a}),t(function(){or(a)&&o({inst:a})})},[t]),n});function or(t){var e=t.value,r=t.getSnapshot;try{return e!==r()}catch{return!0}}var re;(function(t){t[t.Query=0]="Query",t[t.Mutation=1]="Mutation",t[t.Subscription=2]="Subscription"})(re||(re={}));var _e;function pi(t){var e;switch(t){case re.Query:e="Query";break;case re.Mutation:e="Mutation";break;case re.Subscription:e="Subscription";break}return e}function Fa(t){_e||(_e=new Qr(ie.parser||1e3));var e=_e.get(t);if(e)return e;var r,n,i;T(!!t&&!!t.kind,70,t);for(var a=[],o=[],s=[],u=[],c=0,f=t.definitions;c<f.length;c++){var l=f[c];if(l.kind==="FragmentDefinition"){a.push(l);continue}if(l.kind==="OperationDefinition")switch(l.operation){case"query":o.push(l);break;case"mutation":s.push(l);break;case"subscription":u.push(l);break}}T(!a.length||o.length||s.length||u.length,71),T(o.length+s.length+u.length<=1,72,t,o.length,u.length,s.length),n=o.length?re.Query:re.Mutation,!o.length&&!s.length&&(n=re.Subscription);var h=o.length?o:s.length?s:u;T(h.length===1,73,t,h.length);var d=h[0];r=d.variableDefinitions||[],d.name&&d.name.kind==="Name"?i=d.name.value:i="data";var p={name:i,type:n,variables:r};return _e.set(t,p),p}Fa.resetCache=function(){_e=void 0};globalThis.__DEV__!==!1&&qr("parser",function(){return _e?_e.size:0});function on(t,e){var r=Fa(t),n=pi(e),i=pi(r.type);T(r.type===e,74,n,n,i)}function Oc(t,e){var r=N.useRef(void 0);return(!r.current||!A(r.current.deps,e))&&(r.current={value:t(),deps:e}),r.current.value}var Rt=Ri?N.useLayoutEffect:N.useEffect,Sc=Symbol.for("apollo.hook.wrappers");function wc(t,e,r){var n=r.queryManager,i=n&&n[Sc],a=i&&i[t];return a?a(e):e}var Tc=Object.prototype.hasOwnProperty;function vi(){}var Dt=Symbol();function Uc(t,e){return e===void 0&&(e=Object.create(null)),wc("useQuery",kc,Ut(e&&e.client))(t,e)}function kc(t,e){var r=Aa(t,e),n=r.result,i=r.obsQueryFields;return N.useMemo(function(){return v(v({},n),i)},[n,i])}function Dc(t,e,r,n,i){function a(l){var h;on(e,re.Query);var d={client:t,query:e,observable:n&&n.getSSRObservable(i())||ot.inactiveOnCreation.withValue(!n,function(){return t.watchQuery(sn(void 0,t,r,i()))}),resultData:{previousData:(h=l==null?void 0:l.resultData.current)===null||h===void 0?void 0:h.data}};return d}var o=N.useState(a),s=o[0],u=o[1];function c(l){var h,d;Object.assign(s.observable,(h={},h[Dt]=l,h));var p=s.resultData;u(v(v({},s),{query:l.query,resultData:Object.assign(p,{previousData:((d=p.current)===null||d===void 0?void 0:d.data)||p.previousData,current:void 0})}))}if(t!==s.client||e!==s.query){var f=a(s);return u(f),[f,c]}return[s,c]}function Aa(t,e){var r=Ut(e.client),n=N.useContext(nn()).renderPromises,i=!!n,a=r.disableNetworkFetches,o=e.ssr!==!1&&!e.skip,s=e.partialRefetch,u=Ma(r,t,e,i),c=Dc(r,t,e,n,u),f=c[0],l=f.observable,h=f.resultData,d=c[1],p=u(l);Nc(h,l,r,e,p);var m=N.useMemo(function(){return Fc(l)},[l]);xc(l,n,o);var g=Ic(h,l,r,e,p,a,s,i,{onCompleted:e.onCompleted||vi,onError:e.onError||vi});return{result:g,obsQueryFields:m,observable:l,resultData:h,client:r,onQueryExecuted:d}}function Ic(t,e,r,n,i,a,o,s,u){var c=N.useRef(u);N.useEffect(function(){c.current=u});var f=(s||a)&&n.ssr===!1&&!n.skip?La:n.skip||i.fetchPolicy==="standby"?ja:void 0,l=t.previousData,h=N.useMemo(function(){return f&&Ft(f,l,e,r)},[r,e,f,l]);return an(N.useCallback(function(d){if(s)return function(){};var p=function(){var y=t.current,b=e.getCurrentResult();y&&y.loading===b.loading&&y.networkStatus===b.networkStatus&&A(y.data,b.data)||Cr(b,t,e,r,o,d,c.current)},m=function(y){if(g.current.unsubscribe(),g.current=e.resubscribeAfterError(p,m),!Tc.call(y,"graphQLErrors"))throw y;var b=t.current;(!b||b&&b.loading||!A(y,b.error))&&Cr({data:b&&b.data,error:y,loading:!1,networkStatus:F.error},t,e,r,o,d,c.current)},g={current:e.subscribe(p,m)};return function(){setTimeout(function(){return g.current.unsubscribe()})}},[a,s,e,t,o,r]),function(){return h||yi(t,e,c.current,o,r)},function(){return h||yi(t,e,c.current,o,r)})}function xc(t,e,r){e&&r&&(e.registerSSRObservable(t),t.getCurrentResult().loading&&e.addObservableQueryPromise(t))}function Nc(t,e,r,n,i){var a;
57e[Dt]&&!A(e[Dt],i)&&(e.reobserve(sn(e,r,n,i)),t.previousData=((a=t.current)===null||a===void 0?void 0:a.data)||t.previousData,t.current=void 0),e[Dt]=i}function Ma(t,e,r,n){r===void 0&&(r={});var i=r.skip;r.ssr,r.onCompleted,r.onError;var a=r.defaultOptions,o=te(r,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(s){var u=Object.assign(o,{query:e});return n&&(u.fetchPolicy==="network-only"||u.fetchPolicy==="cache-and-network")&&(u.fetchPolicy="cache-first"),u.variables||(u.variables={}),i?(u.initialFetchPolicy=u.initialFetchPolicy||u.fetchPolicy||Rr(a,t.defaultOptions),u.fetchPolicy="standby"):u.fetchPolicy||(u.fetchPolicy=(s==null?void 0:s.options.initialFetchPolicy)||Rr(a,t.defaultOptions)),u}}function sn(t,e,r,n){var i=[],a=e.defaultOptions.watchQuery;return a&&i.push(a),r.defaultOptions&&i.push(r.defaultOptions),i.push(Te(t&&t.options,n)),i.reduce(Oe)}function Cr(t,e,r,n,i,a,o){var s=e.current;s&&s.data&&(e.previousData=s.data),!t.error&&X(t.errors)&&(t.error=new K({graphQLErrors:t.errors})),e.current=Ft(Rc(t,r,i),e.previousData,r,n),a(),Cc(t,s==null?void 0:s.networkStatus,o)}function Cc(t,e,r){if(!t.loading){var n=Pa(t);Promise.resolve().then(function(){n?r.onError(n):t.data&&e!==t.networkStatus&&t.networkStatus===F.ready&&r.onCompleted(t.data)}).catch(function(i){globalThis.__DEV__!==!1&&T.warn(i)})}}function yi(t,e,r,n,i){return t.current||Cr(e.getCurrentResult(),t,e,i,n,function(){},r),t.current}function Rr(t,e){var r;return(t==null?void 0:t.fetchPolicy)||((r=e==null?void 0:e.watchQuery)===null||r===void 0?void 0:r.fetchPolicy)||"cache-first"}function Pa(t){return X(t.errors)?new K({graphQLErrors:t.errors}):t.error}function Ft(t,e,r,n){var i=t.data;t.partial;var a=te(t,["data","partial"]),o=v(v({data:i},a),{client:n,observable:r,variables:r.variables,called:t!==La&&t!==ja,previousData:e});return o}function Rc(t,e,r){return t.partial&&r&&!t.loading&&(!t.data||Object.keys(t.data).length===0)&&e.options.fetchPolicy!=="cache-only"?(e.refetch(),v(v({},t),{loading:!0,networkStatus:F.refetch})):t}var La=qe({loading:!0,data:void 0,error:void 0,networkStatus:F.loading}),ja=qe({loading:!1,data:void 0,error:void 0,networkStatus:F.ready});function Fc(t){return{refetch:t.refetch.bind(t),reobserve:t.reobserve.bind(t),fetchMore:t.fetchMore.bind(t),updateQuery:t.updateQuery.bind(t),startPolling:t.startPolling.bind(t),stopPolling:t.stopPolling.bind(t),subscribeToMore:t.subscribeToMore.bind(t)}}var Ac=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function zc(t,e){var r,n=N.useRef(void 0),i=N.useRef(void 0),a=N.useRef(void 0),o=Oe(e,n.current||{}),s=(r=o==null?void 0:o.query)!==null&&r!==void 0?r:t;i.current=e,a.current=s;var u=v(v({},o),{skip:!n.current}),c=Aa(s,u),f=c.obsQueryFields,l=c.result,h=c.client,d=c.resultData,p=c.observable,m=c.onQueryExecuted,g=p.options.initialFetchPolicy||Rr(u.defaultOptions,h.defaultOptions),y=N.useReducer(function(I){return I+1},0)[1],b=N.useMemo(function(){for(var I={},C=function(j){var U=f[j];I[j]=function(){return n.current||(n.current=Object.create(null),y()),U.apply(this,arguments)}},M=0,G=Ac;M<G.length;M++){var B=G[M];C(B)}return I},[y,f]),E=!!n.current,O=N.useMemo(function(){return v(v(v({},l),b),{called:E})},[l,b,E]),S=N.useCallback(function(I){n.current=I?v(v({},I),{fetchPolicy:I.fetchPolicy||g}):{fetchPolicy:g};var C=Oe(i.current,v({query:a.current},n.current)),M=Mc(d,p,h,s,v(v({},C),{skip:!1}),m).then(function(G){return Object.assign(G,b)});return M.catch(function(){}),M},[h,s,b,g,p,d,m]),w=N.useRef(S);Rt(function(){w.current=S});var x=N.useCallback(function(){for(var I=[],C=0;C<arguments.length;C++)I[C]=arguments[C];return w.current.apply(w,I)},[]);return[x,O]}function Mc(t,e,r,n,i,a){var o=i.query||n,s=Ma(r,o,i,!1)(e),u=e.reobserveAsConcast(sn(e,r,i,s));return a(s),new Promise(function(c){var f;u.subscribe({next:function(l){f=l},error:function(){c(Ft(e.getCurrentResult(),t.previousData,e,r))},complete:function(){c(Ft(e.maskResult(f),t.previousData,e,r))}})})}function Wc(t,e){var r=Ut(e==null?void 0:e.client);on(t,re.Mutation);var n=N.useState({called:!1,loading:!1,client:r}),i=n[0],a=n[1],o=N.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:t,options:e});Rt(function(){Object.assign(o.current,{client:r,options:e,mutation:t})});var s=N.useCallback(function(c){c===void 0&&(c={});var f=o.current,l=f.options,h=f.mutation,d=v(v({},l),{mutation:h}),p=c.client||o.current.client;!o.current.result.loading&&!d.ignoreResults&&o.current.isMounted&&a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:p});var m=++o.current.mutationId,g=Oe(d,c);return p.mutate(g).then(function(y){var b,E,O=y.data,S=y.errors,w=S&&S.length>0?new K({graphQLErrors:S}):void 0,x=c.onError||((b=o.current.options)===null||b===void 0?void 0:b.onError);if(w&&x&&x(w,g),m===o.current.mutationId&&!g.ignoreResults){var I={called:!0,loading:!1,data:O,error:w,client:p};o.current.isMounted&&!A(o.current.result,I)&&a(o.current.result=I)}var C=c.onCompleted||((E=o.current.options)===null||E===void 0?void 0:E.onCompleted);return w||C==null||C(y.data,g),y},function(y){var b;if(m===o.current.mutationId&&o.current.isMounted){var E={loading:!1,error:y,data:void 0,called:!0,client:p};
57A(o.current.result,E)||a(o.current.result=E)}var O=c.onError||((b=o.current.options)===null||b===void 0?void 0:b.onError);if(O)return O(y,g),{data:void 0,errors:y};throw y})},[]),u=N.useCallback(function(){if(o.current.isMounted){var c={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:c}),a(c)}},[]);return N.useEffect(function(){var c=o.current;return c.isMounted=!0,function(){c.isMounted=!1}},[]),[s,v({reset:u},i)]}function Gc(t,e){e===void 0&&(e=Object.create(null));var r=N.useRef(!1),n=Ut(e.client);on(t,re.Subscription),r.current||(r.current=!0,e.onSubscriptionData&&globalThis.__DEV__!==!1&&T.warn(e.onData?61:62),e.onSubscriptionComplete&&globalThis.__DEV__!==!1&&T.warn(e.onComplete?63:64));var i=e.skip,a=e.fetchPolicy,o=e.errorPolicy,s=e.shouldResubscribe,u=e.context,c=e.extensions,f=e.ignoreResults,l=Oc(function(){return e.variables},[e.variables]),h=function(){return Pc(n,t,l,a,o,u,c)},d=N.useState(e.skip?null:h),p=d[0],m=d[1],g=N.useRef(h);Rt(function(){g.current=h}),i?p&&m(p=null):(!p||(n!==p.__.client||t!==p.__.query||a!==p.__.fetchPolicy||o!==p.__.errorPolicy||!A(l,p.__.variables))&&(typeof s=="function"?!!s(e):s)!==!1)&&m(p=h());var y=N.useRef(e);N.useEffect(function(){y.current=e});var b=!i&&!f,E=N.useMemo(function(){return{loading:b,error:void 0,data:void 0,variables:l}},[b,l]),O=N.useRef(f);Rt(function(){O.current=f});var S=an(N.useCallback(function(x){if(!p)return function(){};var I=!1,C=p.__.variables,M=p.__.client,G=p.subscribe({next:function(B){var j,U;if(!I){var oe={loading:!1,data:B.data,error:Pa(B),variables:C};p.__.setResult(oe),O.current||x(),oe.error?(U=(j=y.current).onError)===null||U===void 0||U.call(j,oe.error):y.current.onData?y.current.onData({client:M,data:oe}):y.current.onSubscriptionData&&y.current.onSubscriptionData({client:M,subscriptionData:oe})}},error:function(B){var j,U;B=B instanceof K?B:new K({protocolErrors:[B]}),I||(p.__.setResult({loading:!1,data:void 0,error:B,variables:C}),O.current||x(),(U=(j=y.current).onError)===null||U===void 0||U.call(j,B))},complete:function(){I||(y.current.onComplete?y.current.onComplete():y.current.onSubscriptionComplete&&y.current.onSubscriptionComplete())}});return function(){I=!0,setTimeout(function(){G.unsubscribe()})}},[p]),function(){return p&&!i&&!f?p.__.result:E},function(){return E}),w=N.useCallback(function(){T(!y.current.skip,65),m(g.current())},[y,g]);return N.useMemo(function(){return v(v({},S),{restart:w})},[S,w])}function Pc(t,e,r,n,i,a,o){var s={query:e,variables:r,fetchPolicy:n,errorPolicy:i,context:a,extensions:o},u=v(v({},s),{client:t,result:{loading:!0,data:void 0,error:void 0,variables:r},setResult:function(f){u.result=f}}),c=null;return Object.assign(new L(function(f){c||(c=t.subscribe(s));var l=c.subscribe(f);return function(){return l.unsubscribe()}}),{__:u})}function $c(t){return an(N.useCallback(function(e){return t.onNextChange(function r(){e(),t.onNextChange(r)})},[t]),t,t)}export{$e as A,Bc as B,nc as I,F as N,L as O,Kr as P,hn as _,v as a,Y as b,jc as c,fe as d,le as e,te as f,ae as g,Vc as h,ur as i,Qc as j,dt as k,zc as l,Ku as m,Uc as n,Wc as o,Gc as p,vu as q,Ee as r,K as s,V as t,$c as u,Cu as v,qc as w,vt as x,cc as y,Ut as z};
58//# sourceMappingURL=apollo-B9xYJgZj.js.map

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.