PageSourceSearch

https://www.base.org/_next/static/chunks/3o_g6gclmdt2i.js

js base.org collected 2026-09-24 08:28:08 UTC 82,682 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,536283,e=>{"use strict";let t;var r,i,n,o,a,s=e.i(681099),u=e.i(636706),l=e.i(738666),c=e.i(514499),f=e.i(294197),d=function(e,t){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function h(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function v(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})}function y(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){var l=[s,u];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(r=1,i&&(n=2&l[0]?i.return:l[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;switch(i=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,i=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(6===l[0]&&a.label<n[1]){a.label=n[1],n=l;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(l);break}n[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],i=0}finally{r=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function g(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function m(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var w="is not",x="contains",S="does not contain",k="less",_="less or equal",C="greater",I="greater or equal",P="version less",A="version less or equal",E="version greater",O="version greater or equal",T="set is",M="set is not",j="set contains",U="set does not contain",V="set contains any",N="set does not contain any",R=function(e){for(var t=[],r=0,i=0;i<e.length;i++){var n=e.charCodeAt(i);n<128?t[r++]=n:(n<2048?t[r++]=n>>6|192:((64512&n)==55296&&i+1<e.length&&(64512&e.charCodeAt(i+1))==56320?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++i)),t[r++]=n>>18|240,t[r++]=n>>12&63|128):t[r++]=n>>12|224,t[r++]=n>>6&63|128),t[r++]=63&n|128)}return Uint8Array.from(t)},F=function(e,t){void 0===t&&(t=0);for(var r=R(e),i=r.length,n=i>>2,o=t,a=0;a<n;a++)o=L(K(r,a<<2),o);var s=n<<2,u=0;switch(i-s){case 3:u^=r[s+2]<<16,u^=r[s+1]<<8,u^=r[s],o^=u=Math.imul(u=D(u=Math.imul(u,-0x3361d2af),15),0x1b873593);break;case 2:u^=r[s+1]<<8,u^=r[s],o^=u=Math.imul(u=D(u=Math.imul(u,-0x3361d2af),15),0x1b873593);break;case 1:u^=r[s],o^=u=Math.imul(u=D(u=Math.imul(u,-0x3361d2af),15),0x1b873593)}
1return q(o^=i)>>>0},L=function(e,t){var r=e,i=t;return i^=r=Math.imul(r=D(r=Math.imul(r,-0x3361d2af),15),0x1b873593),(i=Math.imul(i=D(i,13),5))+-0x19ab949c|0},q=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-0x7a143595),t^=t>>>13,t=Math.imul(t,-0x3d4d51cb),t^=t>>>16},D=function(e,t,r){void 0===r&&(r=32),t>r&&(t%=r);var i=(e&0xffffffff<<r-t>>>0)>>>0>>>r-t>>>0;return(e<<t|i)>>>0},K=function(e,t){return void 0===t&&(t=0),B(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},B=function(e){return(-0x1000000&e)>>>24|(0xff0000&e)>>>8|(65280&e)<<8|(255&e)<<24},z=function(e,t){var r,i;if(t&&0!==t.length){try{for(var n=g(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(!a||!e||"object"!=typeof e)return;e=e[a]}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}if(!e)return;return e}},J="^".concat("(\\d+)\\.(\\d+)","(\\.").concat("(\\d+)").concat("(-(([-\\w]+\\.?)*))?",")?$"),Q=function(){function e(e,t,r,i){void 0===i&&(i=void 0),this.major=e,this.minor=t,this.patch=r,this.preRelease=i}return e.parse=function(t){if(t){var r=new RegExp(J).exec(t);if(r){var i=Number(r[1]),n=Number(r[2]);if(!(isNaN(i)||isNaN(n)))return new e(i,n,Number(r[4])||0,r[5]||void 0)}}},e.prototype.compareTo=function(e){if(this.major>e.major)return 1;if(this.major<e.major)return -1;if(this.minor>e.minor)return 1;if(this.minor<e.minor)return -1;if(this.patch>e.patch)return 1;if(this.patch<e.patch||this.preRelease&&!e.preRelease)return -1;if(!this.preRelease&&e.preRelease)return 1;if(this.preRelease&&e.preRelease){if(this.preRelease>e.preRelease)return 1;if(this.preRelease<e.preRelease)return -1}return 0},e}(),H=function(){function e(){}return e.prototype.evaluate=function(e,t){var r,i,n={},o={context:e,result:n};try{for(var a=g(t),s=a.next();!s.done;s=a.next()){var u=s.value,l=this.evaluateFlag(o,u);l&&(n[u.key]=l)}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return n},e.prototype.evaluateFlag=function(e,t){try{for(var r,i,n,o=g(t.segments),a=o.next();!a.done;a=o.next()){var s=a.value;if(n=this.evaluateSegment(e,t,s)){var u=p(p(p({},t.metadata),s.metadata),n.metadata);n=p(p({},n),{metadata:u});break}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return n},e.prototype.evaluateSegment=function(e,t,r){if(!r.conditions){var i=this.bucket(e,r);return void 0!==i?t.variants[i]:void 0}if(this.evaluateConditions(e,r.conditions)){var i=this.bucket(e,r);if(void 0!==i)return t.variants[i]}},e.prototype.evaluateConditions=function(e,t){var r,i,n,o;try{for(var a=g(t),s=a.next();!s.done;s=a.next()){var u=s.value,l=!0;try{for(var c=(n=void 0,g(u)),f=c.next();!f.done;f=c.next()){var d=f.value;if(!(l=this.matchCondition(e,d)))break}}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}if(l)return!0}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return!1},e.prototype.matchCondition=function(e,t){var r=z(e,t.selector);if(!r)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var i=this.coerceStringArray(r);return!!i&&this.matchSet(i,t.op,t.values)}var n=this.coerceString(r);return void 0!==n&&this.matchString(n,t.op,t.values)},e.prototype.getHash=function(e){return F(e)},e.prototype.bucket=function(e,t){if(!t.bucket)return t.variant;var r,i,n,o,a=this.coerceString(z(e,t.bucket.selector));if(!a||0===a.length)return t.variant;var s="".concat(t.bucket.salt,"/").concat(a),u=this.getHash(s),l=u%100,c=Math.floor(u/100);try{for(var f=g(t.bucket.allocations),d=f.next();!d.done;d=f.next()){var h=d.value,p=h.range[0],v=h.range[1];if(l>=p&&l<v)try{for(var y=(n=void 0,g(h.distributions)),b=y.next();!b.done;b=y.next()){var m=b.value,w=m.range[0],x=m.range[1];if(c>=w&&c<x)return m.variant}}catch(e){n={error:e}}finally{try{b&&!b.done&&(o=y.return)&&o.call(y)}finally{if(n)throw n.error}}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return t.variant},e.prototype.matchNull=function(e,t){var r=this.containsNone(t);switch(e){case"is":case x:case k:case _:case C:case I:case P:case A:case E:case O:case T:case j:case V:return r;case w:case S:case U:case N:return!r;default:return!1}},e.prototype.matchSet=function(e,t,r){switch(t){case T:return this.setEquals(e,r);case M:return!this.setEquals(e,r);case j:return this.matchesSetContainsAll(e,r);case U:return!this.matchesSetContainsAll(e,r);case V:return this.matchesSetContainsAny(e,r);case N:return!this.matchesSetContainsAny(e,r);default:return!1}},e.prototype.matchString=function(e,t,r){var i=this;switch(t){case"is":return this.matchesIs(e,r);case w:return!this.matchesIs(e,r);case x:return this.matchesContains(e,r);case S:return!this.matchesContains(e,r);case k:case _:case C:case I:return this.matchesComparable(e,t,r,function(e){return i.parseNumber(e)},this.comparator);case P:case A:case E:case O:return this.matchesComparable(e,t,r,function(e){return Q.parse(e)},this.versionComparator);case"regex match":return this.matchesRegex(e,r);case"regex does not match":return!this.matchesRegex(e,r);default:return!1}},e.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var r=e.toLowerCase();if("true"===r||"false"===r)return t.some(function(e){return e.toLowerCase()===r})}return t.some(function(t){return e===t})},e.prototype.matchesContains=function(e,t){var r,i;try{for(var n=g(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(e.toLowerCase().includes(a.toLowerCase()))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return!1},e.prototype.matchesComparable=function(e,t,r,i,n){var o=this,a=i(e),s=r.map(function(e){return i(e)}).filter(function(e){return void 0!==e});return void 0===a||0===s.length?r.some(function(r){return o.comparator(e,t,r)}):s.some(function(e){return n(a,t,e)})},e.prototype.comparator=function(e,t,r){switch(t){case k:case P:return e<r;case _:case A:return e<=r;case C:case E:return e>r;case I:case O:return e>=r;default:return!1}},e.prototype.versionComparator=function(e,t,r){var i=e.compareTo(r);switch(t){case k:case P:return i<0;case _:case A:return i<=0;case C:case E:return i>0;case I:case O:return i>=0;default:return!1}},e.prototype.matchesRegex=function(e,t){return t.some(function(t){return!!new RegExp(t).exec(e)})},e.prototype.containsNone=function(e){return e.some(function(e){return"(none)"===e})},e.prototype.containsBooleans=function(e){return e.some(function(e){switch(e.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(e){var t;return null!=(t=Number(e))?t:void 0},e.prototype.coerceString=function(e){if(null!=e)return"object"==typeof e?JSON.stringify(e):String(e)},e.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var r=e;return r.map(function(e){return t.coerceString(e)}
1).filter(Boolean)}var i=String(e);try{var n=JSON.parse(i);if(Array.isArray(n)){var r=e;return r.map(function(e){return t.coerceString(e)}).filter(Boolean)}var o=this.coerceString(i);return o?[o]:void 0}catch(e){var o=this.coerceString(i);return o?[o]:void 0}},e.prototype.isSetOperator=function(e){switch(e){case T:case M:case j:case U:case V:case N:return!0;default:return!1}},e.prototype.setEquals=function(e,t){var r=new Set(e),i=new Set(t);return r.size===i.size&&m([],b(i),!1).every(function(e){return r.has(e)})},e.prototype.matchesSetContainsAll=function(e,t){var r,i;if(e.length<t.length)return!1;try{for(var n=g(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(!this.matchesIs(a,e))return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return!0},e.prototype.matchesSetContainsAny=function(e,t){var r,i;try{for(var n=g(t),o=n.next();!o.done;o=n.next()){var a=o.value;if(this.matchesIs(a,e))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(i=n.return)&&i.call(n)}finally{if(r)throw r.error}}return!1},e}(),X=function(e,t){var r,i,n=p({},e),o=[],a=t||Object.keys(n);try{for(var s=g(a),u=s.next();!u.done;u=s.next()){var l=u.value,c=W(l,n);c&&o.push.apply(o,m([],b(c),!1))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},W=function(e,t,r){void 0===r&&(r=[]);var i,n,o=t[e];if(o){if(!o.dependencies||0===o.dependencies.length)return delete t[o.key],[o];r.push(o.key);var a=[],s=function(e){if(r.some(function(t){return t===e}))throw Error("Detected a cycle between flags ".concat(r));var i=W(e,t,r);i&&a.push.apply(a,m([],b(i),!1))};try{for(var u=g(o.dependencies),l=u.next();!l.done;l=u.next()){var c=l.value;s(c)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return a.push(o),r.pop(),delete t[o.key],a}};let $="function"==typeof atob,G="function"==typeof btoa,Z="function"==typeof f.Buffer,Y="function"==typeof TextDecoder?new TextDecoder:void 0,ee="function"==typeof TextEncoder?new TextEncoder:void 0,et=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),er=(t={},et.forEach((e,r)=>t[e]=r),t),ei=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,en=String.fromCharCode.bind(String),eo="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),ea=e=>e.replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"),es=G?e=>btoa(e):Z?e=>f.Buffer.from(e,"binary").toString("base64"):e=>{let t,r,i,n,o="",a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw TypeError("invalid character found");o+=et[(t=r<<16|i<<8|n)>>18&63]+et[t>>12&63]+et[t>>6&63]+et[63&t]}return a?o.slice(0,a-3)+"===".substring(a):o},eu=Z?e=>f.Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,i=e.length;r<i;r+=4096)t.push(en.apply(null,e.subarray(r,r+4096)));return es(t.join(""))},el=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?en(192|t>>>6)+en(128|63&t):en(224|t>>>12&15)+en(128|t>>>6&63)+en(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return en(240|t>>>18&7)+en(128|t>>>12&63)+en(128|t>>>6&63)+en(128|63&t)},ec=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ef=Z?e=>f.Buffer.from(e,"utf8").toString("base64"):ee?e=>eu(ee.encode(e)):e=>es(e.replace(ec,el)),ed=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?ea(ef(e)):ef(e)},eh=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ep=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return en((t>>>10)+55296)+en((1023&t)+56320);case 3:return en((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return en((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},ev=$?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):Z?e=>f.Buffer.from(e,"base64").toString("binary"):e=>
1{if(e=e.replace(/\s+/g,""),!ei.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r="",i,n;for(let o=0;o<e.length;)t=er[e.charAt(o++)]<<18|er[e.charAt(o++)]<<12|(i=er[e.charAt(o++)])<<6|(n=er[e.charAt(o++)]),r+=64===i?en(t>>16&255):64===n?en(t>>16&255,t>>8&255):en(t>>16&255,t>>8&255,255&t);return r},ey=Z?e=>eo(f.Buffer.from(e,"base64")):e=>eo(ev(e).split("").map(e=>e.charCodeAt(0))),eg=Z?e=>f.Buffer.from(e,"base64").toString("utf8"):Y?e=>Y.decode(ey(e)):e=>ev(e).replace(eh,ep);var eb=function(e){function t(r,i){var n=e.call(this,i)||this;return n.statusCode=r,Object.setPrototypeOf(n,t.prototype),n}return h(t,e),t}(Error),em=function(e){function t(r){var i=e.call(this,r)||this;return Object.setPrototypeOf(i,t.prototype),i}return h(t,e),t}(Error),ew=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getVariants=function(e,t){return v(this,void 0,void 0,function(){var r,i,n,o;return y(this,function(a){switch(a.label){case 0:return r=ed(JSON.stringify(e),!0),i={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},(null==t?void 0:t.flagKeys)&&(i["X-Amp-Exp-Flag-Keys"]=ed(JSON.stringify(t.flagKeys),!0)),(null==t?void 0:t.trackingOption)&&(i["X-Amp-Exp-Track"]=t.trackingOption),n=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),(null==t?void 0:t.evaluationMode)&&n.searchParams.append("eval_mode",null==t?void 0:t.evaluationMode),(null==t?void 0:t.deliveryMethod)&&n.searchParams.append("delivery_method",null==t?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:n.toString(),method:"GET",headers:i,timeoutMillis:null==t?void 0:t.timeoutMillis})];case 1:if(200!=(o=a.sent()).status)throw new eb(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},e}(),ex=function(){function e(e,t,r){this.deploymentKey=e,this.serverUrl=t,this.httpClient=r}return e.prototype.getFlags=function(e){return v(this,void 0,void 0,function(){var t,r;return y(this,function(i){switch(i.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},(null==e?void 0:e.libraryName)&&(null==e?void 0:e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),(null==e?void 0:e.user)&&(t["X-Amp-Exp-User"]=ed(JSON.stringify(e.user),!0)),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+((null==e?void 0:e.deliveryMethod)?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:null==e?void 0:e.timeoutMillis})];case 1:if(200!=(r=i.sent()).status)throw Error("Flags error response: status=".concat(r.status));return[2,JSON.parse(r.body).reduce(function(e,t){return e[t.key]=t,e},{})]}})})},e}(),eS="u">typeof globalThis?globalThis:e.g||self,ek=function(){return"u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof self?self:e.g},e_=function(){var e=ek();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch(e){}return!1},eC=function(){function e(e,t){this.poller=void 0,this.action=e,this.ms=t}return e.prototype.start=function(){this.poller||(this.poller=eS.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(eS.clearInterval(this.poller),this.poller=void 0)},e}(),eI=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:eP(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),eP=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},eA=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},e.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},e}(),eE=function(){return(eE=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function eO(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eT(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}"function"==typeof SuppressedError&&SuppressedError;var eM=function(e,t){var r,i,n=typeof e;if(n!==typeof t)return!1;try{for(var o=eO(["string","number","boolean","undefined"]),a=o.next();!a.done;a=o.next())if(a.value===n)return e===t}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var s=Array.isArray(e),u=Array.isArray(t);if(s!==u)return!1;if(s&&u){for(var l=0;l<e.length;l++)if(!eM(e[l],t[l]))return!1}else{if(!eM(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var c=!0;return Object.keys(e).forEach(function(r){eM(e[r],t[r])||(c=!1)}),c}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),r=t.length,i=Array(r);r--;)i[r]=[t[r],e[t[r]]];return i});var ej=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=eE({},this.identity.userProperties),r=eE(eE({},this.identity),{userProperties:t});return{setUserId:function(e){return r.userId=e,this},setDeviceId:function(e){return r.deviceId=e,this},setUserProperties:function(e){return r.userProperties=e,this},setOptOut:function(e){return r.optOut=e,this},updateUserProperties:function(e){var t,i,n,o,a,s,u=r.userProperties||{};try{for(var l=eO(Object.entries(e)),c=l.next();!c.done;c=l.next()){var f=eT(c.value,2),d=f[0],h=f[1];switch(d){case"$set":try{for(var p=(n=void 0,eO(Object.entries(h))),v=p.next();!v.done;v=p.next()){var y=eT(v.value,2),g=y[0],b=y[1];u[g]=b}}catch(e){n={error:e}}finally{try{v&&!v.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}break;case"$unset":try{for(var m=(a=void 0,eO(Object.keys(h))),w=m.next();!w.done;w=m.next()){var g=w.value;delete u[g]}}catch(e){a={error:e}}finally{try{w&&!w.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}break;case"$clearAll":u={}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return r.userProperties=u,this},commit:function(){return e.setIdentity(r),this}}},e.prototype.getIdentity=function(){return eE({},this.identity)},e.prototype.setIdentity=function(e){var t=eE({},this.identity);this.identity=eE({},e),eM(t,this.identity)||this.listeners.forEach(function(t){t(e)})},e.prototype.addIdentityListener=function(e){this.listeners.add(e)},e.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},e}(),eU="u">typeof globalThis?globalThis:e.g,eV=(function(){function e(){this.identityStore=new ej,this.eventBridge=new eA,this.applicationContextProvider=new eI}e.getInstance=function(t){return eU.analyticsConnectorInstances||(eU.analyticsConnectorInstances={}),eU.analyticsConnectorInstances[t]||(eU.analyticsConnectorInstances[t]=new e),eU.analyticsConnectorInstances[t]}}(),e.i(218702));function eN(e){this.amplitudeInstance=e}function eR(e){this.amplitudeInstance=e}eN.prototype.getUser=function(){var e,t,r,i,n,o,a,s,u,l;return{device_id:null==(t=null==(e=this.amplitudeInstance)?void 0:e.options)?void 0:t.deviceId,user_id:null==(i=null==(r=this.amplitudeInstance)?void 0:r.options)?void 0:i.userId,version:null==(o=null==(n=this.amplitudeInstance)?void 0:n.options)?void 0:o.versionName,language:null==(s=null==(a=this.amplitudeInstance)?void 0:a.options)?void 0:s.language,platform:null==(l=null==(u=this.amplitudeInstance)?void 0:u.options)?void 0:l.platform,os:this.getOs(),device_model:this.getDeviceModel()}},eN.prototype.getOs=function(){var e,t,r,i,n,o;return[null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.browser)?void 0:r.name,null==(o=null==(n=null==(i=this.amplitudeInstance)?void 0:i._ua)?void 0:n.browser)?void 0:o.major].filter(function(e){return null!=e}).join(" ")},eN.prototype.getDeviceModel=function(){var e,t,r;return null==(r=null==(t=null==(e=this.amplitudeInstance)?void 0:e._ua)?void 0:t.os)?void 0:r.name},eR.prototype.track=function(e){this.amplitudeInstance.logEvent(e.name,e.properties)},eR.prototype.setUserProperty=function(e){var t,r;this.amplitudeInstance.setUserProperties(((t={})[e.userProperty]=null==(r=e.variant)?void 0:r.value,t))},eR.prototype.unsetUserProperty=function(e){var t;this.amplitudeInstance._logEvent("$identify",null,null,{$unset:((t={})[e.userProperty]="-",t)})};var eF=function(){return(eF=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function eL(e,t,r,i){return new(r||(r=Promise))(function(n,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((i=i.apply(e,t||[])).next())})}function eq(e,t){var r,i,n,o,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){var l=[s,u];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(a=0)),a;)try{if(r=1,i&&(n=2&l[0]?i.return:l[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;switch(i=0,n&&(l=[2&l[0],n.value]),l[0]){case 0:case 1:n=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,i=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(6===l[0]&&a.label<n[1]){a.label=n[1],n=l;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(l);break}n[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],i=0}finally{r=n=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}function eD(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);
1if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function eK(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return a}function eB(e,t,r){if(r||2==arguments.length)for(var i,n=0,o=t.length;n<o;n++)!i&&n in t||(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ez=function(e,t){void 0===t&&(t=!1);var r,i,n=eH(e,t),o=void 0,a=eS.document.cookie.split("; ");try{for(var s=eD(a),u=s.next();!u.done;u=s.next()){var l=u.value,c=eK(l.split("="),2),d=c[0],h=c[1];d===n&&(o=decodeURIComponent(h))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}if(o)try{if(t){var p=f.Buffer.from(o,"base64").toString("utf-8");return JSON.parse(decodeURIComponent(p))}var v=o.split("."),y=void 0;return v.length>=2&&v[1]&&(y=f.Buffer.from(v[1],"base64").toString("utf-8")),{deviceId:v[0],userId:y}}catch(e){return}},eJ=function(e){var t=eH(e,!0);try{var r=eS.localStorage.getItem(t);if(!r)return;var i=JSON.parse(r);if("object"!=typeof i)return;return i}catch(e){return}},eQ=function(e){var t=eH(e,!0);try{var r=eS.sessionStorage.getItem(t);if(!r)return;var i=JSON.parse(r);if("object"!=typeof i)return;return i}catch(e){return}},eH=function(e,t){if(t){if((null==e?void 0:e.length)<10)return;return"AMP_".concat(e.substring(0,10))}if(!((null==e?void 0:e.length)<6))return"amp_".concat(e.substring(0,6))},eX=(function(){function e(e,t,r){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=r,this.loadPersistedState(),r<=0&&(this.setup=void 0)}e.prototype.setup=function(e,t){return eL(this,void 0,void 0,function(){return eq(this,function(r){return(null==e?void 0:e.automaticFetchOnAmplitudeIdentityChange)&&this.identityStore.addIdentityListener(function(){null==t||t.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.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}},e.prototype.track=function(e){return!!this.eventBridge.receiver&&(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0)},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=ez(this.apiKey,!0);return!!(e||(e=ez(this.apiKey,!1))||(e=eJ(this.apiKey))||(e=eQ(this.apiKey)))&&(this.commitIdentityToConnector(e),!0)},e.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},e.prototype.waitForConnectorIdentity=function(e){return eL(this,void 0,void 0,function(){var t,r=this;return eq(this,function(i){return(t=this.identityStore.getIdentity()).userId||t.deviceId?[2]:[2,Promise.race([new Promise(function(e){var t=function(){e(),r.identityStore.removeIdentityListener(t)};r.identityStore.addIdentityListener(t)}),new Promise(function(t,r){eS.setTimeout(r,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]})})}}(),eS.fetch||function(e,t){return t=t||{},new Promise(function(r,i){var n=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:2==(n.status/100|0),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:u,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in n.open(t.method||"get",e,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,r){o.push(t=t.toLowerCase()),a.push([t,r]),s[t]=s[t]?s[t]+","+r:r}),r(u())},n.onerror=i,n.withCredentials="include"==t.credentials,t.headers)n.setRequestHeader(l,t.headers[l]);n.send(t.body||null)})}),eW=function(){function e(e){this.client=e}return e.prototype.request=function(e){return eL(this,void 0,void 0,function(){return eq(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()]}})})},e}(),e$={request:function(e,t,r,i,n){var o;return o=eL(void 0,void 0,void 0,function(){var n,o;return eq(this,function(a){switch(a.label){case 0:return[4,eX(e,{method:t,headers:r,body:i})];case 1:return o={status:(n=a.sent()).status},[4,n.text()];case 2:return o.body=a.sent(),[2,o]}})}),null==n||n<=0?o:new Promise(function(e,t){eS.setTimeout(function(){t(new em("Request timeout after "+n+" milliseconds"))},n),o.then(e,t)})}};(r=n||(n={})).LocalStorage="localStorage",r.InitialVariants="initialVariants",(i=o||(o={})).LocalStorage="storage",i.InitialVariants="initial",i.SecondaryLocalStorage="secondary-storage",i.SecondaryInitialVariants="secondary-initial",i.FallbackInline="fallback-inline",i.FallbackConfig="fallback-config",i.LocalEvaluation="local-evaluation";var eG=function(e){return!e||e===o.FallbackInline||e===o.FallbackConfig||e===o.SecondaryInitialVariants},eZ={debug:!1,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:n.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:e$}
1,eY="1.15.0",e0=function(){function e(e,t){var r,i=this;this.isReady=new Promise(function(e){i.resolve=e}),this.config=e,this.client=t;var n=null!=(r=e.instanceName)?r:eZ.instanceName;this.queue=new e2(n),this.cache=new e1(n)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.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(r){console.error("Integration setup failed.",r),t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(e){if(this.cache.shouldTrack(e)){var t=this.getExposureEvent(e);this.queue.push(t)}},e.prototype.getExposureEvent=function(e){var t,r,i,n={eventType:"$exposure",eventProperties:e};return(null==(t=e.metadata)?void 0:t.exposureEvent)?n={eventType:null==(r=e.metadata)?void 0:r.exposureEvent,eventProperties:e}:(null==(i=e.metadata)?void 0:i.deliveryMethod)==="web"&&(n={eventType:"$impression",eventProperties:e}),n},e}(),e1=function(){function e(e){this.isSessionStorageAvailable=e3(),this.inMemoryCache={},this.storageKey="EXP_sent_v2_".concat(e),eS.sessionStorage.removeItem("EXP_sent_".concat(e))}return e.prototype.shouldTrack=function(e){if((null==(t=e.metadata)?void 0:t.deliveryMethod)==="web")return!0;this.loadCache();var t,r=this.inMemoryCache[e.flag_key],i=!1;return r&&r.variant===e.variant||(i=!0,this.inMemoryCache[e.flag_key]=e),this.storeCache(),i},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=eS.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},e.prototype.storeCache=function(){this.isSessionStorageAvailable&&eS.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))},e}(),e2=function(){function e(e,t){void 0===t&&(t=512),this.isLocalStorageAvailable=e_(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return e.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},e.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=eS.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){var e,t;if(this.tracker&&0!==this.inMemoryQueue.length){try{for(var r=eD(this.inMemoryQueue),i=r.next();!i.done;i=r.next()){var n=i.value;if(!this.tracker(n))return}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.inMemoryQueue=[],this.poller&&(eS.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=eS.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),eS.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),e3=function(){var e=ek();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch(e){}return!1},e6=function(){function e(){this.globalScope=ek()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.localStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.localStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.localStorage.removeItem(e)},e}(),e4=function(e,t,r){var i=e.substring(e.length-6);return new e8("amp-exp-".concat(t,"-").concat(i),r,e9)},e5=function(e,t,r){void 0===r&&(r=new e6);var i=e.substring(e.length-6);return new e8("amp-exp-".concat(t,"-").concat(i,"-flags"),r)},e8=function(){function e(e,t,r){this.cache={},this.namespace=e,this.storage=t,this.transformer=r}return e.prototype.get=function(e){return this.cache[e]},e.prototype.getAll=function(){return eF({},this.cache)},e.prototype.put=function(e,t){this.cache[e]=t},e.prototype.putAll=function(e){var t,r;try{for(var i=eD(Object.keys(e)),n=i.next();!n.done;n=i.next()){var o=n.value;this.cache[o]=e[o]}}catch(e){t={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var e,t,r,i=this.storage.get(this.namespace);try{r=JSON.parse(i)||{}}catch(e){return}var n={};try{for(var o=eD(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;try{var u=void 0;(u=this.transformer?this.transformer(r[s]):r[s])&&(n[s]=u)}catch(e){}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(n)},e.prototype.store=function(e){void 0===e&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},e}(),e9=function(e){if("string"==typeof e)return{key:e,value:e};if("object"==typeof e){var t=e.key,r=e.value,i=e.payload,n=e.metadata,o=e.expKey;n&&n.experimentKey?o=n.experimentKey:o&&((n=n||{}).experimentKey=o);var a={};return t?a.key=t:r&&(a.key=r),r&&(a.value=r),n&&(a.metadata=n),i&&(a.payload=i),o&&(a.expKey=o),a}},e7=function(e,t,r,i){var n,o=null==r?void 0:r.value,a="[Experiment] ".concat(t);return{name:"[Experiment] Exposure",user:e,key:t,variant:r,userProperty:a,properties:{key:t,variant:o,source:i},userProperties:((n={})[a]=o,n)}},te=function(e){return null==e},tt=function(e){return!!te(e)||e&&0===Object.keys(e).length},tr=function(e){var t;return(null==(t=null==e?void 0:e.metadata)?void 0:t.evaluationMode)==="local"}
1,ti=function(){function e(e,t,r,i){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=r,this.scalar=i}return e.prototype.start=function(e){return eL(this,void 0,void 0,function(){return eq(this,function(t){switch(t.label){case 0:if(this.started)throw Error("Backoff already started");return this.started=!0,[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(e,t,r){return eL(this,void 0,void 0,function(){var i=this;return eq(this,function(n){return this.done||(this.timeoutHandle=eS.setTimeout(function(){return eL(i,void 0,void 0,function(){var i,n;return eq(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e()];case 1:return o.sent(),[3,3];case 2:return o.sent(),(i=t+1)<this.attempts&&(n=Math.min(r*this.scalar,this.max),this.backoff(e,i,n)),[3,3];case 3:return[2]}})})},r)),[2]})})},e}(),tn=function(e){if(!e)return{};var t,r,i,n,o={user:e},a=ek();a&&(o.page={url:a.location.href});var s={};if(!e.groups)return o;try{for(var u=eD(Object.keys(e.groups)),l=u.next();!l.done;l=u.next()){var c=l.value,f=e.groups[c];if(f.length>0&&f[0]){var d=f[0],h={group_name:d},p=null==(n=null==(i=e.group_properties)?void 0:i[c])?void 0:n[d];p&&Object.keys(p).length>0&&(h.group_properties=p),s[c]=h}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return Object.keys(s).length>0&&(o.groups=s),delete o.user.groups,delete o.user.group_properties,o},to=function(e){return null==e?{}:"string"==typeof e?{key:e,value:e}:e},ta=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var r={};return e.key&&(r.key=e.key),e.value&&(r.value=e.value),e.payload&&(r.payload=e.payload),t&&(r.expKey=t),e.metadata&&(r.metadata=e.metadata),r},ts=function(){function e(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return e.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))},e.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},e.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},e}(),tu=function(){function e(e){this.tracked={},this.exposureTrackingProvider=e}return e.prototype.track=function(e){var t=this.tracked[e.flag_key];t&&t.variant===e.variant||(this.tracked[e.flag_key]=e,this.exposureTrackingProvider.track(e))},e}(),tl=function(){function e(e,t){var r,i,n,o=this;if(this.engine=new H,this.isRunning=!1,this.apiKey=e,this.config=eF(eF(eF({},eZ),t),{serverUrl:(null==t?void 0:t.serverUrl)||((null==(r=null==t?void 0:t.serverZone)?void 0:r.toLowerCase())==="eu"?"https://api.lab.eu.amplitude.com":eZ.serverUrl),flagsServerUrl:(null==t?void 0:t.flagsServerUrl)||((null==(i=null==t?void 0:t.serverZone)?void 0:i.toLowerCase())==="eu"?"https://flag.lab.eu.amplitude.com":eZ.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<6e4?6e4:null!=(n=t.flagConfigPollingIntervalMillis)?n:eZ.flagConfigPollingIntervalMillis}),this.poller=new eC(function(){return o.doFlags()},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var a in this.config.initialVariants)this.config.initialVariants[a]=e9(this.config.initialVariants[a]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new ts(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.exposureTrackingProvider=new tu(this.config.exposureTrackingProvider)),this.integrationManager=new e0(this.config,this);var s=new eW(this.config.httpClient||e$);this.flagApi=new ex(this.apiKey,this.config.flagsServerUrl,s),this.evaluationApi=new ew(this.apiKey,this.config.serverUrl,s);var u=new e6;this.variants=e4(this.apiKey,this.config.instanceName,u),this.flags=e5(this.apiKey,this.config.instanceName,u);try{this.flags.load(),this.variants.load()}catch(e){}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(e){var t;return eL(this,void 0,void 0,function(){var r;return eq(this,function(i){switch(i.label){case 0:if(this.isRunning)return[2];if(this.isRunning=!0,this.setUser(e),r=this.doFlags(),!(null==(t=this.config.fetchOnStart)||t))return[3,2];return[4,Promise.all([this.fetch(e),r])];case 1:return i.sent(),[3,4];case 2:return[4,r];case 3:i.sent(),i.label=4;case 4:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(e,t){return void 0===e&&(e=this.user),eL(this,void 0,void 0,function(){var r;return eq(this,function(i){switch(i.label){case 0:this.setUser(e||{}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return i.sent(),[3,4];case 3:return r=i.sent(),this.config.debug&&(r instanceof em?console.debug(r):console.error(r)),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(e,t){if(!this.apiKey)return{value:void 0};var r,i,n=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,n),this.debug("[Experiment] variant for ".concat(e," is ").concat((null==(r=n.variant)?void 0:r.key)||(null==(i=n.variant)?void 0:i.value))),n.variant||{}}
1,e.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},e.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e)tr(this.flags.get(t))||delete e[t];return eF(eF(eF({},this.secondaryVariants()),this.sourceVariants()),e)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch(e){}},e.prototype.getUser=function(){if(!this.user)return this.user;if(null==(e=this.user)||!e.user_properties)return eF({},this.user);var e,t=eF({},this.user.user_properties);return eF(eF({},this.user),{user_properties:t})},e.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(null==(t=this.user)?void 0:t.user_properties){var r=eF({},e.user_properties);this.user=eF(eF({},e),{user_properties:r})}else this.user=eF({},e)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(e){return this.userProvider=e,this},e.prototype.mergeInitialFlagsWithStorage=function(){var e=this;this.config.initialFlags&&JSON.parse(this.config.initialFlags).forEach(function(t){e.flags.get(t.key)||e.flags.put(t.key,t)})},e.prototype.evaluate=function(e){var t,r,i=this.addContext(this.user),n=X(this.flags.getAll(),e),o=tn(i),a=this.engine.evaluate(o,n),s={};try{for(var u=eD(Object.keys(a)),l=u.next();!l.done;l=u.next()){var c=l.value;s[c]=ta(a[c])}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return s},e.prototype.variantAndSource=function(e,t){var r={};this.config.source===n.LocalStorage?r=this.localStorageVariantAndSource(e,t):this.config.source===n.InitialVariants&&(r=this.initialVariantsVariantAndSource(e,t));var i=this.flags.get(e);return(tr(i)||!r.variant&&i)&&(r=this.localEvaluationVariantAndSource(e,i,t)),r},e.prototype.localEvaluationVariantAndSource=function(e,t,r){var i,n={},a=this.evaluate([t.key])[e],s=o.LocalEvaluation,u=null==(i=null==a?void 0:a.metadata)?void 0:i.default;if(!te(a)&&!u)return{variant:to(a),source:s,hasDefaultVariant:!1};if(u&&(n={variant:to(a),source:s,hasDefaultVariant:!0}),!te(r))return{variant:to(r),source:o.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var l=this.config.initialVariants[e];if(!te(l))return{variant:to(l),source:o.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var c=to(this.config.fallbackVariant),f={variant:c,source:o.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return tt(c)?n:f},e.prototype.localStorageVariantAndSource=function(e,t){var r,i={},n=this.variants.get(e),a=null==(r=null==n?void 0:n.metadata)?void 0:r.default;if(!te(n)&&!a)return{variant:to(n),source:o.LocalStorage,hasDefaultVariant:!1};if(a&&(i={variant:to(n),source:o.LocalStorage,hasDefaultVariant:!0}),!te(t))return{variant:to(t),source:o.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var s=this.config.initialVariants[e];if(!te(s))return{variant:to(s),source:o.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var u=to(this.config.fallbackVariant),l={variant:u,source:o.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return tt(u)?i:l},e.prototype.initialVariantsVariantAndSource=function(e,t){var r,i={},n=this.config.initialVariants[e];if(!te(n))return{variant:to(n),source:o.InitialVariants,hasDefaultVariant:!1};var a=this.variants.get(e),s=null==(r=null==a?void 0:a.metadata)?void 0:r.default;if(!te(a)&&!s)return{variant:to(a),source:o.LocalStorage,hasDefaultVariant:!1};if(s&&(i={variant:to(a),source:o.LocalStorage,hasDefaultVariant:!0}),!te(t))return{variant:to(t),source:o.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var u=to(this.config.fallbackVariant),l={variant:u,source:o.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return tt(u)?i:l},e.prototype.fetchInternal=function(e,t,r,i){return eL(this,void 0,void 0,function(){var n,o;return eq(this,function(a){switch(a.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.debug("[Experiment] Fetch all: retry=".concat(r)),r&&this.stopRetries(),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,this.doFetch(e,t,i)];case 2:return n=a.sent(),[4,this.storeVariants(n,i)];case 3:return a.sent(),[2,n];case 4:throw o=a.sent(),r&&this.shouldRetryFetch(o)&&this.startRetries(e,i),o;case 5:return[2]}})})},e.prototype.cleanUserPropsForFetch=function(e){var t=eF({},e);return delete t.cookie,t},e.prototype.doFetch=function(e,t,r){return eL(this,void 0,void 0,function(){var i,n,o,a,s,u,l;return eq(this,function(c){switch(c.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=c.sent(),e=this.cleanUserPropsForFetch(e),this.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,eF({timeoutMillis:t},r))];case 2:i=c.sent(),n={};try{for(a=(o=eD(Object.keys(i))).next();!a.done;a=o.next())n[s=a.value]=ta(i[s])}catch(e){u={error:e}}finally{try{a&&!a.done&&(l=o.return)&&l.call(o)}finally{if(u)throw u.error}}
1return this.debug("[Experiment] Received variants: ",n),[2,n]}})})},e.prototype.doFlags=function(){var e;return eL(this,void 0,void 0,function(){var t,r,i,n;return eq(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=(null==(e=this.config)?void 0:e.internalInstanceNameSuffix)==="web",r=this.addContext(this.getUser()),[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:eY,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:t?"web":void 0,user:t&&((null==r?void 0:r.user_id)||(null==r?void 0:r.device_id))?{user_id:null==r?void 0:r.user_id,device_id:null==r?void 0:r.device_id}:void 0})];case 1:return i=o.sent(),this.flags.clear(),this.flags.putAll(i),[3,3];case 2:if((n=o.sent())instanceof em)this.config.debug&&console.debug(n);else throw n;return[3,3];case 3:try{this.flags.store()}catch(e){}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(e,t){return eL(this,void 0,void 0,function(){var r,i,n,o;return eq(this,function(a){for(o in 0===(r=t&&t.flagKeys?t.flagKeys:[]).length&&this.variants.clear(),i=function(t){r=r.filter(function(e){return e!==t}),n.variants.put(t,e[t])},n=this,e)i(o);for(o in r)this.variants.remove(o);try{this.variants.store()}catch(e){}return this.debug("[Experiment] Stored variants: ",e),[2]})})},e.prototype.startRetries=function(e,t){return eL(this,void 0,void 0,function(){var r=this;return eq(this,function(i){return this.debug("[Experiment] Retry fetch"),this.retriesBackoff=new ti(8,500,1e4,1.5),this.retriesBackoff.start(function(){return eL(r,void 0,void 0,function(){return eq(this,function(r){switch(r.label){case 0:return[4,this.fetchInternal(e,1e4,!1,t)];case 1:return r.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(e){var t,r=null==(t=this.userProvider)?void 0:t.getUser(),i=this.integrationManager.getUser(),n=eF(eF(eF({},null==r?void 0:r.user_properties),i.user_properties),null==e?void 0:e.user_properties);return eF(eF(eF(eF({library:"experiment-js-client/".concat(eY)},r),i),e),{user_properties:n})},e.prototype.addContextOrWait=function(e){return eL(this,void 0,void 0,function(){return eq(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},e.prototype.sourceVariants=function(){return this.config.source==n.LocalStorage?this.variants.getAll():this.config.source==n.InitialVariants?this.config.initialVariants:void 0},e.prototype.secondaryVariants=function(){return this.config.source==n.LocalStorage?this.config.initialVariants:this.config.source==n.InitialVariants?this.variants.getAll():void 0},e.prototype.exposureInternal=function(e,t){if(null==(n=null==(i=null==(r=t.variant)?void 0:r.metadata)?void 0:i.trackExposure)||n){this.legacyExposureInternal(e,t.variant,t.source);var r,i,n,o,a,s,u,l,c,f={flag_key:e},d=eG(t.source);if(!d||t.hasDefaultVariant){(null==(o=t.variant)?void 0:o.expKey)&&(f.experiment_key=null==(a=t.variant)?void 0:a.expKey);var h=null==(s=t.variant)?void 0:s.metadata;d||(null==h?void 0:h.default)||((null==(u=t.variant)?void 0:u.key)?f.variant=t.variant.key:(null==(l=t.variant)?void 0:l.value)&&(f.variant=t.variant.value)),h&&(f.metadata=h),null==(c=this.exposureTrackingProvider)||c.track(f),this.integrationManager.track(f)}}},e.prototype.legacyExposureInternal=function(e,t,r){var i,n,o,a,s;if(this.analyticsProvider){var u=e7(this.addContext(this.getUser()),e,t,r);!eG(r)&&(null==t?void 0:t.value)?(null==t?void 0:t.value)&&(null==(a=null==(o=this.analyticsProvider)?void 0:o.setUserProperty)||a.call(o,u),null==(s=this.analyticsProvider)||s.track(u)):null==(n=null==(i=this.analyticsProvider)?void 0:i.unsetUserProperty)||n.call(i,u)}},e.prototype.debug=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.config.debug&&console.debug.apply(console,eB([e],eK(t),!1))},e.prototype.shouldRetryFetch=function(e){return!(e instanceof eb)||e.statusCode<400||e.statusCode>=500||429===e.statusCode}
1,e.prototype.addPlugin=function(e){"integration"===e.type&&this.integrationManager.setIntegration(e)},e}(),tc=function(){function e(){this.globalScope=ek()}return e.prototype.get=function(e){var t;return null==(t=this.globalScope)?void 0:t.sessionStorage.getItem(e)},e.prototype.put=function(e,t){var r;null==(r=this.globalScope)||r.sessionStorage.setItem(e,t)},e.prototype.delete=function(e){var t;null==(t=this.globalScope)||t.sessionStorage.removeItem(e)},e}(),tf=function(){function e(e,t){var r,i,n;this.globalScope=ek(),this.userAgent=void 0!==(null==(r=this.globalScope)?void 0:r.navigator)?null==(i=this.globalScope)?void 0:i.navigator.userAgent:void 0,this.ua=new eV.UAParser(this.userAgent).getResult(),this.localStorage=new e6,this.sessionStorage=new tc,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat(null==(n=this.apiKey)?void 0:n.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var e,t,r,i,n,o=(null==(e=this.userProvider)?void 0:e.getUser())||{};return eF({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:null!=(r=null==(t=this.ua.device)?void 0:t.type)?r:"desktop",referring_url:null==(n=null==(i=this.globalScope)?void 0:i.document)?void 0:n.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)},e.prototype.getLanguage=function(){return"u">typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(e){var t,r;return[null==(t=e.browser)?void 0:t.name,null==(r=e.browser)?void 0:r.major].filter(function(e){return null!=e}).join(" ")},e.prototype.getDeviceModel=function(e){var t;return null==(t=e.os)?void 0:t.name},e.prototype.getBrowser=function(e){var t,r=null==(t=e.browser)?void 0:t.name;return(null==r?void 0:r.includes("Chrom"))&&(r="Chrome"),(null==r?void 0:r.includes("Firefox"))&&(r="Firefox"),(null==r?void 0:r.includes("Safari"))&&(r="Safari"),(null==r?void 0:r.includes("Edge"))&&(r="Edge"),(null==r?void 0:r.includes("Opera"))&&(r="Opera"),r},e.prototype.getCookie=function(){var e,t,r,i,n;if(null==(t=null==(e=this.globalScope)?void 0:e.document)?void 0:t.cookie)return Object.fromEntries(null==(n=null==(i=null==(r=this.globalScope)?void 0:r.document)?void 0:i.cookie)?void 0:n.split("; ").map(function(e){return e.split("=")}))},e.prototype.getLandingUrl=function(){var e,t;try{var r=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return r.landing_url||(r.landing_url=null==(t=null==(e=this.globalScope)?void 0:e.location)?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(r))),r.landing_url}catch(e){return}},e.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(e){return}},e.prototype.getUrlParam=function(){if(this.globalScope){var e,t,r,i={};try{var n=new URL(this.globalScope.location.href);try{for(var o=eD(n.searchParams),a=o.next();!a.done;a=o.next()){var s=eK(a.value,2),u=s[0],l=s[1];i[u]=eB(eB([],eK(null!=(r=i[u])?r:[]),!1),eK(l.split(",")),!1)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch(e){return}return Object.entries(i).reduce(function(e,t){var r=eK(t,2),i=r[0],n=r[1];return e[i]=1==n.length?n[0]:n,e},{})}},e}();eS.experimentInstances={};var td=eS.experimentInstances,th=function(e,t){var r,i=(null==(r=t)?void 0:r.instanceName)||eZ.instanceName,n=null==t?void 0:t.internalInstanceNameSuffix,o=n?"".concat(i,".").concat(e,".").concat(n):"".concat(i,".").concat(e);return td[o]||(t=eF(eF({},t),{userProvider:new tf(null==t?void 0:t.userProvider,e)}),td[o]=new tl(e,t)),td[o]};function tp(){}tp.prototype.getUser=function(){return{}},tp.prototype.start=function(e){return eL(this,void 0,void 0,function(){return eq(this,function(e){return[2]})})},tp.prototype.stop=function(){},tp.prototype.setUser=function(e){},tp.prototype.fetch=function(e){return eL(this,void 0,void 0,function(){return eq(this,function(e){return[2,this]})})},tp.prototype.getUserProvider=function(){return null},tp.prototype.setUserProvider=function(e){return this},tp.prototype.variant=function(e,t){return eZ.fallbackVariant},tp.prototype.all=function(){return{}},tp.prototype.clear=function(){}
1,tp.prototype.exposure=function(e){};var tv=e.i(645335),ty=e.i(929928);let tg=(0,c.createContext)({experimentClient:null,isReady:!1,getUserVariant:()=>""});function tb(e){let{children:t}=e,[r,i]=(0,c.useState)(!1),[n,o]=(0,c.useState)();(0,c.useEffect)(()=>{o(th(tv.ampDeploymentKey,{exposureTrackingProvider:{track:e=>{(0,ty.default)("exposure__".concat(e.flag_key),{action:ty.ActionType.view,componentType:ty.ComponentType.page,variant:e.variant,flag_key:e.flag_key,experiment_key:e.experiment_key},ty.AnalyticsEventImportance.high)}},userProvider:{getUser:()=>({user_id:window.ClientAnalytics.identity.userId,device_id:window.ClientAnalytics.identity.deviceId,os:window.ClientAnalytics.identity.device_os,language:window.ClientAnalytics.identity.languageCode,country:window.ClientAnalytics.identity.countryCode})}}))},[tv.ampDeploymentKey]);let a=(0,c.useCallback)(async()=>{n&&await n.start()},[n]);(0,c.useEffect)(()=>{a().then(()=>{i(!0)}).catch(e=>{})},[n,a]);let u=(0,c.useCallback)(e=>r?n?n.variant(e).value:void console.error("No experiment clients found"):void 0,[r,n]),l=(0,c.useMemo)(()=>({experimentClient:n,isReady:r,getUserVariant:u}),[r,u]);return(0,s.jsx)(tg.Provider,{value:l,children:t})}var tm=e.i(150629),tw=e.i(555167),tx=e.i(277462);let tS="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);for(var tk=new Uint8Array(16),t_=[],tC=0;tC<256;++tC)t_.push((tC+256).toString(16).slice(1));let tI=function(e,t,r){if(tS&&!t&&!e)return tS();var i=(e=e||{}).random||(e.rng||function(){if(!a&&!(a="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(tk)})();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){r=r||0;for(var n=0;n<16;++n)t[r+n]=i[n];return t}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(t_[e[t+0]]+t_[e[t+1]]+t_[e[t+2]]+t_[e[t+3]]+"-"+t_[e[t+4]]+t_[e[t+5]]+"-"+t_[e[t+6]]+t_[e[t+7]]+"-"+t_[e[t+8]]+t_[e[t+9]]+"-"+t_[e[t+10]]+t_[e[t+11]]+t_[e[t+12]]+t_[e[t+13]]+t_[e[t+14]]+t_[e[t+15]]).toLowerCase()}(i)};function tP(){let e=(0,u.useConsentPreferences)(),[t,r]=(0,u.useCookie)("base_device_id","baseorg"),i=(0,tm.usePathname)(),n=(0,c.useRef)(null),o=(0,c.useMemo)(()=>({events:{on:(e,t)=>{"routeChangeComplete"===e&&t&&(n.current=t)}}}),[]);(0,c.useEffect)(()=>{n.current&&n.current()},[n,i]);let a=(0,c.useCallback)(()=>((e,t,r,i)=>{let n=r,o=(null==t?void 0:t.performance)===!0,a=tx.isDevelopment?"ca92bbcb548f7ec4b8ebe9194b8eda81":"2b38c7ac93c0dccc83ebf9acc5107413";if(o?n||i(n=tI()):n="base_web_device_id",window.ClientAnalytics){let{init:t,identify:r,PlatformName:i,initNextJsTrackPageview:o}=window.ClientAnalytics;t({isProd:!tx.isDevelopment,amplitudeApiKey:a,platform:i.web,projectName:"base_web",showDebugLogging:tx.isDevelopment,version:"1.0.0",apiEndpoint:"https://cca-lite.coinbase.com"}),r({deviceId:n}),o({nextJsRouter:e})}})(o,e,t,r),[o,e,t,r]);return tx.isDevelopment?null:(0,s.jsx)(tw.default,{src:"https://static-assets.coinbase.com/js/cca/v0.0.1.js",onLoad:a})}var tA=e.i(485869),tE=e.i(245578);let tO=(0,tA.default)(async()=>e.A(158824),{loadableGenerated:{modules:[391851]},ssr:!1}),tT=function(t){let[r,i]=(0,c.useState)(null);return(0,c.useEffect)(()=>{t&&(async()=>{try{let{sprig:r}=await e.A(817549),n=r.configure({environmentId:t});n("track","pageload"),i(n)}catch(e){console.error("Failed to load the Sprig module:",e)}})()},[]),r};e.s(["default",0,function(e){let{children:t}=e,r=(0,c.useRef)(),i=(0,u.useConsentPreferences)();return tT("abluaRXSxWIV"),(0,c.useEffect)(()=>{let e=r.current;r.current=i,e&&0!==Object.keys(e).length&&((0,u.arePreferencesEqual)(e,i)||window.location.reload())},[i]),(0,s.jsx)(tE.default,{context:"web",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tP,{}),(0,s.jsx)(l.Provider,{children:(0,s.jsx)(tb,{children:(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsx)(tO,{})]})})})]})})}],536283)},700937,e=>{"use strict";e.i(524062);var t=e.i(561676),r=e.i(277462),i=e.i(693721),n=e.i(514499);let o="16db4f8f-831a-4df5-b78b-546405085227",a="pubf484d04488d53c7af19b7477e946fc48";e.s(["default",0,function(){return(0,n.useEffect)(()=>
1{if(!r.isDevelopment){if(!o||!a)return void i.logger.warn("Datadog is not configured");t.datadogRum.init({applicationId:o,clientToken:a,site:"datadoghq.com",service:"base-org",env:"production",sessionSampleRate:100,sessionReplaySampleRate:20,trackUserInteractions:!0,trackResources:!0,trackLongTasks:!0,defaultPrivacyLevel:"mask",allowedTracingUrls:[{match:e=>e.startsWith("https://base.org/api"),propagatorTypes:["datadog"]}]})}},[]),null}])},798887,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return o}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},394811,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return l}};for(var n in i)Object.defineProperty(r,n,{enumerable:!0,get:i[n]});let o={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,s={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},u=/[&"'<>]/g;function l(e){return e.replace(a,e=>o[e])}function c(e){return e.replace(u,e=>s[e])}},759254,(e,t,r)=>{"use strict";var i=e.r(329882),n=e.r(9995),o=e.r(331109);Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return k},handleClientScriptLoad:function(){return w},initScriptLoader:function(){return x}};for(var s in a)Object.defineProperty(r,s,{enumerable:!0,get:a[s]});let u=e.r(284152),l=e.r(488770),c=e.r(681099),f=u._(e.r(372280)),d=l._(e.r(514499)),h=e.r(35538),p=e.r(256538),v=e.r(798887),y=e.r(394811),g=new Map,b=new Set,m=e=>{let{src:t,id:r,onLoad:i=()=>{},onReady:n=null,dangerouslySetInnerHTML:o,children:a="",strategy:s="afterInteractive",onError:u,stylesheets:l}=e,c=r||t;if(c&&b.has(c))return;if(g.has(t)){b.add(c),g.get(t).then(i,u);return}let d=()=>{n&&n(),b.add(c)},h=document.createElement("script"),v=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),i&&i.call(this,t),d()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});o?(h.innerHTML=o.__html||"",d()):a?(h.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",d()):t&&(h.src=t,g.set(t,v)),(0,p.setAttributesFromProps)(h,e),"worker"===s&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",s),l&&(e=>{if(f.default.preinit)return e.forEach(e=>{f.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(l),document.body.appendChild(h)};function w(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,v.requestIdleCallback)(()=>m(e))}):m(e)}function x(e){e.forEach(w),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");b.add(t)})}function S(e){let{id:t,src:r="",onLoad:a=()=>{},onReady:s=null,strategy:u="afterInteractive",onError:l,stylesheets:p}=e,g=o._(e,["id","src","onLoad","onReady","strategy","onError","stylesheets"]),{updateScripts:w,scripts:x,getIsSsr:S,appDir:k,nonce:_}=(0,d.useContext)(h.HeadManagerContext);_=g.nonce||_;let C=(0,d.useRef)(!1);(0,d.useEffect)(()=>{let e=t||r;C.current||(s&&e&&b.has(e)&&s(),C.current=!0)},[s,t,r]);let I=(0,d.useRef)(!1);if((0,d.useEffect)(()=>{if(!I.current){if("afterInteractive"===u)m(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,v.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,v.requestIdleCallback)(()=>m(e))}));I.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(w?(x[u]=(x[u]||[]).concat([n._(i._({id:t,src:r,onLoad:a,onReady:s,onError:l},g),{nonce:_})]),w(x)):S&&S()?b.add(t||r):S&&!S()&&m(n._(i._({},e),{nonce:_}
1))),k){if(p&&p.forEach(e=>{f.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!r)return g.dangerouslySetInnerHTML&&(g.children=g.dangerouslySetInnerHTML.__html,delete g.dangerouslySetInnerHTML),(0,c.jsx)("script",{nonce:_,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat((0,y.htmlEscapeJsonString)(JSON.stringify([0,n._(i._({},g),{id:t})])),")")}});else return f.default.preload(r,g.integrity?{as:"script",integrity:g.integrity,nonce:_,crossOrigin:g.crossOrigin}:{as:"script",nonce:_,crossOrigin:g.crossOrigin}),(0,c.jsx)("script",{nonce:_,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat((0,y.htmlEscapeJsonString)(JSON.stringify([r,n._(i._({},g),{id:t})])),")")}});"afterInteractive"===u&&r&&f.default.preload(r,g.integrity?{as:"script",integrity:g.integrity,nonce:_,crossOrigin:g.crossOrigin}:{as:"script",nonce:_,crossOrigin:g.crossOrigin})}return null}Object.defineProperty(S,"__nextScript",{value:!0});let k=S;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},555167,(e,t,r)=>{t.exports=e.r(759254)},218702,(e,t,r)=>{!function(e){"use strict";var i="function",n="undefined",o="object",a="string",s="model",u="name",l="type",c="vendor",f="version",d="architecture",h="console",p="mobile",v="tablet",y="smarttv",g="wearable",b="embedded",m="Amazon",w="Apple",x="ASUS",S="BlackBerry",k="Browser",_="Chrome",C="Firefox",I="Google",P="Huawei",A="Microsoft",E="Motorola",O="Opera",T="Samsung",M="Sharp",j="Sony",U="Xiaomi",V="Zebra",N="Facebook",R=function(e,t){var r={};for(var i in e)t[i]&&t[i].length%2==0?r[i]=t[i].concat(e[i]):r[i]=e[i];return r},F=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},L=function(e,t){return typeof e===a&&-1!==q(t).indexOf(q(e))},q=function(e){return e.toLowerCase()},D=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,350)},K=function(e,t){for(var r,n,a,s,u,l,c=0;c<t.length&&!u;){var f=t[c],d=t[c+1];for(r=n=0;r<f.length&&!u;)if(u=f[r++].exec(e))for(a=0;a<d.length;a++)l=u[++n],typeof(s=d[a])===o&&s.length>0?2===s.length?typeof s[1]==i?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==i||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):void 0:this[s[0]]=l?s[1].call(this,l,s[2]):void 0:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||void 0;c+=2}},B=function(e,t){for(var r in t)if(typeof t[r]===o&&t[r].length>0){for(var i=0;i<t[r].length;i++)if(L(t[r][i],e))return"?"===r?void 0:r}else if(L(t[r],e))return"?"===r?void 0:r;return e},z={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"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,f],[/opios[\/ ]+([\w\.]+)/i],[f,[u,O+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[u,O]],[/(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],[u,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[u,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[f,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[f,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[f,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+k],f],[/\bfocus\/([\w\.]+)/i],[f,[u,C+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[u,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[u,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[u,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[f,[u,C]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+k]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+
vendor: 5,572 bytes, line 1
1)/,"$1 "+k],f],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,f],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,N],f],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[u,_+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,_+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[u,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[f,B,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[u,C+" 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],[u,f],[/(cobalt)\/([\w\.]+)/i],[u,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,q]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",q]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,q]]],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],[s,[c,T],[l,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[c,T],[l,p]],[/((ipod|iphone)\d+,\d+)/i],[s,[c,w],[l,p]],[/(ipad\d+,\d+)/i],[s,[c,w],[l,v]],[/\((ip(?:hone|od)[\w ]*);/i],[s,[c,w],[l,p]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[c,w],[l,v]],[/(macintosh);/i],[s,[c,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[c,P],[l,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[c,P],[l,p]],[/\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],[[s,/_/g," "],[c,U],[l,p]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[c,U],[l,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[c,"OPPO"],[l,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[c,"Vivo"],[l,p]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[s,[c,"Realme"],[l,p]],[/\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],[s,[c,E],[l,p]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[c,E],[l,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[c,"LG"],[l,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[c,"LG"],[l,p]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[c,"Lenovo"],[l,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[c,"Nokia"],[l,p]],[/(pixel c)\b/i],[s,[c,I],[l,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[c,I],[l,p]],[/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],[s,[c,j],[l,p]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[c,j],[l,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[c,"OnePlus"],[l,p]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[c,m],[l,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[c,m],[l,p]],[/(playbook);[-\w\),; ]+(rim)/i],[s,c,[l,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[c,S],[l,p]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[c,x],[l,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[c,x],[l,p]],[/(nexus 9)/i],[s,[c,"HTC"],[l,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[c,[s,/_/g," "],[l,p]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[c,"Acer"],[l,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[c,"Meizu"],[l,p]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[c,M],[l,p]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 4,381 bytes, line 1
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[c,s,[l,p]],[/(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],[c,s,[l,v]],[/(surface duo)/i],[s,[c,A],[l,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[c,"Fairphone"],[l,p]],[/(u304aa)/i],[s,[c,"AT&T"],[l,p]],[/\bsie-(\w*)/i],[s,[c,"Siemens"],[l,p]],[/\b(rct\w+) b/i],[s,[c,"RCA"],[l,v]],[/\b(venue[\d ]{2,7}) b/i],[s,[c,"Dell"],[l,v]],[/\b(q(?:mv|ta)\w+) b/i],[s,[c,"Verizon"],[l,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[c,"Barnes & Noble"],[l,v]],[/\b(tm\d{3}\w+) b/i],[s,[c,"NuVision"],[l,v]],[/\b(k88) b/i],[s,[c,"ZTE"],[l,v]],[/\b(nx\d{3}j) b/i],[s,[c,"ZTE"],[l,p]],[/\b(gen\d{3}) b.+49h/i],[s,[c,"Swiss"],[l,p]],[/\b(zur\d{3}) b/i],[s,[c,"Swiss"],[l,v]],[/\b((zeki)?tb.*\b) b/i],[s,[c,"Zeki"],[l,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[c,"Dragon Touch"],s,[l,v]],[/\b(ns-?\w{0,9}) b/i],[s,[c,"Insignia"],[l,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[c,"NextBook"],[l,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[c,"Voice"],s,[l,p]],[/\b(lvtel\-)?(v1[12]) b/i],[[c,"LvTel"],s,[l,p]],[/\b(ph-1) /i],[s,[c,"Essential"],[l,p]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[c,"Envizen"],[l,v]],[/\b(trio[-\w\. ]+) b/i],[s,[c,"MachSpeed"],[l,v]],[/\btu_(1491) b/i],[s,[c,"Rotor"],[l,v]],[/(shield[\w ]+) b/i],[s,[c,"Nvidia"],[l,v]],[/(sprint) (\w+)/i],[c,s,[l,p]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[c,A],[l,p]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[c,V],[l,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[c,V],[l,p]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[c,s,[l,h]],[/droid.+; (shield) bui/i],[s,[c,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[s,[c,j],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[c,A],[l,h]],[/smart-tv.+(samsung)/i],[c,[l,y]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[c,T],[l,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[c,"LG"],[l,y]],[/(apple) ?tv/i],[c,[s,w+" TV"],[l,y]],[/crkey/i],[[s,_+"cast"],[c,I],[l,y]],[/droid.+aft(\w)( bui|\))/i],[s,[c,m],[l,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[c,M],[l,y]],[/(bravia[\w ]+)( bui|\))/i],[s,[c,j],[l,y]],[/(mitv-\w{5}) bui/i],[s,[c,U],[l,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[c,D],[s,D],[l,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,y]],[/((pebble))app/i],[c,s,[l,g]],[/droid.+; (glass) \d/i],[s,[c,I],[l,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[c,V],[l,g]],[/(quest( 2)?)/i],[s,[c,N],[l,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[c,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[s,[l,p]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[l,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,p]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[c,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[u,"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],[u,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,f],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[f,B,z]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[f,B,z]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,f],[/\(bb(10);/i],[f,[u,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+);
1 rv:.+ gecko\/([\w\.]+)/i],[f,[u,C+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[f,[u,_+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],f],[/(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],[u,f],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,f]]},Q=function(t,r){if(typeof t===o&&(r=t,t=void 0),!(this instanceof Q))return new Q(t,r).getResult();var i=t||(typeof e!==n&&e.navigator&&e.navigator.userAgent?e.navigator.userAgent:""),h=r?R(J,r):J;return this.getBrowser=function(){var e,t={};return t[u]=void 0,t[f]=void 0,K.call(t,i,h.browser),t.major=typeof(e=t.version)===a?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0,t},this.getCPU=function(){var e={};return e[d]=void 0,K.call(e,i,h.cpu),e},this.getDevice=function(){var e={};return e[c]=void 0,e[s]=void 0,e[l]=void 0,K.call(e,i,h.device),e},this.getEngine=function(){var e={};return e[u]=void 0,e[f]=void 0,K.call(e,i,h.engine),e},this.getOS=function(){var e={};return e[u]=void 0,e[f]=void 0,K.call(e,i,h.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 i},this.setUA=function(e){return i=typeof e===a&&e.length>350?D(e,350):e,this},this.setUA(i),this};Q.VERSION="0.7.33",Q.BROWSER=F([u,f,"major"]),Q.CPU=F([d]),Q.DEVICE=F([s,c,l,h,p,y,v,g,b]),Q.ENGINE=Q.OS=F([u,f]),t.exports&&(r=t.exports=Q),r.UAParser=Q;var H=typeof e!==n&&(e.jQuery||e.Zepto);if(H&&!H.ua){var X=new Q;H.ua=X.getResult(),H.ua.get=function(){return X.getUA()},H.ua.set=function(e){X.setUA(e);var t=X.getResult();for(var r in t)H.ua[r]=t[r]}}}("object"==typeof window?window:e.e)}]);

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.