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