PageSourceSearch

https://www.youngboynba.com/wp-content/cache/autoptimize/2264/auto…0a668bbff26526bfb61b1f28.php?ver=1786967407

js youngboynba.com collected 2026-09-25 04:33:46 UTC 119,426 bytes, 1,172 lines download raw bytes

vendor: 5,343 bytes, line 1
1(self.webpackChunkslick=self.webpackChunkslick||[]).push([[4],{4945(e,t,i){var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==i.g&&i.g,n=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==i.g&&i.g||{},n="URLSearchParams"in r,a="Symbol"in r&&"iterator"in Symbol,s="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in r,c="ArrayBuffer"in r;if(c)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&u.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new 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)}function f(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function y(e){return new Promise(function(t,i){e.onload=function(){t(e.result)},e.onerror=function(){i(e.error)}})}function v(e){var t=new FileReader,i=y(t);return t.readAsArrayBuffer(e),i}function E(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:s&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():c&&s&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=E(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=E(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var e=f(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=f(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))}if(s)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,i,r,n,a=f(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=y(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),n=r?r[1]:"utf-8",t.readAsText(e,n),i;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),i=new Array(t.length),r=0;r<t.length;r++)i[r]=String.fromCharCode(t[r]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}m.prototype.append=function(e,t){e=l(e),t=p(t);var i=this.map[e];this.map[e]=i?i+", "+t:t},m.prototype.delete=function(e){delete this.map[l(e)]},m.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},m.prototype.set=function(e,t){this.map[l(e)]=p(t)},m.prototype.forEach=function(e,t){for(var i in this.map)this.map.hasOwnProperty(i)&&e.call(t,this.map[i],i,this)},m.prototype.keys=function(){var e=[];return this.forEach(function(t,i){e.push(i)}),h(e)},m.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),h(e)},m.prototype.entries=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),h(e)},a&&(m.prototype[Symbol.iterator]=m.prototype.entries);var T=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var i,n,a=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=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 m(t.headers)),this.method=(i=t.method||this.method||"GET",n=i.toUpperCase(),T.indexOf(n)>-1?n:i),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function I(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var i=e.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(n))}}),t}function b(e,t){if(!(this instanceof b))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=void 0===t.status?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=void 0===t.statusText?"":""+t.statusText,this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},g.call(_.prototype),g.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},b.error=function(){var e=new b(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var N=[301,302,303,307,308];b.redirect=function(e,t){if(-1===N.indexOf(t))throw new RangeError("Invalid status code");return new b(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var i=Error(e);this.stack=i.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(e,i){return new Promise(function(n,a){var o=new _(e,i);if(o.signal&&o.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function d(){u.abort()}if(u.onload=function(){var e,t,i={statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var i=e.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();try{t.append(r,n)}catch(e){console.warn("Response "+e.message)}}}),t)};0===o.url.indexOf("file://")&&(u.status<200||u.status>599)?i.status=200:i.status=u.status,i.url="responseURL"in u?u.responseURL:i.headers.get("X-Request-URL");var r="response"in u?u.response:u.responseText;setTimeout(function(){n(new b(r,i))},0)},u.onerror=function(){setTimeout(function(){a(new TypeError("Network request failed"))},0)},u.ontimeout=function(){setTimeout(function(){a(new TypeError("Network request timed out"))},0)},u.onabort=function(){setTimeout(function(){a(new t.DOMException("Aborted","AbortError"))},0)},u.open(o.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?u.withCredentials=!0:"omit"===o.credentials&&(u.withCredentials=!1),"responseType"in u&&(s?u.responseType="blob":c&&(u.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof m||r.Headers&&i.headers instanceof r.Headers)){var h=[];
1Object.getOwnPropertyNames(i.headers).forEach(function(e){h.push(l(e)),u.setRequestHeader(e,p(i.headers[e]))}),o.headers.forEach(function(e,t){-1===h.indexOf(t)&&u.setRequestHeader(t,e)})}else o.headers.forEach(function(e,t){u.setRequestHeader(t,e)});o.signal&&(o.signal.addEventListener("abort",d),u.onreadystatechange=function(){4===u.readyState&&o.signal.removeEventListener("abort",d)}),u.send(void 0===o._bodyInit?null:o._bodyInit)})}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=m,r.Request=_,r.Response=b),t.Headers=m,t.Request=_,t.Response=b,t.fetch=A,Object.defineProperty(t,"__esModule",{value:!0})}({})}(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=r.fetch?r:n;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t},6040(e,t,i){"use strict";i.d(t,{A:()=>ke});const r=JSON;function n(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const a=/\r\n|[\n\r]/g;function s(e,t){let i=0,r=1;for(const s of e.body.matchAll(a)){if("number"==typeof s.index||n(!1),s.index>=t)break;i=s.index+s[0].length,r+=1}return{line:r,column:t+1-i}}function o(e){return c(e.source,s(e.source,e.start))}function c(e,t){const i=e.locationOffset.column-1,r="".padStart(i)+e.body,n=t.line-1,a=e.locationOffset.line-1,s=t.line+a,o=1===t.line?i:0,c=t.column+o,d=`${e.name}:${s}:${c}\n`,l=r.split(/\r\n|[\n\r]/g),p=l[n];if(p.length>120){const e=Math.floor(c/80),t=c%80,i=[];for(let e=0;e<p.length;e+=80)i.push(p.slice(e,e+80));return d+u([[`${s} |`,i[0]],...i.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",i[e+1]]])}return d+u([[s-1+" |",l[n-1]],[`${s} |`,p],["|","^".padStart(c)],[`${s+1} |`,l[n+1]]])}function u(e){const t=e.filter(([e,t])=>void 0!==t),i=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(i)+(t?" "+t:"")).join("\n")}class d extends Error{constructor(e,...t){var i,r,n;const{nodes:a,source:o,positions:c,path:u,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=p?p:void 0,this.nodes=l(Array.isArray(a)?a:a?[a]:void 0);const m=l(null===(i=this.nodes)||void 0===i?void 0:i.map(e=>e.loc).filter(e=>null!=e));this.source=null!=o?o:null==m||null===(r=m[0])||void 0===r?void 0:r.source,this.positions=null!=c?c:null==m?void 0:m.map(e=>e.start),this.locations=c&&o?c.map(e=>s(o,e)):null==m?void 0:m.map(e=>s(e.source,e.start));const f="object"==typeof(y=null==p?void 0:p.extensions)&&null!==y?null==p?void 0:p.extensions:void 0;var y;this.extensions=null!==(n=null!=h?h:f)&&void 0!==n?n: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}}),null!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,d):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+o(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+c(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function l(e){return void 0===e||0===e.length?void 0:e}function p(e,t,i){return new d(`Syntax Error: ${i}`,{source:e,positions:[t]})}class h{constructor(e,t,i){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class m{constructor(e,t,i,r,n,a){this.kind=e,this.start=t,this.end=i,this.line=r,this.column=n,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}}}const f={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
1Value:[],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"]},y=new Set(Object.keys(f));function v(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&y.has(t)}var E,g,T,_;function I(e){return 9===e||32===e}function b(e){return e>=48&&e<=57}function N(e){return e>=97&&e<=122||e>=65&&e<=90}function A(e){return N(e)||95===e}function x(e){return N(e)||b(e)||95===e}function C(e){var t;let i=Number.MAX_SAFE_INTEGER,r=null,n=-1;for(let t=0;t<e.length;++t){var a;const s=e[t],o=k(s);o!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,n=t,0!==t&&o<i&&(i=o))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!==(t=r)&&void 0!==t?t:0,n+1)}function k(e){let t=0;for(;t<e.length&&I(e.charCodeAt(t));)++t;return t}!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(E||(E={})),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"}(g||(g={})),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"}(T||(T={})),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="}
1",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(_||(_={}));class O{constructor(e){const t=new m(_.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(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==_.EOF)do{if(e.next)e=e.next;else{const t=F(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===_.COMMENT);return e}}function D(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function S(e,t){return w(e.charCodeAt(t))&&R(e.charCodeAt(t+1))}function w(e){return e>=55296&&e<=56319}function R(e){return e>=56320&&e<=57343}function L(e,t){const i=e.source.body.codePointAt(t);if(void 0===i)return _.EOF;if(i>=32&&i<=126){const e=String.fromCodePoint(i);return'"'===e?"'\"'":`"${e}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function P(e,t,i,r,n){const a=e.line,s=1+i-e.lineStart;return new m(t,i,r,a,s,n)}function F(e,t){const i=e.source.body,r=i.length;let n=t;for(;n<r;){const t=i.charCodeAt(n);switch(t){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++e.line,e.lineStart=n;continue;case 13:10===i.charCodeAt(n+1)?n+=2:++n,++e.line,e.lineStart=n;continue;case 35:return B(e,n);case 33:return P(e,_.BANG,n,n+1);case 36:return P(e,_.DOLLAR,n,n+1);case 38:return P(e,_.AMP,n,n+1);case 40:return P(e,_.PAREN_L,n,n+1);case 41:return P(e,_.PAREN_R,n,n+1);case 46:if(46===i.charCodeAt(n+1)&&46===i.charCodeAt(n+2))return P(e,_.SPREAD,n,n+3);break;case 58:return P(e,_.COLON,n,n+1);case 61:return P(e,_.EQUALS,n,n+1);case 64:return P(e,_.AT,n,n+1);case 91:return P(e,_.BRACKET_L,n,n+1);case 93:return P(e,_.BRACKET_R,n,n+1);case 123:return P(e,_.BRACE_L,n,n+1);case 124:return P(e,_.PIPE,n,n+1);case 125:return P(e,_.BRACE_R,n,n+1);case 34:return 34===i.charCodeAt(n+1)&&34===i.charCodeAt(n+2)?G(e,n):q(e,n)}if(b(t)||45===t)return U(e,n,t);if(A(t))return W(e,n);throw p(e.source,n,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":D(t)||S(i,n)?`Unexpected character: ${L(e,n)}.`:`Invalid character: ${L(e,n)}.`)}return P(e,_.EOF,r,r)}function B(e,t){const i=e.source.body,r=i.length;let n=t+1;for(;n<r;){const e=i.charCodeAt(n);if(10===e||13===e)break;if(D(e))++n;else{if(!S(i,n))break;n+=2}}return P(e,_.COMMENT,t,n,i.slice(t+1,n))}function U(e,t,i){const r=e.source.body;let n=t,a=i,s=!1;if(45===a&&(a=r.charCodeAt(++n)),48===a){if(a=r.charCodeAt(++n),b(a))throw p(e.source,n,`Invalid number, unexpected digit after 0: ${L(e,n)}.`)}else n=M(e,n,a),a=r.charCodeAt(n);if(46===a&&(s=!0,a=r.charCodeAt(++n),n=M(e,n,a),a=r.charCodeAt(n)),69!==a&&101!==a||(s=!0,a=r.charCodeAt(++n),43!==a&&45!==a||(a=r.charCodeAt(++n)),n=M(e,n,a),a=r.charCodeAt(n)),46===a||A(a))throw p(e.source,n,`Invalid number, expected digit but got: ${L(e,n)}.`);return P(e,s?_.FLOAT:_.INT,t,n,r.slice(t,n))}function M(e,t,i){if(!b(i))throw p(e.source,t,`Invalid number, expected digit but got: ${L(e,t)}.`);const r=e.source.body;let n=t+1;for(;b(r.charCodeAt(n));)++n;return n}function q(e,t){const i=e.source.body,r=i.length;let n=t+1,a=n,s="";for(;n<r;){const r=i.charCodeAt(n);if(34===r)return s+=i.slice(a,n),P(e,_.STRING,t,n+1,s);if(92===r){s+=i.slice(a,n);const t=117===i.charCodeAt(n+1)?123===i.charCodeAt(n+2)?V(e,n):$(e,n):K(e,n);s+=t.value,n+=t.size,a=n;continue}if(10===r||13===r)break;if(D(r))++n;else{if(!S(i,n))throw p(e.source,n,`Invalid character within String: ${L(e,n)}.`);n+=2}}throw p(e.source,n,"Unterminated string.")}function V(e,t){const i=e.source.body;let r=0,n=3;for(;n<12;){const e=i.charCodeAt(t+n++);if(125===e){if(n<5||!D(r))break;return{value:String.fromCodePoint(r),size:n}}if(r=r<<4|H(e),r<0)break}throw p(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+n)}".`)}function $(e,t){const i=e.source.body,r=j(i,t+2);if(D(r))return{value:String.fromCodePoint(r),size:6};if(w(r)&&92===i.charCodeAt(t+6)&&117===i.charCodeAt(t+7)){const e=j(i,t+8);if(R(e))return{value:String.fromCodePoint(r,e),size:12}}throw p(e.source,t,`Invalid Unicode escape sequence: "${i.slice(t,t+6)}".`)}function j(e,t){return H(e.charCodeAt(t))<<12|H(e.charCodeAt(t+1))<<8|H(e.charCodeAt(t+2))<<4|H(e.charCodeAt(t+3))}function H(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function K(e,t){const i=e.source.body;switch(i.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:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw p(e.source,t,`Invalid character escape sequence: "${i.slice(t,t+2)}".`)}function G(e,t){const i=e.source.body,r=i.length;let n=e.lineStart,a=t+3,s=a,o="";const c=[];for(;a<r;){const r=i.charCodeAt(a);if(34===r&&34===i.charCodeAt(a+1)&&34===i.charCodeAt(a+2)){o+=i.slice(s,a),c.push(o);const r=P(e,_.BLOCK_STRING,t,a+3,C(c).join("\n"));return e.line+=c.length-1,e.lineStart=n,r}if(92!==r||34!==i.charCodeAt(a+1)||34!==i.charCodeAt(a+2)||34!==i.charCodeAt(a+3))if(10!==r&&13!==r)if(D(r))++a;else{if(!S(i,a))throw p(e.source,a,`Invalid character within String: ${L(e,a)}.`);a+=2}else o+=i.slice(s,a),c.push(o),13===r&&10===i.charCodeAt(a+1)?a+=2:++a,o="",s=a,n=a;else o+=i.slice(s,a),s=a+1,a+=4}throw p(e.source,a,"Unterminated string.")}function W(e,t){const i=e.source.body,r=i.length;let n=t+1;for(;n<r;){if(!x(i.charCodeAt(n)))break;++n}return P(e,_.NAME,t,n,i.slice(t,n))}function z(e,t){if(!Boolean(e))throw new Error(t)}function Y(e){return J(e,[])}function J(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const i=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:J(t,i)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const i=Math.min(10,e.length),r=e.length-i,n=[];for(let r=0;r<i;++r)n.push(J(e[r],t));1===r?n.push("... 1 more item"):r>1&&n.push(`... ${r} more items`);return"["+n.join(", ")+"]"}(e,i);return function(e,t){const i=Object.entries(e);if(0===i.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const r=i.map(([e,i])=>e+": "+J(i,t));return"{ "+r.join(", ")+" }"}(e,i)}(e,t);default:return String(e)}}const Q=globalThis.process&&!0?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;
1if("object"==typeof e&&null!==e){var i;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(i=e.constructor)||void 0===i?void 0:i.name)){const t=Y(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class X{constructor(e,t="GraphQL request",i={line:1,column:1}){"string"==typeof e||z(!1,`Body must be a string. Received: ${Y(e)}.`),this.body=e,this.name=t,this.locationOffset=i,this.locationOffset.line>0||z(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||z(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Z{constructor(e,t={}){const{lexer:i,...r}=t;if(i)this._lexer=i;else{const t=function(e){return Q(e,X)}(e)?e:new X(e);this._lexer=new O(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(_.NAME);return this.node(e,{kind:T.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:T.DOCUMENT,definitions:this.many(_.SOF,this.parseDefinition,_.EOF)})}parseDefinition(){if(this.peek(_.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===_.BRACE_L)throw p(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===_.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 p(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(_.BRACE_L))return this.node(e,{kind:T.OPERATION_DEFINITION,operation:E.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),i=this.parseOperationType();let r;return this.peek(_.NAME)&&(r=this.parseName()),this.node(e,{kind:T.OPERATION_DEFINITION,operation:i,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(_.NAME);switch(e.value){case"query":return E.QUERY;case"mutation":return E.MUTATION;case"subscription":return E.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(_.PAREN_L,this.parseVariableDefinition,_.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:T.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(_.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(_.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(_.DOLLAR),this.node(e,{kind:T.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:T.SELECTION_SET,selections:this.many(_.BRACE_L,this.parseSelection,_.BRACE_R)})}parseSelection(){return this.peek(_.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let i,r;return this.expectOptionalToken(_.COLON)?(i=t,r=this.parseName()):r=t,this.node(e,{kind:T.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(_.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(_.PAREN_L,t,_.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,i=this.parseName();return this.expectToken(_.COLON),this.node(t,{kind:T.ARGUMENT,name:i,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(_.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(_.NAME)?this.node(e,{kind:T.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:T.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:T.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:T.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case _.BRACKET_L:return this.parseList(e);case _.BRACE_L:return this.parseObject(e);case _.INT:return this.advanceLexer(),this.node(t,{kind:T.INT,value:t.value});case _.FLOAT:return this.advanceLexer(),this.node(t,{kind:T.FLOAT,value:t.value});case _.STRING:case _.BLOCK_STRING:return this.parseStringLiteral();case _.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:T.BOOLEAN,value:!0});case"false":return this.node(t,{kind:T.BOOLEAN,value:!1});case"null":return this.node(t,{kind:T.NULL});default:return this.node(t,{kind:T.ENUM,value:t.value})}case _.DOLLAR:if(e){if(this.expectToken(_.DOLLAR),this._lexer.token.kind===_.NAME){const e=this._lexer.token.value;throw p(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(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:T.STRING,value:e.value,block:e.kind===_.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:T.LIST,values:this.any(_.BRACKET_L,()=>this.parseValueLiteral(e),_.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:T.OBJECT,fields:this.any(_.BRACE_L,()=>this.parseObjectField(e),_.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,i=this.parseName();return this.expectToken(_.COLON),this.node(t,{kind:T.OBJECT_FIELD,name:i,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(_.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(_.AT),this.node(t,{kind:T.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(_.BRACKET_L)){const i=this.parseTypeReference();this.expectToken(_.BRACKET_R),t=this.node(e,{kind:T.LIST_TYPE,type:i})}else t=this.parseNamedType();return this.expectOptionalToken(_.BANG)?this.node(e,{kind:T.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:T.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(_.STRING)||this.peek(_.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const i=this.parseConstDirectives(),r=this.many(_.BRACE_L,this.parseOperationTypeDefinition,_.BRACE_R);return this.node(e,{kind:T.SCHEMA_DEFINITION,description:t,directives:i,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(_.COLON);const i=this.parseNamedType();return this.node(e,{kind:T.OPERATION_TYPE_DEFINITION,operation:t,type:i})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const i=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:T.SCALAR_TYPE_DEFINITION,description:t,name:i,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const i=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:T.OBJECT_TYPE_DEFINITION,description:t,name:i,interfaces:r,directives:n,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(_.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(_.BRACE_L,this.parseFieldDefinition,_.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),i=this.parseName(),r=this.parseArgumentDefs();this.expectToken(_.COLON);const n=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:T.FIELD_DEFINITION,description:t,name:i,arguments:r,type:n,directives:a})}parseArgumentDefs(){return this.optionalMany(_.PAREN_L,this.parseInputValueDef,_.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),i=this.parseName();this.expectToken(_.COLON);const r=this.parseTypeReference();let n;this.expectOptionalToken(_.EQUALS)&&(n=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:T.INPUT_VALUE_DEFINITION,description:t,name:i,type:r,defaultValue:n,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const i=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:T.INTERFACE_TYPE_DEFINITION,description:t,name:i,interfaces:r,directives:n,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const i=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();return this.node(e,{kind:T.UNION_TYPE_DEFINITION,description:t,name:i,directives:r,types:n})}parseUnionMemberTypes(){return this.expectOptionalToken(_.EQUALS)?this.delimitedMany(_.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const i=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();return this.node(e,{kind:T.ENUM_TYPE_DEFINITION,description:t,name:i,directives:r,values:n})}parseEnumValuesDefinition(){return this.optionalMany(_.BRACE_L,this.parseEnumValueDefinition,_.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),i=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:T.ENUM_VALUE_DEFINITION,description:t,name:i,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw p(this._lexer.source,this._lexer.token.start,`${ee(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const i=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();return this.node(e,{kind:T.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:i,directives:r,fields:n})}parseInputFieldsDefinition(){return this.optionalMany(_.BRACE_L,this.parseInputValueDef,_.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===_.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()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),i=this.optionalMany(_.BRACE_L,this.parseOperationTypeDefinition,_.BRACE_R);if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:T.SCHEMA_EXTENSION,directives:t,operationTypes:i})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(e,{kind:T.SCALAR_TYPE_EXTENSION,name:t,directives:i})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===i.length&&0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:T.OBJECT_TYPE_EXTENSION,name:t,interfaces:i,directives:r,fields:n})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),n=this.parseFieldsDefinition();if(0===i.length&&0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:T.INTERFACE_TYPE_EXTENSION,name:t,interfaces:i,directives:r,fields:n})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:T.UNION_TYPE_EXTENSION,name:t,directives:i,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:T.ENUM_TYPE_EXTENSION,name:t,directives:i,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:T.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:i,fields:r})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(_.AT);const t=this.parseName(),i=this.parseConstDirectives();if(0===i.length)throw this.unexpected();return this.node(e,{kind:T.DIRECTIVE_EXTENSION,name:t,directives:i})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(_.AT);const i=this.parseName(),r=this.parseArgumentDefs(),n=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],a=thi
1s.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:T.DIRECTIVE_DEFINITION,description:t,name:i,arguments:r,directives:n,repeatable:a,locations:s})}parseDirectiveLocations(){return this.delimitedMany(_.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(g,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(_.AT),i=this.parseName();let r,n;return!t&&this.expectOptionalToken(_.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(_.PAREN_L)&&(n=this.parseName(),this.expectToken(_.COLON),this.expectToken(_.PAREN_R)),t?n?this.node(e,{kind:T.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:n}):this.node(e,{kind:T.DIRECTIVE_COORDINATE,name:i}):r?n?this.node(e,{kind:T.ARGUMENT_COORDINATE,name:i,fieldName:r,argumentName:n}):this.node(e,{kind:T.MEMBER_COORDINATE,name:i,memberName:r}):this.node(e,{kind:T.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new h(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw p(this._lexer.source,t.start,`Expected ${te(e)}, found ${ee(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==_.NAME||t.value!==e)throw p(this._lexer.source,t.start,`Expected "${e}", found ${ee(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===_.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return p(this._lexer.source,t.start,`Unexpected ${ee(t)}.`)}any(e,t,i){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(i);)r.push(t.call(this));return r}optionalMany(e,t,i){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(i));return e}return[]}many(e,t,i){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(i));return r}delimitedMany(e,t){this.expectOptionalToken(e);const i=[];do{i.push(t.call(this))}while(this.expectOptionalToken(e));return i}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==_.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw p(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ee(e){const t=e.value;return te(e.kind)+(null!=t?` "${t}"`:"")}function te(e){return function(e){return 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)?`"${e}"`:e}const ie=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function re(e){return ne[e.charCodeAt(0)]}const ne=["\\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"];const ae=Object.freeze({});function se(e,t){const i=e[t];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}function oe(e){return function(e,t,i=f){const r=new Map;for(const e of Object.values(T))r.set(e,se(t,e));let n,a,s,o=Array.isArray(e),c=[e],u=-1,d=[],l=e;const p=[],h=[];do{u++;const e=u===c.length,f=e&&0!==d.length;if(e){if(a=0===h.length?void 0:p[p.length-1],l=s,s=h.pop(),f)if(o){l=l.slice();let e=0;for(const[t,i]of d){const r=t-e;null===i?(l.splice(r,1),e++):l[r]=i}}else{l={...l};for(const[e,t]of d)l[e]=t}u=n.index,c=n.keys,d=n.edits,o=n.inArray,n=n.prev}else if(s){if(a=o?u:c[u],l=s[a],null==l)continue;p.push(a)}let g;if(!Array.isArray(l)){var m,y;v(l)||z(!1,`Invalid AST Node: ${Y(l)}.`);const i=e?null===(m=r.get(l.kind))||void 0===m?void 0:m.leave:null===(y=r.get(l.kind))||void 0===y?void 0:y.enter;if(g=null==i?void 0:i.call(t,l,a,s,p,h),g===ae)break;if(!1===g){if(!e){p.pop();continue}}else if(void 0!==g&&(d.push([a,g]),!e)){if(!v(g)){p.pop();continue}l=g}}var E;void 0===g&&f&&d.push([a,l]),e?p.pop():(n={inArray:o,index:u,keys:c,edits:d,prev:n},o=Array.isArray(l),c=o?l:null!==(E=i[l.kind])&&void 0!==E?E:[],u=-1,d=[],s&&h.push(s),s=l)}while(void 0!==n);return 0!==d.length?d[d.length-1][1]:e}(e,ce)}const ce={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ue(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=he(e.variableDefinitions)?le("(\n",ue(e.variableDefinitions,"\n"),"\n)"):le("(",ue(e.variableDefinitions,", "),")"),i=le("",e.description,"\n")+ue([e.operation,ue([e.name,t]),ue(e.directives," ")]," ");return("query"===i?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:i,directives:r,description:n})=>le("",n,"\n")+e+": "+t+le(" = ",i)+le(" ",ue(r," "))},SelectionSet:{leave:({selections:e})=>de(e)},Field:{leave({alias:e,name:t,arguments:i,directives:r,selectionSet:n}){const a=le("",e,": ")+t;let s=a+le("(",ue(i,", "),")");return s.length>
180&&(s=a+le("(\n",pe(ue(i,"\n")),"\n)")),ue([s,ue(r," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+le(" ",ue(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:i})=>ue(["...",le("on ",e),ue(t," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:i,directives:r,selectionSet:n,description:a})=>le("",a,"\n")+`fragment ${e}${le("(",ue(i,", "),")")} `+`on ${t} ${le("",ue(r," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){const i=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""'),r=i.split(/\r\n|[\n\r]/g),n=1===r.length,a=r.length>1&&r.slice(1).every(e=>0===e.length||I(e.charCodeAt(0))),s=i.endsWith('\\"""'),o=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=o||c,d=!(null!=t&&t.minimize)&&(!n||e.length>70||u||a||s);let l="";const p=n&&I(e.charCodeAt(0));return(d&&!p||a)&&(l+="\n"),l+=i,(d||u)&&(l+="\n"),'"""'+l+'"""'}(e):`"${e.replace(ie,re)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+ue(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+ue(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+le("(",ue(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:i})=>le("",e,"\n")+ue(["schema",ue(t," "),de(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:i})=>le("",e,"\n")+ue(["scalar",t,ue(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:r,fields:n})=>le("",e,"\n")+ue(["type",t,le("implements ",ue(i," & ")),ue(r," "),de(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:i,type:r,directives:n})=>le("",e,"\n")+t+(he(i)?le("(\n",pe(ue(i,"\n")),"\n)"):le("(",ue(i,", "),")"))+": "+r+le(" ",ue(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:i,defaultValue:r,directives:n})=>le("",e,"\n")+ue([t+": "+i,le("= ",r),ue(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:r,fields:n})=>le("",e,"\n")+ue(["interface",t,le("implements ",ue(i," & ")),ue(r," "),de(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:i,types:r})=>le("",e,"\n")+ue(["union",t,ue(i," "),le("= ",ue(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:i,values:r})=>le("",e,"\n")+ue(["enum",t,ue(i," "),de(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:i})=>le("",e,"\n")+ue([t,ue(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:i,fields:r})=>le("",e,"\n")+ue(["input",t,ue(i," "),de(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:i,directives:r,repeatable:n,locations:a})=>le("",e,"\n")+"directive @"+t+(he(i)?le("(\n",pe(ue(i,"\n")),"\n)"):le("(",ue(i,", "),")"))+le(" ",ue(r," "))+(n?" repeatable":"")+" on "+ue(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ue(["extend schema",ue(e," "),de(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ue(["extend scalar",e,ue(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:r})=>ue(["extend type",e,le("implements ",ue(t," & ")),ue(i," "),de(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:r})=>ue(["extend interface",e,le("implements ",ue(t," & ")),ue(i," "),de(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:i})=>ue(["extend union",e,ue(t," "),le("= ",ue(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:i})=>ue(["extend enum",e,ue(t," "),de(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:i})=>ue(["extend input",e,ue(t," "),de(i)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>ue(["extend directive @"+e,ue(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>ue([e,le(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:i})=>ue([e,le(".",t),le("(",i,":)")])},DirectiveCoordinate:{leave:({name:e})=>ue(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>ue(["@",e,le("(",t,":)")])}};function ue(e,t=""){var i;return null!==(i=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==i?i:""}function de(e){return le("{\n",pe(ue(e,"\n")),"\n}")}function le(e,t,i=""){return null!=t&&""!==t?e+t+i:""}function pe(e){return le("  ",e.replace(/\n/g,"\n  "))}function he(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}const me=e=>{let t;const i=e.definitions.filter(e=>"OperationDefinition"===e.kind);return 1===i.length&&(t=i[0]?.name?.value),t},fe=e=>{if("string"==typeof e){let t;try{const i=function(e,t){const i=new Z(e,t),r=i.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:i.tokenCount}),r}(e);t=me(i)}catch(e){}return{query:e,operationName:t}}const t=me(e);return{query:oe(e),operationName:t}};
1class ye extends Error{constructor(e,t){super(`${ye.extractMessage(e)}: ${JSON.stringify({response:e,request:t})}`),Object.setPrototypeOf(this,ye.prototype),this.response=e,this.request=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,ye)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}var ve=i(4945),Ee=i.t(ve,2);const ge=e=>{let t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||Ee&&ve.Headers&&e instanceof ve.Headers?t=(e=>{const t={};return e.forEach((e,i)=>{t[i]=e}),t})(e):Array.isArray(e)?e.forEach(([e,i])=>{e&&void 0!==i&&(t[e]=i)}):t=e),t},Te=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),_e=e=>async t=>{const{url:i,query:n,variables:a,operationName:s,fetch:o,fetchOptions:c,middleware:u}=t,d={...t.headers};let l,p="";"POST"===e?(l=Ne(n,a,s,c.jsonSerializer),"string"==typeof l&&(d["Content-Type"]="application/json")):p=(e=>{if(!Array.isArray(e.query)){const t=e,i=[`query=${encodeURIComponent(Te(t.query))}`];return e.variables&&i.push(`variables=${encodeURIComponent(t.jsonSerializer.stringify(t.variables))}`),t.operationName&&i.push(`operationName=${encodeURIComponent(t.operationName)}`),i.join("&")}if(void 0!==e.variables&&!Array.isArray(e.variables))throw new Error("Cannot create query with given variable type, array expected");const t=e,i=e.query.reduce((e,i,r)=>(e.push({query:Te(i),variables:t.variables?t.jsonSerializer.stringify(t.variables[r]):void 0}),e),[]);return`query=${encodeURIComponent(t.jsonSerializer.stringify(i))}`})({query:n,variables:a,operationName:s,jsonSerializer:c.jsonSerializer??r});const h={method:e,headers:d,body:l,...c};let m=i,f=h;if(u){const e=await Promise.resolve(u({...h,url:i,operationName:s,variables:a})),{url:t,...r}=e;m=t,f=r}return p&&(m=`${m}?${p}`),await o(m,f)};class Ie{constructor(e,t={}){this.url=e,this.requestConfig=t,this.rawRequest=async(...e)=>{const[t,i,r]=e,n=((e,t,i)=>e.query?e:{query:e,variables:t,requestHeaders:i,signal:void 0})(t,i,r),{headers:a,fetch:s=ve,method:o="POST",requestMiddleware:c,responseMiddleware:u,...d}=this.requestConfig,{url:l}=this;void 0!==n.signal&&(d.signal=n.signal);const{operationName:p}=fe(n.query);return be({url:l,query:n.query,variables:n.variables,headers:{...ge(xe(a)),...ge(n.requestHeaders)},operationName:p,fetch:s,method:o,fetchOptions:d,middleware:c}).then(e=>(u&&u(e),e)).catch(e=>{throw u&&u(e),e})}}async request(e,...t){const[i,r]=t,n=((e,t,i)=>e.document?e:{document:e,variables:t,requestHeaders:i,signal:void 0})(e,i,r),{headers:a,fetch:s=ve,method:o="POST",requestMiddleware:c,responseMiddleware:u,...d}=this.requestConfig,{url:l}=this;void 0!==n.signal&&(d.signal=n.signal);const{query:p,operationName:h}=fe(n.document);return be({url:l,query:p,variables:n.variables,headers:{...ge(xe(a)),...ge(n.requestHeaders)},operationName:h,fetch:s,method:o,fetchOptions:d,middleware:c}).then(e=>(u&&u(e),e.data)).catch(e=>{throw u&&u(e),e})}batchRequests(e,t){const i=((e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0})(e,t),{headers:r,...n}=this.requestConfig;void 0!==i.signal&&(n.signal=i.signal);const a=i.documents.map(({document:e})=>fe(e).query),s=i.documents.map(({variables:e})=>e);return be({url:this.url,query:a,variables:s,headers:{...ge(xe(r)),...ge(i.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??ve,method:this.requestConfig.method||"POST",fetchOptions:n,middleware:this.requestConfig.requestMiddleware}).then(e=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e.data)).catch(e=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(e),e})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,t){const{headers:i}=this.requestConfig;return i?i[e]=t:this.requestConfig.headers={[e]:t},this}setEndpoint(e){return this.url=e,this}}const be=async e=>{const{query:t,variables:i,fetchOptions:n}=e,a=_e((e.method??"post").toUpperCase());const s=Array.isArray(e.query),o=await a(e),c=await Ae(o,n.jsonSerializer??r),u=Array.isArray(c)?!c.some(({data:e})=>!e):Boolean(c.data),d=Array.isArray(c)||!c.errors||Array.isArray(c.errors)&&!c.errors.length||"all"===n.errorPolicy||"ignore"===n.errorPolicy;if(o.ok&&d&&u){const{errors:e,...t}=(Array.isArray(c),c),i="ignore"===n.errorPolicy?t:c;return{...s?{data:i}:i,headers:o.headers,status:o.status}}throw new ye({..."string"==typeof c?{error:c}:c,status:o.status,headers:o.headers},{query:t,variables:i})};const Ne=(e,t,i,n)=>{const a=n??r;if(!Array.isArray(e))return a.stringify({query:e,variables:t,operationName:i});if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");const s=e.reduce((e,i,r)=>(e.push({query:i,variables:t?t[r]:void 0}),e),[]);return a.stringify(s)},Ae=async(e,t)=>{let i;
1return e.headers.forEach((e,t)=>{"content-type"===t.toLowerCase()&&(i=e)}),i&&(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json"))?t.parse(await e.text()):e.text()},xe=e=>"function"==typeof e?e():e,Ce=(e,...t)=>e.reduce((e,i,r)=>`${e}${i}${r in t?String(t[r]):""}`,"");String.prototype.endsWith=function(e){return-1!==this.indexOf(e,this.length-e.length)};class ke{constructor(e,t,i="2026-01"){this.storageKey="gr-shopify-cart-id",this.shopConfigCache=null,this.apiKey=t,this.apiVersion=i,/(http(s?)):\/\//i.test(e)?this.endpoint=`${e.endsWith("/")?e.slice(0,-1):e}/api/${this.apiVersion}/graphql.json`:this.endpoint=`https://${e.endsWith("/")?e.slice(0,-1):e}/api/${this.apiVersion}/graphql.json`,this.client=new Ie(this.endpoint),this.client.setHeaders({"X-Shopify-Storefront-Access-Token":this.apiKey,"Content-Type":"application/json"})}async addToCart(e){const t=this._getCartIdFromStorage();if(t){let i=await this.addItemsToCart(t,e);if(Array.isArray(i.data.cartLinesAdd.userErrors)&&i.data.cartLinesAdd.userErrors.length>0)return{errors:i.data.cartLinesAdd.userErrors,warnings:i.data.cartLinesAdd.warnings??[]};if(i&&200===i.status)return i.data?.cartLinesAdd?.warnings&&i.data.cartLinesAdd.cart&&(i.data.cartLinesAdd.cart.warnings=i.data.cartLinesAdd.warnings),i.data.cartLinesAdd.cart.lines=i.data.cartLinesAdd.cart.lines.edges.map(e=>e.node),i.data.cartLinesAdd.cart}else{let t=await this.createCart(e);if(Array.isArray(t.data.cartCreate.userErrors)&&t.data.cartCreate.userErrors.length>0){const i=this._checkCartErrors(t.data.cartCreate.userErrors,e,null);t=await this.createCart(i)}if(200===t.status&&t.data&&t.data.cartCreate&&t.data.cartCreate.cart&&t.data.cartCreate.cart.id)return t.data.cartCreate.warnings&&(t.data.cartCreate.cart.warnings=t.data.cartCreate.warnings),this._setCartIdInStorage(t.data.cartCreate.cart.id),t.data.cartCreate.cart.lines=t.data.cartCreate.cart.lines.edges.map(e=>e.node),t.data.cartCreate.cart}}async getCart(){const e=this._getCartIdFromStorage();if(!e)return;const t=await this.getCartById(e);if(t&&200===t.status&&t.data&&t.data.cart)return t.data.cart.lines=t.data.cart.lines.edges.map(e=>e.node),t.data.cart;localStorage.removeItem(this.storageKey)}clearCart(){localStorage.removeItem(this.storageKey)}_checkCartErrors(e,t,i){const r=null!==i?i.data.cart.lines.edges.map(e=>e.node):[],n={},a={};return e.forEach(e=>{JSON.parse(e.message).forEach(e=>{n["gid://shopify/ProductVariant/"+e.variants[0].id]=e.productLevelLimit})}),r.forEach(e=>{a[e.merchandise.id]=e.quantity}),t.map(e=>{const t=n[e.merchandiseId],i=a[e.merchandiseId];if(void 0!==i&&void 0!==t){if(e.quantity+i>t){const r=t-i;e.quantity=r}}else e.quantity=void 0!==t?t:e.quantity}),t}_getCartIdFromStorage(){try{const e=localStorage.getItem(this.storageKey);if(e)return e}catch(e){console.error(e)}}_setCartIdInStorage(e){try{return localStorage.setItem(this.storageKey,e),e}catch(e){console.log(e)}}async createCart(e){const t=Ce`
2            mutation cartCreate($cartInput: CartInput) {
3                cartCreate(input: $cartInput) {
4                    warnings {
5                        code
6                        message
7                        target
8                    }
9                    cart {
10                        id
11                        checkoutUrl
12                        cost {
13                            subtotalAmount {
14                                amount
15                                currencyCode
16                            }
17                            totalAmount {
18                                amount
19                                currencyCode
20                            }
21                        }
22                        totalQuantity
23                        lines(first: 250) {
24                            edges {
25                                node {
26                                    id
27                                    quantity
28                                    cost {
29                                        amountPerQuantity {
30                                            amount
31                                            currencyCode
32                                        }
33                                        subtotalAmount {
34                                            amount
35                                            currencyCode
36                                        }
37                                        totalAmount {
38                                            amount
39                                            currencyCode
40                                        }
41                                    }
42                                    merchandise {
43                                        ... on ProductVariant {
44                                            id
45                                            title
46                                            selectedOptions {
47                                                name
48                                                value
49                                            }
50                                            barcode
51                                            price {
52                                                amount
53                                                currencyCode
54                                            }
55                                            umgBundles: metafield(
56                                                key: "component_structure"
57                                                namespace: "umg_bundles"
58                                            ) {
59                                                value
60                                            }
61                                            product {
62                                                id
63                                                title
64                                                productType
65                                                purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
66                                                    id
67                                                    value
68                                                    type
69                                                }
70                                                featuredImage {
71                                                    originalSrc: url
72                                                    altText
73                                                    width
74                                                    height
75                                                    smallSrc: url(transform: {
76                                                        preferredContentType: WEBP
77                                                        maxHeight: 100
78                                                        maxWidth: 100
79                                                    })
80                                                    largeSrc: url(transform: {
81                                                        preferredContentType: WEBP
82                                                        maxHeight: 1200
83                                                        maxWidth: 1200
84                                                    })
85                                                }
86                                                variants(first: 2) {
87                                                    edges {
88                                                        node {
89                                                            id
90                                                            quantityAvailable
91                                                            purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
92                                                                id
93                                                                value
94                                                                type
95                                                            } 
96                                                            metafields(
97                                                                identifiers: [
98                                                                    {
99                                                                        namespace: "chart_reporting"
100                                                                        key: "street_date"
101                                                                    }
102                                                                    {
103                                                                        namespace: "umg_attributes"
104                                                                        key: "product_owner"
105                                                                    }
106                                                                ]
107                                                            ) {
108                                                                namespace
109                                                                key
110                                                                value
111                                                                type
112                                                                description
113                                                            }
114                                                        }
115                                                    }
116                                                }
117                                            }
118                                        }
119                                    }
120                                    attributes {
121                                        key
122                                        value
123                                    }
124                                }
125                            }
126                        }
127                    }
128                    userErrors {
129                        field
130                        message
131                    }
132                }
133            }
134        `,i={cartInput:{lines:e}};return await this.client.rawRequest(t,i)}async getCartById(e){const t=Ce`
135            {
136                cart(id: "${e}") {
137                    id
138                    checkoutUrl
139                    cost {
140                        subtotalAmount {
141                            amount
142                            currencyCode
143                        }
144                        totalAmount {
145                            amount
146                            currencyCode
147                        }
148                    }
149                    totalQuantity
150                    lines(first: 250) {
151                        edges {
152                            node {
153                                id
154                                quantity
155                                cost {
156                                    amountPerQuantity {
157                                        amount
158                                        currencyCode
159                                    }
160                                    subtotalAmount {
161                                        amount
162                                        currencyCode
163                                    }
164                                    totalAmount {
165                                        amount
166                                        currencyCode
167                                    }
168                                }
169                                merchandise {
170                                    ... on ProductVariant {
171                                        id
172                                        title
173                                        barcode
174                                        price {
175                                            amount
176                                            currencyCode
177                                        }
178                                        selectedOptions {
179                                            name
180                                            value
181                                        }
182                                        umgBundles:metafield(key: "component_structure", namespace: "umg_bundles") {
183                                            value
184                                        } 
185                                        product {
186                                            id
187                                            title
188                                            productType
189                                            purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
190                                                id
191                                                value
192                                                type
193                                            }
194                                            featuredImage {
195                                                originalSrc: url
196                                                altText
197                                                width
198                                                height
199                                                smallSrc: url(transform: {
200                                                    preferredContentType: WEBP
201                                                    maxHeight: 100
202                                                    maxWidth: 100
203                                                })
204                                                largeSrc: url(transform: {
205                                                    preferredContentType: WEBP
206                                                    maxHeight: 1200
207                                                    maxWidth: 1200
208                                                })
209                                            },
210                                            variants(first: 2) {
211                                                edges {
212                                                    node {
213                                                        id
214                                                        quantityAvailable
215                                                        purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
216                                                            id
217                                                            value
218                                                            type
219                                                        }  
220                                                        metafields(identifiers: [
221                                                                {namespace: "chart_reporting", key: "street_date"},
222                                                                {namespace: "umg_attributes", key: "product_owner"}
223                                                            ]) {
224                                                                namespace
225                                                                key
226                                                                value
227                                                                type
228                                                                description
229                                                        }
230                                                    }
231                                                }
232                                            }
233                                        }
234                                    }
235                                }
236                                attributes {
237                                    key
238                                    value
239                                }
240                            }
241                        }
242                    }
243                }
244            }
245        `;return await this.client.rawRequest(t)}async getBundledProducts(e){const t=Ce`
246            query ($ids: [ID!]!) {
247                nodes(ids: $ids) {
248                    ... on ProductVariant {
249                        title
250                        price {
251                            amount
252                            currencyCode
253                        }
254                        product {
255                            title
256                            handle
257                            featuredImage {
258                                altText
259                                width
260                                height
261                                smallSrc: url(transform: {
262                                    preferredContentType: WEBP
263                                    maxHeight: 100
264                                    maxWidth: 100
265                                })
266                                largeSrc: url(transform: {
267                                    preferredContentType: WEBP
268                                    maxHeight: 1200
269                                    maxWidth: 1200
270                                })
271                            }
272                            purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
273                                id
274                                value
275                                type
276                            }
277                            variants(first: 2) {
278                                edges {
279                                    node {
280                                        id
281                                        unitPrice {
282                                            amount
283                                        }
284                                        quantityAvailable
285                                        purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
286                                            id
287                                            value
288                                            type
289                                        }    
290                                        metafields(
291                                            identifiers: [
292                                                {
293                                                    namespace: "chart_reporting"
294                                                    key: "street_date"
295                                                }
296                                                {
297                                                    namespace: "umg_attributes"
298                                                    key: "product_owner"
299                                                }
300                                            ]
301                                        ) {
302                                            namespace
303                                            key
304                                            value
305                                            type
306                                            description
307                                        }
308                                    }
309                                }
310                            }
311                        }
312                    }
313                }
314            }
315        `,i={ids:e},r=await this.client.rawRequest(t,i);if(200===r.status&&r.data&&r.data.nodes)return r.data.nodes}async getBundleProductCart(e){const t=Ce`
316            query ($ids: [ID!]!) {
317                nodes(ids: $ids) {
318                    ... on ProductVariant {
319                        id
320                        title
321                        product {
322                            title
323                            id
324                            featuredImage {
325                                originalSrc: url
326                                altText
327                                width
328                                height
329                                smallSrc: url(transform: {
330                                    preferredContentType: WEBP
331                                    maxHeight: 100
332                                    maxWidth: 100
333                                })
334                                largeSrc: url(transform: {
335                                    preferredContentType: WEBP
336                                    maxHeight: 1200
337                                    maxWidth: 1200
338                                })
339                            }
340                            purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
341                                id
342                                value
343                                type
344                            }
345                            variants(first: 2) {
346                                edges {
347                                    node {
348                                        id
349                                        purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
350                                            id
351                                            value
352                                            type
353                                        }
354                                        quantityAvailable
355                                        metafields(
356                                            identifiers: [
357                                                {
358                                                    namespace: "chart_reporting"
359                                                    key: "street_date"
360                                                }
361                                                {
362                                                    namespace: "umg_attributes"
363                                                    key: "product_owner"
364                                                }
365                                            ]
366                                        ) {
367                                            namespace
368                                            key
369                                            value
370                                            type
371                                            description
372                                        }
373                                    }
374                                }
375                            }
376                        }
377                    }
378                }
379            }
380        `,i={ids:e},r=await this.client.rawRequest(t,i);if(200===r.status&&r.data&&r.data.nodes)return r.data.nodes}async updateItemsInCart(e,t){const i=Ce`
381            mutation ($cartId: ID!, $lines: [CartLineUpdateInput!]!) {
382                cartLinesUpdate(cartId: $cartId, lines: $lines) {
383                    warnings {
384                        code
385                        message
386                        target
387                    }
388                    userErrors {
389                        field
390                        message
391                    }
392                    cart {
393                        id
394                        checkoutUrl
395                        cost {
396                            subtotalAmount {
397                                amount
398                                currencyCode
399                            }
400                            totalAmount {
401                                amount
402                                currencyCode
403                            }
404                        }
405                        totalQuantity
406                        lines(first: 250) {
407                            edges {
408                                node {
409                                    id
410                                    quantity
411                                    cost {
412                                        amountPerQuantity {
413                                            amount
414                                            currencyCode
415                                        }
416                                        subtotalAmount {
417                                            amount
418                                            currencyCode
419                                        }
420                                        totalAmount {
421                                            amount
422                                            currencyCode
423                                        }
424                                    }
425                                    merchandise {
426                                        ... on ProductVariant {
427                                            id
428                                            title
429                                            barcode
430                                            price {
431                                                amount
432                                                currencyCode
433                                            }
434                                            selectedOptions {
435                                                name
436                                                value
437                                            }
438                                            umgBundles: metafield(
439                                                key: "component_structure"
440                                                namespace: "umg_bundles"
441                                            ) {
442                                                value
443                                            }
444                                            product {
445                                                id
446                                                title
447                                                productType
448                                                purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
449                                                    id
450                                                    value
451                                                    type
452                                                }
453                                                featuredImage {
454                                                    originalSrc: url
455                                                    altText
456                                                    width
457                                                    height
458                                                    smallSrc: url(transform: {
459                                                        preferredContentType: WEBP
460                                                        maxHeight: 100
461                                                        maxWidth: 100
462                                                    })
463                                                    largeSrc: url(transform: {
464                                                        preferredContentType: WEBP
465                                                        maxHeight: 1200
466                                                        maxWidth: 1200
467                                                    })
468                                                }
469                                                variants(first: 2) {
470                                                    edges {
471                                                        node {
472                                                            id
473                                                            quantityAvailable
474                                                            purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
475                                                                id
476                                                                value
477                                                                type
478                                                            } 
479                                                            metafields(
480                                                                identifiers: [
481                                                                    {
482                                                                        namespace: "chart_reporting"
483                                                                        key: "street_date"
484                                                                    }
485                                                                    {
486                                                                        namespace: "umg_attributes"
487                                                                        key: "product_owner"
488                                                                    }
489                                                                ]
490                                                            ) {
491                                                                namespace
492                                                                key
493                                                                value
494                                                                type
495                                                                description
496                                                            }
497                                                        }
498                                                    }
499                                                }
500                                            }
501                                        }
502                                    }
503                                    attributes {
504                                        key
505                                        value
506                                    }
507                                }
508                            }
509                        }
510                    }
511                }
512            }
513        `,r={cartId:e,lines:t},n=await this.client.rawRequest(i,r);if(200===n.status&&n.data&&n.data.cartLinesUpdate&&n.data.cartLinesUpdate.cart)return n.data.cartLinesUpdate.warnings&&(n.data.cartLinesUpdate.cart.warnings=n.data.cartLinesUpdate.warnings),n.data.cartLinesUpdate.cart.lines=n.data.cartLinesUpdate.cart.lines.edges.map(e=>e.node),n.data.cartLinesUpdate.cart.userErrors=n.data.cartLinesUpdate.userErrors,n.data.cartLinesUpdate.cart}async addItemsToCart(e,t){const i=Ce`
514            mutation cartLinesAdd($cartId: ID!, $lines: [CartLineInput!]!) {
515                cartLinesAdd(cartId: $cartId, lines: $lines) {
516                    warnings {
517                        code
518                        message
519                        target
520                    }
521                    userErrors {
522                        field
523                        message
524                    }
525                    cart {
526                        id
527                        checkoutUrl
528                        cost {
529                            subtotalAmount {
530                                amount
531                                currencyCode
532                            }
533                            totalAmount {
534                                amount
535                                currencyCode
536                            }
537                        }
538                        totalQuantity
539                        lines(first: 250) {
540                            edges {
541                                node {
542                                    id
543                                    quantity
544                                    cost {
545                                        amountPerQuantity {
546                                            amount
547                                            currencyCode
548                                        }
549                                        subtotalAmount {
550                                            amount
551                                            currencyCode
552                                        }
553                                        totalAmount {
554                                            amount
555                                            currencyCode
556                                        }
557                                    }
558                                    merchandise {
559                                        ... on ProductVariant {
560                                            id
561                                            title
562                                            barcode
563                                            price {
564                                                amount
565                                                currencyCode
566                                            }
567                                            selectedOptions {
568                                                name
569                                                value
570                                            }
571                                            umgBundles: metafield(
572                                                key: "component_structure"
573                                                namespace: "umg_bundles"
574                                            ) {
575                                                value
576                                            }
577                                            product {
578                                                id
579                                                title
580                                                productType
581                                                purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
582                                                    id
583                                                    value
584                                                    type
585                                                }
586                                                featuredImage {
587                                                    originalSrc: url
588                                                    altText
589                                                    width
590                                                    height
591                                                    smallSrc: url(transform: {
592                                                        preferredContentType: WEBP
593                                                        maxHeight: 100
594                                                        maxWidth: 100
595                                                    })
596                                                    largeSrc: url(transform: {
597                                                        preferredContentType: WEBP
598                                                        maxHeight: 1200
599                                                        maxWidth: 1200
600                                                    })
601                                                }
602                                                variants(first: 2) {
603                                                    edges {
604                                                        node {
605                                                            id
606                                                            quantityAvailable
607                                                            purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
608                                                                id
609                                                                value
610                                                                type
611                                                            }
612                                                            metafields(
613                                                                identifiers: [
614                                                                    {
615                                                                        namespace: "chart_reporting"
616                                                                        key: "street_date"
617                                                                    }
618                                                                    {
619                                                                        namespace: "umg_attributes"
620                                                                        key: "product_owner"
621                                                                    }
622                                                                ]
623                                                            ) {
624                                                                namespace
625                                                                key
626                                                                value
627                                                                type
628                                                                description
629                                                            }
630                                                        }
631                                                    }
632                                                }
633                                            }
634                                        }
635                                    }
636                                    attributes {
637                                        key
638                                        value
639                                    }
640                                }
641                            }
642                        }
643                    }
644                }
645            }
646        `,r={cartId:e,lines:t};return await this.client.rawRequest(i,r)}async getCollectionById(e,t=6,i="TITLE",r=!0){const n=Ce` 
647            query getCollectionById($id: ID!) {
648                collection(id: $id) {
649                    id
650                    title
651                    products(first: ${t},                
652                    sortKey: ${i}, 
653                    reverse: ${r}
654                ) {
655                        pageInfo {
656                            hasNextPage
657                        }
658                        edges {
659                            node {
660                                id
661                                title
662                                handle
663                                description
664                                descriptionHtml
665                                onlineStoreUrl
666                                totalInventory
667                                availableForSale
668                                productType
669                                options(first: 250) {
670                                    id
671                                    name
672                                    values
673                                }
674                                priceRange {
675                                    minVariantPrice {
676                                        amount
677                                        currencyCode
678                                    }
679                                    maxVariantPrice {
680                                        amount
681                                        currencyCode
682                                    }
683                                }
684                                tracklist: metafield(key: "tracklist", namespace: "umg_attributes") {
685                                    id
686                                    value
687                                    type
688                                }
689                                sizeGuide: metafield(key: "size_guide", namespace: "umg_attributes") {
690                                    id
691                                    value
692                                    type
693                                }                                
694                                featuredImage {
695                                    originalSrc: url
696                                    altText
697                                    width
698                                    height
699                                    smallSrc: url(transform: {
700                                        preferredContentType: WEBP
701                                        maxHeight: 400
702                                        maxWidth: 400
703                                    })
704                                    largeSrc: url(transform: {
705                                        preferredContentType: WEBP
706                                        maxHeight: 1200
707                                        maxWidth: 1200
708                                    })
709                                }
710                                variants(first: 150) {
711                                    edges {
712                                        node {
713                                            id
714                                            title
715                                            sku
716                                            price {
717                                                amount
718                                                currencyCode
719                                            }
720                                            barcode
721                                            selectedOptions {
722                                                value
723                                                name
724                                            }                                                                                  
725                                            sku
726                                            availableForSale
727                                            quantityAvailable
728                                            image {
729                                                id
730                                            }
731                                            compareAtPrice{
732                                                amount
733                                                currencyCode
734                                            }
735                                            price {
736                                                amount
737                                                currencyCode
738                                            }
739                                            tracklist: metafield(key: "tracklist", namespace: "umg_attributes") {
740                                                id
741                                                value
742                                                type
743                                            }                            
744                                            sizeGuide: metafield(key: "size_guide", namespace: "umg_attributes") {
745                                                id
746                                                value
747                                                type
748                                            }
749                                            fixedPromisedDate: metafield(key: "fixed_promised_date", namespace: "famehouse") {
750                                                id
751                                                value
752                                                type
753                                            }
754                                            artist: metafield(key: "artist", namespace: "umg_attributes") {
755                                                id
756                                                value
757                                                type
758                                            } 
759                                            productOwner: metafield(key: "product_owner", namespace: "famehouse") {
760                                                id
761                                                value
762                                                type
763                                            } 
764                                            format: metafield(key: "format", namespace: "umg_attributes") {
765                                                id
766                                                value
767                                                type
768                                            }                                            
769                                        }
770                                    }
771                                }                 
772                            }
773                        }
774                    }
775            }
776        }`;return await this.client.rawRequest(n,{id:e})}async getProducts(e=6,t="TITLE",i="true"){const r=Ce` 
777            {
778                products(first: ${e}, 
779                        
780                        sortKey: ${t}, 
781                        reverse: ${i}
782                ) {
783                    pageInfo {
784                        hasNextPage
785                    }
786                    edges {
787                        node {
788                            id
789                            productType
790                            title
791                            handle
792                            onlineStoreUrl
793                            priceRange {
794                                minVariantPrice {
795                                    amount
796                                    currencyCode
797                                }
798                                maxVariantPrice {
799                                    amount
800                                    currencyCode
801                                }
802                            }
803                            tracklist: metafield(key: "tracklist", namespace: "umg_attributes") {
804                                id
805                                value
806                                type
807                            }
808                            sizeGuide: metafield(key: "size_guide", namespace: "umg_attributes") {
809                                id
810                                value
811                                type
812                            }                              
813                            featuredImage {
814                                originalSrc: url
815                                altText
816                                width
817                                height
818                                smallSrc: url(transform: {
819                                    preferredContentType: WEBP
820                                    maxHeight: 400
821                                    maxWidth: 400
822                                })
823                                largeSrc: url(transform: {
824                                    preferredContentType: WEBP
825                                    maxHeight: 1200
826                                    maxWidth: 1200
827                                })
828                            }
829                            variants(first: 10) {
830                                edges {
831                                    node {
832                                        title
833                                        id
834                                        sku
835                                        barcode
836                                        quantityAvailable
837                                        price {
838                                            amount
839                                            currencyCode
840                                        }
841                                        tracklist: metafield(key: "tracklist", namespace: "umg_attributes") {
842                                                id
843                                                value
844                                                type
845                                            }                            
846                                        sizeGuide: metafield(key: "size_guide", namespace: "umg_attributes") {
847                                            id
848                                            value
849                                            type
850                                        }
851                                        fixedPromisedDate: metafield(key: "fixed_promised_date", namespace: "famehouse") {
852                                            id
853                                            value
854                                            type
855                                        }
856                                        artist: metafield(key: "artist", namespace: "umg_attributes") {
857                                            id
858                                            value
859                                            type
860                                        } 
861                                        productOwner: metafield(key: "product_owner", namespace: "famehouse") {
862                                            id
863                                            value
864                                            type
865                                        } 
866                                        format: metafield(key: "format", namespace: "umg_attributes") {
867                                            id
868                                            value
869                                            type
870                                        }      
871                                    }
872                                }
873                            }                                          
874                        }
875                    }
876                }
877            }`;return await this.client.rawRequest(r,{})}async getProductByHandle(e,t=50,i=20,r=150){const n=Ce`
878            query GetProduct($productHandle:String!) {
879              productByHandle: product(handle: $productHandle) {
880                id
881                handle
882                title
883                productType
884                descriptionHtml
885                availableForSale
886                vendor
887                updatedAt
888                options(first: ${t}) {
889                  id
890                  name
891                  values
892                }
893                images(first: ${i}) {
894                  edges {
895                    node {
896                        altText
897                        id
898                        originalSrc: url
899                        src: url
900                        smallSrc: url(transform: {
901                            preferredContentType: WEBP
902                            maxHeight: 400
903                            maxWidth: 400
904                        })
905                    }
906                  }
907                }
908                purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
909                    id
910                    value
911                    type
912                }
913                tracklist: metafield(key: "tracklist", namespace: "umg_attributes") {
914                    id
915                    value
916                    type
917                }
918                sizeGuide: metafield(key: "size_guide", namespace: "umg_attributes") {
919                    id
920                    value
921                    type
922                }
923                ftcCompliance: metafield(namespace: "umg_attributes", key: "ftc_compliance") {
924                    value
925                    type
926                }
927                ftcComplianceCustom: metafield(namespace: "umg_attributes", key: "ftc_compliance_custom") {
928                    value
929                    type
930                }
931                ftcComplianceCustomFlag: metafield(namespace: "umg_attributes", key: "ftc_compliance_custom_flag") {
932                    value
933                    type
934                }
935                ftcComplianceCheckboxStyle: metafield(namespace: "umg_attributes", key: "ftc_compliance_checkbox_style") {
936                    value
937                    type
938                }
939                fixedPromiseDate: metafield(key: "fixed_promise_date", namespace: "umg_attributes") {
940                    id
941                    value
942                    type
943                }
944                rollingPromiseDate: metafield(key: "rolling_promise_date", namespace: "umg_attributes") {
945                    id
946                    value
947                    type
948                }
949                variants(first: ${r}) {
950                  edges {
951                    node {
952                        id
953                        title
954                        sku
955                        availableForSale
956                        quantityAvailable
957                        selectedOptions {
958                            value
959                            name
960                        }
961                        purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
962                            id
963                            value
964                            type
965                        }
966                        tracklist: metafield(key: "tracklist", namespace: "umg_attributes") {
967                            id
968                            value
969                            type
970                        }                            
971                        sizeGuide: metafield(key: "size_guide", namespace: "umg_attributes") {
972                            id
973                            value
974                            type
975                        }
976                        productOwnerUmg: metafield(key: "product_owner", namespace: "umg_attributes") {
977                            id
978                            key
979                            value
980                            type
981                        }
982                        streetDate: metafield(key: "street_date", namespace: "chart_reporting") {
983                            id
984                            key
985                            value
986                            type
987                        }
988                        fixedPromiseDate: metafield(key: "fixed_promise_date", namespace: "umg_attributes") {
989                            id
990                            value
991                            type
992                        }
993                        rollingPromiseDate: metafield(key: "rolling_promise_date", namespace: "umg_attributes") {
994                            id
995                            value
996                            type
997                        }
998                        artist: metafield(key: "artist", namespace: "umg_attributes") {
999                            id
1000                            value
1001                            type
1002                        } 
1003                        productOwner: metafield(key: "product_owner", namespace: "famehouse") {
1004                            id
1005                            value
1006                            type
1007                        } 
1008                        format: metafield(key: "format", namespace: "umg_attributes") {
1009                            id
1010                            value
1011                            type
1012                        }
1013                        umgBundles:metafield(key: "component_structure", namespace: "umg_bundles") {
1014                            value
1015                        }        
1016                        componentStructure: metafield(
1017                            key: "component_structure"
1018                            namespace: "umg_bundles"
1019                        ) {
1020                            id
1021                            value
1022                            type
1023                        }               
1024                        image {
1025                            id
1026                            altText
1027                            id
1028                            originalSrc: url
1029                            src: url
1030                        }
1031                        price {
1032                            amount
1033                            currencyCode
1034                        }
1035                    }
1036                  }
1037                }
1038              }
1039          }
1040        `;return await this.client.rawRequest(n,{productHandle:e})}async checkVariantStock(e){const t=Ce`
1041            query checkVariantStock($id: ID!) {
1042                product(id: $id) {
1043                    variants(first: 50) {
1044                        edges {
1045                            node {
1046                                availableForSale
1047                                id
1048                                quantityAvailable
1049                            }
1050                        }
1051                    }
1052                }
1053            }
1054        `;return await this.client.rawRequest(t,{id:e})}async getProductById(e,t=50,i=20,r=150){const n=Ce`
1055            query getProductById($id: ID!) {
1056            product(id: $id) {
1057                id
1058                handle
1059                title
1060                productType
1061                descriptionHtml
1062                availableForSale
1063                vendor
1064                onlineStoreUrl
1065                updatedAt
1066                options(first: ${t}) {
1067                  id
1068                  name
1069                  values
1070                }
1071                images(first: ${i}) {
1072                  edges {
1073                    node {
1074                      altText
1075                      id
1076                      originalSrc: url
1077                      src: url
1078                    }
1079                  }
1080                }
1081                purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
1082                    id
1083                    value
1084                    type
1085                }
1086                tracklist: metafield(key: "tracklist", namespace: "umg_attributes") {
1087                    id
1088                    value
1089                    type
1090                }
1091                sizeGuide: metafield(key: "size_guide", namespace: "umg_attributes") {
1092                    id
1093                    value
1094                    type
1095                }                 
1096                variants(first: ${r}) {
1097                  edges {
1098                    node {
1099                        id
1100                        title
1101                        sku
1102                        availableForSale
1103                        quantityAvailable
1104                        selectedOptions {
1105                            value
1106                            name
1107                        }
1108                        purchaseLimit: metafield(key: "purchase_limit", namespace: "umg_attributes") {
1109                            id
1110                            value
1111                            type
1112                        }
1113                        tracklist: metafield(key: "tracklist", namespace: "umg_attributes") {
1114                            id
1115                            value
1116                            type
1117                        }                            
1118                        sizeGuide: metafield(key: "size_guide", namespace: "umg_attributes") {
1119                            id
1120                            value
1121                            type
1122                        }
1123                        fixedPromisedDate: metafield(key: "fixed_promised_date", namespace: "famehouse") {
1124                            id
1125                            value
1126                            type
1127                        }
1128                        artist: metafield(key: "artist", namespace: "umg_attributes") {
1129                            id
1130                            value
1131                            type
1132                        } 
1133                        productOwner: metafield(key: "product_owner", namespace: "famehouse") {
1134                            id
1135                            value
1136                            type
1137                        } 
1138                        format: metafield(key: "format", namespace: "umg_attributes") {
1139                            id
1140                            value
1141                            type
1142                        }  
1143                        umgBundles:metafield(key: "component_structure", namespace: "umg_bundles") {
1144                            value
1145                        }                      
1146                        image {
1147                            id
1148                            altText
1149                            id
1150                            originalSrc: url
1151                            src: url
1152                        }
1153                        price {
1154                            amount
1155                            currencyCode
1156                        }
1157                    }
1158                  }
1159                }
1160              }
1161          }        
1162        `;return await this.client.rawRequest(n,{id:e})}async getShopConfig(){if(this.shopConfigCache)return this.shopConfigCache;const e=Ce`
1163            {
1164                shop {
1165                    name
1166                    paymentSettings {
1167                        currencyCode
1168                        countryCode
1169                    }
1170                }
1171            }
1172        `,t=await this.client.rawRequest(e);return this.shopConfigCache=t,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.