@betarena/ad-engine
Version:
Betarena ad-engine widget
25 lines (20 loc) • 230 kB
JavaScript
var Ra=Object.defineProperty;var ka=(e,t,n)=>t in e?Ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var mr=(e,t,n)=>(ka(e,typeof t!="symbol"?t+"":t,n),n);function Fe(){}const bs=e=>e;function _s(e){return e()}function Vi(){return Object.create(null)}function Pt(e){e.forEach(_s)}function Xn(e){return typeof e=="function"}function Wn(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Nn;function He(e,t){return e===t?!0:(Nn||(Nn=document.createElement("a")),Nn.href=t,e===Nn.href)}function La(e){return Object.keys(e).length===0}function Fa(e,...t){if(e==null){for(const r of t)r(void 0);return Fe}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function wr(e,t,n){e.$$.on_destroy.push(Fa(t,n))}function xa(e,t,n){return e.set(n),t}function Ui(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}const Ns=typeof window<"u";let Is=Ns?()=>window.performance.now():()=>Date.now(),Gr=Ns?e=>requestAnimationFrame(e):Fe;const Rt=new Set;function ws(e){Rt.forEach(t=>{t.c(e)||(Rt.delete(t),t.f())}),Rt.size!==0&&Gr(ws)}function Os(e){let t;return Rt.size===0&&Gr(ws),{promise:new Promise(n=>{Rt.add(t={c:e,f:n})}),abort(){Rt.delete(t)}}}const $a=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function ue(e,t){e.appendChild(t)}function Ds(e,t,n){const r=Qr(e);if(!r.getElementById(t)){const i=de("style");i.id=t,i.textContent=n,As(r,i)}}function Qr(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Ca(e){const t=de("style");return t.textContent="/* empty */",As(Qr(e),t),t.sheet}function As(e,t){return ue(e.head||e,t),t.sheet}function Ke(e,t,n){e.insertBefore(t,n||null)}function Se(e){e.parentNode&&e.parentNode.removeChild(e)}function de(e){return document.createElement(e)}function rn(e){return document.createTextNode(e)}function ct(){return rn(" ")}function Ss(){return rn("")}function Kn(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function $(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Ma(e){return Array.from(e.childNodes)}function Or(e,t){t=""+t,e.data!==t&&(e.data=t)}function Pi(e,t,n){e.classList.toggle(t,!!n)}function Va(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}const Mn=new Map;let Vn=0;function Ua(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Pa(e,t){const n={stylesheet:Ca(t),rules:{}};return Mn.set(e,n),n}function Rs(e,t,n,r,i,s,o,a=0){const u=16.666/r;let c=`{
`;for(let C=0;C<=1;C+=u){const j=t+(n-t)*s(C);c+=C*100+`%{${o(j,1-j)}}
`}const f=c+`100% {${o(n,1-n)}}
}`,d=`__svelte_${Ua(f)}_${a}`,h=Qr(e),{stylesheet:v,rules:g}=Mn.get(h)||Pa(h,e);g[d]||(g[d]=!0,v.insertRule(`@keyframes ${d} ${f}`,v.cssRules.length));const P=e.style.animation||"";return e.style.animation=`${P?`${P}, `:""}${d} ${r}ms linear ${i}ms 1 both`,Vn+=1,d}function Dr(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Vn-=i,Vn||ja())}function ja(){Gr(()=>{Vn||(Mn.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&Se(t)}),Mn.clear())})}let sn;function en(e){sn=e}function Ba(){if(!sn)throw new Error("Function called outside component initialization");return sn}function ks(e){Ba().$$.on_mount.push(e)}const At=[],ji=[];let kt=[];const Bi=[],qa=Promise.resolve();let Ar=!1;function Ga(){Ar||(Ar=!0,qa.then(Ls))}function bt(e){kt.push(e)}const yr=new Set;let Ot=0;function Ls(){if(Ot!==0)return;const e=sn;do{try{for(;Ot<At.length;){const t=At[Ot];Ot++,en(t),Qa(t.$$)}}catch(t){throw At.length=0,Ot=0,t}for(en(null),At.length=0,Ot=0;ji.length;)ji.pop()();for(let t=0;t<kt.length;t+=1){const n=kt[t];yr.has(n)||(yr.add(n),n())}kt.length=0}while(At.length);for(;Bi.length;)Bi.pop()();Ar=!1,yr.clear(),en(e)}function Qa(e){if(e.fragment!==null){e.update(),Pt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(bt)}}function Ya(e){const t=[],n=[];kt.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),kt=t}let zt;function Fs(){return zt||(zt=Promise.resolve(),zt.then(()=>{zt=null})),zt}function Un(e,t,n){e.dispatchEvent(Va(`${t?"intro":"outro"}${n}`))}const Ln=new Set;let lt;function Ja(){lt={r:0,c:[],p:lt}}function Ha(){lt.r||Pt(lt.c),lt=lt.p}function Fn(e,t){e&&e.i&&(Ln.delete(e),e.i(t))}function qi(e,t,n,r){if(e&&e.o){if(Ln.has(e))return;Ln.add(e),lt.c.push(()=>{Ln.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const xs={duration:0};function $s(e,t,n){const r={direction:"in"};let i=t(e,n,r),s=!1,o,a,u=0;function c(){o&&Dr(e,o)}function f(){const{delay:h=0,duration:v=300,easing:g=bs,tick:P=Fe,css:C}=i||xs;C&&(o=Rs(e,0,1,v,h,g,C,u++)),P(0,1);const j=Is()+h,z=j+v;a&&a.abort(),s=!0,bt(()=>Un(e,!0,"start")),a=Os(H=>{if(s){if(H>=z)return P(1,0),Un(e,!0,"end"),c(),s=!1;if(H>=j){const Z=g((H-j)/v);P(Z,1-Z)}}return s})}let d=!1;return{start(){d||(d=!0,Dr(e),Xn(i)?(i=i(r),Fs().then(f)):f())},invalidate(){d=!1},end(){s&&(c(),s=!1)}}}function Cs(e,t,n){const r={direction:"out"};let i=t(e,n,r),s=!0,o;const a=lt;a.r+=1;let u;function c(){const{delay:f=0,duration:d=300,easing:h=bs,tick:v=Fe,css:g}=i||xs;g&&(o=Rs(e,1,0,d,f,h,g));const P=Is()+f,C=P+d;bt(()=>Un(e,!1,"start")),"inert"in e&&(u=e.inert,e.inert=!0),Os(j=>{if(s){if(j>=C)return v(0,1),Un(e,!1,"end"),--a.r||Pt(a.c),!1;if(j>=P){const z=h((j-P)/d);v(1-z,z)}}return s})}return Xn(i)?Fs().then(()=>{i=i(r),c()}):c(),{end(f){f&&"inert"in e&&(e.inert=u),f&&i.tick&&i.tick(1,0),s&&(o&&Dr(e,o),s=!1)}}}function za(e,t,n){const{fragment:r,after_update:i}=e.$$;r&&r.m(t,n),bt(()=>{const s=e.$$.on_mount.map(_s).filter(Xn);e.$$.on_destroy?e.$$.on_destroy.push(...s):Pt(s),e.$$.on_mount=[]}),i.forEach(bt)}function Xa(e,t){const n=e.$$;n.fragment!==null&&(Ya(n.after_update),Pt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Wa(e,t){e.$$.dirty[0]===-1&&(At.push(e),Ga(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Yr(e,t,n,r,i,s,o=null,a=[-1]){const u=sn;en(e);const c=e.$$={fragment:null,ctx:[],props:s,update:Fe,not_equal:i,bound:Vi(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Vi(),dirty:a,skip_bound:!1,root:t.target||u.$$.root};o&&o(c.root);let f=!1;if(c.ctx=n?n(e,t.props||{},(d,h,...v)=>{const g=v.length?v[0]:h;return c.ctx&&i(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),f&&Wa(e,d)),h}):[],c.update(),f=!0,Pt(c.before_update),c.fragment=r?r(c.ctx):!1,t.target){if(t.hydrate){const d=Ma(t.target);c.fragment&&c.fragment.l(d),d.forEach(Se)}else c.fragment&&c.fragment.c();t.intro&&Fn(e.$$.fragment),za(e,t.target,t.anchor),Ls()}en(u)}class Jr{constructor(){mr(this,"$$");mr(this,"$$set")}$destroy(){Xa(this,1),this.$destroy=Fe}$on(t,n){if(!Xn(n))return Fe;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!La(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ka="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ka);const Sr="https://ads.betarena.com",Dt=[];function Hr(e,t=Fe){let n;const r=new Set;function i(a){if(Wn(e,a)&&(e=a,n)){const u=!Dt.length;for(const c of r)c[1](),Dt.push(c,e);if(u){for(let c=0;c<Dt.length;c+=2)Dt[c][0](Dt[c+1]);Dt.length=0}}}function s(a){i(a(e))}function o(a,u=Fe){const c=[a,u];return r.add(c),r.size===1&&(n=t(i,s)||Fe),a(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:o}}const Za={isBetarenaAdShownForToday:!1,advertDateLastShown:null};function eu(e){const{subscribe:t,set:n,update:r}=Hr(Za),i={useLocalStorage:()=>{let s=i.parseLocalStorage();s==null&&(s={isBetarenaAdShownForToday:!1,advertDateLastShown:null}),i.setLocalStorage(s),s.isBetarenaAdShownForToday&&new Date(s.advertDateLastShown).getDate()!=new Date().getDate()&&i.updateData([["toggleAdShownState",void 0]])},parseLocalStorage:()=>{const s=localStorage.getItem(e);return s?JSON.parse(s):null},setLocalStorage:s=>{localStorage.setItem(e,JSON.stringify(s)),n(s)},updateData:s=>{const o=i.parseLocalStorage();if(o){for(const a of s){const u=a[0];a[1],u=="toggleAdShownState"&&(o.isBetarenaAdShownForToday=!o.isBetarenaAdShownForToday,o.isBetarenaAdShownForToday?o.advertDateLastShown=new Date:o.advertDateLastShown=null)}i.setLocalStorage(o)}}};return{subscribe:t,set:n,update:r,...i}}const Rr=eu("betarena-ad-engine");var se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tu(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Ie=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global||{},Ae={searchParams:"URLSearchParams"in Ie,iterable:"Symbol"in Ie&&"iterator"in Symbol,blob:"FileReader"in Ie&&"Blob"in Ie&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in Ie,arrayBuffer:"ArrayBuffer"in Ie};function nu(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Ae.arrayBuffer)var ru=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],iu=ArrayBuffer.isView||function(e){return e&&ru.indexOf(Object.prototype.toString.call(e))>-1};function jt(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function zr(e){return typeof e!="string"&&(e=String(e)),e}function Xr(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Ae.iterable&&(t[Symbol.iterator]=function(){return t}),t}function _e(e){this.map={},e instanceof _e?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}_e.prototype.append=function(e,t){e=jt(e),t=zr(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};_e.prototype.delete=function(e){delete this.map[jt(e)]};_e.prototype.get=function(e){return e=jt(e),this.has(e)?this.map[e]:null};_e.prototype.has=function(e){return this.map.hasOwnProperty(jt(e))};_e.prototype.set=function(e,t){this.map[jt(e)]=zr(t)};_e.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};_e.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),Xr(e)};_e.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),Xr(e)};_e.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),Xr(e)};Ae.iterable&&(_e.prototype[Symbol.iterator]=_e.prototype.entries);function vr(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function Ms(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function su(e){var t=new FileReader,n=Ms(t);return t.readAsArrayBuffer(e),n}function ou(e){var t=new FileReader,n=Ms(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8";return t.readAsText(e,i),n}function au(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function Gi(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Vs(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:Ae.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Ae.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Ae.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ae.arrayBuffer&&Ae.blob&&nu(e)?(this._bodyArrayBuffer=Gi(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ae.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||iu(e))?this._bodyArrayBuffer=Gi(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):Ae.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Ae.blob&&(this.blob=function(){var e=vr(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 new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=vr(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(Ae.blob)return this.blob().then(su);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=vr(this);if(e)return e;if(this._bodyBlob)return ou(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(au(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Ae.formData&&(this.formData=function(){return this.text().then(lu)}),this.json=function(){return this.text().then(JSON.parse)},this}var uu=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function cu(e){var t=e.toUpperCase();return uu.indexOf(t)>-1?t:e}function _t(e,t){if(!(this instanceof _t))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof _t){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new _e(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 _e(t.headers)),this.method=cu(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in Ie){var s=new AbortController;return s.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new 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()}}}_t.prototype.clone=function(){return new _t(this,{body:this._bodyInit})};function lu(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),s=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(s))}}),t}function fu(e){var t=new _e,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
`)===0?r.substr(1,r.length):r}).forEach(function(r){var i=r.split(":"),s=i.shift().trim();if(s){var o=i.join(":").trim();try{t.append(s,o)}catch(a){console.warn("Response "+a.message)}}}),t}Vs.call(_t.prototype);function Ze(e,t){if(!(this instanceof Ze))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new 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 _e(t.headers),this.url=t.url||"",this._initBody(e)}Vs.call(Ze.prototype);Ze.prototype.clone=function(){return new Ze(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new _e(this.headers),url:this.url})};Ze.error=function(){var e=new Ze(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var du=[301,302,303,307,308];Ze.redirect=function(e,t){if(du.indexOf(t)===-1)throw new RangeError("Invalid status code");return new Ze(null,{status:t,headers:{location:e}})};var Et=Ie.DOMException;try{new Et}catch{Et=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},Et.prototype=Object.create(Error.prototype),Et.prototype.constructor=Et}function Us(e,t){return new Promise(function(n,r){var i=new _t(e,t);if(i.signal&&i.signal.aborted)return r(new Et("Aborted","AbortError"));var s=new XMLHttpRequest;function o(){s.abort()}s.onload=function(){var c={statusText:s.statusText,headers:fu(s.getAllResponseHeaders()||"")};i.url.indexOf("file://")===0&&(s.status<200||s.status>599)?c.status=200:c.status=s.status,c.url="responseURL"in s?s.responseURL:c.headers.get("X-Request-URL");var f="response"in s?s.response:s.responseText;setTimeout(function(){n(new Ze(f,c))},0)},s.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},s.onabort=function(){setTimeout(function(){r(new Et("Aborted","AbortError"))},0)};function a(c){try{return c===""&&Ie.location.href?Ie.location.href:c}catch{return c}}if(s.open(i.method,a(i.url),!0),i.credentials==="include"?s.withCredentials=!0:i.credentials==="omit"&&(s.withCredentials=!1),"responseType"in s&&(Ae.blob?s.responseType="blob":Ae.arrayBuffer&&(s.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof _e||Ie.Headers&&t.headers instanceof Ie.Headers)){var u=[];Object.getOwnPropertyNames(t.headers).forEach(function(c){u.push(jt(c)),s.setRequestHeader(c,zr(t.headers[c]))}),i.headers.forEach(function(c,f){u.indexOf(f)===-1&&s.setRequestHeader(f,c)})}else i.headers.forEach(function(c,f){s.setRequestHeader(f,c)});i.signal&&(i.signal.addEventListener("abort",o),s.onreadystatechange=function(){s.readyState===4&&i.signal.removeEventListener("abort",o)}),s.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}Us.polyfill=!0;Ie.fetch||(Ie.fetch=Us,Ie.Headers=_e,Ie.Request=_t,Ie.Response=Ze);self.fetch.bind(self);const pu=async(e,t)=>{try{return await e()}catch(n){return t!=null?t(n):(console.error(`🚏 checkpoint ➤ tryCatchAsync(..) error :: ❌ ${JSON.stringify(n)}`),null)}};async function kr(e,t){return console.log("path",e),console.log("data",t),await pu(async()=>{const n=await fetch(e,{method:"POST",credentials:"include",body:JSON.stringify(t),mode:"cors",headers:{Accept:"application/json","Content-Type":"application/json"}}),r=await n.json();if(!n.ok)throw new Error(JSON.stringify(r)??"network response was not ok");return r},n=>(console.error(`💀 Unhandled :: ${n}`),{error:!0,errorLogs:n}))}function Qi(){const e=navigator.userAgent.toLowerCase(),t=e.includes("mobile"),n=/tablet|ipad/.test(e);return t?"mobile":n?"tablet":"desktop"}async function hu(){return await(await fetch("https://get.geojs.io/v1/ip/geo.json",{method:"GET"})).json()}var Bt={},Lr={exports:{}};(function(e,t){var n=typeof self<"u"?self:se,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(o){var a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function u(m){return m&&DataView.prototype.isPrototypeOf(m)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(m){return m&&c.indexOf(Object.prototype.toString.call(m))>-1};function d(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function h(m){return typeof m!="string"&&(m=String(m)),m}function v(m){var O={next:function(){var G=m.shift();return{done:G===void 0,value:G}}};return a.iterable&&(O[Symbol.iterator]=function(){return O}),O}function g(m){this.map={},m instanceof g?m.forEach(function(O,G){this.append(G,O)},this):Array.isArray(m)?m.forEach(function(O){this.append(O[0],O[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(O){this.append(O,m[O])},this)}g.prototype.append=function(m,O){m=d(m),O=h(O);var G=this.map[m];this.map[m]=G?G+", "+O:O},g.prototype.delete=function(m){delete this.map[d(m)]},g.prototype.get=function(m){return m=d(m),this.has(m)?this.map[m]:null},g.prototype.has=function(m){return this.map.hasOwnProperty(d(m))},g.prototype.set=function(m,O){this.map[d(m)]=h(O)},g.prototype.forEach=function(m,O){for(var G in this.map)this.map.hasOwnProperty(G)&&m.call(O,this.map[G],G,this)},g.prototype.keys=function(){var m=[];return this.forEach(function(O,G){m.push(G)}),v(m)},g.prototype.values=function(){var m=[];return this.forEach(function(O){m.push(O)}),v(m)},g.prototype.entries=function(){var m=[];return this.forEach(function(O,G){m.push([G,O])}),v(m)},a.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function P(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function C(m){return new Promise(function(O,G){m.onload=function(){O(m.result)},m.onerror=function(){G(m.error)}})}function j(m){var O=new FileReader,G=C(O);return O.readAsArrayBuffer(m),G}function z(m){var O=new FileReader,G=C(O);return O.readAsText(m),G}function H(m){for(var O=new Uint8Array(m),G=new Array(O.length),E=0;E<O.length;E++)G[E]=String.fromCharCode(O[E]);return G.join("")}function Z(m){if(m.slice)return m.slice(0);var O=new Uint8Array(m.byteLength);return O.set(new Uint8Array(m)),O.buffer}function U(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:a.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:a.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():a.arrayBuffer&&a.blob&&u(m)?(this._bodyArrayBuffer=Z(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||f(m))?this._bodyArrayBuffer=Z(m):this._bodyText=m=Object.prototype.toString.call(m):this._bodyText="",this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var m=P(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?P(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var m=P(this);if(m)return m;if(this._bodyBlob)return z(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(H(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function M(m){var O=m.toUpperCase();return k.indexOf(O)>-1?O:m}function x(m,O){O=O||{};var G=O.body;if(m instanceof x){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,O.headers||(this.headers=new g(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!G&&m._bodyInit!=null&&(G=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new g(O.headers)),this.method=M(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&G)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(G)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})};function y(m){var O=new FormData;return m.trim().split("&").forEach(function(G){if(G){var E=G.split("="),w=E.shift().replace(/\+/g," "),T=E.join("=").replace(/\+/g," ");O.append(decodeURIComponent(w),decodeURIComponent(T))}}),O}function _(m){var O=new g,G=m.replace(/\r?\n[\t ]+/g," ");return G.split(/\r?\n/).forEach(function(E){var w=E.split(":"),T=w.shift().trim();if(T){var A=w.join(":").trim();O.append(T,A)}}),O}U.call(x.prototype);function B(m,O){O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in O?O.statusText:"OK",this.headers=new g(O.headers),this.url=O.url||"",this._initBody(m)}U.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},B.error=function(){var m=new B(null,{status:0,statusText:""});return m.type="error",m};var V=[301,302,303,307,308];B.redirect=function(m,O){if(V.indexOf(O)===-1)throw new RangeError("Invalid status code");return new B(null,{status:O,headers:{location:m}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(O,G){this.message=O,this.name=G;var E=Error(O);this.stack=E.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function ne(m,O){return new Promise(function(G,E){var w=new x(m,O);if(w.signal&&w.signal.aborted)return E(new o.DOMException("Aborted","AbortError"));var T=new XMLHttpRequest;function A(){T.abort()}T.onload=function(){var R={status:T.status,statusText:T.statusText,headers:_(T.getAllResponseHeaders()||"")};R.url="responseURL"in T?T.responseURL:R.headers.get("X-Request-URL");var p="response"in T?T.response:T.responseText;G(new B(p,R))},T.onerror=function(){E(new TypeError("Network request failed"))},T.ontimeout=function(){E(new TypeError("Network request failed"))},T.onabort=function(){E(new o.DOMException("Aborted","AbortError"))},T.open(w.method,w.url,!0),w.credentials==="include"?T.withCredentials=!0:w.credentials==="omit"&&(T.withCredentials=!1),"responseType"in T&&a.blob&&(T.responseType="blob"),w.headers.forEach(function(R,p){T.setRequestHeader(p,R)}),w.signal&&(w.signal.addEventListener("abort",A),T.onreadystatechange=function(){T.readyState===4&&w.signal.removeEventListener("abort",A)}),T.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return ne.polyfill=!0,s.fetch||(s.fetch=ne,s.Headers=g,s.Request=x,s.Response=B),o.Headers=g,o.Request=x,o.Response=B,o.fetch=ne,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})(Lr,Lr.exports);var mu=Lr.exports,Wr={},Zn={},Ps=function(t){var n=t.uri,r=t.name,i=t.type;this.uri=n,this.name=r,this.type=i},yu=Ps,js=function(t){return typeof File<"u"&&t instanceof File||typeof Blob<"u"&&t instanceof Blob||t instanceof yu},vu=js,gu=function e(t,n,r){n===void 0&&(n=""),r===void 0&&(r=vu);var i,s=new Map;function o(f,d){var h=s.get(d);h?h.push.apply(h,f):s.set(d,f)}if(r(t))i=null,o([n],t);else{var a=n?n+".":"";if(typeof FileList<"u"&&t instanceof FileList)i=Array.prototype.map.call(t,function(f,d){return o([""+a+d],f),null});else if(Array.isArray(t))i=t.map(function(f,d){var h=e(f,""+a+d,r);return h.files.forEach(o),h.clone});else if(t&&t.constructor===Object){i={};for(var u in t){var c=e(t[u],""+a+u,r);c.files.forEach(o),i[u]=c.clone}}else i=t}return{clone:i,files:s}};Zn.ReactNativeFile=Ps;Zn.extractFiles=gu;Zn.isExtractableFile=js;var Eu=typeof self=="object"?self.FormData:window.FormData,dn={};Object.defineProperty(dn,"__esModule",{value:!0});dn.defaultJsonSerializer=void 0;dn.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify};var Tu=se&&se.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Wr,"__esModule",{value:!0});var Bs=Zn,bu=Tu(Eu),_u=dn,Nu=function(e){return(0,Bs.isExtractableFile)(e)||e!==null&&typeof e=="object"&&typeof e.pipe=="function"};function Iu(e,t,n,r){r===void 0&&(r=_u.defaultJsonSerializer);var i=(0,Bs.extractFiles)({query:e,variables:t,operationName:n},"",Nu),s=i.clone,o=i.files;if(o.size===0){if(!Array.isArray(e))return r.stringify(s);if(typeof t<"u"&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var a=e.reduce(function(h,v,g){return h.push({query:v,variables:t?t[g]:void 0}),h},[]);return r.stringify(a)}var u=typeof FormData>"u"?bu.default:FormData,c=new u;c.append("operations",r.stringify(s));var f={},d=0;return o.forEach(function(h){f[++d]=h}),c.append("map",r.stringify(f)),d=0,o.forEach(function(h,v){c.append("".concat(++d),v)}),c}Wr.default=Iu;var ke={};Object.defineProperty(ke,"__esModule",{value:!0});ke.parseBatchRequestsExtendedArgs=ke.parseRawRequestExtendedArgs=ke.parseRequestExtendedArgs=ke.parseBatchRequestArgs=ke.parseRawRequestArgs=ke.parseRequestArgs=void 0;function wu(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}}ke.parseRequestArgs=wu;function Ou(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}}ke.parseRawRequestArgs=Ou;function Du(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}}ke.parseBatchRequestArgs=Du;function Au(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],s=n[1];return e.document?e:{url:e,document:t,variables:i,requestHeaders:s,signal:void 0}}ke.parseRequestExtendedArgs=Au;function Su(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],s=n[1];return e.query?e:{url:e,query:t,variables:i,requestHeaders:s,signal:void 0}}ke.parseRawRequestExtendedArgs=Su;function Ru(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}ke.parseBatchRequestsExtendedArgs=Ru;var pn={},ku=se&&se.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(pn,"__esModule",{value:!0});pn.ClientError=void 0;var Lu=function(e){ku(t,e);function t(n,r){var i=this,s="".concat(t.extractMessage(n),": ").concat(JSON.stringify({response:n,request:r}));return i=e.call(this,s)||this,Object.setPrototypeOf(i,t.prototype),i.response=n,i.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t.extractMessage=function(n){try{return n.errors[0].message}catch{return"GraphQL Error (Code: ".concat(n.status,")")}},t}(Error);pn.ClientError=Lu;var Ft={};const Fu="16.8.1",xu=Object.freeze({major:16,minor:8,patch:1,preReleaseTag:null});function K(e,t){if(!!!e)throw new Error(t)}function Me(e){return typeof(e==null?void 0:e.then)=="function"}function Ve(e){return typeof e=="object"&&e!==null}function ye(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const $u=/\r\n|[\n\r]/g;function Pn(e,t){let n=0,r=1;for(const i of e.body.matchAll($u)){if(typeof i.index=="number"||ye(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function qs(e){return Kr(e.source,Pn(e.source,e.start))}function Kr(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,a=t.line===1?n:0,u=t.column+a,c=`${e.name}:${o}:${u}
`,f=r.split(/\r\n|[\n\r]/g),d=f[i];if(d.length>120){const h=Math.floor(u/80),v=u%80,g=[];for(let P=0;P<d.length;P+=80)g.push(d.slice(P,P+80));return c+Yi([[`${o} |`,g[0]],...g.slice(1,h+1).map(P=>["|",P]),["|","^".padStart(v)],["|",g[h+1]]])}return c+Yi([[`${o-1} |`,f[i-1]],[`${o} |`,d],["|","^".padStart(u)],[`${o+1} |`,f[i+1]]])}function Yi(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?" "+i:"")).join(`
`)}function Cu(e){const 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}class b extends Error{constructor(t,...n){var r,i,s;const{nodes:o,source:a,positions:u,path:c,originalError:f,extensions:d}=Cu(n);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=f??void 0,this.nodes=Ji(Array.isArray(o)?o:o?[o]:void 0);const h=Ji((r=this.nodes)===null||r===void 0?void 0:r.map(g=>g.loc).filter(g=>g!=null));this.source=a??(h==null||(i=h[0])===null||i===void 0?void 0:i.source),this.positions=u??(h==null?void 0:h.map(g=>g.start)),this.locations=u&&a?u.map(g=>Pn(a,g)):h==null?void 0:h.map(g=>Pn(g.source,g.start));const v=Ve(f==null?void 0:f.extensions)?f==null?void 0:f.extensions:void 0;this.extensions=(s=d??v)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),f!=null&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,b):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`
`+qs(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
`+Kr(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function Ji(e){return e===void 0||e.length===0?void 0:e}function Mu(e){return e.toString()}function Vu(e){return e.toJSON()}function Te(e,t,n){return new b(`Syntax Error: ${n}`,{source:e,positions:[t]})}class Gs{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Zr{constructor(t,n,r,i,s,o){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=s,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Qs={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Uu=new Set(Object.keys(Qs));function Fr(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&Uu.has(t)}var be;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(be||(be={}));var Q;(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"})(Q||(Q={}));var l;(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.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"})(l||(l={}));function xr(e){return e===9||e===32}function on(e){return e>=48&&e<=57}function Ys(e){return e>=97&&e<=122||e>=65&&e<=90}function ei(e){return Ys(e)||e===95}function Js(e){return Ys(e)||on(e)||e===95}function Pu(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let o=0;o<e.length;++o){var s;const a=e[o],u=ju(a);u!==a.length&&(r=(s=r)!==null&&s!==void 0?s:o,i=o,o!==0&&u<n&&(n=u))}return e.map((o,a)=>a===0?o:o.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function ju(e){let t=0;for(;t<e.length&&xr(e.charCodeAt(t));)++t;return t}function Bu(e){if(e==="")return!0;let t=!0,n=!1,r=!0,i=!1;for(let s=0;s<e.length;++s)switch(e.codePointAt(s)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function Hs(e,t){const n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=r.length===1,s=r.length>1&&r.slice(1).every(v=>v.length===0||xr(v.charCodeAt(0))),o=n.endsWith('\\"""'),a=e.endsWith('"')&&!o,u=e.endsWith("\\"),c=a||u,f=!(t!=null&&t.minimize)&&(!i||e.length>70||c||s||o);let d="";const h=i&&xr(e.charCodeAt(0));return(f&&!h||s)&&(d+=`
`),d+=n,(f||c)&&(d+=`
`),'"""'+d+'"""'}var N;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",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"})(N||(N={}));class ti{constructor(t){const n=new Zr(N.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==N.EOF)do if(t.next)t=t.next;else{const n=qu(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===N.COMMENT);return t}}function zs(e){return e===N.BANG||e===N.DOLLAR||e===N.AMP||e===N.PAREN_L||e===N.PAREN_R||e===N.SPREAD||e===N.COLON||e===N.EQUALS||e===N.AT||e===N.BRACKET_L||e===N.BRACKET_R||e===N.BRACE_L||e===N.PIPE||e===N.BRACE_R}function qt(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function er(e,t){return Xs(e.charCodeAt(t))&&Ws(e.charCodeAt(t+1))}function Xs(e){return e>=55296&&e<=56319}function Ws(e){return e>=56320&&e<=57343}function Nt(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return N.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function ge(e,t,n,r,i){const s=e.line,o=1+n-e.lineStart;return new Zr(t,n,r,s,o,i)}function qu(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const s=n.charCodeAt(i);switch(s){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 Gu(e,i);case 33:return ge(e,N.BANG,i,i+1);case 36:return ge(e,N.DOLLAR,i,i+1);case 38:return ge(e,N.AMP,i,i+1);case 40:return ge(e,N.PAREN_L,i,i+1);case 41:return ge(e,N.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return ge(e,N.SPREAD,i,i+3);break;case 58:return ge(e,N.COLON,i,i+1);case 61:return ge(e,N.EQUALS,i,i+1);case 64:return ge(e,N.AT,i,i+1);case 91:return ge(e,N.BRACKET_L,i,i+1);case 93:return ge(e,N.BRACKET_R,i,i+1);case 123:return ge(e,N.BRACE_L,i,i+1);case 124:return ge(e,N.PIPE,i,i+1);case 125:return ge(e,N.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?Xu(e,i):Yu(e,i)}if(on(s)||s===45)return Qu(e,i,s);if(ei(s))return Wu(e,i);throw Te(e.source,i,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:qt(s)||er(n,i)?`Unexpected character: ${Nt(e,i)}.`:`Invalid character: ${Nt(e,i)}.`)}return ge(e,N.EOF,r,r)}function Gu(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const s=n.charCodeAt(i);if(s===10||s===13)break;if(qt(s))++i;else if(er(n,i))i+=2;else break}return ge(e,N.COMMENT,t,i,n.slice(t+1,i))}function Qu(e,t,n){const r=e.source.body;let i=t,s=n,o=!1;if(s===45&&(s=r.charCodeAt(++i)),s===48){if(s=r.charCodeAt(++i),on(s))throw Te(e.source,i,`Invalid number, unexpected digit after 0: ${Nt(e,i)}.`)}else i=gr(e,i,s),s=r.charCodeAt(i);if(s===46&&(o=!0,s=r.charCodeAt(++i),i=gr(e,i,s),s=r.charCodeAt(i)),(s===69||s===101)&&(o=!0,s=r.charCodeAt(++i),(s===43||s===45)&&(s=r.charCodeAt(++i)),i=gr(e,i,s),s=r.charCodeAt(i)),s===46||ei(s))throw Te(e.source,i,`Invalid number, expected digit but got: ${Nt(e,i)}.`);return ge(e,o?N.FLOAT:N.INT,t,i,r.slice(t,i))}function gr(e,t,n){if(!on(n))throw Te(e.source,t,`Invalid number, expected digit but got: ${Nt(e,t)}.`);const r=e.source.body;let i=t+1;for(;on(r.charCodeAt(i));)++i;return i}function Yu(e,t){const n=e.source.body,r=n.length;let i=t+1,s=i,o="";for(;i<r;){const a=n.charCodeAt(i);if(a===34)return o+=n.slice(s,i),ge(e,N.STRING,t,i+1,o);if(a===92){o+=n.slice(s,i);const u=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?Ju(e,i):Hu(e,i):zu(e,i);o+=u.value,i+=u.size,s=i;continue}if(a===10||a===13)break;if(qt(a))++i;else if(er(n,i))i+=2;else throw Te(e.source,i,`Invalid character within String: ${Nt(e,i)}.`)}throw Te(e.source,i,"Unterminated string.")}function Ju(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const s=n.charCodeAt(t+i++);if(s===125){if(i<5||!qt(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Wt(s),r<0)break}throw Te(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function Hu(e,t){const n=e.source.body,r=Hi(n,t+2);if(qt(r))return{value:String.fromCodePoint(r),size:6};if(Xs(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=Hi(n,t+8);if(Ws(i))return{value:String.fromCodePoint(r,i),size:12}}throw Te(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Hi(e,t){return Wt(e.charCodeAt(t))<<12|Wt(e.charCodeAt(t+1))<<8|Wt(e.charCodeAt(t+2))<<4|Wt(e.charCodeAt(t+3))}function Wt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function zu(e,t){const 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:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw Te(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Xu(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,s=t+3,o=s,a="";const u=[];for(;s<r;){const c=n.charCodeAt(s);if(c===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){a+=n.slice(o,s),u.push(a);const f=ge(e,N.BLOCK_STRING,t,s+3,Pu(u).join(`
`));return e.line+=u.length-1,e.lineStart=i,f}if(c===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){a+=n.slice(o,s),o=s+1,s+=4;continue}if(c===10||c===13){a+=n.slice(o,s),u.push(a),c===13&&n.charCodeAt(s+1)===10?s+=2:++s,a="",o=s,i=s;continue}if(qt(c))++s;else if(er(n,s))s+=2;else throw Te(e.source,s,`Invalid character within String: ${Nt(e,s)}.`)}throw Te(e.source,s,"Unterminated string.")}function Wu(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const s=n.charCodeAt(i);if(Js(s))++i;else break}return ge(e,N.NAME,t,i,n.slice(t,i))}const Ku=10,Ks=2;function I(e){return tr(e,[])}function tr(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Zu(e,t);default:return String(e)}}function Zu(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(ec(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:tr(r,n)}else if(Array.isArray(e))return nc(e,n);return tc(e,n)}function ec(e){return typeof e.toJSON=="function"}function tc(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>Ks?"["+rc(e)+"]":"{ "+n.map(([i,s])=>i+": "+tr(s,t)).join(", ")+" }"}function nc(e,t){if(e.length===0)return"[]";if(t.length>Ks)return"[Array]";const n=Math.min(Ku,e.length),r=e.length-n,i=[];for(let s=0;s<n;++s)i.push(tr(e[s],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function rc(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}const ze=globalThis.process?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const i=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===s){const o=I(t);throw new Error(`Cannot use ${i} "${o}" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in th