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