PageSourceSearch

https://lv-production-portal-root.s3.delfi.lv/1.23.83/CCv2T7nd.js

js delfi.lv collected 2026-09-24 07:56:40 UTC 262,558 bytes, 129 lines download raw bytes

1import{r as e}from"./B0Z9INg1.js";import{Ct as t,D as n,Et as r,H as i,J as a,Jt as o,M as s,O as c,P as l,Qt as u,S as d,St as f,T as p,W as m,X as h,Xt as g,Y as _,Zt as v,_t as y,b,ct as x,d as S,dt as ee,f as C,ft as te,gt as ne,ht as re,it as ie,m as w,mt as ae,p as T,q as oe,r as se,st as ce,u as le,ut as ue,wt as de,y as fe,yt as pe,z as me}from"./BVme9ydd.js";import{l as he,t as ge}from"./Drwqp2_f.js";import{t as _e}from"./HclGiUj8.js";var ve=typeof window<`u`,ye,be=e=>ye=e,xe=Symbol();function Se(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Ce=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function we(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Te(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Ae(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Ee(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function De(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var Oe=typeof navigator==`object`?navigator:{userAgent:``},ke=/Macintosh/.test(Oe.userAgent)&&/AppleWebKit/.test(Oe.userAgent)&&!/Safari/.test(Oe.userAgent),Ae=ve?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!ke?je:`msSaveOrOpenBlob`in Oe?Me:Ne:()=>{};function je(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?De(r):Ee(r.href)?Te(e,t,n):(r.target=`_blank`,De(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){De(r)},0))}function Me(e,t=`download`,n){if(typeof e==`string`){if(Ee(e))Te(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){De(t)})}}else navigator.msSaveOrOpenBlob(we(e,n),t)}function Ne(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Te(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Ce.HTMLElement))||`safari`in Ce,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||ke)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Pe}=Object,Fe=()=>{};function Ie(e,t,n,r=Fe){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&ee()&&ne(i),i}function Le(e,...t){e.forEach(e=>{e(...t)})}var Re=e=>e(),ze=Symbol(),Be=Symbol();function Ve(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!Object.hasOwn(t,n))continue;let r=t[n],i=e[n];e[n]=Se(i)&&Se(r)&&Object.hasOwn(e,n)&&!ae(r)&&!te(r)?Ve(i,r):r}return e}var He=Symbol();function Ue(e){return!e||typeof e!=`object`||!Object.hasOwn(e,He)}var{assign:We}=Object;function Ge(e){return!!(ae(e)&&e.effect)}function Ke(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),We(de(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=re(le(()=>{be(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=qe(e,l,t,n,r,!0),c}function qe(e,t,n={},r,i,a){let o,c=We({actions:{}},n),l={deep:!0},u,d,p=new Set,m=new Set,h,g=r.state.value[e];!a&&!g&&(r.state.value[e]={});let _;function v(t){let n;u=d=!1,typeof t==`function`?(t(r.state.value[e]),n={type:`patch function`,storeId:e,events:h}):(Ve(r.state.value[e],t),n={type:`patch object`,payload:t,storeId:e,events:h});let i=_=Symbol();s().then(()=>{_===i&&(u=!0)}),d=!0,Le(p,n,r.state.value[e])}let b=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{We(e,t)})}:Fe;function x(){o.stop(),p.clear(),m.clear(),r._s.delete(e)}let S=(t,n=``)=>{if(ze in t)return t[Be]=n,t;let i=function(){be(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}Le(m,{args:n,name:i[Be],store:C,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:C,n)}catch(e){throw Le(o,e),e}return l instanceof Promise?l.then(e=>(Le(a,e),e)).catch(e=>(Le(o,e),Promise.reject(e))):(Le(a,l),l)};return i[ze]=!0,i[Be]=n,i},ee={_p:r,$id:e,$onAction:Ie.bind(null,m),$patch:v,$reset:b,$subscribe(t,n={}){if(p.has(t))return Fe;let i=Ie(p,t,n.detached,()=>a()),a=o.run(()=>ie(()=>r.state.value[e],r=>{(n.flush===`sync`?d:u)&&t({storeId:e,type:`direct`,events:h},r)},We({},l,n)));return i},$dispose:x},C=y(ee);r._s.set(e,C);let ne=(r._a&&r._a.runWithContext||Re)(()=>r._e.run(()=>(o=ue()).run(()=>t({action:S}
1))));for(let t in ne){let n=ne[t];ae(n)&&!Ge(n)||te(n)?a||(g&&Ue(n)&&(ae(n)?n.value=g[t]:Ve(n,g[t])),r.state.value[e][t]=n):typeof n==`function`&&(ne[t]=S(n,t),c.actions[t]=n)}return We(C,ne),We(f(C),ne),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:e=>{v(t=>{We(t,e)})}}),r._p.forEach(e=>{let t=o.run(()=>e({store:C,app:r._a,pinia:r,options:c}));We(C,t)}),g&&a&&n.hydrate&&n.hydrate(C.$state,g),u=!0,d=!0,C}function Je(e,t,r){let i,a=typeof t==`function`;i=a?r:t;function o(r,o){let s=n();return r||=s?c(xe,null):null,r&&be(r),r=ye,r._s.has(e)||(a?qe(e,t,i,r):Ke(e,i,r)),r._s.get(e)}return o.$id=e,o}function Ye(e){let n=f(e),r={};for(let i in n){let a=n[i];a?.effect?r[i]=le({get:()=>e[i],set(t){e[i]=t}}):(ae(a)||te(a))&&(r[i]=t(e,i))}return r}var Xe=e({Gallery:()=>hf,useGalleryLocaleStore:()=>$e}),Ze=Object.defineProperty,Qe=(e,t,n)=>t in e?Ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>(Qe(e,typeof t==`symbol`?t:t+``,n),n),$e=Je(`galleryLocale`,{state:()=>({locale:`lv`,currentLocaleData:{},cache:{},dataLoaded:!1}),getters:{getLocale:e=>e.locale},actions:{setLocale(e=`lv`){this.locale=e},async loadTranslations(){try{this.currentLocaleData=await this.loadUseTranslations(this.locale),this.dataLoaded=!0}catch{console.warn(`Failed to set localization: ${this.locale}`)}},async loadUseTranslations(e){if(!this.cache[e])switch(e){case`ru`:this.cache[e]=await _e(()=>import(`./CN2rsY6D.js`),[],import.meta.url);break;default:this.cache[e]=await _e(()=>import(`./DgmHTpR3.js`),[],import.meta.url)}return this.cache[e]},getNestedValue(e,t){return t.split(`.`).reduce((e,t)=>e&&e[t],e)},inlineElementReplace(e,t){if(typeof t==`object`){for(let[n,r]of Object.entries(t))e=e.replace(RegExp(`{${n}}`,`g`),`${r}`);return e}return e.replace(/{(\w+)}/g,`${t}`)},useTranslations(){return{t:(e,t)=>{let n=e,r=this.getNestedValue(this.currentLocaleData,e);if(r!==void 0&&(n=r),t)return this.inlineElementReplace(n,t);if(e===n&&e.includes(`[`)&&e.includes(`]`)){let[t,r]=e.split(/[[\]]/).filter(Boolean);n=(this.getNestedValue(this.currentLocaleData,t)||[])[parseInt(r,10)]}return n},te:e=>!!this.getNestedValue(this.currentLocaleData,e)}}}}),et=function(e,t){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},et(e,t)};function tt(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);et(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)};function nt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function rt(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function it(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function O(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;
1r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var at=`Invariant Violation`,ot=Object.setPrototypeOf,st=ot===void 0?function(e,t){return e.__proto__=t,e}:ot,ct=function(e){tt(t,e);function t(n){n===void 0&&(n=at);var r=e.call(this,typeof n==`number`?at+`: `+n+` (see https://github.com/apollographql/invariant-packages)`:n)||this;return r.framesToPop=1,r.name=at,st(r,t.prototype),r}return t}(Error);function lt(e,t){if(!e)throw new ct(t)}var ut=[`debug`,`log`,`warn`,`error`,`silent`],dt=ut.indexOf(`log`);function ft(e){return function(){if(ut.indexOf(e)>=dt)return(console[e]||console.log).apply(console,arguments)}}(function(e){e.debug=ft(`debug`),e.log=ft(`log`),e.warn=ft(`warn`),e.error=ft(`error`)})(lt||={});var pt=`3.14.1`;function k(e){try{return e()}catch{}}var mt=k(function(){return globalThis})||k(function(){return window})||k(function(){return self})||k(function(){return global})||k(function(){return k.constructor(`return this`)()}),ht=new Map;function gt(e){var t=ht.get(e)||1;return ht.set(e,t+1),`${e}:${t}:${Math.random().toString(36).slice(2)}`}function _t(e,t){t===void 0&&(t=0);var n=gt(`stringifyForDisplay`);return JSON.stringify(e,function(e,t){return t===void 0?n:t},t).split(JSON.stringify(n)).join(`<undefined>`)}function vt(e){return function(t){var n=[...arguments].slice(1);if(typeof t==`number`){var r=t;t=xt(r),t||(t=St(r,n),n=[])}e.apply(void 0,[t].concat(n))}}var A=Object.assign(function(e,t){var n=[...arguments].slice(2);e||lt(e,xt(t,n)||St(t,n))},{debug:vt(lt.debug),log:vt(lt.log),warn:vt(lt.warn),error:vt(lt.error)});function j(e){var t=[...arguments].slice(1);return new ct(xt(e,t)||St(e,t))}var yt=Symbol.for(`ApolloErrorMessageHandler_`+pt);function bt(e){if(typeof e==`string`)return e;try{return _t(e,2).slice(0,1e3)}catch{return`<non-serializable>`}}function xt(e,t){if(t===void 0&&(t=[]),e)return mt[yt]&&mt[yt](e,t.map(bt))}function St(e,t){if(t===void 0&&(t=[]),e)return`An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#${encodeURIComponent(JSON.stringify({version:pt,message:e,args:t.map(bt)}))}`}function Ct(e,t){if(!e)throw Error(t)}function wt(e){return typeof e==`object`&&!!e}function Tt(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var Et=/\r\n|[\n\r]/g;function Dt(e,t){let n=0,r=1;for(let i of e.body.matchAll(Et)){if(typeof i.index==`number`||Tt(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Ot(e){return kt(e.source,Dt(e.source,e.start))}function kt(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}
2`,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+At([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+At([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function At(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
3`)}function jt(e){let t=e[0];return t==null||`kind`in t||`length`in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Mt=class e extends Error{constructor(t,...n){var r;let{nodes:i,source:a,positions:o,path:s,originalError:c,extensions:l}=jt(n);super(t),this.name=`GraphQLError`,this.path=s??void 0,this.originalError=c??void 0,this.nodes=Nt(Array.isArray(i)?i:i?[i]:void 0);let u=Nt(this.nodes?.map(e=>e.loc).filter(e=>e!=null));this.source=a??(u==null||(r=u[0])==null?void 0:r.source),this.positions=o??u?.map(e=>e.start),this.locations=o&&a?o.map(e=>Dt(a,e)):u?.map(e=>Dt(e.source,e.start));let d=wt(c?.extensions)?c?.extensions:void 0;this.extensions=l??d??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),c!=null&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return`GraphQLError`}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+=`
4
5`+Ot(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=`
6
7`+kt(this.source,t);return e}toJSON(){let e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function Nt(e){return e===void 0||e.length===0?void 0:e}function M(e,t,n){return new Mt(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Pt=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return`Location`}toJSON(){return{start:this.start,end:this.end}}},Ft=class{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return`Token`}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},It={Name:[],Document:[`definitions`],OperationDefinition:[`description`,`name`,`variableDefinitions`,`directives`,`selectionSet`],
7VariableDefinition:[`description`,`variable`,`type`,`defaultValue`,`directives`],Variable:[`name`],SelectionSet:[`selections`],Field:[`alias`,`name`,`arguments`,`directives`,`selectionSet`],Argument:[`name`,`value`],FragmentSpread:[`name`,`directives`],InlineFragment:[`typeCondition`,`directives`,`selectionSet`],FragmentDefinition:[`description`,`name`,`variableDefinitions`,`typeCondition`,`directives`,`selectionSet`],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[`values`],ObjectValue:[`fields`],ObjectField:[`name`,`value`],Directive:[`name`,`arguments`],NamedType:[`name`],ListType:[`type`],NonNullType:[`type`],SchemaDefinition:[`description`,`directives`,`operationTypes`],OperationTypeDefinition:[`type`],ScalarTypeDefinition:[`description`,`name`,`directives`],ObjectTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],FieldDefinition:[`description`,`name`,`arguments`,`type`,`directives`],InputValueDefinition:[`description`,`name`,`type`,`defaultValue`,`directives`],InterfaceTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],UnionTypeDefinition:[`description`,`name`,`directives`,`types`],EnumTypeDefinition:[`description`,`name`,`directives`,`values`],EnumValueDefinition:[`description`,`name`,`directives`],InputObjectTypeDefinition:[`description`,`name`,`directives`,`fields`],DirectiveDefinition:[`description`,`name`,`arguments`,`directives`,`locations`],SchemaExtension:[`directives`,`operationTypes`],DirectiveExtension:[`name`,`directives`],ScalarTypeExtension:[`name`,`directives`],ObjectTypeExtension:[`name`,`interfaces`,`directives`,`fields`],InterfaceTypeExtension:[`name`,`interfaces`,`directives`,`fields`],UnionTypeExtension:[`name`,`directives`,`types`],EnumTypeExtension:[`name`,`directives`,`values`],InputObjectTypeExtension:[`name`,`directives`,`fields`],TypeCoordinate:[`name`],MemberCoordinate:[`name`,`memberName`],ArgumentCoordinate:[`name`,`fieldName`,`argumentName`],DirectiveCoordinate:[`name`],DirectiveArgumentCoordinate:[`name`,`argumentName`]},Lt=new Set(Object.keys(It));function Rt(e){let t=e?.kind;return typeof t==`string`&&Lt.has(t)}var zt;(function(e){e.QUERY=`query`,e.MUTATION=`mutation`,e.SUBSCRIPTION=`subscription`})(zt||={});var Bt;(function(e){e.QUERY=`QUERY`,e.MUTATION=`MUTATION`,e.SUBSCRIPTION=`SUBSCRIPTION`,e.FIELD=`FIELD`,e.FRAGMENT_DEFINITION=`FRAGMENT_DEFINITION`,e.FRAGMENT_SPREAD=`FRAGMENT_SPREAD`,e.INLINE_FRAGMENT=`INLINE_FRAGMENT`,e.VARIABLE_DEFINITION=`VARIABLE_DEFINITION`,e.SCHEMA=`SCHEMA`,e.SCALAR=`SCALAR`,e.OBJECT=`OBJECT`,e.FIELD_DEFINITION=`FIELD_DEFINITION`,e.ARGUMENT_DEFINITION=`ARGUMENT_DEFINITION`,e.INTERFACE=`INTERFACE`,e.UNION=`UNION`,e.ENUM=`ENUM`,e.ENUM_VALUE=`ENUM_VALUE`,e.INPUT_OBJECT=`INPUT_OBJECT`,e.INPUT_FIELD_DEFINITION=`INPUT_FIELD_DEFINITION`,e.DIRECTIVE_DEFINITION=`DIRECTIVE_DEFINITION`})(Bt||={});var N;(function(e){e.NAME=`Name`,e.DOCUMENT=`Document`,e.OPERATION_DEFINITION=`OperationDefinition`,e.VARIABLE_DEFINITION=`VariableDefinition`,e.SELECTION_SET=`SelectionSet`,e.FIELD=`Field`,e.ARGUMENT=`Argument`,e.FRAGMENT_SPREAD=`FragmentSpread`,e.INLINE_FRAGMENT=`InlineFragment`,e.FRAGMENT_DEFINITION=`FragmentDefinition`,e.VARIABLE=`Variable`,e.INT=`IntValue`,e.FLOAT=`FloatValue`,e.STRING=`StringValue`,e.BOOLEAN=`BooleanValue`,e.NULL=`NullValue`,e.ENUM=`EnumValue`,e.LIST=`ListValue`,e.OBJECT=`ObjectValue`,e.OBJECT_FIELD=`ObjectField`,e.DIRECTIVE=`Directive`,e.NAMED_TYPE=`NamedType`,e.LIST_TYPE=`ListType`,e.NON_NULL_TYPE=`NonNullType`,e.SCHEMA_DEFINITION=`SchemaDefinition`,e.OPERATION_TYPE_DEFINITION=`OperationTypeDefinition`,e.SCALAR_TYPE_DEFINITION=`ScalarTypeDefinition`,e.OBJECT_TYPE_DEFINITION=`ObjectTypeDefinition`,e.FIELD_DEFINITION=`FieldDefinition`,e.INPUT_VALUE_DEFINITION=`InputValueDefinition`,e.INTERFACE_TYPE_DEFINITION=`InterfaceTypeDefinition`,e.UNION_TYPE_DEFINITION=`UnionTypeDefinition`,e.ENUM_TYPE_DEFINITION=`EnumTypeDefinition`,e.ENUM_VALUE_DEFINITION=`EnumValueDefinition`,e.INPUT_OBJECT_TYPE_DEFINITION=`InputObjectTypeDefinition`,e.DIRECTIVE_DEFINITION=`DirectiveDefinition`,e.SCHEMA_EXTENSION=`SchemaExtension`,e.DIRECTIVE_EXTENSION=`DirectiveExtension`,e.SCALAR_TYPE_EXTENSION=`ScalarTypeExtension`,e.OBJECT_TYPE_EXTENSION=`ObjectTypeExtension`,e.INTERFACE_TYPE_EXTENSION=`InterfaceTypeExtension`,e.UNION_TYPE_EXTENSION=`UnionTypeExtension`,e.ENUM_TYPE_EXTENSION=`EnumTypeExtension`,e.INPUT_OBJECT_TYPE_EXTENSION=`InputObjectTypeExtension`,e.TYPE_COORDINATE=`TypeCoordinate`,e.MEMBER_COORDINATE=`MemberCoordinate`,e.ARGUMENT_COORDINATE=`ArgumentCoordinate`,e.DIRECTIVE_COORDINATE=`DirectiveCoordinate`,e.DIRECTIVE_ARGUMENT_COORDINATE=`DirectiveArgumentCoordinate`})(N||={});function Vt(e){return e===9||e===32}function Ht(e){return e>=48&&e<=57}function Ut(e){return e>=97&&e<=122||e>=65&&e<=90}function Wt(e){return Ut(e)||e===95}function Gt(e){return Ut(e)||Ht(e)||e===95}function Kt(e){let t=2**53-1,n=null,r=-1;for(let i=0;i<e.length;++i){let a=e[i],o=qt(a);o!==a.length&&(n??=i,r=i,i!==0&&o<t&&(t=o))}return e.map((e,n)=>n===0?e:e.slice(t)).slice(n??0,r+1)}function qt(e){let t=0;for(;t<e.length&&Vt(e.charCodeAt(t));)++t;return t}function Jt(e,t){let n=e.replace(/"""/g,`\\"""`),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,a=r.length>1&&r.slice(1).every(e=>e.length===0||Vt(e.charCodeAt(0))),o=n.endsWith(`\\"""`),s=e.endsWith(`"`)&&!o,c=e.endsWith(`\\`),l=s||c,u=!(t!=null&&t.minimize)&&(!i||e.length>70||l||a||o),d=``,f=i&&Vt(e.charCodeAt(0));return(u&&!f||a)&&(d+=`
8`),d+=n,(u||l)&&(d+=`
9`),`"""`+d+`"""`}var P;(function(e){e.SOF=`<SOF>`,e.EOF=`<EOF>`,e.BANG=`!`,e.DOLLAR=`$`,e.AMP=`&`,e.PAREN_L=`(`,e.PAREN_R=`)`,e.DOT=`.`,e.SPREAD=`...`,e.COLON=`:`,e.EQUALS=`=`,e.AT=`@`,e.BRACKET_L=`[`,e.BRACKET_R=`]`,e.BRACE_L=`{`,e.PIPE=`|`,e.BRACE_R=`}`,e.NAME=`Name`,e.INT=`Int`,e.FLOAT=`Float`,e.STRING=`String`,e.BLOCK_STRING=`BlockString`,e.COMMENT=`Comment`})(P||={});var Yt=class{constructor(e){let t=new Ft(P.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return`Lexer`}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==P.EOF)do if(e.next)e=e.next;else{let t=nn(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===P.COMMENT);return e}};function Xt(e){return e===P.BANG||e===P.DOLLAR||e===P.AMP||e===P.PAREN_L||e===P.PAREN_R||e===P.DOT||e===P.SPREAD||e===P.COLON||e===P.EQUALS||e===P.AT||e===P.BRACKET_L||e===P.BRACKET_R||e===P.BRACE_L||e===P.PIPE||e===P.BRACE_R}function Zt(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Qt(e,t){return $t(e.charCodeAt(t))&&en(e.charCodeAt(t+1))}function $t(e){return e>=55296&&e<=56319}function en(e){return e>=56320&&e<=57343}function tn(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return P.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return e===`"`?`'"'`:`"${e}"`}return`U+`+n.toString(16).toUpperCase().padStart(4,`0`)}function F(e,t,n,r,i){let a=e.line;return new Ft(t,n,r,a,1+n-e.lineStart,i)}function nn(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return rn(e,i);case 33:return F(e,P.BANG,i,i+1);case 36:return F(e,P.DOLLAR,i,i+1);case 38:return F(e,P.AMP,i,i+1);case 40:return F(e,P.PAREN_L,i,i+1);case 41:return F(e,P.PAREN_R,i,i+1);
9case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return F(e,P.SPREAD,i,i+3);break;case 58:return F(e,P.COLON,i,i+1);case 61:return F(e,P.EQUALS,i,i+1);case 64:return F(e,P.AT,i,i+1);case 91:return F(e,P.BRACKET_L,i,i+1);case 93:return F(e,P.BRACKET_R,i,i+1);case 123:return F(e,P.BRACE_L,i,i+1);case 124:return F(e,P.PIPE,i,i+1);case 125:return F(e,P.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?pn(e,i):sn(e,i)}if(Ht(t)||t===45)return an(e,i,t);if(Wt(t))return mn(e,i);throw M(e.source,i,t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Zt(t)||Qt(n,i)?`Unexpected character: ${tn(e,i)}.`:`Invalid character: ${tn(e,i)}.`)}return F(e,P.EOF,r,r)}function rn(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(e===10||e===13)break;if(Zt(e))++i;else if(Qt(n,i))i+=2;else break}return F(e,P.COMMENT,t,i,n.slice(t+1,i))}function an(e,t,n){let r=e.source.body,i=t,a=n,o=!1;if(a===45&&(a=r.charCodeAt(++i)),a===48){if(a=r.charCodeAt(++i),Ht(a))throw M(e.source,i,`Invalid number, unexpected digit after 0: ${tn(e,i)}.`)}else i=on(e,i,a),a=r.charCodeAt(i);if(a===46&&(o=!0,a=r.charCodeAt(++i),i=on(e,i,a),a=r.charCodeAt(i)),(a===69||a===101)&&(o=!0,a=r.charCodeAt(++i),(a===43||a===45)&&(a=r.charCodeAt(++i)),i=on(e,i,a),a=r.charCodeAt(i)),a===46||Wt(a))throw M(e.source,i,`Invalid number, expected digit but got: ${tn(e,i)}.`);return F(e,o?P.FLOAT:P.INT,t,i,r.slice(t,i))}function on(e,t,n){if(!Ht(n))throw M(e.source,t,`Invalid number, expected digit but got: ${tn(e,t)}.`);let r=e.source.body,i=t+1;for(;Ht(r.charCodeAt(i));)++i;return i}function sn(e,t){let n=e.source.body,r=n.length,i=t+1,a=i,o=``;for(;i<r;){let r=n.charCodeAt(i);if(r===34)return o+=n.slice(a,i),F(e,P.STRING,t,i+1,o);if(r===92){o+=n.slice(a,i);let t=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?cn(e,i):ln(e,i):fn(e,i);o+=t.value,i+=t.size,a=i;continue}if(r===10||r===13)break;if(Zt(r))++i;else if(Qt(n,i))i+=2;else throw M(e.source,i,`Invalid character within String: ${tn(e,i)}.`)}throw M(e.source,i,`Unterminated string.`)}function cn(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(e===125){if(i<5||!Zt(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|dn(e),r<0)break}throw M(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function ln(e,t){let n=e.source.body,r=un(n,t+2);if(Zt(r))return{value:String.fromCodePoint(r),size:6};if($t(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let e=un(n,t+8);if(en(e))return{value:String.fromCodePoint(r,e),size:12}}throw M(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function un(e,t){return dn(e.charCodeAt(t))<<12|dn(e.charCodeAt(t+1))<<8|dn(e.charCodeAt(t+2))<<4|dn(e.charCodeAt(t+3))}function dn(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function fn(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:`"`,size:2};case 92:return{value:`\\`,size:2};case 47:return{value:`/`,size:2};case 98:return{value:`\b`,size:2};case 102:return{value:`\f`,size:2};case 110:return{value:`
10`,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:`	`,size:2}}throw M(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function pn(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s=``,c=[];for(;a<r;){let r=n.charCodeAt(a);if(r===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){s+=n.slice(o,a),c.push(s);let r=F(e,P.BLOCK_STRING,t,a+3,Kt(c).join(`
11`));return e.line+=c.length-1,e.lineStart=i,r}if(r===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){s+=n.slice(o,a),o=a+1,a+=4;continue}if(r===10||r===13){s+=n.slice(o,a),c.push(s),r===13&&n.charCodeAt(a+1)===10?a+=2:++a,s=``,o=a,i=a;continue}if(Zt(r))++a;else if(Qt(n,a))a+=2;else throw M(e.source,a,`Invalid character within String: ${tn(e,a)}.`)}throw M(e.source,a,`Unterminated string.`)}function mn(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r&&Gt(n.charCodeAt(i));)++i;return F(e,P.NAME,t,i,n.slice(t,i))}var hn=10,gn=2;function _n(e){return vn(e,[])}function vn(e,t){switch(typeof e){case`string`:return JSON.stringify(e);case`function`:return e.name?`[function ${e.name}]`:`[function]`;case`object`:return yn(e,t);default:return String(e)}}function yn(e,t){if(e===null)return`null`;if(t.includes(e))return`[Circular]`;let n=[...t,e];if(bn(e)){let t=e.toJSON();if(t!==e)return typeof t==`string`?t:vn(t,n)}else if(Array.isArray(e))return Sn(e,n);return xn(e,n)}function bn(e){return typeof e.toJSON==`function`}function xn(e,t){let n=Object.entries(e);return n.length===0?`{}`:t.length>gn?`[`+Cn(e)+`]`:`{ `+n.map(([e,n])=>e+`: `+vn(n,t)).join(`, `)+` }`}function Sn(e,t){if(e.length===0)return`[]`;if(t.length>gn)return`[Array]`;let n=Math.min(hn,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(vn(e[r],t));
11return r===1?i.push(`... 1 more item`):r>1&&i.push(`... ${r} more items`),`[`+i.join(`, `)+`]`}function Cn(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,``).replace(/]$/,``);if(t===`Object`&&typeof e.constructor==`function`){let t=e.constructor.name;if(typeof t==`string`&&t!==``)return t}return t}var wn=globalThis.process?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e==`object`&&e){let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:e.constructor?.name)){let t=_n(e);throw Error(`Cannot use ${n} "${t}" from another module or realm.
12
13Ensure that there is only one instance of "graphql" in the node_modules
14directory. If different versions of "graphql" are the dependencies of other
15relied on modules, use "resolutions" to ensure only one version is installed.
16
17https://yarnpkg.com/en/docs/selective-version-resolutions
18
19Duplicate "graphql" modules cannot be used at the same time since different
20versions may have different capabilities and behavior. The data from one
21version used in the function from another could produce confusing and
22spurious results.`)}}return!1},Tn=class{constructor(e,t=`GraphQL request`,n={line:1,column:1}){typeof e==`string`||Ct(!1,`Body must be a string. Received: ${_n(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Ct(!1,`line in locationOffset is 1-indexed and must be positive.`),this.locationOffset.column>0||Ct(!1,`column in locationOffset is 1-indexed and must be positive.`)}get[Symbol.toStringTag](){return`Source`}};function En(e){return wn(e,Tn)}function Dn(e,t){let n=new On(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}var On=class{constructor(e,t={}){let{lexer:n,...r}=t;if(n)this._lexer=n;else{let t=En(e)?e:new Tn(e);this._lexer=new Yt(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(P.NAME);return this.node(e,{kind:N.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:N.DOCUMENT,definitions:this.many(P.SOF,this.parseDefinition,P.EOF)})}parseDefinition(){if(this.peek(P.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===P.BRACE_L)throw M(this._lexer.source,this._lexer.token.start,`Unexpected description, descriptions are not supported on shorthand queries.`);if(t.kind===P.NAME){switch(t.value){case`schema`:return this.parseSchemaDefinition();case`scalar`:return this.parseScalarTypeDefinition();case`type`:return this.parseObjectTypeDefinition();case`interface`:return this.parseInterfaceTypeDefinition();case`union`:return this.parseUnionTypeDefinition();case`enum`:return this.parseEnumTypeDefinition();case`input`:return this.parseInputObjectTypeDefinition();case`directive`:return this.parseDirectiveDefinition()}switch(t.value){case`query`:case`mutation`:case`subscription`:return this.parseOperationDefinition();case`fragment`:return this.parseFragmentDefinition()}if(e)throw M(this._lexer.source,this._lexer.token.start,`Unexpected description, only GraphQL definitions support descriptions.`);if(t.value===`extend`)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(P.BRACE_L))return this.node(e,{kind:N.OPERATION_DEFINITION,operation:zt.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),n=this.parseOperationType(),r;return this.peek(P.NAME)&&(r=this.parseName()),this.node(e,{kind:N.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(P.NAME);switch(e.value){case`query`:return zt.QUERY;case`mutation`:return zt.MUTATION;case`subscription`:return zt.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(P.PAREN_L,this.parseVariableDefinition,P.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:N.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(P.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(P.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(P.DOLLAR),this.node(e,{kind:N.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:N.SELECTION_SET,selections:this.many(P.BRACE_L,this.parseSelection,P.BRACE_R)})}parseSelection(){return this.peek(P.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,r;return this.expectOptionalToken(P.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:N.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(P.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(P.PAREN_L,t,P.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(P.COLON),this.node(t,{kind:N.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(P.SPREAD);let t=this.expectOptionalKeyword(`on`);return!t&&this.peek(P.NAME)?this.node(e,{kind:N.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:N.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return this.expectKeyword(`fragment`),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:N.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:N.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===`on`)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case P.BRACKET_L:return this.parseList(e);case P.BRACE_L:return this.parseObject(e);case P.INT:return this.advanceLexer(),this.node(t,{kind:N.INT,value:t.value});case P.FLOAT:return this.advanceLexer(),this.node(t,{kind:N.FLOAT,value:t.value});case P.STRING:case P.BLOCK_STRING:return this.parseStringLiteral();case P.NAME:switch(this.advanceLexer(),t.value){case`true`:return this.node(t,{kind:N.BOOLEAN,value:!0});case`false`:return this.node(t,{kind:N.BOOLEAN,value:!1});case`null`:return this.node(t,{kind:N.NULL});default:return this.node(t,{kind:N.ENUM,value:t.value})}case P.DOLLAR:if(e){if(this.expectToken(P.DOLLAR),this._lexer.token.kind===P.NAME){let e=this._lexer.token.value;throw M(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:N.STRING,value:e.value,block:e.kind===P.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:N.LIST,values:this.any(P.BRACKET_L,()=>this.parseValueLiteral(e),P.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:N.OBJECT,fields:this.any(P.BRACE_L,()=>this.parseObjectField(e),P.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(P.COLON),this.node(t,{kind:N.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(P.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(P.AT),this.node(t,{kind:N.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(P.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(P.BRACKET_R),t=this.node(e,{kind:N.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(P.BANG)?this.node(e,{kind:N.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:N.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(P.STRING)||this.peek(P.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`schema`);let n=this.parseConstDirectives(),r=this.many(P.BRACE_L,this.parseOperationTypeDefinition,P.BRACE_R);return this.node(e,{kind:N.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(P.COLON);let n=this.parseNamedType();return this.node(e,{kind:N.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`scalar`);let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:N.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`type`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:N.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(`implements`)?this.delimitedMany(P.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(P.BRACE_L,this.parseFieldDefinition,P.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(P.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:N.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(P.PAREN_L,this.parseInputValueDef,P.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(P.COLON);let r=this.parseTypeReference(),i;this.expectOptionalToken(P.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:N.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`interface`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:N.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`union`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:N.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(P.EQUALS)?this.delimitedMany(P.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`enum`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:N.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(P.BRACE_L,this.parseEnumValueDefinition,P.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:N.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value===`true`||this._lexer.token.value===`fal
22se`||this._lexer.token.value===`null`)throw M(this._lexer.source,this._lexer.token.start,`${kn(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`input`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:N.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(P.BRACE_L,this.parseInputValueDef,P.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===P.NAME)switch(e.value){case`schema`:return this.parseSchemaExtension();case`scalar`:return this.parseScalarTypeExtension();case`type`:return this.parseObjectTypeExtension();case`interface`:return this.parseInterfaceTypeExtension();case`union`:return this.parseUnionTypeExtension();case`enum`:return this.parseEnumTypeExtension();case`input`:return this.parseInputObjectTypeExtension();case`directive`:if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`schema`);let t=this.parseConstDirectives(),n=this.optionalMany(P.BRACE_L,this.parseOperationTypeDefinition,P.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:N.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`scalar`);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:N.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`type`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:N.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`interface`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:N.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`union`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:N.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`enum`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:N.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`input`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:N.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinitionExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`directive`),this.expectToken(P.AT);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:N.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`directive`),this.expectToken(P.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],a=this.expectOptionalKeyword(`repeatable`);this.expectKeyword(`on`);let o=this.parseDirectiveLocations();return this.node(e,{kind:N.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,directives:i,repeatable:a,locations:o})}parseDirectiveLocations(){return this.delimitedMany(P.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(Bt,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e=this._lexer.token,t=this.expectOptionalToken(P.AT),n=this.parseName(),r;!t&&this.expectOptionalToken(P.DOT)&&(r=this.parseName());let i;return(t||r)&&this.expectOptionalToken(P.PAREN_L)&&(i=this.parseName(),this.expectToken(P.COLON),this.expectToken(P.PAREN_R)),t?i?this.node(e,{kind:N.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:N.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:N.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:N.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:N.TYPE_COORDINATE,name:n})}node(e,t){return this._options.noLocation!==!0&&(t.loc=new Pt(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw M(this._lexer.source,t.start,`Expected ${An(e)}, found ${kn(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===P.NAME&&t.value===e)this.advanceLexer();else throw M(this._lexer.source,t.start,`Expected "${e}", found ${kn(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===P.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=e??this._lexer.token;return M(this._lexer.source,t.start,`Unexpected ${kn(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==P.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw M(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function kn(e){let t=e.value;return An(e.kind)+(t==null?``:` "${t}"`)}function An(e){return Xt(e)?`"${e}"`:e}function jn(e){return`"${e.replace(Mn,Nn)}"`}var Mn=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Nn(e){return Pn[e.charCodeAt(0)]}var Pn=`\\u0000.\\u0001.\\u0002.\\u0003.\\u0004.\\u0005.\\u0006.\\u0007.\\b.\\t.\\n.\\u000B.\\f.\\r.\\u000E.\\u000F.\\u0010.\\u0011.\\u0012.\\u0013.\\u0014.\\u0015.\\u0016.\\u0017.\\u0018.\\u0019.\\u001A.\\u001B.\\u001C.\\u001D.\\u001E.\\u001F...\\"..........................................................\\\\...................................\\u007F.\\u0080.\\u0081.\\u0082.\\u0083.\\u0084.\\u0085.\\u0086.\\u0087.\\u0088.\\u0089.\\u008A.\\u008B.\\u008C.\\u008D.\\u008E.\\u008F.\\u0090.\\u0091.\\u0092.\\u0093.\\u0094.\\u0095.\\u0096.\\u0097.\\u0098.\\u0099.\\u009A.\\u009B.\\u009C.\\u009D.\\u009E.\\u009F`.split(`.`),Fn=Object.freeze({});function I(e,t,n=It){let r=new Map;for(let e of Object.values(N))r.set(e,In(t,e));let i,a=Array.isArray(e),o=[e],s=-1,c=[],l=e,u,d,f=[],p=[];do{s++;let e=s===o.length,m=e&&c.length!==0;if(e){if(u=p.length===0?void 0:f[f.length-1],l=d,d=p.pop(),m){if(a){l=l.slice();let e=0;for(let[t,n]of c){let r=t-e;n===null?(l.splice(r,1),e++):l[r]=n}}else{l={...l};for(let[e,t]of c)l[e]=t}}s=i.index,o=i.keys,c=i.edits,a=i.inArray,i=i.prev}else if(d){if(u=a?s:o[s],l=d[u],l==null)continue;f.push(u)}let h;
22if(!Array.isArray(l)){if(Rt(l)||Ct(!1,`Invalid AST Node: ${_n(l)}.`),h=(e?r.get(l.kind)?.leave:r.get(l.kind)?.enter)?.call(t,l,u,d,f,p),h===Fn)break;if(h===!1){if(!e){f.pop();continue}}else if(h!==void 0&&(c.push([u,h]),!e)){if(Rt(h))l=h;else{f.pop();continue}}}h===void 0&&m&&c.push([u,l]),e?f.pop():(i={inArray:a,index:s,keys:o,edits:c,prev:i},a=Array.isArray(l),o=a?l:n[l.kind]??[],s=-1,c=[],d&&p.push(d),d=l)}while(i!==void 0);return c.length===0?e:c[c.length-1][1]}function In(e,t){let n=e[t];return typeof n==`object`?n:typeof n==`function`?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function Ln(e){return I(e,zn)}var Rn=80,zn={Name:{leave:e=>e.value},Variable:{leave:e=>`$`+e.name},Document:{leave:e=>L(e.definitions,`
23
24`)},OperationDefinition:{leave(e){let t=Vn(e.variableDefinitions)?z(`(
25`,L(e.variableDefinitions,`
26`),`
27)`):z(`(`,L(e.variableDefinitions,`, `),`)`),n=z(``,e.description,`
28`)+L([e.operation,L([e.name,t]),L(e.directives,` `)],` `);return(n===`query`?``:n+` `)+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>z(``,i,`
29`)+e+`: `+t+z(` = `,n)+z(` `,L(r,` `))},SelectionSet:{leave:({selections:e})=>R(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=z(``,e,`: `)+t,o=a+z(`(`,L(n,`, `),`)`);return o.length>Rn&&(o=a+z(`(
30`,Bn(L(n,`
31`)),`
32)`)),L([o,L(r,` `),i],` `)}},Argument:{leave:({name:e,value:t})=>e+`: `+t},FragmentSpread:{leave:({name:e,directives:t})=>
32`...`+e+z(` `,L(t,` `))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>L([`...`,z(`on `,e),L(t,` `),n],` `)},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:a})=>z(``,a,`
33`)+`fragment ${e}${z(`(`,L(n,`, `),`)`)} on ${t} ${z(``,L(r,` `),` `)}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Jt(e):jn(e)},BooleanValue:{leave:({value:e})=>e?`true`:`false`},NullValue:{leave:()=>`null`},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>`[`+L(e,`, `)+`]`},ObjectValue:{leave:({fields:e})=>`{`+L(e,`, `)+`}`},ObjectField:{leave:({name:e,value:t})=>e+`: `+t},Directive:{leave:({name:e,arguments:t})=>`@`+e+z(`(`,L(t,`, `),`)`)},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>`[`+e+`]`},NonNullType:{leave:({type:e})=>e+`!`},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>z(``,e,`
34`)+L([`schema`,L(t,` `),R(n)],` `)},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+`: `+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>z(``,e,`
35`)+L([`scalar`,t,L(n,` `)],` `)},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>z(``,e,`
36`)+L([`type`,t,z(`implements `,L(n,` & `)),L(r,` `),R(i)],` `)},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>z(``,e,`
37`)+t+(Vn(n)?z(`(
38`,Bn(L(n,`
39`)),`
40)`):z(`(`,L(n,`, `),`)`))+`: `+r+z(` `,L(i,` `))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>z(``,e,`
41`)+L([t+`: `+n,z(`= `,r),L(i,` `)],` `)},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>z(``,e,`
42`)+L([`interface`,t,z(`implements `,L(n,` & `)),L(r,` `),R(i)],` `)},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>z(``,e,`
43`)+L([`union`,t,L(n,` `),z(`= `,L(r,` | `))],` `)},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>z(``,e,`
44`)+L([`enum`,t,L(n,` `),R(r)],` `)},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>z(``,e,`
45`)+L([t,L(n,` `)],` `)},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>z(``,e,`
46`)+L([`input`,t,L(n,` `),R(r)],` `)},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:i,locations:a})=>z(``,e,`
47`)+`directive @`+t+(Vn(n)?z(`(
48`,Bn(L(n,`
49`)),`
50)`):z(`(`,L(n,`, `),`)`))+z(` `,L(r,` `))+(i?` repeatable`:``)+` on `+L(a,` | `)},SchemaExtension:{leave:({directives:e,operationTypes:t})=>L([`extend schema`,L(e,` `),R(t)],` `)},ScalarTypeExtension:{leave:({name:e,directives:t})=>L([`extend scalar`,e,L(t,` `)],` `)},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>L([`extend type`,e,z(`implements `,L(t,` & `)),L(n,` `),R(r)],` `)},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>L([`extend interface`,e,z(`implements `,L(t,` & `)),L(n,` `),R(r)],` `)},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>L([`extend union`,e,L(t,` `),z(`= `,L(n,` | `))],` `)},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>L([`extend enum`,e,L(t,` `),R(n)],` `)},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>L([`extend input`,e,L(t,` `),R(n)],` `)},DirectiveExtension:{leave:({name:e,directives:t})=>L([`extend directive @`+e,L(t,` `)],` `)},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>L([e,z(`.`,t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>L([e,z(`.`,t),z(`(`,n,`:)`)])},DirectiveCoordinate:{leave:({name:e})=>L([`@`,e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>L([`@`,e,z(`(`,t,`:)`)])}};function L(e,t=``){return e?.filter(e=>e).join(t)??``}function R(e){return z(`{
51`,Bn(L(e,`
52`)),`
53}`)}function z(e,t,n=``){return t!=null&&t!==``?e+t+n:``}function Bn(e){return z(`  `,e.replace(/\n/g,`
54  `))}function Vn(e){return e?.some(e=>e.includes(`
55`))??!1}function Hn(e){return e.kind===N.FIELD||e.kind===N.FRAGMENT_SPREAD||e.kind===N.INLINE_FRAGMENT}function Un(e,t){var n=e.directives;return!n||!n.length||qn(n).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return r.value.kind===`Variable`?(i=t&&t[r.value.name.value],A(i!==void 0,105,n.name.value)):i=r.value.value,n.name.value===`skip`?!i:i})}function Wn(e,t,n){var r=new Set(e),i=r.size;return I(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return Fn}}),n?!r.size:r.size<i}function Gn(e){return e&&Wn([`client`,`export`],e,!0)}function Kn(e){var t=e.name.value;
55return t===`skip`||t===`include`}function qn(e){var t=[];return e&&e.length&&e.forEach(function(e){if(Kn(e)){var n=e.arguments,r=e.name.value;A(n&&n.length===1,106,r);var i=n[0];A(i.name&&i.name.value===`if`,107,r);var a=i.value;A(a&&(a.kind===`Variable`||a.kind===`BooleanValue`),108,r),t.push({directive:e,ifArgument:i})}}),t}function Jn(e){var t=e.directives?.find(function(e){return e.name.value===`unmask`});if(!t)return`mask`;var n=t.arguments?.find(function(e){return e.name.value===`mode`});return globalThis.__DEV__!==!1&&n&&(n.value.kind===N.VARIABLE?globalThis.__DEV__!==!1&&A.warn(109):n.value.kind===N.STRING?n.value.value!==`migrate`&&globalThis.__DEV__!==!1&&A.warn(111,n.value.value):globalThis.__DEV__!==!1&&A.warn(110)),n&&`value`in n.value&&n.value.value===`migrate`?`migrate`:`unmask`}var Yn=()=>Object.create(null),{forEach:Xn,slice:Zn}=Array.prototype,{hasOwnProperty:Qn}=Object.prototype,$n=class e{constructor(e=!0,t=Yn){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Xn.call(e,e=>t=t.getChildTrie(e)),Qn.call(t,`data`)?t.data:t.data=this.makeData(Zn.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){let r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let n=e[0],r=this.mapFor(n,!1),i=r&&r.get(n);i&&(t=i.removeArray(Zn.call(e,1)),!i.data&&!i.weak&&!(i.strong&&i.strong.size)&&r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(t){let n=this.mapFor(t,!0),r=n.get(t);return r||n.set(t,r=new e(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&er(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}};function er(e){switch(typeof e){case`object`:if(e===null)break;case`function`:return!0}return!1}var tr=k(function(){return navigator.product})==`ReactNative`,nr=typeof WeakMap==`function`&&!(tr&&!global.HermesInternal),rr=typeof WeakSet==`function`,ir=typeof Symbol==`function`&&typeof Symbol.for==`function`,ar=ir&&Symbol.asyncIterator;k(function(){return window.document.createElement}),k(function(){return navigator.userAgent.indexOf(`jsdom`)>=0});function B(e){return typeof e==`object`&&!!e}function or(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if(e.kind===`OperationDefinition`)throw j(112,e.operation,e.name?` named '${e.name.value}'`:``);e.kind===`FragmentDefinition`&&r.push(e)}),typeof n>`u`&&(A(r.length===1,113,r.length),n=r[0].name.value),D(D({},e),{definitions:O([{kind:`OperationDefinition`,operation:`query`,selectionSet:{kind:`SelectionSet`,selections:[{kind:`FragmentSpread`,name:{kind:`Name`,value:n}}]}}],e.definitions,!0)})}function sr(e){e===void 0&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function cr(e,t){switch(e.kind){case`InlineFragment`:return e;case`FragmentSpread`:var n=e.name.value;if(typeof t==`function`)return t(n);var r=t&&t[n];return A(r,114,n),r||null;default:return null}}function lr(e){var t=!0;return I(e,{FragmentSpread:function(e){if(t=!!e.directives&&e.directives.some(function(e){return e.name.value===`unmask`}),!t)return Fn}}),t}function ur(){}var dr=class{constructor(e=1/0,t=ur){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return t?(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0):!1}};function fr(){}var pr=fr,mr=typeof WeakRef<`u`?WeakRef:function(e){return{deref:()=>e}}
55,hr=typeof WeakMap<`u`?WeakMap:Map,gr=typeof FinalizationRegistry<`u`?FinalizationRegistry:function(){return{register:fr,unregister:fr}},_r=10024,vr=class{constructor(e=1/0,t=pr){this.max=e,this.dispose=t,this.map=new hr,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<_r;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let n=t.key;delete t.key,t.keyRef=new mr(n),this.registry.register(n,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new gr(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return t?(this.deleteNode(t),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}},yr=new WeakSet;function br(e){e.size<=(e.max||-1)||yr.has(e)||(yr.add(e),setTimeout(function(){e.clean(),yr.delete(e)},100))}var xr=function(e,t){var n=new vr(e,t);return n.set=function(e,t){var n=vr.prototype.set.call(this,e,t);return br(this),n},n},Sr=function(e,t){var n=new dr(e,t);return n.set=function(e,t){var n=dr.prototype.set.call(this,e,t);return br(this),n},n},Cr=D({},mt[Symbol.for(`apollo.cacheSize`)]),wr={};function Tr(e,t){wr[e]=t}var Er=globalThis.__DEV__===!1?void 0:Ar,Dr=globalThis.__DEV__===!1?void 0:Mr,Or=globalThis.__DEV__===!1?void 0:jr;function kr(){return Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map(function(e){var t=e[0],n=e[1];return[t,Cr[t]||n]}))}function Ar(){var e;if(globalThis.__DEV__===!1)throw Error(`only supported in development mode`);return{limits:kr(),sizes:D({print:wr.print?.call(wr),parser:wr.parser?.call(wr),canonicalStringify:wr.canonicalStringify?.call(wr),links:Rr(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:Ir(this.queryManager.documentTransform)}},(e=this.cache).getMemoryInternals?.call(e))}}function jr(){return{cache:{fragmentQueryDocuments:Pr(this.getFragmentDoc)}}}function Mr(){var e=this.config.fragments;return D(D({},jr.apply(this)),{addTypenameDocumentTransform:Ir(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Pr(this.storeReader.executeSelectionSet),executeSubSelectedArray:Pr(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Pr(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Pr(e?.findFragmentSpreads),lookup:Pr(e?.lookup),transform:Pr(e?.transform)}})}function Nr(e){return!!e&&`dirtyKey`in e}function Pr(e){return Nr(e)?e.size:void 0}function Fr(e){return e!=null}function Ir(e){return Lr(e).map(function(e){return{cache:e}})}function Lr(e){return e?O(O([Pr(e?.performWork)],Lr(e?.left),!0),Lr(e?.right),!0).filter(Fr):[]}function Rr(e){return e?O(O([(e?.getMemoryInternals)?.call(e)],Rr(e?.left),!0),Rr(e?.right),!0).filter(Fr):[]}var zr=Object.assign(function(e){return JSON.stringify(e,Vr)},{reset:function(){Br=new Sr(Cr.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&Tr(`canonicalStringify`,function(){return Br.size});var Br;zr.reset();function Vr(e,t){if(t&&typeof t==`object`){var n=Object.getPrototypeOf(t);if(n===Object.prototype||n===null){var r=Object.keys(t);if(r.every(Hr))return t;var i=JSON.stringify(r),a=Br.get(i);if(!a){r.sort();var o=JSON.stringify(r);a=Br.get(o)||r,Br.set(i,a),Br.set(o,a)}var s=Object.create(n);return a.forEach(function(e){s[e]=t[e]}),s}}return t}function Hr(e,t,n){return t===0||n[t-1]<=e}function Ur(e){return{__ref:String(e)}}function V(e){return!!(e&&typeof e==`object`&&typeof e.__ref==`string`)}function Wr(e){return B(e)&&e.kind===`Document`&&Array.isArray(e.definitions)}function Gr(e){return e.kind===`StringValue`}function Kr(e){return e.kind===`BooleanValue`}function qr(e){return e.kind===`IntValue`}function Jr(e){return e.kind===`FloatValue`}function Yr(e){return e.kind===`Variable`}function Xr(e){return e.kind===`ObjectValue`}function Zr(e){return e.kind===`ListValue`}function Qr(e){return e.kind===`EnumValue`}function $r(e){return e.kind===`NullValue`}function ei(e,t,n,r){if(qr(n)||Jr(n))e[t.value]=Number(n.value);else if(Kr(n)||Gr(n))e[t.value]=n.value;else if(Xr(n)){var i={};n.fields.map(function(e){return ei(i,e.name,e.value,r)}),e[t.value]=i}else if(Yr(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(Zr(n))e[t.value]=n.values.map(function(e){var n={};return ei(n,t,e,r),n[t.value]});else if(Qr(n))e[t.value]=n.value;else if($r(n))e[t.value]=null;else throw j(123,t.value,n.kind)}function ti(e,t){var n=null;e.directives&&(n={}
55,e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,a=r.value;return ei(n[e.name.value],i,a,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return ei(r,n,i,t)})),ii(e.name.value,r,n)}var ni=[`connection`,`include`,`skip`,`client`,`rest`,`export`,`nonreactive`],ri=zr,ii=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),`${n.connection.key}(${ri(i)})`}return n.connection.key}var a=e;if(t){var o=ri(t);a+=`(${o})`}return n&&Object.keys(n).forEach(function(e){ni.indexOf(e)===-1&&(n[e]&&Object.keys(n[e]).length?a+=`@${e}(${ri(n[e])})`:a+=`@${e}`)}),a},{setStringify:function(e){var t=ri;return ri=e,t}});function ai(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,i=e.value;return ei(n,r,i,t)}),n}return null}function oi(e){return e.alias?e.alias.value:e.name.value}function si(e,t,n){for(var r,i=0,a=t.selections;i<a.length;i++){var o=a[i];if(ci(o)){if(o.name.value===`__typename`)return e[oi(o)]}else r?r.push(o):r=[o]}if(typeof e.__typename==`string`)return e.__typename;if(r)for(var s=0,c=r;s<c.length;s++){var o=c[s],l=si(e,cr(o,n).selectionSet,n);if(typeof l==`string`)return l}}function ci(e){return e.kind===`Field`}function li(e){return e.kind===`InlineFragment`}function ui(e){A(e&&e.kind===`Document`,115);var t=e.definitions.filter(function(e){return e.kind!==`FragmentDefinition`}).map(function(e){if(e.kind!==`OperationDefinition`)throw j(116,e.kind);return e});return A(t.length<=1,117,t.length),e}function di(e){return ui(e),e.definitions.filter(function(e){return e.kind===`OperationDefinition`})[0]}function fi(e){return e.definitions.filter(function(e){return e.kind===`OperationDefinition`&&!!e.name}).map(function(e){return e.name.value})[0]||null}function pi(e){return e.definitions.filter(function(e){return e.kind===`FragmentDefinition`})}function mi(e){var t=di(e);return A(t&&t.operation===`query`,118),t}function hi(e){A(e.kind===`Document`,119),A(e.definitions.length<=1,120);var t=e.definitions[0];return A(t.kind===`FragmentDefinition`,121),t}function gi(e){ui(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if(i.kind===`OperationDefinition`){var a=i.operation;if(a===`query`||a===`mutation`||a===`subscription`)return i}i.kind===`FragmentDefinition`&&!t&&(t=i)}if(t)return t;throw j(122)}function _i(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&ei(t,e.variable.name,e.defaultValue)}),t}var H=null,vi={},yi=1,bi=()=>class{constructor(){this.id=[`slot`,yi++,Date.now(),Math.random().toString(36).slice(2)].join(`:`)}hasValue(){for(let e=H;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===vi)break;return e!==H&&(H.slots[this.id]=t),!0}return H&&(H.slots[this.id]=vi),!1}getValue(){if(this.hasValue())return H.slots[this.id]}withValue(e,t,n,r){let i={__proto__:null,[this.id]:e},a=H;H={parent:a,slots:i};try{return t.apply(r,n)}finally{H=a}}static bind(e){let t=H;return function(){let n=H;try{return H=t,e.apply(this,arguments)}finally{H=n}}}static noContext(e,t,n){if(H){let r=H;try{return H=null,e.apply(n,t)}finally{H=r}}return e.apply(n,t)}};function xi(e){try{return e()}catch{}}var Si=`@wry/context:Slot`,Ci=xi(()=>globalThis)||xi(()=>global)||Object.create(null),wi=Ci[Si]||Array[Si]||function(e){try{Object.defineProperty(Ci,Si,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(bi()),Ti=new wi,{hasOwnProperty:Ei}=Object.prototype,Di=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function Oi(e){let{unsubscribe:t}=e;typeof t==`function`&&(e.unsubscribe=void 0,t())}var ki=[],Ai=100;function ji(e,t){if(!e)throw Error(t||`assertion failure`)}function Mi(e,t){let n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-1]}function Ni(e){switch(e.length){case 0:throw Error(`unknown value`);case 1:return e[0];case 2:throw e[1]}}function Pi(e){return e.slice(0)}var Fi=class e{constructor(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}peek(){if(this.value.length===1&&!zi(this))return Ii(this),this.value[0]}recompute(e){return ji(!this.recomputing,`already recomputing`),Ii(this),zi(this)?Li(this,e):Ni(this.value)}setDirty(){this.dirty||(this.dirty=!0,Vi(this),Oi(this))}dispose(){this.setDirty(),qi(this),Ui(this,(e,t)=>{e.setDirty(),Ji(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||=ki.pop()||new Set,this.deps.add(e)}
55forgetDeps(){this.deps&&=(Di(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),ki.push(this.deps),null)}};Fi.count=0;function Ii(e){let t=Ti.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),zi(e)?Wi(t,e):Gi(t,e),t}function Li(e,t){return qi(e),Ti.withValue(e,Ri,[e,t]),Yi(e,t)&&Bi(e),Ni(e.value)}function Ri(e,t){e.recomputing=!0;let{normalizeResult:n}=e,r;n&&e.value.length===1&&(r=Pi(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!Mi(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch{}}catch(t){e.value[1]=t}e.recomputing=!1}function zi(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function Bi(e){e.dirty=!1,!zi(e)&&Hi(e)}function Vi(e){Ui(e,Wi)}function Hi(e){Ui(e,Gi)}function Ui(e,t){let n=e.parents.size;if(n){let r=Di(e.parents);for(let i=0;i<n;++i)t(r[i],e)}}function Wi(e,t){ji(e.childValues.has(t)),ji(zi(t));let n=!zi(e);if(!e.dirtyChildren)e.dirtyChildren=ki.pop()||new Set;else if(e.dirtyChildren.has(t))return;e.dirtyChildren.add(t),n&&Vi(e)}function Gi(e,t){ji(e.childValues.has(t)),ji(!zi(t));let n=e.childValues.get(t);n.length===0?e.childValues.set(t,Pi(t.value)):Mi(n,t.value)||e.setDirty(),Ki(e,t),!zi(e)&&Hi(e)}function Ki(e,t){let n=e.dirtyChildren;n&&(n.delete(t),n.size===0&&(ki.length<Ai&&ki.push(n),e.dirtyChildren=null))}function qi(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{Ji(e,n)}),e.forgetDeps(),ji(e.dirtyChildren===null)}function Ji(e,t){t.parents.delete(e),e.childValues.delete(t),Ki(e,t)}function Yi(e,t){if(typeof e.subscribe==`function`)try{Oi(e),e.unsubscribe=e.subscribe.apply(null,t)}catch{return e.setDirty(),!1}return!0}var Xi={setDirty:!0,dispose:!0,forget:!0};function Zi(e){let t=new Map,n=e&&e.subscribe;function r(e){let r=Ti.getValue();if(r){let i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),typeof n==`function`&&(Oi(i),i.unsubscribe=n(e))}}return r.dirty=function(e,n){let r=t.get(e);if(r){let i=n&&Ei.call(Xi,n)?n:`setDirty`;Di(r).forEach(e=>e[i]()),t.delete(e),Oi(r)}},r}var Qi;function $i(...e){return(Qi||=new $n(typeof WeakMap==`function`)).lookupArray(e)}var ea=new Set;function ta(e,{max:t=2**16,keyArgs:n,makeCacheKey:r=$i,normalizeResult:i,subscribe:a,cache:o=dr}=Object.create(null)){let s=typeof o==`function`?new o(t,e=>e.dispose()):o,c=function(){let t=r.apply(null,n?n.apply(null,arguments):arguments);if(t===void 0)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new Fi(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>s.delete(t));let c=o.recompute(Array.prototype.slice.call(arguments));return s.set(t,o),ea.add(s),Ti.hasValue()||(ea.forEach(e=>e.clean()),ea.clear()),c};Object.defineProperty(c,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(c.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:i,subscribe:a,cache:s});function l(e){let t=e&&s.get(e);t&&t.setDirty()}c.dirtyKey=l,c.dirty=function(){l(r.apply(null,arguments))};function u(e){let t=e&&s.get(e);if(t)return t.peek()}c.peekKey=u,c.peek=function(){return u(r.apply(null,arguments))};function d(e){return e?s.delete(e):!1}return c.forgetKey=d,c.forget=function(){return d(r.apply(null,arguments))},c.makeCacheKey=r,c.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(c)}function na(e){return e}var ra=function(){function e(e,t){t===void 0&&(t=Object.create(null)),this.resultCache=rr?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=t.cache!==!1,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(na,{cache:!1})},e.split=function(t,n,r){return r===void 0&&(r=e.identity()),Object.assign(new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new $n(nr);this.performWork=ta(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return A(Array.isArray(r),104),n.lookupArray(r)},max:Cr[`documentTransform.cache`],cache:vr})}},e.prototype.performWork=function(e){return ui(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}(),ia,aa=Object.assign(function(e){var t=ia.get(e);return t||(t=Ln(e),ia.set(e,t)),t},{reset:function(){ia=new xr(Cr.print||2e3)}});aa.reset(),globalThis.__DEV__!==!1&&Tr(`print`,function(){return ia?ia.size:0});var U=Array.isArray;function W(e){return Array.isArray(e)&&e.length>0}var oa={kind:N.FIELD,name:{kind:N.NAME,value:`__typename`}};function sa(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===N.FRAGMENT_SPREAD&&sa(t[e.name.value],t)})}function ca(e){return sa(di(e)||hi(e),sr(pi(e)))?null:e}function la(e){var t=new Map,n=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}
55),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach(function(t,n){n(e)&&(r=t)}),r}}function ua(e){var t=new Map;return function(n){n===void 0&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function da(e,t){ui(t);for(var n=ua(``),r=ua(``),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!U(i)){if(i.kind===N.OPERATION_DEFINITION)return n(i.name&&i.name.value);if(i.kind===N.FRAGMENT_DEFINITION)return r(i.name.value)}return globalThis.__DEV__!==!1&&A.error(124),null},a=0,o=t.definitions.length-1;o>=0;--o)t.definitions[o].kind===N.OPERATION_DEFINITION&&++a;var s=la(e),c=function(e){return W(e)&&e.map(s).some(function(e){return e&&e.remove})},l=new Map,u=!1,d={enter:function(e){if(c(e.directives))return u=!0,null}},f=I(t,{Field:d,InlineFragment:d,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,a){var o=i(a);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,a){if(c(e.directives))return u=!0,null;var o=i(a);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){l.set(JSON.stringify(r),e)},leave:function(e,t,n,i){if(e===l.get(JSON.stringify(i)))return e;if(a>0&&e.selectionSet.selections.every(function(e){return e.kind===N.FIELD&&e.name.value===`__typename`}))return r(e.name.value).removed=!0,u=!0,null}},Directive:{leave:function(e){if(s(e))return u=!0,null}}});if(!u)return t;var p=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){p(r(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},m=new Set;f.definitions.forEach(function(e){e.kind===N.OPERATION_DEFINITION?p(n(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){m.add(e)}):e.kind===N.FRAGMENT_DEFINITION&&a===0&&!r(e.name.value).removed&&m.add(e.name.value)}),m.forEach(function(e){p(r(e)).fragmentSpreads.forEach(function(e){m.add(e)})});var h=function(e){return!!(!m.has(e)||r(e).removed)},g={enter:function(e){if(h(e.name.value))return null}};return ca(I(f,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=p(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return D(D({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var fa=Object.assign(function(e){return I(e,{SelectionSet:{enter:function(e,t,n){if(!(n&&n.kind===N.OPERATION_DEFINITION)){var r=e.selections;if(r&&!r.some(function(e){return ci(e)&&(e.name.value===`__typename`||e.name.value.lastIndexOf(`__`,0)===0)})){var i=n;if(!(ci(i)&&i.directives&&i.directives.some(function(e){return e.name.value===`export`})))return D(D({},e),{selections:O(O([],r,!0),[oa],!1)})}}}}})},{added:function(e){return e===oa}});function pa(e){return gi(e).operation===`query`?e:I(e,{OperationDefinition:{enter:function(e){return D(D({},e),{operation:`query`})}}})}function ma(e){return ui(e),da([{test:function(e){return e.name.value===`client`},remove:!0}],e)}function ha(e){return ui(e),I(e,{FragmentSpread:function(e){var t;if(!((t=e.directives)!=null&&t.some(function(e){return e.name.value===`unmask`})))return D(D({},e),{directives:O(O([],e.directives||[],!0),[{kind:N.DIRECTIVE,name:{kind:N.NAME,value:`nonreactive`}}],!1)})}})}var ga=Object.prototype.hasOwnProperty;function _a(){return va([...arguments])}function va(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new ba,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var ya=function(e,t,n){return this.merge(e[n],t[n])},ba=function(){function e(e){e===void 0&&(e=ya),this.reconciler=e,this.isObject=B,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return B(t)&&B(e)?(Object.keys(t).forEach(function(i){if(ga.call(e,i)){var a=e[i];if(t[i]!==a){var o=n.reconciler.apply(n,O([e,t,i],r,!1));o!==a&&(e=n.shallowCopyForMerge(e),e[i]=o)}}else e=n.shallowCopyForMerge(e),e[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return B(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):D({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function xa(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Sa(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
56In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sa(e,t){if(e){if(typeof e==`string`)return Ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ca(e,t)}}function Ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ta(e,t,n){return t&&wa(e.prototype,t),n&&wa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ea=function(){return typeof Symbol==`function`},Da=function(e){return Ea()&&!!Symbol[e]},Oa=function(e){return Da(e)?Symbol[e]:`@@`+e};Ea()&&!Da(`observable`)&&(Symbol.observable=Symbol(`observable`));var ka=Oa(`iterator`),Aa=Oa(`observable`),ja=Oa(`species`);function Ma(e,t){var n=e[t];if(n!=null){if(typeof n!=`function`)throw TypeError(n+` is not a function`);return n}}function Na(e){var t=e.constructor;return t!==void 0&&(t=t[ja],t===null&&(t=void 0)),t===void 0?G:t}function Pa(e){return e instanceof G}function Fa(e){Fa.log?Fa.log(e):setTimeout(function(){throw e})}function Ia(e){Promise.resolve().then(function(){try{e()}catch(e){Fa(e)}})}function La(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,t))try{if(typeof t==`function`)t();else{var n=Ma(t,`unsubscribe`);n&&n.call(t)}}catch(e){Fa(e)}}function Ra(e){e._observer=void 0,e._queue=void 0,e._state=`closed`}function za(e){var t=e._queue;if(t){e._queue=void 0,e._state=`ready`;for(var n=0;n<t.length&&(Ba(e,t[n].type,t[n].value),e._state!==`closed`);++n);}}
56function Ba(e,t,n){e._state=`running`;var r=e._observer;try{var i=Ma(r,t);switch(t){case`next`:i&&i.call(r,n);break;case`error`:if(Ra(e),i)i.call(r,n);else throw n;break;case`complete`:Ra(e),i&&i.call(r)}}catch(e){Fa(e)}e._state===`closed`?La(e):e._state===`running`&&(e._state=`ready`)}function Va(e,t,n){if(e._state!==`closed`){if(e._state===`buffering`){e._queue.push({type:t,value:n});return}if(e._state!==`ready`){e._state=`buffering`,e._queue=[{type:t,value:n}],Ia(function(){return za(e)});return}Ba(e,t,n)}}var Ha=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state=`initializing`;var n=new Ua(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}this._state===`initializing`&&(this._state=`ready`)}var t=e.prototype;return t.unsubscribe=function(){this._state!==`closed`&&(Ra(this),La(this))},Ta(e,[{key:`closed`,get:function(){return this._state===`closed`}}]),e}(),Ua=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Va(this._subscription,`next`,e)},t.error=function(e){Va(this._subscription,`error`,e)},t.complete=function(){Va(this._subscription,`complete`)},Ta(e,[{key:`closed`,get:function(){return this._subscription._state===`closed`}}]),e}(),G=function(){function e(t){if(!(this instanceof e))throw TypeError(`Observable cannot be called as a function`);if(typeof t!=`function`)throw TypeError(`Observable initializer must be a function`);this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return(typeof e!=`object`||!e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new Ha(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if(typeof e!=`function`){r(TypeError(e+` is not a function`));return}function i(){a.unsubscribe(),n()}var a=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),a.unsubscribe()}},error:r,complete:n})})},t.map=function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(Na(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(Na(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=Na(this),r=arguments.length>1,i=!1,a=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError(`Cannot reduce an empty sequence`));n.next(a),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Na(this);return new i(function(t){var r,a=0;function o(e){r=e.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):o(i.from(n[a++]))}})}return o(e),function(){r&&=(r.unsubscribe(),void 0)}})},t.flatMap=function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=Na(this);return new n(function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&i.length===0&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})},t[Aa]=function(){return this},e.from=function(t){var n=typeof this==`function`?this:e;if(t==null)throw TypeError(t+` is not an object`);var r=Ma(t,Aa);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+` is not an object`);return Pa(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(Da(`iterator`)&&(r=Ma(t,ka),r))return new n(function(e){Ia(function(){if(!e.closed){for(var n=xa(r.call(t)),i;!(i=n()).done;){var a=i.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){Ia(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+` is not observable`)},e.of=function(){var t=[...arguments];return new(typeof this==`function`?this:e)(function(e){Ia(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})})},Ta(e,null,[{key:ja,get:function(){return this}}]),e}();Ea()&&Object.defineProperty(G,Symbol(`extensions`),{value:{symbol:Aa,hostReportError:Fa},configurable:!0});function Wa(e){var t,n=e.Symbol;if(typeof n==`function`){if(n.observable)t=n.observable;else{t=typeof n.for==`function`?n.for(`https://github.com/benlesh/symbol-observable`):n(`https://github.com/benlesh/symbol-observable`);try{n.observable=t}catch{}}}else t=`@@observable`;return t}Wa(typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:typeof module<`u`?module:Function(`return this`)());var Ga=G.prototype,Ka=`@@observable`;Ga[Ka]||(Ga[Ka]=function(){return this});function qa(e){return e.catch(function(){}),e}var Ja=Object.prototype.toString;function Ya(e){return Xa(e)}function Xa(e,t){switch(Ja.call(e)){case`[object Array]`:if(t||=new Map,t.has(e))return t.get(e);var n=e.slice(0);
56return t.set(e,n),n.forEach(function(e,r){n[r]=Xa(e,t)}),n;case`[object Object]`:if(t||=new Map,t.has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=Xa(e[n],t)}),r;default:return e}}function Za(e){var t=new Set([e]);return t.forEach(function(e){B(e)&&Qa(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){B(e[n])&&t.add(e[n])})}),e}function Qa(e){if(globalThis.__DEV__!==!1&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}function $a(e){return globalThis.__DEV__!==!1&&Za(e),e}function eo(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function to(e,t,n){return new G(function(r){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(n){if(e){var a=function(){return r.closed?0:e(n)};i=i.then(a,a).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var o={next:a(t,`next`),error:a(n,`error`),complete:function(){i.then(function(){return r.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}function no(e){function t(t){Object.defineProperty(e,t,{value:G})}return ir&&Symbol.species&&t(Symbol.species),t(`@@species`),e}function ro(e){return e&&typeof e.then==`function`}var io=function(e){tt(t,e);function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){n.sub!==null&&(n.latest=[`next`,e],n.notify(`next`,e),eo(n.observers,`next`,e))},error:function(e){var t=n.sub;t!==null&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=[`error`,e],n.reject(e),n.notify(`error`,e),eo(n.observers,`error`,e))},complete:function(){var e=n,t=e.sub,r=e.sources,i=r===void 0?[]:r;if(t!==null){var a=i.shift();a?ro(a)?a.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=a.subscribe(n.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest&&n.latest[0]===`next`?n.resolve(n.latest[1]):n.resolve(),n.notify(`complete`),eo(n.observers,`complete`))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),typeof t==`function`&&(t=[new G(t)]),ro(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return t.prototype.start=function(e){this.sub===void 0&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),this.sub===null&&t===`next`&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(G);no(io);function ao(e){return`incremental`in e}function oo(e){return`hasNext`in e&&`data`in e}function so(e){return ao(e)||oo(e)}function co(e){return B(e)&&`payload`in e}function lo(e,t){var n=e,r=new ba;return ao(t)&&W(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}n=r.merge(n,t)}),n}function uo(e){return W(fo(e))}function fo(e){var t=W(e.errors)?e.errors.slice(0):[];return ao(e)&&W(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}function po(){var e=[...arguments],t=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(n){var r=e[n];r!==void 0&&(t[n]=r)})}),t}function mo(e,t){return po(e,t,t.variables&&{variables:po(D(D({},e&&e.variables),t.variables))})}var ho=Symbol.for(`apollo.deprecations`),go=Symbol.for(`apollo.deprecations.slot`),_o=mt,vo=_o[go]??(_o[go]=new wi);function yo(e){return _o[ho]||(vo.getValue()||[]).includes(e)}function K(e){var t=[...arguments].slice(1);return vo.withValue.apply(vo,O([Array.isArray(e)?e:[e]],t,!1))}function q(e,t,n,r){r===void 0&&(r=`Please remove this option.`),bo(t,function(){t in e&&globalThis.__DEV__!==!1&&A.
56warn(103,n,t,r)})}function bo(e,t){yo(e)||t()}function xo(e){return new G(function(t){t.error(e)})}var So=function(e,t,n){var r=Error(n);throw r.name=`ServerError`,r.response=e,r.statusCode=e.status,r.result=t,r};function Co(e){for(var t=[`query`,`operationName`,`variables`,`extensions`,`context`],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw j(58,i)}return e}function wo(e,t){var n=D({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n=typeof e==`function`?D(D({},n),e(n)):D(D({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return D({},n)}}),t}function To(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||=typeof t.query==`string`?``:fi(t.query)||void 0,t}function Eo(e,t){var n=D({},e),r=new Set(Object.keys(e));return I(t,{Variable:function(e,t,n){n&&n.kind!==`VariableDefinition`&&r.delete(e.name.value)}}),r.forEach(function(e){delete n[e]}),n}function Do(e,t){return t?t(e):G.of()}function Oo(e){return typeof e==`function`?new Ao(e):e}function ko(e){return e.request.length<=1}var Ao=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return G.of()})},e.from=function(t){return t.length===0?e.empty():t.map(Oo).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i=Oo(n),a=Oo(r||new e(Do)),o;return o=ko(i)&&ko(a)?new e(function(e){return t(e)?i.request(e)||G.of():a.request(e)||G.of()}):new e(function(e,n){return t(e)?i.request(e,n)||G.of():a.request(e,n)||G.of()}),Object.assign(o,{left:i,right:a})},e.execute=function(e,t){return e.request(wo(t.context,To(Co(t))))||G.of()},e.concat=function(t,n){var r=Oo(t);if(ko(r))return globalThis.__DEV__!==!1&&A.warn(47,r),r;var i=Oo(n),a;return a=ko(i)?new e(function(e){return r.request(e,function(e){return i.request(e)||G.of()})||G.of()}):new e(function(e,t){return r.request(e,function(e){return i.request(e,t)||G.of()})||G.of()}),Object.assign(a,{left:r,right:i})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(Do)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw j(48)},e.prototype.onError=function(e,t){if(globalThis.__DEV__!==!1&&bo(`onError`,function(){globalThis.__DEV__!==!1&&A.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&A.warn(50),this.onError=e,this},e}(),jo=Ao.execute;function Mo(e){var t,n=e[Symbol.asyncIterator]();return t={next:function(){return n.next()}},t[Symbol.asyncIterator]=function(){return this},t}function No(e){var t=null,n=null,r=!1,i=[],a=[];function o(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,a.slice().forEach(function(t){t[1](e)}),!t||t()}function c(){r=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener(`data`,o),e.removeListener(`error`,s),e.removeListener(`end`,c),e.removeListener(`finish`,c),e.removeListener(`close`,c)},e.on(`data`,o),e.on(`error`,s),e.on(`end`,c),e.on(`finish`,c),e.on(`close`,c);function l(){return new Promise(function(e,t){if(n)return t(n);if(i.length)return e({value:i.shift(),done:!1});if(r)return e({value:void 0,done:!0});a.push([e,t])})}var u={next:function(){return l()}};return ar&&(u[Symbol.asyncIterator]=function(){return this}),u}function Po(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(t,n){e.then(function(e){t({value:e,done:!1})}).catch(n)}))}};return ar&&(n[Symbol.asyncIterator]=function(){return this}),n}function Fo(e){var t={next:function(){return e.read()}};return ar&&(t[Symbol.asyncIterator]=function(){return this}),t}function Io(e){return!!e.body}function Lo(e){return!!e.getReader}function Ro(e){return!!(ar&&e[Symbol.asyncIterator])}function zo(e){return!!e.stream}function Bo(e){return!!e.arrayBuffer}function Vo(e){return!!e.pipe}function Ho(e){var t=e;if(Io(e)&&(t=e.body),Ro(t))return Mo(t);if(Lo(t))return Fo(t.getReader());if(zo(t))return Fo(t.stream().getReader());if(Bo(t))return Po(t.arrayBuffer());if(Vo(t))return No(t);throw Error(`Unknown body type for responseIterator. Please pass a streamable response.`)}var Uo=Symbol();function Wo(e){return e.extensions?Array.isArray(e.extensions[Uo]):!1}function Go(e){return e.hasOwnProperty(`graphQLErrors`)}var Ko=function(e){var t=O(O(O([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return B(e)&&e.message||`Error message not found.`}).join(`
57`)},qo=function(e){tt(t,e);function t(n){var r=n.graphQLErrors,i=n.protocolErrors,a=n.clientErrors,o=n.networkError,s=n.errorMessage,c=n.extraInfo,l=e.call(this,s)||this;return l.name=`ApolloError`,l.graphQLErrors=r||[],l.protocolErrors=i||[],l.clientErrors=a||[],l.networkError=o||null,l.message=s||Ko(l),l.extraInfo=c,l.cause=O(O(O([o],r||[],!0),i||[],!0),a||[],!0).find(function(e){return!!e})||null,l.__proto__=t.prototype,l}return t}(Error),Jo=Object.prototype.hasOwnProperty;function Yo(e,t){return rt(this,void 0,void 0,function(){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,ee,C;return it(this,function(te){switch(te.label){case 0:if(TextDecoder===void 0)throw Error(`TextDecoder must be defined in the environment: please import a polyfill.`);n=new TextDecoder(`utf-8`),r=e.headers?.get(`content-type`),i=`boundary=`,a=r!=null&&r.includes(i)?r?.substring(r?.indexOf(i)+i.length).replace(/['"]/g,``).replace(/\;(.*)/gm,``).trim():`-`,o=`\r
58--${a}`,s=``,c=Ho(e),l=!0,te.label=1;case 1:return l?[4,c.next()]:[3,3];case 2:for(u=te.sent(),d=u.value,f=u.done,p=typeof d==`string`?d:n.decode(d),m=s.length-o.length+1,l=!f,s+=p,h=s.indexOf(o,m);h>-1;){if(g=void 0,ee=[s.slice(0,h),s.slice(h+o.length)],g=ee[0],s=ee[1],_=g.indexOf(`\r
59\r
60`),v=Xo(g.slice(0,_)),y=v[`content-type`],y&&y.toLowerCase().indexOf(`application/json`)===-1)throw Error(`Unsupported patch content type: application/json is required.`);if(b=g.slice(_),b){if(x=Zo(e,b),Object.keys(x).length>1||`data`in x||`incremental`in x||`errors`in x||`payload`in x){if(co(x)){if(S={},`payload`in x){if(Object.keys(x).length===1&&x.payload===null)return[2];S=D({},x.payload)}`errors`in x&&(S=D(D({},S),{extensions:D(D({},`extensions`in S?S.extensions:null),(C={},C[Uo]=x.errors,C))})),t(S)}else t(x)}else if(Object.keys(x).length===1&&`hasNext`in x&&!x.hasNext)return[2]}h=s.indexOf(o)}return[3,1];case 3:return[2]}})})}function Xo(e){var t={};return e.split(`
61`).forEach(function(e){var n=e.indexOf(`:`);
61if(n>-1){var r=e.slice(0,n).trim().toLowerCase();t[r]=e.slice(n+1).trim()}}),t}function Zo(e,t){e.status>=300&&So(e,function(){try{return JSON.parse(t)}catch{return t}}(),`Response not successful: Received status code ${e.status}`);try{return JSON.parse(t)}catch(r){var n=r;throw n.name=`ServerParseError`,n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function Qo(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function $o(e){return function(t){return t.text().then(function(e){return Zo(t,e)}).then(function(n){return!Array.isArray(n)&&!Jo.call(n,`data`)&&!Jo.call(n,`errors`)&&So(t,n,`Server response was missing for query '${Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName}'.`),n})}}var es=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=j(54,t,e.message);throw r.parseError=e,r}return n},ts={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:`*/*`,"content-type":`application/json`},options:{method:`POST`}},ns=function(e,t){return t(e)};function rs(e,t){var n=[...arguments].slice(2),r={},i={};n.forEach(function(e){r=D(D(D({},r),e.options),{headers:D(D({},r.headers),e.headers)}),e.credentials&&(r.credentials=e.credentials),i=D(D({},i),e.http)}),r.headers&&(r.headers=is(r.headers,i.preserveHeaderCase));var a=e.operationName,o=e.extensions,s=e.variables,c=e.query,l={operationName:a,variables:s};return i.includeExtensions&&(l.extensions=o),i.includeQuery&&(l.query=t(c,aa)),{options:r,body:l}}function is(e,t){if(!t){var n={};
61return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}var as=function(e){if(!e&&typeof fetch>`u`)throw j(51)},os=function(e,t){return e.getContext().uri||(typeof t==`function`?t(e):t||`/graphql`)};function ss(e,t){var n=[],r=function(e,t){n.push(`${e}=${encodeURIComponent(t)}`)};if(`query`in t&&r(`query`,t.query),t.operationName&&r(`operationName`,t.operationName),t.variables){var i=void 0;try{i=es(t.variables,`Variables map`)}catch(e){return{parseError:e}}r(`variables`,i)}if(t.extensions){var a=void 0;try{a=es(t.extensions,`Extensions map`)}catch(e){return{parseError:e}}r(`extensions`,a)}var o=``,s=e,c=e.indexOf(`#`);c!==-1&&(o=e.substr(c),s=e.substr(0,c));var l=s.indexOf(`?`)===-1?`?`:`&`;return{newURI:s+l+n.join(`&`)+o}}var cs=k(function(){return fetch}),ls=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?`/graphql`:t,r=e.fetch,i=e.print,a=i===void 0?ns:i,o=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=l!==void 0&&l,d=nt(e,[`uri`,`fetch`,`print`,`includeExtensions`,`preserveHeaderCase`,`useGETForQueries`,`includeUnusedVariables`]);globalThis.__DEV__!==!1&&as(r||cs);var f={http:{includeExtensions:o,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new Ao(function(e){var t=os(e,n),i=e.getContext(),o={};if(i.clientAwareness){var s=i.clientAwareness,l=s.name,d=s.version;l&&(o[`apollographql-client-name`]=l),d&&(o[`apollographql-client-version`]=d)}var p=D(D({},o),i.headers),m={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:p};if(Wn([`client`],e.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&A.warn(52);var h=ma(e.query);if(!h)return xo(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=h}var g=rs(e,a,ts,f,m),_=g.options,v=g.body;v.variables&&!u&&(v.variables=Eo(v.variables,e.query));var y;!_.signal&&typeof AbortController<`u`&&(y=new AbortController,_.signal=y.signal);var b=function(e){return e.kind===`OperationDefinition`&&e.operation===`mutation`},x=function(e){return e.kind===`OperationDefinition`&&e.operation===`subscription`}(gi(e.query)),S=Wn([`defer`],e.query);if(c&&!e.query.definitions.some(b)&&(_.method=`GET`),S||x){_.headers=_.headers||{};var ee=`multipart/mixed;`;x&&S&&globalThis.__DEV__!==!1&&A.warn(53),x?ee+=`boundary=graphql;subscriptionSpec=1.0,application/json`:S&&(ee+=`deferSpec=20220824,application/json`),_.headers.accept=ee}if(_.method===`GET`){var C=ss(t,v),te=C.newURI,ne=C.parseError;if(ne)return xo(ne);t=te}else try{_.body=es(v,`Payload`)}catch(e){return xo(e)}return new G(function(n){var i=r||k(function(){return fetch})||cs,a=n.next.bind(n);return i(t,_).then(function(t){e.setContext({response:t});var n=t.headers?.get(`content-type`);return n!==null&&/^multipart\/mixed/i.test(n)?Yo(t,a):$o(e)(t).then(a)}).then(function(){y=void 0,n.complete()}).catch(function(e){y=void 0,Qo(e,n)}),function(){y&&y.abort()}})})},us=function(e){tt(t,e);function t(t){t===void 0&&(t={});var n=e.call(this,ls(t).request)||this;return n.options=t,n}return t}(Ao),{toString:ds,hasOwnProperty:fs}=Object.prototype,ps=Function.prototype.toString,ms=new Map;function J(e,t){try{return hs(e,t)}finally{ms.clear()}}function hs(e,t){if(e===t)return!0;let n=ds.call(e);if(n!==ds.call(t))return!1;switch(n){case`[object Array]`:if(e.length!==t.length)return!1;case`[object Object]`:{if(bs(e,t))return!0;let n=gs(e),r=gs(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!fs.call(t,n[e]))return!1;for(let r=0;r<i;++r){let i=n[r];if(!hs(e[i],t[i]))return!1}return!0}case`[object Error]`:return e.name===t.name&&e.message===t.message;case`[object Number]`:if(e!==e)return t!==t;case`[object Boolean]`:case`[object Date]`:return+e==+t;case`[object RegExp]`:case`[object String]`:return e==`${t}`;case`[object Map]`:case`[object Set]`:{if(e.size!==t.size)return!1;if(bs(e,t))return!0;let r=e.entries(),i=n===`[object Map]`;for(;;){let e=r.next();if(e.done)break;let[n,a]=e.value;if(!t.has(n)||i&&!hs(a,t.get(n)))return!1}return!0}case`[object Uint16Array]`:case`[object Uint8Array]`:case`[object Uint32Array]`:case`[object Int32Array]`:case`[object Int8Array]`:case`[object Int16Array]`:case`[object ArrayBuffer]`:e=new Uint8Array(e),t=new Uint8Array(t);case`[object DataView]`:{let n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}case`[object AsyncFunction]`:case`[object GeneratorFunction]`:case`[object AsyncGeneratorFunction]`:case`[object Function]`:{let n=ps.call(e);return n===ps.call(t)&&!ys(n,vs)}}return!1}function gs(e){return Object.keys(e).filter(_s,e)}function _s(e){return this[e]!==void 0}var vs=`{ [native code] }`;function ys(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function bs(e,t){let n=ms.get(e);if(n){if(n.has(t))return!0}else ms.set(e,n=new Set);return n.add(t),!1}function xs(e,t,n,r){var i=t.data,a=nt(t,[`data`]),o=n.data;return J(a,nt(n,[`data`]))&&Ss(gi(e).selectionSet,i,o,{fragmentMap:sr(pi(e)),variables:r})}function Ss(e,t,n,r){if(t===n)return!0;var i=new Set;
61return e.selections.every(function(e){if(i.has(e)||(i.add(e),!Un(e,r.variables))||Cs(e))return!0;if(ci(e)){var a=oi(e),o=t&&t[a],s=n&&n[a],c=e.selectionSet;if(!c)return J(o,s);var l=Array.isArray(o),u=Array.isArray(s);if(l!==u)return!1;if(l&&u){var d=o.length;if(s.length!==d)return!1;for(var f=0;f<d;++f)if(!Ss(c,o[f],s[f],r))return!1;return!0}return Ss(c,o,s,r)}var p=cr(e,r.fragmentMap);if(p)return Cs(p)?!0:Ss(p.selectionSet,t,n,r)})}function Cs(e){return!!e.directives&&e.directives.some(ws)}function ws(e){return e.name.value===`nonreactive`}var Ts=nr?WeakMap:Map,Es=rr?WeakSet:Set,Ds=new wi,Os=!1;function ks(){Os||(Os=!0,globalThis.__DEV__!==!1&&A.warn(64))}function As(e,t,n){return Ds.withValue(!0,function(){var r=Ms(e,t,n,!1);return Object.isFrozen(e)&&$a(r),r})}function js(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function Ms(e,t,n,r,i){var a,o=n.knownChanged,s=js(e,n.mutableTargets);if(Array.isArray(e)){for(var c=0,l=Array.from(e.entries());c<l.length;c++){var u=l[c],d=u[0],f=u[1];if(f===null){s[d]=null;continue}var p=Ms(f,t,n,r,globalThis.__DEV__===!1?void 0:`${i||``}[${d}]`);o.has(p)&&o.add(s),s[d]=p}return o.has(s)?s:e}for(var m=0,h=t.selections;m<h.length;m++){var g=h[m],_=void 0;if(r&&o.add(s),g.kind===N.FIELD){var v=oi(g),y=g.selectionSet;if(_=s[v]||e[v],_===void 0)continue;if(y&&_!==null){var p=Ms(e[v],y,n,r,globalThis.__DEV__===!1?void 0:`${i||``}.${v}`);o.has(p)&&(_=p)}globalThis.__DEV__===!1&&(s[v]=_),globalThis.__DEV__!==!1&&(r&&v!==`__typename`&&!((a=Object.getOwnPropertyDescriptor(s,v))!=null&&a.value)?Object.defineProperty(s,v,Ns(v,_,i||``,n.operationName,n.operationType)):(delete s[v],s[v]=_))}if(g.kind===N.INLINE_FRAGMENT&&(!g.typeCondition||n.cache.fragmentMatches(g,e.__typename))&&(_=Ms(e,g.selectionSet,n,r,i)),g.kind===N.FRAGMENT_SPREAD){var b=g.name.value,x=n.fragmentMap[b]||(n.fragmentMap[b]=n.cache.lookupFragment(b));A(x,59,b);var S=Jn(g);S!==`mask`&&(_=Ms(e,x.selectionSet,n,S===`migrate`,i))}o.has(_)&&o.add(s)}return`__typename`in e&&!(`__typename`in s)&&(s.__typename=e.__typename),Object.keys(s).length!==Object.keys(e).length&&o.add(s),o.has(s)?s:e}function Ns(e,t,n,r,i){var a=function(){return Ds.getValue()||(globalThis.__DEV__!==!1&&A.warn(60,r?`${i} '${r}'`:`anonymous ${i}`,`${n}.${e}`.replace(/^\./,``)),a=function(){return t}),t};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}function Ps(e,t,n,r){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&ks(),e;var i=t.definitions.filter(function(e){return e.kind===N.FRAGMENT_DEFINITION});typeof r>`u`&&(A(i.length===1,61,i.length),r=i[0].name.value);var a=i.find(function(e){return e.name.value===r});return A(!!a,62,r),e==null||J(e,{})?e:As(e,a.selectionSet,{operationType:`fragment`,operationName:a.name.value,fragmentMap:sr(pi(t)),cache:n,mutableTargets:new Ts,knownChanged:new Es})}function Fs(e,t,n){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&ks(),e;var r=di(t);return A(r,63),e==null?e:As(e,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:sr(pi(t)),cache:n,mutableTargets:new Ts,knownChanged:new Es})}var Is=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=ta(or,{max:Cr[`cache.fragmentQueryDocuments`]||1e3,cache:vr})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t=this,n=typeof e.optimistic==`string`?e.optimistic:e.optimistic===!1?null:void 0,r;return this.performTransaction(function(){return r=e.update(t)},n),r},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var n=this;return t===void 0&&(t=!!e.optimistic),globalThis.__DEV__!==!1&&q(e,`canonizeResults`,`cache.readQuery`),K(`canonizeResults`,function(){return n.read(D(D({},e),{rootId:e.id||`ROOT_QUERY`,optimistic:t}))})},e.prototype.watchFragment=function(e){var t=this,n=e.fragment,r=e.fragmentName,i=e.from,a=e.optimistic,o=a===void 0||a,s=nt(e,[`fragment`,`fragmentName`,`from`,`optimistic`]),c=this.getFragmentDoc(n,r),l=typeof i>`u`||typeof i==`string`?i:this.identify(i),u=!!e[Symbol.for(`apollo.dataMasking`)];if(globalThis.__DEV__!==!1){var d=r||hi(n).name.value;
61l||globalThis.__DEV__!==!1&&A.warn(1,d)}var f=D(D({},s),{returnPartialData:!0,id:l,query:c,optimistic:o}),p;return new G(function(i){return t.watch(D(D({},f),{immediate:!0,callback:function(a){var o=u?Ps(a.result,n,t,r):a.result;if(!(p&&xs(c,{data:p.result},{data:o},e.variables))){var s={data:o,complete:!!a.complete};a.missing&&(s.missing=va(a.missing.map(function(e){return e.missing}))),p=D(D({},a),{result:o}),i.next(s)}}}))})},e.prototype.readFragment=function(e,t){var n=this;return t===void 0&&(t=!!e.optimistic),globalThis.__DEV__!==!1&&q(e,`canonizeResults`,`cache.readFragment`),K(`canonizeResults`,function(){return n.read(D(D({},e),{query:n.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=nt(e,[`id`,`data`]);return this.write(Object.assign(r,{dataId:t||`ROOT_QUERY`,result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=nt(e,[`id`,`data`,`fragment`,`fragmentName`]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return globalThis.__DEV__!==!1&&q(e,`canonizeResults`,`cache.updateQuery`),this.batch({update:function(n){var r=K(`canonizeResults`,function(){return n.readQuery(e)}),i=t(r);return i==null?r:(n.writeQuery(D(D({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return globalThis.__DEV__!==!1&&q(e,`canonizeResults`,`cache.updateFragment`),this.batch({update:function(n){var r=K(`canonizeResults`,function(){return n.readFragment(e)}),i=t(r);return i==null?r:(n.writeFragment(D(D({},e),{data:i})),i)}})},e}();globalThis.__DEV__!==!1&&(Is.prototype.getMemoryInternals=Or);var Ls=function(e){tt(t,e);function t(n,r,i,a){var o,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=(o={},o[s.path[c]]=s.missing,o)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),Y=Object.prototype.hasOwnProperty;function Rs(e){return e==null}function zs(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n==`string`&&(t&&(t.keyObject=Rs(r)?Rs(i)?void 0:{_id:i}:{id:r}),Rs(r)&&!Rs(i)&&(r=i),!Rs(r)))return`${n}:${typeof r==`number`||typeof r==`string`?r:JSON.stringify(r)}`}var Bs={dataIdFromObject:zs,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Vs(e){return po(Bs,e)}function Hs(e){var t=e.canonizeResults;return t===void 0?Bs.canonizeResults:t}function Us(e,t){return V(t)?e.get(t.__ref,`__typename`):t&&t.__typename}var Ws=/^[_a-z][_0-9a-z]*/i;function Gs(e){var t=e.match(Ws);return t?t[0]:e}function Ks(e,t,n){return B(t)?U(t)?t.every(function(t){return Ks(e,t,n)}):e.selections.every(function(e){if(ci(e)&&Un(e,n)){var r=oi(e);return Y.call(t,r)&&(!e.selectionSet||Ks(e.selectionSet,t[r],n))}return!0}):!1}function qs(e){return B(e)&&!V(e)&&!U(e)}function Js(){return new ba}function Ys(e,t){var n=sr(pi(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var Xs=Object.create(null),Zs=function(){return Xs},Qs=Object.create(null),$s=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return $a(V(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return V(e)?n.has(e.__ref):typeof e==`object`},this.toReference=function(e,t){if(typeof e==`string`)return Ur(e);if(V(e))return e;var r=n.policies.identify(e)[0];if(r){var i=Ur(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return D({},this.data)},e.prototype.has=function(e){return this.lookup(e,!0)!==void 0},e.prototype.get=function(e,t){if(this.group.depend(e,t),Y.call(this.data,e)){var n=this.data[e];if(n&&Y.call(n,t))return n[t]}if(t===`__typename`&&Y.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof rc)return this.parent.get(e,t)},e.prototype.lookup=function(e,t){if(t&&this.group.depend(e,`__exists`),Y.call(this.data,e))return this.data[e];if(this instanceof rc)return this.parent.lookup(e,t);if(this.policies.rootTypenamesById[e])return Object.create(null)},e.prototype.merge=function(e,t){var n=this,r;V(e)&&(e=e.__ref),V(t)&&(t=t.__ref);var i=typeof e==`string`?this.lookup(r=e):e,a=typeof t==`string`?this.lookup(r=t):t;if(a){A(typeof r==`string`,2);var o=new ba(ac).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);
61i||(s.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=Gs(e);t!==e&&!n.policies.hasKeyArgs(o.__typename,t)&&(s[t]=1),o[e]===void 0&&!(n instanceof rc)&&delete o[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,o=!0,s={DELETE:Xs,INVALIDATE:Qs,isReference:V,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField(typeof t==`string`?{fieldName:t,from:r||Ur(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(c){var l=Gs(c),u=r[c];if(u!==void 0){var d=typeof t==`function`?t:t[c]||t[l];if(d){var f=d===Zs?Xs:d($a(u),D(D({},s),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));if(f===Qs)n.group.dirty(e,c);else if(f===Xs&&(f=void 0),f!==u&&(i[c]=f,a=!0,u=f,globalThis.__DEV__!==!1)){var p=function(e){if(n.lookup(e.__ref)===void 0)return globalThis.__DEV__!==!1&&A.warn(3,e),!0};if(V(f))p(f);else if(Array.isArray(f))for(var m=!1,h=void 0,g=0,_=f;g<_.length;g++){var v=_[g];if(V(v)){if(m=!0,p(v))break}else typeof v==`object`&&v&&n.policies.identify(v)[0]&&(h=v);if(m&&h!==void 0){globalThis.__DEV__!==!1&&A.warn(4,h);break}}}}u!==void 0&&(o=!1)}}),a)return this.merge(e,i),o&&(this instanceof rc?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,`__exists`)),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,`__typename`),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?(r={},r[o]=Zs,r):Zs)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(Y.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof rc&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||`__exists`)),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){Y.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&Y.call(e,n)||t.delete(n)}),e){var n=e.__META,r=nt(e,[`__META`]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof rc?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){Y.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof rc;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!Y.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){V(e)&&(t[e.__ref]=!0),B(e)&&Object.keys(e).forEach(function(t){var n=e[t];B(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),ec=function(){function e(e,t){t===void 0&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Zi():null,this.keyMaker=new $n(nr)}
61,e.prototype.depend=function(e,t){if(this.d){this.d(tc(e,t));var n=Gs(t);n!==t&&this.d(tc(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(tc(e,t),t===`__exists`?`forget`:`setDirty`)},e}();function tc(e,t){return t+`#`+e}function nc(e,t){oc(e)&&e.group.depend(t,`__exists`)}(function(e){e.Root=function(e){tt(t,e);function t(t){var n=t.policies,r=t.resultCaching,i=r===void 0||r,a=t.seed,o=e.call(this,n,new ec(i))||this;return o.stump=new ic(o),o.storageTrie=new $n(nr),a&&o.replace(a),o}return t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e)})($s||={});var rc=function(e){tt(t,e);function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){J(r[n],i[n])||t.group.dirty(e,n)}
61):(t.group.dirty(e,`__exists`),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return D(D({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return Y.call(this.data,t)?D(D({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}($s),ic=function(e){tt(t,e);function t(t){return e.call(this,`EntityStore.Stump`,t,function(){},new ec(t.group.caching,t.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(rc);function ac(e,t,n){var r=e[n],i=t[n];return J(r,i)?r:i}function oc(e){return!!(e instanceof $s&&e.group.caching)}function sc(e){return B(e)?U(e)?e.slice(0):D({__proto__:Object.getPrototypeOf(e)},e):e}var cc=function(){function e(){this.known=new(rr?WeakSet:Set),this.pool=new $n(nr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return B(e)&&this.known.has(e)},e.prototype.pass=function(e){if(B(e)){var t=sc(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(B(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return i.array||(this.known.add(i.array=r),globalThis.__DEV__!==!1&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))return e;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var c=o.length;s.sorted.forEach(function(n){o.push(t.admit(e[n]))});var i=this.pool.lookupArray(o);if(!i.object){var l=i.object=Object.create(a);this.known.add(l),s.sorted.forEach(function(e,t){l[e]=o[c+t]}),globalThis.__DEV__!==!1&&Object.freeze(l)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function lc(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var uc=function(){function e(e){var t=this;this.knownResults=new(nr?WeakMap:Map),this.config=po(e,{addTypename:e.addTypename!==!1,canonizeResults:Hs(e)}),this.canon=e.canon||new cc,this.executeSelectionSet=ta(function(e){var n,r=e.context.canonizeResults,i=lc(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?D(D({},a),{result:t.canon.admit(a.result)}):a:(nc(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||Cr[`inMemoryCache.executeSelectionSet`]||5e4,keyArgs:lc,makeCacheKey:function(e,t,n,r){if(oc(n.store))return n.store.makeCacheKey(e,V(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=ta(function(e){return nc(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||Cr[`inMemoryCache.executeSubSelectedArray`]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(oc(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new cc},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=r===void 0?`ROOT_QUERY`:r,a=e.variables,o=e.returnPartialData,s=o===void 0||o,c=e.canonizeResults,l=c===void 0?this.config.canonizeResults:c,u=this.config.cache.policies;a=D(D({},_i(mi(n))),a);var d=Ur(i),f=this.executeSelectionSet({selectionSet:gi(n).selectionSet,objectOrReference:d,enclosingRef:d,context:D({store:t,query:n,policies:u,variables:a,varString:zr(a),canonizeResults:l},Ys(n,this.config.fragments))}),p;if(f.missing&&(p=[new Ls(dc(f.missing),f.missing,n,a)],!s))throw p[0];return{result:f.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,n,r){if(oc(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,a=e.context;if(V(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:`Dangling reference to missing ${r.__ref} object`};var o=a.variables,s=a.policies,c=a.store.getFieldValue(r,`__typename`),l=[],u,d=new ba;this.config.addTypename&&typeof c==`string`&&!s.rootIdsByTypename[c]&&l.push({__typename:c}
61);function f(e,t){var n;return e.missing&&(u=d.merge(u,(n={},n[t]=e.missing,n))),e.result}var p=new Set(n.selections);p.forEach(function(e){var n,m;if(Un(e,o)){if(ci(e)){var h=s.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),g=oi(e);h===void 0?fa.added(e)||(u=d.merge(u,(n={},n[g]=`Can't find field '${e.name.value}' on ${V(r)?r.__ref+` object`:`object `+JSON.stringify(r,null,2)}`,n))):U(h)?h.length>0&&(h=f(t.executeSubSelectedArray({field:e,array:h,enclosingRef:i,context:a}),g)):e.selectionSet?h!=null&&(h=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:V(h)?h:i,context:a}),g)):a.canonizeResults&&(h=t.canon.pass(h)),h!==void 0&&l.push((m={},m[g]=h,m))}else{var _=cr(e,a.lookupFragment);if(!_&&e.kind===N.FRAGMENT_SPREAD)throw j(10,e.name.value);_&&s.fragmentMatches(_,c)&&_.selectionSet.selections.forEach(p.add,p)}}});var m={result:va(l),missing:u},h=a.canonizeResults?this.canon.admit(m):$a(m);return h.result&&this.knownResults.set(h.result,n),h},e.prototype.execSubSelectedArrayImpl=function(e){var t=this,n=e.field,r=e.array,i=e.enclosingRef,a=e.context,o,s=new ba;function c(e,t){var n;return e.missing&&(o=s.merge(o,(n={},n[t]=e.missing,n))),e.result}return n.selectionSet&&(r=r.filter(a.store.canRead)),r=r.map(function(e,r){return e===null?null:U(e)?c(t.executeSubSelectedArray({field:n,array:e,enclosingRef:i,context:a}),r):n.selectionSet?c(t.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:V(e)?e:i,context:a}),r):(globalThis.__DEV__!==!1&&fc(a.store,n,e),e)}),{result:a.canonizeResults?this.canon.admit(r):r,missing:o}},e}();function dc(e){try{JSON.stringify(e,function(e,t){if(typeof t==`string`)throw t;return t})}catch(e){return e}}function fc(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){B(n)&&(A(!V(n),11,Us(e,n),t.name.value),Object.values(n).forEach(r.add,r))})}}var pc=new wi,mc=new WeakMap;function hc(e){var t=mc.get(e);return t||mc.set(e,t={vars:new Set,dep:Zi()}),t}function gc(e){hc(e).vars.forEach(function(t){return t.forgetCache(e)})}function _c(e){hc(e).vars.forEach(function(t){return t.attachCache(e)})}function vc(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){hc(e).dep.dirty(r),yc(e)});var o=Array.from(n);n.clear(),o.forEach(function(t){return t(e)})}}else{var s=pc.getValue();s&&(i(s),hc(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),hc(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function yc(e){e.broadcastWatches&&e.broadcastWatches()}var bc=Object.create(null);function xc(e){var t=JSON.stringify(e);return bc[t]||(bc[t]=Object.create(null))}function Sc(e){var t=xc(e);return t.keyFieldsFn||=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=wc(e,function(e){var i=Dc(n.storeObject,e,r);return i===void 0&&t!==n.storeObject&&Y.call(t,e[0])&&(i=Dc(t,e,Ec)),A(i!==void 0,5,e.join(`.`),t),i});return`${n.typename}:${JSON.stringify(i)}`}}function Cc(e){var t=xc(e);return t.keyArgsFn||=function(t,n){var r=n.field,i=n.variables,a=n.fieldName,o=wc(e,function(e){var n=e[0],a=n.charAt(0);if(a===`@`){if(r&&W(r.directives)){var o=n.slice(1),s=r.directives.find(function(e){return e.name.value===o}),c=s&&ai(s,i);return c&&Dc(c,e.slice(1))}return}if(a===`$`){var l=n.slice(1);if(i&&Y.call(i,l)){var u=e.slice(0);return u[0]=l,Dc(i,u)}return}if(t)return Dc(t,e)}),s=JSON.stringify(o);return(t||s!==`{}`)&&(a+=`:`+s),a}}function wc(e,t){var n=new ba;return Tc(e).reduce(function(e,r){var i,a=t(r);if(a!==void 0){for(var o=r.length-1;o>=0;--o)a=(i={},i[r[o]]=a,i);e=n.merge(e,a)}return e},Object.create(null))}function Tc(e){var t=xc(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(t,i){U(t)?(Tc(t).forEach(function(e){return n.push(r.concat(e))}),r.length=0):(r.push(t),U(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Ec(e,t){return e[t]}function Dc(e,t,n){return n||=Ec,Oc(t.reduce(function e(t,r){return U(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function Oc(e){return B(e)?U(e)?e.map(Oc):wc(Object.keys(e).sort(),function(t){return Dc(e,t)}):e}function kc(e){return e.args===void 0?e.field?ai(e.field,e.variables):null:e.args}var Ac=function(){},jc=function(e,t){return t.fieldName},Mc=function(e,t,n){var r=n.mergeObjects;return r(e,t)},Nc=function(e,t){return t},Pc=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=D({dataIdFromObject:zs},e),this.cache=this.config.cache,this.setRootTypename(`Query`),this.setRootTypename(`Mutation`),this.setRootTypename(`Subscription`),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n=this,r=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return[`ROOT_QUERY`];var i=t&&t.storeObject||e,a=D(D({},t),{typename:r,storeObject:i,readField:t&&t.readField||function(){var e=Ic(arguments,i);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),o,s=r&&this.getTypePolicy(r),c=s&&s.keyFn||this.config.dataIdFromObject;return Ds.withValue(!0,function(){for(;c;){var t=c(D(D({},e),i),a);if(U(t))c=Sc(t);else{o=t;break}}}),o=o?String(o):void 0,a.keyObject?[o,a.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,a=r.mutationType,o=r.subscriptionType,s=nt(r,[`queryType`,`mutationType`,`subscriptionType`]);i&&t.setRootTypename(`Query`,n),a&&t.setRootTypename(`Mutation`,n),o&&t.setRootTypename(`Subscription`,n),Y.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]})},e.prototype.updateTypePolicy=function(e,t,n){var r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge=typeof t==`function`?t:t===!0?Mc:t===!1?Nc:e.merge}o(r,t.merge),r.keyFn=i===!1?Ac:U(i)?Sc(i):typeof i==`function`?i:r.keyFn,a&&Object.keys(a).forEac
61h(function(t){var r=n[t];(!r||r?.typename!==e)&&(r=n[t]={typename:e});var i=a[t];if(typeof i==`function`)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=s===!1?jc:U(s)?Cc(s):typeof s==`function`?s:r.keyFn,typeof c==`function`&&(r.read=c),o(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||jc)})},e.prototype.setRootTypename=function(e,t){t===void 0&&(t=e);var n=`ROOT_`+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(A(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(Ws);(!r||r[0]!==e)&&t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!Y.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,i){if(n.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return r.add(e)})}})),r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields,a=nt(r,[`fields`]);Object.assign(n,a),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!!(n&&this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var f=s[d];if(f.has(a))return o.has(a)||(u&&globalThis.__DEV__!==!1&&A.warn(7,t,a),o.add(a)),!0;f.forEach(c),l&&d===s.length-1&&Ks(e.selectionSet,n,r)&&(l=!1,u=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t=e.typename,n=e.fieldName,r=this.getFieldPolicy(t,n),i,a=r&&r.keyFn;if(a&&t)for(var o={typename:t,fieldName:n,field:e.field||null,variables:e.variables},s=kc(e);a;){var c=a(s,o);if(U(c))a=Cc(c);else{i=c||n;break}}return i===void 0&&(i=e.field?ti(e.field,e.variables):ii(n,kc(e))),i===!1?n:n===Gs(i)?i:n+`:`+i},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(e.typename===void 0){var r=t.store.getFieldValue(n,`__typename`);r&&(e.typename=r)}var i=this.getStoreFieldName(e),a=Gs(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a),c=s&&s.read;if(c){var l=Fc(this,n,e,t,t.store.getStorage(V(n)?n.__ref:n,i));return pc.withValue(this.cache,c,[o,l])}return o}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t),i=r&&r.merge;return!i&&n&&(r=this.getTypePolicy(n),i=r&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===Mc?Lc(r.store)(e,t):s===Nc?t:(r.overwrite&&(e=void 0),s(e,t,Fc(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function Fc(e,t,n,r,i){var a=e.getStoreFieldName(n),o=Gs(a),s=n.variables||r.variables,c=r.store,l=c.toReference,u=c.canRead;return{args:kc(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:V,toReference:l,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(Ic(arguments,t,s),r)},mergeObjects:Lc(r.store)}}function Ic(e,t,n){var r=e[0],i=e[1],a=e.length,o;return typeof r==`string`?o={fieldName:r,from:a>1?i:t}:(o=D({},r),Y.call(o,`from`)||(o.from=t)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&A.
61warn(8,_t(Array.from(e))),o.variables===void 0&&(o.variables=n),o}function Lc(e){return function(t,n){if(U(t)||U(n))throw j(9);if(B(t)&&B(n)){var r=e.getFieldValue(t,`__typename`),i=e.getFieldValue(n,`__typename`);if(r&&i&&r!==i)return n;if(V(t)&&qs(n))return e.merge(t.__ref,n),t;if(qs(t)&&V(n))return e.merge(t,n.__ref),n;if(qs(t)&&qs(n))return D(D({},t),n)}return n}}function Rc(e,t,n){var r=`${t}${n}`,i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:D(D({},e),{clientOnly:t,deferred:n})),i}var zc=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,c=di(r),l=Js();o=D(D({},_i(c)),o);var u=D(D({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:o,varString:zr(o)},Ys(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!V(d))throw j(12,i);return u.incomingById.forEach(function(t,r){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=Ur(r);if(a&&a.map.size){var c=n.applyMerges(a,s,i,u);if(V(c))return;i=c}if(globalThis.__DEV__!==!1&&!u.overwrite){var l=Object.create(null);o.forEach(function(e){e.selectionSet&&(l[e.name.value]=!0)});var d=function(e){return l[Gs(e)]===!0},f=function(e){var t=a&&a.map.get(e);return!!(t&&t.info&&t.info.merge)};
61Object.keys(i).forEach(function(e){d(e)&&!f(e)&&Kc(s,i,e,u.store)})}e.merge(r,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||si(r,i,a.fragmentMap)||n&&a.store.get(n,`__typename`);typeof l==`string`&&(c.__typename=l);var u=function(){var e=Ic(arguments,c,a.variables);if(V(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=s.readField(D(D({},e),{from:t.storeObject}),a);if(n!==void 0)return n}}return s.readField(e,a)},d=new Set;this.flattenFields(i,r,a,l).forEach(function(e,n){var i,a=r[oi(n)];if(d.add(n),a!==void 0){var f=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),p=Vc(o,f),m=t.processFieldValue(a,n,n.selectionSet?Rc(e,!1,!1):e,p),h=void 0;n.selectionSet&&(V(m)||qs(m))&&(h=u(`__typename`,m));var g=s.getMergeFunction(l,n.name.value,h);g?p.info={field:n,typename:l,merge:g}:Wc(o,f),c=e.merge(c,(i={},i[f]=m,i))}else globalThis.__DEV__!==!1&&!e.clientOnly&&!e.deferred&&!fa.added(n)&&!s.getReadFunction(l,n.name.value)&&globalThis.__DEV__!==!1&&A.error(13,oi(n),r)});try{var f=s.identify(r,{typename:l,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:c,readField:u}),p=f[0],m=f[1];n||=p,m&&(c=a.merge(c,m))}catch(e){if(!n)throw e}if(typeof n==`string`){var h=Ur(n),g=a.written[n]||(a.written[n]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(r,h,i,a)))return h;var _=a.incomingById.get(n);return _?(_.storeObject=a.merge(_.storeObject,c),_.mergeTree=Hc(_.mergeTree,o),d.forEach(function(e){return _.fieldNodeSet.add(e)})):a.incomingById.set(n,{storeObject:c,mergeTree:Uc(o)?void 0:o,fieldNodeSet:d}),h}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return!t.selectionSet||e===null?globalThis.__DEV__===!1?e:Ya(e):U(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,n,Vc(r,a));return Wc(r,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r})},e.prototype.flattenFields=function(e,t,n,r){r===void 0&&(r=si(t,e,n.fragmentMap));var i=new Map,a=this.cache.policies,o=new $n(!1);return function e(s,c){var l=o.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(o){if(Un(o,n.variables)){var s=c.clientOnly,l=c.deferred;if(!(s&&l)&&W(o.directives)&&o.directives.forEach(function(e){var t=e.name.value;if(t===`client`&&(s=!0),t===`defer`){var r=ai(e,n.variables);(!r||r.if!==!1)&&(l=!0)}}),ci(o)){var u=i.get(o);u&&(s&&=u.clientOnly,l&&=u.deferred),i.set(o,Rc(n,s,l))}else{var d=cr(o,n.lookupFragment);if(!d&&o.kind===N.FRAGMENT_SPREAD)throw j(14,o.name.value);d&&a.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,Rc(n,s,l))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var a,o=this;if(e.map.size&&!V(n)){var s=!U(n)&&(V(t)||qs(t))?t:void 0,c=n;s&&!i&&(i=[V(s)?s.__ref:s]);var l,u=function(e,t){return U(e)?typeof t==`number`?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=u(s,t),a=u(c,t);if(a!==void 0){i&&i.push(t);var d=o.applyMerges(e,n,a,r,i);d!==a&&(l||=new Map,l.set(t,d)),i&&A(i.pop()===t)}}),l&&(n=U(c)?c.slice(0):D({},c),l.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),Bc=[];function Vc(e,t){var n=e.map;return n.has(t)||n.set(t,Bc.pop()||{map:new Map}),n.get(t)}function Hc(e,t){if(e===t||!t||Uc(t))return e;if(!e||Uc(e))return t;var n=e.info&&t.info?D(D({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var a=new Set(t.map.keys());e.map.forEach(function(e,n){i.map.set(n,Hc(e,t.map.get(n))),a.delete(n)}),a.forEach(function(n){i.map.set(n,Hc(t.map.get(n),e.map.get(n)))})}return i}function Uc(e){return!e||!(e.info||e.map.size)}function Wc(e,t){var n=e.map,r=n.get(t);r&&Uc(r)&&(Bc.push(r),n.delete(t))}var Gc=new Set;function Kc(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return typeof t==`object`&&t},a=i(e);if(a){var o=i(t);if(o&&!V(a)&&!J(a,o)&&!Object.keys(a).every(function(e){return r.getFieldValue(o,e)!==void 0})){var s=r.getFieldValue(e,`__typename`)||r.getFieldValue(t,`__typename`),c=Gs(n),l=`${s}.${c}`;if(!Gc.has(l)){Gc.add(l);var u=[];
61!U(a)&&!U(o)&&[a,o].forEach(function(e){var t=r.getFieldValue(e,`__typename`);typeof t==`string`&&!u.includes(t)&&u.push(t)}),globalThis.__DEV__!==!1&&A.warn(15,c,s,u.length?`either ensure all objects of type `+u.join(` and `)+` have an ID or a custom merge function, or `:``,l,D({},a),D({},o))}}}}var qc=function(e){tt(t,e);function t(t){t===void 0&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new ra(fa),n.assumeImmutableResults=!0,n.makeVar=vc,n.txCount=0,globalThis.__DEV__!==!1&&(q(t,`addTypename`,`InMemoryCache`,"Please remove the `addTypename` option when initializing `InMemoryCache`."),q(t,`canonizeResults`,`InMemoryCache`,"Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),n.config=Vs(t),n.addTypename=!!n.config.addTypename,n.policies=new Pc({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return t.prototype.init=function(){var e=this.data=new $s.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.addTypenameTransform.resetCache(),r?.resetCaches(),this.storeWriter=new zc(this,this.storeReader=new uc({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Hs(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=ta(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||Cr[`inMemoryCache.maybeBroadcastWatch`]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(oc(n)){var r=e.optimistic,i=e.id,a=e.variables;return n.makeCacheKey(e.query,e.callback,zr({optimistic:r,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 e===void 0&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){globalThis.__DEV__!==!1&&q(e,`canonizeResults`,`cache.read`);var t=e.returnPartialData,n=t!==void 0&&t;try{return this.storeReader.diffQueryAgainstStore(D(D({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof Ls)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(e){if(Y.call(e,`id`)&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||`ROOT_QUERY`,e.fields)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(e){return globalThis.__DEV__!==!1&&q(e,`canonizeResults`,`cache.diff`),this.storeReader.diffQueryAgainstStore(D(D({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||`ROOT_QUERY`,config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||_c(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&gc(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){globalThis.__DEV__!==!1&&q(e||{},`resetResultIdentities`,`cache.gc`,"First ensure all usages of `canonizeResults` are removed, then remove this option."),zr.reset(),aa.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(V(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){globalThis.__DEV__!==!1&&A.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(Y.call(e,`id`))return!1;e=D(D({},e),{id:`ROOT_QUERY`})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),zr.reset(),e&&e.discardWatches?(this.watches.forEac
61h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),gc(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=r===void 0||r,a=e.removeOptimistic,o=e.onWatchUpdated,s,c=function(e){var r=t,i=r.data,a=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{return s=n(t)}finally{--t.txCount,t.data=i,t.optimisticData=a}},l=new Set;return o&&!this.txCount&&this.broadcastWatches(D(D({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),typeof i==`string`?this.optimisticData=this.optimisticData.addLayer(i,c):i===!1?c(this.data):c(),typeof a==`string`&&(this.optimisticData=this.optimisticData.removeLayer(a)),o&&l.size?(this.broadcastWatches(D(D({},e),{onWatchUpdated:function(e,t){var n=o.call(this,e,t);return n!==!1&&l.delete(e),n}})),l.size&&l.forEach(function(e){return t.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),s},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||t!==null})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){return this.config.fragments?.lookup(e)||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=this,r=e.lastDiff,i=K(`canonizeResults`,function(){return n.diff(e)});t&&(e.optimistic&&typeof t.optimistic==`string`&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&t.onWatchUpdated.call(this,e,i,r)===!1)||(!r||!J(r.result,i.result))&&e.callback(e.lastDiff=i,r)},t}(Is);globalThis.__DEV__!==!1&&(qc.prototype.getMemoryInternals=Dr);var X;(function(e){e[e.loading=1]=`loading`,e[e.setVariables=2]=`setVariables`,e[e.fetchMore=3]=`fetchMore`,e[e.refetch=4]=`refetch`,e[e.poll=6]=`poll`,e[e.ready=7]=`ready`,e[e.error=8]=`error`})(X||={});function Jc(e){return e?e<7:!1}var Yc=Object.assign,Xc=Object.hasOwnProperty,Zc=function(e){tt(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,a=n.options,o=this,s=t.inactiveOnCreation.getValue();o=e.call(this,function(e){o._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=Qc)}catch{}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(o.maskResult(r.result)),n&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this,o.observers=new Set,o.subscriptions=new Set,o.dirty=!1,o._getOrCreateQuery=function(){return s&&=(r.queries.set(o.queryId,i),!1),o.queryManager.getOrCreateQuery(o.queryId)},o.queryInfo=i,o.queryManager=r,o.waitForOwnResult=el(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var c=r.defaultOptions.watchQuery,l=(c===void 0?{}:c).fetchPolicy,u=l===void 0?`cache-first`:l,d=a.fetchPolicy,f=d===void 0?u:d,p=a.initialFetchPolicy,m=p===void 0?f===`standby`?u:f:p;o.options=D(D({},a),{initialFetchPolicy:m,fetchPolicy:f}),o.queryId=i.queryId||r.generateQueryId();var h=di(o.query);return o.queryName=h&&h.name&&h.name.value,o}return Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return globalThis.__DEV__!==!1&&bo(`observableQuery.result`,function(){globalThis.__DEV__!==!1&&A.warn(23)}
61),new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){var t=this;e===void 0&&(e=!0);var n=K(`getLastResult`,function(){return t.getLastResult(!0)}),r=this.queryInfo.networkStatus||n&&n.networkStatus||X.ready,i=D(D({},n),{loading:Jc(r),networkStatus:r}),a=this.options.fetchPolicy,o=a===void 0?`cache-first`:a;if(!(el(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)){if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),J(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===X.loading&&(o===`cache-first`||o===`cache-only`)&&(i.networkStatus=X.ready,i.loading=!1)):i.partial=!0,i.networkStatus===X.ready&&(i.error||i.errors)&&(i.networkStatus=X.error),globalThis.__DEV__!==!1&&!s.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&$c(s.missing)}}return e&&this.updateLastResult(i),i},t.prototype.getCurrentResult=function(e){return e===void 0&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),r=this.queryManager.dataMasking,i=r?n.nonReactiveQuery:this.query;return(r||n.hasNonreactiveDirective?!xs(i,this.last.result,e,this.variables):!J(this.last.result,e))||t&&!J(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||J(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return globalThis.__DEV__!==!1&&bo(`getLastResult`,function(){globalThis.__DEV__!==!1&&A.warn(24)}),this.getLast(`result`,e)},t.prototype.getLastError=function(e){return globalThis.__DEV__!==!1&&bo(`getLastError`,function(){globalThis.__DEV__!==!1&&A.warn(25)}),this.getLast(`error`,e)},t.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&bo(`resetLastResults`,function(){globalThis.__DEV__!==!1&&A.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&A.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0};if(t.fetchPolicy=this.options.fetchPolicy===`no-cache`?`no-cache`:`network-only`,globalThis.__DEV__!==!1&&e&&Xc.call(e,`variables`)){var n=mi(this.query),r=n.variableDefinitions;(!r||!r.some(function(e){return e.variable.name.value===`variables`}))&&globalThis.__DEV__!==!1&&A.warn(28,e,n.name?.value||n)}return e&&!J(this.options.variables,e)&&(t.variables=this.options.variables=D(D({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,X.refetch)},t.prototype.fetchMore=function(e){var t=this,n=D(D({},e.query?e:D(D(D(D({},this.options),{query:this.options.query}),e),{variables:D(D({},this.options.variables),e.variables)})),{fetchPolicy:`no-cache`});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var i=this.queryInfo,a=i.networkStatus;i.networkStatus=X.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var o=new Set,s=e?.updateQuery,c=this.options.fetchPolicy!==`no-cache`;return c||A(s,29),this.queryManager.fetchQuery(r,n,X.fetchMore).then(function(l){if(t.queryManager.removeQuery(r),i.networkStatus===X.fetchMore&&(i.networkStatus=a),c)t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:l.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:l.data})},onWatchUpdated:function(e){o.add(e.query)}});else{var u=t.getLast(`result`),d=s(u.data,{fetchMoreResult:l.data,variables:n.variables});t.reportResult(D(D({},u),{networkStatus:a,loading:Jc(a),data:d}),t.variables)}return t.maskResult(l)}).finally(function(){c&&!o.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,D({subscriptionData:n},t))})},error:function(t){if(e.onError){e.onError(t);return}globalThis.__DEV__!==!1&&A.error(30,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return globalThis.__DEV__!==!1&&(q(e,`canonizeResults`,`setOptions`),bo(`setOptions`,function(){globalThis.__DEV__!==!1&&A.
61warn(31)})),this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=po(this.options,e||{});Yc(this.options,t)},t.prototype.setVariables=function(e){var t=this;return J(this.variables,e)?this.observers.size?K(`observableQuery.result`,function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},X.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,i=n.complete,a=e(r,{variables:this.variables,complete:!!i,previousData:r});a&&(t.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=n===void 0?`cache-first`:n,i=t.initialFetchPolicy,a=i===void 0?r:i;r===`standby`||(t.fetchPolicy=typeof t.nextFetchPolicy==`function`?t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:a}):e===`variables-changed`?a:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){var r=this._getOrCreateQuery();return r.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(r,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this,n=t.pollingInfo,r=t.options.pollInterval;if(!r||!this.hasObservers()){n&&(clearTimeout(n.timeout),delete this.pollingInfo);return}if(!(n&&n.interval===r)){A(r,32);var i=n||(this.pollingInfo={});i.interval=r;var a=function(){var t,n;e.pollingInfo&&(!Jc(e.queryInfo.networkStatus)&&!((n=(t=e.options).skipPollAttempt)!=null&&n.call(t))?e.reobserve({fetchPolicy:e.options.initialFetchPolicy===`no-cache`?`no-cache`:`network-only`},X.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(a,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){var n=this;t===void 0&&(t=this.variables);var r=K(`getLastError`,function(){return n.getLastError()});return r&&this.last&&!J(t,this.last.variables)&&(r=void 0),this.last=D({result:this.queryManager.assumeImmutableResults?e:Ya(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===X.refetch||t===X.fetchMore||t===X.poll,i=this.options.variables,a=this.options.fetchPolicy,o=po(this.options,e||{}),s=r?o:Yc(this.options,o),c=this.transformDocument(s.query);this.lastQuery=c,r||(this.updatePolling(),e&&e.variables&&!J(e.variables,i)&&s.fetchPolicy!==`standby`&&(s.fetchPolicy===a||typeof s.nextFetchPolicy==`function`)&&(this.applyNextFetchPolicy(`variables-changed`,s),t===void 0&&(t=X.setVariables))),this.waitForOwnResult&&=el(s.fetchPolicy);var l=function(){n.concast===f&&(n.waitForOwnResult=!1)},u=s.variables&&D({},s.variables),d=this.fetch(s,t,c),f=d.concast,p=d.fromLink,m={next:function(e){J(n.variables,u)&&(l(),n.reportResult(e,u))},error:function(e){J(n.variables,u)&&(Go(e)||(e=new qo({networkError:e})),l(),n.reportError(e,u))}};return!r&&(p||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=m),f.addObserver(m),f},t.prototype.reobserve=function(e,t){return qa(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.last;K(`resetLastResults`,function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=r,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this,r=K(`getLastError`,function(){return n.getLastError()}),i=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||i)&&eo(this.observers,`next`,this.maskResult(e))},t.prototype.reportError=function(e,t){var n=this,r=D(D({},K(`getLastResult`,function(){return n.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:X.error,loading:!1});this.updateLastResult(r,t),eo(this.observers,`error`,this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||=(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&`data`in e?D(D({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&=(clearTimeout(this.notifyTimeout),void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||=setTimeout(function(){return e.notify()},0))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy==`cache-only`||this.options.fetchPolicy==`cache-and-network`||!Jc(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return t===`cache-and-network`||t===`network-only`?this.reobserve({fetchPolicy:`cache-first`,nextFetchPolicy:function(e,r){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy==`function`?this.nextFetchPolicy(e,r):t}}):this.reobserve()},t.inactiveOnCreation=new wi,t}(G);no(Zc);function Qc(e){globalThis.__DEV__!==!1&&A.error(33,e.message,e.stack)}function $c(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&A.debug(34,e)}
61function el(e){return e===`network-only`||e===`no-cache`||e===`standby`}var tl=new(nr?WeakMap:Map);function nl(e,t){var n=e[t];typeof n==`function`&&(e[t]=function(){return tl.set(e,(tl.get(e)+1)%0x38d7ea4c68000),n.apply(this,arguments)})}var rl=function(){function e(e,t){t===void 0&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;tl.has(n)||(tl.set(n,0),nl(n,`evict`),nl(n,`modify`),nl(n,`reset`))}return e.prototype.init=function(e){var t=e.networkStatus||X.loading;return this.variables&&this.networkStatus!==X.loading&&!J(this.variables,e.variables)&&(t=X.setVariables),J(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&&J(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy===`no-cache`)return{complete:!1};var r=K(`canonizeResults`,function(){return e.cache.diff(t)});return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:this.observableQuery?.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&K(`getLastError`,function(){return t.observableQuery?.getLastError()})||(this.updateLastDiff(e),J(r&&r.result,e&&e.result)||(n=this.observableQuery)==null||n.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,(e=this.observableQuery)==null||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;(e=this.cancelWatch)==null||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy===`no-cache`)){var r=D(D({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});(!this.lastWatch||!J(r,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===tl.get(this.cache)&&J(t,n.variables)&&J(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,a,o=new ba,s=W(e.errors)?e.errors.slice(0):[];if((a=this.observableQuery)==null||a.resetNotifications(),`incremental`in e&&W(e.incremental))e.data=lo(this.getDiff().result,e);else if(`hasNext`in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=s,n.fetchPolicy===`no-cache`?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):r!==0&&(il(e,n.errorPolicy)?this.cache.performTransaction(function(a){if(i.shouldWrite(e,n.variables))a.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:r===1}),i.lastWrite={result:e,variables:n.variables,dmCount:tl.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var o=i.getDiffOptions(n.variables),s=K(`canonizeResults`,function(){return a.diff(o)});!i.stopped&&J(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=X.ready},e.prototype.markError=function(e){var t;return this.networkStatus=X.error,this.lastWrite=void 0,(t=this.observableQuery)==null||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function il(e,t){t===void 0&&(t=`none`);var n=t===`ignore`||t===`all`,r=!uo(e);return!r&&n&&e.data&&(r=!0),r}var al=Object.prototype.hasOwnProperty,ol=Object.create(null),sl=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new xr(Cr[`queryManager.getDocumentInfo`]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new $n(!1),this.noCacheWarningsByQueryId=new Set;var n=new ra(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;
61this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(j(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return rt(this,arguments,void 0,function(e){var t,n,r,i,a,o=e.mutation,s=e.variables,c=e.optimisticResponse,l=e.updateQueries,u=e.refetchQueries,d=u===void 0?[]:u,f=e.awaitRefetchQueries,p=f!==void 0&&f,m=e.update,h=e.onQueryUpdated,g=e.fetchPolicy,_=g===void 0?this.defaultOptions.mutate?.fetchPolicy||`network-only`:g,v=e.errorPolicy,y=v===void 0?this.defaultOptions.mutate?.errorPolicy||`none`:v,b=e.keepRootFields,x=e.context;return it(this,function(e){switch(e.label){case 0:return A(o,36),A(_===`network-only`||_===`no-cache`,37),t=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),n=this.getDocumentInfo(o).hasClientExports,s=this.getVariables(o,s),n?[4,this.localState.addExportedVariables(o,s,x)]:[3,2];case 1:s=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:o,variables:s,loading:!0,error:null}),i=c&&this.markMutationOptimistic(c,{mutationId:t,document:o,variables:s,fetchPolicy:_,errorPolicy:y,context:x,updateQueries:l,update:m,keepRootFields:b}),this.broadcastQueries(),a=this,[2,new Promise(function(e,n){return to(a.getObservableFromLink(o,D(D({},x),{optimisticResponse:i?c:void 0}),s,{},!1),function(e){if(uo(e)&&y===`none`)throw new qo({graphQLErrors:fo(e)});r&&(r.loading=!1,r.error=null);var n=D({},e);return typeof d==`function`&&(d=d(n)),y===`ignore`&&uo(n)&&delete n.errors,a.markMutationResult({mutationId:t,result:n,document:o,variables:s,fetchPolicy:_,errorPolicy:y,context:x,update:m,updateQueries:l,awaitRefetchQueries:p,refetchQueries:d,removeOptimistic:i?t:void 0,onQueryUpdated:h,keepRootFields:b})}).subscribe({next:function(n){a.broadcastQueries(),(!(`hasNext`in n)||n.hasNext===!1)&&e(D(D({},n),{data:a.maskOperation({document:o,data:n.data,fetchPolicy:_,id:t})}))},error:function(e){r&&(r.loading=!1,r.error=e),i&&a.cache.removeOptimistic(t),a.broadcastQueries(),n(e instanceof qo?e:new qo({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;t===void 0&&(t=this.cache);var r=e.result,i=[],a=e.fetchPolicy===`no-cache`;if(!a&&il(r,e.errorPolicy)){if(ao(r)||i.push({result:r.data,dataId:`ROOT_MUTATION`,query:e.document,variables:e.variables}),ao(r)&&W(r.incremental)){var o=t.diff({id:`ROOT_MUTATION`,query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;o.result&&(s=lo(o.result,r)),typeof s<`u`&&(r.data=s,i.push({result:s,dataId:`ROOT_MUTATION`,query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(!(!s||!al.call(c,s))){var l=c[s],u=n.queries.get(a),d=u.document,f=u.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),m=p.result;if(p.complete&&m){var h=l(m,{mutationResult:r,queryName:d&&fi(d)||void 0,queryVariables:f});h&&i.push({result:h,dataId:`ROOT_QUERY`,query:d,variables:f})}}})}if(i.length>0||(e.refetchQueries||``).length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var o=e.update,s=!so(r)||ao(r)&&!r.hasNext;if(o){if(!a){var c=t.diff({id:`ROOT_MUTATION`,query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&(r=D(D({},r),{data:c.result}),`incremental`in r&&delete r.incremental,`hasNext`in r&&delete r.hasNext)}s&&o(t,r,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&s&&t.modify({id:`ROOT_MUTATION`,fields:function(e,t){var n=t.fieldName,r=t.DELETE;return n===`__typename`?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r=typeof e==`function`?e(t.variables,{IGNORE:ol}):e;return r!==ol&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(D(D({},t),{result:{data:r}}),e)}catch(e){globalThis.__DEV__!==!1&&A.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);
61return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:Gn(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:Wn([`nonreactive`],e),nonReactiveQuery:ha(e),clientQuery:this.localState.clientQuery(e),serverQuery:da([{name:`client`,remove:!0},{name:`connection`},{name:`nonreactive`},{name:`unmask`}],e),defaultVars:_i(di(e)),asQuery:D(D({},e),{definitions:e.definitions.map(function(e){return e.kind===`OperationDefinition`&&e.operation!==`query`?D(D({},e),{operation:`query`}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return D(D({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);e=D(D({},e),{variables:this.getVariables(t,e.variables)}),typeof e.notifyOnNetworkStatusChange>`u`&&(e.notifyOnNetworkStatusChange=!1);var n=new rl(this),r=new Zc({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,Zc.inactiveOnCreation.getValue()||this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;t===void 0&&(t=this.generateQueryId()),A(e.query,38),A(e.query.kind===`Document`,39),A(!e.returnPartialData,40),A(!e.pollInterval,41);var r=this.transform(e.query);return this.fetchQuery(t,D(D({},e),{query:r})).then(function(i){return i&&D(D({},i),{data:n.maskOperation({document:r,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(j(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=X.loading:e.stop()}),this.mutationStore&&=Object.create(null),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;e===void 0&&(e=`active`);var n=new Map,r=new Map,i=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if(typeof e==`string`)r.set(e,e),i.set(e,!1);else if(Wr(e)){var n=aa(t.transform(e));r.set(n,fi(e)),i.set(n,!1)}else B(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,r){var a=t.observableQuery,o=t.document;if(a){if(e===`all`){n.set(r,a);return}var s=a.queryName;if(a.options.fetchPolicy===`standby`||e===`active`&&!a.hasObservers())return;
61(e===`active`||s&&i.has(s)||o&&i.has(aa(o)))&&(n.set(r,a),s&&i.set(s,!0),o&&i.set(aa(o),!0))}}),a.size&&a.forEach(function(e){var r=gt(`legacyOneTimeQuery`),i=t.getOrCreateQuery(r).init({document:e.query,variables:e.variables}),a=new Zc({queryManager:t,queryInfo:i,options:D(D({},e),{fetchPolicy:`network-only`})});A(a.queryId===r),i.setObservableQuery(a),n.set(r,a)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(e,t){if(!e){var n=r.get(t);n?globalThis.__DEV__!==!1&&A.warn(43,n):globalThis.__DEV__!==!1&&A.warn(44)}}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?`all`:`active`).forEach(function(r,i){var a=r.options.fetchPolicy;K(`resetLastResults`,function(){return r.resetLastResults()}),(e||a!==`standby`&&a!==`cache-only`)&&n.push(r.refetch()),(t.queries.get(i)||r.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=a===void 0?`none`:a,s=e.context,c=s===void 0?{}:s,l=e.extensions,u=l===void 0?{}:l;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,c,e,u).map(function(r){i!==`no-cache`&&(il(r,o)&&t.cache.write({query:n,result:r.data,dataId:`ROOT_SUBSCRIPTION`,variables:e}),t.broadcastQueries());var a=uo(r),s=Wo(r);if(a||s){var c={};if(a&&(c.graphQLErrors=r.errors),s&&(c.protocolErrors=r.extensions[Uo]),o===`none`||s)throw new qo(c)}return o===`ignore`&&delete r.errors,r})};if(this.getDocumentInfo(n).hasClientExports){var f=this.localState.addExportedVariables(n,r,c).then(d);return new G(function(e){var t=null;return f.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(r)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&((t=this.queries.get(e))==null||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.observableQuery?.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r,i){var a=this;i===void 0&&(i=t?.queryDeduplication??this.queryDeduplication);var o,s=this.getDocumentInfo(e),c=s.serverQuery,l=s.clientQuery;if(c){var u=this,d=u.inFlightLinkObservables,f=u.link,p={query:c,variables:n,operationName:fi(c)||void 0,context:this.prepareContext(D(D({},t),{forceFetch:!i})),extensions:r};if(t=p.context,i){var m=aa(c),h=zr(n),g=d.lookup(m,h);if(o=g.observable,!o){var _=new io([jo(f,p)]);o=g.observable=_,_.beforeNext(function e(t,n){t===`next`&&`hasNext`in n&&n.hasNext?_.beforeNext(e):d.remove(m,h)})}}else o=new io([jo(f,p)])}else o=new io([G.of({data:{}})]),t=this.prepareContext(t);return l&&(o=to(o,function(e){return a.localState.runResolvers({document:l,remoteResult:e,context:t,variables:n})})),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return to(this.getObservableFromLink(i,n.context,n.variables),function(a){var o=fo(a),s=o.length>0,c=n.errorPolicy;if(r>=e.lastRequestId){if(s&&c===`none`)throw e.markError(new qo({graphQLErrors:o}));e.markResult(a,i,n,t),e.markReady()}var l={data:a.data,loading:!1,networkStatus:X.ready};return s&&c===`none`&&(l.data=void 0),s&&c!==`ignore`&&(l.errors=o,l.networkStatus=X.error),l},function(t){var n=Go(t)?t:new qo({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;n===void 0&&(n=X.loading),r===void 0&&(r=t.query);var a=this.getVariables(r,t.variables),o=this.defaultOptions.watchQuery,s=t.fetchPolicy,c=s===void 0?o&&o.fetchPolicy||`cache-first`:s,l=t.errorPolicy,u=l===void 0?o&&o.errorPolicy||`none`:l,d=t.returnPartialData,f=d!==void 0&&d,p=t.notifyOnNetworkStatusChange,m=p!==void 0&&p,h=t.context,g=Object.assign({},t,{query:r,variables:a,fetchPolicy:c,errorPolicy:u,returnPartialData:f,notifyOnNetworkStatusChange:m,context:h===void 0?{}:h}),_=function(r){g.variables=r;var a=i.fetchQueryByPolicy(e,g,n);return g.fetchPolicy!==`standby`&&a.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy(`after-fetch`,t),a},v=function(){return i.fetchCancelFns.delete(e.queryId)};this.fetchCancelFns.set(e.queryId,function(e){v(),setTimeout(function(){return y.c
61ancel(e)})});var y,b;if(this.getDocumentInfo(g.query).hasClientExports)y=new io(this.localState.addExportedVariables(g.query,g.variables,g.context).then(_).then(function(e){return e.sources})),b=!0;else{var x=_(g.variables);b=x.fromLink,y=new io(x.sources)}return y.promise.then(v,v),{concast:y,fromLink:b}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=i!==void 0&&i,o=e.removeOptimistic,s=o===void 0?a?gt(`refetchQueries`):void 0:o,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof rl&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return i===!0&&(i=r.refetch()),i!==!1&&u.set(r,i),i}c!==null&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r=e.oq,i=e.lastDiff,a=e.diff,o;c&&(a||=K(`canonizeResults`,function(){return t.cache.diff(r.queryInfo.getDiffOptions())}),o=c(r,a,i)),(!c||o===!0)&&(o=r.refetch()),o!==!1&&u.set(r,o),n.indexOf(`legacyOneTimeQuery`)>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t=e.document,n=e.data;if(globalThis.__DEV__!==!1){var r=e.fetchPolicy,i=e.id,a=di(t)?.operation,o=(a?.[0]??`o`)+i;this.dataMasking&&r===`no-cache`&&!lr(t)&&!this.noCacheWarningsByQueryId.has(o)&&(this.noCacheWarningsByQueryId.add(o),globalThis.__DEV__!==!1&&A.warn(45,fi(t)??`Unnamed ${a??`operation`}`))}return this.dataMasking?Fs(n,t,this.cache):n},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?Ps(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,f
61=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var p=function(){return e.getDiff()},m=function(t,n){n===void 0&&(n=e.networkStatus||X.loading);var o=t.result;globalThis.__DEV__!==!1&&!l&&!J(o,{})&&$c(t.missing);var s=function(e){return G.of(D({data:e,loading:Jc(n),networkStatus:n},t.complete?null:{partial:!0}))};return o&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:o},context:u,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):c===`none`&&n===X.refetch&&Array.isArray(t.missing)?s(void 0):s(o)},h=o===`no-cache`?0:n===X.refetch&&s!==`merge`?1:2,g=function(){return r.getResultsFromLink(e,h,{query:i,variables:a,context:u,fetchPolicy:o,errorPolicy:c})},_=d&&typeof f==`number`&&f!==n&&Jc(n);switch(o){default:case`cache-first`:var v=p();return v.complete?{fromLink:!1,sources:[m(v,e.markReady())]}:l||_?{fromLink:!0,sources:[m(v),g()]}:{fromLink:!0,sources:[g()]};case`cache-and-network`:var v=p();return v.complete||l||_?{fromLink:!0,sources:[m(v),g()]}:{fromLink:!0,sources:[g()]};case`cache-only`:return{fromLink:!1,sources:[m(p(),e.markReady())]};case`network-only`:return _?{fromLink:!0,sources:[m(p()),g()]}:{fromLink:!0,sources:[g()]};case`no-cache`:return _?{fromLink:!0,sources:[m(e.getDiff()),g()]}:{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 rl(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){e===void 0&&(e={});var t=this.localState.prepareContext(e);return D(D(D({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),cl=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=_a(t.resolvers,e)}):this.resolvers=_a(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 rt(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=a!==void 0&&a;return it(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then(function(e){return D(D({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return Wn([`client`],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return ma(e)},e.prototype.prepareContext=function(e){var t=this.cache;return D(D({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return rt(this,arguments,void 0,function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),it(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return D(D({},t),e.exportedVariables)})]:[2,D({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return I(e,{Directive:{enter:function(e){if(e.name.value===`client`&&e.arguments&&(t=e.arguments.some(function(e){return e.name.value===`always`&&e.value.kind===`BooleanValue`&&e.value.value===!0}),t))return Fn}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:pa(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return rt(this,arguments,void 0,function(e,t,n,r,i,a){var o,s,c,l,u,d,f,p,m,h,g;return n===void 0&&(n={}),r===void 0&&(r={}),i===void 0&&(i=function(){return!0}),a===void 0&&(a=!1),it(this,function(_){return o=gi(e),s=pi(e),c=sr(s),l=this.collectSelectionsToResolve(o,c),u=o.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):`Query`,f=this,p=f.cache,m=f.client,h={fragmentMap:c,context:D(D({}
61,n),{cache:p,client:m}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},g=!1,[2,this.resolveSelectionSet(o.selectionSet,g,t,h).then(function(e){return{result:e,exportedVariables:h.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return rt(this,void 0,void 0,function(){var i,a,o,s,c,l=this;return it(this,function(u){return i=r.fragmentMap,a=r.context,o=r.variables,s=[n],c=function(e){return rt(l,void 0,void 0,function(){var c,l;return it(this,function(u){return!t&&!r.selectionsToResolve.has(e)?[2]:Un(e,o)?ci(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;typeof t<`u`&&s.push((n={},n[oi(e)]=t,n))})]:(li(e)?c=e:(c=i[e.name.value],A(c,21,e.name.value)),c&&c.typeCondition&&(l=c.typeCondition.name.value,r.fragmentMatcher(n,l,a))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return va(s)})]})})},e.prototype.resolveField=function(e,t,n,r){return rt(this,void 0,void 0,function(){var i,a,o,s,c,l,u,d,f,p=this;return it(this,function(m){return n?(i=r.variables,a=e.name.value,o=oi(e),s=a!==o,c=n[o]||n[a],l=Promise.resolve(c),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(u=n.__typename||r.defaultOperationType,d=this.resolvers&&this.resolvers[u],d&&(f=d[s?a:o],f&&(l=Promise.resolve(pc.withValue(this.cache,f,[n,ai(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}]))))),[2,l.then(function(n){if(n===void 0&&(n=c),e.directives&&e.directives.forEach(function(e){e.name.value===`export`&&e.arguments&&e.arguments.forEach(function(e){e.name.value===`as`&&e.value.kind===`StringValue`&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet||n==null)return n;var i=e.directives?.some(function(e){return e.name.value===`client`})??!1;if(Array.isArray(n))return p.resolveSubSelectedArray(e,t||i,n,r);if(e.selectionSet)return p.resolveSelectionSet(e.selectionSet,t||i,n,r)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){if(n===null)return null;if(Array.isArray(n))return i.resolveSubSelectedArray(e,t,n,r);if(e.selectionSet)return i.resolveSelectionSet(e.selectionSet,t,n,r)}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;function i(e){if(!r.has(e)){var a=new Set;r.set(e,a),I(e,{Directive:function(e,t,r,i,o){e.name.value===`client`&&o.forEach(function(e){n(e)&&Hn(e)&&a.add(e)})},FragmentSpread:function(e,r,o,s,c){var l=t[e.name.value];A(l,22,e.name.value);var u=i(l);u.size>0&&(c.forEach(function(e){n(e)&&Hn(e)&&a.add(e)}),a.add(e),u.forEach(function(e){a.add(e)}))}})}return r.get(e)}return i(e)},e}(),ll=!1,ul=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw j(16);var n=e.uri,r=e.credentials,i=e.headers,a=e.cache,o=e.documentTransform,s=e.ssrMode,c=s!==void 0&&s,l=e.ssrForceFetchDelay,u=l===void 0?0:l,d=e.connectToDevTools,f=e.queryDeduplication,p=f===void 0||f,m=e.defaultOptions,h=e.defaultContext,g=e.assumeImmutableResults,_=g===void 0?a.assumeImmutableResults:g,v=e.resolvers,y=e.typeDefs,b=e.fragmentMatcher,x=e.clientAwareness,S=e.name,ee=e.version,C=e.devtools,te=e.dataMasking;globalThis.__DEV__!==!1&&(q(e,`connectToDevTools`,`ApolloClient`,"Please use `devtools.enabled` instead."),q(e,`uri`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `uri` instead."),q(e,`credentials`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `credentials` instead."),q(e,`headers`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `headers` instead."),q(e,`name`,`ApolloClient`,"Please use the `clientAwareness.name` option instead."),q(e,`version`,`ApolloClient`,"Please use the `clientAwareness.version` option instead."),q(e,`typeDefs`,`ApolloClient`),e.link||globalThis.__DEV__!==!1&&A.warn(17));var ne=e.link;ne||=n?new us({uri:n,credentials:r,headers:i}):Ao.empty(),this.link=ne,this.cache=a,this.disableNetworkFetches=c||u>0,this.queryDeduplication=p,this.defaultOptions=m||Object.create(null),this.typeDefs=y,this.devtoolsConfig=D(D({},C),{enabled:C?.enabled??d}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),u&&setTimeout(function(){return t.disableNetworkFetches=!1},u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=pt,this.localState=new cl({cache:a,client:this,resolvers:v,fragmentMatcher:b}),this.queryManager=new sl({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:h,documentTransform:o,queryDeduplication:p,ssrMode:c,dataMasking:!!te,clientAwareness:{name:x?.name??S,version:x?.version??ee},localState:this.localState,assumeImmutableResults:_,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
61,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if(!(typeof window>`u`)){var e=window,t=Symbol.for(`apollo.devtools`);(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!ll&&globalThis.__DEV__!==!1&&(ll=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;typeof t==`string`&&(t.indexOf(`Chrome/`)>-1?n=`https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm`:t.indexOf(`Firefox/`)>-1&&(n=`https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/`)),n&&globalThis.__DEV__!==!1&&A.log(`Download the Apollo DevTools for a better development experience: %s`,n)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mo(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy===`network-only`||e.fetchPolicy===`cache-and-network`)&&(e=D(D({},e),{fetchPolicy:`cache-first`})),globalThis.__DEV__!==!1&&(q(e,`canonizeResults`,`client.watchQuery`),q(e,`partialRefetch`,`client.watchQuery`)),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=mo(this.defaultOptions.query,e)),A(e.fetchPolicy!==`cache-and-network`,18),this.disableNetworkFetches&&e.fetchPolicy===`network-only`&&(e=D(D({},e),{fetchPolicy:`cache-first`})),globalThis.__DEV__!==!1&&(q(e,`canonizeResults`,`client.query`),q(e,`notifyOnNetworkStatusChange`,`client.query`,"This option does not affect `client.query` and can be safely removed."),e.fetchPolicy===`standby`&&globalThis.__DEV__!==!1&&A.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mo(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(r){return D(D({},r),{data:t.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})})},e.prototype.readQuery=function(e,t){return t===void 0&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(D(D({},e),(t={},t[Symbol.for(`apollo.dataMasking`)]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return t===void 0&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return jo(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){globalThis.__DEV__!==!1&&A.debug(20,e)}),i},e.prototype.getObservableQueries=function(e){return e===void 0&&(e=`active`),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
61,enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(ul.prototype.getMemoryInternals=Er);var dl=new Map,fl=new Map,pl=!0,ml=!1;function hl(e){return e.replace(/[\s,]+/g,` `).trim()}function gl(e){return hl(e.source.body.substring(e.start,e.end))}function _l(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if(e.kind===`FragmentDefinition`){var r=e.name.value,i=gl(e.loc),a=fl.get(r);a&&!a.has(i)?pl&&console.warn(`Warning: fragment with name `+r+` already exists.
62graphql-tag enforces all fragment names across your application to be unique; read more about
63this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||fl.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)}),D(D({},e),{definitions:n})}function vl(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&typeof r==`object`&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function yl(e){var t=hl(e);if(!dl.has(t)){var n=Dn(e,{experimentalFragmentVariables:ml,allowLegacyFragmentVariables:ml,experimentalFragmentArguments:ml});if(!n||n.kind!==`Document`)throw Error(`Not a valid GraphQL document.`);dl.set(t,vl(_l(n)))}return dl.get(t)}function bl(e){var t=[...arguments].slice(1);typeof e==`string`&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&t.kind===`Document`?n+=t.loc.source.body:n+=t,n+=e[r+1]}),yl(n)}function xl(){dl.clear(),fl.clear()}function Sl(){pl=!1}function Cl(){ml=!0}function wl(){ml=!1}var Tl={gql:bl,resetCaches:xl,disableFragmentWarnings:Sl,enableExperimentalFragmentVariables:Cl,disableExperimentalFragmentVariables:wl};(function(e){e.gql=Tl.gql,e.resetCaches=Tl.resetCaches,e.disableFragmentWarnings=Tl.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Tl.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Tl.disableExperimentalFragmentVariables})(bl||={}),bl.default=bl;function El(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Z=typeof globalThis<`u`&&globalThis||typeof self<`u`&&self||typeof global<`u`&&global||{},Q={searchParams:`URLSearchParams`in Z,iterable:`Symbol`in Z&&`iterator`in Symbol,blob:`FileReader`in Z&&`Blob`in Z&&function(){try{return new Blob,!0}catch{return!1}}(),formData:`FormData`in Z,arrayBuffer:`ArrayBuffer`in Z};function Dl(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Q.arrayBuffer)var Ol=[`[object Int8Array]`,`[object Uint8Array]`,`[object Uint8ClampedArray]`,`[object Int16Array]`,`[object Uint16Array]`,`[object Int32Array]`,`[object Uint32Array]`,`[object Float32Array]`,`[object Float64Array]`],kl=ArrayBuffer.isView||function(e){return e&&Ol.indexOf(Object.prototype.toString.call(e))>-1};function Al(e){if(typeof e!=`string`&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e===``)throw TypeError(`Invalid character in header field name: "`+e+`"`);return e.toLowerCase()}function jl(e){return typeof e!=`string`&&(e=String(e)),e}function Ml(e){var t={next:function(){var t=e.shift();return{done:t===void 0,value:t}}};return Q.iterable&&(t[Symbol.iterator]=function(){return t}),t}function $(e){this.map={},e instanceof $?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(e.length!=2)throw TypeError(`Headers constructor: expected name/value pair to be length 2, found`+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}$.prototype.append=function(e,t){e=Al(e),t=jl(t);var n=this.map[e];this.map[e]=n?n+`, `+t:t},$.prototype.delete=function(e){delete this.map[Al(e)]},$.prototype.get=function(e){return e=Al(e),this.has(e)?this.map[e]:null},$.prototype.has=function(e){return this.map.hasOwnProperty(Al(e))},$.prototype.set=function(e,t){this.map[Al(e)]=jl(t)},$.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},$.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),Ml(e)},$.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Ml(e)},$.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),Ml(e)},Q.iterable&&($.prototype[Symbol.iterator]=$.prototype.entries);function Nl(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError(`Already read`));e.bodyUsed=!0}}function Pl(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function Fl(e){var t=new FileReader,n=Pl(t);return t.readAsArrayBuffer(e),n}function Il(e){var t=new FileReader,n=Pl(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:`utf-8`;return t.readAsText(e,i),n}function Ll(e){for(var t=new Uint8Array(e),n=Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join(``)}function Rl(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function zl(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e==`string`?this._bodyText=e:Q.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Q.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Q.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Q.arrayBuffer&&Q.blob&&Dl(e)?(this._bodyArrayBuffer=Rl(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Q.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||kl(e))?this._bodyArrayBuffer=Rl(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=``),this.headers.get(`content-type`)||(typeof e==`string`?this.headers.set(`content-type`,`text/plain;charset=UTF-8`):this._bodyBlob&&this._bodyBlob.type?this.headers.set(`content-type`,this._bodyBlob.type):Q.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set(`content-type`,`application/x-www-form-urlencoded;charset=UTF-8`))},Q.blob&&(this.blob=function(){var e=Nl(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw Error(`could not read FormData body as blob`);return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return Nl(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(Q.blob)return this.blob().then(Fl);throw Error(`could not read as ArrayBuffer`)},this.text=function(){var e=Nl(this);if(e)return e;if(this._bodyBlob)return Il(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Ll(this._bodyArrayBuffer));if(this._bodyFormData)throw Error(`could not read FormData body as text`);return Promise.resolve(this._bodyText)},Q.formData&&(this.formData=function(){return this.text().then(Ul)}),this.json=function(){return this.text().then(JSON.parse)},this}var Bl=[`CONNECT`,`DELETE`,`GET`,`HEAD`,`OPTIONS`,`PATCH`,`POST`,`PUT`,`TRACE`];function Vl(e){var t=e.toUpperCase();return Bl.indexOf(t)>-1?t:e}function Hl(e,t){if(!(this instanceof Hl))throw TypeError(`Please use the "new" operator, this DOM object c
63onstructor cannot be called as a function.`);t||={};var n=t.body;if(e instanceof Hl){if(e.bodyUsed)throw TypeError(`Already read`);this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new $(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||`same-origin`,(t.headers||!this.headers)&&(this.headers=new $(t.headers)),this.method=Vl(t.method||this.method||`GET`),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if(`AbortController`in Z)return new AbortController().signal}(),this.referrer=null,(this.method===`GET`||this.method===`HEAD`)&&n)throw TypeError(`Body not allowed for GET or HEAD requests`);if(this._initBody(n),(this.method===`GET`||this.method===`HEAD`)&&(t.cache===`no-store`||t.cache===`no-cache`)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,`$1_=`+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?`&`:`?`)+`_=`+new Date().getTime()}}}Hl.prototype.clone=function(){return new Hl(this,{body:this._bodyInit})};function Ul(e){var t=new FormData;return e.trim().split(`&`).forEach(function(e){if(e){var n=e.split(`=`),r=n.shift().replace(/\+/g,` `),i=n.join(`=`).replace(/\+/g,` `);t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function Wl(e){var t=new $;return e.replace(/\r?\n[\t ]+/g,` `).split(`\r`).map(function(e){return e.indexOf(`
64`)===0?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(`:`),r=n.shift().trim();if(r){var i=n.join(`:`).trim();try{t.append(r,i)}catch(e){console.warn(`Response `+e.message)}}}),t}zl.call(Hl.prototype);function Gl(e,t){if(!(this instanceof Gl))throw TypeError(`Please use the "new" operator, this DOM object constructor cannot be called as a function.`);if(t||={},this.type=`default`,this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw RangeError(`Failed to construct 'Response': The status provided (0) is outside the range [200, 599].`);this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?``:``+t.statusText,this.headers=new $(t.headers),this.url=t.url||``,this._initBody(e)}zl.call(Gl.prototype),Gl.prototype.clone=function(){return new Gl(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new $(this.headers),url:this.url})},Gl.error=function(){var e=new Gl(null,{status:200,statusText:``});return e.ok=!1,e.status=0,e.type=`error`,e};var Kl=[301,302,303,307,308];Gl.redirect=function(e,t){if(Kl.indexOf(t)===-1)throw RangeError(`Invalid status code`);return new Gl(null,{status:t,headers:{location:e}})};var ql=Z.DOMException;try{new ql}catch{ql=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},ql.prototype=Object.create(Error.prototype),ql.prototype.constructor=ql}function Jl(e,t){return new Promise(function(n,r){var i=new Hl(e,t);if(i.signal&&i.signal.aborted)return r(new ql(`Aborted`,`AbortError`));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var e={statusText:a.statusText,headers:Wl(a.getAllResponseHeaders()||``)};e.status=i.url.indexOf(`file://`)===0&&(a.status<200||a.status>599)?200:a.status,e.url=`responseURL`in a?a.responseURL:e.headers.get(`X-Request-URL`);var t=`response`in a?a.response:a.responseText;setTimeout(function(){n(new Gl(t,e))},0)},a.onerror=function(){setTimeout(function(){r(TypeError(`Network request failed`))},0)},a.ontimeout=function(){setTimeout(function(){r(TypeError(`Network request timed out`))},0)},a.onabort=function(){setTimeout(function(){r(new ql(`Aborted`,`AbortError`))},0)};function s(e){try{return e===``&&Z.location.href?Z.location.href:e}catch{return e}}if(a.open(i.method,s(i.url),!0),i.credentials===`include`?a.withCredentials=!0:i.credentials===`omit`&&(a.withCredentials=!1),`responseType`in a&&(Q.blob?a.responseType=`blob`:Q.arrayBuffer&&(a.responseType=`arraybuffer`)),t&&typeof t.headers==`object`&&!(t.headers instanceof $||Z.Headers&&t.headers instanceof Z.Headers)){var c=[];
64Object.getOwnPropertyNames(t.headers).forEach(function(e){c.push(Al(e)),a.setRequestHeader(e,jl(t.headers[e]))}),i.headers.forEach(function(e,t){c.indexOf(t)===-1&&a.setRequestHeader(t,e)})}else i.headers.forEach(function(e,t){a.setRequestHeader(t,e)});i.signal&&(i.signal.addEventListener(`abort`,o),a.onreadystatechange=function(){a.readyState===4&&i.signal.removeEventListener(`abort`,o)}),a.send(typeof i._bodyInit>`u`?null:i._bodyInit)})}Jl.polyfill=!0,Z.fetch||(Z.fetch=Jl,Z.Headers=$,Z.Request=Hl,Z.Response=Gl);var Yl=El(self.fetch.bind(self)),Xl=1;function Zl(e){var t=Object.create(null),n=Object.create(null);return W(e)&&e.forEach(function(e){t[e.message]=e,typeof e.extensions?.code==`string`&&(n[e.extensions.code]=e)}),{persistedQueryNotSupported:!!(t.PersistedQueryNotSupported||n.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!!(t.PersistedQueryNotFound||n.PERSISTED_QUERY_NOT_FOUND)}}var Ql={disable:function(e){return e.meta.persistedQueryNotSupported},retry:function(e){var t=e.meta;return t.persistedQueryNotSupported||t.persistedQueryNotFound},useGETForHashedQueries:!1};function $l(e){return e.query.definitions.some(function(e){return e.kind===`OperationDefinition`&&e.operation===`mutation`})}var eu=function(e){var t;function n(){t=void 0}A(e&&(typeof e.sha256==`function`||typeof e.generateHash==`function`),55);var r=po(Ql,e),i=r.sha256,a=r.generateHash,o=a===void 0?function(e){return Promise.resolve(i(aa(e)))}:a,s=r.disable,c=r.retry,l=r.useGETForHashedQueries,u=!0,d=function(e){return new Promise(function(t){return t(o(e))})};function f(e){if(!e||typeof e!=`object`)return d(e);t||=new xr(Cr[`PersistedQueryLink.persistedQueryHashes`]||2e3);var n=t.get(e);return n||t.set(e,n=d(e)),n}return Object.assign(new Ao(function(e,t){A(t,56);var r=e.query;return new G(function(i){var a,o=!1,d,p=!1,m=function(r,i){var l=r.response,f=r.networkError;if(!o&&(l&&l.errors||f)){o=!0;var m=[],g=l&&l.errors;W(g)&&m.push.apply(m,g);var _=void 0;typeof f?.result!=`string`&&(_=f&&f.result&&f.result.errors),W(_)&&m.push.apply(m,_);var v={response:l,networkError:f,operation:e,graphQLErrors:W(m)?m:void 0,meta:Zl(m)};if(u=!s(v),u||n(),c(v)){a&&a.unsubscribe(),e.setContext({http:{includeQuery:!0,includeExtensions:u},fetchOptions:{method:`POST`}}),p&&e.setContext({fetchOptions:d}),a=t(e).subscribe(h);return}}i()},h={next:function(e){m({response:e},function(){return i.next(e)})},error:function(e){m({networkError:e},function(){return i.error(e)})},complete:i.complete.bind(i)};return e.setContext({http:{includeQuery:!u,includeExtensions:u}}),l&&u&&!$l(e)&&(e.setContext(function(e){var t=e.fetchOptions,n=t===void 0?{}:t;return d=n,{fetchOptions:D(D({},n),{method:`GET`})}}),p=!0),u?f(r).then(function(n){e.extensions.persistedQuery={version:Xl,sha256Hash:n},a=t(e).subscribe(h)}).catch(i.error.bind(i)):a=t(e).subscribe(h),function(){a&&a.unsubscribe()}})}),{resetHashCache:n},globalThis.__DEV__===!1?{}:{getMemoryInternals:function(){return{PersistedQueryLink:{persistedQueryHashes:t?.size??0}}}})},tu=e=>{let t=new DataView(e),n=``;for(let e=0;e<t.byteLength;e+=4)n+=t.getUint32(e).toString(16).padStart(8,`0`);return n},nu=(e=>async(t,{outputFormat:n=`hex`}={})=>{typeof t==`string`&&(t=new globalThis.TextEncoder().encode(t));let r=await globalThis.crypto.subtle.digest(e,t);return n===`hex`?tu(r):r})(`SHA-256`),ru=new us({uri:`https://media.api.delfi.lv/media/v1/graphql`,fetch:Yl}),iu=new ul({link:eu({useGETForHashedQueries:!0,sha256:nu}).concat(ru),cache:new qc,defaultOptions:{query:{fetchPolicy:`no-cache`,errorPolicy:`all`}}}),au=`query pc_getAssets($input: GetAssetsInput!, $collectionInput: GetAssetsInput!) {
65  data: getAssets(input: $input) {
66    items {
67      ...on GalleryAsset {
68        id
69        metadata {
70          adsDisabled
71          galleryPreviewImage {
72            id
73            metadata {
74              title
75              authors
76              credit
77            }
78          }
79        }
80        images(input: $collectionInput) {
81          items {
82            ...on ImageAsset {
83              id
84              metadata {
85                description
86                title
87                authors
88                credit
89              }
90            }
91          }
92          pager {
93            count
94            limit
95            offset
96          }
97        }
98      }
99    }
100  }
101}`,ou=async e=>
101{let{input:t,collectionInput:n}=e,r={variables:{input:{id:t.id,pager:{limit:t.pager?.limit??1,offset:t.pager?.offset??0}},collectionInput:n}},i=Object.assign({query:bl`
102        ${au}
103      `},r),{data:a}=await iu.query(i);return a.data},su=class{constructor(e){E(this,`_id`,``),E(this,`_isFetching`,!1),E(this,`gallery`,{id:``,images:{items:[],pager:{count:0,limit:500,offset:0}},metadata:{adsDisabled:!1}}),E(this,`activePictureIndex`,0),this._id=e}async fetchInitialGallery(){await this.fetch(0)}async fetch(e){let t=e??this.gallery.images.pager.offset+this.gallery.images.pager.limit;if(t!==0&&!this.shouldFetchMore(t)||this._isFetching)return;this._isFetching=!0;let n={offset:t,limit:this.gallery.images.pager.limit},r=(await ou({input:{id:this._id},collectionInput:{pager:n}})).items[0];if(!r){this._isFetching=!1;return}t<=0?this.gallery=r:(this.gallery.images.items.push(...r.images.items),this.gallery.images.pager=r.images.pager),this._isFetching=!1}shouldFetchMore(e){return this.gallery.images.pager.count>e}},cu=`https://images.delfi.lv/media-api-image-cropper/v1`,lu=`jpg`;function uu({id:e,url:t=cu,extension:n=lu}){return`${t}/${e}.${n}`}var du=[`src`],fu=d({name:`ThumbComponent`,__name:`Thumb`,props:{picture:{},isActive:{type:Boolean},isLightboxed:{type:Boolean}},setup(e){let t=e;return(n,a)=>(i(),w(`div`,{class:o([`thumb`,{"thumb--inactive":!t.isActive,"thumb--bordered":t.isActive,"thumb--lightboxed":e.isLightboxed}])},[S(`div`,{class:`thumb__image`,style:v({backgroundImage:`url(${r(uu)({id:t.picture.id})}?w=240)`})},[S(`img`,{src:`${r(uu)({id:t.picture.id})}?w=240`,style:{visibility:`hidden`}},null,8,du)],4)],2))}}),pu=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},mu=pu(fu,[[`__scopeId`,`data-v-e84132db`]]),hu=`<svg xmlns="http://www.w3.org/2000/svg" width="8" height="6" viewBox="0 0 8 6"><path fill-rule="evenodd" d="M4.119 3.87L1.139.89a.5.5 0 00-.707.708l2.98 2.98H3.41l.708.708v-.001h.001l.708-.707 2.979-2.98a.502.502 0 000-.708.5.5 0 00-.707 0l-2.98 2.98z"/></svg>
104`,gu=`<svg viewBox="0 0 5 8" width="5" height="8" xmlns="http://www.w3.org/2000/svg"><path d="M4.065 0L.006 4l4.059 3.999.929-.902L1.85 4 4.994.902z" fill-rule="evenodd"/></svg>
105`,_u=`<svg viewBox="0 0 5 8" width="5" height="8" xmlns="http://www.w3.org/2000/svg" stroke="none"><path d="M.935 8l4.059-4L.935.001.006.903 3.15 4 .006 7.098z"/></svg>
106`,vu=`<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.657 3.343A8 8 0 1 1 3.343 14.657 8 8 0 0 1 14.657 3.343M6.36 9.263h5.359" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
107`,yu=`<svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.657 3.343A8 8 0 1 1 3.343 14.657 8 8 0 0 1 14.657 3.343M6.36 9.263h5.359M9.039 11.942V6.583" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
108`,bu=`<svg width="12" height="12" viewBox="0 0 12 12" stroke="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="m7.34 6 4.383-4.383a.946.946 0 1 0-1.34-1.34L6 4.66 1.618.278a.948.948 0 0 0-1.34 1.339L4.66 6 .278 10.383a.946.946 0 1 0 1.34 1.34L6 7.34l4.383 4.382a.944.944 0 0 0 1.34 0 .946.946 0 0 0 0-1.339L7.34 6Z"/></svg>
109`,xu=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
110<path d="M10.8293 13.099C10.5172 12.8266 10.0434 12.8587 9.77103 13.1707C9.49862 13.4827 9.53073 13.9565 9.84276 14.2289L10.336 13.664L10.8293 13.099ZM16.9951 13.664L17.4884 14.2289C17.5011 14.2178 17.5135 14.2063 17.5254 14.1943L16.9951 13.664ZM11.4753 4.80497C11.1793 5.09474 11.1743 5.56959 11.4641 5.86557C11.7538 6.16155 12.2287 6.16658 12.5247 5.8768L12 5.34088L11.4753 4.80497ZM13.1707 10.9009C13.4827 11.1734 13.9565 11.1412 14.2289 10.8292C14.5014 10.5172 14.4692 10.0434 14.1572 9.77098L13.664 10.336L13.1707 10.9009ZM7.00486 10.336L6.51161 9.77098C6.49886 9.78211 6.48649 9.79367 6.47452 9.80564L7.00486 10.336ZM12.5247 19.195C12.8207 18.9052 12.8257 18.4304 12.5359 18.1344C12.2461 17.8384 11.7713 17.8334 11.4753 18.1232L12 18.6591L12.5247 19.195ZM10.336 13.664L9.84276 14.2289C12.0327 16.1409 15.2984 16.1409 17.4884 14.2289L16.9951 13.664L16.5019 13.099C14.877 14.5175 12.4541 14.5175 10.8293 13.099L10.336 13.664ZM16.9951 13.664L17.5254 14.1943L19.1894 12.5303L18.6591 12L18.1288 11.4697L16.4648 13.1336L16.9951 13.664ZM18.6591 12L19.195 12.5247C21.2884 10.3865 21.2703 6.96154 19.1543 4.84563L18.624 5.37596L18.0937 5.90629C19.6282 7.44079 19.6413 9.92463 18.1232 11.4753L18.6591 12ZM18.624 5.37596L19.1543 4.84563C17.0384 2.72972 13.6135 2.71158 11.4753 4.80497L12 5.34088L12.5247 5.8768C14.0753 4.35863 16.5592 4.37178 18.0937 5.90629L18.624 5.37596ZM13.664 10.336L14.1572 9.77098C11.9673 7.85907 8.70156 7.85907 6.51161 9.77098L7.00486 10.336L7.49811 10.9009C9.12293 9.48241 11.5459 9.48241 13.1707 10.9009L13.664 10.336ZM7.00486 10.336L6.47452 9.80564L4.81055 11.4697L5.34088 12L5.87122 12.5303L7.5352 10.8663L7.00486 10.336ZM5.34088 12L4.80497 11.4753C2.71158 13.6135 2.72972 17.0384 4.84563 19.1543L5.37596 18.624L5.90629 18.0937C4.37178 16.5592 4.35863 14.0753 5.8768 12.5247L5.34088 12ZM5.37596 18.624L4.84563 19.1543C6.96154 21.2703 10.3865 21.2884 12.5247 19.195L12 18.6591L11.4753 18.1232C9.92463 19.6413 7.44079 19.6282 5.90629 18.0937L5.37596 18.624Z" fill="#EDF2F4"/>
111</svg>
112`,Su=`<svg width="19" height="17" viewbox="0 0 19 17" fill="none" stroke="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.29 15.35H4.528l2.734-3.25a.204.204 0 0 1 .285-.027l1.527 1.208c.298.235.676.346 1.052.3.38-.04.72-.227.958-.521l2.725-3.37c.07-.088.2-.104.288-.033l3.215 2.545v2.136c0 .557-.458 1.01-1.021 1.01ZM2.2 14.34V3.02c0-.557.458-1.01 1.022-1.01H16.29c.563 0 1.02
1121.453 1.021 1.01v7.63l-2.45-1.94a1.446 1.446 0 0 0-2.01.222l-2.726 3.371a.207.207 0 0 1-.136.075.193.193 0 0 1-.15-.043l-1.527-1.209a1.451 1.451 0 0 0-1.992.2L2.973 15.3c-.44-.112-.773-.49-.773-.96ZM16.29.796H3.223C1.982.797.974 1.794.974 3.02v11.32c0 1.223 1.005 2.218 2.242 2.222H16.29c1.24 0 2.247-.996 2.247-2.223V3.02c0-1.226-1.008-2.223-2.247-2.223Z"/><path d="M6.488 5.244c.563 0 1.021.453 1.021 1.01 0 .557-.458 1.01-1.021 1.01a1.017 1.017 0 0 1-1.022-1.01c0-.557.459-1.01 1.022-1.01Zm0 3.234c1.24 0 2.247-.997 2.247-2.224 0-1.226-1.008-2.223-2.247-2.223-1.24 0-2.248.997-2.248 2.223 0 1.227 1.008 2.224 2.248 2.224Z"/></svg>
113`,Cu=`<svg viewbox="0 0 13 12" width="13" height="12" xmlns="http://www.w3.org/2000/svg"><g stroke="none" fill-rule="evenodd"><path d="M10.818 10.868H2.441a1.05 1.05 0 01-1.048-1.052V2.447A1.05 1.05 0 012.44 1.395h8.377a1.05 1.05 0 011.048 1.052v7.369a1.05 1.05 0 01-1.048 1.052z" stroke="#FFF" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.534 5.87c-.722 0-1.31-.59-1.31-1.316 0-.726.588-1.316 1.31-1.316.722 0 1.31.59 1.31 1.316 0 .726-.588 1.316-1.31 1.316m6.284-4.08H2.44a.657.657 0 00-.654.659v7.368c0 .359.287.648.642.655l2.1-2.532a.79.79 0 011.094-.111l.98.787a.25.25 0 00.191.055.258.258 0 00.176-.096L8.716 6.38a.78.78 0 011.105-.124l1.652 1.328V2.449a.657.657 0 00-.655-.658" fill="#FFF"/></g></svg>
114`,wu=`<svg width="22" height="11" stroke="none" xmlns="http://www.w3.org/2000/svg"><rect y=".5" width="4" height="4" rx="1" /><rect x="6" y=".5" width="4" height="4" rx="1" /><rect x="12" y=".5" width="4" height="4" rx="1" /><rect x="18" y=".5" width="4" height="4" rx="1" /><rect y="6.5" width="4" height="4" rx="1" /><rect x="6" y="6.5" width="4" height="4" rx="1" /><rect x="12" y="6.5" width="4" height="4" rx="1" /><rect x="18" y="6.5" width="4" height="4" rx="1" /></svg>
115`,Tu=`<svg width="15" height="15" viewBox="0 0 15 15" stroke="none" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd" clip-rule="evenodd"><path d="m13.622 7.965-.315.314a.668.668 0 0 1-.943-.943l.314-.314c1.3-1.3 1.3-3.415 0-4.714a3.337 3.337 0 0 0-4.713 0L6.393 3.879a2.892 2.892 0 0 0 0 4.086.667.667 0 0 1-.942.943 4.228 4.228 0 0 1 0-5.972l1.57-1.571a4.672 4.672 0 0 1 6.6 0 4.672 4.672 0 0 1 0 6.6Z" /><path d="m9.536 12.05-1.572 1.572a4.672 4.672 0 0 1-6.599 0 4.67 4.67 0 0 1 0-6.6l.314-.314a.667.667 0 0 1 .943.942l-.314.315a3.337 3.337 0 0 0 0 4.714c1.3 1.3 3.414 1.3 4.713 0l1.572-1.572a2.892 2.892 0 0 0 0-4.085.667.667 0 1 1 .943-.943 4.228 4.228 0 0 1 0 5.971Z" /></g></svg>
116`,Eu=`<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.553 10.28a2.667 2.667 0 1 1-3.772 3.772 2.667 2.667 0 0 1 3.772-3.772M19.219 4.947a2.667 2.667 0 1 1-3.772 3.772 2.667 2.667 0 0 1 3.772-3.772M19.219 15.613a2.667 2.667 0 1 1-3.772 3.772 2.667 2.667 0 0 1 3.772-3.772M9.04 10.976l5.92-2.96M9.04 13.356l5.92 2.96" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
117`,Du=`<svg width="9" height="18" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 9 18"><defs><path id="fb-icon" d="M0 0h9v18H0z"/></defs><g stroke="none" fill-rule="evenodd"><mask id="fb-mask" fill="#fff"><use xlink:href="#fb-icon"/></mask><path d="M8.123 9.063l.451-2.917H5.756V4.254c0-.797.393-1.575 1.655-1.575h1.282V.197S7.53 0 6.418 0C4.098 0 2.58 1.396 2.58 3.925v2.221H0v2.917h2.58v7.048h3.176V9.063h2.367z" mask="url(#fb-mask)"/></g></svg>
118`,Ou=`<svg width="15" height="12" viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg"><path stroke="none" d="M13.971.257a5.829 5.829 0 01-1.885.772A2.914 2.914 0 009.943 0a3 3 0 00-2.914 3c.002.231.031.461.085.686A8.314 8.314 0 011.03.514C.752.982.605 1.514.6 2.057A3 3 0 001.886 4.63a3.514 3.514 0 01-1.372-.343 3.086 3.086 0 002.4 2.914H1.63A3 3 0 004.37 9.343a5.829 5.829 0 01-3.685 1.286H0A8.229 8.229 0 004.543 12a8.486 8.486 0 008.4-8.657v-.429A6.086 6.086 0 0014.4 1.371c-.541.26-1.12.434-1.714.515A3 3 0 0013.97.257z" fill-rule="evenodd"/></svg>
119`,ku=`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
120<g clip-path="url(#clip0_630_1072)">
121<path d="M17.1687 3.80723H19.9157L13.9157 10.7108L21 20.0723H15.4337L11.0964 14.3976L6.10843 20.0723H3.36145L9.79518 12.6988L3 3.80723H8.71084L12.6506 9.01205L17.1687 3.80723ZM16.1928 18.4096H17.7108L7.87952 5.36145H6.21687L16.1928 18.4096Z" fill="#EDF2F4"/>
122</g>
123<defs>
124<clipPath id="clip0_630_1072">
125<rect width="18" height="16.2651" fill="white" transform="translate(3 3.80723)"/>
126</clipPath>
127</defs>
128</svg>
129`;function Au(e,t){for(let n=0;n<t.length;n++)if(e===t[n])return!0;return!1}function ju(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}var Mu=[`innerHTML`],Nu=[`angle-down`,`angle-left`,`angle-right`,`arrow-left`,`close`,`social-facebook`,`social-twitter`,`share`,`link`,`gallery`,`gallery-border`,`group`,`circle-plus`,`circle-minus`,`x-light`,`copy-light`],Pu=d({__name:`BaseIcon`,props:{name:{type:String,default:()=>``,required:!0,validator(e){let t=Au(e,Nu);return t||console.warn(`[BaseIcon] '${e}' does not exists in iconNames list`),t}}},setup(e){let t=e,n=Object.assign({"../../assets/svg/angle-down.svg":hu,"../../assets/svg/angle-left.svg":gu,"../../assets/svg/angle-right.svg":_u,"../../assets/svg/circle-minus.svg":vu,"../../assets/svg/circle-plus.svg":yu,"../../assets/svg/close.svg":bu,"../../assets/svg/copy-light.svg":xu,"../../assets/svg/gallery-border.svg":Su,"../../assets/svg/gallery.svg":Cu,"../../assets/svg/group.svg":wu,"../../assets/svg/link.svg":Tu,"../../assets/svg/share.svg":Eu,"../../assets/svg/social-facebook.svg":Du,"../../assets/svg/social-twitter.svg":Ou,"../../assets/svg/x-light.svg":ku}),r=le(()=>n[`../../assets/svg/${t.name}.svg`]??``);return(e,t)=>r.value?(i(),w(`i`,{key:0,innerHTML:r.value},null,8,Mu)):T(``,!0)}}),Fu=d({components:{Thumb:mu,BaseIcon:Pu},props:{gallery:{type:Object,required:!0},activePictureIndex:{type:Number,required:!1,default:null},isLightboxed:{type:Boolean,required:!1},showThumbWrapper:{type:Boolean,required:!1,default:!0}},inject:[`previewMode`],watch:{activePictureIndex(){this.scrollIntoView()}},methods:{scrollIntoView(){if(!Number.isFinite(this.activePictureIndex))return;let e=this.$refs.thumbRow,t=e?.children[this.activePictureIndex];if(!e||!t)return;let n=t.offsetLeft,r=t.clientWidth,i=e.scrollLeft,a=e.clientWidth;i<=n&&n+r<=i+a||(this.$refs.thumbRow.scrollLeft=n)},scrollThumb(e){let t=this.$refs.thumbRow,n=t.children[0].clientWidth+12,r=this.$refs.thumbRow.clientWidth,i=this.$refs.thumbRow.scrollLeft+(e?r-n:-(r-n));t.scrollWidth-500<i+r&&this.$emit(`fetch-more-images`),this.$refs.thumbRow.scrollLeft=i}},mounted(){this.scrollIntoView();let e={left:0,x:0,startTime:0},t=this.$refs.thumbRow,n=n=>{let a=n.touches?n.touches[0]:n;t.style.cursor=`grabbing`,t.style.userSelect=`none`,t.style.scrollBehavior=`unset`,e={left:t.scrollLeft,x:a.clientX,startTime:Date.now()},(!this.previewMode||this.isLightboxed)&&(t.addEventListener(`mousemove`,r),t.addEventListener(`touchmove`,r)),t.addEventListener(`mouseleave`,i),t.addEventListener(`mouseup`,i),t.addEventListener(`touchend`,i)},r=n=>{let r=(n.touches?n.touches[0]:n).clientX-e.x,i=e.left-r,a=t.clientWidth+i;t.scrollWidth-500<a&&this.$emit(`fetch-more-images`),t.scrollLeft=i},i=n=>{t.style.cursor=`grab`,t.style.removeProperty(`user-select`),t.style.scrollBehavior=`smooth`;let a=n.touches?n.touches[0]:n,o=Math.abs(e.x-a.clientX);if(Date.now()-e.startTime<300&&o<25){let e=a.target?.getAttribute(`data-index`)??void 0,t=Number(e);if(t>=0){let e=t;this.isLightboxed||(e=e===0?e:e-1),this.$emit(`toggle-lightbox`,e)}}t.removeEventListener(`mousemove`,r),t.removeEventListener(`touchmove`,r),t.removeEventListener(`mouseleave`,i),t.removeEventListener(`mouseup`,i),t.removeEventListener(`touchend`,i)};t.addEventListener(`mousedown`,n),t.addEventListener(`touchstart`,n)}}),Iu={class:`thumb-row-wrapper`},Lu={class:`row thumb-row`,ref:`thumbRow`};function Ru(e,t,n,r,a,s){let c=_(`BaseIcon`),l=_(`Thumb`);
129return i(),w(`div`,{class:o([`thumb-wrapper`,{"thumb-wrapper--collapsed":!e.showThumbWrapper,"thumb-wrapper--lightboxed":e.isLightboxed}])},[e.isLightboxed?(i(),w(`button`,{key:0,class:`thumb-wrapper__nav thumb-wrapper__nav--prev`,onClick:t[0]||=t=>e.scrollThumb(!1)},[b(c,{name:`angle-left`})])):T(``,!0),S(`div`,Iu,[S(`div`,Lu,[(i(!0),w(se,null,oe(e.gallery.images.items,(t,n)=>(i(),w(`div`,{class:`thumb-col`,key:n},[b(l,{"data-index":e.isLightboxed?n:n+1,picture:t,"is-active":e.activePictureIndex===n,"is-lightboxed":e.isLightboxed},null,8,[`data-index`,`picture`,`is-active`,`is-lightboxed`])]))),128))],512)]),e.isLightboxed?(i(),w(`button`,{key:1,class:`thumb-wrapper__nav thumb-wrapper__nav--next`,onClick:t[1]||=t=>e.scrollThumb(!0)},[b(c,{name:`angle-right`})])):T(``,!0)],2)}var zu=pu(Fu,[[`render`,Ru],[`__scopeId`,`data-v-49a01164`]]),Bu=class{constructor(e){E(this,`properties`),E(this,`element`),E(this,`elementPosition`),E(this,`eventType`),E(this,`handlers`,{}),E(this,`startX`,0),E(this,`startY`,0),E(this,`doubleClickTimeout`),E(this,`lastClick`,0),E(this,`lastTap`,0),E(this,`doubleTapTimeout`),E(this,`doubleTapMinTimeout`,300),E(this,`touchstartTime`,0),E(this,`i`,0),E(this,`isMousedown`,!1),E(this,`touchListeners`,{touchstart:`handleTouchstart`,touchmove:`handleTouchmove`,touchend:`handleTouchend`}),E(this,`mouseListeners`,{mousedown:`handleMousedown`,mousemove:`handleMousemove`,mouseup:`handleMouseup`}),E(this,`otherListeners`,{resize:`handleResize`}),E(this,`handleTouchstart`,e=>{this.elementPosition=this.getElementPosition(),this.touchstartTime=new Date().getTime(),this.eventType===void 0&&this.getTouchstartPosition(e),this.runHandler(`touchstart`,e)}),E(this,`handleTouchmove`,e=>{let t=e.touches;this.detectPan(t)&&this.runHandler(`pan`,e),this.detectPinch(e)&&this.runHandler(`pinch`,e)}),E(this,`handleTouchend`,e=>{e.preventDefault();let t=e.touches;this.detectDoubleTap()&&!this.isMousedown&&this.runHandler(`double-tap`,e),this.runHandler(`touchend`,e),this.eventType=`touchend`,t&&t.length===0&&(this.eventType=void 0,this.i=0)}),E(this,`handleMousedown`,e=>{e.preventDefault(),this.isMousedown=!0,this.elementPosition=this.getElementPosition(),this.touchstartTime=new Date().getTime(),this.eventType===void 0&&this.getMousedownPosition(e),this.detectDoubleClick()&&this.runHandler(`double-tap`,e),this.runHandler(`mousedown`,e)}),E(this,`handleMousemove`,e=>{if(!this.isMousedown)return;this.runHandler(`pan`,e);let t=this.detectLinearSwipe(e);switch(t){case`horizontal-swipe`:e.swipeType=`horizontal-swipe`,this.runHandler(`horizontal-swipe`,e);break;case`vertical-swipe`:e.swipeType=`vertical-swipe`,this.runHandler(`vertical-swipe`,e)}(t||this.eventType===`horizontal-swipe`||this.eventType===`vertical-swipe`)&&this.handleLinearSwipe(e)}),E(this,`handleMouseup`,e=>{this.isMousedown=!1,this.runHandler(`mouseup`,e),this.eventType=void 0,this.i=0}),E(this,`handleResize`,e=>{this.runHandler(`resize`,e)}),this.properties=e,this.element=this.properties.element,this.elementPosition=this.getElementPosition(),this.toggleEventListeners(`addEventListener`)}destroy(){this.toggleEventListeners(`removeEventListener`)}toggleEventListeners(e){let t=Object.assign(this.touchListeners,this.mouseListeners);this.properties.resize&&(t=Object.assign(t,this.otherListeners));for(let n in t){let r=t[n];n===`resize`?(e===`addEventListener`&&window.addEventListener(n,this[r],!1),e===`removeEventListener`&&window.removeEventListener(n,this[r],!1)):n===`mouseup`||n===`mousemove`?(e===`addEventListener`&&document.addEventListener(n,this[r],!1),e===`removeEventListener`&&document.removeEventListener(n,this[r],!1)):(e===`addEventListener`&&this.element.addEventListener(n,this[r],!1),e===`removeEventListener`&&this.element.removeEventListener(n,this[r],!1))}}handleLinearSwipe(e){this.i++,this.i>3&&(this.eventType=this.getLinearSwipeType(e)),this.eventType===`horizontal-swipe`&&this.runHandler(`horizontal-swipe`,e),this.eventType===`vertical-swipe`&&this.runHandler(`vertical-swipe`,e)}runHandler(e,t){this.handlers[e]&&this.handlers[e](t)}detectPan(e){return e.length===1&&!this.eventType||this.eventType===`pan`}detectDoubleTap(){if(this.eventType!=null)return;let e=new Date().getTime(),t=e-this.lastTap;if(clearTimeout(this.doubleTapTimeout),t<this.doubleTapMinTimeout&&t>0)return!0;this.doubleTapTimeout=setTimeout(()=>{clearTimeout(this.doubleTapTimeout)},this.doubleTapMinTimeout),this.lastTap=e}detectDoubleClick(){if(this.eventType!=null)return;let e=new Date().getTime(),t=e-this.lastClick;if(clearTimeout(this.doubleClickTimeout),t<this.doubleTapMinTimeout&&t>0)return!0;this.doubleClickTimeout=setTimeout(()=>{clearTimeout(this.doubleClickTimeout)},this.doubleTapMinTimeout),this.lastClick=e}detectPinch(e){return e.touches.length===2&&this.eventType===void 0||this.eventType===`pinch`}detectLinearSwipe(e){let t=e.touches;if(t){if(t.length===1&&!this.eventType||this.eventType===`horizontal-swipe`||this.eventType===`vertical-swi
129pe`)return this.getLinearSwipeType(e)}else if(!this.eventType||this.eventType===`horizontal-swipe`||this.eventType===`vertical-swipe`)return this.getLinearSwipeType(e)}getLinearSwipeType(e){if(this.eventType!==`horizontal-swipe`&&this.eventType!==`vertical-swipe`){let t=Math.abs(this.moveLeft(0,e)-this.startX);return Math.abs(this.moveTop(0,e)-this.startY)*3>t?`vertical-swipe`:`horizontal-swipe`}return this.eventType}getElementPosition(){return this.element.getBoundingClientRect()}getTouchstartPosition(e){this.startX=e.touches[0].clientX-this.elementPosition.left,this.startY=e.touches[0].clientY-this.elementPosition.top}getMousedownPosition(e){this.startX=e.clientX-this.elementPosition.left,this.startY=e.clientY-this.elementPosition.top}moveLeft(e,t){let n=t.touches;return n?n[e].clientX-this.elementPosition.left:t.clientX-this.elementPosition.left}moveTop(e,t){let n=t.touches;return n?n[e].clientY-this.elementPosition.top:t.clientY-this.elementPosition.top}on(e,t){e&&(this.handlers[e]=t)}},Vu={doubleTap:!0,doubleTapScale:3,transitionDuration:200,limitZoom:`original image size`,minScale:0,wheel:!0,draggableImage:!0,listeners:`auto`,zoomControlScale:2},Hu=class{constructor(e){E(this,`properties`),E(this,`touches`),E(this,`element`),E(this,`elementTarget`),E(this,`parentElement`),E(this,`scale`,1),E(this,`initialScale`,1),E(this,`elementPosition`),E(this,`eventType`),E(this,`startX`,0),E(this,`startY`,0),E(this,`moveX`,0),E(this,`moveY`,0),E(this,`initialMoveX`,0),E(this,`initialMoveY`,0),E(this,`moveXC`,0),E(this,`moveYC`,0),E(this,`draggingMode`,!1),E(this,`distance`,0),E(this,`initialDistance`,0),E(this,`events`,{}),E(this,`maxScale`,3),E(this,`disableTransformElement`,!1),E(this,`handleTouchstart`,e=>{this.getElementPosition(),this.eventType===void 0&&this.getTouchstartPosition(e)}),E(this,`handleTouchend`,e=>{if(e.type===`touchend`){this.draggingMode=!1;let t=e.touches;this.scale<1&&(this.scale=1),this.properties.autoZoomOut&&this.eventType===`pinch`&&(this.scale=1),(this.eventType===`pinch`||this.eventType===`pan`)&&this.alignImage(),(this.eventType===`pinch`||this.eventType===`pan`||this.eventType===`horizontal-swipe`||this.eventType===`vertical-swipe`)&&this.updateInitialValues(),this.eventType=`touchend`,t&&t.length===0&&(this.eventType=void 0)}e.type===`mouseup`&&(this.draggingMode=!1,this.updateInitialValues(),this.eventType=void 0)}),E(this,`handlePan`,e=>{if(this.scale<=1||this.properties.disablePan)return;e.preventDefault();let{clientX:t,clientY:n}=this.getClientPosition(e,0);this.eventType||(this.startX=t-this.elementPosition.left,this.startY=n-this.elementPosition.top),this.eventType=`pan`,this.moveX=this.initialMoveX+(this.moveLeft(e,0)-this.startX),this.moveY=this.initialMoveY+(this.moveTop(e,0)-this.startY),this.properties.limitPan&&(this.limitPanY(),this.limitPanX()),e.type===`mousemove`&&this.centeringImage(),this.transformElement(0)}),E(this,`handleDoubleTap`,e=>{this.toggleScale(e)}),E(this,`handlePinch`,e=>{if(e.preventDefault(),this.eventType===void 0||this.eventType===`pinch`){let t=e.touches?e.touches:e;if(!this.eventType){this.initialDistance=this.getDistance(t);let n=this.moveLeft(e,0),r=this.moveLeft(e,1),i=this.moveTop(e,0),a=this.moveTop(e,1);this.moveXC=(n+r)/2-this.initialMoveX,this.moveYC=(i+a)/2-this.initialMoveY}this.eventType=`pinch`,this.distance=this.getDistance(t),this.scale=this.initialScale*(this.distance/this.initialDistance),this.moveX=this.initialMoveX-(this.distance/this.initialDistance*this.moveXC-this.moveXC),this.moveY=this.initialMoveY-(this.distance/this.initialDistance*this.moveYC-this.moveYC),this.handleLimitZoom(),this.properties.limitPan&&(this.limitPanY(),this.limitPanX()),this.scale<=1&&(this.scale=1,this.moveX=1,this.moveY=1),this.transformElement(0)}}),E(this,`handleResize`,()=>{this.setAutoHeight()}),this.element=e.element,this.elementTarget=this.element.querySelector(`*`).tagName,this.parentElement=this.element.parentElement,this.properties=Object.assign({},Vu,e),this.pollLimitZoom(),this.touches=new Bu({element:e.element,listeners:this.properties.listeners,resize:this.properties.autoHeight}),this.setBasicStyles(),this.touches.on(`touchstart`,this.handleTouchstart),this.touches.on(`touchend`,this.handleTouchend),this.touches.on(`mousedown`,this.handleTouchstart),this.touches.on(`mouseup`,this.handleTouchend),this.touches.on(`pan`,this.handlePan),this.touches.on(`mousemove`,this.handlePan),this.touches.on(`pinch`,this.handlePinch
129),this.properties.doubleTap&&this.touches.on(`double-tap`,this.handleDoubleTap),this.properties.autoHeight&&this.touches.on(`resize`,this.handleResize)}emitEvent(e){this.properties.onScaleChange&&this.properties.onScaleChange(e)}handleLimitZoom(){let e=this.maxScale,t=this.properties.minScale||0;if(this.scale>e||this.scale<=t){let n=this.getImageWidth(),r=this.getImageHeight(),i=n*this.scale,a=r*this.scale,o=this.moveX/(i-n),s=this.moveY/(a-r);this.scale>e&&(this.scale=e),this.scale<=t&&(this.scale=t);let c=n*this.scale,l=r*this.scale;this.moveX=-Math.abs(o*(c-n)),this.moveY=-Math.abs(-s*(l-r))}}getLimitZoom(){return this.maxScale=this.properties.limitZoom||0,this.maxScale}moveLeft(e,t){return this.getClientPosition(e,t).clientX-this.elementPosition.left}moveTop(e,t){return this.getClientPosition(e,t).clientY-this.elementPosition.top}centeringImage(){let e=this.element.getElementsByTagName(this.elementTarget)[0],t=this.moveX,n=this.moveY;return this.moveY>0&&(this.moveY=0),this.moveX>0&&(this.moveX=0),e&&(this.limitPanY(),this.limitPanX()),e&&this.scale<1&&this.moveX<this.element.offsetWidth*(1-this.scale)&&(this.moveX=this.element.offsetWidth*(1-this.scale)),t!==this.moveX||n!==this.moveY}limitPanY(){let e=this.getImageHeight(),t=e*this.scale,n=this.parentElement.offsetHeight,r=this.element.offsetHeight;if(t<n)this.moveY=(n-r*this.scale)/2;else{let i=(e-r)*this.scale/2;this.moveY>i?this.moveY=i:t+Math.abs(i)-n+this.moveY<0&&(this.moveY=-(t+Math.abs(i)-n))}}limitPanX(){let e=this.getImageWidth(),t=e*this.scale,n=this.parentElement.offsetWidth,r=this.element.offsetWidth;if(t<n)this.moveX=(n-r*this.scale)/2;else{let i=(e-r)*this.scale/2;this.moveX>i?this.moveX=i:t+Math.abs(i)-n+this.moveX<0&&(this.moveX=-(e*this.scale+Math.abs(i)-n))}}setBasicStyles(){this.element.style.display=`flex`,this.element.style.alignItems=`center`,this.element.style.justifyContent=`center`,this.element.style.transformOrigin=`0 0`,this.setImageSize(),this.setDraggableImage()}removeBasicStyles(){this.element.style.display=``,this.element.style.alignItems=``,this.element.style.justifyContent=``,this.element.style.transformOrigin=``,this.removeImageSize(),this.removeDraggableImage()}setDraggableImage(){let e=this.getImageElement();e&&(e.draggable=this.properties.draggableImage)}removeDraggableImage(){let e=this.getImageElement();e&&(e.draggable=!0)}setImageSize(){let e=this.element.getElementsByTagName(this.elementTarget);e.length&&(e[0].style.maxWidth=`100%`,e[0].style.maxHeight=`100%`,this.setAutoHeight())}setAutoHeight(){let e=this.element.getElementsByTagName(this.elementTarget);if(!this.properties.autoHeight||!e.length)return;let t=e[0].getAttribute(`width`)/e[0].getAttribute(`height`),n=this.parentElement.offsetWidth;e[0].style.maxHeight=n/t+`px`}removeImageSize(){let e=this.element.getElementsByTagName(this.elementTarget);e.length&&(e[0].style.maxWidth=``,e[0].style.maxHeight=``)}getElementPosition(){this.elementPosition=this.element.parentElement.getBoundingClientRect()}getTouchstartPosition(e){let{clientX:t,clientY:n}=this.getClientPosition(e,0);this.startX=t-this.elementPosition.left,this.startY=n-this.elementPosition.top}getClientPosition(e,t){let n,r;if(e.type===`touchstart`||e.type===`touchmove`){let i=e.touches?e.touches:e;n=i[t].clientX,r=i[t].clientY}return(e.type===`mousedown`||e.type===`mousemove`)&&(n=e.clientX,r=e.clientY),{clientX:n,clientY:r}}resetScale(){this.scale=1,this.moveX=0,this.moveY=0,this.updateInitialValues(),this.transformElement(this.properties.transitionDuration)}updateInitialValues(){this.initialScale=this.scale,this.initialMoveX=this.moveX,this.initialMoveY=this.moveY}getDistance(e){return Math.sqrt((e[0].pageX-e[1].pageX)**2+(e[0].pageY-e[1].pageY)**2)}getImageHeight(){return this.element.getElementsByTagName(this.elementTarget)[0].offsetHeight}getImageWidth(){return this.element.getElementsByTagName(this.elementTarget)[0].offsetWidth}transformElement(e=0){this.disableTransformElement||(this.element.style.transition=`all ${e}ms`,this.element.style.transform=`matrix(${Number(this.scale)}, 0, 0,${Number(this.scale)},${Number(this.moveX)},${Number(this.moveY)})`,this.emitEvent({scale:this.scale,moveX:this.moveX,moveY:this.moveY}))}pollLimitZoom(){let e=setInterval(()=>{this.getLimitZoom()&&clearInterval(e)},10)}getImageElement(){let e=this.element.getElementsByTagName(this.elementTarget);return e.length?e[0]:null}changeScale(e){if(e<=1)this.resetScale();else if(e>1){this.scale=e;let t=this.element.offsetWidth,n=this.element.offsetHeight,r=t*this.scale/(t*this.initialScale),i=t/2-this.initialMoveX,a=n/2-this.initialMoveY;this.moveX=this.initialMoveX-(r*i-i),this.moveY=this.initialMoveY-(r*a-a),this.centeringImage(),this.updateInitialValues(),this.transformElement(this.properties.transitionDuration)}}toggleScale(e){if(this.initialScale===1){let t=this.properties.zoomControlScale||0,n=this.properties.doubleTapScale||3;if(e&&e.changedTouches){if(this.properties.doubleTapScale===void 0)return;let t=e.changedTouches;this.scale=this.initialScale*n,this.moveX=this.initialMoveX-(t[0].clientX-this.elementPosition.left)*(n-1),this.moveY=this.initialMoveY-(t[0].clientY-this.elementPosition.top)*(n-1)}else e?(this.scale=this.initialScale*(t+1),this.moveX=this.initialMoveX-(e.clientX-this.elementPosition.left)*(n-1),this.moveY=this.initialMoveY-(e.clientY-this.elementPosition.top)*(n-1)):(this.scale=this.initialScale*(t+1),this.moveX=this.initialMoveX-this.element.offsetWidth*(this.scale-1)/2,this.moveY=this.initialMoveY-this.element.offsetHeight*(this.scale-1)/2);this.centeringImage(),this.updateInitialValues(),this.transformElement(this.properties.transitionDuration)}else this.resetScale()}alignImage(){this.centeringImage()&&(this.updateInitialValues(),this.transformElement(this.properties.transitionDuration))}destroy(){this.removeBasicStyles(),this.touches.destroy()}},Uu=d({components:{BaseIcon:Pu},props:{theme:{validator(e){return Au(e,[`primary`,`secondary`,`tertiary`,`grey`,``])},type:String,default:()=>``,required:!1},size:{validator(e){return Au(e,[`auto`,`sm`,`lg`,`default`])},type:String,default:()=>`default`,required:!1},icon:{type:String,default:()=>``,required:!1},iconPosition:{validator(e){return Au(e,[`left`,`right`])},type:String,default:()=>`right`,required:!1},href:{type:String,default:()=>``,required:!1}},data(){return{showSlot:!0}},computed:{iconLeft(){return!!this.icon&&this.iconPosition===`left`},iconRight(){return!!this.icon&&this.iconPosition===`right`},classes(){let e=!this.showSlot&&!!this.icon;
129return[`btn`,{[`btn-${this.theme}`]:!!this.theme,[`btn-${this.size}`]:!e}]},tagProps(){let{$attrs:e,href:t,classes:n}=this;return{...e,href:t,button:!0,class:n}}},created(){this.showSlot=this.$slots.default!==void 0}}),Wu={key:1,ref:`slot`,class:`btn__content`};function Gu(e,t,n,r,o,s){let c=_(`BaseIcon`);return i(),w(`button`,g(p(e.tagProps)),[e.iconLeft?(i(),C(c,{key:0,name:e.icon,class:`btn__icon`},null,8,[`name`])):T(``,!0),e.showSlot?(i(),w(`span`,Wu,[a(e.$slots,`default`,{},void 0,!0)],512)):T(``,!0),e.iconRight?(i(),C(c,{key:2,name:e.icon,class:`btn__icon`},null,8,[`name`])):T(``,!0)],16)}var Ku=d({components:{BaseIcon:Pu,BaseButton:pu(Uu,[[`render`,Gu],[`__scopeId`,`data-v-24444810`]])},props:{gallery:{type:Object,required:!0},activePictureIndex:{type:Number,required:!0},isLightboxed:{type:Boolean,required:!1,default:!1},activePicture:{type:Object,required:!1},showAd:{type:Boolean,required:!1,default:!1},navigationDisabled:{type:Boolean,required:!1,default:!1},showScrollerAdCloseBtn:{type:Boolean,required:!1,default:!1},mode:{type:String,required:!1,default:`gallery`}},inject:[`previewMode`],setup(){let{useTranslations:e}=$e(),{t}=e();return{t}},data(){return{showMobileDescription:!1,scaledIn:!1,zoomScale:1,pinchZoom:null,preview:this.previewMode}},watch:{activePictureIndex(e,t){e!==t&&(this.transformPictures(e),this.resetScale())},showAd(e){this.pinchZoom&&(this.pinchZoom.disableTransformElement=e,e&&this.resetScale())}},methods:{buildPictureUrl:uu,handleToggleLightbox(e){let t=e;this.isLightboxed||(t=t===0?t:t-1),this.$emit(`toggle-lightbox`,t)},async transformPictures(e){if(e<0||e>this.gallery.images.items.length-1)return;let t=this.$refs.wrapper;if(!t)return;let n=e*-100;t.style.transform=`translateX(${n}%)`},async changePicture(e){this.$emit(`active-picture-changed`,e)},resetScale(){this.zoomScale=1,this.pinchZoom&&this.pinchZoom.resetScale()},changeScale(e){let t=e?this.zoomScale+.5:this.zoomScale-.5;this.zoomScale=t<=5?t:this.zoomScale,this.pinchZoom&&this.pinchZoom.changeScale(this.zoomScale)},mountZoomFeatures(){if(this.zoomScale=1,!this.isLightboxed)return;let e={element:this.$refs.contentBlock,limitZoom:40,onScaleChange:e=>{this.zoomScale=e.scale,this.zoomScale>1&&(this.showMobileDescription=!1,this.$emit(`show-mobile-description`,this.showMobileDescription)),this.scaledIn=this.zoomScale>1}};this.pinchZoom=new Hu(e)},createTouchEvents(){let e=this.$refs.wrapper,t=this.$refs.contentBlock,n=e.clientWidth,r=null,i=null,a=null,o=null,s=this.mode===`single`,c=n=>{if(this.zoomScale>1&&this.isLightboxed)return;let i=!navigator.userAgent.match(`iPad`)&&!navigator.userAgent.match(`iPhone`);r=(n.touches?n.touches[0]:n).clientX,o=Date.now(),t.addEventListener(`touchend`,u),i&&t.addEventListener(`mouseup`,u),s||(e.style.transition=`unset`,t.addEventListener(`touchmove`,l),i&&t.addEventListener(`mousemove`,l))},l=t=>{if(this.zoomScale>1&&this.isLightboxed||s||this.previewMode&&!this.isLightboxed)return;i=(t.touches?t.touches[0]:t).clientX-r,a=i/n*100;let o=a+this.activePictureIndex*-100;e.style.transform=`translateX(${o}%)`},u=n=>{n.preventDefault();let c=Date.now()-o;e.style.transition=`transform 0.5s`;let d=()=>{let t=this.activePictureIndex*-100;e.style.transform=`translateX(${t}%)`};Math.abs(a)>=20&&!s?a>0?this.activePictureIndex-1>=0?this.changePicture(this.activePictureIndex-1):d():this.activePictureIndex+1<this.gallery.images.items.length?this.changePicture(this.activePictureIndex+1):d():(c<250&&Math.abs(i)<25&&(this.isLightboxed?(this.showMobileDescription=this.zoomScale>1?!1:!this.showMobileDescription,this.$emit(`show-mobile-description`,this.showMobileDescription)):this.handleToggleLightbox(this.activePictureIndex)),d()),r=null,i=null,a=null,o=null,t.removeEventListener(`mousemove`,l),t.removeEventListener(`mouseup`,u),t.removeEventListener(`touchmove`,l),t.removeEventListener(`touchend`,u)};t.addEventListener(`touchstart`,c),!navigator.userAgent.match(`iPad`)&&!navigator.userAgent.match(`iPhone`)&&t.addEventListener(`mousedown`,c)}},mounted(){this.transformPictures(this.activePictureIndex),this.createTouchEvents(),this.isLightboxed&&this.mountZoomFeatures()}}),qu={key:0,class:`big-picture-ad-loader`},Ju=[`disabled`],Yu={key:2,class:`big-picture-wrapper__gallery-button d-lg-block`},Xu={key:3,class:`zoom-control-wrapper`},Zu={class:`zoom-control-wrapper__control`},Qu=[`disabled`],$u=[`disabled`],ed={class:`big-picture-wrapper__ad-wrapper`},td=[`src`],nd=[`disabled`];function rd(e,t,n,r,s,c){let l=_(`BaseIcon`),d=_(`BaseButton`);return i(),w(`div`,{class:o([`big-picture-wrapper`,{"big-picture-wrapper--lightboxed row g-0":e.isLightboxed}])},[e.navigationDisabled&&e.isLightboxed&&e.showAd?(i(),w(`div`,qu,[...t[5]||=[S(`div`,{class:`big-picture-ad-loader__progress`},null,-1)]])):T(``,!0),e.mode===`gallery`?(i(),w(`button`,{key:1,class:o([`big-picture-wrapper__nav big-picture-wrapper__nav--prev`,{"col-auto d-lg-flex":e.isLightboxed,"d-none":!e.showAd&&e.isLightboxed||e.preview&&!e.isLightboxed,"big-picture-wrapper__nav--offset":e.showScrollerAdCloseBtn&&!e.showAd}]),disabled:e.navigationDisabled||e.activePictureIndex<=0,onClick:t[0]||=t=>e.changePicture(e.activePictureIndex-1)},[b(l,{class:`big-picture-wrapper__nav-icon`,name:`angle-left`})],10,Ju)):T(``,!0),e.isLightboxed?T(``,!0):(i(),w(`div`,Yu,[b(d,{onClick:t[1]||=t=>e.handleToggleLightbox(e.activePictureIndex),class:`big-picture-wrapper__gallery-button-icon`,size:`sm`,theme:`primary`,"icon-position":`left`,icon:`gallery-border`},{default:ce(()=>[fe(u(e.t(`gallery`)),1)]),_:1})])),e.isLightboxed&&!e.showAd?(i(),w(`div`,Xu,[S(`div`,Zu,[S(`button`,{onClick:t[2]||=t=>e.changeScale(!0),disabled:e.zoomScale>=5},[b(l,{class:`zoom-control-wrapper__zoom-icon`,name:`circle-plus`})],8,Qu),t[6]||=S(`span`,{class:`zoom-control-wrapper__separator`},null,-1),S(`button`,{onClick:t[3]||=t=>e.changeScale(!1),disabled:e.zoomScale<=1},[b(l,{class:`zoom-control-wrapper__zoom-icon`,name:`circle-minus`})],8,$u)])])):T(``,!0),S(`div`,{class:o([`big-picture-wrapper__content-block`,{col:e.isLightboxed}]),ref:`contentBlock`},[x(S(`div`,ed,[a(e.$slots,`default`,{},void 0,!0)],512),[[he,e.showAd]]),S(`div`,{class:`images-block`,style:v({display:e.showAd?`none`:``}),ref:`wrapper`},[(i(!0),w(se,null,oe(e.gallery.images.items,(t,n)=>(i(),w(`div`,{class:`image-wrapper`,key:n},[n-1===e.activePictureIndex||n===e.activePictureIndex||n+1===e.activePictureIndex?(i(),w(`div`,{key:0,class:`image`,style:v({backgroundImage:`url(${e.buildPictureUrl({id:t.id})})`})},[S(`img`,{src:e.buildPictureUrl({id:t.id}),style:{visibility:`hidden`}},null,8,td)],4)):T(``,!0)]))),128))],4)],2),e.mode===`gallery`?(i(),w(`button`,{key:4,class:o([`big-picture-wrapper__nav big-picture-wrapper__nav--next`,{"col-auto d-lg-flex":e.isLightboxed,"d-none":!e.showAd&&e.isLightboxed||e.preview&&!e.isLightboxed,"big-picture-wrapper__nav--offset":e.showScrollerAdCloseBtn&&!e.showAd}]),disabled:e.navigationDisabled||e.activePictureIndex>=e.gallery.images.items.length-1,onClick:t[4]||=t=>e.changePicture(e.activePictureIndex+1)},[b(l,{class:`big-picture-wrapper__nav-icon`,name:`angle-right`})],10,nd)):T(``,!0)],2)}var id=pu(Ku,[[`render`,rd],[`__scopeId`,`data-v-94b56b1a`]]),ad={grid_size:12,breakpoints:{xl:1199,lg:991,md:767,sm:575}},od=e=>(e?.credit)?.trim()||``,sd={class:`G-tooltip`},cd={class:`G-tooltip__content`},ld=pu(d({name:`TooltipComponent`,__name:`Tooltip`,props:{tooltip:{}}
129,setup(e){let t=e,n=pe(!1),r=pe(void 0);function o(){r.value&&clearTimeout(r.value),r.value=void 0}return ie(t,()=>{n.value=!0,r.value=setTimeout(()=>{n.value=!1,o()},1500)}),(t,r)=>(i(),w(`div`,sd,[n.value&&e.tooltip?(i(),w(se,{key:0},[S(`div`,cd,u(e.tooltip.message),1),r[0]||=S(`div`,{class:`G-tooltip__arrow`},null,-1)],64)):T(``,!0),a(t.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-323f71e7`]]),ud=e=>{let t=``;return t=e?.description||``,t},dd=d({components:{BaseIcon:Pu,Tooltip:ld},setup(){let{useTranslations:e}=$e(),{t}=e();return{t}},data(){return{copyTooltip:null,activePictureCredits:``,activePictureDescription:``}},props:{pictureMetadata:{type:Object,required:!1}},watch:{pictureMetadata:{handler(e){this.activePictureCredits=od(e),this.activePictureDescription=ud(e)},immediate:!0}},methods:{facebookShare(){let e=window.location.href,t=`https://www.facebook.com/sharer/sharer.php?u=${encodeURI(e)}&t=${encodeURI(this.pictureMetadata?.title||document&&document.title)}`;window.open(t,`share_dialog`,`width=500,height=400`)},twitterShare(){let e=window.location.href,t=`https://twitter.com/share?u=${encodeURI(e)}&t=${encodeURI(this.pictureMetadata?.title||document&&document.title)}`;window.open(t,`share_dialog`,`width=500,height=400`)},copyLink(){let e,t=!1,n=ju(window.location.href);try{navigator.clipboard.writeText(n),t=!0}catch{t=!1}if(!t)try{e=document.createElement(`textarea`),e.setAttribute(`readonly`,`true`),e.setAttribute(`contenteditable`,`true`),e.style.position=`fixed`,e.value=n,document.documentElement.appendChild(e),e.select();let r=document.createRange();r.selectNodeContents(e);let i=window.getSelection();i?.removeAllRanges(),i?.addRange(r),e.setSelectionRange(0,e.value.length),t=document.execCommand(`copy`)}catch{t=!1}finally{e&&document.body.removeChild(e)}if(!t){let e=navigator.platform.toUpperCase().includes(`MAC`)?`⌘C`:`CTRL+C`;prompt(`Press ${e}`,n)}t&&(this.copyTooltip={message:this.t(`link_copied`),timestamp:String(new Date().getTime())})}}}),fd={class:`lightbox-info`},pd={class:`row`},md={class:`col-12`},hd={class:`lightbox-info__caption`},gd={class:`row`},_d={class:`col-12`},vd={class:`lightbox-info__description`},yd={class:`row`},bd={class:`col-12`},xd={class:`lightbox-info__credits`},Sd={class:`row`},Cd={class:`col-auto`},wd={class:`lightbox-share__description`},Td={class:`col-auto`},Ed={class:`col-auto`},Dd={class:`col-auto`};function Od(e,t,n,r,a,o){let s=_(`BaseIcon`),c=_(`Tooltip`);return i(),w(`div`,fd,[S(`div`,pd,[S(`div`,md,[S(`div`,hd,u(e.pictureMetadata?.title),1)])]),S(`div`,gd,[S(`div`,_d,[S(`div`,vd,u(e.activePictureDescription),1)])]),S(`div`,yd,[S(`div`,bd,[S(`div`,xd,u(e.activePictureCredits),1)])]),t[3]||=S(`div`,{class:`row`},[S(`div`,{class:`col-12`},[S(`div`,{class:`lightbox-info__break`})])],-1),S(`div`,Sd,[S(`div`,Cd,[S(`span`,wd,u(e.t(`share_photo`)),1)]),S(`div`,Td,[S(`button`,{onClick:t[0]||=(...t)=>e.facebookShare&&e.facebookShare(...t)},[b(s,{class:`lightbox-share__icon--facebook lightbox-share__icon`,name:`social-facebook`})])]),S(`div`,Ed,[S(`button`,{onClick:t[1]||=(...t)=>e.twitterShare&&e.twitterShare(...t)},[b(s,{class:`lightbox-share__icon--twitter lightbox-share__icon`,name:`x-light`})])]),S(`div`,Dd,[(i(),C(c,{tooltip:e.copyTooltip,key:String(e.copyTooltip)},{default:ce(()=>[S(`button`,{onClick:t[2]||=(...t)=>e.copyLink&&e.copyLink(...t)},[b(s,{class:`lightbox-share__icon--link lightbox-share__icon`,name:`copy-light`})])]),_:1},8,[`tooltip`]))])])])}var kd=pu(dd,[[`render`,Od],[`__scopeId`,`data-v-ac8bc8ec`]]),Ad=5,jd=3,Md=d({name:`LightboxComponent`,components:{BigPictureWrapper:id,ThumbWrapper:zu,LightboxInfo:kd,BaseIcon:Pu},props:{gallery:{type:Object,required:!0},initialIndex:{type:Number,required:!1,default:0},mode:{type:String,required:!1,default:`gallery`},ads:{type:Object,required:!1}},setup(){let{useTranslations:e}=$e(),{t}=e();return{t}},data(){return{activePictureIndex:this.initialIndex,changedPicturesCount:0,nextAdLoaded:!1,adTimer:void 0,showThumbWrapper:!1,showMobileDescription:!1,navigationDisabled:!1,showScrollerAd:!0,showScrollerAdCloseBtn:!1,activePictureCredits:``,mobileAdKey:0,desktopAdKey:0}},computed:{activePicture(){return this.gallery.images.items[this.activePictureIndex]},disableFullImageAd(){return this.mode===`single`},isDesktop(){return window.screen.width>ad.breakpoints.lg},showAd(){return!this.isDesktop&&this.changedPicturesCount!==0&&this.changedPicturesCount%Ad===0&&this.nextAdLoaded},isFirstLoad(){return this.changedPicturesCount<Ad}},watch:{activePicture:{handler(e){this.activePictureCredits=od(e?.metadata)},immediate:!0}},methods:{setActivePictureIndex(e){if(!this.adTimer){if(this.handleAdData()){this.navigationDisabled=!0,this.adTimer=setTimeout(()=>{this.navigationDisabled=!1,this.clearAdTimer()},1500);return}e<this.gallery.images.items.length&&e>=0&&(this.activePictureIndex=e,e>this.gallery.images.items.length-5&&this.fetchMoreImages(),this.$emit(`active-picture-changed`)),this.addPictureRelatedHash()}},clearAdTimer(){this.adTimer&&clearTimeout(this.adTimer),this.adTimer=void 0},addPictureRelatedHash(){let e=new URLSearchParams;this.mode===`gallery`&&(e.append(`gallery-id`,this.gallery.id),e.append(`image-id`,this.activePicture.i
129d)),this.mode===`single`&&e.append(`article-image-id`,this.activePicture.id),history.replaceState(null,``,`#${e.toString()}`)},nativeShare(){window.navigator.share({text:this.activePicture.metadata.title||``,url:window.location.href})},keyboardNavigation(e){switch(e.key){case`ArrowLeft`:this.setActivePictureIndex(this.activePictureIndex-1);break;case`ArrowRight`:this.setActivePictureIndex(this.activePictureIndex+1);break;case`Escape`:this.$emit(`close-lightbox`)}},handleAdData(){return!this.disableFullImageAd&&(this.changedPicturesCount++,this.showAd?!0:(!this.isFirstLoad&&!this.isDesktop?(this.changedPicturesCount%Ad===3&&this.mobileAdKey++,this.changedPicturesCount%Ad===1&&(this.nextAdLoaded=!1)):this.isDesktop&&this.changedPicturesCount!==0&&this.changedPicturesCount%jd===0&&this.desktopAdKey++,!1))},toggleThumbWrapper(){this.showThumbWrapper=!this.showThumbWrapper},setMobileDescription(e){this.showMobileDescription=e},displayScrollerAdBtn(){this.showScrollerAdCloseBtn=!0},hideScrollerAd(){this.showScrollerAd=!1,this.showScrollerAdCloseBtn=!1},setMobileAdLoaded(e){this.nextAdLoaded=e},fetchMoreImages(){this.$emit(`fetch-more-images`)}},mounted(){this.addPictureRelatedHash(),window.addEventListener(`toggleScrollerAdBtn`,this.displayScrollerAdBtn),window.addEventListener(`keydown`,this.keyboardNavigation)},beforeUnmount(){window.removeEventListener(`toggleScrollerAdBtn`,this.displayScrollerAdBtn),window.removeEventListener(`keydown`,this.keyboardNavigation)}}),Nd={class:`lightbox row g-0`},Pd={class:`lightbox-main`},Fd={class:`lightbox-main__content-box`},Id={class:`lightbox-main__content`},Ld={class:`lightbox-main__close-wrapper d-lg-none`},Rd={class:`lightbox-main__navigation`},zd={key:0,class:`lightbox-picture-info d-lg-none`},Bd={class:`lightbox-picture-info__caption`},Vd={class:`lightbox-picture-info__description`},Hd={key:1,class:`lightbox-options`},Ud={class:`lightbox-options__counter`},Wd={class:`lightbox-options__mobile-share d-lg-none`},Gd={class:`lightbox-main__scroller-ad`},Kd={class:`lightbox-side d-none d-lg-block`},qd={class:`row g-0`},Jd={class:`col-12 lightbox-side__close-wrapper`},Yd={class:`row lightbox__banner`},Xd={class:`col-12`};function Zd(e,t,n,r,a,s){let c=_(`BaseIcon`),l=_(`BigPictureWrapper`),d=_(`ThumbWrapper`),f=_(`LightboxInfo`);return i(),w(`div`,Nd,[S(`div`,Pd,[S(`div`,Fd,[S(`div`,Id,[S(`div`,Ld,[S(`button`,{class:o([`lightbox-main__close`,{"d-none":e.navigationDisabled}]),onClick:t[0]||=t=>e.$emit(`close-lightbox`)},[b(c,{name:`close`})],2)]),b(l,{onActivePictureChanged:e.setActivePictureIndex,onShowMobileDescription:e.setMobileDescription,"active-picture-index":e.activePictureIndex,"active-picture":e.activePicture,gallery:e.gallery,"initial-index":e.initialIndex,"is-lightboxed":!0,"show-ad":e.showAd,"navigation-disabled":e.navigationDisabled,mode:e.mode,"show-scroller-ad-close-btn":e.showScrollerAdCloseBtn},{default:ce(()=>[!e.isDesktop&&e.ads&&e.ads.mobile?(i(),C(h(e.ads.component),{"ad-name":e.ads.mobile.adName,key:`mobile-ad-${e.mobileAdKey}`,onIsAdLoaded:t[1]||=t=>e.setMobileAdLoaded(t)},null,40,[`ad-name`])):T(``,!0)]),_:1},8,[`onActivePictureChanged`,`onShowMobileDescription`,`active-picture-index`,`active-picture`,`gallery`,`initial-index`,`show-ad`,`navigation-disabled`,`mode`,`show-scroller-ad-close-btn`]),x(S(`div`,Rd,[e.showMobileDescription?(i(),w(`div`,zd,[S(`div`,Bd,u(e.activePicture.metadata.title),1),S(`div`,Vd,u(e.activePictureCredits),1)])):T(``,!0),e.mode===`gallery`?(i(),w(`div`,Hd,[S(`div`,Ud,[S(`span`,null,u(e.activePictureIndex+1),1),t[6]||=fe(` / `,-1),S(`span`,null,u(e.gallery.images.pager.count),1)]),S(`button`,{onClick:t[2]||=(...t)=>e.toggleThumbWrapper&&e.toggleThumbWrapper(...t),class:`lightbox-options__collapse-btn`},[b(c,{class:`lightbox-options__collapse-btn-group-icon`,name:`group`}),S(`span`,null,u(e.t(`gallery`)),1),b(c,{class:o([`lightbox-options__collapse-btn-arrow-icon`,{"lightbox-options__collapse-btn-arrow-icon--reverted":!e.showThumbWrapper}]),name:`angle-down`},null,8,[`class`])]),S(`div`,Wd,[S(`button`,{onClick:t[3]||=(...t)=>e.nativeShare&&e.nativeShare(...t)},[b(c,{class:`lightbox-options__mobile-share-icon`,name:`share`})])])])):T(``,!0),e.mode===`gallery`?(i(),w(`div`,{key:2,class:o([`lightbox-thumb-wrapper`,{"lightbox-thumb-wrapper--collapsed":!e.showThumbWrapper}])},[b(d,{"is-lightboxed":!0,gallery:e.gallery,"active-picture-index":e.activePictureIndex,onToggleLightbox:e.setActivePictureIndex,onFetchMoreImages:e.fetch
129MoreImages,"show-thumb-wrapper":e.showThumbWrapper},null,8,[`gallery`,`active-picture-index`,`onToggleLightbox`,`onFetchMoreImages`,`show-thumb-wrapper`])],2)):T(``,!0)],512),[[he,!e.showAd]])]),x(S(`div`,Gd,[S(`div`,{class:o([`lightbox-main__scroller-ad-close`,{"d-none":!e.showScrollerAdCloseBtn}])},[S(`button`,{onClick:t[4]||=(...t)=>e.hideScrollerAd&&e.hideScrollerAd(...t)},[b(c,{name:`close`})])],2)],512),[[he,e.showScrollerAd]])])]),S(`div`,Kd,[S(`div`,qd,[S(`div`,Jd,[S(`button`,{class:`lightbox-side__close`,onClick:t[5]||=t=>e.$emit(`close-lightbox`)},[b(c,{name:`close`})])])]),b(f,{"picture-metadata":e.activePicture.metadata},null,8,[`picture-metadata`]),S(`div`,Yd,[S(`div`,Xd,[e.isDesktop&&e.ads&&e.ads.desktop?(i(),C(h(e.ads.component),{"ad-name":e.ads.desktop.adName,key:`desktop-ad-${e.desktopAdKey}`},null,8,[`ad-name`])):T(``,!0)])])])])}var Qd=d({components:{ThumbWrapper:zu,BigPictureWrapper:id,Lightbox:pu(Md,[[`render`,Zd],[`__scopeId`,`data-v-1b9f35ed`]])},setup(){let{useTranslations:e}=$e(),{t}=e();return{t}},data(){return{activePictureIndex:0,showLightbox:!1,initialIndex:0,activePictureCredits:``,preview:this.previewMode}},inject:[`previewMode`],props:{gallery:{type:Object,required:!0},ads:{type:Object,required:!1}},computed:{activePicture(){return this.gallery.images.items[this.activePictureIndex]},galleryWithPreviewImage(){let e={...this.gallery,images:{...this.gallery.images,items:[...this.gallery.images.items]}};if(!e.metadata.galleryPreviewImage)return e;let t=e.images.items.findIndex(t=>t.id===e.metadata.galleryPreviewImage.id);return t>=0&&e.images.items.splice(t,1),e.images.items.unshift(e.metadata.galleryPreviewImage),e}},watch:{activePicture:{handler(e){this.activePictureCredits=od(e?.metadata)},immediate:!0}},methods:{toggleLightbox(e){this.showLightbox?(this.showLightbox=!1,this.initialIndex=0,document.body.style.overflow=``,history.replaceState(null,``,` `)):(this.initialIndex=e||0,this.showLightbox=!0,document.body.style.overflow=`hidden`)},setActivePictureIndex(e){e<this.gallery.images.items.length&&e>=0&&(this.activePictureIndex=e,e>this.gallery.images.items.length-5&&this.fetchMoreImages())},fetchMoreImages(){this.$emit(`fetch-more-images`)}},mounted(){let e=window.location.hash;if(!e)return;let t=new URLSearchParams(e.substring(1)),n=t.get(`gallery-id`),r=t.get(`image-id`);if(n===this.gallery.id){let e=this.gallery.images.items.findIndex(e=>e.id===r);e>=0&&this.toggleLightbox(e)}}}),$d={class:`gallery-wrapper`},ef={class:`row`},tf={class:`big-picture-col`},nf={class:`row`},rf={class:`thumb-wrapper-col`},af={class:`row`},of={class:`info-wrapper-col`},sf={class:`thumb-info`},cf={class:`thumb-info__left-col`},lf={class:`thumb-info__counter`},uf={class:`thumb-info__caption`},df={key:0,class:`thumb-info__credits`};function ff(e,t,n,r,a,o){let s=_(`BigPictureWrapper`),c=_(`ThumbWrapper`),l=_(`Lightbox`);return i(),w(`div`,$d,[S(`div`,ef,[S(`div`,tf,[b(s,{onToggleLightbox:t[0]||=t=>e.toggleLightbox(e.activePictureIndex),gallery:e.galleryWithPreviewImage,onActivePictureChanged:e.setActivePictureIndex,"active-picture-index":e.activePictureIndex},null,8,[`gallery`,`onActivePictureChanged`,`active-picture-index`])])]),S(`div`,nf,[S(`div`,rf,[b(c,{onToggleLightbox:e.toggleLightbox,onFetchMoreImages:e.fetchMoreImages,"active-picture-index":e.activePictureIndex,gallery:e.galleryWithPreviewImage},null,8,[`onToggleLightbox`,`onFetchMoreImages`,`active-picture-index`,`gallery`]),e.preview?(i(),w(`div`,{key:0,onClick:t[1]||=t=>e.toggleLightbox(1),class:`thumb-wrapper-preview`},u(e.gallery.images.pager.count)+` `+u(e.t(`total_photos`)),1)):T(``,!0)])]),S(`div`,af,[S(`div`,of,[S(`div`,sf,[S(`div`,cf,[S(`span`,lf,u(e.activePictureIndex+1)+`/`+u(e.gallery.images.pager.count),1),S(`span`,uf,` \xA0`+u(e.activePicture.metadata.title),1)]),e.activePictureCredits?(i(),w(`div`,df,u(e.t(`photos`))+` `+u(e.activePictureCredits),1)):T(``,!0)])])]),b(ge,{name:`fade`},{default:ce(()=>[e.showLightbox?(i(),C(l,{key:0,"initial-index":e.initialIndex,gallery:e.gallery,ads:e.ads,onCloseLightbox:e.toggleLightbox,onFetchMoreImages:e.fetch
129MoreImages,onActivePictureChanged:t[2]||=t=>e.$emit(`active-picture-changed`)},null,8,[`initial-index`,`gallery`,`ads`,`onCloseLightbox`,`onFetchMoreImages`])):T(``,!0)]),_:1})])}var pf=pu(Qd,[[`render`,ff],[`__scopeId`,`data-v-b030c65b`]]),mf={key:0,class:`col-12 gallery`},hf=d({name:`GalleryView`,__name:`Gallery`,props:{content:{},ads:{},preview:{type:Boolean}},emits:[`active-picture-changed`],setup(e,{emit:t}){let{loadTranslations:n}=$e(),{dataLoaded:r}=Ye($e()),a=e,o=t,s=y({}),c=pe(null),u=le(()=>{var e;return(e=c.value?.images)!=null&&e.items.length?c.value:null});m(`previewMode`,a.preview||!1);async function d(){await s?.fetch()}let f=async()=>{let e=String(a.content.attrs.id);e&&r.value&&(s=new su(e),await s.fetchInitialGallery(),c.value=s.gallery||null)};return l(async()=>{await n()}),me(async()=>{await f()}),ie(r,async()=>{await f()}),me(()=>{document.body.style.overflow=``}),(t,n)=>a.content&&u.value?(i(),w(`div`,mf,[b(pf,{gallery:u.value,onFetchMoreImages:d,ads:e.ads,onActivePictureChanged:n[0]||=e=>o(`active-picture-changed`)},null,8,[`gallery`,`ads`])])):T(``,!0)}});
129export{Xe as n,hf as 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.