1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,249046,355824,541793,204359,195594,204425,834510,98910,e=>{"use strict";var t,r,n,i=e.i(247167),a=e.i(290571);e.i(171258);var o=e.i(687081),s=e.i(307656),u=e.i(758350),c=e.i(600630);function l(e,t){return t?t(e):s.Observable.of()}function f(e){return"function"==typeof e?new p(e):e}function d(e){return e.request.length<=1}var p=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return s.Observable.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(f).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=f(r),a=f(n||new e(l));return Object.assign(new e(d(i)&&d(a)?function(e){return t(e)?i.request(e)||s.Observable.of():a.request(e)||s.Observable.of()}:function(e,r){return t(e)?i.request(e,r)||s.Observable.of():a.request(e,r)||s.Observable.of()}),{left:i,right:a})},e.execute=function(e,t){var r,n,i,c,l;return e.request((i=t.context,(n={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw(0,o.newInvariantError)(58,i)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(n.operationName="string"!=typeof n.query?(0,u.getOperationName)(n.query)||void 0:""),c=n,l=(0,a.__assign)({},i),Object.defineProperty(c,"setContext",{enumerable:!1,value:function(e){l="function"==typeof e?(0,a.__assign)((0,a.__assign)({},l),e(l)):(0,a.__assign)((0,a.__assign)({},l),e)}}),Object.defineProperty(c,"getContext",{enumerable:!1,value:function(){return(0,a.__assign)({},l)}}),c))||s.Observable.of()},e.concat=function(t,r){var n=f(t);if(d(n))return!1!==globalThis.__DEV__&&o.invariant.warn(47,n),n;var i=f(r);return Object.assign(new e(d(i)?function(e){return n.request(e,function(e){return i.request(e)||s.Observable.of()})||s.Observable.of()}:function(e,t){return n.request(e,function(e){return i.request(e,t)||s.Observable.of()})||s.Observable.of()}),{left:n,right:i})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(l)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,o.newInvariantError)(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&(0,c.warnDeprecated)("onError",function(){!1!==globalThis.__DEV__&&o.invariant.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&o.invariant.warn(50),this.onError=e,this},e}(),h=p.execute,v=e.i(582587),y=e.i(786713),m=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,o.newInvariantError)(54,t,e.message);throw n.parseError=e,n}return r},g=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")},b=e.i(975625);function _(e){var t={next:function(){return e.read()}};return b.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}var O=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},S=e.i(521110),E=e.i(419983),w=e.i(645938),D=Object.prototype.hasOwnProperty;function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return k(e)}function k(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new C,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var T=function(e,t,r){return this.merge(e[r],t[r])},C=function(){function e(e){void 0===e&&(e=T),this.reconciler=e,this.isObject=E.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return(0,E.isNonNullObject)(t)&&(0,E.isNonNullObject)(e)?(Object.keys(t).forEach(function(i){if(D.call(e,i)){var o=e[i];if(t[i]!==o){var s=r.reconciler.apply(r,(0,a.__spreadArray)([e,t,i],n,!1));s!==o&&((e=r.shallowCopyForMerge(e))[i]=s)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,E.isNonNullObject)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,a.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();function I(e){return"incremental"in e}function N(e,t){var r=e,n=new C;return I(t)&&(0,w.isNonEmptyArray)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}
1r=n.merge(r,t)}),r}var F=Object.prototype.hasOwnProperty;function x(e,t){e.status>=300&&O(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var M=function(e){if(!e&&"u"<typeof fetch)throw(0,o.newInvariantError)(51)},A=e.i(899074);let q=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function P(e){return L[e.charCodeAt(0)]}let L=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var Q=e.i(498943);let j={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>V(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=W(e.variableDefinitions)?U("(\n",V(e.variableDefinitions,"\n"),"\n)"):U("(",V(e.variableDefinitions,", "),")"),r=U("",e.description,"\n")+V([e.operation,V([e.name,t]),V(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>U("",i,"\n")+e+": "+t+U(" = ",r)+U(" ",V(n," "))},SelectionSet:{leave:({selections:e})=>B(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let a=U("",e,": ")+t,o=a+U("(",V(r,", "),")");return o.length>80&&(o=a+U("(\n",z(V(r,"\n")),"\n)")),V([o,V(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+U(" ",V(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>V(["...",U("on ",e),V(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:a})=>U("",a,"\n")+`fragment ${e}${U("(",V(r,", "),")")} `+`on ${t} ${U("",V(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,A.printBlockString)(e):`"${e.replace(q,P)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+V(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+V(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+U("(",V(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>U("",e,"\n")+V(["schema",V(t," "),B(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>U("",e,"\n")+V(["scalar",t,V(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>U("",e,"\n")+V(["type",t,U("implements ",V(r," & ")),V(n," "),B(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>U("",e,"\n")+t+(W(r)?U("(\n",z(V(r,"\n")),"\n)"):U("(",V(r,", "),")"))+": "+n+U(" ",V(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>U("",e,"\n")+V([t+": "+r,U("= ",n),V(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>U("",e,"\n")+V(["interface",t,U("implements ",V(r," & ")),V(n," "),B(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>U("",e,"\n")+V(["union",t,V(r," "),U("= ",V(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>U("",e,"\n")+V(["enum",t,V(r," "),B(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>U("",e,"\n")+V([t,V(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>U("",e,"\n")+V(["input",t,V(r," "),B(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>U("",e,"\n")+"directive @"+t+(W(r)?U("(\n",z(V(r,"\n")),"\n)"):U("(",V(r,", "),")"))+(n?" repeatable":"")+" on "+V(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>V(["extend schema",V(e," "),B(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>V(["extend scalar",e,V(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>V(["extend type",e,U("implements ",V(t," & ")),V(r," "),B(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>V(["extend interface",e,U("implements ",V(t," & ")),V(r," "),B(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>V(["extend union",e,V(t," "),U("= ",V(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>V(["extend enum",e,V(t," "),B(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>V(["extend input",e,V(t," "),B(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>V([e,U(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>V([e,U(".",t),U("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>V(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>V(["@",e,U("(",t,":)")])}};function V(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function B(e){return U("{\n",z(V(e,"\n")),"\n}")}function U(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function z(e){return U(" ",e.replace(/\n/g,"\n "))}function W(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var K=e.i(134049),G=e.i(872243),$=e.i(420871),H=Object.assign(function(e){var t=n.get(e);return t||(t=(0,Q.visit)(e,j),n.set(e,t)),t},{reset:function(){n=new K.AutoCleanedWeakCache(G.cacheSizes.print||2e3)}});H.reset(),!1!==globalThis.__DEV__&&(0,$.registerGlobalCache)("print",function(){return n?n.size:0});var Y={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},J=function(e,t){return t(e)};function X(e){return new s.Observable(function(t){t.error(e)})}var Z=e.i(430207),ee=e.i(285809),et=e.i(253949),er=e.i(61518),en={kind:ee.Kind.FIELD,name:{kind:ee.Kind.NAME,value:"__typename"}};function ei(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function ea(e,t){(0,u.checkDocument)(t);for(var r,n,i,s=ei(""),c=ei(""),l=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,w.isArray)(r)){if(r.kind===ee.Kind.OPERATION_DEFINITION)return s(r.name&&r.name.value);if(r.kind===ee.Kind.FRAGMENT_DEFINITION)return c(r.name.value)}return!1!==globalThis.__DEV__&&o.invariant.error(125),null},f=0,d=t.definitions.length-1;d>=0;--d)t.definitions[d].kind===ee.Kind.OPERATION_DEFINITION&&++f;var p=(r=new Map,n=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&n.set(e.test,e))}
1),function(e){var t=r.get(e.name.value);return!t&&n.size&&n.forEach(function(r,n){n(e)&&(t=r)}),t}),h=function(e){return(0,w.isNonEmptyArray)(e)&&e.map(p).some(function(e){return e&&e.remove})},v=new Map,y=!1,m={enter:function(e){if(h(e.directives))return y=!0,null}},g=(0,Q.visit)(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var a=l(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(h(e.directives))return y=!0,null;var a=l(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){v.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===v.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every(function(e){return e.kind===ee.Kind.FIELD&&"__typename"===e.name.value})?(c(e.name.value).removed=!0,y=!0,null):void 0}},Directive:{leave:function(e){if(p(e))return y=!0,null}}});if(!y)return t;var b=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){b(c(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},_=new Set;g.definitions.forEach(function(e){e.kind===ee.Kind.OPERATION_DEFINITION?b(s(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){_.add(e)}):e.kind!==ee.Kind.FRAGMENT_DEFINITION||0!==f||c(e.name.value).removed||_.add(e.name.value)}),_.forEach(function(e){b(c(e)).fragmentSpreads.forEach(function(e){_.add(e)})});var O={enter:function(e){var t;if(t=e.name.value,!_.has(t)||c(t).removed)return null}};return i=(0,Q.visit)(g,{FragmentSpread:O,FragmentDefinition:O,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=b(s(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,a.__assign)((0,a.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===ee.Kind.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,u.getOperationDefinition)(i)||(0,u.getFragmentDefinition)(i),(0,er.createFragmentMap)((0,u.getFragmentDefinitions)(i)))?i:null}var eo=Object.assign(function(e){return(0,Q.visit)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==ee.Kind.OPERATION_DEFINITION){var n=e.selections;if(!(!n||n.some(function(e){return(0,et.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,et.isField)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,a.__assign)((0,a.__assign)({},e),{selections:(0,a.__spreadArray)((0,a.__spreadArray)([],n,!0),[en],!1)})}}}})},{added:function(e){return e===en}});function es(e){return(0,u.checkDocument)(e),ea([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var eu=(0,Z.maybe)(function(){return fetch}),ec=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,c=void 0===i?J:i,l=e.includeExtensions,f=e.preserveHeaderCase,d=e.useGETForQueries,h=e.includeUnusedVariables,v=void 0!==h&&h,w=(0,a.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&M(n||eu);var D={http:{includeExtensions:l,preserveHeaderCase:f},options:w.fetchOptions,credentials:w.credentials,headers:w.headers};return new p(function(e){var t,i,l,f,p,h,w=g(e,r),R=e.getContext(),k={};if(R.clientAwareness){var T=R.clientAwareness,C=T.name,I=T.version;C&&(k["apollographql-client-name"]=C),I&&(k["apollographql-client-version"]=I)}var N=(0,a.__assign)((0,a.__assign)({},k),R.headers),M={http:R.http,options:R.fetchOptions,credentials:R.credentials,headers:N};if((0,y.hasDirectives)(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&o.invariant.warn(52);var A=es(e.query);if(!A)return X(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=A}var q=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach(function(e){i=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},i),e.options),{headers:(0,a.__assign)((0,a.__assign)({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=(0,a.__assign)((0,a.__assign)({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var r={};
1return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(i.headers,o.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return o.includeExtensions&&(f.extensions=u),o.includeQuery&&(f.query=t(l,H)),{options:i,body:f}}(e,c,Y,D,M),P=q.options,L=q.body;L.variables&&!v&&(t=L.variables,i=e.query,l=(0,a.__assign)({},t),f=new Set(Object.keys(t)),(0,Q.visit)(i,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&f.delete(e.name.value)}}),f.forEach(function(e){delete l[e]}),L.variables=l),!P.signal&&"u">typeof AbortController&&(P.signal=(h=new AbortController).signal);var j="OperationDefinition"===(p=(0,u.getMainDefinition)(e.query)).kind&&"subscription"===p.operation,V=(0,y.hasDirectives)(["defer"],e.query);if(d&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(P.method="GET"),V||j){P.headers=P.headers||{};var B="multipart/mixed;";j&&V&&!1!==globalThis.__DEV__&&o.invariant.warn(53),j?B+="boundary=graphql;subscriptionSpec=1.0,application/json":V&&(B+="deferSpec=20220824,application/json"),P.headers.accept=B}if("GET"===P.method){var U=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=m(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var a=void 0;try{a=m(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",a)}var o="",s=e,u=e.indexOf("#");-1!==u&&(o=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+o}}(w,L),z=U.newURI,W=U.parseError;if(W)return X(W);w=z}else try{P.body=m(L,"Payload")}catch(e){return X(e)}return new s.Observable(function(t){var r=n||(0,Z.maybe)(function(){return fetch})||eu,i=t.next.bind(t);return r(w,P).then(function(t){e.setContext({response:t});var r,n=null==(r=t.headers)?void 0:r.get("content-type");return null!==n&&/^multipart\/mixed/i.test(n)?function(e,t){return(0,a.__awaiter)(this,void 0,void 0,function(){var r,n,i,o,s,u,c,l,f,d,p,h,v,y,m,g,O,w,D,R,k,T,C;return(0,a.__generator)(this,function(I){switch(I.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null==(C=e.headers)?void 0:C.get("content-type"),i="boundary=",o=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+i.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(o),u="",c=function(e){var t,r,n,i,a,o,s=e;if(e.body&&(s=e.body),t=s,b.canUseAsyncIteratorSymbol&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return _(s.getReader());if(s.stream)return _(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),a=!1,o={next:function(){return a?Promise.resolve({value:void 0,done:!0}):(a=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},b.canUseAsyncIteratorSymbol&&(o[Symbol.asyncIterator]=function(){return this}),o;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],a=[];function o(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",o),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])})}};return b.canUseAsyncIteratorSymbol&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),l=!0,I.label=1;case 1:if(!l)return[3,3];return[4,c.next()];case 2:for(d=(f=I.sent()).value,p=f.done,h="string"==typeof d?d:r.decode(d),v=u.length-s.length+1,l=!p,u+=h,y=u.indexOf(s,v);y>-1;){if(m=void 0,m=(k=[u.slice(0,y),u.slice(y+s.length)])[0],u=k[1],g=m.indexOf("\r\n\r\n"),(O=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(m.slice(0,g))["content-type"])&&-1===O.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
1if(w=m.slice(g)){if(Object.keys(D=x(e,w)).length>1||"data"in D||"incremental"in D||"errors"in D||"payload"in D)if((0,E.isNonNullObject)(D)&&"payload"in D){if(R={},"payload"in D){if(1===Object.keys(D).length&&null===D.payload)return[2];R=(0,a.__assign)({},D.payload)}"errors"in D&&(R=(0,a.__assign)((0,a.__assign)({},R),{extensions:(0,a.__assign)((0,a.__assign)({},"extensions"in R?R.extensions:null),((T={})[S.PROTOCOL_ERRORS_SYMBOL]=D.errors,T))})),t(R)}else t(D);else if(1===Object.keys(D).length&&"hasNext"in D&&!D.hasNext)return[2]}y=u.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,i):(function(t){return t.text().then(function(e){return x(t,e)}).then(function(r){return Array.isArray(r)||F.call(r,"data")||F.call(r,"errors")||O(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})})(t).then(i)}).then(function(){h=void 0,t.complete()}).catch(function(e){h=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){h&&h.abort()}})})},el=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,ec(t).request)||this;return r.options=t,r}return(0,a.__extends)(t,e),t}(p);e.s(["HttpLink",0,el],355824);var ef=e.i(869981),ed=e.i(449987);function ep(e){var t=eh(e);return(0,w.isNonEmptyArray)(t)}function eh(e){var t=(0,w.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return I(e)&&(0,w.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function ev(e,t,r){return new s.Observable(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}var ey=e.i(292360),em=e.i(966852);function eg(e){return e&&"function"==typeof e.then}var eb=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,ey.iterateObserversSafely)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,ey.iterateObserversSafely)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?eg(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,ey.iterateObserversSafely)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new s.Observable(t)]),eg(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,a.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(s.Observable);(0,em.fixObservableSubclass)(eb);var e_=e.i(675739),eO=e.i(540059),eS=e.i(952812),eE=e.i(495364);function ew(e){return e}var eD=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=b.canUseWeakSet?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]}
1,e.identity=function(){return new e(ew,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new eO.Trie(b.canUseWeakMap);this.performWork=(0,eE.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,o.invariant)(Array.isArray(n),105),r.lookupArray(n)},max:G.cacheSizes["documentTransform.cache"],cache:eS.WeakCache})}},e.prototype.performWork=function(e){return(0,u.checkDocument)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),eR=e.i(779506),ek=e.i(107799),eT=new(b.canUseWeakMap?WeakMap:Map);function eC(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return eT.set(e,(eT.get(e)+1)%1e15),r.apply(this,arguments)})}var eI=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;eT.has(r)||(eT.set(r,0),eC(r,"evict"),eC(r,"modify"),eC(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||ek.NetworkStatus.loading;return this.variables&&this.networkStatus!==ek.NetworkStatus.loading&&!(0,ef.equal)(this.variables,e.variables)&&(t=ek.NetworkStatus.setVariables),(0,ef.equal)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,ef.equal)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=(0,c.muteDeprecations)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(0,c.muteDeprecations)("getLastError",function(){var e;return null==(e=r.observableQuery)?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,ef.equal)(n&&n.result,e&&e.result)||null==(t=this.observableQuery)||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=(0,a.__assign)((0,a.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,ef.equal)(n,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===eT.get(this.cache)&&(0,ef.equal)(t,r.variables)&&(0,ef.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,a=this,o=new C,s=(0,w.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&(0,w.isNonEmptyArray)(e.incremental)){var u=N(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=o.merge(l.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(eN(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(a.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),a.lastWrite={result:e,variables:r.variables,dmCount:eT.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var o=a.getDiffOptions(r.variables),s=(0,c.muteDeprecations)("canonizeResults",function(){return i.diff(o)});!a.stopped&&(0,ef.equal)(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ek.NetworkStatus.ready},e.prototype.markError=function(e){var t;return this.networkStatus=ek.NetworkStatus.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function eN(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!ep(e);return!n&&r&&e.data&&(n=!0),n}var eF=e.i(712337),ex=b.canUseWeakMap?WeakMap:Map,eM=b.canUseWeakSet?WeakSet:Set,eA=new eF.Slot,eq=!1;function eP(){eq||(eq=!0,!1!==globalThis.__DEV__&&o.invariant.warn(64))}var eL=e.i(376846);
1function eQ(e,t,r){return eA.withValue(!0,function(){var n=function e(t,r,n,i,a){var s,u=n.knownChanged,c=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var l=0,f=Array.from(t.entries());l<f.length;l++){var d=f[l],p=d[0],h=d[1];if(null===h){c[p]=null;continue}var v=e(h,r,n,i,!1!==globalThis.__DEV__?"".concat(a||"","[").concat(p,"]"):void 0);u.has(v)&&u.add(c),c[p]=v}return u.has(c)?c:t}for(var m=0,g=r.selections;m<g.length;m++){var b=g[m],_=void 0;if(i&&u.add(c),b.kind===ee.Kind.FIELD){var O=(0,et.resultKeyNameFromField)(b),S=b.selectionSet;if(void 0===(_=c[O]||t[O]))continue;if(S&&null!==_){var v=e(t[O],S,n,i,!1!==globalThis.__DEV__?"".concat(a||"",".").concat(O):void 0);u.has(v)&&(_=v)}!1===globalThis.__DEV__&&(c[O]=_),!1!==globalThis.__DEV__&&(!i||"__typename"===O||(null==(s=Object.getOwnPropertyDescriptor(c,O))?void 0:s.value)?(delete c[O],c[O]=_):Object.defineProperty(c,O,function(e,t,r,n,i){var a=function(){return eA.getValue()||(!1!==globalThis.__DEV__&&o.invariant.warn(60,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}(O,_,a||"",n.operationName,n.operationType)))}if(b.kind===ee.Kind.INLINE_FRAGMENT&&(!b.typeCondition||n.cache.fragmentMatches(b,t.__typename))&&(_=e(t,b.selectionSet,n,i,a)),b.kind===ee.Kind.FRAGMENT_SPREAD){var E=b.name.value,w=n.fragmentMap[E]||(n.fragmentMap[E]=n.cache.lookupFragment(E));(0,o.invariant)(w,59,E);var D=(0,y.getFragmentMaskMode)(b);"mask"!==D&&(_=e(t,w.selectionSet,n,"migrate"===D,a))}u.has(_)&&u.add(c)}return"__typename"in t&&!("__typename"in c)&&(c.__typename=t.__typename),Object.keys(c).length!==Object.keys(t).length&&u.add(c),u.has(c)?c:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,eL.maybeDeepFreeze)(n),n})}function ej(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&eP(),e;var i=t.definitions.filter(function(e){return e.kind===ee.Kind.FRAGMENT_DEFINITION});void 0===n&&((0,o.invariant)(1===i.length,61,i.length),n=i[0].name.value);var a=i.find(function(e){return e.name.value===n});return((0,o.invariant)(!!a,62,n),null==e||(0,ef.default)(e,{}))?e:eQ(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:(0,er.createFragmentMap)((0,u.getFragmentDefinitions)(t)),cache:r,mutableTargets:new ex,knownChanged:new eM})}var eV=Object.prototype.hasOwnProperty,eB=Object.create(null),eU=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new K.AutoCleanedWeakCache(G.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new eO.Trie(!1),this.noCacheWarningsByQueryId=new Set;var r=new eD(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,o.newInvariantError)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,a.__awaiter)(this,arguments,void 0,function(e){var t,r,n,i,s,u,c,l=e.mutation,f=e.variables,d=e.optimisticResponse,p=e.updateQueries,h=e.refetchQueries,v=void 0===h?[]:h,y=e.awaitRefetchQueries,m=void 0!==y&&y,g=e.update,b=e.onQueryUpdated,_=e.fetchPolicy,O=void 0===_?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":_,E=e.errorPolicy,w=void 0===E?(null==(c=this.defaultOptions.mutate)?void 0:c.errorPolicy)||"none":E,D=e.keepRootFields,R=e.context;return(0,a.__generator)(this,function(e){switch(e.label){case 0:if((0,o.invariant)(l,36),(0,o.invariant)("network-only"===O||"no-cache"===O,37),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),!r)return[3,2];return[4,this.localState.addExportedVariables(l,f,R)];case 1:f=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),i=d&&this.markMutationOptimistic(d,{mutationId:t,document:l,variables:f,fetchPolicy:O,errorPolicy:w,context:R,updateQueries:p,update:g,keepRootFields:D}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return ev(s.getObservableFromLink(l,(0,a.__assign)((0,a.__assign)({},R),{optimisticResponse:i?d:void 0}),f,{},!1),function(e){if(ep(e)&&"none"===w)throw new S.ApolloError({graphQLErrors:eh(e)});n&&(n.loading=!1,n.error=null);var r=(0,a.__assign)({},e);return"function"==typeof v&&(v=v(r)),"ignore"===w&&ep(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:O,errorPolicy:w,context:R,update:g,updateQueries:p,awaitRefetchQueries:m,refetchQueries:v,removeOptimistic:i?t:void 0,onQueryUpdated:b,keepRootFields:D})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,a.__assign)((0,a.__assign)({},r),{data:s.maskOperation({document:l,data:r.data,fetchPolicy:O,id:t})}))},error:function(e){n&&(n.loading=!1,n.error=e),i&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof S.ApolloError?e:new S.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&eN(n,e.errorPolicy)){if(I(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),I(n)&&(0,w.isNonEmptyArray)(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),c=void 0;s.result&&(c=N(s.result,n)),void 0!==c&&(n.data=c,i.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(s&&eV.call(l,s)){var c=l[s],f=r.queries.get(a),d=f.document,p=f.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),v=h.result;if(h.complete&&v){var y=c(v,{mutationResult:n,queryName:d&&(0,u.getOperationName)(d)||void 0,queryVariables:p});y&&i.push({result:y,dataId:"ROOT_QUERY",query:d,variables:p})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var s,u=e.update,c=!(I(s=n)||"hasNext"in s&&"data"in s)||I(n)&&!n.hasNext;if(u){if(!o){var l=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(n=(0,a.__assign)((0,a.__assign)({},n),{data:l.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}c&&u(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return f.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return n})}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:eB}):e;return n!==eB&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,a.__assign)((0,a.__assign)({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&o.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,y.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,y.hasDirectives)(["nonreactive"],e),nonReactiveQuery:((0,u.checkDocument)(e),(0,Q.visit)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,a.__assign)((0,a.__assign)({},e),{directives:(0,a.__spreadArray)((0,a.__spreadArray)([],e.directives||[],!0),[{kind:ee.Kind.DIRECTIVE,name:{kind:ee.Kind.NAME,value:"nonreactive"}}
1],!1)})}})),clientQuery:this.localState.clientQuery(e),serverQuery:ea([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,u.getDefaultValues)((0,u.getOperationDefinition)(e)),asQuery:(0,a.__assign)((0,a.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,a.__assign)((0,a.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,a.__assign)((0,a.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,a.__assign)((0,a.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new eI(this),n=new eR.ObservableQuery({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,eR.ObservableQuery.inactiveOnCreation.getValue()||this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,o.invariant)(e.query,38),(0,o.invariant)("Document"===e.query.kind,39),(0,o.invariant)(!e.returnPartialData,40),(0,o.invariant)(!e.pollInterval,41);var n=this.transform(e.query);return this.fetchQuery(t,(0,a.__assign)((0,a.__assign)({},e),{query:n})).then(function(i){return i&&(0,a.__assign)((0,a.__assign)({},i),{data:r.maskOperation({document:n,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,o.newInvariantError)(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=ek.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)n.set(e,e),i.set(e,!1);else if((0,et.isDocumentNode)(e)){var r=H(t.transform(e));n.set(r,(0,u.getOperationName)(e)),i.set(r,!1)}else(0,E.isNonNullObject)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,n){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void r.set(n,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;
1("active"===e||s&&i.has(s)||o&&i.has(H(o)))&&(r.set(n,a),s&&i.set(s,!0),o&&i.set(H(o),!0))}}),s.size&&s.forEach(function(e){var n=(0,e_.makeUniqueId)("legacyOneTimeQuery"),i=t.getOrCreateQuery(n).init({document:e.query,variables:e.variables}),s=new eR.ObservableQuery({queryManager:t,queryInfo:i,options:(0,a.__assign)((0,a.__assign)({},e),{fetchPolicy:"network-only"})});(0,o.invariant)(s.queryId===n),i.setObservableQuery(s),r.set(n,s)}),!1!==globalThis.__DEV__&&i.size&&i.forEach(function(e,t){if(!e){var r=n.get(t);r?!1!==globalThis.__DEV__&&o.invariant.warn(43,r):!1!==globalThis.__DEV__&&o.invariant.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var a=n.options.fetchPolicy;(0,c.muteDeprecations)("resetLastResults",function(){return n.resetLastResults()}),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=void 0===a?"none":a,u=e.context,c=void 0===u?{}:u,l=e.extensions,f=void 0===l?{}:l;r=this.transform(r),n=this.getVariables(r,n);var d=function(e){return t.getObservableFromLink(r,c,e,f).map(function(n){"no-cache"!==i&&(eN(n,o)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=ep(n),s=(0,S.graphQLResultHasProtocolErrors)(n);if(a||s){var u={};if(a&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[S.PROTOCOL_ERRORS_SYMBOL]),"none"===o||s)throw new S.ApolloError(u)}return"ignore"===o&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,n,c).then(d);return new s.Observable(function(e){var t=null;return p.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n,i){var o,c,l=this;void 0===i&&(i=null!=(o=null==t?void 0:t.queryDeduplication)?o:this.queryDeduplication);var f=this.getDocumentInfo(e),d=f.serverQuery,p=f.clientQuery;if(d){var v=this.inFlightLinkObservables,y=this.link,m={query:d,variables:r,operationName:(0,u.getOperationName)(d)||void 0,context:this.prepareContext((0,a.__assign)((0,a.__assign)({},t),{forceFetch:!i})),extensions:n};if(t=m.context,i){var g=H(d),b=(0,ed.canonicalStringify)(r),_=v.lookup(g,b);if(!(c=_.observable)){var O=new eb([h(y,m)]);c=_.observable=O,O.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?O.beforeNext(e):v.remove(g,b)})}}else c=new eb([h(y,m)])}else c=new eb([s.Observable.of({data:{}})]),t=this.prepareContext(t);return p&&(c=ev(c,function(e){return l.localState.runResolvers({document:p,remoteResult:e,context:t,variables:r})})),c},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return ev(this.getObservableFromLink(i,r.context,r.variables),function(a){var o=eh(a),s=o.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===u)throw e.markError(new S.ApolloError({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var c={data:a.data,loading:!1,networkStatus:ek.NetworkStatus.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=o,c.networkStatus=ek.NetworkStatus.error),c},function(t){var r=(0,S.isApolloError)(t)?t:new S.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,a,o=this;void 0===r&&(r=ek.NetworkStatus.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,d=void 0===f?u&&u.errorPolicy||"none":f,p=t.returnPartialData,h=t.notifyOnNetworkStatusChange,v=t.context,y=Object.assign({},t,{query:n,variables:s,fetchPolicy:l,errorPolicy:d,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==h&&h,context:void 0===v?{}:v}),m=function(n){y.variables=n;var i=o.fetchQueryByPolicy(e,y,r);return"standby"!==y.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},g=function(){return o.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){g(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)i=new eb(this.localState.addExportedVariables(y.query,y.variables,y.context).then(m).then(function(e){return e.sources})),a=!0;else{var b=m(y.variables);a=b.fromLink,i=new eb(b.sources)}return i.promise.then(g,g),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?(0,e_.makeUniqueId)("refetchQueries"):void 0:o,u=e.onQueryUpdated,l=new Map;
1n&&this.getObservableQueries(n).forEach(function(e,r){l.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var f=new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof eI&&e.watcher.observableQuery;if(n){if(u){l.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&f.set(n,i),i}null!==u&&l.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),l.size&&l.forEach(function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;u&&(o||(o=(0,c.muteDeprecations)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=u(i,o,a)),u&&!0!==n||(n=i.refetch()),!1!==n&&f.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),f},e.prototype.maskOperation=function(e){var t,r,n,i=e.document,a=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,c=e.id,l=null==(t=(0,u.getOperationDefinition)(i))?void 0:t.operation,f=(null!=(r=null==l?void 0:l[0])?r:"o")+c;!this.dataMasking||"no-cache"!==s||(0,er.isFullyUnmaskedOperation)(i)||this.noCacheWarningsByQueryId.has(f)||(this.noCacheWarningsByQueryId.add(f),!1!==globalThis.__DEV__&&o.invariant.warn(45,null!=(n=(0,u.getOperationName)(i))?n:"Unnamed ".concat(null!=l?l:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&eP(),e;var n,i=(0,u.getOperationDefinition)(t);return((0,o.invariant)(i,63),null==e)?e:eQ(e,i.selectionSet,{operationType:i.operation,operationName:null==(n=i.name)?void 0:n.value,fragmentMap:(0,er.createFragmentMap)((0,u.getFragmentDefinitions)(t)),cache:r,mutableTargets:new ex,knownChanged:new eM})}(a,i,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?ej(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,u=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,d=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var v=function(){return e.getDiff()},y=function(t,r){void 0===r&&(r=e.networkStatus||ek.NetworkStatus.loading);var u=t.result;!1===globalThis.__DEV__||f||(0,ef.equal)(u,{})||(0,eR.logMissingFieldErrors)(t.missing);var c=function(e){return s.Observable.of((0,a.__assign)({data:e,loading:(0,ek.isNetworkRequestInFlight)(r),networkStatus:r},t.complete?null:{partial:!0}))};return u&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:u},context:d,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return c(e.data||void 0)}):"none"===l&&r===ek.NetworkStatus.refetch&&Array.isArray(t.missing)?c(void 0):c(u)},m="no-cache"===u?0:r===ek.NetworkStatus.refetch&&"merge"!==c?1:2,g=function(){return n.getResultsFromLink(e,m,{query:i,variables:o,context:d,fetchPolicy:u,errorPolicy:l})},b=p&&"number"==typeof h&&h!==r&&(0,ek.isNetworkRequestInFlight)(r);switch(u){default:case"cache-first":var _=v();if(_.complete)return{fromLink:!1,sources:[y(_,e.markReady())]};if(f||b)return{fromLink:!0,sources:[y(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var _=v();if(_.complete||f||b)return{fromLink:!0,sources:[y(_),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[y(v(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[y(v()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(b)return{fromLink:!0,sources:[y(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new eI(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,a.__assign)((0,a.__assign)((0,a.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function ez(e){return e.kind===ee.Kind.FIELD||e.kind===ee.Kind.FRAGMENT_SPREAD||e.kind===ee.Kind.INLINE_FRAGMENT}var eW=e.i(502693),eK=new eF.Slot,eG=new WeakMap;function e$(e){var t=eG.get(e);return t||eG.set(e,t={vars:new Set,dep:(0,eW.dep)()}),t}
1function eH(e){e$(e).vars.forEach(function(t){return t.forgetCache(e)})}function eY(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){var t;e$(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var o=Array.from(r);r.clear(),o.forEach(function(t){return t(e)})}}else{var s=eK.getValue();s&&(i(s),e$(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),e$(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var eJ=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=R(t.resolvers,e)}):this.resolvers=R(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,a.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return(0,a.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,s).then(function(e){return(0,a.__assign)((0,a.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,y.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return es(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,a.__assign)((0,a.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,a.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,a.__generator)(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,a.__assign)((0,a.__assign)({},t),e.exportedVariables)})]:[2,(0,a.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,Q.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return Q.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===(0,u.getMainDefinition)(e).operation?e:(0,Q.visit)(e,{OperationDefinition:{enter:function(e){return(0,a.__assign)((0,a.__assign)({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,a.__awaiter)(this,arguments,void 0,function(e,t,r,n,i,o){var s,c,l,f,d,p,h,v,y,m;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),(0,a.__generator)(this,function(g){return s=(0,u.getMainDefinition)(e),c=(0,u.getFragmentDefinitions)(e),l=(0,er.createFragmentMap)(c),f=this.collectSelectionsToResolve(s,l),p=(d=s.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",h=this,v=h.cache,y=h.client,m={fragmentMap:l,context:(0,a.__assign)((0,a.__assign)({},r),{cache:v,client:y}),variables:n,fragmentMatcher:i,defaultOperationType:p,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,n){return(0,a.__awaiter)(this,void 0,void 0,function(){var i,s,u,c,l,f=this;return(0,a.__generator)(this,function(d){return i=n.fragmentMap,s=n.context,u=n.variables,c=[r],l=function(e){return(0,a.__awaiter)(f,void 0,void 0,function(){var l,f;return(0,a.__generator)(this,function(a){return(t||n.selectionsToResolve.has(e))&&(0,y.shouldInclude)(e,u)?(0,et.isField)(e)?[2,this.resolveField(e,t,r,n).then(function(t){var r;void 0!==t&&c.push(((r={}
1)[(0,et.resultKeyNameFromField)(e)]=t,r))})]:((0,et.isInlineFragment)(e)?l=e:(l=i[e.name.value],(0,o.invariant)(l,21,e.name.value)),l&&l.typeCondition&&(f=l.typeCondition.name.value,n.fragmentMatcher(r,f,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,n).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return k(c)})]})})},e.prototype.resolveField=function(e,t,r,n){return(0,a.__awaiter)(this,void 0,void 0,function(){var i,o,s,u,c,l,f,d,p,h=this;return(0,a.__generator)(this,function(a){return r?(i=n.variables,u=(o=e.name.value)!==(s=(0,et.resultKeyNameFromField)(e)),l=Promise.resolve(c=r[s]||r[o]),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(p=d[u?o:s])&&(l=Promise.resolve(eK.withValue(this.cache,p,[r,(0,et.argumentsObjectFromField)(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var i,a,o=null!=(a=null==(i=e.directives)?void 0:i.some(function(e){return"client"===e.name.value}))&&a;return Array.isArray(r)?h.resolveSubSelectedArray(e,t||o,r,n):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t||o,r,n):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var a=new Set;n.set(i,a),(0,Q.visit)(i,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&ez(e)&&a.add(e)})},FragmentSpread:function(n,i,s,u,c){var l=t[n.name.value];(0,o.invariant)(l,22,n.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&ez(e)&&a.add(e)}),a.add(n),f.forEach(function(e){a.add(e)}))}})}return n.get(i)}(e)},e}(),eX=e.i(6195),eZ=!1,e0=function(){function e(e){var t,r,n,i=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,o.newInvariantError)(16);var s=e.uri,u=e.credentials,l=e.headers,f=e.cache,d=e.documentTransform,h=e.ssrMode,y=void 0!==h&&h,m=e.ssrForceFetchDelay,g=void 0===m?0:m,b=e.connectToDevTools,_=e.queryDeduplication,O=void 0===_||_,S=e.defaultOptions,E=e.defaultContext,w=e.assumeImmutableResults,D=void 0===w?f.assumeImmutableResults:w,R=e.resolvers,k=e.typeDefs,T=e.fragmentMatcher,C=e.clientAwareness,I=e.name,N=e.version,F=e.devtools,x=e.dataMasking;!1!==globalThis.__DEV__&&((0,c.warnRemovedOption)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,c.warnRemovedOption)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,c.warnRemovedOption)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,c.warnRemovedOption)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,c.warnRemovedOption)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,c.warnRemovedOption)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,c.warnRemovedOption)(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||o.invariant.warn(17));var M=e.link;M||(M=s?new el({uri:s,credentials:u,headers:l}):p.empty()),this.link=M,this.cache=f,this.disableNetworkFetches=y||g>0,this.queryDeduplication=O,this.defaultOptions=S||Object.create(null),this.typeDefs=k,this.devtoolsConfig=(0,a.__assign)((0,a.__assign)({},F),{enabled:null!=(t=null==F?void 0:F.enabled)?t:b}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout(function(){return i.disableNetworkFetches=!1},g),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=v.version,this.localState=new eJ({cache:f,client:this,resolvers:R,fragmentMatcher:T}),this.queryManager=new eU({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:E,documentTransform:d,queryDeduplication:O,ssrMode:y,dataMasking:!!x,clientAwareness:{name:null!=(r=null==C?void 0:C.name)?r:I,version:null!=(n=null==C?void 0:C.version)?n:N},localState:this.localState,assumeImmutableResults:D,onBroadcast:this.devtoolsConfig.enabled?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
1,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!eZ&&!1!==globalThis.__DEV__&&(eZ=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&o.invariant.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,eX.mergeOptions)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,a.__assign)((0,a.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,c.warnRemovedOption)(e,"canonizeResults","client.watchQuery"),(0,c.warnRemovedOption)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,eX.mergeOptions)(this.defaultOptions.query,e)),(0,o.invariant)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,a.__assign)((0,a.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,c.warnRemovedOption)(e,"canonizeResults","client.query"),(0,c.warnRemovedOption)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&o.invariant.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,eX.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return(0,a.__assign)((0,a.__assign)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,a.__assign)((0,a.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return h(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var i=Promise.all(n);return i.queries=r,i.results=n,i.catch(function(e){!1!==globalThis.__DEV__&&o.invariant.debug(20,e)}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
1,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(e0.prototype.getMemoryInternals=$.getApolloClientMemoryInternals),e.s(["ApolloClient",0,e0],541793);var e1=e.i(740096),e2=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,eE.wrap)(er.getFragmentQueryDocument,{max:G.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:eS.WeakCache})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,c.warnRemovedOption)(e,"canonizeResults","cache.readQuery"),(0,c.muteDeprecations)("canonizeResults",function(){return r.read((0,a.__assign)((0,a.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,c=e.from,l=e.optimistic,f=(0,a.__rest)(e,["fragment","fragmentName","from","optimistic"]),d=this.getFragmentDoc(n,i),p=void 0===c||"string"==typeof c?c:this.identify(c),h=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var v=i||(0,u.getFragmentDefinition)(n).name.value;p||!1===globalThis.__DEV__||o.invariant.warn(1,v)}var y=(0,a.__assign)((0,a.__assign)({},f),{returnPartialData:!0,id:p,query:d,optimistic:void 0===l||l});return new s.Observable(function(o){return r.watch((0,a.__assign)((0,a.__assign)({},y),{immediate:!0,callback:function(s){var u=h?ej(s.result,n,r,i):s.result;if(!(t&&(0,e1.equalByQuery)(d,{data:t.result},{data:u},e.variables))){var c={data:u,complete:!!s.complete};s.missing&&(c.missing=k(s.missing.map(function(e){return e.missing}))),t=(0,a.__assign)((0,a.__assign)({},s),{result:u}),o.next(c)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,c.warnRemovedOption)(e,"canonizeResults","cache.readFragment"),(0,c.muteDeprecations)("canonizeResults",function(){return r.read((0,a.__assign)((0,a.__assign)({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,a.__rest)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=(0,a.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&(0,c.warnRemovedOption)(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var n=(0,c.muteDeprecations)("canonizeResults",function(){return r.readQuery(e)}),i=t(n);return null==i?n:(r.writeQuery((0,a.__assign)((0,a.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&(0,c.warnRemovedOption)(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var n=(0,c.muteDeprecations)("canonizeResults",function(){return r.readFragment(e)}),i=t(n);return null==i?n:(r.writeFragment((0,a.__assign)((0,a.__assign)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(e2.prototype.getMemoryInternals=$.getApolloCacheMemoryInternals);var e9=function(e){function t(r,n,i,a){var o,s=e.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)(o={})[s.path[u]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,a.__extends)(t,e),t}(Error),e5=e.i(436433),e4=Object.prototype.hasOwnProperty;function e8(e){return null==e}function e3(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=e8(n)?e8(i)?void 0:{_id:i}:{id:n}),e8(n)&&!e8(i)&&(n=i),!e8(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var e7={dataIdFromObject:e3,addTypename:!0,resultCaching:!0,canonizeResults:!1};function e6(e){var t=e.canonizeResults;return void 0===t?e7.canonizeResults:t}var te=/^[_a-z][_0-9a-z]*/i;function tt(e){var t=e.match(te);return t?t[0]:e}function tr(e){return(0,E.isNonNullObject)(e)&&!(0,et.isReference)(e)&&!(0,w.isArray)(e)}function tn(e,t){var r=(0,er.createFragmentMap)((0,u.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var ti=Object.create(null),ta=function(){return ti},to=Object.create(null),ts=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,eL.maybeDeepFreeze)((0,et.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,et.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,et.makeReference)(e);if((0,et.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,et.makeReference)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,a.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),e4.call(this.data,e)){var r=this.data[e];if(r&&e4.call(r,t))return r[t]}return"__typename"===t&&e4.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof tl?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),e4.call(this.data,e))?this.data[e]:this instanceof tl?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,et.isReference)(e)&&(e=e.__ref),(0,et.isReference)(t)&&(t=t.__ref);
1var i="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,o.invariant)("string"==typeof r,2);var s=new C(td).merge(i,a);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=tt(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof tl||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),s=!1,u=!0,c={DELETE:ti,INVALIDATE:to,isReference:et.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,et.makeReference)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(l){var f=tt(l),d=n[l];if(void 0!==d){var p="function"==typeof t?t:t[l]||t[f];if(p){var h=p===ta?ti:p((0,eL.maybeDeepFreeze)(d),(0,a.__assign)((0,a.__assign)({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));if(h===to)r.group.dirty(e,l);else if(h===ti&&(h=void 0),h!==d&&(i[l]=h,s=!0,d=h,!1!==globalThis.__DEV__)){var v=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&o.invariant.warn(3,e),!0};if((0,et.isReference)(h))v(h);else if(Array.isArray(h))for(var y=!1,m=void 0,g=0,b=h;g<b.length;g++){var _=b[g];if((0,et.isReference)(_)){if(y=!0,v(_))break}else"object"==typeof _&&_&&r.policies.identify(_)[0]&&(m=_);if(y&&void 0!==m){!1!==globalThis.__DEV__&&o.invariant.warn(4,m);break}}}}void 0!==d&&(u=!1)}}),s)return this.merge(e,i),u&&(this instanceof tl?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=ta,n):ta)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(e4.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof tl&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){e4.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&e4.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,a.__rest)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof tl?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){e4.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof tl;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!e4.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,et.isReference)(e)&&(t[e.__ref]=!0),(0,E.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,E.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),tu=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,eW.dep)():null,this.keyMaker=new eO.Trie(b.canUseWeakMap)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=tt(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function tc(e,t){tp(e)&&e.group.depend(t,"__exists")}r=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,a=e.call(this,r,new tu(void 0===n||n))||this;return a.stump=new tf(a),a.storageTrie=new eO.Trie(b.canUseWeakMap),i&&a.replace(i),a}return(0,a.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(t=ts||(ts={})),t.Root=r;var tl=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return(0,a.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,ef.equal)(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,a.__assign)((0,a.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return e4.call(this.data,t)?(0,a.__assign)((0,a.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(ts),tf=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new tu(t.group.caching,t.group))||this}return(0,a.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(tl);function td(e,t,r){var n=e[r],i=t[r];return(0,ef.equal)(n,i)?n:i}function tp(e){return!!(e instanceof ts&&e.group.caching)}var th=function(){function e(){this.known=new(b.canUseWeakSet?WeakSet:Set),this.pool=new eO.Trie(b.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,E.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,E.isNonNullObject)(e)){var t=(0,E.isNonNullObject)(e)?(0,w.isArray)(e)?e.slice(0):(0,a.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,E.isNonNullObject)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var u=o.length;s.sorted.forEach(function(r){o.push(t.admit(e[r]))});var i=this.pool.lookupArray(o);if(!i.object){var c=i.object=Object.create(a);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=o[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function tv(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ty=function(){function e(e){var t=this;this.knownResults=new(b.canUseWeakMap?WeakMap:Map),this.config=(0,e5.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:e6(e)}),this.canon=e.canon||new th,this.executeSelectionSet=(0,eE.wrap)(function(e){var r,n=e.context.canonizeResults,i=tv(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?(0,a.__assign)((0,a.__assign)({},o),{result:t.canon.admit(o.result)}):o:(tc(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||G.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:tv,makeCacheKey:function(e,t,r,n){if(tp(r.store))return r.store.makeCacheKey(e,(0,et.isReference)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,eE.wrap)(function(e){return tc(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||G.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(tp(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new th},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,o=e.variables,s=e.returnPartialData,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,f=this.config.cache.policies;o=(0,a.__assign)((0,a.__assign)({},(0,u.getDefaultValues)((0,u.getQueryDefinition)(n))),o);var d=(0,et.makeReference)(void 0===i?"ROOT_QUERY":i),p=this.executeSelectionSet({selectionSet:(0,u.getMainDefinition)(n).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,a.__assign)({store:r,query:n,policies:f,variables:o,varString:(0,ed.canonicalStringify)(o),canonizeResults:l},tn(n,this.config.fragments))});if(p.missing&&(t=[new e9(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(p.missing),p.missing,n,o)],!(void 0===s||s)))throw t[0];return{result:p.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(tp(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,s=e.context;if((0,et.isReference)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=s.variables,c=s.policies,l=s.store.getFieldValue(i,"__typename"),f=[],d=new C;function p(e,r){var n;return e.missing&&(t=d.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&f.push({__typename:l});var h=new Set(n.selections);h.forEach(function(e){var n,v;if((0,y.shouldInclude)(e,u))if((0,et.isField)(e)){var m=c.readField({fieldName:e.n
1ame.value,field:e,variables:s.variables,from:i},s),g=(0,et.resultKeyNameFromField)(e);void 0===m?eo.added(e)||(t=d.merge(t,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat((0,et.isReference)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,w.isArray)(m)?m.length>0&&(m=p(r.executeSubSelectedArray({field:e,array:m,enclosingRef:a,context:s}),g)):e.selectionSet?null!=m&&(m=p(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:(0,et.isReference)(m)?m:a,context:s}),g)):s.canonizeResults&&(m=r.canon.pass(m)),void 0!==m&&f.push(((v={})[g]=m,v))}else{var b=(0,er.getFragmentFromSelection)(e,s.lookupFragment);if(!b&&e.kind===ee.Kind.FRAGMENT_SPREAD)throw(0,o.newInvariantError)(10,e.name.value);b&&c.fragmentMatches(b,l)&&b.selectionSet.selections.forEach(h.add,h)}});var v={result:k(f),missing:t},m=s.canonizeResults?this.canon.admit(v):(0,eL.maybeDeepFreeze)(v);return m.result&&this.knownResults.set(m.result,n),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,a=e.enclosingRef,s=e.context,u=new C;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,w.isArray)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,et.isReference)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,E.isNonNullObject)(r)&&((0,o.invariant)(!(0,et.isReference)(r),11,(0,et.isReference)(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),tm=e.i(795077),tg=e.i(290690),tb=Object.create(null);function t_(e){var t=JSON.stringify(e);return tb[t]||(tb[t]=Object.create(null))}function tO(e){var t=t_(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=tE(e,function(e){var i=tD(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&e4.call(t,e[0])&&(i=tD(t,e,tw)),(0,o.invariant)(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function tS(e){var t=t_(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=JSON.stringify(tE(e,function(e){var r=e[0],a=r.charAt(0);if("@"===a){if(n&&(0,w.isNonEmptyArray)(n.directives)){var o=r.slice(1),s=n.directives.find(function(e){return e.name.value===o}),u=s&&(0,et.argumentsObjectFromField)(s,i);return u&&tD(u,e.slice(1))}return}if("$"===a){var c=r.slice(1);if(i&&e4.call(i,c)){var l=e.slice(0);return l[0]=c,tD(i,l)}return}if(t)return tD(t,e)}));return(t||"{}"!==o)&&(a+=":"+o),a})}function tE(e,t){var r=new C;return(function e(t){var r=t_(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,a){(0,w.isArray)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,w.isArray)(t[a+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e},Object.create(null))}function tw(e,t){return e[t]}function tD(e,t,r){return r=r||tw,function e(t){return(0,E.isNonNullObject)(t)?(0,w.isArray)(t)?t.map(e):tE(Object.keys(t).sort(),function(e){return tD(t,e)}):t}(t.reduce(function e(t,n){return(0,w.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function tR(e){return void 0!==e.args?e.args:e.field?(0,et.argumentsObjectFromField)(e.field,e.variables):null}var tk=function(){},tT=function(e,t){return t.fieldName},tC=function(e,t,r){return(0,r.mergeObjects)(e,t)},tI=function(e,t){return t},tN=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,a.__assign)({dataIdFromObject:e3},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,o=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,u=(0,a.__assign)((0,a.__assign)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=tx(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),l=c&&c.keyFn||this.config.dataIdFromObject;
1return eA.withValue(!0,function(){for(;l;){var t=l((0,a.__assign)((0,a.__assign)({},e),s),u);if((0,w.isArray)(t))l=tO(t);else{n=t;break}}}),n=n?String(n):void 0,u.keyObject?[n,u.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,o=n.mutationType,s=n.subscriptionType,u=(0,a.__rest)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),e4.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?tC:!1===t?tI:e.merge}o(n,t.merge),n.keyFn=!1===i?tk:(0,w.isArray)(i)?tO(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?tT:(0,w.isArray)(s)?tS(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),o(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||tT)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,o.invariant)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(te);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!e4.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,a.__rest)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,d=0;d<u.length;++d){var p=u[d];if(p.has(a))return s.has(a)||(f&&!1!==globalThis.__DEV__&&o.invariant.warn(7,t,a),s.add(a)),!0;p.forEach(c),l&&d===u.length-1&&function e(t,r,n){return!!(0,E.isNonNullObject)(r)&&((0,w.isArray)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,et.isField)(t)&&(0,y.shouldInclude)(t,n)){var i=(0,et.resultKeyNameFromField)(t);return e4.call(r,i)&&(!t.selectionSet||e(t.selectionSet,r[i],n))}return!0}))}(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=tR(e);a;){var u=a(s,o);if((0,w.isArray)(u))a=tS(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,et.storeKeyNameFromField)(e.field,e.variables):(0,et.getStoreKeyName)(n,tR(e))),!1===t)?n:n===tt(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=tt(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a),u=s&&s.read;if(u){var c=tF(this,r,e,t,t.store.getStorage((0,et.isReference)(r)?r.__ref:r,i));return eK.withValue(this.cache,u,[o,c])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===tC?tM(n.store)(e,t):s===tI?t:(n.overwrite&&(e=void 0),s(e,t,tF(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||Object.create(null))))},e}();function tF(e,t,r,n,i){var a=e.getStoreFieldName(r),o=tt(a),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:tR(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:et.isReference,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(tx(arguments,t,s),n)},mergeObjects:tM(n.store)}}function tx(e,t,r){var n,i=e[0],s=e[1],u=e.length;return"string"==typeof i?n={fieldName:i,from:u>1?s:t}:(n=(0,a.__assign)({},i),e4.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&o.invariant.warn(8,(0,tg.stringifyForDisplay)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function tM(e){return function(t,r){if((0,w.isArray)(t)||(0,w.isArray)(r))throw(0,o.newInvariantError)(9);if((0,E.isNonNullObject)(t)&&(0,E.isNonNullObject)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,et.isReference)(t)&&tr(r))return e.merge(t.__ref,r),t;if(tr(t)&&(0,et.isReference)(r))return e.merge(t,r.__ref),r;if(tr(t)&&tr(r))return(0,a.__assign)((0,a.__assign)({},t),r)}return r}}function tA(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,a.__assign)((0,a.__assign)({},e),{clientOnly:t,deferred:r})),i}var tq=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,c=t.variables,l=t.overwrite,f=(0,u.getOperationDefinition)(n),d=new C;c=(0,a.__assign)((0,a.__assign)({},(0,u.getDefaultValues)(f)),c);var p=(0,a.__assign)((0,a.__assign)({store:e,written:Object.create(null),merge:function(e,t){return d.merge
1(e,t)},variables:c,varString:(0,ed.canonicalStringify)(c)},tn(n,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),h=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:p});if(!(0,et.isReference)(h))throw(0,o.newInvariantError)(12,i);return p.incomingById.forEach(function(t,n){var i=t.storeObject,s=t.mergeTree,u=t.fieldNodeSet,c=(0,et.makeReference)(n);if(s&&s.map.size){var l=r.applyMerges(s,c,i,p);if((0,et.isReference)(l))return;i=l}if(!1!==globalThis.__DEV__&&!p.overwrite){var f=Object.create(null);u.forEach(function(e){e.selectionSet&&(f[e.name.value]=!0)});var d=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==f[tt(e)]||d(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},s=i(e);if(s){var u=i(t);if(!(!u||(0,et.isReference)(s)||(0,ef.equal)(s,u)||Object.keys(s).every(function(e){return void 0!==n.getFieldValue(u,e)}))){var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=tt(r),f="".concat(c,".").concat(l);if(!tV.has(f)){tV.add(f);var d=[];(0,w.isArray)(s)||(0,w.isArray)(u)||[s,u].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||d.includes(t)||d.push(t)}),!1!==globalThis.__DEV__&&o.invariant.warn(15,l,c,d.length?"either ensure all objects of type "+d.join(" and ")+" have an ID or a custom merge function, or ":"",f,(0,a.__assign)({},s),(0,a.__assign)({},u))}}}}(c,i,e,p.store)})}e.merge(n,i)}),e.retain(h.__ref),h},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,et.getTypenameFromResult)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var d=function(){var e=tx(arguments,l,s.variables);if((0,et.isReference)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,a.__assign)((0,a.__assign)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},p=new Set;this.flattenFields(i,n,s,f).forEach(function(e,r){var i,a=n[(0,et.resultKeyNameFromField)(r)];if(p.add(r),void 0!==a){var s=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),h=tL(u,s),v=t.processFieldValue(a,r,r.selectionSet?tA(e,!1,!1):e,h),y=void 0;r.selectionSet&&((0,et.isReference)(v)||tr(v))&&(y=d("__typename",v));var m=c.getMergeFunction(f,r.name.value,y);m?h.info={field:r,typename:f,merge:m}:tj(u,s),l=e.merge(l,((i={})[s]=v,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||eo.added(r)||c.getReadFunction(f,r.name.value)||!1===globalThis.__DEV__||o.invariant.error(13,(0,et.resultKeyNameFromField)(r),n)});try{var h=c.identify(n,{typename:f,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:l,readField:d}),v=h[0],y=h[1];r=r||v,y&&(l=s.merge(l,y))}catch(e){if(!r)throw e}if("string"==typeof r){var m=(0,et.makeReference)(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(n,m,i,s)))return m;var b=s.incomingById.get(r);return b?(b.storeObject=s.merge(b.storeObject,l),b.mergeTree=function e(t,r){if(t===r||!r||tQ(r))return t;if(!t||tQ(t))return r;var n=t.info&&r.info?(0,a.__assign)((0,a.__assign)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,o={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){o.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){o.map.set(n,e(r.map.get(n),t.map.get(n)))})}return o}(b.mergeTree,u),p.forEach(function(e){return b.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:l,mergeTree:tQ(u)?void 0:u,fieldNodeSet:p}),m}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,w.isArray)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,r,tL(n,a));return tj(n,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,tm.cloneDeep)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,et.getTypenameFromResult)(t,e,r.fragmentMap));var i=new Map,a=this.cache.policies,s=new eO.Trie(!1);return!function e(u,c){var l=s.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach(function(s){if((0,y.shouldInclude)(s,r.variables)){var u=c.
1clientOnly,l=c.deferred;if(!(u&&l)&&(0,w.isNonEmptyArray)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,et.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(l=!0)}}),(0,et.isField)(s)){var f=i.get(s);f&&(u=u&&f.clientOnly,l=l&&f.deferred),i.set(s,tA(r,u,l))}else{var d=(0,er.getFragmentFromSelection)(s,r.lookupFragment);if(!d&&s.kind===ee.Kind.FRAGMENT_SPREAD)throw(0,o.newInvariantError)(14,s.name.value);d&&a.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,tA(r,u,l))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,et.isReference)(r)){var u,c,l=!(0,w.isArray)(r)&&((0,et.isReference)(t)||tr(t))?t:void 0,f=r;l&&!i&&(i=[(0,et.isReference)(l)?l.__ref:l]);var d=function(e,t){return(0,w.isArray)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=d(l,t),a=d(f,t);if(void 0!==a){i&&i.push(t);var u=s.applyMerges(e,r,a,n,i);u!==a&&(c=c||new Map).set(t,u),i&&(0,o.invariant)(i.pop()===t)}}),c&&(r=(0,w.isArray)(f)?f.slice(0):(0,a.__assign)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(u=n.store).getStorage.apply(u,i)):r},e}(),tP=[];function tL(e,t){var r=e.map;return r.has(t)||r.set(t,tP.pop()||{map:new Map}),r.get(t)}function tQ(e){return!e||!(e.info||e.map.size)}function tj(e,t){var r=e.map,n=r.get(t);n&&tQ(n)&&(tP.push(n),r.delete(t))}var tV=new Set,tB=function(e){function t(t){void 0===t&&(t={});var r,n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new eD(eo),n.assumeImmutableResults=!0,n.makeVar=eY,n.txCount=0,!1!==globalThis.__DEV__&&((0,c.warnRemovedOption)(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),(0,c.warnRemovedOption)(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r=t,n.config=(0,e5.compact)(e7,r),n.addTypename=!!n.config.addTypename,n.policies=new tN({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,a.__extends)(t,e),t.prototype.init=function(){var e=this.data=new ts.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new tq(this,this.storeReader=new ty({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:e6(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,eE.wrap)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||G.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(tp(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,(0,ed.canonicalStringify)({optimistic:n,id:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){!1!==globalThis.__DEV__&&(0,c.warnRemovedOption)(e,"canonizeResults","cache.read");var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,a.__assign)((0,a.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof e9)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(e4.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return!1!==globalThis.__DEV__&&(0,c.warnRemovedOption)(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore((0,a.__assign)((0,a.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t,r=this;
1return this.watches.size||(t=this,e$(t).vars.forEach(function(e){return e.attachCache(t)})),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){r.watches.delete(e)&&!r.watches.size&&eH(r),r.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&(0,c.warnRemovedOption)(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),ed.canonicalStringify.reset(),H.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,et.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&o.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(e4.call(e,"id"))return!1;e=(0,a.__assign)((0,a.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),ed.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),eH(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var i=r.data,a=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,a.__assign)((0,a.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,c):!1===o?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,a.__assign)((0,a.__assign)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=this,n=e.lastDiff,i=(0,c.muteDeprecations)("canonizeResults",function(){return r.diff(e)});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&(n&&(0,ef.equal)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(e2);!1!==globalThis.__DEV__&&(tB.prototype.getMemoryInternals=$.getInMemoryCacheMemoryInternals),e.s(["InMemoryCache",0,tB],204359);var tU=p.from;function tz(e){return new p(function(t,r){var n=(0,a.__rest)(t,[]);return new s.Observable(function(i){var a,o=!1;return Promise.resolve(n).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){o||(a=r(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})}function tW(e){return new p(function(t,r){return new s.Observable(function(n){var i,a,o;try{i=r(t).subscribe({next:function(i){if(i.errors?o=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}):(0,S.graphQLResultHasProtocolErrors)(i)&&(o=e({protocolErrors:i.extensions[S.PROTOCOL_ERRORS_SYMBOL],response:i,operation:t,forward:r})),o){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){a=o.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){o||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}e.s(["from",0,tU],195594),e.s(["setContext",0,tz],204425);function tK(e){var t=p.call(this)||this;return t.link=tW(e),t}(0,a.__extends)(tK,p),tK.prototype.request=function(e,t){return this.link.request(e,t)},e.s(["onError",0,tW],834510);var tG=function(){function e(e,t,r,n,i){var o=this;this.observer=e,this.operation=t,this.forward=r,this.delayFor=n,this.retryIf=i,this.retryCount=0,this.currentSubscription=null,this.onError=function(e){return(0,a.__awaiter)(o,void 0,void 0,function(){return(0,a.__generator)(this,function(t){switch(t.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(t.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];return this.observer.error(e),[2]}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){var e=this;this.currentSubscription=this.forward(this.operation).subscribe({next:function(t){var r;if((0,S.graphQLResultHasProtocolErrors)(t)){e.onError(new S.ApolloError({protocolErrors:t.extensions[S.PROTOCOL_ERRORS_SYMBOL]})),null==(r=e.currentSubscription)||r.unsubscribe();return}e.observer.next(t)},error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){t.timerId=void 0,t.try()},e)},e}(),t$=function(e){function t(t){var r,n,i,a,o,s,u,c,l,f,d,p,h=e.call(this)||this,v=t||{},y=v.attempts,m=v.delay;return h.delayFor="function"==typeof m?m:(i=void 0===(n=(r=m||{}).initial)?300:n,o=void 0===(a=r.jitter)||a,u=void 0===(s=r.max)?1/0:s,c=o?i:i/2,function(e){var t=Math.min(u,c*Math.pow(2,e));return o&&(t=Math.random()*t),t}),h.retryIf="function"==typeof y?y:(f=(l=y||{}).retryIf,p=void 0===(d=l.max)?5:d,function(e,t,r){return!(e>=p)&&(f?f(r,t):!!r)}),h}return(0,a.__extends)(t,e),t.prototype.request=function(e,t){var r=this;return new s.Observable(function(n){var i=new tG(n,e,t,r.delayFor,r.retryIf);return function(){i.cancel()}})},t}(p);e.s(["RetryLink",0,t$],98910);var tH=e.i(817518);e.s(["default",0,e=>{let t=tz(async(t,{headers:r})=>({headers:{...r,"Content-Type":"application/json","X-Shopify-Access-Token":e||i.default.env.NEXT_ADMIN_STORE_FRONT_ACCESS_TOKEN_2025||""}})),r=tW(({graphQLErrors:e,networkError:t})=>{e&&e.forEach(({message:e})=>{(0,tH.handleError)(`GraphQL Error: ${e}`,"errorLink","src/lib/apollo/shopify-admin.ts")}),t&&(0,tH.handleError)(`Network Error: ${t.message}`,"errorLink","src/lib/apollo/shopify-admin.ts")});return new e0({link:tU([t,new t$({delay:{initial:300,max:2e3,jitter:!0},attempts:{max:3}}),r,new el({uri:"/api/shopify-admin"})]),cache:new tB})}],249046)},744785,e=>{"use strict";var t,r,n,i,a,o,s,u=e.i(702807);e.i(514089);var c=e.i(138413);e.i(963489),e.i(769105),e.i(28016);let l={};var f=((t={}).Aed="AED",t.Afn="AFN",t.All="ALL",t.Amd="AMD",t.Ang="ANG",t.Aoa="AOA",t.Ars="ARS",t.Aud="AUD",t.Awg="AWG",t.Azn="AZN",t.Bam="BAM",t.Bbd="BBD",t.Bdt="BDT",t.Bgn="BGN",t.Bhd="BHD",t.Bif="BIF",t.Bmd="BMD",t.Bnd="BND",t.Bob="BOB",t.Brl="BRL",t.Bsd="BSD",t.Btn="BTN",t.Bwp="BWP",t.Byn="BYN",t.Byr="BYR",t.Bzd="BZD",t.Cad="CAD",t.Cdf="CDF",t.Chf="CHF",t.Clp="CLP",t.Cny="CNY",t.Cop="COP",t.Crc="CRC",t.Cve="CVE",t.Czk="CZK",t.Djf="DJF",t.Dkk="DKK",t.Dop="DOP",t.Dzd="DZD",t.Egp="EGP",t.Ern="ERN",t.Etb="ETB",t.Eur="EUR",t.Fjd="FJD",t.Fkp="FKP",t.Gbp="GBP",t.Gel="GEL",t.Ghs="GHS",t.Gip="GIP",t.Gmd="GMD",t.Gnf="GNF",t.Gtq="GTQ",t.Gyd="GYD",t.Hkd="HKD",t.Hnl="HNL",t.Hrk="HRK",t.Htg="HTG",t.Huf="HUF",t.Idr="IDR",t.Ils="ILS",t.Inr="INR",t.Iqd="IQD",t.Irr="IRR",t.Isk="ISK",t.Jep="JEP",t.Jmd="JMD",t.Jod="JOD",t.Jpy="JPY",t.Kes="KES",t.Kgs="KGS",t.Khr="KHR",t.Kid="KID",t.Kmf="KMF",t.Krw="KRW",t.Kwd="KWD",t.Kyd="KYD",t.Kzt="KZT",t.Lak="LAK",t.Lbp="LBP",t.Lkr="LKR",t.Lrd="LRD",t.Lsl="LSL",t.Ltl="LTL",t.Lvl="LVL",t.Lyd="LYD",t.Mad="MAD",t.Mdl="MDL",t.Mga="MGA",t.Mkd="MKD",t.Mmk="MMK",t.Mnt="MNT",t.Mop="MOP",t.Mru="MRU",t.Mur="MUR",t.Mvr="MVR",t.Mwk="MWK",t.Mxn="MXN",t.Myr="MYR",t.Mzn="MZN",t.Nad="NAD",t.Ngn="NGN",t.Nio="NIO",t.Nok="NOK",t.Npr="NPR",t.Nzd="NZD",t.Omr="OMR",t.Pab="PAB",t.Pen="PEN",t.Pgk="PGK",t.Php="PHP",t.Pkr="PKR",t.Pln="PLN",t.Pyg="PYG",t.Qar="QAR",t.Ron="RON",t.Rsd="RSD",t.Rub="RUB",t.Rwf="RWF",t.Sar="SAR",t.Sbd="SBD",t.Scr="SCR",t.Sdg="SDG",t.Sek="SEK",t.Sgd="SGD",t.Shp="SHP",t.Sll="SLL",t.Sos="SOS",t.Srd="SRD",t.Ssp="SSP",t.Std="STD",t.Stn="STN",t.Syp="SYP",t.Szl="SZL",t.Thb="THB",t.Tjs="TJS",t.Tmt="TMT",t.Tnd="TND",t.Top="TOP",t.Try="TRY",t.Ttd="TTD",t.Twd="TWD",t.Tzs="TZS",t.Uah="UAH",t.Ugx="UGX",t.Usd="USD",t.Usdc="USDC",t.Uyu="UYU",t.Uzs="UZS",t.Ved="VED",t.Vef="VEF",t.Ves="VES",t.Vnd="VND",t.Vuv="VUV",t.Wst="WST",t.Xaf="XAF",t.Xcd="XCD",t.Xof="XOF",t.Xpf="XPF",t.Xxx="XXX",t.Yer="YER",t.Zar="ZAR",t.Zmw="ZMW",t),d=((r={}).Invalid="INVALID",r.NotSubscribed="NOT_SUBSCRIBED",r.Pending="PENDING",r.Redacted="REDACTED",r.Subscribed="SUBSCRIBED",r.Unsubscribed="UNSUBSCRIBED",r),p=((n={}).ConfirmedOptIn="CONFIRMED_OPT_IN",n.SingleOptIn="SINGLE_OPT_IN",n.Unknown="UNKNOWN",n),h=((i={}).Cancelled="CANCELLED",i.Error="ERROR",i.Failure="FAILURE",i.Open="OPEN",i.Pending="PENDING",i.Success="SUCCESS",i),v=((a={}).Fulfilled="FULFILLED",a.InProgress="IN_PROGRESS",a.OnHold="ON_HOLD",a.Open="OPEN",a.PartiallyFulfilled="PARTIALLY_FULFILLED",a.PendingFulfillment="PENDING_FULFILLMENT",a.RequestDeclined="REQUEST_DECLINED",a.Restocked="RESTOCKED",a.Scheduled="SCHEDULED",a.Unfulfilled="UNFULFILLED",a),y=((o={}).Color="COLOR",o.Defective="DEFECTIVE",o.NotAsDescribed="NOT_AS_DESCRIBED",o.Other="OTHER",o.SizeTooLarge="SIZE_TOO_LARGE",o.SizeTooSmall="SIZE_TOO_SMALL",o.Style="STYLE",o.Unknown="UNKNOWN",o.Unwanted="UNWANTED",o.WrongItem="WRONG_ITEM",o),m=((s={}).Canceled="CANCELED",s.Closed="CLOSED",s.Declined="DECLINED",s.Open="OPEN",s.Requested="REQUESTED",s);let g=u.gql` 2 mutation customerCreate($input: CustomerInput!) { 3 customerCreate(input: $input) { 4 customer { 5 id 6 } 7 userErrors { 8 field 9 message 10 } 11 } 12} 13 `,b=u.gql` 14 mutation customerEmailMarketingConsentUpdate($input: CustomerEmailMarketingConsentUpdateInput!) { 15 customerEmailMarketingConsentUpdate(input: $input) { 16 customer { 17 id 18 } 19 userErrors { 20 field 21 message 22 } 23 } 24} 25 `;u.gql` 26 mutation customerSmsMarketingConsentUpdate($input: CustomerSmsMarketingConsentUpdateInput!) { 27 customerSmsMarketingConsentUpdate(input: $input) { 28 customer { 29 id 30 } 31 userErrors { 32 field 33 message 34 } 35 } 36} 37 `;let _=u.gql` 38 mutation updateCustomer($input: CustomerInput!) { 39 customerUpdate(input: $input) { 40 customer { 41 id 42 } 43 userErrors { 44 message 45 field 46 } 47 } 48} 49 `,O=u.gql` 50 mutation discountCodeBasicCreate($basicCodeDiscount: DiscountCodeBasicInput!) { 51 discountCodeBasicCreate(basicCodeDiscount: $basicCodeDiscount) { 52 codeDiscountNode { 53 id 54 codeDiscount { 55 __typename 56 ... on DiscountCodeBasic { 57 title 58 startsAt 59 endsAt 60 codes(first: 5) { 61 nodes { 62 code 63 } 64 } 65 customerSelection { 66 ... on DiscountCustomers { 67 customers { 68 id 69 email 70 } 71 } 72 } 73 customerGets { 74 value { 75 ... on DiscountPercentage { 76 percentage 77 } 78 ... on DiscountAmount { 79 amount { 80 amount 81 currencyCode 82 } 83 } 84 } 85 items { 86 ... on DiscountProducts { 87 products { 88 edges { 89 node { 90 id 91 } 92 } 93 } 94 } 95 ... on DiscountCollections { 96 collections { 97 edges { 98 node { 99 id 100 } 101 } 102 } 103 } 104 } 105 } 106 minimumRequirement { 107 ... on DiscountMinimumSubtotal { 108 greaterThanOrEqualToSubtotal { 109 amount 110 currencyCode 111 } 112 } 113 } 114 usageLimit 115 appliesOncePerCustomer 116 } 117 } 118 } 119 userErrors { 120 field 121 message 122 } 123 } 124} 125 `;u.gql` 126 mutation discountCodeBasicUpdate($id: ID!, $basicCodeDiscount: DiscountCodeBasicInput!) { 127 discountCodeBasicUpdate(id: $id, basicCodeDiscount: $basicCodeDiscount) { 128 userErrors { 129 field 130 message 131 } 132 codeDiscountNode { 133 id 134 codeDiscount { 135 ... on DiscountCodeBasic { 136 title 137 usageLimit 138 appliesOncePerCustomer 139 customerGets { 140 value { 141 ... on DiscountPercentage { 142 percentage 143 } 144 } 145 } 146 } 147 } 148 } 149 } 150} 151 `,u.gql` 152 mutation OrderCreate($order: OrderCreateOrderInput!, $options: OrderCreateOptionsInput) { 153 orderCreate(order: $order, options: $options) { 154 order { 155 id 156 name
157 displayFinancialStatus 158 totalPriceSet { 159 shopMoney { 160 amount 161 currencyCode 162 } 163 } 164 shippingAddress { 165 firstName 166 lastName 167 address1 168 address2 169 city 170 provinceCode 171 countryCodeV2 172 zip 173 phone 174 } 175 customer { 176 id 177 defaultEmailAddress { 178 emailAddress 179 } 180 } 181 } 182 userErrors { 183 field 184 message 185 code 186 } 187 } 188} 189 `,u.gql` 190 mutation ReturnRequest($input: ReturnRequestInput!) { 191 returnRequest(input: $input) { 192 userErrors { 193 field 194 message 195 } 196 } 197} 198 `;let S=u.gql` 199 mutation SetCustomerMetafields($metafields: [MetafieldsSetInput!]!) { 200 metafieldsSet(metafields: $metafields) { 201 metafields { 202 id 203 key 204 namespace 205 value 206 type 207 } 208 userErrors { 209 field 210 message 211 } 212 } 213} 214 `,E=u.gql` 215 query getAllCustomers($query: String) { 216 customers(first: 10, query: $query) { 217 edges { 218 node { 219 id 220 email 221 updatedAt 222 tags 223 numberOfOrders 224 orders(first: 100) { 225 edges { 226 node { 227 cancelReason 228 cancelledAt 229 } 230 } 231 } 232 } 233 } 234 } 235} 236 `,w=u.gql` 237 query GetCustomerById($id: ID!) { 238 customer(id: $id) { 239 id 240 email 241 phone 242 numberOfOrders 243 amountSpent { 244 amount 245 currencyCode 246 } 247 createdAt 248 updatedAt 249 metafields(first: 100, namespace: "custom") { 250 edges { 251 node { 252 key 253 value 254 type 255 } 256 } 257 } 258 orders(first: 100) { 259 edges { 260 node { 261 cancelReason 262 cancelledAt 263 } 264 } 265 } 266 } 267} 268 `,D=u.gql` 269 query GetDiscountDetails($id: ID!) { 270 codeDiscountNode(id: $id) { 271 id 272 codeDiscount { 273 ... on DiscountCodeBasic { 274 __typename 275 title 276 summary 277 updatedAt 278 createdAt 279 usageLimit 280 asyncUsageCount 281 codes(first: 1) { 282 nodes { 283 code 284 id 285 } 286 } 287 } 288 } 289 } 290} 291 `,R=u.gql` 292 query getOrderByName($id: String!) { 293 orders(first: 1, query: $id) { 294 edges { 295 node { 296 id 297 name 298 email 299 displayFulfillmentStatus 300 displayFinancialStatus 301 processedAt 302 hasTimelineComment 303 cancelledAt 304 cancelReason 305 lineItems(first: 250) { 306 edges { 307 node { 308 id 309 currentQuantity 310 originalTotal 311 image { 312 url 313 id 314 } 315 name 316 title 317 vendor 318 variantTitle 319 variant { 320 price 321 compareAtPrice 322 } 323 fulfillmentStatus 324 unfulfilledQuantity 325 product { 326 id 327 metafield(namespace: "custom", key: "brand") { 328 value 329 } 330 collections(first: 20) { 331 edges { 332 node { 333 handle 334 id 335 } 336 } 337 } 338 } 339 } 340 } 341 } 342 currentCartDiscountAmountSet { 343 shopMoney { 344 amount 345 currencyCode 346 } 347 } 348 currentSubtotalPriceSet { 349 shopMoney { 350 amount 351 currencyCode 352 } 353 } 354 currentTotalPriceSet { 355 shopMoney { 356 amount 357 currencyCode 358 } 359 } 360 totalPriceSet { 361 shopMoney { 362 amount 363 currencyCode 364 } 365 } 366 totalShippingPriceSet { 367 shopMoney { 368 amount 369 currencyCode 370 } 371 } 372 fulfillments(first: 50) { 373 id 374 createdAt 375 deliveredAt 376 estimatedDeliveryAt 377 fulfillmentLineItems(first: 50) { 378 edges { 379 node { 380 lineItem { 381 id 382 } 383 id 384 } 385 } 386 } 387 status 388 } 389 returns(first: 50) { 390 edges { 391 node { 392 id 393 status 394 totalQuantity 395 returnLineItems(first: 50) { 396 edges { 397 node { 398 id 399 __typename 400 ... on ReturnLineItem { 401 fulfillmentLineItem { 402 id 403 } 404 } 405 } 406 } 407 } 408 } 409 } 410 } 411 } 412 } 413 } 414} 415 `,k=u.gql` 416 query getOrders($first: Int, $email: String, $reverse: Boolean, $after: String, $before: String, $last: Int) { 417 orders( 418 first: $first 419 query: $email 420 reverse: $reverse 421 after: $after 422 before: $before 423 last: $last 424 ) { 425 pageInfo { 426 hasNextPage 427 hasPreviousPage 428 startCursor 429 endCursor 430 } 431 edges { 432 node { 433 id 434 updatedAt 435 displayFulfillmentStatus 436 name 437 totalPriceSet { 438 shopMoney { 439 amount 440 currencyCode 441 } 442 } 443 currentTotalPriceSet { 444 shopMoney { 445 amount 446 currencyCode 447 } 448 } 449 subtotalPriceSet { 450 shopMoney { 451 amount 452 currencyCode 453 } 454 } 455 additionalFees { 456 id 457 name 458 price { 459 shopMoney { 460 amount 461 currencyCode 462 } 463 } 464 taxLines { 465 title 466 ratePercentage 467 } 468 } 469 lineItems(first: 10) { 470 edges { 471 node { 472 id 473 title 474 quantity 475 originalTotal 476 originalTotalSet { 477 shopMoney { 478 amount 479 currencyCode 480 } 481 } 482 discountedTotalSet(withCodeDiscounts: true) { 483 shopMoney { 484 amount 485 currencyCode 486 } 487 } 488 image { 489 originalSrc 490 } 491 variant { 492 id 493 title 494 price 495 compareAtPrice 496 image { 497 url 498 } 499 } 500 product { 501 id 502 title 503 images(first: 1) { 504 edges { 505 node { 506 originalSrc 507 } 508 } 509 } 510 } 511 } 512 } 513 } 514 updatedAt 515 totalRefundedSet { 516 shopMoney { 517 amount 518 currencyCode 519 } 520 } 521 cancelReason 522 cancelledAt 523 cancellation { 524 staffNote 525 } 526 } 527 } 528 } 529} 530 `,T=u.gql` 531 query GetReturnableFulfillments($orderId: ID!) { 532 returnableFulfillments(orderId: $orderId, first: 50) { 533 edges { 534 node { 535 id 536 fulfillment { 537 id 538 status 539 } 540 returnableFulfillmentLineItems(first: 50) { 541 edges { 542 node { 543 quantity 544 fulfillmentLineItem { 545 id 546 lineItem { 547 id 548 name 549 image { 550 url 551 } 552 currentQuantity 553 } 554 } 555 } 556 } 557 } 558 } 559 } 560 } 561} 562 `;u.gql` 563 query getShop { 564 shop { 565 id 566 name 567 email 568 url 569 plan { 570 displayName 571 partnerDevelopment 572 shopifyPlus 573 } 574 } 575} 576 `,e.s(["CurrencyCode",()=>f,"CustomerCreateDocument",0,g,"CustomerEmailMarketingConsentUpdateDocument",0,b,"CustomerEmailMarketingState",()=>d,"CustomerMarketingOptInLevel",()=>p,"DiscountCodeBasicCreateDocument",0,O,"FulfillmentStatus",()=>
576h,"GetAllCustomersDocument",0,E,"GetDiscountDetailsDocument",0,D,"GetOrderByNameDocument",0,R,"GetOrdersDocument",0,k,"GetReturnableFulfillmentsDocument",0,T,"OrderDisplayFulfillmentStatus",()=>v,"ReturnReason",()=>y,"ReturnStatus",()=>m,"SetCustomerMetafieldsDocument",0,S,"UpdateCustomerDocument",0,_,"useGetCustomerByIdQuery",0,function(e){let t={...l,...e};return c.useQuery(w,t)}])}]);
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.