vendor: 5,360 bytes, line 1
1import{a as jt}from"./setup-amplitude-PW9NszkX.js";import"./logger-BOxpBNGt.js";import"vue";import"vue-router";var Le=function(r,e){return Le=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])},Le(r,e)};function pt(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Le(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var B=function(){return B=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},B.apply(this,arguments)};function yt(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 u(f){try{s(i.next(f))}catch(y){o(y)}}function l(f){try{s(i.throw(f))}catch(y){o(y)}}function s(f){f.done?a(f.value):n(f.value).then(u,l)}s((i=i.apply(r,[])).next())})}function gt(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=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(f){return l([s,f])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(t=0)),t;)try{if(i=1,n&&(a=s[0]&2?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1],a=s;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(s);break}a[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(r,t)}catch(f){s=[6,f],n=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function M(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 He(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(u){o={error:u}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function je(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 g={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"},qt=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)},Ae=-862048943,_e=461845907,ke=15,zt=13,Gt=5,Qt=-430675100,Wt=function(r,e){e===void 0&&(e=0);for(var t=qt(r),i=t.length,n=i>>2,a=e,o=0;o<n;o++){var u=o<<2,l=Kt(t,u);a=Jt(l,a)}var s=n<<2,f=0;switch(i-s){case 3:f^=t[s+2]<<16,f^=t[s+1]<<8,f^=t[s],f=Math.imul(f,Ae),f=pe(f,ke),f=Math.imul(f,_e),a^=f;break;case 2:f^=t[s+1]<<8,f^=t[s],f=Math.imul(f,Ae),f=pe(f,ke),f=Math.imul(f,_e),a^=f;break;case 1:f^=t[s],f=Math.imul(f,Ae),f=pe(f,ke),f=Math.imul(f,_e),a^=f;break}return a^=i,Xt(a)>>>0},Jt=function(r,e){var t=r,i=e;return t=Math.imul(t,Ae),t=pe(t,ke),t=Math.imul(t,_e),i^=t,i=pe(i,zt),i=Math.imul(i,Gt),i+Qt|0},Xt=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},pe=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},Kt=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 Yt(t)},Yt=function(r){return(r&-16777216)>>>24|(r&16711680)>>>8|(r&65280)<<8|(r&255)<<24},Ue=function(r,e){var t,i;if(!(!e||e.length===0)){try{for(var n=M(e),a=n.next();!a.done;a=n.next()){var o=a.value;if(!o||!r||typeof r!="object")return;r=r[o]}}catch(u){t={error:u}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}if(r!=null)return r}}
1,Zt="(\\d+)\\.(\\d+)",$t="(\\d+)",er="(-(([-\\w]+\\.?)*))?",tr="^".concat(Zt,"(\\.").concat($t).concat(er,")?$"),rr=(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(tr).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})(),ir=(function(){function r(){}return r.prototype.evaluate=function(e,t){var i,n,a={},o={context:e,result:a};try{for(var u=M(t),l=u.next();!l.done;l=u.next()){var s=l.value,f=this.evaluateFlag(o,s);f&&(a[s.key]=f)}}catch(y){i={error:y}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return a},r.prototype.evaluateWithTraces=function(e,t){var i,n,a={},o={},u={context:e,result:a};try{for(var l=M(t),s=l.next();!s.done;s=l.next()){var f=s.value,y=this.evaluateFlagWithTrace(u,f),c=y.variant,h=y.trace;c&&(a[f.key]=c),o[f.key]=h}}catch(v){i={error:v}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}return{results:a,traces:o}},r.prototype.evaluateFlag=function(e,t){var i,n,a;try{for(var o=M(t.segments),u=o.next();!u.done;u=o.next()){var l=u.value;if(a=this.evaluateSegment(e,t,l),a){var s=B(B(B({},t.metadata),l.metadata),a.metadata);a=B(B({},a),{metadata:s});break}}}catch(f){i={error:f}}finally{try{u&&!u.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},r.prototype.evaluateFlagWithTrace=function(e,t){var i,n,a,o,u,l,s,f,y=[],c,h,v;try{for(var d=M(t.segments),p=d.next();!p.done;p=d.next()){var A=p.value;if(!A.conditions){var R=this.bucket(e,A),m=R!==void 0;y.push({segmentMetadata:A.metadata,conditionsPassed:!0,bucketed:m,bucketVariant:R,conditionResult:void 0,matched:m}),!c&&R!==void 0&&(c=t.variants[R],h=A,v=(s=A.metadata)===null||s===void 0?void 0:s.segmentName);continue}var b=[],N=!1;try{for(var F=(a=void 0,M(A.conditions)),K=F.next();!K.done;K=F.next()){var ue=K.value,ie=!0,W=[];try{for(var ee=(u=void 0,M(ue)),Y=ee.next();!Y.done;Y=ee.next()){var z=Y.value,ne=Ue(e,z.selector),ye=this.matchCondition(e,z);if(W.push({propValue:ne,condition:z,matched:ye}),!ye){ie=!1;break}}}catch(J){u={error:J}}finally{try{Y&&!Y.done&&(l=ee.return)&&l.call(ee)}finally{if(u)throw u.error}}if(b.push(W),ie){N=!0;break}}}catch(J){a={error:J}}finally{try{K&&!K.done&&(o=F.return)&&o.call(F)}finally{if(a)throw a.error}}var Z=!1,G=void 0;N&&(G=this.bucket(e,A),Z=G!==void 0),y.push({segmentMetadata:A.metadata,conditionsPassed:N,bucketed:Z,bucketVariant:G,conditionResult:b,matched:N&&Z}),N&&G!==void 0&&!c&&(c=t.variants[G],h=A,v=(f=A.metadata)===null||f===void 0?void 0:f.segmentName)}}catch(J){i={error:J}}finally{try{p&&!p.done&&(n=d.return)&&n.call(d)}finally{if(i)throw i.error}}if(c&&h){var ge=B(B(B({},t.metadata),h.metadata),c.metadata);c=B(B({},c),{metadata:ge})}var le={flagKey:t.key,matched:c!==void 0,matchedSegment:v,steps:y};return{variant:c,trace:le}},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 u=M(t),l=u.next();!l.done;l=u.next()){var s=l.value,f=!0;try{for(var y=(a=void 0,M(s)),c=y.next();!c.done;c=y.next()){var h=c.value;if(f=this.matchCondition(e,h),!f)break}}catch(v){a={error:v}}finally{try{c&&!c.done&&(o=y.return)&&o.call(y)}finally{if(a)throw a.error}}if(f)return!0}}catch(v){i={error:v}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return!1},r.prototype.matchCondition=function(e,t){var i=Ue(e,t.selector);if(i==null)return this.matchNull(t.op,t.values);var n=this.coerceStringArray(i);if(this.isSetOperator(t.op))return n?this.matchSet(n,t.op,t.values):!1;if(n)return this.matchStringsNonSet(n,t.op,t.values);var a=this.coerceString(i);return a!==void 0?this.matchString(a,t.op,t.values):!1},r.prototype.getHash=function(e){return Wt(e)},r.prototype.bucket=function(e,t){var i,n,a,o;if(!t.bucket)return t.variant;var u=this.coerceString(Ue(e,t.bucket.selector));if(!u||u.length===0)return t.variant;var l="".concat(t.bucket.salt,"/").concat(u),s=this.getHash(l),f=s%100,y=Math.floor(s/100);try{for(var c=M(t.bucket.allocations),h=c.next();!h.done;h=c.next()){var v=h.value,d=v.range[0],p=v.range[1];if(f>=d&&f<p)try{for(var A=(a=void 0,M(v.distributions)),R=A.next();!R.done;R=A.next()){var m=R.value,b=m.range[0],N=m.range[1];if(y>=b&&y<N)return m.variant}}catch(F){a={error:F}}
vendor: 4,199 bytes, line 1
1finally{try{R&&!R.done&&(o=A.return)&&o.call(A)}finally{if(a)throw a.error}}}}catch(F){i={error:F}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return t.variant},r.prototype.matchNull=function(e,t){var i=this.containsNone(t);switch(e){case g.IS:case g.CONTAINS:case g.LESS_THAN:case g.LESS_THAN_EQUALS:case g.GREATER_THAN:case g.GREATER_THAN_EQUALS:case g.VERSION_LESS_THAN:case g.VERSION_LESS_THAN_EQUALS:case g.VERSION_GREATER_THAN:case g.VERSION_GREATER_THAN_EQUALS:case g.SET_IS:case g.SET_CONTAINS:case g.SET_CONTAINS_ANY:return i;case g.IS_NOT:case g.DOES_NOT_CONTAIN:case g.SET_DOES_NOT_CONTAIN:case g.SET_DOES_NOT_CONTAIN_ANY:return!i;default:return!1}},r.prototype.matchSet=function(e,t,i){switch(t){case g.SET_IS:return this.setEquals(e,i);case g.SET_IS_NOT:return!this.setEquals(e,i);case g.SET_CONTAINS:return this.matchesSetContainsAll(e,i);case g.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,i);case g.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,i);case g.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 g.IS:return this.matchesIs(e,i);case g.IS_NOT:return!this.matchesIs(e,i);case g.CONTAINS:return this.matchesContains(e,i);case g.DOES_NOT_CONTAIN:return!this.matchesContains(e,i);case g.LESS_THAN:case g.LESS_THAN_EQUALS:case g.GREATER_THAN:case g.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,i,function(a){return n.parseNumber(a)},this.comparator);case g.VERSION_LESS_THAN:case g.VERSION_LESS_THAN_EQUALS:case g.VERSION_GREATER_THAN:case g.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,i,function(a){return rr.parse(a)},this.versionComparator);case g.REGEX_MATCH:return this.matchesRegex(e,i);case g.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,i);default:return!1}},r.prototype.matchStringsNonSet=function(e,t,i){var n=this;return e.some(function(a){return n.matchString(a,t,i)})},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=M(t),o=a.next();!o.done;o=a.next()){var u=o.value;if(e.toLowerCase().includes(u.toLowerCase()))return!0}}catch(l){i={error:l}}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,u=n(e),l=i.map(function(s){return n(s)}).filter(function(s){return s!==void 0});return u===void 0||l.length===0?i.some(function(s){return o.comparator(e,t,s)}):l.some(function(s){return a(u,t,s)})},r.prototype.comparator=function(e,t,i){switch(t){case g.LESS_THAN:case g.VERSION_LESS_THAN:return e<i;case g.LESS_THAN_EQUALS:case g.VERSION_LESS_THAN_EQUALS:return e<=i;case g.GREATER_THAN:case g.VERSION_GREATER_THAN:return e>i;case g.GREATER_THAN_EQUALS:case g.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 g.LESS_THAN:case g.VERSION_LESS_THAN:return n<0;case g.LESS_THAN_EQUALS:case g.VERSION_LESS_THAN_EQUALS:return n<=0;case g.GREATER_THAN:case g.VERSION_GREATER_THAN:return n>0;case g.GREATER_THAN_EQUALS:case g.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(o){return t.coerceString(o)}).filter(Boolean)}var n=String(e);if(n.startsWith("["))try{var a=JSON.parse(n);return Array.isArray(a)?a.map(function(o){return t.coerceString(o)}
1).filter(Boolean):void 0}catch{return}},r.prototype.isSetOperator=function(e){switch(e){case g.SET_IS:case g.SET_IS_NOT:case g.SET_CONTAINS:case g.SET_DOES_NOT_CONTAIN:case g.SET_CONTAINS_ANY:case g.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&&je([],He(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=M(t),o=a.next();!o.done;o=a.next()){var u=o.value;if(!this.matchesIs(u,e))return!1}}catch(l){i={error:l}}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=M(t),o=a.next();!o.done;o=a.next()){var u=o.value;if(this.matchesIs(u,e))return!0}}catch(l){i={error:l}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1},r})(),et=function(r,e){var t,i,n=B({},r),a=[],o=e||Object.keys(n);try{for(var u=M(o),l=u.next();!l.done;l=u.next()){var s=l.value,f=mt(s,n);f&&a.push.apply(a,je([],He(f),!1))}}catch(y){t={error:y}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}return a},mt=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=[],u=function(y){if(t.some(function(h){return h===y}))throw Error("Detected a cycle between flags ".concat(t));var c=mt(y,e,t);c&&o.push.apply(o,je([],He(c),!1))};try{for(var l=M(a.dependencies),s=l.next();!s.done;s=l.next()){var f=s.value;u(f)}}catch(y){i={error:y}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(i)throw i.error}}return o.push(a),t.pop(),delete e[a.key],o};const bt="3.7.8",nr=bt,se=typeof Buffer=="function",tt=typeof TextDecoder=="function"?new TextDecoder:void 0,rt=typeof TextEncoder=="function"?new TextEncoder:void 0,ar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",de=Array.prototype.slice.call(ar),xe=(r=>{let e={};return r.forEach((t,i)=>e[t]=i),e})(de),or=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,U=String.fromCharCode.bind(String),it=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):r=>new Uint8Array(Array.prototype.slice.call(r,0)),wt=r=>r.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),St=r=>r.replace(/[^A-Za-z0-9\+\/]/g,""),Et=r=>{let e,t,i,n,a="";const o=r.length%3;for(let u=0;u<r.length;){if((t=r.charCodeAt(u++))>255||(i=r.charCodeAt(u++))>255||(n=r.charCodeAt(u++))>255)throw new TypeError("invalid character found");e=t<<16|i<<8|n,a+=de[e>>18&63]+de[e>>12&63]+de[e>>6&63]+de[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},qe=typeof btoa=="function"?r=>btoa(r):se?r=>Buffer.from(r,"binary").toString("base64"):Et,De=se?r=>Buffer.from(r).toString("base64"):r=>{let t=[];for(let i=0,n=r.length;i<n;i+=4096)t.push(U.apply(null,r.subarray(i,i+4096)));return qe(t.join(""))},Te=(r,e=!1)=>e?wt(De(r)):De(r),sr=r=>{if(r.length<2){var e=r.charCodeAt(0);return e<128?r:e<2048?U(192|e>>>6)+U(128|e&63):U(224|e>>>12&15)+U(128|e>>>6&63)+U(128|e&63)}else{var e=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return U(240|e>>>18&7)+U(128|e>>>12&63)+U(128|e>>>6&63)+U(128|e&63)}},ur=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,xt=r=>r.replace(ur,sr),nt=se?r=>Buffer.from(r,"utf8").toString("base64"):rt?r=>De(rt.encode(r)):r=>qe(xt(r)),oe=(r,e=!1)=>e?wt(nt(r)):nt(r),at=r=>oe(r,!0),lr=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cr=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 U((t>>>10)+55296)+U((t&1023)+56320);case 3:return U((15&r.charCodeAt(0))<<12|(63&r.charCodeAt(1))<<6|63&r.charCodeAt(2));default:return U((31&r.charCodeAt(0))<<6|63&r.charCodeAt(1))}},At=r=>r.replace(lr,cr),_t=r=>{if(r=r.replace(/\s+/g,""),!or.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=xe[r.charAt(a++)]<<18|xe[r.charAt(a++)]<<12|(t=xe[r.charAt(a++)])<<6|(i=xe[r.charAt(a++)]),t===64?n.push(U(e>>16&255)):i===64?n.push(U(e>>16&255,e>>8&255)):n.push(U(e>>16&255,e>>8&255,e&255));return n.join("")},ze=typeof atob=="function"?r=>atob(St(r)):se?r=>Buffer.from(r,"base64").toString("binary"):_t,kt=se?r=>it(Buffer.from(r,"base64")):r=>it(ze(r).split("").map(e=>e.charCodeAt(0))),Tt=r=>kt(Nt(r)),fr=se?r=>Buffer.from(r,"base64").toString("utf8"):tt?r=>tt.decode(kt(r)):r=>At(ze(r)),Nt=r=>St(r.replace(/[-_]/g,e=>e=="-"?"+":"/")),Fe=r=>fr(Nt(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)},It=r=>({value:r,enumerable:!1,writable:!0,configurable:!0}),Ot=function(){const r=(e,t)=>Object.defineProperty(String.prototype,e,It(t));r("fromBase64",function(){return Fe(this)}),r("toBase64",function(e){return oe(this,e)}),r("toBase64URI",function(){return oe(this,!0)}),r("toBase64URL",function(){return oe(this,!0)}),r("toUint8Array",function(){return Tt(this)})},Ct=function(){const r=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,It(t));r("toBase64",function(e){return Te(this,e)}),r("toBase64URI",function(){return Te(this,!0)}),r("toBase64URL",function(){return Te(this,!0)})},dr=()=>{Ot(),Ct()},Be={version:bt,VERSION:nr,atob:ze,atobPolyfill:_t,btoa:qe,btoaPolyfill:Et,fromBase64:Fe,toBase64:oe,encode:oe,encodeURI:at,encodeURL:at,utob:xt,btou:At,decode:Fe,isValid:vr,fromUint8Array:Te,toUint8Array:Tt,extendString:Ot,extendUint8Array:Ct,extendBuiltins:dr};var Rt=(function(r){pt(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),Ve=(function(r){pt(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 yt(this,void 0,void 0,function(){var i,n,a,o;return gt(this,function(u){switch(u.label){case 0:return i=Be.encodeURL(JSON.stringify(e)),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":i},t?.flagKeys&&(n["X-Amp-Exp-Flag-Keys"]=Be.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=u.sent(),o.status!=200)throw new Rt(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},r})(),pr=(function(){function r(e,t,i){this.deploymentKey=e,this.serverUrl=t,this.httpClient=i}return r.prototype.getFlags=function(e){return yt(this,void 0,void 0,function(){var t,i,n;return gt(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"]=Be.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,u){return o[u.key]=u,o},{})]}})})},r})(),C=typeof globalThis<"u"?globalThis:global||self,re=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},yr=function(){var r=re();if(r)try{var e="EXP_test";return r.localStorage.setItem(e,e),r.localStorage.removeItem(e),!0}catch{return!1}return!1},gr=(function(){function r(e,t){this.poller=void 0,this.action=e,this.ms=t}return r.prototype.start=function(){this.poller||(this.poller=C.setInterval(this.action,this.ms),this.action())},r.prototype.stop=function(){this.poller&&(C.clearInterval(this.poller),this.poller=void 0)},r})(),he={exports:{}},mr=he.exports,ot;function br(){return ot||(ot=1,(function(r,e){(function(t,i){var n="0.7.33",a="",o="?",u="function",l="undefined",s="object",f="string",y="major",c="model",h="name",v="type",d="vendor",p="version",A="architecture",R="console",m="mobile",b="tablet",N="smarttv",F="wearable",K="embedded",ue=350,ie="Amazon",W="Apple",ee="ASUS",Y="BlackBerry",z="Browser",ne="Chrome",ye="Edge",Z="Firefox",G="Google",ge="Huawei",le="LG",J="Microsoft",Qe="Motorola",me="Opera",Ie="Samsung",We="Sharp",be="Sony",Oe="Xiaomi",Ce="Zebra",Je="Facebook",Bt=function(w,_){var S={};for(var T in w)_[T]&&_[T].length%2===0?S[T]=_[T].concat(w[T]):S[T]=w[T];return S},we=function(w){for(var _={},S=0;S<w.length;S++)_[w[S].toUpperCase()]=w[S];return _},Xe=function(w,_){return typeof w===f?ce(_).indexOf(ce(w))!==-1:!1},ce=function(w){return w.toLowerCase()},Vt=function(w){return typeof w===f?w.replace(/[^\d\.]/g,a).split(".")[0]:i},Re=function(w,_){if(typeof w===f)return w=w.replace(/^\s\s*/,a),typeof _===l?w:w.substring(0,ue)},fe=function(w,_){for(var S=0,T,E,Ee,k,ve,Q;S<_.length&&!ve;){var Ze=_[S],$e=_[S+1];for(T=E=0;T<Ze.length&&!ve;)if(ve=Ze[T++].exec(w),ve)for(Ee=0;Ee<$e.length;Ee++)Q=ve[++E],k=$e[Ee],typeof k===s&&k.length>0?k.length===2?typeof k[1]==u?this[k[0]]=k[1].call(this,Q):this[k[0]]=k[1]:k.length===3?typeof k[1]===u&&!(k[1].exec&&k[1].test)?this[k[
vendor: 4,229 bytes, line 1
10]]=Q?k[1].call(this,Q,k[2]):i:this[k[0]]=Q?Q.replace(k[1],k[2]):i:k.length===4&&(this[k[0]]=Q?k[3].call(this,Q.replace(k[1],k[2])):i):this[k]=Q||i;S+=2}},Pe=function(w,_){for(var S in _)if(typeof _[S]===s&&_[S].length>0){for(var T=0;T<_[S].length;T++)if(Xe(_[S][T],w))return S===o?i:S}else if(Xe(_[S],w))return S===o?i:S;return w},Ht={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Ke={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"},Ye={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,p],[/opios[\/ ]+([\w\.]+)/i],[p,[h,me+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[h,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],[h,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[h,"UC"+z]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[h,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+z],p],[/\bfocus\/([\w\.]+)/i],[p,[h,Z+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[h,me+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[h,me+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[h,"MIUI "+z]],[/fxios\/([-\w\.]+)/i],[p,[h,Z]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+z]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+z],p],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,Je],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[h,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[h,ne+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,ne+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[h,"Android "+z]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[p,Pe,Ht]],[/(webkit|khtml)\/([\w\.]+)/i],[h,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[h,Z+" 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],[h,p],[/(cobalt)\/([\w\.]+)/i],[h,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[A,"amd64"]],[/(ia32(?=;))/i],[[A,ce]],[/((?:i[346]|x)86)[;\)]/i],[[A,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[A,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[A,"armhf"]],[/windows (ce|mobile); ppc;/i],[[A,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[A,/ower/,a,ce]],[/(sun4\w)[;\)]/i],[[A,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;
1|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[A,ce]]],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],[c,[d,Ie],[v,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,Ie],[v,m]],[/((ipod|iphone)\d+,\d+)/i],[c,[d,W],[v,m]],[/(ipad\d+,\d+)/i],[c,[d,W],[v,b]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[d,W],[v,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,W],[v,b]],[/(macintosh);/i],[c,[d,W]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,ge],[v,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[d,ge],[v,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],[[c,/_/g," "],[d,Oe],[v,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,Oe],[v,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[v,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[v,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[v,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],[c,[d,Qe],[v,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,Qe],[v,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,le],[v,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,le],[v,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[v,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[v,m]],[/(pixel c)\b/i],[c,[d,G],[v,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,G],[v,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],[c,[d,be],[v,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,be],[v,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[v,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,ie],[v,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,ie],[v,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[v,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,Y],[v,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,ee],[v,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,ee],[v,m]],[/(nexus 9)/i],[c,[d,"HTC"],[v,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[v,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[v,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[v,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,We],[v,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,c,[v,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],[d,c,[v,b]],[/(surface duo)/i],[c,[d,J],[v,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[v,m]],[/(u304aa)/i],[c,[d,"AT&T"],[v,m]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[v,m]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[v,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[v,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[v,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[v,b]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[v,b]],[/\b(k88) b/i],[c,[d,"ZTE"],[v,b]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[v,m]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[v,m]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[v,b]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[v,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[v,b]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[v,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[v,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[v,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[v,m]],[/\b(ph-1) /i],[c,[d,"Essential"],[v,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[v,b]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[v,b]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[v,b]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[v,b]],[/(sprint) (\w+)/i],[d,c,[v,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,J],[v,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,Ce],[v,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,Ce],[v,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[v,R]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[v,R]],[/(playstation [345portablevi]+)/i],[c,[d,be],[v,R]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,J],[v,R]],[/smart-tv.+(samsung)/i],[d,[v,N]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,Ie],[v,N]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,le],[v,N]],[/(apple) ?tv/i],[d,[c,W+" TV"],[v,N]],[/crkey/i],[[c,ne+"cast"],[d,G],[v,N]],[/droid.+aft(\w)( bui|\))/i],[c,[d,ie],[v,N]],[/\
vendor: 14,686 bytes, line 1
1(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[d,We],[v,N]],[/(bravia[\w ]+)( bui|\))/i],[c,[d,be],[v,N]],[/(mitv-\w{5}) bui/i],[c,[d,Oe],[v,N]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[d,Re],[c,Re],[v,N]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,N]],[/((pebble))app/i],[d,c,[v,F]],[/droid.+; (glass) \d/i],[c,[d,G],[v,F]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,Ce],[v,F]],[/(quest( 2)?)/i],[c,[d,Je],[v,F]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[v,K]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[v,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[v,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[h,ye+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[h,"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],[h,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[p,Pe,Ke]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[p,Pe,Ke]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,p],[/\(bb(10);/i],[p,[h,Y]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[h,Z+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[h,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[h,ne+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[h,"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],[h,p],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[h,p]]},H=function(w,_){if(typeof w===s&&(_=w,w=i),!(this instanceof H))return new H(w,_).getResult();var S=w||(typeof t!==l&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent:a),T=_?Bt(Ye,_):Ye;return this.getBrowser=function(){var E={};return E[h]=i,E[p]=i,fe.call(E,S,T.browser),E.major=Vt(E.version),E},this.getCPU=function(){var E={};return E[A]=i,fe.call(E,S,T.cpu),E},this.getDevice=function(){var E={};return E[d]=i,E[c]=i,E[v]=i,fe.call(E,S,T.device),E},this.getEngine=function(){var E={};return E[h]=i,E[p]=i,fe.call(E,S,T.engine),E},this.getOS=function(){var E={};return E[h]=i,E[p]=i,fe.call(E,S,T.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 S},this.setUA=function(E){return S=typeof E===f&&E.length>ue?Re(E,ue):E,this},this.setUA(S),this};H.VERSION=n,H.BROWSER=we([h,p,y]),H.CPU=we([A]),H.DEVICE=we([c,d,v,R,m,N,b,F,K]),H.ENGINE=H.OS=we([h,p]),r.exports&&(e=r.exports=H),e.UAParser=H;var ae=typeof t!==l&&(t.jQuery||t.Zepto);if(ae&&!ae.ua){var Se=new H;ae.ua=Se.getResult(),ae.ua.get=function(){return Se.getUA()},ae.ua.set=function(w){Se.setUA(w);var _=Se.getResult();for(var S in _)ae.ua[S]=_[S]}}})(typeof window=="object"?window:mr)})(he,he.exports)),he.exports}var wr=br(),ui=(function(){function r(e){this.amplitudeInstance=e}return r.prototype.getUser=function(){var e,t,i,n,a,o,u,l,s,f;return{device_id:(t=(e=this.amplitudeInstance)===null||e===void 0?void 0:e.options)===null||t===void 0?void 0:t.deviceId,user_id:(n=(i=this.amplitudeInstance)===null||i===void 0?void 0:i.options)===null||n===void 0?void 0:n.userId,version:(o=(a=this.amplitudeInstance)===null||a===void 0?void 0:a.options)===null||o===void 0?void 0:o.versionName,language:(l=(u=this.amplitudeInstance)===null||u===void 0?void 0:u.options)===null||l===void 0?void 0:l.language,platform:(f=(s=this.amplitudeInstance)===null||s===void 0?void 0:s.options)===null||f===void 0?void 0:f.platform,os:this.getOs(),device_model:this.getDeviceModel()}},r.prototype.getOs=function(){var e,t,i,n,a,o;return[(i=(t=(e=this.amplitudeInstance)===null||e===void 0?void 0:e._ua)===null||t===void 0?void 0:t.browser)===null||i===void 0?void 0:i.name,(o=(a=(n=this.amplitudeInstance)===null||n===void 0?void 0:n._ua)===null||a===void 0?void 0:a.browser)===null||o===void 0?void 0:o.major].filter(function(u){return u!=null}).join(" ")},r.prototype.getDeviceModel=function(){var e,t,i;return(i=(t=(e=this.amplitudeInstance)===null||e===void 0?void 0:e._ua)===null||t===void 0?void 0:t.os)===null||i===void 0?void 0:i.name},r})(),li=(function(){function r(e){this.amplitudeInstance=e}return r.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},r.prototype.setUserProperty=function(e){var t,i;this.amplitudeInstance.setUserProperties((t={},t[e.userProperty]=(i=e.variant)===null||i===void 0?void 0:i.value,t))},r.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:(t={},t[e.userProperty]="-",t)})},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 I(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 u(f){try{s(i.next(f))}catch(y){o(y)}}function l(f){try{s(i.throw(f))}catch(y){o(y)}}function s(f){f.done?a(f.value):n(f.value).then(u,l)}s((i=i.apply(r,e||[])).next())})}function O(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=u(0),o.throw=u(1),o.return=u(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(s){return function(f){return l([s,f])}}function l(s){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(t=0)),t;)try{if(i=1,n&&(a=s[0]&2?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1],a=s;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(s);break}a[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(r,t)}catch(f){s=[6,f],n=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function $(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 L(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(u){o={error:u}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function V(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=Ge(r,e),a=void 0,o=C.document.cookie.split("; ");try{for(var u=$(o),l=u.next();!l.done;l=u.next()){var s=l.value,f=L(s.split("=",2),2),y=f[0],c=f[1];y===n&&(a=decodeURIComponent(c))}}catch(p){t={error:p}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(t)throw t.error}}if(a)try{if(e){var h=atob(a);return JSON.parse(decodeURIComponent(h))}var v=a.split("."),d=void 0;return v.length>=2&&v[1]&&(d=atob(v[1])),{deviceId:v[0],userId:d}}catch{return}},Sr=function(r){var e=Ge(r,!0);try{var t=C.localStorage.getItem(e);if(!t)return;var i=JSON.parse(t);return typeof i!="object"?void 0:i}catch{return}},Er=function(r){var e=Ge(r,!0);try{var t=C.sessionStorage.getItem(e);if(!t)return;var i=JSON.parse(t);return typeof i!="object"?void 0:i}catch{return}},Ge=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))},xr=(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 I(this,void 0,void 0,function(){return O(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=Sr(this.apiKey),e?(this.commitIdentityToConnector(e),!0):(e=Er(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 I(this,void 0,void 0,function(){var t,i=this;return O(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){C.setTimeout(o,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]:[2]})})},r})();function Ar(r,e){return e=e||{},new Promise(function(t,i){var n=new XMLHttpRequest,a=[],o=[],u={},l=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:l,headers:{keys:function(){return a},entries:function(){return o},get:function(f){return u[f.toLowerCase()]},has:function(f){return f.toLowerCase()in u}}}};for(var s in n.open(e.method||"get",r,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(f,y,c){a.push(y=y.toLowerCase()),o.push([y,c]),u[y]=u[y]?u[y]+","+c:c}),t(l())},n.onerror=i,n.withCredentials=e.credentials=="include",e.headers)n.setRequestHeader(s,e.headers[s]);n.send(e.body||null)})}var _r=C.fetch||Ar,kr=function(r,e){return e==null||e<=0?r:new Promise(function(t,i){C.setTimeout(function(){i(new Ve("Request timeout after "+e+" milliseconds"))},e),r.then(t,i)})},Tr=function(r,e,t,i,n){var a=function(){return I(void 0,void 0,void 0,function(){var o,u,l;return O(this,function(s){switch(s.label){case 0:return[4,_r(r,{method:e,headers:t,body:i})];case 1:return o=s.sent(),l={status:o.status},[4,o.text()];case 2:return u=(l.body=s.sent(),l),[2,u]}})})};return kr(a(),n)},Nr=(function(){function r(e){this.client=e}return r.prototype.request=function(e){return I(this,void 0,void 0,function(){return O(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})(),Pt={request:Tr},q;(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"})(q||(q={}));var X;(function(r){r.LocalStorage="localStorage",r.InitialVariants="initialVariants"})(X||(X={}));var P;(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"})(P||(P={}));var ut=function(r){return!r||r===P.FallbackInline||r===P.FallbackConfig||r===P.SecondaryInitialVariants},te={debug:!1,logLevel:q.Error,loggerProvider:null,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:X.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:Pt},lt="1.21.1",Ir=512,Or=(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:te.instanceName;this.queue=new Rr(a),this.cache=new Cr(a)}return r.prototype.ready=function(){return this.integration?this.isReady:Prom
vendor: 15,808 bytes, line 1
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})(),Cr=(function(){function r(e){this.isSessionStorageAvailable=Pr(),this.inMemoryCache={},this.identity={},this.storageKey="EXP_sent_v3_".concat(e),this.isSessionStorageAvailable&&(C.sessionStorage.removeItem("EXP_sent_".concat(e)),C.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,u=this.inMemoryCache[e.flag_key],l=(n=e.variant)!==null&&n!==void 0?n:null,s=u??null,f=!1;return(!o||s!==l)&&(f=!0,this.inMemoryCache[e.flag_key]=l),this.storeCache(),f},r.prototype.clearCache=function(){this.inMemoryCache={},this.isSessionStorageAvailable&&C.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=C.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},r.prototype.storeCache=function(){if(this.isSessionStorageAvailable)try{C.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))}catch{}},r})(),Rr=(function(){function r(e,t){t===void 0&&(t=Ir),this.isLocalStorageAvailable=yr(),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=C.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&&(C.clearInterval(this.poller),this.poller=void 0)}},r.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=C.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)),C.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},r.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},r})(),Pr=function(){var r=re();if(r)try{var e="EXP_test";return r.sessionStorage.setItem(e,e),r.sessionStorage.removeItem(e),!0}catch{return!1}return!1},Ur=(function(){function r(e,t){t===void 0&&(t=q.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>=q.Error&&(t=this.logger).error.apply(t,V([e],L(i),!1))},r.prototype.warn=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=q.Warn&&(t=this.logger).warn.apply(t,V([e],L(i),!1))},r.prototype.info=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=q.Info&&(t=this.logger).info.apply(t,V([e],L(i),!1))},r.prototype.debug=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=q.Debug&&(t=this.logger).debug.apply(t,V([e],L(i),!1))},r.prototype.verbose=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=q.Verbose&&(t=this.logger).verbose.apply(t,V([e],L(i),!1))},r})(),Mr=(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,V([e],L(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,V([e],L(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,V([e],L(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,V([e],L(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,V([e],L(t),!1))},r})(),Ne=(function(){function r(){this.globalScope=re()}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})(),Lr=function(r,e,t){var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i);return new Ut(n,t,Mt)},Dr=function(r,e,t){t===void 0&&(t=new Ne);var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i,"-flags");return new Ut(n,t)},Fr=function(r,e,t){t===void 0&&(t=new Ne);var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i,"-variants-options");return new Br(n,t)},Br=(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})(),Ut=(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 x({},this.cache)},r.prototype.put=function(e,t){this.cache[e]=t},r.prototype.putAll=function(e){var t,i;try{for(var n=$(Object.keys(e)),a=n.next();!a.done;a=n.next()){var o=a.value;this.cache[o]=e[o]}}catch(u){t={error:u}}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=$(Object.keys(n)),u=o.next();!u.done;u=o.next()){var l=u.value;try{var s=void 0;this.transformer?s=this.transformer(n[l]):s=n[l],s&&(a[l]=s)}catch{}}}catch(f){e={error:f}}finally{try{u&&!u.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})(),Mt=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}},Lt=(function(){function r(){this.globalScope=re()}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})(),Vr=function(r,e,t,i){var n,a="[Experiment] Exposure",o=t?.value,u="[Experiment] ".concat(e);return{name:a,user:r,key:e,variant:t,userProperty:u,properties:{key:e,variant:o,source:i},userProperties:(n={},n[u]=o,n)}},j=function(r){return r==null},Me=function(r){return j(r)?!0:r&&Object.keys(r).length===0},Hr=function(r){var e,t;if(!r||typeof r!="object")return{};var i={};try{for(var n=$(Object.entries(r)),a=n.next();!a.done;a=n.next()){var o=L(a.value,2),u=o[0],l=o[1];j(l)||(i[u]=l)}}catch(s){e={error:s}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},ct=function(r){var e;return((e=r?.metadata)===null||e===void 0?void 0:e.evaluationMode)==="local"},jr=(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 I(this,void 0,void 0,function(){return O(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 I(this,void 0,void 0,function(){var n=this;return O(this,function(a){return this.done?[2]:(this.timeoutHandle=C.setTimeout(function(){return I(n,void 0,void 0,function(){var o,u;return O(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,e()];case 1:return l.sent(),[3,3];case 2:return l.sent(),o=t+1,o<this.attempts&&(u=Math.min(i*this.scalar,this.max),this.backoff(e,o,u)),[3,3];case 3:return[2]}})})},i),[2])})})},r})(),ft=function(r){var e,t,i,n;if(!r)return{};var a={user:r},o=re();o&&(a.page={url:o.location.href});var u={};if(!r.groups)return a;try{for(var l=$(Object.keys(r.groups)),s=l.next();!s.done;s=l.next()){var f=s.value,y=r.groups[f];if(y.length>0&&y[0]){var c=y[0],h={group_name:c},v=(n=(i=r.group_properties)===null||i===void 0?void 0:i[f])===null||n===void 0?void 0:n[c];v&&Object.keys(v).length>0&&(h.group_properties=v),u[f]=h}}}catch(d){e={error:d}}finally{try{s&&!s.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}return Object.keys(u).length>0&&(a.groups=u),delete a.user.groups,delete a.user.group_properties,a},D=function(r){return r==null?{}:typeof r=="string"?{key:r,value:r}:r},vt=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},qr=(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})(),zr=(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})(),Gr=1e4,Qr=8,Wr=500,Jr=1e4,Xr=1.5,dt=6e4,Kr="https://api.lab.eu.amplitude.com",Yr="https://flag.lab.eu.amplitude.com",Zr=(function(){function r(e,t){var i=this,n,a,o,u;this.engine=new ir,this.isRunning=!1,this.apiKey=e,t=Hr(t),this.config=x(x(x({},te),t),{serverUrl:t?.serverUrl||(((n=t?.serverZone)===null||n===void 0?void 0:n.toLowerCase())==="eu"?Kr:te.serverUrl),flagsServerUrl:t?.flagsServerUrl||(((a=t?.serverZone)===null||a===void 0?void 0:a.toLowerCase())==="eu"?Yr:te.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<dt?dt:(o=t.flagConfigPollingIntervalMillis)!==null&&o!==void 0?o:te.flagConfigPollingIntervalMillis}),this.logger=new Ur(this.config.loggerProvider||new Mr,r.getLogLevel(t));var l=(u=this.config)===null||u===void 0?void 0:u.internalInstanceNameSuffix;if(this.isWebExperiment=l==="web",this.poller=new gr(function(){return I(i,void 0,void 0,function(){var h;return O(this,function(v){switch(v.label){case 0:return v.trys.push([0,2,,3]),[4,this.doFlags()];case 1:return v.sent(),[3,3];case 2:return h=v.sent(),this.logger.info(h),[3,3];case 3:return[2]}})})},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var s in this.config.initialVariants)this.config.initialVariants[s]=Mt(this.config.initialVariants[s]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new qr(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new zr(this.config.exposureTrackingProvider)),this.integrationManager=new Or(this.config,this);var f=new Nr(this.config.httpClient||Pt);this.flagApi=new pr(this.apiKey,this.config.flagsServerUrl,f),this.evaluationApi=new hr(this.apiKey,this.config.serverUrl,f);var y,c=l?"".concat(this.config.instanceName,"-").concat(l):this.config.instanceName;this.isWebExperiment?y=new Lt:y=new Ne,this.variants=Lr(this.apiKey,c,y),this.flags=Dr(this.apiKey,c,y),this.fetchVariantsOptions=Fr(this.apiKey,c,y);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch{}this.mergeInitialFlagsWithStorage()}return r.prototype.start=function(e){return I(this,void 0,void 0,function(){var t,i,n,a;return O(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 I(this,arguments,void 0,function(e,t){var i;return e===void 0&&(e=this.user),O(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 Ve?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: 10,898 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);ct(i)||delete e[t]}return x(x(x({},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=x({},this.user.user_properties);return x(x({},this.user),{user_properties:t})}else return x({},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=x({},e.user_properties);this.user=x(x({},e),{user_properties:i})}else this.user=x({},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=et(this.flags.getAll(),e),o=ft(n),u=this.engine.evaluate(o,a),l={};try{for(var s=$(Object.keys(u)),f=s.next();!f.done;f=s.next()){var y=f.value;l[y]=vt(u[y])}}catch(c){t={error:c}}finally{try{f&&!f.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return l},r.prototype.getEvaluationTraces=function(e){var t=this.addContext(this.user),i=et(this.flags.getAll(),e),n=ft(t),a=this.engine.evaluateWithTraces(n,i).traces;return a},r.prototype.variantAndSource=function(e,t){var i={};this.config.source===X.LocalStorage?i=this.localStorageVariantAndSource(e,t):this.config.source===X.InitialVariants&&(i=this.initialVariantsVariantAndSource(e,t));var n=this.flags.get(e);return(ct(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],u=P.LocalEvaluation,l=(n=o?.metadata)===null||n===void 0?void 0:n.default;if(!j(o)&&!l)return{variant:D(o),source:u,hasDefaultVariant:!1};if(l&&(a={variant:D(o),source:u,hasDefaultVariant:!0}),!j(i))return{variant:D(i),source:P.FallbackInline,hasDefaultVariant:a.hasDefaultVariant};var s=this.config.initialVariants[e];if(!j(s))return{variant:D(s),source:P.SecondaryInitialVariants,hasDefaultVariant:a.hasDefaultVariant};var f=D(this.config.fallbackVariant),y={variant:f,source:P.FallbackConfig,hasDefaultVariant:a.hasDefaultVariant};return Me(f)?a:y},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(!j(a)&&!o)return{variant:D(a),source:P.LocalStorage,hasDefaultVariant:!1};if(o&&(n={variant:D(a),source:P.LocalStorage,hasDefaultVariant:!0}),!j(t))return{variant:D(t),source:P.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var u=this.config.initialVariants[e];if(!j(u))return{variant:D(u),source:P.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var l=D(this.config.fallbackVariant),s={variant:l,source:P.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return Me(l)?n:s},r.prototype.initialVariantsVariantAndSource=function(e,t){var i,n={},a=this.config.initialVariants[e];if(!j(a))return{variant:D(a),source:P.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),u=(i=o?.metadata)===null||i===void 0?void 0:i.default;if(!j(o)&&!u)return{variant:D(o),source:P.LocalStorage,hasDefaultVariant:!1};if(u&&(n={variant:D(o),source:P.LocalStorage,hasDefaultVariant:!0}),!j(t))return{variant:D(t),source:P.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var l=D(this.config.fallbackVariant),s={variant:l,source:P.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return Me(l)?n:s},r.prototype.fetchInternal=function(e,t,i,n){return I(this,void 0,void 0,function(){var a,o,u;return O(this,function(l){switch(l.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(),l.label=1;case 1:return l.trys.push([1,4,,5]),[4,this.doFetch(e,t,x({trackingOption:(u=this.fetchVariantsOptions.get())===null||u===void 0?void 0:u.trackingOption},n))];case 2:return a=l.sent(),[4,this.storeVariants(a,n)];case 3:return l.sent(),[2,a];case 4:throw o=l.sent(),i&&this.shouldRetryFetch(o)&&this.startRetries(e,n),o;case 5:return[2]}})})},r.prototype.setTracksAssignment=function(e){return I(this,void 0,void 0,function(){return O(this,function(t){return this.fetchVariantsOptions.put(x(x({},this.fetchVariantsOptions.get()||{}),{trackingOption:e?"track":"no-track"})),this.fetchVariantsOptions.store(),[2]})})},r.prototype.cleanUserPropsForFetch=function(e){var t=x({},e);return delete t.cookie,t},r.prototype.doFetch=function(e,t,i){return I(this,void 0,void 0,function(){var n,a,o,u,l,s,f;return O(this,function(y){switch(y.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=y.sent(),e=this.cleanUserPropsForFetch(e),this.logger.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,x({timeoutMillis:t},i))];case 2:n=y.sent(),a={};try{for(o=$(Object.keys(n)),u=o.next();!u.done;u=o.next())l=u.value,a[l]=vt(n[l])}catch(c){s={error:c}}finally{try{u&&!u.done&&(f=o.return)&&f.call(o)}finally{if(s)throw s.error}}return this.logger.debug("[Experiment] Received variants: ",a),[2,a]}})})},r.prototype.doFlags=function(){return I(this,void 0,void 0,function(){var e,t,i;return O(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:lt,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 Ve){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 I(this,void 0,void 0,function(){var i,n,a,o,o;return O(this,function(u){i=t&&t.flagKeys?t.flagKeys:[],i.length===0&&this.variants.clear(),n=function(l){i=i.filter(function(s){return s!==l}),a.variants.put(l,e[l])},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 I(this,void 0,void 0,function(){var i=this;return O(this,function(n){return this.logger.debug("[Experiment] Retry fetch"),this.retriesBackoff=new jr(Qr,Wr,Jr,Xr),this.retriesBackoff.start(function(){return I(i,void 0,void 0,function(){return O(this,function(a){switch(a.label){case 0:return[4,this.fetchInternal(e,Gr,!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=x(x(x({},i?.user_properties),n.user_properties),e?.user_properties);return x(x(x(x({library:"experiment-js-client/".concat(lt)},i),n),e),{user_properties:a})},r.prototype.addContextOrWait=function(e){return I(this,void 0,void 0,function(){return O(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==X.LocalStorage)return this.variants.getAll();if(this.config.source==X.InitialVariants)return this.config.initialVariants},r.prototype.secondaryVariants=function(){if(this.config.source==X.LocalStorage)return this.config.initialVariants;if(this.config.source==X.InitialVariants)return this.variants.getAll()},r.prototype.exposureInternal=function(e,t){var i,n,a,o,u,l,s,f,y,c=(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(c){this.legacyExposureInternal(e,t.variant,t.source);var h={flag_key:e},v=ut(t.source);if(!(v&&!t.hasDefaultVariant)){!((o=t.variant)===null||o===void 0)&&o.expKey&&(h.experiment_key=(u=t.variant)===null||u===void 0?void 0:u.expKey);var d=(l=t.variant)===null||l===void 0?void 0:l.metadata;if(!v&&!d?.default&&(!((s=t.variant)===null||s===void 0)&&s.key?h.variant=t.variant.key:!((f=t.variant)===null||f===void 0)&&f.value&&(h.variant=t.variant.value)),d&&(h.metadata=d),this.isWebExperiment&&(h.time=Date.now()),this.isWebExperiment){var p=re();if(p?.location)try{var A=p.location.href;h.metadata.url=A.split("?")[0]||""}catch{}}var R=this.addContext(this.getUser());(y=this.userSessionExposureTracker)===null||y===void 0||y.track(h,R),this.integrationManager.track(h,R)}}},r.prototype.legacyExposureInternal=function(e,t,i){var n,a,o,u,l;if(this.analyticsProvider){var s=this.addContext(this.getUser()),f=Vr(s,e,t,i);ut(i)||!t?.value?(a=(n=this.analyticsProvider)===null||n===void 0?void 0:n.unsetUserProperty)===null||a===void 0||a.call(n,f):t?.value&&((u=(o=this.analyticsProvider)===null||o===void 0?void 0:o.setUserProperty)===null||u===void 0||u.call(o,f),(l=this.analyticsProvider)===null||l===void 0||l.track(f))}},r.getLogLevel=function(e){var t;return e.debug===!0?q.Debug:(t=e.logLevel)!==null&&t!==void 0?t:q.Error},r.prototype.shouldRetryFetch=function(e){return e instanceof Rt?e.statusCode<400||e.statusCode>=500||e.statusCode===429:!0},r.prototype.addPlugin=function(e){e.type==="integration"&&this.integrationManager.setIntegration(e)},r})(),$r=(function(){function r(e,t){var i,n,a;this.globalScope=re(),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 Ne,this.sessionStorage=new Lt,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 x({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
1: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=$(a.searchParams),u=o.next();!u.done;u=o.next()){var l=L(u.value,2),s=l[0],f=l[1];n[s]=V(V([],L((i=n[s])!==null&&i!==void 0?i:[]),!1),L(f.split(",")),!1)}}catch(y){e={error:y}}finally{try{u&&!u.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch{return}return Object.entries(n).reduce(function(y,c){var h=L(c,2),v=h[0],d=h[1];return y[v]=d.length==1?d[0]:d,y},{})}},r})();C.experimentInstances={};var ht=C.experimentInstances,ei=function(r,e){return Ft(r,e)},ti=function(r,e){var t=function(){return new xr(r,jt.getInstance(Dt(e)),1e4)};return Ft(r,e,t)},Dt=function(r){return r?.instanceName||te.instanceName},ri=function(r,e){var t=Dt(e),i=e?.internalInstanceNameSuffix;return i?"".concat(t,".").concat(r,".").concat(i):"".concat(t,".").concat(r)},ii=function(r,e){return new Zr(r,x(x({},e),{userProvider:new $r(e?.userProvider,r)}))},Ft=function(r,e,t){var i=ri(r,e),n=ht[i];return n||(n=ii(r,e),t&&n.addPlugin(t()),ht[i]=n,n)},ci={initialize:ei,initializeWithAmplitudeAnalytics:ti},fi=(function(){function r(){}return r.prototype.getUser=function(){return{}},r.prototype.start=function(e){return I(this,void 0,void 0,function(){return O(this,function(t){return[2]})})},r.prototype.stop=function(){},r.prototype.setUser=function(e){},r.prototype.fetch=function(e,t){return I(this,void 0,void 0,function(){return O(this,function(i){return[2,this]})})},r.prototype.getUserProvider=function(){return null},r.prototype.setUserProvider=function(e){return this},r.prototype.variant=function(e,t){return te.fallbackVariant},r.prototype.all=function(){return{}},r.prototype.clear=function(){},r.prototype.exposure=function(e){},r})();export{li as AmplitudeAnalyticsProvider,xr as AmplitudeIntegrationPlugin,ui as AmplitudeUserProvider,Mr as ConsoleLogger,ci as Experiment,Zr as ExperimentClient,q as LogLevel,X as Source,fi as StubExperimentClient,ei as initialize,ti as initializeWithAmplitudeAnalytics};
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.