1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[636],{2954:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenError=t.TokenResponse=t.nowInSeconds=void 0,t.nowInSeconds=function(){return Math.round(new Date().getTime()/1e3)};var r=function(){function e(e){this.accessToken=e.access_token,this.tokenType=e.token_type||"bearer",e.expires_in&&(this.expiresIn=parseInt(e.expires_in,10)),this.refreshToken=e.refresh_token,this.scope=e.scope,this.idToken=e.id_token,this.issuedAt=e.issued_at||(0,t.nowInSeconds)()}return e.prototype.toJson=function(){var e;return{access_token:this.accessToken,id_token:this.idToken,refresh_token:this.refreshToken,scope:this.scope,token_type:this.tokenType,issued_at:this.issuedAt,expires_in:null==(e=this.expiresIn)?void 0:e.toString()}},e.prototype.isValid=function(e){return void 0===e&&(e=-600),!this.expiresIn||(0,t.nowInSeconds)()<this.issuedAt+this.expiresIn+e},e}();t.TokenResponse=r,t.TokenError=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri}},e}()},3425:()=>{},3647:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>h});var n=r(29172),i=r(25624),o=r(47089),s=r(89946);let a="UNAUTHORIZED",c="UNKNOWN",u=new Set(["UNAUTHENTICATED","UNAUTHORIZED","FORBIDDEN"]);class l extends Error{constructor(e,t){super(t),this.name="StorefrontGraphQLError",this.errorCode=e}}async function h(e){let t,{mutation:r,query:h,variables:f={}}=e,d=await (0,i.iD)();try{t=await (0,o.Ay)({body:JSON.stringify({query:r||h||"",variables:f}),headers:{Authorization:`Bearer ${d}`,"Content-Type":"application/json"},method:"POST",useDefaultHost:!1,...(0,n.E)({host:"",url:s.H1})})}catch(t){let e=t instanceof Error?t:Error(String(t));throw new l("NETWORK",`Failed to execute GraphQL request: ${e.message}`)}let p=await t.json();if(p.errors&&p.errors.length>0){let e,t;throw e=p.errors[0],t=e?.extensions?.code||"",new l(u.has(t)?a:c,e?.message||"Something went wrong. Please try again later.")}if(!t.ok)throw new l(401===t.status||403===t.status?a:c,`HTTP ${t.status} ${t.statusText}`);return p}},11272:(e,t,r)=>{"use strict";r.d(t,{Gv:()=>i,RI:()=>n});let n=e=>{for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},i=e=>"object"==typeof e&&null!==e&&!Array.isArray(e)},13092:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LocalStorageBackend=t.StorageBackend=void 0;var i=function(){};t.StorageBackend=i,t.LocalStorageBackend=function(e){function t(t){var r=e.call(this)||this;return r.storage=t||window.localStorage,r}return n(t,e),t.prototype.getItem=function(e){var t=this;return new Promise(function(r,n){var i=t.storage.getItem(e);r(i||null)})},t.prototype.removeItem=function(e){var t=this;return new Promise(function(r,n){t.storage.removeItem(e),r()})},t.prototype.clear=function(){var e=this;return new Promise(function(t,r){e.storage.clear(),t()})},t.prototype.setItem=function(e,t){var r=this;return new Promise(function(n,i){r.storage.setItem(e,t),n()})},t}(i)},14635:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});let n=e=>e.replace(/v2|v3/,"v4")},15968:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>H});var n,i,o,s,a,c=r(70324);let u=/\r\n|[\n\r]/g;function l(e,t){let r=0,n=1;for(let i of e.body.matchAll(u)){if("number"==typeof i.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function h(e,t){let r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?r:0,c=t.column+a,u=`${e.name}:${s}:${c}
2`,l=n.split(/\r\n|[\n\r]/g),h=l[i];if(h.length>120){let e=Math.floor(c/80),t=[];for(let e=0;e<h.length;e+=80)t.push(h.slice(e,e+80));return u+f([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(c%80)],["|",t[e+1]]])}return u+f([[`${s-1} |`,l[i-1]],[`${s} |`,h],["|","^".padStart(c)],[`${s+1} |`,l[i+1]]])}function f(e){let t=e.filter(([e,t])=>void 0!==t),r=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(r)+(t?" "+t:"")).join("\n")}class d extends Error{constructor(e,...t){var r,n,i;const{nodes:o,source:s,positions:a,path:c,originalError:u,extensions:h}=function(e){let 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!=c?c:void 0,this.originalError=null!=u?u:void 0,this.nodes=p(Array.isArray(o)?o:o?[o]:void 0);const f=p(null==(r=this.nodes)?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==f||null==(n=f[0])?void 0:n.source,this.positions=null!=a?a:null==f?void 0:f.map(e=>e.start),this.locations=a&&s?a.map(e=>l(s,e)):null==f?void 0:f.map(e=>l(e.source,e.start));const g=!function(e){return"object"==typeof e&&null!==e}(null==u?void 0:u.extensions)||null==u?void 0:u.extensions;this.extensions=null!=(i=null!=h?h:g)?i: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!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.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(let r of this.nodes){var t;r.loc&&(e+="\n\n"+h((t=r.loc).source,l(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+h(this.source,t);return e}toJSON(){let 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 p(e){return void 0===e||0===e.length?void 0:e}function g(e,t,r){return new d(`Syntax Error: ${r}`,{source:e,positions:[t]})}var m=r(42856);(n=s||(s={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION";var y=r(97813),v=r(47924),b=r(38049);(i=a||(a={})).SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class E{constructor(e){const t=new m.ou(a.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let r=e.source.body,n=r.length,i=t;for(;i<n;){let t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if(10===e||13===e)break;if(_(e))++i;else if(w(r,i))i+=2;else break}return C(e,a.COMMENT,t,i,r.slice(t+1,i))}(e,i);case 33:return C(e,a.BANG,i,i+1);case 36:return C(e,a.DOLLAR,i,i+1);case 38:return C(e,a.AMP,i,i+1);case 40:return C(e,a.PAREN_L,i,i+1);case 41:return C(e,a.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return C(e,a.SPREAD,i,i+3);break;case 58:return C(e,a.COLON,i,i+1);case 61:return C(e,a.EQUALS,i,i+1);case 64:return C(e,a.AT,i,i+1);case 91:return C(e,a.BRACKET_L,i,i+1);case 93:return C(e,a.BRACKET_R,i,i+1);case 123:return C(e,a.BRACE_L,i,i+1);case 124:return C(e,a.PIPE,i,i+1);case 125:return C(e,a.BRACE_R,i,i+1);case 34:if(34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2))return function(e,t){let r=e.source.body,n=r.length,i=e.lineStart,o=t+3,s=o,c="",u=[];for(;o<n;){let n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){c+=r.
2slice(s,o),u.push(c);let n=C(e,a.BLOCK_STRING,t,o+3,(0,v.OC)(u).join("\n"));return e.line+=u.length-1,e.lineStart=i,n}if(92===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)&&34===r.charCodeAt(o+3)){c+=r.slice(s,o),s=o+1,o+=4;continue}if(10===n||13===n){c+=r.slice(s,o),u.push(c),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,c="",s=o,i=o;continue}if(_(n))++o;else if(w(r,o))o+=2;else throw g(e.source,o,`Invalid character within String: ${S(e,o)}.`)}throw g(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let r=e.source.body,n=r.length,i=t+1,o=i,s="";for(;i<n;){let n=r.charCodeAt(i);if(34===n)return s+=r.slice(o,i),C(e,a.STRING,t,i+1,s);if(92===n){s+=r.slice(o,i);let t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?function(e,t){let r=e.source.body,n=0,i=3;for(;i<12;){let e=r.charCodeAt(t+i++);if(125===e){if(i<5||!_(n))break;return{value:String.fromCodePoint(n),size:i}}if((n=n<<4|N(e))<0)break}throw g(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}(e,i):function(e,t){let r=e.source.body,n=O(r,t+2);if(_(n))return{value:String.fromCodePoint(n),size:6};if(T(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){let e=O(r,t+8);if(I(e))return{value:String.fromCodePoint(n,e),size:12}}throw g(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}(e,i):function(e,t){let r=e.source.body;switch(r.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:" ",size:2}}throw g(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}(e,i);s+=t.value,i+=t.size,o=i;continue}if(10===n||13===n)break;if(_(n))++i;else if(w(r,i))i+=2;else throw g(e.source,i,`Invalid character within String: ${S(e,i)}.`)}throw g(e.source,i,"Unterminated string.")}(e,i)}if((0,b.yp)(t)||45===t)return function(e,t,r){let n=e.source.body,i=t,o=r,s=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),(0,b.yp)(o))throw g(e.source,i,`Invalid number, unexpected digit after 0: ${S(e,i)}.`)}else i=A(e,i,o),o=n.charCodeAt(i);if(46===o&&(s=!0,o=n.charCodeAt(++i),i=A(e,i,o),o=n.charCodeAt(i)),(69===o||101===o)&&(s=!0,(43===(o=n.charCodeAt(++i))||45===o)&&(o=n.charCodeAt(++i)),i=A(e,i,o),o=n.charCodeAt(i)),46===o||(0,b.un)(o))throw g(e.source,i,`Invalid number, expected digit but got: ${S(e,i)}.`);return C(e,s?a.FLOAT:a.INT,t,i,n.slice(t,i))}(e,i,t);if((0,b.un)(t))return function(e,t){let r=e.source.body,n=r.length,i=t+1;for(;i<n;){let e=r.charCodeAt(i);if((0,b.xr)(e))++i;else break}return C(e,a.NAME,t,i,r.slice(t,i))}(e,i);throw g(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":_(t)||w(r,i)?`Unexpected character: ${S(e,i)}.`:`Invalid character: ${S(e,i)}.`)}return C(e,a.EOF,n,n)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===a.COMMENT);return e}}function _(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function w(e,t){return T(e.charCodeAt(t))&&I(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function I(e){return e>=56320&&e<=57343}function S(e,t){let r=e.source.body.codePointAt(t);if(void 0===r)return a.EOF;if(r>=32&&r<=126){let e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function C(e,t,r,n,i){let o=e.line,s=1+r-e.lineStart;return new m.ou(t,r,n,o,s,i)}function A(e,t,r){if(!(0,b.yp)(r))throw g(e.source,t,`Invalid number, expected digit but got: ${S(e,t)}.`);let n=e.source.body,i=t+1;for(;(0,b.yp)(n.charCodeAt(i));)++i;return i}function O(e,t){return N(e.charCodeAt(t))<<12|N(e.charCodeAt(t+1))<<8|N(e.charCodeAt(t+2))<<4|N(e.charCodeAt(t+3))}function N(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}var k=r(63641),x=r(25078);let R=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;let n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(r=e.constructor)?void 0:r.name)){let t=(0,x.N)(e);throw Error(`Cannot use ${n} "${t}" from another module or realm. 3 4Ensure that there is only one instance of "graphql" in the node_modules 5directory. If different versions of "graphql" are the dependencies of other 6relied on modules, use "resolutions" to ensure only one version is installed. 7 8https://yarnpkg.com/en/docs/selective-version-resolutions 9 10Duplicate "graphql" modules cannot be used at the same time since different 11versions may have different capabilities and behavior. The data from one 12version used in the function from another could produce confusing and 13spurious results.`)}}return!1};class D{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||(0,k.U)(!1,`Body must be a string. Received: ${(0,x.N)(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||(0,k.U)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,k.U)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class L{constructor(e,t={}){const{lexer:r,...n}=t;if(r)this._lexer=r;else{const t=!function(e){return R(e,D)}(e)?new D(e):e;this._lexer=new E(t)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(a.NAME);return this.node(e,{kind:y.b.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:y.b.DOCUMENT,definitions:this.many(a.SOF,this.parseDefinition,a.EOF)})}parseDefinition(){if(this.peek(a.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===a.BRACE_L)throw g(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===a.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 g(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions supp
13ort descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(a.BRACE_L))return this.node(t,{kind:y.b.OPERATION_DEFINITION,operation:m.cE.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let r=this.parseDescription(),n=this.parseOperationType();return this.peek(a.NAME)&&(e=this.parseName()),this.node(t,{kind:y.b.OPERATION_DEFINITION,operation:n,description:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(a.NAME);switch(e.value){case"query":return m.cE.QUERY;case"mutation":return m.cE.MUTATION;case"subscription":return m.cE.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(a.PAREN_L,this.parseVariableDefinition,a.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:y.b.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(a.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(a.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(a.DOLLAR),this.node(e,{kind:y.b.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:y.b.SELECTION_SET,selections:this.many(a.BRACE_L,this.parseSelection,a.BRACE_R)})}parseSelection(){return this.peek(a.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(a.COLON)?(e=n,t=this.parseName()):t=n,this.node(r,{kind:y.b.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(a.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(a.PAREN_L,t,a.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,r=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:y.b.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(a.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(a.NAME)?this.node(e,{kind:y.b.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:y.b.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:y.b.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:y.b.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){let t=this._lexer.token;switch(t.kind){case a.BRACKET_L:return this.parseList(e);case a.BRACE_L:return this.parseObject(e);case a.INT:return this.advanceLexer(),this.node(t,{kind:y.b.INT,value:t.value});case a.FLOAT:return this.advanceLexer(),this.node(t,{kind:y.b.FLOAT,value:t.value});case a.STRING:case a.BLOCK_STRING:return this.parseStringLiteral();case a.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:y.b.BOOLEAN,value:!0});case"false":return this.node(t,{kind:y.b.BOOLEAN,value:!1});case"null":return this.node(t,{kind:y.b.NULL});default:return this.node(t,{kind:y.b.ENUM,value:t.value})}case a.DOLLAR:if(e){if(this.expectToken(a.DOLLAR),this._lexer.token.kind===a.NAME){let e=this._lexer.token.value;throw g(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:y.b.STRING,value:e.value,block:e.kind===a.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:y.b.LIST,values:this.any(a.BRACKET_L,t,a.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:y.b.OBJECT,fields:this.any(a.BRACE_L,t,a.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,r=this.parseName();return this.expectToken(a.COLON),this.node(t,{kind:y.b.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(a.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(a.AT),this.node(t,{kind:y.b.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(a.BRACKET_L)){let r=this.parseTypeReference();this.expectToken(a.BRACKET_R),e=this.node(t,{kind:y.b.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(a.BANG)?this.node(t,{kind:y.b.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:y.b.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(a.STRING)||this.peek(a.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let r=this.parseConstDirectives(),n=this.many(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);return this.node(e,{kind:y.b.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(a.COLON);let r=this.parseNamedType();return this.node(e,{kind:y.b.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:y.b.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:y.b.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(a.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseFieldDefinition,a.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(a.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:y.b.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(a.PAREN_L,this.parseInputValueDef,a.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(a.COLON);let i=this.parseTypeReference();this.expectOptionalToken(a.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:y.b.INPUT_VALUE_DEFINITION,description:r,name:n,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:y.b.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:y.b.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(a.EQUALS)?this.delimitedMany(a.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:y.b.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(a.BRACE_L,this.parseEnumValueDefinition,a.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:y.b.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw g(this._lexer.source,this._lexer.token.start,`${P(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:y.b.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(a.BRACE_L,this.parseInputValueDef,a.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===a.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),r=this.optionalMany(a.BRACE_L,this.parseOperationTypeDefinition,a.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:y.b.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:y.b.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.b.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:y.b.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.b.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.b.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:y.b.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(a.AT);let r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:y.b.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(a.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(s,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,r=this._lexer.token,n=this.expectOptionalToken(a.AT),i=this.parseName();return(!n&&this.expectOptionalToken(a.DOT)&&(e=this.parseName()),(n||e)&&this.expectOptionalToken(a.PAREN_L)&&(t=this.parseName(),this.expectToken(a.COLON),this.expectToken(a.PAREN_R)),n)?t?this.node(r,{kind:y.b.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(r,{kind:y.b.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(r,{kind:y.b.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(r,{kind:y.b.MEMBER_COORDINATE,name:i,memberName:e}):this.node(r,{kind:y.b.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new m.aZ(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw g(this._lexer.source,t.start,`Expected ${M(e)}, found ${P(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===a.NAME&&t.value===e)this.advanceLexer();else throw g(this._lexer.source,t.start,`Expected "${e}", found ${P(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===a.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return g(this._lexer.source,t.start,`Unexpected ${P(t)}.`)}any(e,t,r){this.expectToken(e);let n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);let n=[];do n.push(t.call(this));while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);let r=[];do r.push(t.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==a.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw g(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function P(e){let t=e.value;return M(e.kind)+(null!=t?` "${t}"`:"")}function M(e){return e===a.BANG||e===a.DOLLAR||e===a.AMP||e===a.PAREN_L||e===a.PAREN_R||e===a.DOT||e===a.SPREAD||e===a.COLON||e===a.EQUALS||e===a.AT||e===a.BRACKET_L||e===a.BRACKET_R||e===a.BRACE_L||e===a.PIPE||e===a.BRACE_R?`"${e}"`:e}var B=new Map,F=new Map,U=!0,j=!1;function V(e){return e.replace(/[\s,]+/g," ").trim()}function z(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]}),function(e){var t=V(e);if(!B.has(t)){let u,l;var r,n,i,o,s,a=(Object.defineProperty(l=(u=new L(e,{exp
13erimentalFragmentVariables:j,allowLegacyFragmentVariables:j})).parseDocument(),"tokenCount",{enumerable:!1,value:u.tokenCount}),l);if(!a||"Document"!==a.kind)throw Error("Not a valid GraphQL document.");B.set(t,((o=new Set((r=new Set,n=[],a.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=V((t=e.loc).source.body.substring(t.start,t.end)),s=F.get(i);s&&!s.has(o)?U&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):s||F.set(i,s=new Set),s.add(o),r.has(o)||(r.add(o),n.push(e))}else n.push(e)}),i=(0,c.Cl)((0,c.Cl)({},a),{definitions:n})).definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&o.add(r)})}),(s=i.loc)&&(delete s.startToken,delete s.endToken),i))}return B.get(t)}(n)}var q=z;(o=z||(z={})).gql=q,o.resetCaches=function(){B.clear(),F.clear()},o.disableFragmentWarnings=function(){U=!1},o.enableExperimentalFragmentVariables=function(){j=!0},o.disableExperimentalFragmentVariables=function(){j=!1},z.default=z;let H=z},16901:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requireValidUrl=void 0;var n=r(75700);t.requireValidUrl=function(e){try{return new URL(e),e}catch(t){throw new n.AppAuthError("Invalid input url ".concat(e))}}},17742:(e,t,r)=>{"use strict";r.d(t,{gL:()=>v,Y4:()=>E,$t:()=>_,d4:()=>b,ry:()=>T,eE:()=>w,Lc:()=>I});var n,i=r(65283),o=r(84905),s=((n={}).GUEST="guest",n),a=r(29172),c=r(71441),u=r(25624),l=r(30846),h=r(47089),f=r(89946),d=r(66582);let p={authority:f.n6+d.sO,client_id:f.J0,client_name:f.vC,environment:f.Wg,response_type:"code",scope:"openid offline"},g=async()=>await o.AuthorizationServiceConfiguration.fetchFromIssuer(p.authority,new o.FetchRequestor);var m=r(40179);let y=async(e,t="")=>{let r,n=new o.BaseTokenRequestHandler(new o.FetchRequestor);try{let i=await g(),a=async r=>{let s={...e,client_id:r,redirect_uri:f.n6+t},a=new o.TokenRequest(s);return await n.performTokenRequest(i,a)};if(i){if((r=await a(p.client_id)).accessToken){if(e.grant_type===s.GUEST)return r;let t=1e3*(0,u.$n)(r.accessToken).exp;await I({accessTokenExpiration:t,...r})}return r}}catch(e){console.error(e),i.yf.logger.log("Unable to make token request",{error:e},"error")}},v=async e=>{let t;try{t=await (0,h.Ay)({body:JSON.stringify({client_id:f.J0,identifier:e,metadata:{source:"WEB"}}),headers:{"content-type":"application/json"},host:f.n6,method:"POST",url:d.dc})}catch(e){return console.error("Arrange otp link request failed!",e),i.yf.logger.log("arrangeOTPLink",{error:e},"error"),{error:"Arrange otp link request failed!"}}return t.ok||i.yf.logger.log("arrangeOTPLink",t,"error"),{body:await t.json(),status:t.status}},b=async({credential:e})=>{let t;try{let r=await (0,u.iD)(),n=JSON.stringify({verificationCode:e});t=await (0,h.Ay)({body:n,headers:{Authorization:`Bearer ${r}`,"content-type":"application/json"},method:"POST",...(0,a.E)({host:"",url:d.kf})})}catch(e){return console.error("Auth OTP verify request failed!",e),i.yf.logger.log("authOtpVerifyRequest",{error:e},"error"),{success:!1}}return t.ok?{success:!0,status:t.status,...await t.json()}:(i.yf.logger.log("authOtpVerifyRequest",t,"error"),{errorData:await t.json(),status:t.status,success:!1})},E=async({credential:e,identifierValue:t})=>{let r;try{let n=new URLSearchParams({client_id:f.J0,credential:e,grant_type:"client_credentials",identifier:t});r=await (0,h.Ay)({body:n,headers:{"content-type":"application/x-www-form-urlencoded"},method:"POST",...(0,a.E)({host:f.n6,url:d.Tm})})}catch(e){return console.error("Auth OTP request failed!",e),i.yf.logger.log("authOtpRequest",{error:e},"error"),{success:!1}}return r.ok?{success:!0,status:r.status,...await r.json()}:(i.yf.logger.log("authOtpRequest",r,"error"),{errorData:await r.json(),status:r.status,success:!1})},_=async({credential:e,email:t,token:r,...n})=>{let o;try{let i=JSON.stringify({client_id:f.J0,credential:e,grant_type:"client_credentials",identifier:t,...n});o=await (0,h.Ay)({body:i,headers:{Authorization:`Bearer ${r}`,"content-type":"application/json"},host:"",method:"POST",url:(0,c.K)(d.qY.replace(/v3|v2/,"v4"))})}catch(e){return console.error("Auth OTP request failed!",e),i.yf.logger.log("authOtpRequest",{error:e},"error"),{success:!1}}return o.ok?{success:!0,status:o.status,...await o.json()}:(i.yf.logger.log("authOtpRequest",o,"error"),{errorData:await o.json(),status:o.status,success:!1})},w=async()=>{await y({grant_type:o.GRANT_TYPE_REFRESH_TOKEN,refresh_token:(0,l.nX)("refresh_token")})},T=async()=>await y({grant_type:s.GUEST}
13),I=async({accessToken:e,accessTokenExpiration:t,idToken:r,refreshToken:n})=>{if(await (0,m.d)(),r){let e=new Date(t);document.cookie=`id_token=${r}; expires=${e.toUTCString()}; path=/`}if(sessionStorage.setItem("token",JSON.stringify({access_token:e,expiration:t,low_token:e})),n){let e=new Date;e.setDate(e.getDate()+14),document.cookie=`refresh_token=${n}; expires=${e.toUTCString()}; path=/`}}},20446:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(92405)}])},23574:(e,t,r)=>{"use strict";r.d(t,{t:()=>i});var n,i=((n={}).AddCustomerFavoriteItemSuccess="AddCustomerFavoriteItemSuccess",n.AddCustomerFavoriteOrderSuccess="AddCustomerFavoriteOrderSuccess",n.AddCustomerFavoriteStoreSuccess="AddCustomerFavoriteStoreSuccess",n.AddFundsToGiftCardSuccess="AddFundsToGiftCardSuccess",n.AddGiftCardFundsError="AddGiftCardFundsError",n.AddSavedPaymentMethodError="AddSavedPaymentMethodError",n.AddSavedPaymentMethodSuccess="AddSavedPaymentMethodSuccess",n.BeginPaymentSessionSuccess="BeginPaymentSessionSuccess",n.ConfirmIdentifierVerificationError="ConfirmIdentifierVerificationError",n.ConfirmIdentifierVerificationSuccess="ConfirmIdentifierVerificationSuccess",n.Customer="Customer",n.CustomerNotFoundError="CustomerNotFoundError",n.CustomerOrder="CustomerOrder",n.CybersourceCaptureContextTokenExpiredError="CybersourceCaptureContextTokenExpiredError",n.CybersourceCaptureContextTokenInvalidError="CybersourceCaptureContextTokenInvalidError",n.FavoriteItemInvalidInputError="FavoriteItemInvalidInputError",n.FavoriteItemLimitReachedError="FavoriteItemLimitReachedError",n.FavoriteItemNotFoundError="FavoriteItemNotFoundError",n.FavoriteOrderLimitReachedError="FavoriteOrderLimitReachedError",n.FavoriteOrderNotFoundError="FavoriteOrderNotFoundError",n.FavoriteStoreAlreadyExistsError="FavoriteStoreAlreadyExistsError",n.FavoriteStoreLimitReachedError="FavoriteStoreLimitReachedError",n.FavoriteStoreNotFoundError="FavoriteStoreNotFoundError",n.GiftCardPurchaseDeclineError="GiftCardPurchaseDeclineError",n.NoFavoriteOrderLineItemsError="NoFavoriteOrderLineItemsError",n.PaymentProcessorError="PaymentProcessorError",n.PaymentSessionConfigurationError="PaymentSessionConfigurationError",n.PaymentSessionNotFoundError="PaymentSessionNotFoundError",n.RemoveCustomerFavoriteItemSuccess="RemoveCustomerFavoriteItemSuccess",n.RemoveCustomerFavoriteOrderSuccess="RemoveCustomerFavoriteOrderSuccess",n.RemoveCustomerFavoriteStoreSuccess="RemoveCustomerFavoriteStoreSuccess",n.RequestIdentifierVerificationError="RequestIdentifierVerificationError",n.RequestIdentifierVerificationSuccess="RequestIdentifierVerificationSuccess",n.SetDefaultSavedPaymentMethodError="SetDefaultSavedPaymentMethodError",n.SetDefaultSavedPaymentMethodSuccess="SetDefaultSavedPaymentMethodSuccess",n.StoreNotFoundError="StoreNotFoundError",n.UpdateCustomerPairingPreferencesSuccess="UpdateCustomerPairingPreferencesSuccess",n)},24216:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},24984:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectRequestHandler=void 0;var o=r(84274),s=r(75117),a=r(71174),c=r(93188),u=r(83299),l=r(90921),h=r(13092),f=function(e){return"".concat(e,"_appauth_authorization_request")},d=function(e){return"".concat(e,"_appauth_authorization_service_configuration")},p="appauth_current_authorization_request";t.RedirectRequestHandler=function(e){function t(t,r,n,i){void 0===t&&(t=new h.LocalStorageBackend),void 0===r&&(r=new l.BasicQueryStringUtils),void 0===n&&(n=window.location),void 0===i&&(i=new c.DefaultCrypto);var o=e.call(this,r,i)||this;return o.storageBackend=t,o.locationLike=n,o}return i(t,e),t.prototype.performAuthorizationRequest=function(e,t){var r=this,n=this.crypto.generateRandom(10);Promise.all([this.storageBackend.setItem(p,n),t.toJson().then(function(e){return r.storageBackend.setItem(f(n),JSON.stringify(e))}),this.storageBackend.setItem(d(n),JSON.stringify(e.toJson()))]).then(function(){var n=r.buildRequestUrl(e,t);(0,u.log)("Making a request to ",t,n),r.locationLike.assign(n)})},t.prototype.completeAuthorizationRequest=function(){var e=this;return this.storageBackend.getItem(p).then(function(t){return t?e.storageBackend.getItem(f(t)).then(function(e){return JSON.parse(e)}).then(function(e){return new o.AuthorizationRequest(e)}).then(function(r){var n="".concat(e.locationLike.origin).concat(e.locationLike.pathname),i=e.utils.parse(e.locationLike,!0),o=i.state,s=i.code,c=i.error;
13(0,u.log)("Potential authorization request ",n,i,o,s,c);var l=o===r.state,h=null,g=null;if(!l)return(0,u.log)("Mismatched request (state and request_uri) dont match."),Promise.resolve(null);if(c){var m=i.error_uri,y=i.error_description;g=new a.AuthorizationError({error:c,error_description:y,error_uri:m,state:o})}else h=new a.AuthorizationResponse({code:s,state:o});return Promise.all([e.storageBackend.removeItem(p),e.storageBackend.removeItem(f(t)),e.storageBackend.removeItem(d(t))]).then(function(){return(0,u.log)("Delivering authorization response"),{request:r,response:h,error:g}})}):null})},t}(s.AuthorizationRequestHandler)},25078:(e,t,r)=>{"use strict";function n(e){return function e(t,r){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,r){let n;if(null===t)return"null";if(r.includes(t))return"[Circular]";let i=[...r,t];if("function"==typeof t.toJSON){let r=t.toJSON();if(r!==t)return"string"==typeof r?r:e(r,i)}else if(Array.isArray(t)){var o,s,a=t,c=i;if(0===a.length)return"[]";if(c.length>2)return"[Array]";let r=Math.min(10,a.length),n=a.length-r,u=[];for(let t=0;t<r;++t)u.push(e(a[t],c));return 1===n?u.push("... 1 more item"):n>1&&u.push(`... ${n} more items`),"["+u.join(", ")+"]"}return o=t,s=i,0===(n=Object.entries(o)).length?"{}":s.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+n.map(([t,r])=>t+": "+e(r,s)).join(", ")+" }"}(t,r);default:return String(t)}}(e,[])}r.d(t,{N:()=>n})},25624:(e,t,r)=>{"use strict";r.d(t,{$n:()=>y,E5:()=>l,H:()=>p,P5:()=>g,dh:()=>d,gI:()=>m,iD:()=>c,oQ:()=>f});var n=r(30846),i=r(64939),o=r(39712),s=r(17742),a=r(98539).Buffer;let c=async()=>await h("access_token"),u=async e=>{let t=o.Ay.getItems().token;return(0,n.nX)("refresh_token")?(t?Date.now()>=t.expiration&&(await (0,s.eE)(),t=o.Ay.getItems().token):(await (0,s.eE)(),t=o.Ay.getItems().token),t?.[e]):null},l=async()=>await h("low_token"),h=async e=>await u(e),f=async()=>{let e=await (0,s.ry)();return e?.accessToken},d=async(e={})=>(m(e,await c()),e),p=(e={})=>{let t=(0,i.gp)("CSRFToken");return t&&(e.CSRFToken=t),e},g=async(e={})=>(m(e,await l()),e),m=(e={},t)=>(t&&(e.Authorization=`Bearer ${t}`),e),y=e=>{try{return JSON.parse(a.from(e.split(".")[1],"base64").toString())}catch(e){return{}}}},29172:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(40242),i=r(66582);let o=({host:e,url:t="",urlValues:r={}})=>{let o=/localhost/.test(window?.location.hostname),s=(0,n.G)(t,r);if(o){let t=encodeURIComponent(e+s);return t.startsWith("/")||(t="/"+t),{url:(0,n.G)(i.Bo,{url:t})}}return{host:e,url:s}}},30846:(e,t,r)=>{"use strict";function n(e){{let t=e+"=";for(let e of decodeURIComponent(document.cookie).split(";")){for(;" "===e.charAt(0);)e=e.substring(1);if(0===e.indexOf(t))return e.substring(t.length,e.length)}}return""}r.d(t,{nX:()=>n})},32081:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationServiceConfiguration=void 0;var n=r(54123);t.AuthorizationServiceConfiguration=function(){function e(e){this.authorizationEndpoint=e.authorization_endpoint,this.tokenEndpoint=e.token_endpoint,this.revocationEndpoint=e.revocation_endpoint,this.userInfoEndpoint=e.userinfo_endpoint,this.endSessionEndpoint=e.end_session_endpoint}return e.prototype.toJson=function(){return{authorization_endpoint:this.authorizationEndpoint,token_endpoint:this.tokenEndpoint,revocation_endpoint:this.revocationEndpoint,end_session_endpoint:this.endSessionEndpoint,userinfo_endpoint:this.userInfoEndpoint}},e.fetchFromIssuer=function(t,r){var i="".concat(t,"/").concat(".well-known","/").concat("openid-configuration");return(r||new n.JQueryRequestor).xhr({url:i,dataType:"json",method:"GET"}).then(function(t){return new e(t)})},e}()},33088:()=>{},38049:(e,t,r)=>{"use strict";function n(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function o(e){return e>=97&&e<=122||e>=65&&e<=90}function s(e){return o(e)||95===e}function a(e){return o(e)||i(e)||95===e}r.d(t,{i0:()=>n,un:()=>s,xr:()=>a,yp:()=>i})},39712:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>m,DS:()=>h,H_:()=>g,Lr:()=>a,OL:()=>d,O_:()=>l,Tc:()=>f,jc:()=>c,uX:()=>p,yG:()=>u});var n=r(90492);let i=(e,[t,r])=>{r=r.trim();try{e[t]=/^{.*}$/.test(r)?JSON.parse(r):/^\d$/.test(r)?Number(r):"true"===r||"false"!==r&&r}catch(e){throw Error(e)}return e},o=e=>({getItems:()=>Object.entries(e).reduce(i,{}),setItems:(t,r=!0)=>{Object.entries(t).forEach(([t,n])=>e.setItem(t,r?JSON.stringify(n):n))}}),s=o(window.sessionStorage),a=o(window.localStorage),c=()=>a.getItems().selectedStore,u=()=>{let e,t=a.getItems().storeData;return(e=!!t&&null===t.dayparts&&null===t.openingScheduleData&&null===t.storeName,t?.storeId&&!e)?t:void 0},l=()=>s.getItems().user,h=()=>{let e=a.getItems().deviceId;if(e)return JSON.parse(e);let t=(0,n.A)();return a.setItems({deviceId:t}),t},f=()=>s.getItems().returnToCart,d=()=>{window.sessionStorage.removeItem("returnToCart")},p=e=>{void 0===e?window.sessionStorage.removeItem("usersPromoCode"):s.setItems({usersPromoCode:e},!1)},g=()=>s.getItems().usersPromoCode,m=s},40179:(e,t,r)=>{"use strict";r.d(t,{d:()=>o});var n=r(47089),i=r(66582);let o=async()=>{let e;try{e=await (0,n.Ay)({host:"",url:i.WU})}catch(e){return console.error("Logout API POST request failed!",e),{}}if(!e.ok)return{}}},40242:(e,t,r)=>{"use strict";function n(e,t){return e.replace(/{([^{}]*)}/g,(e,r)=>{let n=t[r.replace(/^\s+|\s+$/gm,"")];return"string"==typeof n||"number"==typeof n?String(n):""})}r.d(t,{G:()=>n})},40896:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=c(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),l=0,h=a>0?s-4:s;for(r=0;r<h;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>
134,u[l++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(e,t,n){for(var i,o=[],s=t;s<n;s+=3)i=(e[s]<<16&0xff0000)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},42856:(e,t,r)=>{"use strict";var n,i;r.d(t,{Ll:()=>u,aD:()=>a,aZ:()=>o,cE:()=>n,ou:()=>s});class o{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class s{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let a={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:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},c=new Set(Object.keys(a));function u(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&c.has(t)}(i=n||(n={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},46225:(e,t,r)=>{e.exports=r(77269)},46461:(e,t)=>{t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,c=(1<<a)-1,u=c>>1,l=-7,h=r?i-1:0,f=r?-1:1,d=e[t+h];for(h+=f,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+e[t+h],h+=f,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+h],h+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=u}return(d?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,h=l>>1,f=5960464477539062e-23*(23===i),d=n?0:o-1,p=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?t+=f/c:t+=f*Math.pow(2,1-h),t*c>=2&&(s++,c/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(t*c-1)*Math.pow(2,i),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+d]=255&s,d+=p,s/=256,u-=8);e[r+d-p]|=128*g}},47089:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,N1:()=>a,iT:()=>c}),r(96252);var n=r(89946),i=r(11272),o=r(60540);async function s({body:e,credentials:t="include",headers:r={},host:n="http://localhost:3000",method:i="GET",payload:a,url:c="",useDefaultHost:u=!0}){let l=u?n+c:c,h=a?(0,o.jw)(l,a):l;return await fetch(h,{body:e||void 0,credentials:t,headers:r,method:i})}async function a({body:e,credentials:t="include",headers:r={},host:i="http://localhost:3000",method:s="GET",payload:c,url:u="",useDefaultHost:l=!0}){let h,f,d=new AbortController,{signal:p}=d,g=l?i+u:u,m=c?(0,o.jw)(g,c):g,y=1e3*parseInt(n.aF,10);isNaN(y)||(h=setTimeout(()=>d.abort(),y));try{f=await fetch(m,{body:e||void 0,credentials:t,headers:r,method:s,signal:p})}finally{h&&clearTimeout(h)}return f}let c=e=>{if((0,i.Gv)(e))return e;try{return Error(JSON.stringify(e))}catch{return Error(String(e))}}},47924:(e,t,r)=>{"use strict";r.d(t,{OC:()=>i,yo:()=>o});var n=r(38049);function i(e){var t,r;let i=Number.MAX_SAFE_INTEGER,o=null,s=-1;for(let t=0;t<e.length;++t){let a=e[t],c=function(e){let t=0;for(;t<e.length&&(0,n.i0)(e.charCodeAt(t));)++t;return t}(a);c!==a.length&&(o=null!=(r=o)?r:t,s=t,0!==t&&c<i&&(i=c))}return e.map((e,t)=>0===t?e:e.slice(i)).slice(null!=(t=o)?t:0,s+1)}function o(e,t){let r=e.replace(/"""/g,'\\"""'),i=r.split(/\r\n|[\n\r]/g),o=1===i.length,s=i.length>1&&i.slice(1).every(e=>0===e.length||(0,n.i0)(e.charCodeAt(0))),a=r.endsWith('\\"""'),c=e.endsWith('"')&&!a,u=e.endsWith("\\"),l=c||u,h=!(null!=t&&t.minimize)&&(!o||e.length>70||l||s||a),f="",d=o&&(0,n.i0)(e.charCodeAt(0));
13return(h&&!d||s)&&(f+="\n"),f+=r,(h||l)&&(f+="\n"),'"""'+f+'"""'}},49106:(e,t,r)=>{"use strict";r.d(t,{F:()=>h});var n=r(65283),i=r(69336),o=r(71441),s=r(25624),a=r(47089),c=r(79992),u=r(14635),l=r(66582);async function h(){let e;if((0,c.q0)()){let e,t,r=await (0,i.Qx)();return!r||"errorCode"in r?(r&&n.yf.logger.log("getUsersData (Fresco) Failed",{errorCode:r.errorCode,message:r.message},"error"),{success:!1}):{...(e=r?.profile,t=e?.email||"",{activationCode:[],birthday:(0,i.pK)(e?.birthday),customerID:r?.customerId??"",displayUid:t,email:t,firstName:e?.firstName||"",hasPassword:!1,isLoggedIn:!0,lastName:e?.lastName||"",name:[e?.firstName,e?.lastName].filter(Boolean).join(" ").trim(),offersCount:0,ordersCount:0,phoneNumber:e?.phone||"",type:"",userUid:t.toLowerCase()}),success:!0}}let t=(0,o.K)((0,u.t)(l.qY)),r=await (0,s.iD)();try{e=await (0,a.Ay)({headers:{Authorization:`Bearer ${r}`},host:"",url:t})}catch(e){return console.error("getUsersData Failed",e),n.yf.logger.log("getUsersData Failed",{error:e},"error"),{success:!1}}if(!e.ok){let t=await e.json();return n.yf.logger.log("getUsersData Failed",t,"error"),{success:!1}}let{uid:h,offersCount:f,ordersCount:d,...p}=await e.json();return{...p,isLoggedIn:!!h,offersCount:Number(f)||0,ordersCount:Number(d)||0,success:!0,userUid:h?.toLowerCase()}}},49214:(e,t,r)=>{"use strict";r.d(t,{y:()=>f});var n=r(47924);let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return s[e.charCodeAt(0)]}let s=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var a=r(63641),c=r(25078),u=r(42856),l=r(97813);let h=Object.freeze({});function f(e){return function(e,t,r=u.aD){let n,i,o,s=new Map;for(let e of Object.values(l.b))s.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let f=Array.isArray(e),d=[e],p=-1,g=[],m=e,y=[],v=[];do{var b,E,_;let e,l=++p===d.length,w=l&&0!==g.length;if(l){if(i=0===v.length?void 0:y[y.length-1],m=o,o=v.pop(),w)if(f){m=m.slice();let e=0;for(let[t,r]of g){let n=t-e;null===r?(m.splice(n,1),e++):m[n]=r}}else for(let[e,t]of(m={...m},g))m[e]=t;p=n.index,d=n.keys,g=n.edits,f=n.inArray,n=n.prev}else if(o){if(null==(m=o[i=f?p:d[p]]))continue;y.push(i)}if(!Array.isArray(m)){(0,u.Ll)(m)||(0,a.U)(!1,`Invalid AST Node: ${(0,c.N)(m)}.`);let r=l?null==(b=s.get(m.kind))?void 0:b.leave:null==(E=s.get(m.kind))?void 0:E.enter;if((e=null==r?void 0:r.call(t,m,i,o,y,v))===h)break;if(!1===e){if(!l){y.pop();continue}}else if(void 0!==e&&(g.push([i,e]),!l))if((0,u.Ll)(e))m=e;else{y.pop();continue}}void 0===e&&w&&g.push([i,m]),l?y.pop():(n={inArray:f,index:p,keys:d,edits:g,prev:n},d=(f=Array.isArray(m))?m:null!=(_=r[m.kind])?_:[],p=-1,g=[],o&&v.push(o),o=m)}while(void 0!==n);return 0!==g.length?g[g.length-1][1]:e}(e,d)}let d={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>p(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=v(e.variableDefinitions)?m("(\n",p(e.variableDefinitions,"\n"),"\n)"):m("(",p(e.variableDefinitions,", "),")"),r=m("",e.description,"\n")+p([e.operation,p([e.name,t]),p(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>m("",i,"\n")+e+": "+t+m(" = ",r)+m(" ",p(n," "))},SelectionSet:{leave:({selections:e})=>g(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=m("",e,": ")+t,s=o+m("(",p(r,", "),")");return s.length>80&&(s=o+m("(\n",y(p(r,"\n")),"\n)")),p([s,p(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+m(" ",p(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>p(["...",m("on ",e),p(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>m("",o,"\n")+`fragment ${e}${m("(",p(r,", "),")")} `+`on ${t} ${m("",p(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
13,StringValue:{leave:({value:e,block:t})=>t?(0,n.yo)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+p(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+p(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+m("(",p(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>m("",e,"\n")+p(["schema",p(t," "),g(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>m("",e,"\n")+p(["scalar",t,p(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>m("",e,"\n")+p(["type",t,m("implements ",p(r," & ")),p(n," "),g(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>m("",e,"\n")+t+(v(r)?m("(\n",y(p(r,"\n")),"\n)"):m("(",p(r,", "),")"))+": "+n+m(" ",p(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>m("",e,"\n")+p([t+": "+r,m("= ",n),p(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>m("",e,"\n")+p(["interface",t,m("implements ",p(r," & ")),p(n," "),g(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>m("",e,"\n")+p(["union",t,p(r," "),m("= ",p(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>m("",e,"\n")+p(["enum",t,p(r," "),g(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>m("",e,"\n")+p([t,p(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>m("",e,"\n")+p(["input",t,p(r," "),g(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>m("",e,"\n")+"directive @"+t+(v(r)?m("(\n",y(p(r,"\n")),"\n)"):m("(",p(r,", "),")"))+(n?" repeatable":"")+" on "+p(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>p(["extend schema",p(e," "),g(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>p(["extend scalar",e,p(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>p(["extend type",e,m("implements ",p(t," & ")),p(r," "),g(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>p(["extend interface",e,m("implements ",p(t," & ")),p(r," "),g(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>p(["extend union",e,p(t," "),m("= ",p(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>p(["extend enum",e,p(t," "),g(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>p(["extend input",e,p(t," "),g(r)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>p([e,m(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>p([e,m(".",t),m("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>p(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>p(["@",e,m("(",t,":)")])}};function p(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function g(e){return m("{\n",y(p(e,"\n")),"\n}")}function m(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function y(e){return m(" ",e.replace(/\n/g,"\n "))}function v(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}},54123:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});
13Object.defineProperty(t,"__esModule",{value:!0}),t.TestRequestor=t.FetchRequestor=t.JQueryRequestor=t.Requestor=void 0;var o=r(75700),s=function(){};t.Requestor=s,t.JQueryRequestor=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.xhr=function(e){var t=$.ajax(e);return new Promise(function(e,r){t.then(function(t,r,n){e(t)},function(e,t,n){r(new o.AppAuthError(n))})})},t}(s),t.FetchRequestor=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.xhr=function(e){if(!e.url)return Promise.reject(new o.AppAuthError("A URL must be provided."));var t=new URL(e.url),r={};if(r.method=e.method,r.mode="cors",e.data&&(e.method&&"POST"===e.method.toUpperCase()?r.body=e.data:new URLSearchParams(e.data).forEach(function(e,r){t.searchParams.append(r,e)})),r.headers={},e.headers)for(var n in e.headers)e.headers.hasOwnProperty(n)&&(r.headers[n]=e.headers[n]);var i=e.dataType&&"json"===e.dataType.toLowerCase();return i&&(r.headers.Accept="application/json, text/javascript, */*; q=0.01"),fetch(t.toString(),r).then(function(e){if(!(e.status>=200)||!(e.status<300))return Promise.reject(new o.AppAuthError(e.status.toString(),e.statusText));var t=e.headers.get("content-type");return i||t&&-1!==t.indexOf("application/json")?e.json():e.text()})},t}(s),t.TestRequestor=function(e){function t(t){var r=e.call(this)||this;return r.promise=t,r}return i(t,e),t.prototype.xhr=function(e){return this.promise},t}(s)},60540:(e,t,r)=>{"use strict";function n(e,t){if(Object.keys(t).length)for(let[r,n]of(e+="?",Object.entries(t)))e=`${e}${e.lastIndexOf("?")===e.length-1?"":"&"}${r}=${n}`;return e}function i(e){let t="";for(let r in e)void 0!==e[r]&&(t=t.length?t+`&${r}=${e[r]}`:`?${r}=${e[r]}`);return t}r.d(t,{EY:()=>i,jw:()=>n})},62849:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTokenRequestHandler=void 0;var n=r(75700),i=r(90921),o=r(2954),s=r(54123);t.BaseTokenRequestHandler=function(){function e(e,t){void 0===e&&(e=new s.JQueryRequestor),void 0===t&&(t=new i.BasicQueryStringUtils),this.requestor=e,this.utils=t}return e.prototype.isTokenResponse=function(e){return void 0===e.error},e.prototype.performRevokeTokenRequest=function(e,t){return this.requestor.xhr({url:e.revocationEndpoint,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then(function(e){return!0})},e.prototype.performTokenRequest=function(e,t){var r=this;return this.requestor.xhr({url:e.tokenEndpoint,method:"POST",dataType:"json",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:this.utils.stringify(t.toStringMap())}).then(function(e){return r.isTokenResponse(e)?new o.TokenResponse(e):Promise.reject(new n.AppAuthError(e.error,new o.TokenError(e)))})},e}()},63641:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error(t)}r.d(t,{U:()=>n})},63868:()=>{},64939:(e,t,r)=>{"use strict";function n(e,t,r){let n="";if(t||0===t){let e=new Date;e.setTime(e.getTime()+24*t*36e5),n=" expires="+e.toUTCString()}Object.entries(e).forEach(([e,t])=>window.document.cookie=`${e}=${t};${n}; ${r?`path=${r}`:null}`)}function i(e){let t=RegExp(`${e}=([^;]*)`),r=window.document.cookie.match(t);return r&&r[1]}function o(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}r.d(t,{St:()=>n,Yj:()=>o,gp:()=>i})},65283:(e,t,r)=>{"use strict";r.d(t,{yf:()=>eQ});var n,i,o,s,a,c,u,l,h,f,d,p,g,m,y,v,b,E,_,w,T,I,S,C,A,O=function(){return(O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function N(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}var k={log:console.log.bind(console),warn:console.warn.bind(console),error:console.error.bind(console)};function x(e,t){var r;try{if(r=function(e){var t,r=D(e,"stacktrace");if(r){for(var n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),s=[],a=0;a<o.length;a+=2){var c=void 0;n.exec(o[a])?c={args:[],column:void 0,func:(t=n.exec(o[a]))[3],line:+t[1],url:t[2]}:i.exec(o[a])&&(c={args:(t=i.exec(o[a]))[5]?t[5].split(","):[],column:+t[2],func:t[3]||t[4],line:+t[1],url:t[6]}),c&&(!c.func&&c.line&&(c.func="?"),c.context=[o[a+1]],s.push(c))}if(s.length)return{stack:s,message:D(e,"message"),name:D(e,"name")}}}(e))return r}catch(e){if(R)throw e}try{if(r=function(e){var t,r,n,i,o=D(e,"stack");
13if(o){for(var s=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,a=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,c=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,h=o.split("\n"),f=[],d=0,p=h.length;d<p;d+=1){if(s.exec(h[d])){var g,m=(n=s.exec(h[d]))[2]&&0===n[2].indexOf("native");t=n[2]&&0===n[2].indexOf("eval"),r=l.exec(n[2]),t&&r&&(n[2]=r[1],n[3]=r[2],n[4]=r[3]),i={args:m?[n[2]]:[],column:n[4]?+n[4]:void 0,func:n[1]||"?",line:n[3]?+n[3]:void 0,url:m?void 0:n[2]}}else if(c.exec(h[d]))i={args:[],column:(n=c.exec(h[d]))[4]?+n[4]:void 0,func:n[1]||"?",line:+n[3],url:n[2]};else{if(!a.exec(h[d]))continue;t=(n=a.exec(h[d]))[3]&&n[3].indexOf(" > eval")>-1,r=u.exec(n[3]),t&&r?(n[3]=r[1],n[4]=r[2],n[5]=void 0):0!==d||n[5]||(g=e.columnNumber,void 0===g)||(f[0].column=e.columnNumber+1),i={args:n[2]?n[2].split(","):[],column:n[5]?+n[5]:void 0,func:n[1]||"?",line:n[4]?+n[4]:void 0,url:n[3]}}!i.func&&i.line&&(i.func="?"),f.push(i)}if(f.length)return{stack:f,message:D(e,"message"),name:D(e,"name")}}}(e))return r}catch(e){if(R)throw e}try{if(r=function(e){var t,r=D(e,"message");if(r){var n=r.split("\n");if(!(n.length<4)){var i,o,s=/^\s*Line (\d+) of linked script ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,a=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|https?|blob)\S+)(?:: in function (\S+))?\s*$/i,c=/^\s*Line (\d+) of function script\s*$/i,u=[],l=window&&window.document&&window.document.getElementsByTagName("script"),h=[];for(var f in l){i=l,o=f,Object.prototype.hasOwnProperty.call(i,o)&&!l[f].src&&h.push(l[f])}for(var d=2;d<n.length;d+=2){var p=void 0;s.exec(n[d])?p={args:[],column:void 0,func:(t=s.exec(n[d]))[3],line:+t[1],url:t[2]}:a.exec(n[d])?p={args:[],column:void 0,func:(t=a.exec(n[d]))[4],line:+t[1],url:t[3]}:c.exec(n[d])&&(t=c.exec(n[d]),p={url:window.location.href.replace(/#.*$/,""),args:[],column:void 0,func:"",line:+t[1]}),p&&(p.func||(p.func="?"),p.context=[n[d+1]],u.push(p))}if(u.length)return{stack:u,message:n[0],name:D(e,"name")}}}}(e))return r}catch(e){if(R)throw e}try{if(r=function e(t,r){for(var n,i,o=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],a={},c=!1,u=e.caller;u&&!c;u=u.caller)u!==x&&(i={args:[],column:void 0,func:"?",line:void 0,url:void 0},n=o.exec(u.toString()),u.name?i.func=u.name:n&&(i.func=n[1]),void 0===i.func&&(i.func=n?n.input.substring(0,n.input.indexOf("{")):void 0),a[u.toString()]?c=!0:a[u.toString()]=!0,s.push(i));r&&s.splice(0,r);var l={stack:s,message:D(t,"message"),name:D(t,"name")};return!function(e,t,r){var n={url:t,line:r?+r:void 0};if(n.url&&n.line){e.incomplete=!1;var i=e.stack;if(i.length>0&&i[0].url===n.url){if(i[0].line===n.line)return;if(!i[0].line&&i[0].func===n.func)return i[0].line=n.line,i[0].context=n.context}return i.unshift(n),e.partial=!0}e.incomplete=!0}(l,D(t,"sourceURL")||D(t,"fileName"),D(t,"line")||D(t,"lineNumber")),l}(e,(void 0===t?0:+t)+1))return r}catch(e){if(R)throw e}return{message:D(e,"message"),name:D(e,"name"),stack:[]}}var R=!1;function D(e,t){if("object"==typeof e&&e&&t in e){var r=e[t];return"string"==typeof r?r:void 0}}function L(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,L)}function P(){}function M(e,t,r){if(null==e)return JSON.stringify(e);var n,i,o=[!1,void 0];B(e)&&(o=[!0,e.toJSON],delete e.toJSON);var s=[!1,void 0];"object"==typeof e&&B(n=Object.getPrototypeOf(e))&&(s=[!0,n.toJSON],delete n.toJSON);try{i=JSON.stringify(e,t,r)}catch(e){i="<error: unable to serialize object>"}finally{o[0]&&(e.toJSON=o[1]),s[0]&&(n.toJSON=s[1])}return i}function B(e){return"object"==typeof e&&null!==e&&Object.prototype.hasOwnProperty.call(e,"toJSON")}function F(e,t){return -1!==e.indexOf(t)}function U(e){return Object.keys(e).map(function(t){return e[t]})}(b=n||(n={})).DOCUMENT="document",b.XHR="xhr",b.BEACON="beacon",b.FETCH="fetch",b.CSS="css",b.JS="js",b.IMAGE="image",b.FONT="font",b.MEDIA="media",b.OTHER="other",(E=i||(i={})).FETCH="fetch",E.XHR="xhr";function j(e,t,r,n){var i=void 0===n?{}:n,o=i.once,s=i.capture,a=i.passive,c=et(o?function(e){l(),r(e)}:r),u=a?{capture:s,passive:a}:s;t.forEach(function(t){return e.addEventListener(t,c,u)});var l=function(){return t.forEach(function(t){return e.removeEventListener(t,c,u)})};return{stop:l}}function V(e,t,r){if(void 0===r&&(r=function(){if("u">typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var r=e.has(t);return r||e.add(t),r}}}var t=[];return{hasAlreadyBeenSeen:function(e){var r=t.indexOf(e)>=0;return r||t.push(e),r}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var n=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,n)}if(!r.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var i=Array.isArray(e)?e:[],o=0;o<t.length;++o)i[o]=V(i[o],t[o],r);return i}var s="object"==(null===e?"null":Array.isArray(e)?"array":typeof e)?e:{};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(s[a]=V(s[a],t[a],r));return s}}function z(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0;n<t.length;n++){var i=t[n];null!=i&&(e=V(e,i))}return e}function q(e){var t=H(e);return e.stack.forEach(function(e){var r="?"===e.func?"<anonymous>":e.func,n=e.args&&e.args.length>0?"("+e.args.join(", ")+")":"",i=e.line?":"+e.line:"",o=e.line&&e.column?":"+e.column:"";t+="\n at "+r+n+" @ "+e.url+i+o}),t}function H(e){return(e.name||"Error")+": "+e.message}function G(){var e=function(){return s&&s.has("event-bridge")?window.DatadogEventBridge:null}();if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,r){e.send(JSON.stringify({eventType:t,event:r}))}}}
13function K(){var e=G();return!!e&&F(e.getAllowedWebViewHosts(),window.location.hostname)}(_=o||(o={})).HANDLED="handled",_.UNHANDLED="unhandled";var Y=/[^\u0000-\u007F]/,J=function(){function e(e,t,r,n,i,o){void 0===o&&(o=P),this.request=e,this.maxSize=t,this.bytesLimit=r,this.maxMessageSize=n,this.flushTimeout=i,this.beforeUnloadCallback=o,this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesSize=0,this.bufferMessageCount=0,this.flushOnVisibilityHidden(),this.flushPeriodically()}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.flush=function(e){if(0!==this.bufferMessageCount){var t=N(this.pushOnlyBuffer,U(this.upsertBuffer));this.request.send(t.join("\n"),this.bufferBytesSize,e),this.pushOnlyBuffer=[],this.upsertBuffer={},this.bufferBytesSize=0,this.bufferMessageCount=0}},e.prototype.sizeInBytes=function(e){return Y.test(e)?void 0!==window.TextEncoder?new TextEncoder().encode(e).length:new Blob([e]).size:e.length},e.prototype.addOrUpdate=function(e,t){var r=this.process(e),n=r.processedMessage,i=r.messageBytesSize;i>=this.maxMessageSize?k.warn("Discarded a message whose size was bigger than the maximum allowed size "+this.maxMessageSize+"KB."):(this.hasMessageFor(t)&&this.remove(t),this.willReachedBytesLimitWith(i)&&this.flush("willReachedBytesLimitWith"),this.push(n,i,t),this.isFull()&&this.flush("isFull"))},e.prototype.process=function(e){var t=M(e),r=this.sizeInBytes(t);return{processedMessage:t,messageBytesSize:r}},e.prototype.push=function(e,t,r){this.bufferMessageCount>0&&(this.bufferBytesSize+=1),void 0!==r?this.upsertBuffer[r]=e:this.pushOnlyBuffer.push(e),this.bufferBytesSize+=t,this.bufferMessageCount+=1},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var r=this.sizeInBytes(t);this.bufferBytesSize-=r,this.bufferMessageCount-=1,this.bufferMessageCount>0&&(this.bufferBytesSize-=1)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e.prototype.willReachedBytesLimitWith=function(e){return this.bufferBytesSize+e+1>=this.bytesLimit},e.prototype.isFull=function(){return this.bufferMessageCount===this.maxSize||this.bufferBytesSize>=this.bytesLimit},e.prototype.flushPeriodically=function(){var e=this;setTimeout(et(function(){e.flush("flushPeriodically"),e.flushPeriodically()}),this.flushTimeout)},e.prototype.flushOnVisibilityHidden=function(){var e=this;navigator.sendBeacon&&(j(window,["beforeunload"],this.beforeUnloadCallback,void 0),j(document,["visibilitychange"],function(){"hidden"===document.visibilityState&&e.flush("visibilitychange")},void 0),j(window,["beforeunload"],function(){return e.flush("beforeunload")},void 0))},e}(),W=!1,X=function(){function e(e,t){this.endpointBuilder=e,this.bytesLimit=t}return e.prototype.send=function(e,t,r){var n,i=this.endpointBuilder.build(),o=!!navigator.sendBeacon&&t<this.bytesLimit;if(o)try{if(navigator.sendBeacon(i,e))return}catch(e){n=e,Q||(Q=!0,ei(n))}var s=function(e){var n=null==e?void 0:e.currentTarget;n.status>=200&&n.status<300||W||(W=!0,en("XHR fallback failed",{on_line:navigator.onLine,size:t,url:i,try_beacon:o,flush_reason:r,event:{is_trusted:e.isTrusted,total:e.total,loaded:e.loaded},request:{status:n.status,ready_state:n.readyState,response_text:n.responseText.slice(0,512)}}))},a=new XMLHttpRequest;a.addEventListener("loadend",et(function(e){return s(e)})),a.open("POST",i,!0),a.send(e)},e}(),Q=!1;(w=a||(a={})).info="info",w.error="error";var Z={maxMessagesPerPage:0,sentMessageCount:0};function ee(e,t,r){var n=r.value;r.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(c?et(n):n).apply(this,e)}}function et(e){return function(){return er(e,this,arguments)}}function er(e,t,r){try{return e.apply(t,r)}catch(e){ea(e);try{ei(e)}catch(e){ea(e)}}}function en(e,t){var r,n;r=e,n=t,Z.debugMode&&k.log("[MONITORING MESSAGE]",r,n),eo(O(O({message:e},t),{status:a.info}))}function ei(e){eo(O(O({},function(e){if(e instanceof Error){var t=x(e);return{error:{kind:t.name,stack:q(t)},message:t.message}}return{error:{stack:"Not an instance of error"},message:"Uncaught "+M(e)}}(e)),{status:a.error}))}function eo(e){c&&Z.sentMessageCount<Z.maxMessagesPerPage&&(Z.sentMessageCount+=1,c(e))}function es(e){Z.debugMode=e}function ea(e){Z.debugMode&&k.error("[INTERNAL ERROR]",e)}function ec(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];try{return e.apply(void 0,r)}catch(e){k.error(t,e)}}}(T=u||(u={})).RELEASE="release",T.STAGING="staging",T.CANARY="canary",T.E2E_TEST="e2e-test";var eu=function(){return(eu=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function el(){var e={};return{get:function(){return e},add:function(t,r){e[t]=r},remove:function(t){delete e[t]},set:function(t){e=t}}}var eh=function(){function e(e){void 0===e&&(e=1e4),this.limit=e,this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>this.limit&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach(function(e){return e()}),this.buffer.length=0},e}();function ef(e,t,r,n){var i=new Date;i.setTime(i.getTime()+r);var o="expires="+i.toUTCString(),s=n&&n.crossSite?"none":"strict",a=n&&n.domain?";domain="+n.domain:"",c=n&&n.secure?";secure":"";document.cookie=e+"="+t+";"+o+";path=/;samesite="+s+a+c}function ed(e){var t,r;return t=document.cookie,(r=RegExp("(?:^|;)\\s*"+e+"\\s*=\\s*([^;]+)").exec(t))?r[1]:void 0}function ep(){return Date.now()}function eg(){return performance.now()}function em(){return{relative:eg(),timeStamp:ep()}}function ey(){return void 0===h&&(h=performance.timing.navigationStart),h}function ev(e){return function(e,t){if(function(){if(void 0!==f)return f;try{var e=new URL("http://test/path");f="http://test/path"===e.href}catch(e){f=!1}return f}())return void 0!==t?new URL(e,t):new URL(e);if(void 0===t&&!/:/.test(e))throw Error("Invalid URL: '"+e+"'");var r=document,n=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(n)}return n.href=e,n}(e,function(e){if(e.origin)return e.origin;var t=e.host.replace(/(:80|:443)$/,"");return e.protocol+"//"+t}(window.location)).href}var eb={logs:"logs",rum:"rum",sessionReplay:"session-replay"},eE={logs:"browser",rum:"rum",sessionReplay:void 0},e_={logs:"logs",rum:"rum",sessionReplay:"replay"},ew="datadoghq.com",eT="datadoghq.eu",eI=[ew,eT],eS=[ew,"us3.datadoghq.com",eT,"ddog-gov.com"];function eC(e,t,r,n){var i,o=t.sdkVersion,s=e.proxyUrl&&ev(e.proxyUrl),a=e.site,c=void 0===a?ew:a,u=e.clientToken,l=e.env,h=e.proxyHost,f
13=e.service,d=e.version,p=e.intakeApiVersion,g=e.useAlternateIntakeDomains,m=function(e){var t;if(t=e,g||!F(eI,c)||"sessionReplay"===t){var r=eb[e],n=c.split("."),i=n.pop();return r+".browser-intake-"+(n.join("-")+".")+i}return eE[e]+"-http-intake.logs."+c}(r),y=b(i=r)?"/api/v2/"+e_[i]:"/v1/input/"+u;function v(){var e,t,i=(e=r,t="ddsource="+(n||"browser")+"&ddtags="+encodeURIComponent("sdk_version:"+o+(l?",env:"+l:"")+(f?",service:"+f:"")+(d?",version:"+d:"")),b(e)&&(t+="&dd-api-key="+u+"&dd-evp-origin-version="+encodeURIComponent(o)+"&dd-evp-origin=browser&dd-request-id="+L()),"rum"===e&&(t+="&batch_time="+ep()),t),a="https://"+m+y+"?"+i;return s?s+"?ddforward="+encodeURIComponent(a):h?"https://"+h+y+"?ddhost="+m+"&"+i:a}function b(e){return 2===p||!F(eS,c)||"sessionReplay"===e}return{build:v,buildIntakeUrl:function(){if(s)return s+"?ddforward";var e=v();return e.slice(0,e.indexOf("?"))}}}var eA={buildMode:"release",sdkVersion:"3.11.0"},eO={debug:"debug",error:"error",info:"info",warn:"warn"},eN=((d={})[eO.debug]=0,d[eO.info]=1,d[eO.warn]=2,d[eO.error]=3,d);Object.keys(eO);var ek="http",ex=function(){function e(e,t,r,n){void 0===t&&(t=ek),void 0===r&&(r=eO.debug),void 0===n&&(n={}),this.sendLog=e,this.handlerType=t,this.level=r,this.contextManager=el(),this.contextManager.set(n)}return e.prototype.log=function(e,t,r){if(void 0===r&&(r=eO.info),eN[r]>=eN[this.level]){var n=Array.isArray(this.handlerType)?this.handlerType:[this.handlerType];F(n,ek)&&this.sendLog(eu({message:e,status:r},z(this.contextManager.get(),t))),F(n,"console")&&k.log(r+": "+e,z(this.contextManager.get(),t))}},e.prototype.debug=function(e,t){this.log(e,t,eO.debug)},e.prototype.info=function(e,t){this.log(e,t,eO.info)},e.prototype.warn=function(e,t){this.log(e,t,eO.warn)},e.prototype.error=function(e,t){this.log(e,z({error:{origin:"logger"}},t),eO.error)},e.prototype.setContext=function(e){this.contextManager.set(e)},e.prototype.addContext=function(e,t){this.contextManager.add(e,t)},e.prototype.removeContext=function(e){this.contextManager.remove(e)},e.prototype.setHandler=function(e){this.handlerType=e},e.prototype.setLevel=function(e){this.level=e},!function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);o>3&&s&&Object.defineProperty(t,r,s)}([ee],e.prototype,"log",null),e}(),eR=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter(function(t){return e!==t}),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach(function(t){return t(e)})},e}();function eD(e,t,r){var n=e[t],i=r(n),o=function(){return i.apply(this,arguments)};return e[t]=o,{stop:function(){e[t]===o?e[t]=n:i=n}}}function eL(e,t,r){var n=r.before,i=r.after;return eD(e,t,function(e){return function(){var t,r=arguments;return n&&er(n,this,r),"function"==typeof e&&(t=e.apply(this,r)),i&&er(i,this,r),t}})}var eP=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function eM(e,t){this._datadog_xhr={state:"open",method:e,url:ev(t)}}function eB(e){var t=this;if(this._datadog_xhr){var r=this._datadog_xhr;r.state="start",r.startTime=eg(),r.startClocks=em(),r.isAborted=!1,r.xhr=this;var n=!1,i=eL(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&o()}}).stop,o=et(function(){if(t.removeEventListener("loadend",o),i(),!n){n=!0;var s,a=t._datadog_xhr;a.state="complete",s=r.startClocks.timeStamp,a.duration=ep()-s,a.responseText=t.response,a.status=t.status,e.notify(O({},a))}});this.addEventListener("loadend",o),e.notify(r)}}function eF(){this._datadog_xhr&&(this._datadog_xhr.isAborted=!0)}function eU(e,t,r){var n=r&&r.method||"object"==typeof t&&t.method||"GET",i=ev("object"==typeof t&&t.url||t),o={state:"start",init:r,input:t,method:n,startClocks:em(),url:i};return e.notify(o),o}function ej(e,t,r){var n=this,i=function(t){var i,o,s;return i=void 0,o=void 0,s=function(){var n,i;return function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var c=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){s.label=c[1];break}if(6===c[0]&&s.label<i[1]){s.label=i[1],i=c;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(c);break}i[2]&&s.ops.pop(),s.trys.pop();continue}c=t.call(e,s)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(o){switch(o.label){case 0:var s;if((n=r).state="complete",n.duration=(s=n.startClocks.timeStamp,ep()-s),!("stack"in t||t instanceof Error))return[3,1];return n.status=0,n.responseText=q(x(t)),n.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,n.error=t,e.notify(n),[3,6];case 1:if(!("status"in t))return[3,6];i=void 0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,t.clone().text()];case 3:return i=o.sent(),[3,5];case 4:return i="Unable to retrieve response: "+o.sent(),[3,5];case 5:n.response=t,n.responseText=i,n.responseType=t.type,n.status=t.status,n.isAborted=!1,e.notify(n),o.label=6;case 6:return[2]}})},new(o||(o=Promise))(function(e,t){function r(e){try{c(s.next(e))}catch(e){t(e)}}function a(e){try{c(s.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(r,a)}c((s=s.apply(n,i||[])).next())})};t.then(et(i),et(i))}var e$=function(){function e(e){var t=this;this.expireDelay=e,this.previousContexts=[],this.clearOldContextsInterval=setInterval(function(){return t.clearOldContexts()},6e4)}return e.prototype.find=function(e){if(void 0===e||void 0!==this.current&&void 0!==this.currentStart&&e>=this.currentStart)return this.current;for(var t=0,r=this.previousContexts;t<r.length;t++){var n=r[t];if(e>n.endTime)break;
13if(e>=n.startTime)return n.context}},e.prototype.setCurrent=function(e,t){this.current=e,this.currentStart=t},e.prototype.getCurrent=function(){return this.current},e.prototype.clearCurrent=function(){this.current=void 0,this.currentStart=void 0},e.prototype.closeCurrent=function(e){void 0!==this.current&&void 0!==this.currentStart&&(this.previousContexts.unshift({endTime:e,context:this.current,startTime:this.currentStart}),this.clearCurrent())},e.prototype.clearOldContexts=function(){for(var e=eg()-this.expireDelay;this.previousContexts.length>0&&this.previousContexts[this.previousContexts.length-1].startTime<e;)this.previousContexts.pop()},e.prototype.reset=function(){this.clearCurrent(),this.previousContexts=[]},e.prototype.stop=function(){clearInterval(this.clearOldContextsInterval)},e}(),eV="_dd_s",ez=9e5,eq=144e5,eH=/^([a-z]+)=([a-z0-9-]+)$/;function eG(e){var t=function(){var e=ed(eV),t={};return void 0!==e&&(-1!==e.indexOf("&")||eH.test(e))&&e.split("&").forEach(function(e){var r=eH.exec(e);if(null!==r){var n=r[1],i=r[2];t[n]=i}}),t}();return eK(t)?t:(ef(eV,"",0,e),{})}function eK(e){return(void 0===e.created||Date.now()-Number(e.created)<eq)&&(void 0===e.expire||Date.now()<Number(e.expire))}function eY(e,t){if(0===Object.keys(e).length)return void ef(eV,"",0,t);e.expire=String(Date.now()+ez),ef(eV,Object.keys(e).map(function(t){return[t,e[t]]}).map(function(e){return e[0]+"="+e[1]}).join("&"),ez,t)}var eJ=[];function eW(e){var t;return 0!==(t=e.sampleRate)&&100*Math.random()<=t?v.TRACKED:v.NOT_TRACKED}function eX(e){var t=window.DD_RUM;return t&&t.getInternalContext?t.getInternalContext(e):void 0}(I=v||(v={})).NOT_TRACKED="0",I.TRACKED="1";var eQ=function(e){var t,r,n=!1,i=el(),o={},a=new eh,c=function(e,t){a.add(function(){return c(e,t)})},h=function(){},f=new ex(d);return t={logger:f,init:et(function(t){var r;if(K()&&(t=eu(eu({},t),{clientToken:"empty"})),r=t,!n||(r.silentMultipleInit||k.error("DD_LOGS is already initialized."),0)){var i=function(e){var t=function(e,t){var r,n,i,o,a,c,h,f,d;if(!e||!e.clientToken)return void k.error("Client Token is not configured, we will not send any data.");if(void 0!==e.sampleRate&&!("number"==typeof(n=e.sampleRate)&&n>=0&&n<=100))return void k.error("Sample Rate should be a number between 0 and 100");return Array.isArray(i=e.enableExperimentalFeatures)&&(s||(s=new Set(i)),i.filter(function(e){return"string"==typeof e}
13).forEach(function(e){s.add(e)})),O(O({},(a=U(o=function(e,t){if(t.buildMode===u.E2E_TEST){var r=function(e){return{build:function(){return e},buildIntakeUrl:function(){return e}}};return{logsEndpointBuilder:r("<<< E2E LOGS ENDPOINT >>>"),rumEndpointBuilder:r("<<< E2E RUM ENDPOINT >>>"),sessionReplayEndpointBuilder:r("<<< E2E SESSION REPLAY ENDPOINT >>>"),internalMonitoringEndpointBuilder:r("<<< E2E INTERNAL MONITORING ENDPOINT >>>")}}var n={logsEndpointBuilder:eC(e,t,"logs"),rumEndpointBuilder:eC(e,t,"rum"),sessionReplayEndpointBuilder:eC(e,t,"sessionReplay")};return e.internalMonitoringApiKey?O(O({},n),{internalMonitoringEndpointBuilder:eC(O(O({},e),{clientToken:e.internalMonitoringApiKey}),t,"logs","browser-agent-internal-monitoring")}):n}(e,t)).map(function(e){return e.buildIntakeUrl()}),c=function(e,t,r){if(t.buildMode===u.STAGING&&void 0!==e.replica){var n=O(O({},e),{site:ew,applicationId:e.replica.applicationId,clientToken:e.replica.clientToken,useAlternateIntakeDomains:!0,intakeApiVersion:2}),i={logsEndpointBuilder:eC(n,t,"logs"),rumEndpointBuilder:eC(n,t,"rum"),internalMonitoringEndpointBuilder:eC(n,t,"logs","browser-agent-internal-monitoring")};return r.push.apply(r,U(i).map(function(e){return e.buildIntakeUrl()})),O({applicationId:e.replica.applicationId},i)}}(e,t,a),O(O({isIntakeUrl:function(e){return a.some(function(t){return 0===e.indexOf(t)})}},o),{replica:c}))),{beforeSend:e.beforeSend&&ec(e.beforeSend,"beforeSend threw an error:"),cookieOptions:((f={}).secure=!!(d=h=e).useSecureSessionCookie||!!d.useCrossSiteSessionCookie,f.crossSite=!!h.useCrossSiteSessionCookie,h.trackSessionAcrossSubdomains&&(f.domain=function(){if(void 0===l){for(var e="dd_site_test_"+L(),t=window.location.hostname.split("."),r=t.pop();t.length&&!ed(e);)ef(e,"test",1e3,{domain:r=t.pop()+"."+r});ef(e,"",0,{domain:r}),l=r}return l}()),f),sampleRate:null!=(r=e.sampleRate)?r:100,service:e.service,silentMultipleInit:!!e.silentMultipleInit,batchBytesLimit:16384,maxErrorsPerMinute:3e3,maxInternalMonitoringMessagesPerPage:15,requestErrorResponseLengthLimit:32768,flushTimeout:3e4,maxBatchSize:50,maxMessageSize:262144})}(e,eA);if(t)return eu(eu({},t),{forwardErrorsToLogs:!!e.forwardErrorsToLogs})}(t);i&&(c=e(i,f),h=function(){return V(void 0,t)},a.drain(),n=!0)}}),getLoggerGlobalContext:et(i.get),setLoggerGlobalContext:et(i.set),addLoggerGlobalContext:et(i.add),removeLoggerGlobalContext:et(i.remove),createLogger:et(function(e,t){return void 0===t&&(t={}),o[e]=new ex(d,t.handler,t.level,eu(eu({},t.context),{logger:{name:e}})),o[e]}),getLogger:et(function(e){return o[e]}),getInitConfiguration:et(function(){return h()})}
13,Object.defineProperty(r=O(O({},t),{onReady:function(e){e()}}),"_setDebug",{get:function(){return es},enumerable:!1}),r;function d(e){c(e,z({date:Date.now(),view:{referrer:document.referrer,url:window.location.href}},i.get()))}}(function(e,t){var r,n,s,a,u,l=function(e){var t;if(K()){var r=G();c=function(e){return r.send("internal_log",i(e))}}else if(e.internalMonitoringEndpointBuilder){var n=function(e){var t,r=n(e.internalMonitoringEndpointBuilder);function n(t){return new J(new X(t,e.batchBytesLimit),e.maxBatchSize,e.batchBytesLimit,e.maxMessageSize,e.flushTimeout)}return void 0!==e.replica&&(t=n(e.replica.internalMonitoringEndpointBuilder)),{add:function(e){r.add(e),t&&t.add(e)}}}(e);c=function(e){return n.add(i(e))}}function i(e){return z({date:new Date().getTime()},void 0!==t?t():{},e)}return!function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];t.forEach(function(t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})}(Z,{maxMessagesPerPage:e.maxInternalMonitoringMessagesPerPage,sentMessageCount:0}),{setExternalContextProvider:function(e){t=e}}}(e),h=new eR;if(e.forwardErrorsToLogs){(g||(g=new eR,p=console.error,console.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=function(){var e,t=Error();if(!t.stack)try{throw t}catch(e){}return er(function(){var r=x(t);r.stack=r.stack.slice(2),e=q(r)}),e}();er(function(){p.apply(console,e);var t,n,i,s=O(O({},(t=e,n=r,i=function(e,t){for(var r=0;r<e.length;r+=1){var n=e[r];if(t(n,r,e))return n}}(t,function(e){return e instanceof Error}),{message:N(["console error:"],t).map(function(e){var t;return"string"==typeof(t=e)?t:t instanceof Error?H(x(t)):M(t,void 0,2)}).join(" "),stack:i?q(x(i)):void 0,handlingStack:n})),{source:"console",startClocks:em(),handling:o.HANDLED});g.notify(s)})}),g).subscribe(function(e){return h.notify(e)}),(r=s=function(e,t){var r=e&&(void 0!==e.message||t instanceof Error)?{message:e.message||"Empty message",stack:q(e),handlingStack:void 0,type:e.name}:{message:"Uncaught "+M(t),stack:"No stack, consider using an instance of Error",handlingStack:void 0,type:e&&e.name},n=r.stack,i=r.message,s=r.type;h.notify({message:i,stack:n,type:s,source:"source",startClocks:em(),originalError:t,handling:o.UNHANDLED})},eL(window,"onerror",{before:function(e,t,n,i,o){if(o)r(x(o),o);else{var s,a=e;if("[object String]"===({}).toString.call(e)){var c=eP.exec(a);c&&(s=c[1],a=c[2])}r({name:s,message:"string"==typeof a?a:void 0,stack:[{url:t,column:i,line:n}]},e)}}})).stop,(n=s,eL(window,"onunhandledrejection",{before:function(e){var t=e.reason||"Empty reason";n(x(t),t)}})).stop,function(e,t){var r,n;function o(r,n){var o,s,a,c;!e.isIntakeUrl(n.url)&&(0===(o=n).status&&"opaque"!==o.responseType||n.status>=500)&&t.notify({message:(s=r,(i.XHR===s?"XHR":"Fetch")+" error "+n.method+" "+n.url),resource:{method:n.method,statusCode:n.status,url:n.url},source:"network",stack:(a=n.responseText,c=e,(a&&a.length>c.requestErrorResponseLengthLimit?a.substring(0,c.requestErrorResponseLengthLimit)+"...":a)||"Failed to load"),startClocks:n.startClocks})}(!m&&(m=r=new eR(function(){var e=eL(XMLHttpRequest.prototype,"open",{before:eM}).stop,t=eL(XMLHttpRequest.prototype,"send",{before:function(){eB.call(this,r)}}).stop,n=eL(XMLHttpRequest.prototype,"abort",{before:eF}).stop;return function(){e(),t(),n()}})),m).subscribe(function(e){"complete"===e.state&&o(i.XHR,e)}),(!y&&(y=n=new eR(function(){if(window.fetch)return eD(window,"fetch",function(e){return function(t,r){var i,o=er(eU,null,[n,t,r]);return o?er(ej,null,[n,i=e.call(this,o.input,o.init),o]):i=e.call(this,t,r),i}}).stop})),y).subscribe(function(e){"complete"===e.state&&o(i.FETCH,e)})}(e,h)}var f=function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_"+L(),r="test";ef(t,r,1e3,e);var n=ed(t)===r;return ef(t,"",0,e),n}catch(e){return k.error(e),!1}}(e.cookieOptions)&&!K()?(a=function(e,t,r){!function(e){var t=ed(eV),r=ed("_dd"),n=ed("_dd_r"),i=ed("_dd_l");if(!t){var o={};r&&(o.id=r),i&&/^[01]$/.test(i)&&(o.logs=i),n&&/^[012]$/.test(n)&&(o.rum=n),eY(o,e)}}(e);var n,i,o,s,a,c=function(e,t,r){var n,i,o,s,a,c,u,l=new eR,h=new eR,f=setInterval(et(p),1e3),d=eG(e);function p(){var r,n=eG(e);return g()&&((r=n,d.id!==r.id?(r.id&&eK(d)&&m(r,"different id"),0):d[t]===r[t]||(m(r,"different tracking type"),0))?d=n:(d={},h.notify())),n}function g(){return void 0!==d[t]}function m(e,r){en("Session inconsistencies detected",{debug:{productKey:t,sessionCache:d,cookieSession:e,cause:r}})}return{expandOrRenewSession:(n=et(function(){var n,i,o,s,a=p();o=(i=r((n=a)[t])).trackingType,s=i.isTracked,n[t]=o,s&&!n.id&&(n.id=L(),n.created=String(Date.now())),eY(n,e),s&&!g()&&
13(d=a,l.notify()),d=a}),a=!i||void 0===i.leading||i.leading,c=!i||void 0===i.trailing||i.trailing,u=!1,{throttled:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(u){o=e;return}a?n.apply(void 0,e):o=e,u=!0,s=setTimeout(function(){c&&o&&n.apply(void 0,o),u=!1,o=void 0},1e3)},cancel:function(){clearTimeout(s),u=!1,o=void 0}}).throttled,expandSession:function(){var t=p();g()&&eY(t,e)},getSession:function(){return d},renewObservable:l,expireObservable:h,stop:function(){clearInterval(f)}}}(e,t,r);eJ.push(function(){return c.stop()});var u=new e$(eq);function l(){return{id:c.getSession().id,trackingType:c.getSession()[t]}}return eJ.push(function(){return u.stop()}),c.renewObservable.subscribe(function(){u.setCurrent(l(),eg())}),c.expireObservable.subscribe(function(){u.closeCurrent(eg())}),c.expandOrRenewSession(),u.setCurrent(l(),{relative:0,timeStamp:ey()}.relative),n=j(window,["click","touchstart","keydown","scroll"],function(){return c.expandOrRenewSession()},{capture:!0,passive:!0}).stop,eJ.push(n),i=function(){return c.expandSession()},o=et(function(){"visible"===document.visibilityState&&i()}),s=j(document,["visibilitychange"],o,void 0).stop,eJ.push(s),a=setInterval(o,6e4),eJ.push(function(){clearInterval(a)}),{findActiveSession:function(e){return u.find(e)},renewObservable:c.renewObservable,expireObservable:c.expireObservable}}(e.cookieOptions,"logs",function(t){var r,n,i,o;return r=e,{trackingType:o=(i=n=t)===v.NOT_TRACKED||i===v.TRACKED?n:eW(r),isTracked:o===v.TRACKED}}),{findTrackedSession:function(e){var t=a.findActiveSession(e);return t&&t.trackingType===v.TRACKED?{id:t.id}:void 0}}):(u=eW(e)===v.TRACKED?{}:void 0,{findTrackedSession:function(){return u}});return function(e,t,r,n,i){r.setExternalContextProvider(function(){var e;return z({session_id:null==(e=n.findTrackedSession())?void 0:e.id},eX(),{view:{name:null,url:null,referrer:null}})});var o,s=function(e,t,r){var n,i,o,s,a=(n=eO.error,i=t.maxErrorsPerMinute,o=0,s=!1,{isLimitReached:function(){if(0===o&&setTimeout(function(){o=0},6e4),(o+=1)<=i||s)return s=!1,!1;if(o===i+1){s=!0;try{r({message:"Reached max number of "+n+"s by minute: "+i,source:"agent",startClocks:em()})}finally{s=!1}}return!0}});return function(r,n){var i=r.date?r.date-ey():void 0,o=e.findTrackedSession(i);if(o){var s=z({service:t.service,session_id:o.id},n,eX(i),r);if((!t.beforeSend||!1!==t.beforeSend(s))&&!(s.status===eO.error&&a.isLimitReached()))return s}}}(n,e,u);if(K()){var a=G();o=function(e){return a.send("log",e)}}else{var c=function(e){var t,r=n(e.logsEndpointBuilder);function n(t){return new J(new X(t,e.batchBytesLimit),e.maxBatchSize,e.batchBytesLimit,e.maxMessageSize,e.flushTimeout)}return void 0!==e.replica&&(t=n(e.replica.logsEndpointBuilder)),{add:function(e){r.add(e),t&&t.add(e)}}}(e);o=function(e){return c.add(e)}}function u(e){i.error(e.message,z({date:e.startClocks.timeStamp,error:{kind:e.type,origin:e.source,stack:e.stack}},e.resource?{http:{method:e.resource.method,status_code:e.resource.statusCode,url:e.resource.url}}:void 0))}return t.subscribe(u),function(e,t){var r=s(e,t);r&&o(r)}}(e,h,l,f,t)});S=function(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}(),A=S[C="DD_LOGS"],S[C]=eQ,A&&A.q&&A.q.forEach(function(e){return ec(e,"onReady callback threw an error:")()})},66582:(e,t,r)=>{"use strict";let n;r.d(t,{$Y:()=>ei,$f:()=>N,$g:()=>p,AQ:()=>o,Bo:()=>m,Bx:()=>ef,C9:()=>ed,DX:()=>w,Dv:()=>Z,Ep:()=>a,F2:()=>ea,GK:()=>X,GZ:()=>b,Gx:()=>M,H1:()=>eh,Ig:()=>E,Ik:()=>c,J7:()=>ep,JN:()=>es,Je:()=>P,Mp:()=>d,OV:()=>ee,Ru:()=>_,S3:()=>V,S4:()=>R,S7:()=>H,SV:()=>el,Tm:()=>em,U2:()=>x,WU:()=>F,X3:()=>S,YH:()=>J,_S:()=>f,_U:()=>z,_c:()=>q,aQ:()=>ec,ao:()=>eu,bd:()=>W,cT:()=>j,dc:()=>s,eX:()=>en,fM:()=>eo,i$:()=>A,iG:()=>U,iO:()=>C,ie:()=>u,j5:()=>B,jw:()=>D,kf:()=>I,lp:()=>k,mW:()=>er,mo:()=>h,nS:()=>g,oP:()=>y,px:()=>l,q0:()=>G,qY:()=>T,qv:()=>et,rC:()=>K,re:()=>Q,ru:()=>n,sO:()=>eg,sW:()=>O,t3:()=>v,vV:()=>Y,wE:()=>ey,yr:()=>L});var i=r(89946);let o="/api/userAuth/v1/idp/apple_redirect",s="/api/userAuth/v1/idp/arrange-credentials",a="/api/cart",c="/tacobellwebservices/v3/tacobell/users/current/my-account/payment-details/giftcard/balance",u="/supportcase/v2/support/case",l="/api/articles/get",h="/ecom/v1/promotions/get-current-date-time",f="/notificationPreferences",d="/favorites/v1/products/{favProductId}",p="/tacobellwebservices/v2/tacobell/users/anonymous/order/{guid}",g="/tacobellwebservices/v2/tacobell/users/current/order/{orderCode}",m="/api/dev-proxy{url}",y="https://www.google.com/maps/dir/{fromCoordinates}/{toCoordinates}/",v="/favorites/v1/products",b="/app/v1/user/favorites/products",E="/app/v1/user/profile",_="/favorites/v1/products/shared?customizedProduct={customizedProduct}",w="/tacobellwebservices/v2/tacobell/users/current/my-account/payment-details?allGiftCards={allGiftCards}",T="/tacobellwebservices/v2/tacobell/users",I="/tacobellwebservices/v4/tacobell/users/current/verify-otp",S="/tacobellwebservices/v4/tacobell/users/anonymous/my-account/payment-details/giftcard/{giftCardNumber}/balance?pin={giftCardPin}",C="/tacobellwebservices/v2/tacobell/users/anonymous/orders/{guid}",A="/tacobellwebservices/v2/tacobell/users/current/orders",O="/app/v1/user/orders",N="/app/v1/user/orders/{orderId}",k="/app/v1/menu/{storeId}",x="/tacobellwebservices/v2/tacobell/users/current/orders/{orderCode}",R="/tacobellwebservices/v2/tacobell/users/{guestUserId}/carts/{cartId}/paymentdetails/giftcard",D="/tacobellwebservices/v2/tacobell/users/current/carts/{cartCode}/paymentdetails/giftcard",L="/tacobellwebservices/v2/tacobell/users/current/my-account/payment-details/giftcard",P="/tacobellwebservices/v4/tacobell/gift-card/submit-request",M="https://www.google.com/maps/search/{latitude},{longitude}/",B="/location/v1/{query}",F="/api/delete-auth-cookies",U="/acceptTerms",j="/loyalty/v2/dashboard",V="https://graphql.contentful.com/content/v1/spaces
13/{space}/environments/{environment}",z="/tacobellwebservices/v2/tacobell/products/menu/{storeId}",q="/tacobellwebservices/v2/tacobell/products/{productId}/{storeId}",H="/tacobellwebservices/v2/tacobell/stores/{storeId}",G="/tacobellwebservices/v2/tacobell/users/{guestUserId}/carts/{cartCode}/versioned/paymentdetails/?paymentDetailsId={cardId}",K="/tacobellwebservices/v2/tacobell/users/current/carts/{cartCode}/versioned/paymentdetails/?paymentDetailsId={cardId}",Y="/tacobellwebservices/v2/tacobell/users/{guestUserId}/carts/{cartCode}/paymentdetails/creditcard/nonce",J="/tacobellwebservices/v2/tacobell/users/current/carts/{cartCode}/paymentdetails/creditcard/nonce",W="/tacobellwebservices/v2/tacobell/users/current/my-account/payment-details/creditcard/nonce",X="/tacobellwebservices/v2/tacobell/users/anonymous/carts/{cartId}/pickuptime/{pickupTimeStamp}",Q="/tacobellwebservices/v2/tacobell/users/current/carts/{cartCode}/pickuptime/{pickupTimeStamp}",Z="/tacobellwebservices/v4/tacobell/users/{currentOrGuestUserId}/carts/{cartId}/processApplePay",ee="/tacobellwebservices/v4/tacobell/users/{currentOrGuestUserId}/carts/{cartId}/processGooglePay",et="/tacobellwebservices/v4/tacobell/users/{currentOrGuestUserId}/carts/{cartId}/processPaypal",er="/tacobellwebservices/v4/tacobell/users/{currentOrGuestUserId}/carts/{cartId}/processVenmo",en="/loyalty/v1/promotion/{code}",ei="/tacobellwebservices/v2/tacobell/users/current/my-account/payment-details/creditcard/{creditCardId}",eo="/tacobellwebservices/v2/tacobell/users/current/my-account/payment-details/giftcard/{giftCardId}",es="/tacobellwebservices/v2/tacobell/users/{guestUserId}/carts/{cartId}/roundUp/{enabled}",ea="/app/v1/cart/roundUp",ec="/tacobellwebservices/v2/tacobell/users/current/my-account/payment-details/set-default/{paymentId}",eu="/tacobellwebservices/v2/tacobell/storesPickUpTime/{storeId}",el="/tacobellwebservices/v2/tacobell/stores?latitude={lat}&longitude={long}&_={timestamp}",eh="https://locations.tacobell.com/{storeId}",ef="/tacobellwebservices/v2/tacobell/users/{guestUserId}/order/?cartId={cartGuid}",ed="/tacobellwebservices/v2/tacobell/users/current/order/?cartId={cartCode}",ep="/w/{email}/m/e",eg="/api/userAuth/v1/oidc",em="/api/userAuth/v1/oidc/oauth2/token",ey="/api/userAuth/v1/idp/oidc/session/end?id_token_hint={idToken}&post_logout_redirect_uri={redirectUri}";switch(i.VQ){case"rel-u":n="/uat/ecom/v1/payments/session-config";break;case"rel-t":n="/ecom/stg/payments/session-config";break;default:n="/ecom/v1/payments/session-config"}},69336:(e,t,r)=>{"use strict";r.d(t,{Qx:()=>u,pK:()=>l});var n=r(49214),i=r(76564),o=r(23574),s=r(3647);let a="Unable to load customer profile. Please try again later.",c=new Set(["UNAUTHENTICATED","UNAUTHORIZED","FORBIDDEN"]),u=async()=>{try{let e=await (0,s.Ay)({query:(0,n.y)(i.x4)});if(e.errors&&e.errors.length>0){let t,r;return t=e.errors[0],r=t?.extensions?.code||"",{errorCode:c.has(r)?"UNAUTHORIZED":"UNKNOWN",message:t.message||a}}let t=e.data?.customer;if(!t||t.__typename!==o.t.Customer||!t.customerId)return{errorCode:"CUSTOMER_NOT_FOUND",message:a};return t}catch(e){return console.error("Failed to fetch customer profile from Fresco Storefront API:",e),{errorCode:"NETWORK",message:a}}},l=e=>{if(!e)return"";let{day:t,month:r,year:n}=e;if(!t||!r)return"";let i=e=>e.toString().padStart(2,"0");return`${n||1900}-${i(r)}-${i(t)}`}},70324:(e,t,r)=>{"use strict";r.d(t,{C6:()=>i,Cl:()=>o,Ju:()=>u,Tt:()=>s,YH:()=>c,fX:()=>h,sH:()=>a,zs:()=>l});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function a(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}c((n=n.apply(e,t||[])).next())})}function c(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){var u=[a,c];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
13if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function h(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},71174:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationError=t.AuthorizationResponse=void 0,t.AuthorizationResponse=function(){function e(e){this.code=e.code,this.state=e.state}return e.prototype.toJson=function(){return{code:this.code,state:this.state}},e}(),t.AuthorizationError=function(){function e(e){this.error=e.error,this.errorDescription=e.error_description,this.errorUri=e.error_uri,this.state=e.state}return e.prototype.toJson=function(){return{error:this.error,error_description:this.errorDescription,error_uri:this.errorUri,state:this.state}},e}()},71441:(e,t,r)=>{"use strict";r.d(t,{K:()=>o,S:()=>s});var n=r(40242),i=r(66582);let o=(e="",t={})=>{let r=window?.location.hostname||"",o=/localhost/.test(r),s=/\.vercel\.app$/.test(r),a=o||s,c=(0,n.G)(e.slice(1),t),u=`/${a?encodeURIComponent(c):c}`;return a?(0,n.G)(i.Bo,{url:u}):u},s=(e="",t="",r={})=>{let s=!!e&&/localhost/.test(e),a=!!e&&/\.vercel\.app$/.test(e),c=(0,n.G)("/"===t[0]?t.slice(1):t,r),u=(0,n.G)(i.Bo,{url:`/${s||a?encodeURIComponent(c):c}`});return e?(s?"http://":"https://")+e+u:o(t,r)}},73587:(e,t,r)=>{"use strict";let n,i,o;r.d(t,{Z:()=>tq,A:()=>tH});var s,a,c=r(26514),u=r(65283),l=r(75834);let h={BRAZE_ENABLED:"braze_enabled",FAVORITES_ENABLED:"favorites_enabled",FAVORITES_ITEMS_BYTE_ENABLED:"favorites_items_byte_enabled",HAPPIER_HOUR_V2_ENABLED:"happier_hour_v2_enabled",HH_GUEST_GATING_ENABLED:"hh_guest_gating_enabled",IN_APP_RESOLUTION:"in_app_resolution",LOYALTY_LIFETIME_POINTS_ENABLED:"loyalty_lifetime_points_enabled",TRANSCEND_CONSENT_ENABLED:"transcend_consent_enabled"},f={brazeEnabled:!1,favoritesEnabled:!1,favoritesItemsByteEnabled:!1,happierHourV2Enabled:!1,hhGuestGatingEnabled:!1,inAppResolution:!1,loyaltyLifetimePointsEnabled:!1,transcendConsentEnabled:!1},d={[h.BRAZE_ENABLED]:"brazeEnabled",[h.FAVORITES_ENABLED]:"favoritesEnabled",[h.FAVORITES_ITEMS_BYTE_ENABLED]:"favoritesItemsByteEnabled",[h.HAPPIER_HOUR_V2_ENABLED]:"happierHourV2Enabled",[h.HH_GUEST_GATING_ENABLED]:"hhGuestGatingEnabled",[h.IN_APP_RESOLUTION]:"inAppResolution",[h.LOYALTY_LIFETIME_POINTS_ENABLED]:"loyaltyLifetimePointsEnabled",[h.TRANSCEND_CONSENT_ENABLED]:"transcendConsentEnabled"},p={[h.BRAZE_ENABLED]:!1,[h.FAVORITES_ENABLED]:!1,[h.FAVORITES_ITEMS_BYTE_ENABLED]:!1,[h.HAPPIER_HOUR_V2_ENABLED]:!1,[h.HH_GUEST_GATING_ENABLED]:!1,[h.IN_APP_RESOLUTION]:!1,[h.LOYALTY_LIFETIME_POINTS_ENABLED]:!1,[h.TRANSCEND_CONSENT_ENABLED]:!1};var g=r(88304);let m=function(e,t){if(!e)throw y(t)},y=function(e){return Error("Firebase Database (${JSCORE_VERSION}) INTERNAL ASSERT FAILED: "+e)},v=function(e){let t=[],r=0;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);i<128?t[r++]=i:(i<2048?t[r++]=i>>6|192:((64512&i)==55296&&n+1<e.length&&(64512&e.charCodeAt(n+1))==56320?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++n)),t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t},b=function(e){let t=[],r=0,n=0;for(;r<e.length;){let i=e[r++];if(i<128)t[n++]=String.fromCharCode(i);else if(i>191&&i<224){let o=e[r++];t[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){let o=((7&i)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(o>>10)),t[n++]=String.fromCharCode(56320+(1023&o))}else{let o=e[r++],s=e[r++];t[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")},E={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let t=0;t<e.length;t+=3){let i=e[t],o=t+1<e.length,s=o?e[t+1]:0,a=t+2<e.length,c=a?e[t+2]:0,u=i>>2,l=(3&i)<<4|s>>4,h=(15&s)<<2|c>>6,f=63&c;!a&&(f=64,o||(h=64)),n.push(r[u],r[l],r[h],r[f])}return n.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(v(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):b(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let t=0;t<e.length;){let i=r[e.charAt(t++)],o=t<e.length?r[e.charAt(t)]:0,s=++t<e.length?r[e.charAt(t)]:64,a=++t<e.length?r[e.charAt(t)]:64;if(++t,null==i||null==o||null==s||null==a)throw new _;let c=i<<2|o>>4;if(n.push(c),64!==s){let e=o<<4&240|s>>2;if(n.push(e),64!==a){let e=s<<6&192|a;n.push(e)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
13class _ extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let w=function(e){let t=v(e);return E.encodeByteArray(t,!0)},T=function(e){return w(e).replace(/\./g,"")},I=function(e){try{return E.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},S=()=>(()=>{try{return function(){if("u">typeof self)return self;if("u">typeof window)return window;if(void 0!==r.g)return r.g;throw Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(void 0===g||void 0===g.env)return;let e=g.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)})()||(()=>{let e;if("u"<typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&I(e[1]);return t&&JSON.parse(t)})()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}})()?.config;class C{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,r)=>{t?this.reject(t):this.resolve(r),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,r))}}}function A(){try{return"object"==typeof indexedDB}catch(e){return!1}}class O extends Error{constructor(e,t,r){super(t),this.code=e,this.customData=r,this.name="FirebaseError",Object.setPrototypeOf(this,O.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,N.prototype.create)}}class N{constructor(e,t,r){this.service=e,this.serviceName=t,this.errors=r}create(e,...t){var r,n;let i=t[0]||{},o=`${this.service}/${e}`,s=this.errors[e],a=s?(r=s,n=i,r.replace(k,(e,t)=>{let r=n[t];return null!=r?String(r):`<${t}?>`})):"Error",c=`${this.serviceName}: ${a} (${o}).`;return new O(o,c,i)}}let k=/\{\$([^}]+)}/g;function x(e,t){if(e===t)return!0;let r=Object.keys(e),n=Object.keys(t);for(let i of r){if(!n.includes(i))return!1;let r=e[i],o=t[i];if(R(r)&&R(o)){if(!x(r,o))return!1}else if(r!==o)return!1}for(let e of n)if(!r.includes(e))return!1;return!0}function R(e){return null!==e&&"object"==typeof e}function D(e,t=1e3,r=2){let n=t*Math.pow(r,e),i=Math.round(.5*n*(Math.random()-.5)*2);return Math.min(144e5,n+i)}function L(e){return e&&e._delegate?e._delegate:e}class P{constructor(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let M="[DEFAULT]";class B{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new C;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let r=this.getOrInitializeService({instanceIdentifier:t});r&&e.resolve(r)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),r=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(r)return null;throw e}if(r)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:M})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let r=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:r});t.resolve(e)}catch(e){}}}}clearInstance(e=M){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=M){return this.instances.has(e)}getOptions(e=M){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let n=this.getOrInitializeService({instanceIdentifier:r,options:t});for(let[e,t]of this.instancesDeferred.entries())r===this.normalizeInstanceIdentifier(e)&&t.resolve(n);return n}onInit(e,t){let r=this.normalizeInstanceIdentifier(t),n=this.onInitCallbacks.get(r)??new Set;n.add(e),this.onInitCallbacks.set(r,n);let i=this.instances.get(r);return i&&e(i,r),()=>{n.delete(e)}}invokeOnInitCallbacks(e,t){let r=this.onInitCallbacks.get(t);if(r)for(let n of r)try{n(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){var r;let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e)===M?void 0:r,options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=M){return this.component?this.component.multipleInstances?e:M:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class F{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new B(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}let U=[];(s=a||(a={}))[s.DEBUG=0]="DEBUG",s[s.VERBOSE=1]="VERBOSE",s[s.INFO=2]="INFO",s[s.WARN=3]="WARN",s[s.ERROR=4]="ERROR",s[s.SILENT=5]="SILENT";let j={debug:a.DEBUG,verbose:a.VERBOSE,info:a.INFO,warn:a.WARN,error:a.ERROR,silent:a.SILENT},V=a.INFO,z={[a.DEBUG]:"log",[a.VERBOSE]:"log",[a.INFO]:"info",[a.WARN]:"warn",[a.ERROR]:"error"},q=(e,t,...r)=>{if(t<e.logLevel)return;let n=new Date().toISOString(),i=z[t];if(i)console[i](`[${n}] ${e.name}:`,...r);
13else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class H{constructor(e){this.name=e,this._logLevel=V,this._logHandler=q,this._userLogHandler=null,U.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in a))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?j[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,a.DEBUG,...e),this._logHandler(this,a.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,a.VERBOSE,...e),this._logHandler(this,a.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,a.INFO,...e),this._logHandler(this,a.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,a.WARN,...e),this._logHandler(this,a.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,a.ERROR,...e),this._logHandler(this,a.ERROR,...e)}}let G=new WeakMap,K=new WeakMap,Y=new WeakMap,J=new WeakMap,W=new WeakMap,X={get(e,t,r){if(e instanceof IDBTransaction){if("done"===t)return K.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Y.get(e);if("store"===t)return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Q(e[t])},set:(e,t,r)=>(e[t]=r,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Q(e){if(e instanceof IDBRequest){let t;return(t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{t(Q(e.result)),n()},o=()=>{r(e.error),n()};e.addEventListener("success",i),e.addEventListener("error",o)})).then(t=>{t instanceof IDBCursor&&G.set(t,e)}).catch(()=>{}),W.set(t,e),t}if(J.has(e))return J.get(e);let t=function(e){if("function"==typeof e)return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(i||(i=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Z(this),t),Q(G.get(this))}:function(...t){return Q(e.apply(Z(this),t))}:function(t,...r){let n=e.call(Z(this),t,...r);return Y.set(n,t.sort?t.sort():[t]),Q(n)};return e instanceof IDBTransaction&&function(e){if(K.has(e))return;let t=new Promise((t,r)=>{let n=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{t(),n()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});K.set(e,t)}(e),(n||(n=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(t=>e instanceof t)?new Proxy(e,X):e}(e);return t!==e&&(J.set(e,t),W.set(t,e)),t}let Z=e=>W.get(e);function ee(e,t,{blocked:r,upgrade:n,blocking:i,terminated:o}={}){let s=indexedDB.open(e,t),a=Q(s);return n&&s.addEventListener("upgradeneeded",e=>{n(Q(s.result),e.oldVersion,e.newVersion,Q(s.transaction),e)}),r&&s.addEventListener("blocked",e=>r(e.oldVersion,e.newVersion,e)),a.then(e=>{o&&e.addEventListener("close",()=>o()),i&&e.addEventListener("versionchange",e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),a}let et=["get","getKey","getAll","getAllKeys","count"],er=["put","add","delete","clear"],en=new Map;function ei(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(en.get(t))return en.get(t);let r=t.replace(/FromIndex$/,""),n=t!==r,i=er.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||et.includes(r)))return;let o=async function(e,...t){let o=this.transaction(e,i?"readwrite":"readonly"),s=o.store;return n&&(s=s.index(t.shift())),(await Promise.all([s[r](...t),i&&o.done]))[0]};return en.set(t,o),o}X={...o=X,get:(e,t,r)=>ei(e,t)||o.get(e,t,r),has:(e,t)=>!!ei(e,t)||o.has(e,t)};class eo{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{let t;if(t=e.getComponent(),t?.type!=="VERSION")return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let es="@firebase/app",ea="0.14.11",ec=new H("@firebase/app"),eu="[DEFAULT]",el={[es]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/ai":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},eh=new Map,ef=new Map,ed=new Map;function ep(e,t){try{e.container.addComponent(t)}catch(r){ec.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,r)}}function eg(e){let t=e.name;if(ed.has(t))return ec.debug(`There were multiple attempts to register component ${t}.`),!1;
13for(let r of(ed.set(t,e),eh.values()))ep(r,e);for(let t of ef.values())ep(t,e);return!0}function em(e,t){let r=e.container.getProvider("heartbeat").getImmediate({optional:!0});return r&&r.triggerHeartbeat(),e.container.getProvider(t)}let ey=new N("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class ev{constructor(e,t,r){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new P("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ey.create("app-deleted",{appName:this._name})}}let eb="12.12.0";function eE(e,t={}){let r=e;"object"!=typeof t&&(t={name:t});let n={name:eu,automaticDataCollectionEnabled:!0,...t},i=n.name;if("string"!=typeof i||!i)throw ey.create("bad-app-name",{appName:String(i)});if(r||(r=S()),!r)throw ey.create("no-options");let o=eh.get(i);if(o)if(x(r,o.options)&&x(n,o.config))return o;else throw ey.create("duplicate-app",{appName:i});let s=new F(i);for(let e of ed.values())s.addComponent(e);let a=new ev(r,n,s);return eh.set(i,a),a}function e_(e=eu){let t=eh.get(e);if(!t&&e===eu&&S())return eE();if(!t)throw ey.create("no-app",{appName:e});return t}function ew(e,t,r){let n=el[e]??e;r&&(n+=`-${r}`);let i=n.match(/\s|\//),o=t.match(/\s|\//);if(i||o){let e=[`Unable to register library "${n}" with version "${t}":`];i&&e.push(`library name "${n}" contains illegal characters (whitespace or "/")`),i&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ec.warn(e.join(" "));return}eg(new P(`${n}-version`,()=>({library:n,version:t}),"VERSION"))}let eT="firebase-heartbeat-store",eI=null;function eS(){return eI||(eI=ee("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(eT)}catch(e){console.warn(e)}}}).catch(e=>{throw ey.create("idb-open",{originalErrorMessage:e.message})})),eI}async function eC(e){try{let t=(await eS()).transaction(eT),r=await t.objectStore(eT).get(eO(e));return await t.done,r}catch(e){if(e instanceof O)ec.warn(e.message);else{let t=ey.create("idb-get",{originalErrorMessage:e?.message});ec.warn(t.message)}}}async function eA(e,t){try{let r=(await eS()).transaction(eT,"readwrite"),n=r.objectStore(eT);await n.put(t,eO(e)),await r.done}catch(e){if(e instanceof O)ec.warn(e.message);else{let t=ey.create("idb-set",{originalErrorMessage:e?.message});ec.warn(t.message)}}}function eO(e){return`${e.name}!${e.options.appId}`}class eN{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new ex(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{let e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=ek();if(this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t))return;if(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats.length>30){let e=function(e){if(0===e.length)return -1;let t=0,r=e[0].date;for(let n=1;n<e.length;n++)e[n].date<r&&(r=e[n].date,t=n);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){ec.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||0===this._heartbeatsCache.heartbeats.length)return"";let e=ek(),{heartbeatsToSend:t,unsentEntries:r}=function(e,t=1024){let r=[],n=e.slice();for(let i of e){let e=r.find(e=>e.agent===i.agent);if(e){if(e.dates.push(i.date),eR(r)>t){e.dates.pop();break}}else if(r.push({agent:i.agent,dates:[i.date]}),eR(r)>t){r.pop();break}n=n.slice(1)}return{heartbeatsToSend:r,unsentEntries:n}}(this._heartbeatsCache.heartbeats),n=T(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}catch(e){return ec.warn(e),""}}}function ek(){return new Date().toISOString().substring(0,10)}class ex{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!A()&&new Promise((e,t)=>
13{try{let r=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),r||self.indexedDB.deleteDatabase(n),e(!0)},i.onupgradeneeded=()=>{r=!1},i.onerror=()=>{t(i.error?.message||"")}}catch(e){t(e)}}).then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await eC(this.app);return e?.heartbeats?e:{heartbeats:[]}}}async overwrite(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return eA(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return eA(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function eR(e){return T(JSON.stringify({version:2,heartbeats:e})).length}eg(new P("platform-logger",e=>new eo(e),"PRIVATE")),eg(new P("heartbeat",e=>new eN(e),"PRIVATE")),ew(es,ea,""),ew(es,ea,"esm2020"),ew("fire-js","");let eD="@firebase/installations",eL="0.6.21",eP=`w:${eL}`,eM="FIS_v2",eB=new N("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function eF(e){return e instanceof O&&e.code.includes("request-failed")}function eU({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function ej(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function e$(e,t){let r=(await t.json()).error;return eB.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function eV({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function ez(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function eq({appConfig:e,heartbeatServiceProvider:t},{fid:r}){let n=eU(e),i=eV(e),o=t.getImmediate({optional:!0});if(o){let e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let s={method:"POST",headers:i,body:JSON.stringify({fid:r,authVersion:eM,appId:e.appId,sdkVersion:eP})},a=await ez(()=>fetch(n,s));if(a.ok){let e=await a.json();return{fid:e.fid||r,registrationStatus:2,refreshToken:e.refreshToken,authToken:ej(e.authToken)}}throw await e$("Create Installation",a)}function eH(e){return new Promise(t=>{setTimeout(t,e)})}let eG=/^[cdef][\w-]{21}$/;function eK(e){return`${e.appName}!${e.appId}`}let eY=new Map;function eJ(e,t){var r,n;let i,o=eK(e);eW(o,t),r=o,n=t,(i=(!eX&&"BroadcastChannel"in self&&((eX=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{eW(e.data.key,e.data.fid)}),eX))&&i.postMessage({key:r,fid:n}),0===eY.size&&eX&&(eX.close(),eX=null)}function eW(e,t){let r=eY.get(e);if(r)for(let e of r)e(t)}let eX=null,eQ="firebase-installations-store",eZ=null;function e0(){return eZ||(eZ=ee("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(eQ)}})),eZ}async function e1(e,t){let r=eK(e),n=(await e0()).transaction(eQ,"readwrite"),i=n.objectStore(eQ),o=await i.get(r);return await i.put(t,r),await n.done,o&&o.fid===t.fid||eJ(e,t.fid),t}async function e2(e){let t=eK(e),r=(await e0()).transaction(eQ,"readwrite");await r.objectStore(eQ).delete(t),await r.done}async function e4(e,t){let r=eK(e),n=(await e0()).transaction(eQ,"readwrite"),i=n.objectStore(eQ),o=await i.get(r),s=t(o);return void 0===s?await i.delete(r):await i.put(s,r),await n.done,s&&(!o||o.fid!==s.fid)&&eJ(e,s.fid),s}async function e6(e){let t,r=await e4(e.appConfig,r=>{let n=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(eB.create("app-offline"))};let r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},n=e3(e,r);return{installationEntry:r,registrationPromise:n}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:e5(e)}:{installationEntry:t}}(e,e9(r||{fid:function(){try{var e;let t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;let r=(e=t,btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22));return eG.test(r)?r:""}catch{return""}}(),registrationStatus:0}));return t=n.registrationPromise,n.installationEntry});
13return""===r.fid?{installationEntry:await t}:{installationEntry:r,registrationPromise:t}}async function e3(e,t){try{let r=await eq(e,t);return e1(e.appConfig,r)}catch(r){throw eF(r)&&409===r.customData.serverCode?await e2(e.appConfig):await e1(e.appConfig,{fid:t.fid,registrationStatus:0}),r}}async function e5(e){let t=await e8(e.appConfig);for(;1===t.registrationStatus;)await eH(100),t=await e8(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:r}=await e6(e);return r||t}return t}function e8(e){return e4(e,e=>{if(!e)throw eB.create("installation-not-found");return e9(e)})}function e9(e){var t;return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function e7({appConfig:e,heartbeatServiceProvider:t},r){let n=function(e,{fid:t}){return`${eU(e)}/${t}/authTokens:generate`}(e,r),i=function(e,{refreshToken:t}){var r;let n=eV(e);return n.append("Authorization",(r=t,`${eM} ${r}`)),n}(e,r),o=t.getImmediate({optional:!0});if(o){let e=await o.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}let s={method:"POST",headers:i,body:JSON.stringify({installation:{sdkVersion:eP,appId:e.appId}})},a=await ez(()=>fetch(n,s));if(a.ok)return ej(await a.json());throw await e$("Generate Auth Token",a)}async function te(e,t=!1){let r,n=await e4(e.appConfig,n=>{var i,o,s;let a;if(!ti(n))throw eB.create("not-registered");let c=n.authToken;if(!t&&2===(i=c).requestStatus&&(o=i,!((a=Date.now())<o.creationTime)&&!(o.creationTime+o.expiresIn<a+36e5)))return n;if(1===c.requestStatus)return r=tt(e,t),n;{let t;if(!navigator.onLine)throw eB.create("app-offline");let i=(s=n,t={requestStatus:1,requestTime:Date.now()},{...s,authToken:t});return r=tn(e,i),i}});return r?await r:n.authToken}async function tt(e,t){let r=await tr(e.appConfig);for(;1===r.authToken.requestStatus;)await eH(100),r=await tr(e.appConfig);let n=r.authToken;return 0===n.requestStatus?te(e,t):n}function tr(e){return e4(e,e=>{var t;if(!ti(e))throw eB.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?{...e,authToken:{requestStatus:0}}:e})}async function tn(e,t){try{let r=await e7(e,t),n={...t,authToken:r};return await e1(e.appConfig,n),r}catch(r){if(eF(r)&&(401===r.customData.serverCode||404===r.customData.serverCode))await e2(e.appConfig);else{let r={...t,authToken:{requestStatus:0}};await e1(e.appConfig,r)}throw r}}function ti(e){return void 0!==e&&2===e.registrationStatus}async function to(e){let{installationEntry:t,registrationPromise:r}=await e6(e);return r?r.catch(console.error):te(e).catch(console.error),t.fid}async function ts(e,t=!1){return await ta(e),(await te(e,t)).token}async function ta(e){let{registrationPromise:t}=await e6(e);t&&await t}function tc(e){return eB.create("missing-app-config-values",{valueName:e})}let tu="installations";eg(new P(tu,e=>{let t=e.getProvider("app").getImmediate(),r=function(e){if(!e||!e.options)throw tc("App Configuration");if(!e.name)throw tc("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw tc(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),n=em(t,"heartbeat");return{app:t,appConfig:r,heartbeatServiceProvider:n,_delete:()=>Promise.resolve()}},"PUBLIC")),eg(new P("installations-internal",e=>{let t=em(e.getProvider("app").getImmediate(),tu).getImmediate();return{getId:()=>to(t),getToken:e=>ts(t,e)}},"PRIVATE")),ew(eD,eL),ew(eD,eL,"esm2020");let tl="@firebase/remote-config",th="0.8.2";class tf{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach(e=>e())}}let td="remote-config",tp=new N("remoteconfig","Remote Config",{"already-initialized":"Remote Config already initialized","registration-window":"Undefined window object. This SDK only supports usage in a browser environment.","registration-project-id":"Undefined project identifier. Check Firebase app initialization.","registration-api-key":"Undefined API key. Check Firebase app initialization.","registration-app-id":"Undefined app identifier. Check Firebase app initialization.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}.","fetch-client-network":"Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-timeout":'The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',"fetch-throttle":'The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',"fetch-client-parse":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","indexed-db-unavailable":"Indexed DB is not supported by current browser","custom-signal-max-allowed-signals":"Setting more than {$maxSignals} custom signals is not supported.","stream-error":"The stream was not able to connect to the backend: {$originalErrorMessage}.","realtime-unavailable":"The Realtime service is unavailable: {$originalErrorMessage}","update-message-invalid":"The stream invalidation message was unparsable: {$originalErrorMessage}","update-not-fetched":"Unable to fetch the latest config: {$originalErrorMessage}","analytics-unavailable":"Connection to Firebase Analytics failed: {$originalErrorMessage}"}),tg=["1","true","t","yes","y","on"];class tm{constructor(e,t=""){this._source=e,this._value=t}asString(){return this._value}asBoolean(){return"static"!==this._source&&tg.indexOf(this._value.toLowerCase())>=0}asNumber(){if("static"===this._source)return 0;let e=Number(this._value);return isNaN(e)&&(e=0),e}getSource(){return this._source}}class ty{constructor(e){this.storage=e._storage,this.logger=e._logger,this.analyticsProvider=e._analyticsProvider}async updateActiveExperiments(e){let t=await this.storage.getActiveExperiments()||new Set,r=this.createExperimentInfoMap(e);return this.addActiveExperiments(r),this.removeInactiveExperiments(t,r),this.storage.setActiveExperiments(new Set(r.keys()))}createExperimentInfoMap(e){let t=new Map;for(let r of e)t.set(r.experimentId,r);return t}addActiveExperiments(e){let t={};for(let[r,n]of e.entries())t[`firebase${r}`]=n.variantId;this.addExperimentToAnalytics(t)}removeInactiveExperiments(e,t){let r={};for(let n of e)t.has(n)||(r[`firebase${n}`]=null);this.addExperimentToAnalytics(r)}addExperimentToAnalytics(e){if(0!==Object.keys(e).length)try{let t=this.analyticsProvider.getImmediate({optional:!0});t?(t.setUserProperties(e),t.logEvent("set_firebase_experiment_state")):this.logger.warn("Analytics import failed. Verify if you have imported Firebase Analytics in your app code.")}catch(e){throw tp.create("analytics-unavailable",{originalErrorMessage:e?.message})}}}async function tv(e){let t=L(e),[r,n]=await Promise.all([t._storage.getLastSuccessfulFetchResponse(),t._storage.getActiveConfigEtag()]);if(!r||!r.config||!r.eTag||!r.templateVersion||r.eTag===n)return!1;let i=new ty(t),o=r.experiments?i.updateActiveExperiments(r.experiments):Promise.resolve();return await Promise.all([t._storageCache.setActiveConfig(r.config),t._storage.setActiveConfigEtag(r.eTag),t._storage.setActiveConfigTemplateVersion(r.templateVersion),o]),!0}async function tb(e){let t=L(e),r=new tf;setTimeout(async()=>{r.abort()},t.settings.fetchTimeoutMillis);let n=t._storageCache.getCustomSignals();n&&t._logger.debug(`Fetching config with custom signals: ${JSON.stringify(n)}`);try{await t._client.fetch({cacheMaxAgeMillis:t.settings.minimumFetchIntervalMillis,signal:r,customSignals:n}),await t._storageCache.setLastFetchStatus("success")}catch(r){let e=r instanceof O&&-1!==r.code.indexOf("fetch-throttle")?"throttle":"failure";throw await t._storageCache.setLastFetchStatus(e),r}}class tE{constructor(e,t,r,n){this.client=e,this.storage=t,this.storageCache=r,this.logger=n}
13isCachedDataFresh(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;let r=Date.now()-t,n=r<=e;return this.logger.debug(`Config fetch cache check. Cache age millis: ${r}. Cache max age millis (minimumFetchIntervalMillis setting): ${e}. Is cache hit: ${n}.`),n}async fetch(e){let[t,r]=await Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()]);if(r&&this.isCachedDataFresh(e.cacheMaxAgeMillis,t))return r;e.eTag=r&&r.eTag;let n=await this.client.fetch(e),i=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())];return 200===n.status&&i.push(this.storage.setLastSuccessfulFetchResponse(n)),await Promise.all(i),n}}class t_{constructor(e,t,r,n,i,o){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=r,this.projectId=n,this.apiKey=i,this.appId=o}async fetch(e){let t,r,n,i,o,[s,a]=await Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()]),c=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",u=`${c}/v1/projects/${this.projectId}/namespaces/${this.namespace}:fetch?key=${this.apiKey}`,l=fetch(u,{method:"POST",headers:{"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},body:JSON.stringify({sdk_version:this.sdkVersion,app_instance_id:s,app_instance_id_token:a,app_id:this.appId,language_code:function(e=navigator){return e.languages&&e.languages[0]||e.language}(),custom_signals:e.customSignals})}),h=new Promise((t,r)=>{e.signal.addEventListener(()=>{let e=Error("The operation was aborted.");e.name="AbortError",r(e)})});try{await Promise.race([l,h]),t=await l}catch(t){let e="fetch-client-network";throw t?.name==="AbortError"&&(e="fetch-timeout"),tp.create(e,{originalErrorMessage:t?.message})}let f=t.status,d=t.headers.get("ETag")||void 0;if(200===t.status){let e;try{e=await t.json()}catch(e){throw tp.create("fetch-client-parse",{originalErrorMessage:e?.message})}r=e.entries,n=e.state,i=e.templateVersion,o=e.experimentDescriptions}if("INSTANCE_STATE_UNSPECIFIED"===n?f=500:"NO_CHANGE"===n?f=304:("NO_TEMPLATE"===n||"EMPTY_CONFIG"===n)&&(r={},o=[]),304!==f&&200!==f)throw tp.create("fetch-status",{httpStatus:f});return{status:f,eTag:d,config:r,templateVersion:i,experiments:o}}}class tw{constructor(e,t){this.client=e,this.storage=t}async fetch(e){let t=await this.storage.getThrottleMetadata()||{backoffCount:0,throttleEndTimeMillis:Date.now()};return this.attemptFetch(e,t)}async attemptFetch(e,{throttleEndTimeMillis:t,backoffCount:r}){var n;await (n=e.signal,new Promise((e,r)=>{let i=setTimeout(e,Math.max(t-Date.now(),0));n.addEventListener(()=>{clearTimeout(i),r(tp.create("fetch-throttle",{throttleEndTimeMillis:t}))})}));try{let t=await this.client.fetch(e);return await this.storage.deleteThrottleMetadata(),t}catch(n){if(!function(e){if(!(e instanceof O)||!e.customData)return!1;let t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(n))throw n;let t={throttleEndTimeMillis:Date.now()+D(r),backoffCount:r+1};return await this.storage.setThrottleMetadata(t),this.attemptFetch(e,t)}}}class tT{get fetchTimeMillis(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1}get lastFetchStatus(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"}constructor(e,t,r,n,i,o,s){this.app=e,this._client=t,this._storageCache=r,this._storage=n,this._logger=i,this._realtimeHandler=o,this._analyticsProvider=s,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}}function tI(e,t){let r=e.target.error||void 0;return tp.create(t,{originalErrorMessage:r&&r?.message})}let tS="app_namespace_store";class tC{getLastFetchStatus(){return this.get("last_fetch_status")}setLastFetchStatus(e){return this.set("last_fetch_status",e)}getLastSuccessfulFetchTimestampMillis(){return this.get("last_successful_fetch_timestamp_millis")}setLastSuccessfulFetchTimestampMillis(e){return this.set("last_successful_fetch_timestamp_millis",e)}getLastSuccessfulFetchResponse(){return this.get("last_successful_fetch_response")}setLastSuccessfulFetchResponse(e){return this.set("last_successful_fetch_response",e)}getActiveConfig(){return this.get("active_config")}setActiveConfig(e){return this.set("active_config",e)}getActiveConfigEtag(){return this.get("active_config_etag")}setActiveConfigEtag(e){return this.set("active_config_etag",e)}getActiveExperiments(){return this.get("active_experiments")}setActiveExperiments(e){return this.set("active_experiments",e)}getThrottleMetadata(){return this.get("throttle_metadata")}setThrottleMetadata(e){return this.set("throttle_metadata",e)}deleteThrottleMetadata(){return this.delete("throttle_metadata")}getCustomSignals(){return this.get("custom_signals")}getRealtimeBackoffMetadata(){return this.get("realtime_backoff_metadata")}setRealtimeBackoffMetadata(e){return this.set("realtime_backoff_metadata",e)}getActiveConfigTemplateVersion(){return this.get("last_known_template_version")}setActiveConfigTemplateVersion(e){return this.set("last_known_template_version",e)}}class tA extends tC{constructor(e,t,r,n=new Promise((e,t)=>
13{try{let r=indexedDB.open("firebase_remote_config",1);r.onerror=e=>{t(tI(e,"storage-open"))},r.onsuccess=t=>{e(t.target.result)},r.onupgradeneeded=e=>{let t=e.target.result;0===e.oldVersion&&t.createObjectStore(tS,{keyPath:"compositeKey"})}}catch(e){t(tp.create("storage-open",{originalErrorMessage:e?.message}))}})){super(),this.appId=e,this.appName=t,this.namespace=r,this.openDbPromise=n}async setCustomSignals(e){let t=(await this.openDbPromise).transaction([tS],"readwrite"),r=tN(e,await this.getWithTransaction("custom_signals",t)||{});return await this.setWithTransaction("custom_signals",r,t),r}async getWithTransaction(e,t){return new Promise((r,n)=>{let i=t.objectStore(tS),o=this.createCompositeKey(e);try{let e=i.get(o);e.onerror=e=>{n(tI(e,"storage-get"))},e.onsuccess=e=>{let t=e.target.result;t?r(t.value):r(void 0)}}catch(e){n(tp.create("storage-get",{originalErrorMessage:e?.message}))}})}async setWithTransaction(e,t,r){return new Promise((n,i)=>{let o=r.objectStore(tS),s=this.createCompositeKey(e);try{let e=o.put({compositeKey:s,value:t});e.onerror=e=>{i(tI(e,"storage-set"))},e.onsuccess=()=>{n()}}catch(e){i(tp.create("storage-set",{originalErrorMessage:e?.message}))}})}async get(e){let t=(await this.openDbPromise).transaction([tS],"readonly");return this.getWithTransaction(e,t)}async set(e,t){let r=(await this.openDbPromise).transaction([tS],"readwrite");return this.setWithTransaction(e,t,r)}async delete(e){let t=await this.openDbPromise;return new Promise((r,n)=>{let i=t.transaction([tS],"readwrite").objectStore(tS),o=this.createCompositeKey(e);try{let e=i.delete(o);e.onerror=e=>{n(tI(e,"storage-delete"))},e.onsuccess=()=>{r()}}catch(e){n(tp.create("storage-delete",{originalErrorMessage:e?.message}))}})}createCompositeKey(e){return[this.appId,this.appName,this.namespace,e].join()}}class tO extends tC{constructor(){super(...arguments),this.storage={}}async get(e){return Promise.resolve(this.storage[e])}async set(e,t){return this.storage[e]=t,Promise.resolve(void 0)}async delete(e){return this.storage[e]=void 0,Promise.resolve()}async setCustomSignals(e){let t=this.storage.custom_signals||{};return this.storage.custom_signals=tN(e,t),Promise.resolve(this.storage.custom_signals)}}function tN(e,t){let r=Object.fromEntries(Object.entries({...t,...e}).filter(([e,t])=>null!==t).map(([e,t])=>"number"==typeof t?[e,t.toString()]:[e,t]));if(Object.keys(r).length>100)throw tp.create("custom-signal-max-allowed-signals",{maxSignals:100});return r}class tk{constructor(e){this.storage=e}getLastFetchStatus(){return this.lastFetchStatus}getLastSuccessfulFetchTimestampMillis(){return this.lastSuccessfulFetchTimestampMillis}getActiveConfig(){return this.activeConfig}getCustomSignals(){return this.customSignals}async loadFromStorage(){let e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),r=this.storage.getActiveConfig(),n=this.storage.getCustomSignals(),i=await e;i&&(this.lastFetchStatus=i);let o=await t;o&&(this.lastSuccessfulFetchTimestampMillis=o);let s=await r;s&&(this.activeConfig=s);let a=await n;a&&(this.customSignals=a)}setLastFetchStatus(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)}setLastSuccessfulFetchTimestampMillis(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)}setActiveConfig(e){return this.activeConfig=e,this.storage.setActiveConfig(e)}async setCustomSignals(e){this.customSignals=await this.storage.setCustomSignals(e)}}class tx{constructor(e){this.allowedEvents_=e,this.listeners_={},m(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e,...t){if(Array.isArray(this.listeners_[e])){let r=[...this.listeners_[e]];for(let e=0;e<r.length;e++)r[e].callback.apply(r[e].context,t)}}on(e,t,r){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:r});let n=this.getInitialEvent(e);n&&t.apply(r,n)}off(e,t,r){this.validateEventType_(e);let n=this.listeners_[e]||[];for(let e=0;e<n.length;e++)if(n[e].callback===t&&(!r||r===n[e].context))return void n.splice(e,1)}validateEventType_(e){m(this.allowedEvents_.find(t=>t===e),"Unknown event: "+e)}}class tR extends tx{static getInstance(){return new tR}constructor(){let e,t;super(["visible"]),"u">typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(t="visibilitychange",e="hidden"):void 0!==document.mozHidden?(t="mozvisibilitychange",e="mozHidden"):void 0!==document.msHidden?(t="msvisibilitychange",e="msHidden"):void 0!==document.webkitHidden&&(t="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,t&&document.addEventListener(t,()=>{let t=!document[e];t!==this.visible_&&(this.visible_=t,this.trigger("visible",t))},!1)}getInitialEvent(e){return m("visible"===e,"Unknown event type: "+e),[this.visible_]}}let tD="featureDisabled",tL="retryIntervalSeconds",tP="latestTemplateVersionNumber";class tM{constructor(e,t,r,n,i,o,s,a,c,u){this.firebaseInstallations=e,this.storage=t,this.sdkVersion=r,this.namespace=n,this.projectId=i,this.apiKey=o,this.appId=s,this.logger=a,this.storageCache=c,this.cachingClient=u,this.observers=new Set,this.isConnectionActive=!1,this.isRealtimeDisabled=!1,this.httpRetriesRemaining=8,this.isInBackgroun
13d=!1,this.decoder=new TextDecoder("utf-8"),this.isClosingConnection=!1,this.propagateError=e=>this.observers.forEach(t=>t.error?.(e)),this.isStatusCodeRetryable=e=>!e||[408,429,502,503,504].includes(e),this.setRetriesRemaining(),tR.getInstance().on("visible",this.onVisibilityChange,this)}async setRetriesRemaining(){let e=await this.storage.getRealtimeBackoffMetadata(),t=e?.numFailedStreams||0;this.httpRetriesRemaining=Math.max(8-t,1)}async updateBackoffMetadataWithLastFailedStreamConnectionTime(e){let t=((await this.storage.getRealtimeBackoffMetadata())?.numFailedStreams||0)+1,r=D(t,6e4,2);await this.storage.setRealtimeBackoffMetadata({backoffEndTimeMillis:new Date(e.getTime()+r),numFailedStreams:t})}async updateBackoffMetadataWithRetryInterval(e){let t=new Date(Date.now()+1e3*e);await this.storage.setRealtimeBackoffMetadata({backoffEndTimeMillis:t,numFailedStreams:0}),await this.retryHttpConnectionWhenBackoffEnds()}async closeRealtimeHttpConnection(){if(!this.isClosingConnection){this.isClosingConnection=!0;try{this.reader&&await this.reader.cancel()}catch(e){this.logger.debug("Failed to cancel the reader, connection was lost.")}finally{this.reader=void 0}this.controller&&(await this.controller.abort(),this.controller=void 0),this.isClosingConnection=!1}}async resetRealtimeBackoff(){await this.storage.setRealtimeBackoffMetadata({backoffEndTimeMillis:new Date(-1),numFailedStreams:0})}resetRetryCount(){this.httpRetriesRemaining=8}async establishRealtimeConnection(e,t,r,n){let i=await this.storage.getActiveConfigEtag(),o=await this.storage.getActiveConfigTemplateVersion(),s={"X-Goog-Api-Key":this.apiKey,"X-Goog-Firebase-Installations-Auth":r,"Content-Type":"application/json",Accept:"application/json","If-None-Match":i||"*","Content-Encoding":"gzip"},a={project:this.projectId,namespace:this.namespace,lastKnownVersionNumber:o,appId:this.appId,sdkVersion:this.sdkVersion,appInstanceId:t};return await fetch(e,{method:"POST",headers:s,body:JSON.stringify(a),signal:n})}getRealtimeUrl(){let e=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfigrealtime.googleapis.com";return new URL(`${e}/v1/projects/${this.projectId}/namespaces/${this.namespace}
13:streamFetchInvalidations?key=${this.apiKey}`)}async createRealtimeConnection(){let[e,t]=await Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken(!1)]);this.controller=new AbortController;let r=this.getRealtimeUrl();return await this.establishRealtimeConnection(r,e,t,this.controller.signal)}async retryHttpConnectionWhenBackoffEnds(){let e=await this.storage.getRealtimeBackoffMetadata();e||(e={backoffEndTimeMillis:new Date(-1),numFailedStreams:0});let t=Math.max(0,new Date(e.backoffEndTimeMillis).getTime()-Date.now());await this.makeRealtimeHttpConnection(t)}setIsHttpConnectionRunning(e){this.isConnectionActive=e}checkAndSetHttpConnectionFlagIfNotRunning(){let e=this.canEstablishStreamConnection();return e&&this.setIsHttpConnectionRunning(!0),e}fetchResponseIsUpToDate(e,t){return null!=e.config&&e.templateVersion?e.templateVersion>=t:"success"===this.storageCache.getLastFetchStatus()}parseAndValidateConfigUpdateMessage(e){let t=e.indexOf("{"),r=e.indexOf("}",t);return t<0||r<0||t>=r?"":e.substring(t,r+1)}isEventListenersEmpty(){return 0===this.observers.size}getRandomInt(e){return Math.floor(Math.random()*e)}executeAllListenerCallbacks(e){this.observers.forEach(t=>t.next(e))}getChangedParams(e,t){let r=new Set,n=new Set(Object.keys(e||{})),i=new Set(Object.keys(t||{}));for(let o of n)i.has(o)&&e[o]===t[o]||r.add(o);for(let e of i)n.has(e)||r.add(e);return r}async fetchLatestConfig(e,t){let r=e-1,n=this.storageCache.getCustomSignals();n&&this.logger.debug(`Fetching config with custom signals: ${JSON.stringify(n)}`);let i=new tf;try{let e=await this.cachingClient.fetch({cacheMaxAgeMillis:0,signal:i,customSignals:n,fetchType:"REALTIME",fetchAttempt:3-r}),o=await this.storage.getActiveConfig();if(!this.fetchResponseIsUpToDate(e,t)){this.logger.debug("Fetched template version is the same as SDK's current version. Retrying fetch."),await this.autoFetch(r,t);return}if(null==e.config)return void this.logger.debug("The fetch succeeded, but the backend had no updates.");null==o&&(o={});let s=this.getChangedParams(e.config,o);if(0===s.size)return void this.logger.debug("Config was fetched, but no params changed.");this.executeAllListenerCallbacks({getUpdatedKeys:()=>new Set(s)})}catch(r){let e=r instanceof Error?r.message:String(r),t=tp.create("update-not-fetched",{originalErrorMessage:`Failed to auto-fetch config update: ${e}`});this.propagateError(t)}}async autoFetch(e,t){if(0===e){let e=tp.create("update-not-fetched",{originalErrorMessage:"Unable to fetch the latest version of the template."});this.propagateError(e);return}let r=1e3*this.getRandomInt(4);await new Promise(e=>setTimeout(e,r)),await this.fetchLatestConfig(e,t)}async handleNotifications(e){let t,r="";for(;;){let{done:n,value:i}=await e.read();if(n)break;if(r+=t=this.decoder.decode(i,{stream:!0}),t.includes("}")){if(0===(r=this.parseAndValidateConfigUpdateMessage(r)).length)continue;try{let e=JSON.parse(r);if(this.isEventListenersEmpty())break;if(tD in e&&!0===e[tD]){let e=tp.create("realtime-unavailable",{originalErrorMessage:"The server is temporarily unavailable. Try again in a few minutes."});this.propagateError(e);break}if(tP in e){let t=await this.storage.getActiveConfigTemplateVersion(),r=Number(e[tP]);t&&r>t&&await this.autoFetch(3,r)}if(tL in e){let t=Number(e[tL]);await this.updateBackoffMetadataWithRetryInterval(t)}}catch(t){this.logger.debug("Unable to parse latest config update message.",t);let e=t instanceof Error?t.message:String(t);this.propagateError(tp.create("update-message-invalid",{originalErrorMessage:e}))}r=""}}}async listenForNotifications(e){try{await this.handleNotifications(e)}catch(e){this.isInBackground||this.logger.debug("Real-time connection was closed due to an exception.")}}async prepareAndBeginRealtimeHttpStream(){let e,t;if(!this.checkAndSetHttpConnectionFlagIfNotRunning())return;let r=await this.storage.getRealtimeBackoffMetadata();r||(r={backoffEndTimeMillis:new Date(-1),numFailedStreams:0});let n=r.backoffEndTimeMillis.getTime();if(Date.now()<n)return void await this.retryHttpConnectionWhenBackoffEnds();try{if(t=(e=await this.createRealtimeConnection()).status,e.ok&&e.body){this.resetRetryCount(),await this.resetRealtimeBackoff();let t=e.body.getReader();this.reader=t,await this.listenForNotifications(t)}}
13catch(e){this.isInBackground?this.resetRetryCount():this.logger.debug("Exception connecting to real-time RC backend. Retrying the connection...:",e)}finally{await this.closeRealtimeHttpConnection(),this.setIsHttpConnectionRunning(!1);let r=!this.isInBackground&&(void 0===t||this.isStatusCodeRetryable(t));if(r&&await this.updateBackoffMetadataWithLastFailedStreamConnectionTime(new Date),r||e?.ok)await this.retryHttpConnectionWhenBackoffEnds();else{let e=`Unable to connect to the server. HTTP status code: ${t}`,r=tp.create("stream-error",{originalErrorMessage:e});this.propagateError(r)}}}canEstablishStreamConnection(){let e=this.observers.size>0,t=!this.isRealtimeDisabled,r=!this.isConnectionActive,n=!this.isInBackground;return e&&t&&r&&n}async makeRealtimeHttpConnection(e){if(this.canEstablishStreamConnection()){if(this.httpRetriesRemaining>0)this.httpRetriesRemaining--,await new Promise(t=>setTimeout(t,e)),this.prepareAndBeginRealtimeHttpStream();else if(!this.isInBackground){let e=tp.create("stream-error",{originalErrorMessage:"Unable to connect to the server. Check your connection and try again."});this.propagateError(e)}}}async beginRealtime(){this.observers.size>0&&await this.makeRealtimeHttpConnection(0)}addObserver(e){this.observers.add(e),this.beginRealtime()}removeObserver(e){this.observers.has(e)&&this.observers.delete(e)}async onVisibilityChange(e){this.isInBackground=!e,e?e&&await this.beginRealtime():await this.closeRealtimeHttpConnection()}}async function tB(e){return e=L(e),await tb(e),tv(e)}eg(new P(td,function(e,{options:t}){let r,n=e.getProvider("app").getImmediate(),i=e.getProvider("installations-internal").getImmediate(),o=e.getProvider("analytics-internal"),{projectId:s,apiKey:c,appId:u}=n.options;if(!s)throw tp.create("registration-project-id");if(!c)throw tp.create("registration-api-key");if(!u)throw tp.create("registration-app-id");let l=t?.templateId||"firebase",h=A()?new tA(u,n.name,l):new tO,f=new tk(h),d=new H(tl);d.logLevel=a.ERROR;let p=new tE(new tw(new t_(i,eb,l,s,c,u),h),h,f,d),g=new tM(i,h,eb,l,s,c,u,d,f,p),m=new tT(n,p,f,h,d,g,o);return(r=L(m))._initializePromise||(r._initializePromise=r._storageCache.loadFromStorage().then(()=>{r._isInitializationComplete=!0})),r._initializePromise,m},"PUBLIC").setMultipleInstances(!0)),ew(tl,th),ew(tl,th,"esm2020");let tF={example_feature_flag:!1,example_string_param:"",example_number_param:0,...p};ew("firebase","12.12.0","app");var tU=r(89946);let tj=null,t$=null;function tV(){if(t$)return t$;let e=tj||(Array.from(eh.values()).length>0?tj=e_():(tU.DM&&tU.e3&&tU.M6&&tU.e4&&(tj=eE({apiKey:tU.DM,appId:tU.e3,authDomain:tU.M6,projectId:tU.e4,storageBucket:tU.FT,messagingSenderId:tU.Ir,measurementId:tU.N})),tj));return e?((t$=function(e=e_(),t={}){let r=em(e=L(e),td);if(r.isInitialized()){if(x(r.getOptions(),t))return r.getImmediate();throw tp.create("already-initialized")}r.initialize({options:t});let n=r.getImmediate();return t.initialFetchResponse&&(n._initializePromise=Promise.all([n._storage.setLastSuccessfulFetchResponse(t.initialFetchResponse),n._storage.setActiveConfigEtag(t.initialFetchResponse?.eTag||""),n._storage.setActiveConfigTemplateVersion(t.initialFetchResponse.templateVersion||0),n._storageCache.setLastSuccessfulFetchTimestampMillis(Date.now()),n._storageCache.setLastFetchStatus("success"),n._storageCache.setActiveConfig(t.initialFetchResponse?.config||{})]).then(),n._isInitializationComplete=!0),n}(e)).settings.minimumFetchIntervalMillis=Number(tU.Wz),t$.defaultConfig=tF,t$):null}let tz=null,tq=(0,l.createContext)(void 0),tH=({children:e})=>{let[t,r]=(0,l.useState)({status:"loading",flags:f});return(0,l.useEffect)(()=>{let e=!1,t=tV();return(async()=>{if(!t){e||(u.yf.logger.log("Firebase Remote Config not available, using default feature flags",{flags:f},"warn"),r({status:"ready",flags:f}));return}try{let t;await (!(t=tV())?Promise.resolve(!1):(!tz&&(tz=tB(t).finally(()=>{tz=null})),tz)),!e&&(e||r({status:"ready",flags:function(){let e=tV(),t={...f};if(!e)return t;for(let r of Object.values(h)){let n=d[r];if(n)try{let i=function(e,t){let r=L(e);r._isInitializationComplete||r._logger.debug(`A value was requested for key "${t}" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.`);let n=r._storageCache.getActiveConfig();return n&&void 0!==n[t]?new tm("remote",n[t]):r.defaultConfig&&void 0!==r.defaultConfig[t]?new tm("default",String(r.defaultConfig[t])):(r._logger.debug(`Returning static value for key "${t}". Define a default or remote value if this is unintentional.`),new tm("static"))}(e,r);t[n]=i.asBoolean()}catch(t){let e=t instanceof Error?t.message:String(t);u.yf.logger.log("Firebase Remote Config feature flag read error",{error:t,flagName:n,message:e},"warn")}}return t}()}))}catch(n){if(e)return;let t=n instanceof Error?n:Error(String(n));r({status:"error",flags:f,error:t}),u.yf.logger.log("Firebase Remote Config feature flags fetch error",{message:t.message,stack:t.stack},"error")}})(),()=>{e=!0}},[]),(0,c.jsx)(tq.Provider,{value:t,children:e})}},75117:(e,t,r)=>{"use strict";
13Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationRequestHandler=t.BUILT_IN_PARAMETERS=t.AuthorizationNotifier=void 0;var n=r(83299),i=r(16901);t.AuthorizationNotifier=function(){function e(){this.listener=null}return e.prototype.setAuthorizationListener=function(e){this.listener=e},e.prototype.onAuthorizationComplete=function(e,t,r){this.listener&&this.listener(e,t,r)},e}(),t.BUILT_IN_PARAMETERS=["redirect_uri","client_id","response_type","state","scope"];var o=function(){function e(e,t){this.utils=e,this.crypto=t,this.notifier=null}return e.prototype.buildRequestUrl=function(e,r){var n={redirect_uri:r.redirectUri,client_id:r.clientId,response_type:r.responseType,state:r.state,scope:r.scope};if(r.extras)for(var o in r.extras)r.extras.hasOwnProperty(o)&&0>t.BUILT_IN_PARAMETERS.indexOf(o)&&(n[o]=r.extras[o]);var s=this.utils.stringify(n),a=(0,i.requireValidUrl)(e.authorizationEndpoint);return"".concat(a,"?").concat(s)},e.prototype.completeAuthorizationRequestIfPossible=function(){var e=this;return(0,n.log)("Checking to see if there is an authorization response to be delivered."),this.notifier||(0,n.log)("Notifier is not present on AuthorizationRequest handler.\n No delivery of result will be possible"),this.completeAuthorizationRequest().then(function(t){t||(0,n.log)("No result is available yet."),t&&e.notifier&&e.notifier.onAuthorizationComplete(t.request,t.response,t.error)})},e.prototype.setAuthorizationNotifier=function(e){return this.notifier=e,this},e}();t.AuthorizationRequestHandler=o},75700:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AppAuthError=void 0,t.AppAuthError=function(e,t){this.message=e,this.extras=t}},76564:(e,t,r)=>{"use strict";r.d(t,{M3:()=>s,bG:()=>o,x4:()=>a});var n,i=r(15968),o=((n={}).Carryout="CARRYOUT",n.CateringCarryout="CATERING_CARRYOUT",n.Delivery="DELIVERY",n.DineIn="DINE_IN",n.DriveThru="DRIVE_THRU",n);(0,i.Ay)` 14 mutation RequestIdentifierVerification($input: RequestIdentifierVerificationInput!) { 15 requestIdentifierVerification(input: $input) { 16 __typename 17 ... on RequestIdentifierVerificationSuccess { 18 customer { 19 customerId 20 } 21 } 22 ... on RequestIdentifierVerificationError { 23 message 24 } 25 } 26} 27 `,(0,i.Ay)` 28 mutation ConfirmIdentifierVerification($input: ConfirmIdentifierVerificationInput!) { 29 confirmIdentifierVerification(input: $input) { 30 __typename 31 ... on ConfirmIdentifierVerificationSuccess { 32 customer { 33 customerId 34 } 35 } 36 ... on ConfirmIdentifierVerificationError { 37 message 38 } 39 } 40} 41 `,(0,i.Ay)` 42 mutation AddFundsToGiftCard($input: AddFundsToGiftCardInput!) { 43 addFundsToGiftCard(input: $input) { 44 __typename 45 ... on AddFundsToGiftCardSuccess { 46 paymentMethod { 47 paymentMethodId 48 default 49 name 50 requiresSecurityCode 51 lastFour 52 expiryMonth 53 expiryYear 54 imageUrl 55 balance { 56 currentBalance { 57 amount 58 currencyCode 59 } 60 } 61 } 62 balance { 63 currentBalance { 64 amount 65 currencyCode 66 } 67 } 68 } 69 ... on AddGiftCardFundsError { 70 message 71 } 72 ... on PaymentProcessorError { 73 message 74 reason 75 } 76 ... on GiftCardPurchaseDeclineError { 77 message 78 } 79 ... on PaymentSessionNotFoundError { 80 message 81 } 82 } 83} 84 `,(0,i.Ay)` 85 mutation BeginPaymentSession($input: BeginPaymentSessionInput!) { 86 beginPaymentSession(input: $input) { 87 __typename 88 ... on BeginPaymentSessionSuccess { 89 sessionConfig 90 session { 91 sessionId 92 processor 93 } 94 } 95 ... on PaymentSessionConfigurationError { 96 message 97 reason 98 } 99 ... on CybersourceCaptureContextTokenExpiredError { 100 message 101 } 102 ... on CybersourceCaptureContextTokenInvalidError { 103 message 104 } 105 } 106} 107 `,(0,i.Ay)` 108 mutation CreateSavedPaymentMethod($input: CreateSavedPaymentMethodInput!) { 109 createSavedPaymentMethod(input: $input) { 110 __typename 111 ... on AddSavedPaymentMethodSuccess { 112 paymentMethod { 113 ... on SavedBankCard { 114 paymentMethodId 115 default 116 name 117 cardType 118 lastFour 119 expiryMonth 120 expiryYear 121 postalCode 122 requiresSecurityCodeBy 123 imageUrl 124 } 125 ... on SavedGiftCard { 126 paymentMethodId 127 default 128 name 129 requiresSecurityCode 130 lastFour 131 expiryMonth 132 expiryYear 133 imageUrl 134 balance { 135 currentBalance { 136 amount 137 currencyCode 138 } 139 } 140 } 141 } 142 } 143 ... on AddSavedPaymentMethodError { 144 message 145 reasonCode 146 } 147 ... on PaymentSessionNotFoundError { 148 message 149 } 150 } 151} 152 `,(0,i.Ay)`
153 mutation SetDefaultSavedPaymentMethod($input: SetDefaultSavedPaymentMethodInput!) { 154 setDefaultSavedPaymentMethod(input: $input) { 155 __typename 156 ... on SetDefaultSavedPaymentMethodSuccess { 157 paymentMethod { 158 ... on SavedBankCard { 159 paymentMethodId 160 default 161 name 162 lastFour 163 expiryMonth 164 expiryYear 165 imageUrl 166 } 167 ... on SavedGiftCard { 168 paymentMethodId 169 default 170 name 171 requiresSecurityCode 172 lastFour 173 expiryMonth 174 expiryYear 175 imageUrl 176 } 177 } 178 } 179 ... on SetDefaultSavedPaymentMethodError { 180 message 181 } 182 } 183} 184 `;let s=(0,i.Ay)` 185 mutation AddFavoriteStore($input: AddFavoriteStoreInput!) { 186 addFavoriteStore(input: $input) { 187 __typename 188 ... on CustomerNotFoundError { 189 message 190 customerId 191 } 192 ... on FavoriteStoreLimitReachedError { 193 limit 194 message 195 } 196 ... on StoreNotFoundError { 197 message 198 storeNumber 199 } 200 ... on FavoriteStoreAlreadyExistsError { 201 storeNumber 202 message 203 } 204 ... on AddCustomerFavoriteStoreSuccess { 205 favoriteStore { 206 favoriteStoreId 207 name 208 } 209 } 210 } 211} 212 `;(0,i.Ay)` 213 mutation RemoveFavoriteStore($input: RemoveFavoriteStoreInput!) { 214 removeFavoriteStore(input: $input) { 215 __typename 216 ... on RemoveCustomerFavoriteStoreSuccess { 217 favoriteStoreId 218 } 219 ... on CustomerNotFoundError { 220 message 221 customerId 222 } 223 ... on FavoriteStoreNotFoundError { 224 favoriteStoreId 225 message 226 } 227 } 228} 229 `,(0,i.Ay)` 230 mutation UpdateCustomerPairingPreferences($input: UpdateCustomerPairingPreferencesInput!) { 231 updateCustomerPairingPreferences(input: $input) { 232 __typename 233 ... on UpdateCustomerPairingPreferencesSuccess { 234 pairingPreferences { 235 displayNameOnCustomerFacingScreens 236 } 237 } 238 ... on CustomerNotFoundError { 239 message 240 customerId 241 } 242 } 243} 244 `;let a=(0,i.Ay)` 245 query GetCustomerProfile { 246 customer { 247 __typename 248 customerId 249 profile { 250 __typename 251 email 252 phone 253 firstName 254 lastName 255 createdAt 256 updatedAt 257 emailLastVerifiedAt 258 phoneLastVerifiedAt 259 birthday { 260 day 261 month 262 year 263 } 264 } 265 marketingPreferences { 266 email 267 sms 268 updatedAt 269 } 270 } 271} 272 `;(0,i.Ay)` 273 query GetOrderById($orderId: UUID!) { 274 orderById(orderId: $orderId) { 275 __typename 276 ... on CustomerOrder { 277 orderId 278 orderNumber 279 status 280 orderTime 281 promisedTime 282 total { 283 amount 284 currencyCode 285 } 286 } 287 ... on CustomerRedactedOrder { 288 orderId 289 orderNumber 290 status 291 orderTime 292 promisedTime 293 total { 294 amount 295 currencyCode 296 } 297 } 298 ... on ExternalOrder { 299 orderId 300 orderNumber 301 status 302 orderTime 303 promisedTime 304 total { 305 amount 306 currencyCode 307 } 308 } 309 ... on LegacyOrder { 310 order_id 311 order_number 312 legacyStatus: status 313 order_time 314 promised_time 315 legacyTotal: total 316 } 317 ... on LegacyRedactedOrder { 318 order_id 319 order_number 320 legacyStatus: status 321 redacted_order_time: order_time 322 redacted_promised_time: promised_time 323 legacyTotal: total 324 } 325 } 326} 327 `,(0,i.Ay)` 328 query SavedPaymentMethods($default: Boolean, $paymentMethodType: PaymentMethodType, $first: Int, $last: Int, $before: String, $after: String) { 329 savedPaymentMethods( 330 default: $default 331 paymentMethodType: $paymentMethodType 332 first: $first 333 last: $last 334 before: $before 335 after: $after 336 ) { 337 edges { 338 cursor 339 node { 340 __typename 341 ... on SavedBankCard { 342 paymentMethodId 343 default 344 name 345 cardType 346 lastFour 347 expiryMonth 348 expiryYear 349 imageUrl 350 } 351 ... on SavedGiftCard { 352 paymentMethodId 353 default 354 name 355 requiresSecurityCode 356 lastFour 357 expiryMonth 358 expiryYear 359 balance { 360 currentBalance { 361 amount 362 currencyCode 363 } 364 } 365 imageUrl 366 } 367 } 368 } 369 pageInfo { 370 hasNextPage 371 hasPreviousPage 372 } 373 } 374} 375 `},76645:(e,t)=>{"use strict";
375Object.defineProperty(t,"__esModule",{value:!0}),t.RevokeTokenRequest=void 0,t.RevokeTokenRequest=function(){function e(e){this.token=e.token,this.tokenTypeHint=e.token_type_hint,this.clientId=e.client_id,this.clientSecret=e.client_secret}return e.prototype.toJson=function(){var e={token:this.token};return this.tokenTypeHint&&(e.token_type_hint=this.tokenTypeHint),this.clientId&&(e.client_id=this.clientId),this.clientSecret&&(e.client_secret=this.clientSecret),e},e.prototype.toStringMap=function(){return this.toJson()},e}()},79992:(e,t,r)=>{"use strict";r.d(t,{l1:()=>s,ni:()=>o,q0:()=>a});var n=r(39712);let i="web_fresco",o=()=>{let e=n.Ay.getItems()[i];return null==e?void 0:e},s=e=>{n.Ay.setItems({[i]:e})},a=()=>!0===o()},81070:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenRequest=t.GRANT_TYPE_REFRESH_TOKEN=t.GRANT_TYPE_AUTHORIZATION_CODE=void 0,t.GRANT_TYPE_AUTHORIZATION_CODE="authorization_code",t.GRANT_TYPE_REFRESH_TOKEN="refresh_token",t.TokenRequest=function(){function e(e){this.clientId=e.client_id,this.redirectUri=e.redirect_uri,this.grantType=e.grant_type,this.code=e.code,this.refreshToken=e.refresh_token,this.extras=e.extras}return e.prototype.toJson=function(){return{grant_type:this.grantType,code:this.code,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,client_id:this.clientId,extras:this.extras}},e.prototype.toStringMap=function(){var e={grant_type:this.grantType,client_id:this.clientId,redirect_uri:this.redirectUri};if(this.code&&(e.code=this.code),this.refreshToken&&(e.refresh_token=this.refreshToken),this.extras)for(var t in this.extras)this.extras.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=this.extras[t]);return e},e}()},83299:function(e,t,r){"use strict";var n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.profile=t.log=void 0;var i=r(85122);function o(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];i.Flags.IS_LOG&&((t?t.length:0)>0?console.log.apply(console,n([e],t,!1)):console.log(e))}t.log=o;var s="u">typeof window&&!!window.performance&&!!console.profile;t.profile=function(e,t,r){var a,c,u;return i.Flags.IS_PROFILE?((u=(c=(a=r).value).name)||(u="anonymous function"),s?a.value=function(e){console.profile(u);var t=window.performance.now(),r=c.call.apply(c,n([this||window],e,!1)),i=window.performance.now()-t;return console.log("".concat(u," took ").concat(i," ms")),console.profileEnd(),r}:a.value=function(e){o("Profile start ".concat(u));var t=Date.now(),r=c.call.apply(c,n([this||window],e,!1)),i=Date.now()-t;return o("Profile end ".concat(u," took ").concat(i," ms.")),r},a):r}},84274:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthorizationRequest=void 0;var n=r(93188),i=r(83299);t.AuthorizationRequest=function(){function e(t,r,i){void 0===r&&(r=new n.DefaultCrypto),void 0===i&&(i=!0),this.crypto=r,this.usePkce=i,this.clientId=t.client_id,this.redirectUri=t.redirect_uri,this.scope=t.scope,this.responseType=t.response_type||e.RESPONSE_TYPE_CODE,this.state=t.state||r.generateRandom(10),this.extras=t.extras,this.internal=t.internal}return e.prototype.setupCodeVerifier=function(){var e=this;if(!this.usePkce)return Promise.resolve();var t=this.crypto.generateRandom(128);return this.crypto.deriveChallenge(t).catch(function(e){(0,i.log)("Unable to generate PKCE challenge. Not using PKCE",e)}).then(function(r){r&&(e.internal=e.internal||{},e.internal.code_verifier=t,e.extras=e.extras||{},e.extras.code_challenge=r,e.extras.code_challenge_method="S256")})},e.prototype.toJson=function(){var e=this;return this.setupCodeVerifier().then(function(){return{response_type:e.responseType,client_id:e.clientId,redirect_uri:e.redirectUri,scope:e.scope,state:e.state,extras:e.extras,internal:e.internal}})},e.RESPONSE_TYPE_TOKEN="token",e.RESPONSE_TYPE_CODE="code",e}()},84905:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);
375(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(84274),t),i(r(75117),t),i(r(71174),t),i(r(32081),t),i(r(93188),t),i(r(75700),t),i(r(85122),t),i(r(83299),t),i(r(90921),t),i(r(24984),t),i(r(76645),t),i(r(13092),t),i(r(81070),t),i(r(62849),t),i(r(2954),t),i(r(24216),t),i(r(54123),t)},85122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IS_PROFILE=t.IS_LOG=t.setFlag=t.Flags=void 0,t.Flags={IS_LOG:!0,IS_PROFILE:!1},t.setFlag=function(e,r){t.Flags[e]=r},t.IS_LOG=t.Flags.IS_LOG,t.IS_PROFILE=t.Flags.IS_PROFILE},89946:(e,t,r)=>{"use strict";r.d(t,{Tt:()=>o,jR:()=>s,E_:()=>Y,LD:()=>J,go:()=>W,g3:()=>X,Q$:()=>a,bQ:()=>c,Wo:()=>u,aF:()=>l,_m:()=>h,$S:()=>f,ZY:()=>d,Io:()=>p,AD:()=>g,VQ:()=>m,DM:()=>y,e3:()=>v,M6:()=>b,N:()=>E,Ir:()=>_,e4:()=>w,Wz:()=>T,FT:()=>I,up:()=>S,qO:()=>C,fC:()=>A,PA:()=>O,zT:()=>N,Tl:()=>k,lu:()=>x,pW:()=>R,uZ:()=>D,sE:()=>L,R2:()=>P,GL:()=>M,BU:()=>B,H1:()=>Q,r$:()=>F,Bb:()=>U,zf:()=>j,f$:()=>V,Ly:()=>z,n6:()=>q,J0:()=>H,vC:()=>G,Wg:()=>K});let n=e=>!!e.toString().match(/^(true|[1-9][0-9]*|[0-9]*[1-9]+|yes)$/i);var i=r(88304);let o="client-aSRiCBY1nsRi6t53mlprQ5h2ev4KLmlk",s="7601ffc7c9da2f71ffed31887b09b3db";i.env.AMPLITUDE_KEY_PROD;let a="";i.env.BASE_PATH;let c="sdk.iad-06.braze.com",u="647b61f8-086e-42fe-95aa-f4131152f5eb",l="60",h="master",f="cdn.contentful.com",d="s2fh37axej1n",p="3e09d3577882f6023682d6d4c90dd2a2f0ebb49bec3f126d0bed2b53a4cd3afc",g="prod";i.env.DATA_PATH;let m="rel-p";i.env.ERROR_MESSAGE_PATH,i.env.FACEBOOK_APP_ID;let y="AIzaSyBLtwoXLux6rxzsykYatKtGTaw7NBq-ZD4",v="1:518205307253:web:f719aefe9b8467d1e27b3c",b="taco-bell-ecommerce-firebase.firebaseapp.com";i.env.FIREBASE_DB_URL;let E="G-PG52SE64DH",_="518205307253",w="taco-bell-ecommerce-firebase",T="43200000",I="taco-bell-ecommerce-firebase.appspot.com";i.env.GA_GLOBAL_ID;let S="/maps.js?libraries=places\n",C="PAN_ONLY,CRYPTOGRAM_3DS",A="PRODUCTION",O="376246695997",N="firstdata",k="01060719885765672316",x="CARD",R="AMEX,MASTERCARD,VISA,DISCOVER",D=i.env.GOOGLE_SIGN_IN_CLIENT_ID||"",L="22900,22901,22902,23561,23607",P=i.env.PAY_BADGE_URL||"";JSON.parse('["/","/404","/500","/503","/504","/about-us","/account","/account/404","/account/500","/account/*","/authenticate","/stories","/stories/*","/careers","/contact-us","/contact-us/*","/delivery","/delivery/*","/education","/food","/food/404","/food/500","/food/*","/history","/home/*","/faqs","/faqs/*","/franchise","/franchise/*","/info","/info/*","/gift-cards","/gift-cards/*","/legal","/legal/*","/locations","/locations/*","/login/yum","/newsroom","/newsroom/*","/mobile-app","/order/404","/order/500","/order/cart","/order/checkout","/order/*","/promotions","/promotions/*","/purpose","/purpose/*","/popular-links","/nutrition","/nutrition/*","/profile","/profile/*","/register/yum","/rewards","/rewards/*","/responsibledisclosure","/unsubscribe","/web/authenticate"]');let M="https://api.tacobell.com";i.env.SERVICE_BASE_PATH,i.env.SERVICE_URL,i.env.SHOPIFY_DOMAIN,i.env.SHOPIFY_TOKEN;let B="0000",F="550500,550501",U="https://api.tacobell.com",j="https://api.tacobell.com";i.env.TESTING_BEARER_TOKEN;let V="tacobell://",z="5.12.0",q="https://www.tacobell.com",H="tb_us_web",G="TB US WEB",K="prod",Y="US",J="supports3DS",W="merchant.com.tacobell.ecommerce.prod",X="com.tacobell.WebSignIn";n("true"),n("false"),n("true");let Q="https://api-qa.tacobell.com/yum/v1/storefront/graphql"},90492:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});let n="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);for(var i,o=new Uint8Array(16),s=[],a=0;a<256;++a)s.push((a+256).toString(16).slice(1));let c=function(e,t,r){if(n&&!t&&!e)return n();var a=(e=e||{}).random||(e.rng||function(){if(!i&&!(i="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){r=r||0;for(var c=0;c<16;++c)t[r+c]=a[c];return t}return function(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}(a)}},90921:(e,t)=>{"use strict";
375Object.defineProperty(t,"__esModule",{value:!0}),t.BasicQueryStringUtils=void 0,t.BasicQueryStringUtils=function(){function e(){}return e.prototype.parse=function(e,t){return t?this.parseQueryString(e.hash):this.parseQueryString(e.search)},e.prototype.parseQueryString=function(e){for(var t={},r=(e=e.trim().replace(/^(\?|#|&)/,"")).split("&"),n=0;n<r.length;n+=1){var i=r[n].split("=");if(i.length>=2){var o=decodeURIComponent(i.shift()),s=i.length>0?i.join("="):null;s&&(t[o]=decodeURIComponent(s))}}return t},e.prototype.stringify=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&e[r]&&t.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(e[r])));return t.join("&")},e}()},92405:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>u});var n=r(26514);r(3425),r(33088),r(63868);var i=r(46225),o=r(75834),s=r(73587),a=r(49106);let c=({children:e})=>{let t=(0,i.useRouter)(),[r,s]=(0,o.useState)(!1),c=async()=>{await u();let e=()=>s(!1);return t.events.on("routeChangeStart",e),t.events.on("routeChangeComplete",u),()=>{t.events.off("routeChangeStart",e),t.events.off("routeChangeComplete",u)}};(0,o.useEffect)(()=>{c()},[]);let u=async()=>{(await (0,a.F)()).success?s(!0):(s(!1),window.location.href="/login")};return(0,n.jsx)(n.Fragment,{children:r&&e})},u=({Component:e,pageProps:t})=>{let{pathname:r}=(0,i.useRouter)(),a=r.startsWith("/account"),u=r.startsWith("/order");return(0,o.useEffect)(()=>{"u">typeof document&&document.body.classList.toggle("order-page",u)},[u]),(0,n.jsx)(s.A,{children:a?(0,n.jsx)(c,{children:(0,n.jsx)(e,{...t})}):(0,n.jsx)(e,{...t})})}},93188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultCrypto=t.textEncodeLite=t.urlSafe=t.bufferToString=void 0;var n=r(40896),i=r(75700),o="u">typeof window&&!!window.crypto,s=o&&!!window.crypto.subtle,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function c(e){for(var t=[],r=0;r<e.byteLength;r+=1){var n=e[r]%a.length;t.push(a[n])}return t.join("")}function u(e){return n.fromByteArray(new Uint8Array(e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function l(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}t.bufferToString=c,t.urlSafe=u,t.textEncodeLite=l,t.DefaultCrypto=function(){function e(){}return e.prototype.generateRandom=function(e){var t=new Uint8Array(e);if(o)window.crypto.getRandomValues(t);else for(var r=0;r<e;r+=1)t[r]=Math.random()*a.length|0;return c(t)},e.prototype.deriveChallenge=function(e){return e.length<43||e.length>128?Promise.reject(new i.AppAuthError("Invalid code length.")):s?new Promise(function(t,r){crypto.subtle.digest("SHA-256",l(e)).then(function(e){return t(u(new Uint8Array(e)))},function(e){return r(e)})}):Promise.reject(new i.AppAuthError("window.crypto.subtle is unavailable."))},e}()},96252:e=>{"use strict";e.exports=self.fetch.bind(self),e.exports.default=e.exports},97813:(e,t,r)=>{"use strict";var n,i;r.d(t,{b:()=>n}),(i=n||(n={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"},98539:(e,t,r)=>{"use strict";var n=r(40896),i=r(46461),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>
vendor: 19,017 bytes, line 375
3750x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),c=s(o),u=c.write(n,i);return u!==o&&(c=c.slice(0,u)),c}if(ArrayBuffer.isView(e)){var l=e;if(N(l,Uint8Array)){var g=new Uint8Array(l);return f(g.buffer,g.byteOffset,g.byteLength)}return h(l)}if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(N(e,ArrayBuffer)||e&&N(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(N(e,SharedArrayBuffer)||e&&N(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var m=e.valueOf&&e.valueOf();if(null!=m&&m!==e)return a.from(m,t,r);var y=function(e){if(a.isBuffer(e)){var t=0|d(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(y)return y;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return u(e),s(e<0?0:0|d(e))}function h(e){for(var t=e.length<0?0:0|d(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),a.prototype),n}function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||N(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(i)return n?-1:C(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,r){var i,o,s,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=k[e[o]];return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=this,o=t,s=r,0===o&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length-1;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function m(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){var o;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,s=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,c/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*s}else -1!==l&&(o-=o-l),l=-1}else for(r+c>a&&(r=a-c),o=r;o>=0;o--){for(var h=!0,f=0;f<c;f++)if(u(e,o+f)!==u(t,f)){h=!1;break}if(h)return o}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,c,u=e[i],l=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(l=u);break;case 2:(192&(o=e[i+1]))==128&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=h}var f=n,d=f.length;if(d<=4096)return String.fromCharCode.apply(String,f);for(var p="",g=0;g<d;)p+=String.fromCharCode.apply(String,f.slice(g,g+=4096));return p}function E(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function T(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,o){return t*=1,r>>>=0,o||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return l(e)},a.allocUnsafeSlow=function(e){return l(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(N(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),N(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(N(o,Uint8Array))i+o.length>n.length?a.from(o).copy(n,i):Uint8Array.prototype.set.call(n,o,i);else if(a.isBuffer(o))o.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=o.length}return n},a.byteLength=p,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):g.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(N(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,c=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r),h=0;h<c;++h)if(u[h]!==l[h]){o=u[h],s=l[h];break}return o<s?-1:+(s<o)},a.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,c,u,l,h,f=this.length-t;if((void 0===r||r>f)&&(r=f),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var d=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a,c=parseInt(t.substr(2*s,2),16);if((a=c)!=a)break;e[r+s]=c}return s}(this,e,t,r);case"utf8":case"utf-8":return i=t,o=r,O(C(e,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return s=t,a=r,O(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,s,a);case"base64":return c=t,u=r,O(A(e),this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,h=r,O(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-l),this,l,h);default:if(d)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),d=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUintLE=a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUintBE=a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||E(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||E(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s<r&&(o*=256);)this[t+s]=e/o&255;return t+r},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),c=s.length;
375if(0===c)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=s[i%c]}return this};var S=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function N(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var k=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()}},e=>{var t=t=>e(e.s=t);e.O(0,[6593,8792],()=>(t(20446),t(77269))),_N_E=e.O()}]);
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.