PageSourceSearch

https://www.allbirds.co.uk/cdn/shop/t/3608/assets/use-amplitude-experiment.js

js allbirds.co.uk collected 2026-09-24 19:57:12 UTC 84,161 bytes, 1 lines download raw bytes

1import{m as ir,y as nr}from"./vue.esm-bundler.js";import{w as ft}from"./analytics-data.js";import{i as q,e as ve,w as ar,S as Ve}from"./ScrollTrigger.js";import{U as ze,t as He}from"./wunderkind-api.js";const or={AMPLITUDE_EXPERIMENT_EXPOSURE:"amplitude-experiment-exposure",AMPLITUDE_EXPERIMENT_INIT:"amplitude-experiment-init",AMPLITUDE_INIT_SESSION_REPLAY:"amplitude-init-session-replay",RUDDERSTACK_PAGE_LOAD:"rudderstack-page-load",RUDDERSTACK_QUERY_STRING_API:"rudderstack-query-string-api",SHOPIFY_ACCOUNT_PAGE_LOAD:"shopify-account-page-load",WUNDERKIND_PAGE_LOAD:"wunderkind-page-load"};let Ne=[];const Qi=()=>{document.addEventListener("RSA_Ready",()=>{q("[Allbirds pixel] - RudderStack Ready - RSA_Ready event triggered"),window.ALLBIRDS.Rudderstack.isReadyEventTriggered=!0,Ne.forEach(r=>{r()}),Ne=[],q("[Allbirds pixel] - RudderStack Ready - Pool - cleaned up")})},sr=(r,e="unknown")=>{if(typeof r!="function"){ve("[Allbirds pixel] - RudderStack Ready - callback is not a function",{callbackFn:r,callbackFnName:e},new Error("callbackFn is not a function"));return}const t=()=>{const i=e,n=r;try{q("[Allbirds pixel] - RudderStack Ready - callback triggered",{nameOfTheCallback:i}),window.ALLBIRDS.OneTrust.isOneTrustActiveGroupsReady()?n():window.ALLBIRDS.OneTrust.onConsentChange(()=>{n()})}catch(a){ve("[Allbirds pixel] - RudderStack Ready - error while triggering callback",{error:a,nameOfTheCallback:i})}};window.ALLBIRDS.Rudderstack.isReadyEventTriggered?(q("[Allbirds pixel] - RudderStack Ready - callback triggered immediately",{callbackFnName:e}),t()):(Ne.push(t),q("[Allbirds pixel] - RudderStack Ready - Pool - new callback added",{callbackFnName:e,poolSize:Ne.length}))};var ur=(function(){function r(){}return r.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:lr(),platform:"Web",os:void 0,deviceModel:void 0}},r})(),lr=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},cr=(function(){function r(){this.queue=[]}return r.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},r.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},r})(),X=function(){return X=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},X.apply(this,arguments)};function xe(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dt(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}var _e=function(r,e){var t,i,n=["string","number","boolean","undefined"],a=typeof r,o=typeof e;if(a!==o)return!1;try{for(var s=xe(n),c=s.next();!c.done;c=s.next()){var u=c.value;if(u===a)return r===e}}catch(p){t={error:p}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}if(r==null&&e==null)return!0;if(r==null||e==null||r.length!==e.length)return!1;var d=Array.isArray(r),g=Array.isArray(e);if(d!==g)return!1;if(d&&g){for(var l=0;l<r.length;l++)if(!_e(r[l],e[l]))return!1}else{var v=Object.keys(r).sort(),f=Object.keys(e).sort();if(!_e(v,f))return!1;var h=!0;return Object.keys(r).forEach(function(p){_e(r[p],e[p])||(h=!1)}),h}return!0},fr="$set",dr="$unset",hr="$clearAll";Object.entries||(Object.entries=function(r){for(var e=Object.keys(r),t=e.length,i=new Array(t);t--;)i[t]=[e[t],r[e[t]]];return i});var vr=(function(){function r(){this.identity={userProperties:{}},this.listeners=new Set}return r.prototype.editIdentity=function(){var e=this,t=X({},this.identity.userProperties),i=X(X({},this.identity),{userProperties:t});return{setUserId:function(n){return i.userId=n,this},setDeviceId:function(n){return i.deviceId=n,this},setUserProperties:function(n){return i.userProperties=n,this},setOptOut:function(n){return i.optOut=n,this},updateUserProperties:function(n){var a,o,s,c,u,d,g=i.userProperties||{};try{for(var l=xe(Object.entries(n)),v=l.next();!v.done;v=l.next()){var f=dt(v.value,2),h=f[0],p=f[1];switch(h){case fr:try{for(var x=(s=void 0,xe(Object.entries(p))),I=x.next();!I.done;I=x.next()){var m=dt(I.value,2),b=m[0],L=m[1];g[b]=L}}catch(K){s={error:K}
vendor: 17,644 bytes, line 1
1}finally{try{I&&!I.done&&(c=x.return)&&c.call(x)}finally{if(s)throw s.error}}break;case dr:try{for(var M=(u=void 0,xe(Object.keys(p))),W=M.next();!W.done;W=M.next()){var b=W.value;delete g[b]}}catch(K){u={error:K}}finally{try{W&&!W.done&&(d=M.return)&&d.call(M)}finally{if(u)throw u.error}}break;case hr:g={};break}}}catch(K){a={error:K}}finally{try{v&&!v.done&&(o=l.return)&&o.call(l)}finally{if(a)throw a.error}}return i.userProperties=g,this},commit:function(){return e.setIdentity(i),this}}},r.prototype.getIdentity=function(){return X({},this.identity)},r.prototype.setIdentity=function(e){var t=X({},this.identity);this.identity=X({},e),_e(t,this.identity)||this.listeners.forEach(function(i){i(e)})},r.prototype.addIdentityListener=function(e){this.listeners.add(e)},r.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},r})(),ce=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,pr=(function(){function r(){this.identityStore=new vr,this.eventBridge=new cr,this.applicationContextProvider=new ur}return r.getInstance=function(e){return ce.analyticsConnectorInstances||(ce.analyticsConnectorInstances={}),ce.analyticsConnectorInstances[e]||(ce.analyticsConnectorInstances[e]=new r),ce.analyticsConnectorInstances[e]},r})(),qe=function(r,e){return qe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},qe(r,e)};function Ot(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");qe(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Y=function(){return Y=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Y.apply(this,arguments)};function Nt(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(d){try{u(i.next(d))}catch(g){o(g)}}function c(d){try{u(i.throw(d))}catch(g){o(g)}}function u(d){d.done?a(d.value):n(d.value).then(s,c)}u((i=i.apply(r,[])).next())})}function Rt(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(d){return c([u,d])}}function c(u){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(d){u=[6,d],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function F(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Xe(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function Ye(r,e,t){if(arguments.length===2)for(var i=0,n=e.length,a;i<n;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return r.concat(a||Array.prototype.slice.call(e))}var y={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},gr=function(r){for(var e=[],t=0,i=0;i<r.length;i++){var n=r.charCodeAt(i);n<128?e[t++]=n:n<2048?(e[t++]=n>>6|192,e[t++]=n&63|128):(n&64512)==55296&&i+1<r.length&&(r.charCodeAt(i+1)&64512)==56320?(n=65536+((n&1023)<<10)+(r.charCodeAt(++i)&1023),e[t++]=n>>18|240,e[t++]=n>>12&63|128,e[t++]=n>>6&63|128,e[t++]=n&63|128):(e[t++]=n>>12|224,e[t++]=n>>6&63|128,e[t++]=n&63|128)}return Uint8Array.from(e)},Ie=-862048943,Te=461845907,ke=15,yr=13,mr=5,br=-430675100,Sr=function(r,e){e===void 0&&(e=0);for(var t=gr(r),i=t.length,n=i>>2,a=e,o=0;o<n;o++){var s=o<<2,c=Ar(t,s);a=wr(c,a)}var u=n<<2,d=0;switch(i-u){case 3:d^=t[u+2]<<16,d^=t[u+1]<<8,d^=t[u],d=Math.imul(d,Ie),d=he(d,ke),d=Math.imul(d,Te),a^=d;break;case 2:d^=t[u+1]<<8,d^=t[u],d=Math.imul(d,Ie),d=he(d,ke),d=Math.imul(d,Te),a^=d;break;case 1:d^=t[u],d=Math.imul(d,Ie),d=he(d,ke),d=Math.imul(d,Te),a^=d;break}return a^=i,Er(a)>>>0},wr=function(r,e){var t=r,i=e;return t=Math.imul(t,Ie),t=he(t,ke),t=Math.imul(t,Te),i^=t,i=he(i,yr),i=Math.imul(i,mr),i+br|0},Er=function(r){var e=r;return e^=e>>>16,e=Math.imul(e,-2048144789),e^=e>>>13,e=Math.imul(e,-1028477387),e^=e>>>16,e},he=function(r,e,t){t===void 0&&(t=32),e>t&&(e=e%t);var i=4294967295<<t-e>>>0,n=(r&i)>>>0>>>t-e>>>0;return(r<<e|n)>>>0},Ar=function(r,e){e===void 0&&(e=0);var t=r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3];return xr(t)},xr=function(r){return(r&-16777216)>>>24|(r&16711680)>>>8|(r&65280)<<8|(r&255)<<24},ht=function(r,e){var t,i;if(!(!e||e.length===0)){try{for(var n=F(e),a=n.next();!a.done;a=n.next()){var o=a.value;if(!o||!r||typeof r!="object")return;r=r[o]}}catch(s){t={error:s}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}if(r!=null)return r}},_r="(\\d+)\\.(\\d+)",Ir="(\\d+)",Tr="(-(([-\\w]+\\.?)*))?",kr="^".concat(_r,"(\\.").concat(Ir).concat(Tr,")?$"),Or=(function(){function r(e,t,i,n){n===void 0&&(n=void 0),this.major=e,this.minor=t,this.patch=i,this.preRelease=n}return r.parse=function(e){if(e){var t=new RegExp(kr).exec(e);if(t){var i=Number(t[1]),n=Number(t[2]);if(!(isNaN(i)||isNaN(n))){var a=Number(t[4])||0,o=t[5]||void 0;return new r(i,n,a,o)}}}},r.prototype.compareTo=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch||this.preRelease&&!e.preRelease?-1:!this.preRelease&&e.preRelease?1:this.preRelease&&e.preRelease?this.preRelease>e.preRelease?1:this.preRelease<e.preRelease?-1:0:0},r})(),Nr=(function(){function r(){}return r.prototype.evaluate=function(e,t){var i,n,a={},o={context:e,result:a};try{for(var s=F(t),c=s.next();!c.done;c=s.next()){var u=c.value,d=this.evaluateFlag(o,u);d&&(a[u.key]=d)}}catch(g){i={error:g}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return a},r.prototype.evaluateFlag=function(e,t){var i,n,a;try{for(var o=F(t.segments),s=o.next();!s.done;s=o.next()){var c=s.value;if(a=this.evaluateSegment(e,t,c),a){var u=Y(Y(Y({},t.metadata),c.metadata),a.metadata);a=Y(Y({},a),{metadata:u});break}}}catch(d){i={error:d}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},r.prototype.evaluateSegment=function(e,t,i){if(!i.conditions){var n=this.bucket(e,i);return n!==void 0?t.variants[n]:void 0}var a=this.evaluateConditions(e,i.conditions);if(a){var n=this.bucket(e,i);return n!==void 0?t.variants[n]:void 0}},r.prototype.evaluateConditions=function(e,t){var i,n,a,o;try{for(var s=F(t),c=s.next();!c.done;c=s.next()){var u=c.value,d=!0;try{for(var g=(a=void 0,F(u)),l=g.next();!l.done;l=g.next()){var v=l.value;if(d=this.matchCondition(e,v),!d)break}}catch(f){a={error:f}}finally{try{l&&!l.done&&(o=g.return)&&o.call(g)}finally{if(a)throw a.error}}if(d)return!0}}catch(f){i={error:f}}finally{try{c&&!c.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return!1},r.prototype.matchCondition=function(e,t){var i=ht(e,t.selector);if(i==null)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var n=this.coerceStringArray(i);return n?this.matchSet(n,t.op,t.values):!1}else{var a=this.coerceString(i);return a!==void 0?this.matchString(a,t.op,t.values):!1}},r.prototype.getHash=function(e){return Sr(e)},r.prototype.bucket=function(e,t){var i,n,a,o;if(!t.bucket)return t.variant;var s=this.coerceString(ht(e,t.bucket.selector));if(!s||s.length===0)return t.variant;var c="".concat(t.bucket.salt,"/").concat(s),u=this.getHash(c),d=u%100,g=Math.floor(u/100);try{for(var l=F(t.bucket.allocations),v=l.next();!v.done;v=l.next()){var f=v.value,h=f.range[0],p=f.range[1];if(d>=h&&d<p)try{for(var x=(a=void 0,F(f.distributions)),I=x.next();!I.done;I=x.next()){var m=I.value,b=m.range[0],L=m.range[1];if(g>=b&&g<L)return m.variant}}catch(M){a={error:M}}finally{try{I&&!I.done&&(o=x.return)&&o.call(x)}finally{if(a)throw a.error}}}}catch(M){i={error:M}}finally{try{v&&!v.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}return t.variant},r.prototype.matchNull=function(e,t){var i=this.containsNone(t);switch(e){case y.IS:case y.CONTAINS:case y.LESS_THAN:case y.LESS_THAN_EQUALS:case y.GREATER_THAN:case y.GREATER_THAN_EQUALS:case y.VERSION_LESS_THAN:case y.VERSION_LESS_THAN_EQUALS:case y.VERSION_GREATER_THAN:case y.VERSION_GREATER_THAN_EQUALS:case y.SET_IS:case y.SET_CONTAINS:case y.SET_CONTAINS_ANY:return i;case y.IS_NOT:case y.DOES_NOT_CONTAIN:case y.SET_DOES_NOT_CONTAIN:case y.SET_DOES_NOT_CONTAIN_ANY:return!i;default:return!1}},r.prototype.matchSet=function(e,t,i){switch(t){case y.SET_IS:return this.setEquals(e,i);case y.SET_IS_NOT:return!this.setEquals(e,i);case y.SET_CONTAINS:return this.matchesSetContainsAll(e,i);case y.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,i);case y.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,i);case y.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,i);default:return!1}},r.prototype.matchString=function(e,t,i){var n=this;switch(t){case y.IS:return this.matchesIs(e,i);case y.IS_NOT:return!this.matchesIs(e,i);case y.CONTAINS:return this.matchesContains(e,i);case y.DOES_NOT_CONTAIN:return!this.matchesContains(e,i);case y.LESS_THAN:case y.LESS_THAN_EQUALS:case y.GREATER_THAN:case y.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,i,function(a){return n.parseNumber(a)},this.comparator);case y.VERSION_LESS_THAN:case y.VERSION_LESS_THAN_EQUALS:case y.VERSION_GREATER_THAN:case y.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,i,function(a){return Or.parse(a)},this.versionComparator);case y.REGEX_MATCH:return this.matchesRegex(e,i);case y.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,i);default:return!1}},r.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var i=e.toLowerCase();if(i==="true"||i==="false")return t.some(function(n){return n.toLowerCase()===i})}return t.some(function(n){return e===n})},r.prototype.matchesContains=function(e,t){var i,n;try{for(var a=F(t),o=a.next();!o.done;o=a.next()){var s=o.value;if(e.toLowerCase().includes(s.toLowerCase()))return!0}}catch(c){i={error:c}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1},r.prototype.matchesComparable=function(e,t,i,n,a){var o=this,s=n(e),c=i.map(function(u){return n(u)}).filter(function(u){return u!==void 0});return s===void 0||c.length===0?i.some(function(u){return o.comparator(e,t,u)}):c.some(function(u){return a(s,t,u)})},r.prototype.comparator=function(e,t,i){switch(t){case y.LESS_THAN:case y.VERSION_LESS_THAN:return e<i;case y.LESS_THAN_EQUALS:case y.VERSION_LESS_THAN_EQUALS:return e<=i;case y.GREATER_THAN:case y.VERSION_GREATER_THAN:return e>i;case y.GREATER_THAN_EQUALS:case y.VERSION_GREATER_THAN_EQUALS:return e>=i;default:return!1}},r.prototype.versionComparator=function(e,t,i){var n=e.compareTo(i);switch(t){case y.LESS_THAN:case y.VERSION_LESS_THAN:return n<0;case y.LESS_THAN_EQUALS:case y.VERSION_LESS_THAN_EQUALS:return n<=0;case y.GREATER_THAN:case y.VERSION_GREATER_THAN:return n>0;case y.GREATER_THAN_EQUALS:case y.VERSION_GREATER_THAN_EQUALS:return n>=0;default:return!1}},r.prototype.matchesRegex=function(e,t){return t.some(function(i){return!!new RegExp(i).exec(e)})},r.prototype.containsNone=function(e){return e.some(function(t){return t==="(none)"})},r.prototype.containsBooleans=function(e){return e.some(function(t){switch(t.toLowerCase()){case"true":case"false":return!0;default:return!1}})},r.prototype.parseNumber=function(e){var t;return(t=Number(e))!==null&&t!==void 0?t:void 0},r.prototype.coerceString=function(e){if(e!=null)return typeof e=="object"?JSON.stringify(e):String(e)},r.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var i=e;return i.map(function(s){return t.coerceString(s)}).filter(Boolean)}var n=String(e);try{var a=JSON.parse(n);if(Array.isArray(a)){var i=e;return i.map(function(c){return t.coerceString(c)}).filter(Boolean)}else{var o=this.coerceString(n);return o?[o]:void 0}}catch{var o=this.coerceString(n);return o?[o]:void 0}},r.prototype.isSetOperator=function(e){switch(e){case y.SET_IS:case y.SET_IS_NOT:case y.SET_CONTAINS:case y.SET_DOES_NOT_CONTAIN:case y.SET_CONTAINS_ANY:case y.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},r.prototype.setEquals=function(e,t){var i=new Set(e),n=new Set(t);return i.size===n.size&&Ye([],Xe(n),!1).every(function(a){return i.has(a)})},r.prototype.matchesSetContainsAll=function(e,t){var i,n;if(e.length<t.length)return!1;try{for(var a=F(t),o=a.next();!o.done;o=a.next()){var s=o.value;if(!this.matchesIs(s,e))return!1}}catch(c){i={error:c}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!0},r.prototype.matchesSetContainsAny=function(e,t){var i,n;try{for(var a=F(t),o=a.next();!o.done;o=a.next()){var s=o.value;if(this.matchesIs(s,e))return!0}}catch(c){i={error:c}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1},r})(),Rr=function(r,e){var t,i,n=Y({},r),a=[],o=e||Object.keys(n);try{for(var s=F(o),c=s.next();!c.done;c=s.next()){var u=c.value,d=Ct(u,n);d&&a.push.apply(a,Ye([],Xe(d),!1))}}catch(g){t={error:g}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return a},Ct=function(r,e,t){var i,n;t===void 0&&(t=[]);var a=e[r];if(a){if(!a.dependencies||a.dependencies.length===0)return delete e[a.key],[a]}else return;t.push(a.key);var o=[],s=function(g){if(t.some(function(v){return v===g}))throw Error("Detected a cycle between flags ".concat(t));var l=Ct(g,e,t);l&&o.push.apply(o,Ye([],Xe(l),!1))};try{for(var c=F(a.dependencies),u=c.next();!u.done;u=c.next()){var d=u.value;s(d)}}catch(g){i={error:g}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return o.push(a),t.pop(),delete e[a.key],o};const Pt="3.7.7",Cr=Pt,oe=typeof Buffer=="function",vt=typeof TextDecoder=="function"?new TextDecoder:void 0,pt=typeof TextEncoder=="function"?new TextEncoder:void 0,Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",fe=Array.prototype.slice.call(Pr),Ae=(r=>{let e={};return r.forEach((t,i)=>e[t]=i),e})(fe),Lr=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,P=String.fromCharCode.bind(String),gt=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):r=>new Uint8Array(Array.prototype.slice.call(r,0)),Lt=r=>r.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Ut=r=>r.replace(/[^A-Za-z0-9\+\/]/g,""),Dt=r=>{let e,t,i,n,a="";const o=r.length%3;for(let s=0;s<r.length;){if((t=r.charCodeAt(s++))>255||(i=r.charCodeAt(s++))>255||(n=r.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=t<<16|i<<8|n,a+=fe[e>>18&63]+fe[e>>12&63]+fe[e>>6&63]+fe[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},Je=typeof btoa=="function"?r=>btoa(r):oe?r=>Buffer.from(r,"binary").toString("base64"):Dt,je=oe?r=>Buffer.from(r).toString("base64"):r=>{let t=[];for(let i=0,n=r.length;i<n;i+=4096)t.push(P.apply(null,r.subarray(i,i+4096)));return Je(t.join(""))},Oe=(r,e=!1)=>e?Lt(je(r)):je(r),Ur=r=>{if(r.length<2){var e=r.charCodeAt(0);return e<128?r:e<2048?P(192|e>>>6)+P(128|e&63):P(224|e>>>12&15)+P(128|e>>>6&63)+P(128|e&63)}else{var e=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return P(240|e>>>18&7)+P(128|e>>>12&63)+P(128|e>>>6&63)+P(128|e&63)}},Dr=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Mt=r=>r.replace(Dr,Ur),yt=oe?r=>Buffer.from(r,"utf8").toString("base64"):pt?r=>je(pt.encode(r)):r=>Je(Mt(r)),ae=(r,e=!1)=>e?Lt(yt(r)):yt(r),mt=r=>ae(r,!0),Mr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Fr=r=>{switch(r.length){case 4:var e=(7&r.charCodeAt(0))<<18|(63&r.charCodeAt(1))<<12|(63&r.charCodeAt(2))<<6|63&r.charCodeAt(3),t=e-65536;return P((t>>>10)+55296)+P((t&1023)+56320);case 3:return P((15&r.charCodeAt(0))<<12|(63&r.charCodeAt(1))<<6|63&r.charCodeAt(2));default:return P((31&r.charCodeAt(0))<<6|63&r.charCodeAt(1))}},Ft=r=>r.replace(Mr,Fr),Bt=r=>
1{if(r=r.replace(/\s+/g,""),!Lr.test(r))throw new TypeError("malformed base64.");r+="==".slice(2-(r.length&3));let e,t="",i,n;for(let a=0;a<r.length;)e=Ae[r.charAt(a++)]<<18|Ae[r.charAt(a++)]<<12|(i=Ae[r.charAt(a++)])<<6|(n=Ae[r.charAt(a++)]),t+=i===64?P(e>>16&255):n===64?P(e>>16&255,e>>8&255):P(e>>16&255,e>>8&255,e&255);return t},Ze=typeof atob=="function"?r=>atob(Ut(r)):oe?r=>Buffer.from(r,"base64").toString("binary"):Bt,Vt=oe?r=>gt(Buffer.from(r,"base64")):r=>gt(Ze(r).split("").map(e=>e.charCodeAt(0))),zt=r=>Vt(Ht(r)),Br=oe?r=>Buffer.from(r,"base64").toString("utf8"):vt?r=>vt.decode(Vt(r)):r=>Ft(Ze(r)),Ht=r=>Ut(r.replace(/[-_]/g,e=>e=="-"?"+":"/")),Ke=r=>Br(Ht(r)),Vr=r=>{if(typeof r!="string")return!1;const e=r.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},Gt=r=>({value:r,enumerable:!1,writable:!0,configurable:!0}),qt=function(){const r=(e,t)=>Object.defineProperty(String.prototype,e,Gt(t));r("fromBase64",function(){return Ke(this)}),r("toBase64",function(e){return ae(this,e)}),r("toBase64URI",function(){return ae(this,!0)}),r("toBase64URL",function(){return ae(this,!0)}),r("toUint8Array",function(){return zt(this)})},jt=function(){const r=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,Gt(t));r("toBase64",function(e){return Oe(this,e)}),r("toBase64URI",function(){return Oe(this,!0)}),r("toBase64URL",function(){return Oe(this,!0)})},zr=()=>{qt(),jt()},Qe={version:Pt,VERSION:Cr,atob:Ze,atobPolyfill:Bt,btoa:Je,btoaPolyfill:Dt,fromBase64:Ke,toBase64:ae,encode:ae,encodeURI:mt,encodeURL:mt,utob:Mt,btou:Ft,decode:Ke,isValid:Vr,fromUint8Array:Oe,toUint8Array:zt,extendString:qt,extendUint8Array:jt,extendBuiltins:zr};var Kt=(function(r){Ot(e,r);function e(t,i){var n=r.call(this,i)||this;return n.statusCode=t,Object.setPrototypeOf(n,e.prototype),n}return e})(Error),We=(function(r){Ot(e,r);function e(t){var i=r.call(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return e})(Error),Hr=(function(){function r(e,t,i){this.deploymentKey=e,this.serverUrl=t,this.httpClient=i}return r.prototype.getVariants=function(e,t){return Nt(this,void 0,void 0,function(){var i,n,a,o;return Rt(this,function(s){switch(s.label){case 0:return i=Qe.encodeURL(JSON.stringify(e)),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":i},t?.flagKeys&&(n["X-Amp-Exp-Flag-Keys"]=Qe.encodeURL(JSON.stringify(t.flagKeys))),t?.trackingOption&&(n["X-Amp-Exp-Track"]=t.trackingOption),t?.exposureTrackingOption&&(n["X-Amp-Exp-Exposure-Track"]=t.exposureTrackingOption),a=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),t?.evaluationMode&&a.searchParams.append("eval_mode",t?.evaluationMode),t?.deliveryMethod&&a.searchParams.append("delivery_method",t?.deliveryMethod),[4,this.httpClient.request({requestUrl:a.toString(),method:"GET",headers:n,timeoutMillis:t?.timeoutMillis})];case 1:if(o=s.sent(),o.status!=200)throw new Kt(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},r})(),Gr=(function(){function r(e,t,i){this.deploymentKey=e,this.serverUrl=t,this.httpClient=i}return r.prototype.getFlags=function(e){return Nt(this,void 0,void 0,function(){var t,i,n;return Rt(this,function(a){switch(a.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},e?.libraryName&&e?.libraryVersion&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),e?.user&&(t["X-Amp-Exp-User"]=Qe.encodeURL(JSON.stringify(e.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+(e?.deliveryMethod?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:e?.timeoutMillis})];case 1:if(i=a.sent(),i.status!=200)throw Error("Flags error response: status=".concat(i.status));return n=JSON.parse(i.body),[2,n.reduce(function(o,s){return o[s.key]=s,o},{})]}})})},r})(),O=typeof globalThis<"u"?globalThis:global||self,Z=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},qr=function(){var r=Z();if(r)try{var e="EXP_test";return r.localStorage.setItem(e,e),r.localStorage.removeItem(e),!0}catch{return!1}return!1},jr=(function(){function r(e,t){this.poller=void 0,this.action=e,this.ms=t}return r.prototype.start=function(){this.poller||(this.poller=O.setInterval(this.action,this.ms),this.action())},r.prototype.stop=function(){this.poller&&(O.clearInterval(this.poller),this.poller=void 0)},r})(),de={exports:{}},Kr=de.exports,bt;function Qr(){return bt||(bt=1,(function(r,e){(function(t,i){var n="0.7.33",a="",o="?",s="function",c="undefined",u="object",d="str
1ing",g="major",l="model",v="name",f="type",h="vendor",p="version",x="architecture",I="console",m="mobile",b="tablet",L="smarttv",M="wearable",W="embedded",K=350,Ce="Amazon",$="Apple",et="ASUS",tt="BlackBerry",ee="Browser",pe="Chrome",$t="Edge",ge="Firefox",ye="Google",rt="Huawei",Pe="LG",Le="Microsoft",it="Motorola",me="Opera",Ue="Samsung",nt="Sharp",be="Sony",De="Xiaomi",Me="Zebra",at="Facebook",er=function(S,_){var w={};for(var k in S)_[k]&&_[k].length%2===0?w[k]=_[k].concat(S[k]):w[k]=S[k];return w},Se=function(S){for(var _={},w=0;w<S.length;w++)_[S[w].toUpperCase()]=S[w];return _},ot=function(S,_){return typeof S===d?se(_).indexOf(se(S))!==-1:!1},se=function(S){return S.toLowerCase()},tr=function(S){return typeof S===d?S.replace(/[^\d\.]/g,a).split(".")[0]:i},Fe=function(S,_){if(typeof S===d)return S=S.replace(/^\s\s*/,a),typeof _===c?S:S.substring(0,K)},ue=function(S,_){for(var w=0,k,E,Ee,T,le,j;w<_.length&&!le;){var lt=_[w],ct=_[w+1];for(k=E=0;k<lt.length&&!le;)if(le=lt[k++].exec(S),le)for(Ee=0;Ee<ct.length;Ee++)j=le[++E],T=ct[Ee],typeof T===u&&T.length>0?T.length===2?typeof T[1]==s?this[T[0]]=T[1].call(this,j):this[T[0]]=T[1]:T.length===3?typeof T[1]===s&&!(T[1].exec&&T[1].test)?this[T[0]]=j?T[1].call(this,j,T[2]):i:this[T[0]]=j?j.replace(T[1],T[2]):i:T.length===4&&(this[T[0]]=j?T[3].call(this,j.replace(T[1],T[2])):i):this[T]=j||i;w+=2}},Be=function(S,_){for(var w in _)if(typeof _[w]===u&&_[w].length>0){for(var k=0;k<_[w].length;k++)if(ot(_[w][k],S))return w===o?i:w}else if(ot(_[w],S))return w===o?i:w;return S},rr={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},st={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ut={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,p],[/opios[\/ ]+([\w\.]+)/i],[p,[v,me+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[v,me]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[v,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[v,"UC"+ee]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[v,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[v,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[v,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+ee],p],[/\bfocus\/([\w\.]+)/i],[p,[v,ge+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[v,me+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[v,me+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[v,"MIUI "+ee]],[/fxios\/([-\w\.]+)/i],[p,[v,ge]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+ee]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+ee],p],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[v,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,at],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[v,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[v,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[v,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,pe+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[v,"Android "+ee]],[/(chrome|omniweb|arora|[t
vendor: 4,774 bytes, line 1
1izenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[p,Be,rr]],[/(webkit|khtml)\/([\w\.]+)/i],[v,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[v,ge+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[v,p],[/(cobalt)\/([\w\.]+)/i],[v,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[x,"amd64"]],[/(ia32(?=;))/i],[[x,se]],[/((?:i[346]|x)86)[;\)]/i],[[x,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[x,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[x,"armhf"]],[/windows (ce|mobile); ppc;/i],[[x,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[x,/ower/,a,se]],[/(sun4\w)[;\)]/i],[[x,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[x,se]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[h,Ue],[f,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[h,Ue],[f,m]],[/((ipod|iphone)\d+,\d+)/i],[l,[h,$],[f,m]],[/(ipad\d+,\d+)/i],[l,[h,$],[f,b]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[h,$],[f,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,$],[f,b]],[/(macintosh);/i],[l,[h,$]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[h,rt],[f,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[h,rt],[f,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[h,De],[f,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[h,De],[f,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[h,"OPPO"],[f,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[h,"Vivo"],[f,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[h,"Realme"],[f,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[h,it],[f,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[h,it],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[h,Pe],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[h,Pe],[f,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[h,"Lenovo"],[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[h,"Nokia"],[f,m]],[/(pixel c)\b/i],[l,[h,ye],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[h,ye],[f,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,be],[f,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[h,be],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[h,"OnePlus"],[f,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[h,Ce],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[h,Ce],[f,m]],[/(playbook);[-\w\),; ]+(rim)/i],[l,h,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[h,tt],[f,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[h,et],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[h,et],[f,m]],[/(nexus 9)/i],[l,[h,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[l,/_/g," "],[f,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[h,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[h,"Meizu"],[f,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[h,nt],[f,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 6,337 bytes, line 1
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,l,[f,m]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,l,[f,b]],[/(surface duo)/i],[l,[h,Le],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[h,"Fairphone"],[f,m]],[/(u304aa)/i],[l,[h,"AT&T"],[f,m]],[/\bsie-(\w*)/i],[l,[h,"Siemens"],[f,m]],[/\b(rct\w+) b/i],[l,[h,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[l,[h,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[l,[h,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[h,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[l,[h,"NuVision"],[f,b]],[/\b(k88) b/i],[l,[h,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[l,[h,"ZTE"],[f,m]],[/\b(gen\d{3}) b.+49h/i],[l,[h,"Swiss"],[f,m]],[/\b(zur\d{3}) b/i],[l,[h,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[l,[h,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],l,[f,b]],[/\b(ns-?\w{0,9}) b/i],[l,[h,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[h,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],l,[f,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],l,[f,m]],[/\b(ph-1) /i],[l,[h,"Essential"],[f,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[h,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[l,[h,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[l,[h,"Rotor"],[f,b]],[/(shield[\w ]+) b/i],[l,[h,"Nvidia"],[f,b]],[/(sprint) (\w+)/i],[h,l,[f,m]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,Le],[f,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,Me],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,Me],[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,l,[f,I]],[/droid.+; (shield) bui/i],[l,[h,"Nvidia"],[f,I]],[/(playstation [345portablevi]+)/i],[l,[h,be],[f,I]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[h,Le],[f,I]],[/smart-tv.+(samsung)/i],[h,[f,L]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,Ue],[f,L]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,Pe],[f,L]],[/(apple) ?tv/i],[h,[l,$+" TV"],[f,L]],[/crkey/i],[[l,pe+"cast"],[h,ye],[f,L]],[/droid.+aft(\w)( bui|\))/i],[l,[h,Ce],[f,L]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[h,nt],[f,L]],[/(bravia[\w ]+)( bui|\))/i],[l,[h,be],[f,L]],[/(mitv-\w{5}) bui/i],[l,[h,De],[f,L]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,Fe],[l,Fe],[f,L]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,L]],[/((pebble))app/i],[h,l,[f,M]],[/droid.+; (glass) \d/i],[l,[h,ye],[f,M]],[/droid.+; (wt63?0{2,3})\)/i],[l,[h,Me],[f,M]],[/(quest( 2)?)/i],[l,[h,at],[f,M]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,W]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[f,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,m]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[v,$t+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[v,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[v,[p,Be,st]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,"Windows"],[p,Be,st]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,p],[/\(bb(10);/i],[p,[v,tt]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[v,ge+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[v,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[v,pe+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[v,"Chromium OS"],p],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,p],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[v,p]]},V=function(S,_){if(typeof S===u&&(_=S,S=i),!(this instanceof V))return new V(S,_).getResult();var w=S||(typeof t!==c&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent:a),k=_?er(ut,_):ut;return this.getBrowser=function(){var E={};return E[v]=i,E[p]=i,ue.call(E,w,k.browser),E.major=tr(E.version),E},this.getCPU=function(){var E={};return E[x]=i,ue.call(E,w,k.cpu),E},this.getDevice=function(){var E={};return E[h]=i,E[l]=i,E[f]=i,ue.call(E,w,k.device),E},this.getEngine=function(){var E={};return E[v]=i,E[p]=i,ue.call(E,w,k.engine),E},this.getOS=function(){var E={};return E[v]=i,E[p]=i,ue.call(E,w,k.os),E},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return w},this.setUA=function(E){return w=typeof E===d&&E.length>K?Fe(E,K):E,this},this.setUA(w),this};
vendor: 8,922 bytes, line 1
1V.VERSION=n,V.BROWSER=Se([v,p,g]),V.CPU=Se([x]),V.DEVICE=Se([l,h,f,I,m,L,b,M,W]),V.ENGINE=V.OS=Se([v,p]),r.exports&&(e=r.exports=V),e.UAParser=V;var te=typeof t!==c&&(t.jQuery||t.Zepto);if(te&&!te.ua){var we=new V;te.ua=we.getResult(),te.ua.get=function(){return we.getUA()},te.ua.set=function(S){we.setUA(S);var _=we.getResult();for(var w in _)te.ua[w]=_[w]}}})(typeof window=="object"?window:Kr)})(de,de.exports)),de.exports}var Wr=Qr(),A=function(){return A=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},A.apply(this,arguments)};function R(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(d){try{u(i.next(d))}catch(g){o(g)}}function c(d){try{u(i.throw(d))}catch(g){o(g)}}function u(d){d.done?a(d.value):n(d.value).then(s,c)}u((i=i.apply(r,e||[])).next())})}function C(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(d){return c([u,d])}}function c(u){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(d){u=[6,d],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function J(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function U(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function B(r,e,t){if(arguments.length===2)for(var i=0,n=e.length,a;i<n;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return r.concat(a||Array.prototype.slice.call(e))}var St=function(r,e){var t,i;e===void 0&&(e=!1);var n=$e(r,e),a=void 0,o=O.document.cookie.split("; ");try{for(var s=J(o),c=s.next();!c.done;c=s.next()){var u=c.value,d=U(u.split("=",2),2),g=d[0],l=d[1];g===n&&(a=decodeURIComponent(l))}}catch(p){t={error:p}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}if(a)try{if(e){var v=atob(a);return JSON.parse(decodeURIComponent(v))}var f=a.split("."),h=void 0;return f.length>=2&&f[1]&&(h=atob(f[1])),{deviceId:f[0],userId:h}}catch{return}},Xr=function(r){var e=$e(r,!0);try{var t=O.localStorage.getItem(e);if(!t)return;var i=JSON.parse(t);return typeof i!="object"?void 0:i}catch{return}},Yr=function(r){var e=$e(r,!0);try{var t=O.sessionStorage.getItem(e);if(!t)return;var i=JSON.parse(t);return typeof i!="object"?void 0:i}catch{return}},$e=function(r,e){if(e)return r?.length<10?void 0:"AMP_".concat(r.substring(0,10));if(!(r?.length<6))return"amp_".concat(r.substring(0,6))},Jr=(function(){function r(e,t,i){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=i,this.loadPersistedState(),i<=0&&(this.setup=void 0)}return r.prototype.setup=function(e,t){return R(this,void 0,void 0,function(){return C(this,function(i){return e?.automaticFetchOnAmplitudeIdentityChange&&this.identityStore.addIdentityListener(function(){t?.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},r.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},r.prototype.track=function(e){return this.eventBridge.receiver?(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0):!1},r.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=St(this.apiKey,!0);return e?(this.commitIdentityToConnector(e),!0):(e=St(this.apiKey,!1),e?(this.commitIdentityToConnector(e),!0):(e=Xr(this.apiKey),e?(this.commitIdentityToConnector(e),!0):(e=Yr(this.apiKey),e?(this.commitIdentityToConnector(e),!0):!1)))},r.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},r.prototype.waitForConnectorIdentity=function(e){return R(this,void 0,void 0,function(){var t,i=this;return C(this,function(n){return t=this.identityStore.getIdentity(),!t.userId&&!t.deviceId?[2,Promise.race([new Promise(function(a){var o=function(){a(),i.identityStore.removeIdentityListener(o)};i.identityStore.addIdentityListener(o)}),new Promise(function(a,o){O.setTimeout(o,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]:[2]})})},r})();function Zr(r,e){return e=e||{},new Promise(function(t,i){var n=new XMLHttpRequest,a=[],o=[],s={},c=function(){return{ok:(n.status/100|0)==2,statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(JSON.parse(n.responseText))},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:c,headers:{keys:function(){return a},entries:function(){return o},get:function(d){return s[d.toLowerCase()]},has:function(d){return d.toLowerCase()in s}}}};for(var u in n.open(e.method||"get",r,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(d,g,l){a.push(g=g.toLowerCase()),o.push([g,l]),s[g]=s[g]?s[g]+","+l:l}),t(c())},n.onerror=i,n.withCredentials=e.credentials=="include",e.headers)n.setRequestHeader(u,e.headers[u]);n.send(e.body||null)})}var $r=O.fetch||Zr,ei=function(r,e){return e==null||e<=0?r:new Promise(function(t,i){O.setTimeout(function(){i(new We("Request timeout after "+e+" milliseconds"))},e),r.then(t,i)})},ti=function(r,e,t,i,n){var a=function(){return R(void 0,void 0,void 0,function(){var o,s,c;return C(this,function(u){switch(u.label){case 0:return[4,$r(r,{method:e,headers:t,body:i})];case 1:return o=u.sent(),c={status:o.status},[4,o.text()];case 2:return s=(c.body=u.sent(),c),[2,s]}})})};return ei(a(),n)},ri=(function(){function r(e){this.client=e}return r.prototype.request=function(e){return R(this,void 0,void 0,function(){return C(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},r})(),Qt={request:ti},G;(function(r){r[r.Disable=0]="Disable",r[r.Error=1]="Error",r[r.Warn=2]="Warn",r[r.Info=3]="Info",r[r.Debug=4]="Debug",r[r.Verbose=5]="Verbose"})(G||(G={}));var Q;(function(r){r.LocalStorage="localStorage",r.InitialVariants="initialVariants"})(Q||(Q={}));var N;(function(r){r.LocalStorage="storage",r.InitialVariants="initial",r.SecondaryLocalStorage="secondary-storage",r.SecondaryInitialVariants="secondary-initial",r.FallbackInline="fallback-inline",r.FallbackConfig="fallback-config",r.LocalEvaluation="local-evaluation"})(N||(N={}));var wt=function(r){return!r||r===N.FallbackInline||r===N.FallbackConfig||r===N.SecondaryInitialVariants},ne={debug:!1,logLevel:G.Error,loggerProvider:null,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:Q.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:Qt},Et="1.20.4",ii=512,ni=(function(){function r(e,t){var i=this,n;this.isReady=new Promise(function(o){i.resolve=o}),this.config=e,this.client=t;var a=(n=e.instanceName)!==null&&n!==void 0?n:ne.instanceName;this.queue=new oi(a),this.cache=new ai(a)}return r.prototype.ready=function(){return this.integration?this.isReady:Prom
1ise.resolve()},r.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},r.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},r.prototype.track=function(e,t){if(this.cache.shouldTrack(e,t)){var i=this.getExposureEvent(e);this.queue.push(i)}},r.prototype.getExposureEvent=function(e){var t,i,n,a={eventType:"$exposure",eventProperties:e};return!((t=e.metadata)===null||t===void 0)&&t.exposureEvent?a={eventType:(i=e.metadata)===null||i===void 0?void 0:i.exposureEvent,eventProperties:e}:((n=e.metadata)===null||n===void 0?void 0:n.deliveryMethod)==="web"&&(a={eventType:"$impression",eventProperties:e}),a},r})(),ai=(function(){function r(e){this.isSessionStorageAvailable=si(),this.inMemoryCache={},this.identity={},this.storageKey="EXP_sent_v3_".concat(e),this.isSessionStorageAvailable&&(O.sessionStorage.removeItem("EXP_sent_".concat(e)),O.sessionStorage.removeItem("EXP_sent_v2_".concat(e)))}return r.prototype.shouldTrack=function(e,t){var i,n;if(((i=e.metadata)===null||i===void 0?void 0:i.deliveryMethod)==="web")return!0;var a={userId:t?.user_id,deviceId:t?.device_id};this.identityEquals(this.identity,a)||this.clearCache(),this.identity=a,this.loadCache();var o=e.flag_key in this.inMemoryCache,s=this.inMemoryCache[e.flag_key],c=(n=e.variant)!==null&&n!==void 0?n:null,u=s??null,d=!1;return(!o||u!==c)&&(d=!0,this.inMemoryCache[e.flag_key]=c),this.storeCache(),d},r.prototype.clearCache=function(){this.inMemoryCache={},this.isSessionStorageAvailable&&O.sessionStorage.removeItem(this.storageKey)},r.prototype.identityEquals=function(e,t){return e.userId&&t.userId?e.userId===t.userId:!e.userId&&!t.userId?e.deviceId===t.deviceId:!1},r.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=O.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},r.prototype.storeCache=function(){if(this.isSessionStorageAvailable)try{O.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))}catch{}},r})(),oi=(function(){function r(e,t){t===void 0&&(t=ii),this.isLocalStorageAvailable=qr(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return r.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},r.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=O.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},r.prototype.flush=function(){if(this.tracker&&this.inMemoryQueue.length!==0){for(var e=0;e<this.inMemoryQueue.length;e++)try{if(!this.tracker(this.inMemoryQueue[e]))break}catch{break}this.inMemoryQueue=this.inMemoryQueue.slice(e),this.inMemoryQueue.length===0&&this.poller&&(O.clearInterval(this.poller),this.poller=void 0)}},r.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=O.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},r.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),O.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},r.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},r})(),si=function(){var r=Z();if(r)try{var e="EXP_test";return r.sessionStorage.setItem(e,e),r.sessionStorage.removeItem(e),!0}catch{return!1}return!1},ui=(function(){function r(e,t){t===void 0&&(t=G.Error),this.logger=e,this.logLevel=t}return r.prototype.error=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=G.Error&&(t=this.logger).error.apply(t,B([e],U(i),!1))},r.prototype.warn=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=G.Warn&&(t=this.logger).warn.apply(t,B([e],U(i),!1))},r.prototype.info=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=G.Info&&(t=this.logger).info.apply(t,B([e],U(i),!1))},r.prototype.debug=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=G.Debug&&(t=this.logger).debug.apply(t,B([e],U(i),!1))},r.prototype.verbose=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=G.Verbose&&(t=this.logger).verbose.apply(t,B([e],U(i),!1))},r})(),li=(function(){function r(){}return r.prototype.error=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.error.apply(console,B([e],U(t),!1))},r.prototype.warn=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.warn.apply(console,B([e],U(t),!1))},r.prototype.info=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.info.apply(console,B([e],U(t),!1))},r.prototype.debug=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.debug.apply(console,B([e],U(t),!1))},r.prototype.verbose=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.debug.apply(console,B([e],U(t),!1))},r})(),Re=(function(){function r(){this.globalScope=Z()}return r.prototype.get=function(e){var t;return(t=this.globalScope)===null||t===void 0?void 0:t.localStorage.getItem(e)},r.prototype.put=function(e,t){var i;(i=this.globalScope)===null||i===void 0||i.localStorage.setItem(e,t)},r.prototype.delete=function(e){var t;(t=this.globalScope)===null||t===void 0||t.localStorage.removeItem(e)},r})(),ci=function(r,e,t){var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i);return new Wt(n,t,Xt)},fi=function(r,e,t){t===void 0&&(t=new Re);var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i,"-flags");return new Wt(n,t)},di=function(r,e,t){t===void 0&&(t=new Re);var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i,"-variants-options");return new hi(n,t)},hi=(function(){function r(e,t){this.namespace=e,this.storage=t}return r.prototype.get=function(){return this.value},r.prototype.put=function(e){this.value=e},r.prototype.load=function(){var e=this.storage.get(this.namespace);e&&(this.value=JSON.parse(e))},r.prototype.store=function(){this.value===void 0?this.storage.delete(this.namespace):this.storage.put(this.namespace,JSON.stringify(this.value))},r}
vendor: 9,207 bytes, line 1
1)(),Wt=(function(){function r(e,t,i){this.cache={},this.namespace=e,this.storage=t,this.transformer=i}return r.prototype.get=function(e){return this.cache[e]},r.prototype.getAll=function(){return A({},this.cache)},r.prototype.put=function(e,t){this.cache[e]=t},r.prototype.putAll=function(e){var t,i;try{for(var n=J(Object.keys(e)),a=n.next();!a.done;a=n.next()){var o=a.value;this.cache[o]=e[o]}}catch(s){t={error:s}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},r.prototype.remove=function(e){delete this.cache[e]},r.prototype.clear=function(){this.cache={}},r.prototype.load=function(){var e,t,i=this.storage.get(this.namespace),n;try{n=JSON.parse(i)||{}}catch{return}var a={};try{for(var o=J(Object.keys(n)),s=o.next();!s.done;s=o.next()){var c=s.value;try{var u=void 0;this.transformer?u=this.transformer(n[c]):u=n[c],u&&(a[c]=u)}catch{}}}catch(d){e={error:d}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(a)},r.prototype.store=function(e){e===void 0&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},r})(),Xt=function(r){if(typeof r=="string")return{key:r,value:r};if(typeof r=="object"){var e=r.key,t=r.value,i=r.payload,n=r.metadata,a=r.expKey;n&&n.experimentKey?a=n.experimentKey:a&&(n=n||{},n.experimentKey=a);var o={};return e?o.key=e:t&&(o.key=t),t&&(o.value=t),n&&(o.metadata=n),i&&(o.payload=i),a&&(o.expKey=a),o}},Yt=(function(){function r(){this.globalScope=Z()}return r.prototype.get=function(e){var t;return(t=this.globalScope)===null||t===void 0?void 0:t.sessionStorage.getItem(e)},r.prototype.put=function(e,t){var i;(i=this.globalScope)===null||i===void 0||i.sessionStorage.setItem(e,t)},r.prototype.delete=function(e){var t;(t=this.globalScope)===null||t===void 0||t.sessionStorage.removeItem(e)},r})(),vi=function(r,e,t,i){var n,a="[Experiment] Exposure",o=t?.value,s="[Experiment] ".concat(e);return{name:a,user:r,key:e,variant:t,userProperty:s,properties:{key:e,variant:o,source:i},userProperties:(n={},n[s]=o,n)}},H=function(r){return r==null},Ge=function(r){return H(r)?!0:r&&Object.keys(r).length===0},pi=function(r){var e,t;if(!r||typeof r!="object")return{};var i={};try{for(var n=J(Object.entries(r)),a=n.next();!a.done;a=n.next()){var o=U(a.value,2),s=o[0],c=o[1];H(c)||(i[s]=c)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},At=function(r){var e;return((e=r?.metadata)===null||e===void 0?void 0:e.evaluationMode)==="local"},gi=(function(){function r(e,t,i,n){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=i,this.scalar=n}return r.prototype.start=function(e){return R(this,void 0,void 0,function(){return C(this,function(t){switch(t.label){case 0:if(!this.started)this.started=!0;else throw Error("Backoff already started");return[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},r.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},r.prototype.backoff=function(e,t,i){return R(this,void 0,void 0,function(){var n=this;return C(this,function(a){return this.done?[2]:(this.timeoutHandle=O.setTimeout(function(){return R(n,void 0,void 0,function(){var o,s;return C(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),[4,e()];case 1:return c.sent(),[3,3];case 2:return c.sent(),o=t+1,o<this.attempts&&(s=Math.min(i*this.scalar,this.max),this.backoff(e,o,s)),[3,3];case 3:return[2]}})})},i),[2])})})},r})(),yi=function(r){var e,t,i,n;if(!r)return{};var a={user:r},o=Z();o&&(a.page={url:o.location.href});var s={};if(!r.groups)return a;try{for(var c=J(Object.keys(r.groups)),u=c.next();!u.done;u=c.next()){var d=u.value,g=r.groups[d];if(g.length>0&&g[0]){var l=g[0],v={group_name:l},f=(n=(i=r.group_properties)===null||i===void 0?void 0:i[d])===null||n===void 0?void 0:n[l];f&&Object.keys(f).length>0&&(v.group_properties=f),s[d]=v}}}catch(h){e={error:h}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}return Object.keys(s).length>0&&(a.groups=s),delete a.user.groups,delete a.user.group_properties,a},D=function(r){return r==null?{}:typeof r=="string"?{key:r,value:r}:r},xt=function(r){if(!r)return{};var e=void 0;r.metadata&&(e=r.metadata.experimentKey);var t={};return r.key&&(t.key=r.key),r.value&&(t.value=r.value),r.payload&&(t.payload=r.payload),e&&(t.expKey=e),r.metadata&&(t.metadata=r.metadata),t},mi=(function(){function r(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return r.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},r.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},r.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},r})(),bi=(function(){function r(e){this.tracked={},this.identity={},this.exposureTrackingProvider=e}return r.prototype.track=function(e,t){var i={userId:t?.user_id,deviceId:t?.device_id};this.identityEquals(this.identity,i)||(this.tracked={}),this.identity=i;var n=e.flag_key in this.tracked,a=this.tracked[e.flag_key];n&&a===e.variant||(this.tracked[e.flag_key]=e.variant,this.exposureTrackingProvider.track(e))},r.prototype.identityEquals=function(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId},r})(),Si=1e4,wi=8,Ei=500,Ai=1e4,xi=1.5,_t=6e4,_i="https://api.lab.eu.amplitude.com",Ii="https://flag.lab.eu.amplitude.com",Ti=(function(){function r(e,t){var i=this,n,a,o,s;this.engine=new Nr,this.isRunning=!1,this.apiKey=e,t=pi(t),this.config=A(A(A({},ne),t),{serverUrl:t?.serverUrl||(((n=t?.serverZone)===null||n===void 0?void 0:n.toLowerCase())==="eu"?_i:ne.serverUrl),flagsServerUrl:t?.flagsServerUrl||(((a=t?.serverZone)===null||a===void 0?void 0:a.toLowerCase())==="eu"?Ii:ne.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<_t?_t:(o=t.flagConfigPollingIntervalMillis)!==null&&o!==void 0?o:ne.flagConfigPollingIntervalMillis}),this.logger=new ui(this.config.loggerProvider||new li,r.getLogLevel(t));var c=(s=this.config)===null||s===void 0?void 0:s.internalInstanceNameSuffix;if(this.isWebExperiment=c==="web",this.poller=new jr(function(){return R(i,void 0,void 0,function(){var v;return C(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),[4,this.doFlags()];case 1:return f.sent(),[3,3];case 2:return v=f.sent(),this.logger.info(v),[3,3];case 3:return[2]}})})},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var u in this.config.initialVariants)this.config.initialVariants[u]=Xt(this.config.initialVariants[u]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new mi(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new bi(this.config.exposureTrackingProvider)),this.integrationManager=new ni(this.config,this);var d=new ri(this.config.httpClient||Qt);this.flagApi=new Gr(this.apiKey,this.config.flagsServerUrl,d),this.evaluationApi=new Hr(this.apiKey,this.config.serverUrl,d);var g,l=c?"".concat(this.config.instanceName,"-").concat(c):this.config.instanceName;this.isWebExperiment?g=new Yt:g=new Re,this.variants=ci(this.apiKey,l,g),this.flags=fi(this.apiKey,l,g),this.fetchVariantsOptions=di(this.apiKey,l,g);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch{}this.mergeInitialFlagsWithStorage()}return r.prototype.start=function(e){return R(this,void 0,void 0,function(){var t,i,n,a;return C(this,function(o){switch(o.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(e),o.label=1;case 1:return o.trys.push([1,6,,7]),t=this.doFlags(),i=(a=this.config.fetchOnStart)!==null&&a!==void 0?a:!0,i?[4,Promise.all([this.fetch(e),t])]:[3,3];case 2:return o.sent(),[3,5];case 3:return[4,t];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:if(n=o.sent(),this.config.throwOnError)throw n;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},r.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},r.prototype.fetch=function(){return R(this,arguments,void 0,function(e,t){var i;return e===void 0&&(e=this.user),C(this,function(n){switch(n.label){case 0:this.setUser(e||{}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return n.sent(),[3,4];case 3:if(i=n.sent(),this.config.throwOnError)throw i;return i instanceof We?this.logger.debug(i):this.logger.error(i),[3,4];case 4:return[2,this]}})})},r.prototype.variant=function(e,t){var i,n;if(!this.apiKey)return{value:void 0};var a=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,a),this.logger.debug("[Experiment] variant for ".concat(e," is ").concat(((i=a.variant)===null||i===void 0?void 0:i.key)||((n=a.variant)===null||n===void 0?void 0:n.value))),a.variant||{}}
vendor: 8,021 bytes, line 1
1,r.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},r.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e){var i=this.flags.get(t);At(i)||delete e[t]}return A(A(A({},this.secondaryVariants()),this.sourceVariants()),e)},r.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch{}},r.prototype.getUser=function(){var e;if(!this.user)return this.user;if(!((e=this.user)===null||e===void 0)&&e.user_properties){var t=A({},this.user.user_properties);return A(A({},this.user),{user_properties:t})}else return A({},this.user)},r.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(!((t=this.user)===null||t===void 0)&&t.user_properties){var i=A({},e.user_properties);this.user=A(A({},e),{user_properties:i})}else this.user=A({},e)},r.prototype.getUserProvider=function(){return this.userProvider},r.prototype.setUserProvider=function(e){return this.userProvider=e,this},r.prototype.mergeInitialFlagsWithStorage=function(){var e=this;if(this.config.initialFlags){var t=JSON.parse(this.config.initialFlags);t.forEach(function(i){e.flags.get(i.key)||e.flags.put(i.key,i)})}},r.prototype.evaluate=function(e){var t,i,n=this.addContext(this.user),a=Rr(this.flags.getAll(),e),o=yi(n),s=this.engine.evaluate(o,a),c={};try{for(var u=J(Object.keys(s)),d=u.next();!d.done;d=u.next()){var g=d.value;c[g]=xt(s[g])}}catch(l){t={error:l}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}return c},r.prototype.variantAndSource=function(e,t){var i={};this.config.source===Q.LocalStorage?i=this.localStorageVariantAndSource(e,t):this.config.source===Q.InitialVariants&&(i=this.initialVariantsVariantAndSource(e,t));var n=this.flags.get(e);return(At(n)||!i.variant&&n)&&(i=this.localEvaluationVariantAndSource(e,n,t)),i},r.prototype.localEvaluationVariantAndSource=function(e,t,i){var n,a={},o=this.evaluate([t.key])[e],s=N.LocalEvaluation,c=(n=o?.metadata)===null||n===void 0?void 0:n.default;if(!H(o)&&!c)return{variant:D(o),source:s,hasDefaultVariant:!1};if(c&&(a={variant:D(o),source:s,hasDefaultVariant:!0}),!H(i))return{variant:D(i),source:N.FallbackInline,hasDefaultVariant:a.hasDefaultVariant};var u=this.config.initialVariants[e];if(!H(u))return{variant:D(u),source:N.SecondaryInitialVariants,hasDefaultVariant:a.hasDefaultVariant};var d=D(this.config.fallbackVariant),g={variant:d,source:N.FallbackConfig,hasDefaultVariant:a.hasDefaultVariant};return Ge(d)?a:g},r.prototype.localStorageVariantAndSource=function(e,t){var i,n={},a=this.variants.get(e),o=(i=a?.metadata)===null||i===void 0?void 0:i.default;if(!H(a)&&!o)return{variant:D(a),source:N.LocalStorage,hasDefaultVariant:!1};if(o&&(n={variant:D(a),source:N.LocalStorage,hasDefaultVariant:!0}),!H(t))return{variant:D(t),source:N.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var s=this.config.initialVariants[e];if(!H(s))return{variant:D(s),source:N.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var c=D(this.config.fallbackVariant),u={variant:c,source:N.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return Ge(c)?n:u},r.prototype.initialVariantsVariantAndSource=function(e,t){var i,n={},a=this.config.initialVariants[e];if(!H(a))return{variant:D(a),source:N.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),s=(i=o?.metadata)===null||i===void 0?void 0:i.default;if(!H(o)&&!s)return{variant:D(o),source:N.LocalStorage,hasDefaultVariant:!1};if(s&&(n={variant:D(o),source:N.LocalStorage,hasDefaultVariant:!0}),!H(t))return{variant:D(t),source:N.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var c=D(this.config.fallbackVariant),u={variant:c,source:N.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return Ge(c)?n:u},r.prototype.fetchInternal=function(e,t,i,n){return R(this,void 0,void 0,function(){var a,o,s;return C(this,function(c){switch(c.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.logger.debug("[Experiment] Fetch all: retry=".concat(i)),i&&this.stopRetries(),c.label=1;case 1:return c.trys.push([1,4,,5]),[4,this.doFetch(e,t,A({trackingOption:(s=this.fetchVariantsOptions.get())===null||s===void 0?void 0:s.trackingOption},n))];case 2:return a=c.sent(),[4,this.storeVariants(a,n)];case 3:return c.sent(),[2,a];case 4:throw o=c.sent(),i&&this.shouldRetryFetch(o)&&this.startRetries(e,n),o;case 5:return[2]}})})},r.prototype.setTracksAssignment=function(e){return R(this,void 0,void 0,function(){return C(this,function(t){return this.fetchVariantsOptions.put(A(A({},this.fetchVariantsOptions.get()||{}),{trackingOption:e?"track":"no-track"})),this.fetchVariantsOptions.store(),[2]})})},r.prototype.cleanUserPropsForFetch=function(e){var t=A({},e);return delete t.cookie,t},r.prototype.doFetch=function(e,t,i){return R(this,void 0,void 0,function(){var n,a,o,s,c,u,d;return C(this,function(g){switch(g.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=g.sent(),e=this.cleanUserPropsForFetch(e),this.logger.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,A({timeoutMillis:t},i))];case 2:n=g.sent(),a={};try{for(o=J(Object.keys(n)),s=o.next();!s.done;s=o.next())c=s.value,a[c]=xt(n[c])}catch(l){u={error:l}}finally{try{s&&!s.done&&(d=o.return)&&d.call(o)}finally{if(u)throw u.error}}return this.logger.debug("[Experiment] Received variants: ",a),[2,a]}})})},r.prototype.doFlags=function(){return R(this,void 0,void 0,function(){var e,t,i;return C(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),e=void 0,this.isWebExperiment?[4,this.addContextOrWait(this.getUser())]:[3,2];case 1:e=n.sent(),n.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:Et,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:e?.user_id||e?.device_id?{user_id:e?.user_id,device_id:e?.device_id}:void 0})];case 3:return t=n.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if(i=n.sent(),i instanceof We){if(this.logger.debug(i),this.config.throwOnError)throw i}else throw i;return[3,5];case 5:try{this.flags.store()}catch{}return this.mergeInitialFlagsWithStorage(),[2]}})})},r.prototype.storeVariants=function(e,t){return R(this,void 0,void 0,function(){var i,n,a,o,o;return C(this,function(s){i=t&&t.flagKeys?t.flagKeys:[],i.length===0&&this.variants.clear(),n=function(c){i=i.filter(function(u){return u!==c}),a.variants.put(c,e[c])},a=this;for(o in e)n(o);for(o in i)this.variants.remove(o);try{this.variants.store()}catch{}return this.logger.debug("[Experiment] Stored variants: ",e),[2]})})},r.prototype.startRetries=function(e,t){return R(this,void 0,void 0,function(){var i=this;return C(this,function(n){return this.logger.debug("[Experiment] Retry fetch"),this.retriesBackoff=new gi(wi,Ei,Ai,xi),this.retriesBackoff.start(function(){return R(i,void 0,void 0,function(){return C(this,function(a){switch(a.label){case 0:return[4,this.fetchInternal(e,Si,!1,t)];case 1:return a.sent(),[2]}})})}),[2]})})},r.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},r.prototype.addContext=function(e){var t,i=(t=this.userProvider)===null||t===void 0?void 0:t.getUser(),n=this.integrationManager.getUser(),a=A(A(A({},i?.user_properties),n.user_properties),e?.user_properties);return A(A(A(A({library:"experiment-js-client/".concat(Et)},i),n),e),{user_properties:a})},r.prototype.addContextOrWait=function(e){return R(this,void 0,void 0,function(){return C(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},r.prototype.sourceVariants=function(){if(this.config.source==Q.LocalStorage)return this.variants.getAll();if(this.config.source==Q.InitialVariants)return this.config.initialVariants},r.prototype.secondaryVariants=function(){if(this.config.source==Q.LocalStorage)return this.config.initialVariants;if(this.config.source==Q.InitialVariants)return this.variants.getAll()}
1,r.prototype.exposureInternal=function(e,t){var i,n,a,o,s,c,u,d,g,l=(a=(n=(i=t.variant)===null||i===void 0?void 0:i.metadata)===null||n===void 0?void 0:n.trackExposure)!==null&&a!==void 0?a:!0;if(l){this.legacyExposureInternal(e,t.variant,t.source);var v={flag_key:e},f=wt(t.source);if(!(f&&!t.hasDefaultVariant)){!((o=t.variant)===null||o===void 0)&&o.expKey&&(v.experiment_key=(s=t.variant)===null||s===void 0?void 0:s.expKey);var h=(c=t.variant)===null||c===void 0?void 0:c.metadata;if(!f&&!h?.default&&(!((u=t.variant)===null||u===void 0)&&u.key?v.variant=t.variant.key:!((d=t.variant)===null||d===void 0)&&d.value&&(v.variant=t.variant.value)),h&&(v.metadata=h),this.isWebExperiment&&(v.time=Date.now()),this.isWebExperiment){var p=Z();if(p?.location)try{var x=p.location.href;v.metadata.url=x.split("?")[0]||""}catch{}}var I=this.addContext(this.getUser());(g=this.userSessionExposureTracker)===null||g===void 0||g.track(v,I),this.integrationManager.track(v,I)}}},r.prototype.legacyExposureInternal=function(e,t,i){var n,a,o,s,c;if(this.analyticsProvider){var u=this.addContext(this.getUser()),d=vi(u,e,t,i);wt(i)||!t?.value?(a=(n=this.analyticsProvider)===null||n===void 0?void 0:n.unsetUserProperty)===null||a===void 0||a.call(n,d):t?.value&&((s=(o=this.analyticsProvider)===null||o===void 0?void 0:o.setUserProperty)===null||s===void 0||s.call(o,d),(c=this.analyticsProvider)===null||c===void 0||c.track(d))}},r.getLogLevel=function(e){var t;return e.debug===!0?G.Debug:(t=e.logLevel)!==null&&t!==void 0?t:G.Error},r.prototype.shouldRetryFetch=function(e){return e instanceof Kt?e.statusCode<400||e.statusCode>=500||e.statusCode===429:!0},r.prototype.addPlugin=function(e){e.type==="integration"&&this.integrationManager.setIntegration(e)},r})(),ki=(function(){function r(e,t){var i,n,a;this.globalScope=Z(),this.userAgent=typeof((i=this.globalScope)===null||i===void 0?void 0:i.navigator)<"u"?(n=this.globalScope)===null||n===void 0?void 0:n.navigator.userAgent:void 0,this.ua=new Wr.UAParser(this.userAgent).getResult(),this.localStorage=new Re,this.sessionStorage=new Yt,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat((a=this.apiKey)===null||a===void 0?void 0:a.slice(0,10),"_DEFAULT_USER_PROVIDER")}return r.prototype.getUser=function(){var e,t,i,n,a,o=((e=this.userProvider)===null||e===void 0?void 0:e.getUser())||{};return A({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:(i=(t=this.ua.device)===null||t===void 0?void 0:t.type)!==null&&i!==void 0?i:"desktop",referring_url:(a=(n=this.globalScope)===null||n===void 0?void 0:n.document)===null||a===void 0?void 0:a.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},r.prototype.getLanguage=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},r.prototype.getOs=function(e){var t,i;return[(t=e.browser)===null||t===void 0?void 0:t.name,(i=e.browser)===null||i===void 0?void 0:i.major].filter(function(n){return n!=null}).join(" ")},r.prototype.getDeviceModel=function(e){var t;return(t=e.os)===null||t===void 0?void 0:t.name},r.prototype.getBrowser=function(e){var t,i=(t=e.browser)===null||t===void 0?void 0:t.name;return i?.includes("Chrom")&&(i="Chrome"),i?.includes("Firefox")&&(i="Firefox"),i?.includes("Safari")&&(i="Safari"),i?.includes("Edge")&&(i="Edge"),i?.includes("Opera")&&(i="Opera"),i},r.prototype.getCookie=function(){var e,t,i,n,a;if(!((t=(e=this.globalScope)===null||e===void 0?void 0:e.document)===null||t===void 0)&&t.cookie)return Object.fromEntries((a=(n=(i=this.globalScope)===null||i===void 0?void 0:i.document)===null||n===void 0?void 0:n.cookie)===null||a===void 0?void 0:a.split("; ").map(function(o){return o.split("=")}))},r.prototype.getLandingUrl=function(){var e,t;try{var i=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return i.landing_url||(i.landing_url=(t=(e=this.globalScope)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(i))),i.landing_url}catch{return}},r.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch{return}},r.prototype.getUrlParam=function(){var e,t,i;if(this.globalScope){var n={};try{var a=new URL(this.globalScope.location.href);try{for(var o=J(a.searchParams),s=o.next();!s.done;s=o.next()){var c=U(s.value,2),u=c[0],d=c[1];n[u]=B(B([],U((i=n[u])!==null&&i!==void 0?i:[]),!1),U(d.split(",")),!1)}}catch(g){e={error:g}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch{return}return Object.entries(n).reduce(function(g,l){var v=U(l,2),f=v[0],h=v[1];return g[f]=h.length==1?h[0]:h,g},{})}},r})();O.experimentInstances={};var It=O.experimentInstances,Oi=function(r,e){return Zt(r,e)},Ni=function(r,e){var t=function(){return new Jr(r,pr.getInstance(Jt(e)),1e4)};return Zt(r,e,t)},Jt=function(r){return r?.instanceName||ne.instanceName},Ri=function(r,e){var t=Jt(e),i=e?.internalInstanceNameSuffix;return i?"".concat(t,".").concat(r,".").concat(i):"".concat(t,".").concat(r)},Ci=function(r,e){return new Ti(r,A(A({},e),{userProvider:new ki(e?.userProvider,r)}))},Zt=function(r,e,t){var i=Ri(r,e),n=It[i];return n||(n=Ci(r,e),t&&n.addPlugin(t()),It[i]=n,n)},Pi={initialize:Oi,initializeWithAmplitudeAnalytics:Ni};let z=null;const Tt=()=>{const r=window.ALLBIRDS?.settings?.amplitudeExperiment;return!!(r?.enabled&&r?.deploymentKey)},Li=()=>window.ALLBIRDS?.settings?.amplitudeExperiment?.deploymentKey||null;function Ui(){return{fetchVariants:async(a={})=>
1{if(!z)return ar("[Allbirds API] - Amplitude Experiment - Cannot fetch, not initialized"),null;try{const o={device_id:He(),user_id:ze()||void 0,user_properties:a};return await z.fetch(o),q("[Allbirds API] - Amplitude Experiment - Variants fetched",{deviceId:o.device_id,userProperties:a}),!0}catch(o){return ve("[Allbirds API] - Amplitude Experiment - Fetch failed",{error:o.message},o),null}},getVariant:(a,o=null)=>z?z.variant(a,o):o,initialize:async(a={})=>{if(z)return z;if(!Tt())return q("[Allbirds API] - Amplitude Experiment - Not enabled, skipping init"),null;const o=Li();try{return await new Promise(s=>{sr(s,or.AMPLITUDE_EXPERIMENT_INIT)}),z=Pi.initialize(o,{automaticExposureTracking:!1,exposureTrackingProvider:{track:s=>{ft({flagKey:s?.flag_key,metadata:s?.metadata,pagePath:window.location.pathname,variant:s?.variant})}},userProvider:{getUser:()=>({device_id:He(),user_id:ze()||void 0})},...a}),q("[Allbirds API] - Amplitude Experiment - Initialized",{hasDeviceId:!!He(),hasUserId:!!ze()}),z}catch(s){return ve("[Allbirds API] - Amplitude Experiment - Initialization failed",{error:s.message},s),null}},isAmplitudeExperimentEnabled:Tt,isInitialized:()=>z!==null,trackExposure:a=>{if(!z)return;const o=z.variant(a);ft({flagKey:a,metadata:o?.metadata,pagePath:window.location.pathname,variant:o?.value})}}}const re={ERROR:"error",IDLE:"idle",LOADING:"loading",SUCCESS:"success"},Wi="hidden",Di="desktop-quick-add",Mi="static-navigation-bar",Fi=[Di,"hide-accelerated-payment-methods","mobile-nav-revamp",Mi],Bi="collection-filter-visibility",Vi="pdp-yotpo-reviews",zi="pdp-reviews-on-product-details",Hi="pdp-zoom-cta",kt={[Ve.COLLECTION]:["plp-hover-gallery",Bi],[Ve.INDEX]:[],[Ve.PRODUCT]:[Vi,zi,"product-details-redesign","mobile-sticky-atc","product-comparison",Hi]},ie=nr({flags:{},isInitialized:!1});function Xi(){const{fetchVariants:r,getVariant:e,initialize:t,isAmplitudeExperimentEnabled:i,isInitialized:n,trackExposure:a}=Ui(),o=(l,v)=>{if(!l)return;const f=l.toLowerCase();ie.flags[f]={...ie.flags[f],...v}},s=l=>l&&ie.flags[l.toLowerCase()]||null,c=l=>s(l)?.value||null,u=l=>s(l)?.payload||null,d=l=>{a(l)},g=async(l=null,v=[],f={})=>{if(!i()){q("[Allbirds composable] - useAmplitudeExperiment - Not enabled, skipping init");return}const h=new Set([...l&&kt[l]?kt[l]:[],...v,...Fi]);if(h.size===0){q("[Allbirds composable] - useAmplitudeExperiment - No flags to initialize");return}h.forEach(p=>{o(p,{status:re.LOADING})});try{if(n()||await t(),!await r(f)){h.forEach(x=>{o(x,{status:re.ERROR,value:null})});return}h.forEach(x=>{const I=e(x);I&&I.value?o(x,{experimentKey:I.experimentKey,payload:I.payload,status:re.SUCCESS,value:I.value}):o(x,{status:re.ERROR,value:null})}),ie.isInitialized=!0,q("[Allbirds composable] - useAmplitudeExperiment - Initialized",{flagCount:h.size,flags:Array.from(h)})}catch(p){h.forEach(x=>{o(x,{error:p.message,status:re.ERROR})}),ve("[Allbirds composable] - useAmplitudeExperiment - Initialization failed",{flags:Array.from(h)},p)}};return{FLAG_STATUS:re,flags:ie.flags,getFlag:s,getFlagPayload:u,getFlagValue:c,initializeFlags:g,isInitialized:ir(()=>ie.isInitialized),reportExposure:d}}export{pr as A,or as C,Di as D,re as F,Hi as P,Mi as S,Wi as a,Bi as b,Vi as c,zi as d,Tt as i,Qi as o,sr as r,Xi as u};

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.