PageSourceSearch

https://tonescholar.com/_next/static/chunks/8988-9f7e190dad826109.js

js tonescholar.com collected 2026-10-04 04:16:18 UTC 83,692 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8988],{98988:function(e,t,i){"use strict";i.d(t,{yV:function(){return e8},S1:function(){return e7},mc:function(){return te},$z:function(){return tt},Iv:function(){return ti},j:function(){return tn}});var n,r,o,s,u,a,c,l,d,p,f,h=i(21221);(n=c||(c={}))[n.None=0]="None",n[n.Error=1]="Error",n[n.Warn=2]="Warn",n[n.Verbose=3]="Verbose",n[n.Debug=4]="Debug";var v=function(e){return function(){var t=(0,h.pi)({},e.config);return{logger:t.loggerProvider,logLevel:t.logLevel}}},g=function(e,t){var i,n;t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"");try{for(var r=(0,h.XA)(t.split(".")),o=r.next();!o.done;o=r.next()){var s=o.value;if(!(s in e))return;e=e[s]}}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return e},b=function(e,t){return function(){var i,n,r={};try{for(var o=(0,h.XA)(t),s=o.next();!s.done;s=o.next()){var u=s.value;r[u]=g(e,u)}}catch(e){i={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return r}},y=function(e,t,i,n,r){return void 0===r&&(r=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var u=i(),a=u.logger,l=u.logLevel;if(l&&l<c.Debug||!l||!a)return e.apply(r,o);var d={type:"invoke public method",name:t,args:o,stacktrace:(Error().stack||"").split("\n").slice(3).map(function(e){return e.trim()}),time:{start:new Date().toISOString()},states:{}};n&&d.states&&(d.states.before=n());var p=e.apply(r,o);return p&&p.promise?p.promise.then(function(){n&&d.states&&(d.states.after=n()),d.time&&(d.time.end=new Date().toISOString()),a.debug(JSON.stringify(d,null,2))}):(n&&d.states&&(d.states.after=n()),d.time&&(d.time.end=new Date().toISOString()),a.debug(JSON.stringify(d,null,2))),p}},m=i(29622),w=function(e){return{promise:e||Promise.resolve()}};(r=l||(l={})).BEFORE="before",r.ENRICHMENT="enrichment",r.DESTINATION="destination",(o=d||(d={})).Unknown="unknown",o.Skipped="skipped",o.Success="success",o.RateLimit="rate_limit",o.PayloadTooLarge="payload_too_large",o.Invalid="invalid",o.Failed="failed",o.Timeout="Timeout",o.SystemError="SystemError";var _=i(49793),k=function(e,t){var i=Math.max(t,1);return e.reduce(function(e,t,n){var r=Math.floor(n/i);return e[r]||(e[r]=[]),e[r].push(t),e},[])},I=function(e,t,i){return void 0===t&&(t=0),void 0===i&&(i=d.Unknown),{event:e,code:t,message:i}};(s=p||(p={})).US="US",s.EU="EU";var E="Amplitude Logger ",S=function(){function e(){this.logLevel=c.None}return e.prototype.disable=function(){this.logLevel=c.None},e.prototype.enable=function(e){void 0===e&&(e=c.Warn),this.logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<c.Verbose||console.log("".concat(E,"[Log]: ").concat(e.join(" ")))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<c.Warn||console.warn("".concat(E,"[Warn]: ").concat(e.join(" ")))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<c.Error||console.error("".concat(E,"[Error]: ").concat(e.join(" ")))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.logLevel<c.Debug||console.log("".concat(E,"[Debug]: ").concat(e.join(" ")))},e}(),T=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,logLevel:c.Warn,loggerProvider:new S,optOut:!1,serverUrl:_.EG,serverZone:p.US,useBatch:!1}},O=function(){function e(e){this._optOut=!1;var t,i,n,r=T();this.apiKey=e.apiKey,this.flushIntervalMillis=e.flushIntervalMillis||r.flushIntervalMillis,this.flushMaxRetries=e.flushMaxRetries||r.flushMaxRetries,this.flushQueueSize=e.flushQueueSize||r.flushQueueSize,this.loggerProvider=e.loggerProvider||r.loggerProvider,this.logLevel=null!==(t=e.logLevel)&&void 0!==t?t:r.logLevel,this.minIdLength=e.minIdLength,this.plan=e.plan,this.ingestionMetadata=e.ingestionMetadata,this.optOut=null!==(i=e.optOut)&&void 0!==i?i:r.optOut,this.serverUrl=e.serverUrl,this.serverZone=e.serverZone||r.serverZone,this.storageProvider=e.storageProvider,this.transportProvider=e.transportProvider,this.useBatch=null!==(n=e.useBatch)&&void 0!==n?n:r.useBatch,this.loggerProvider.enable(this.logLevel);var o=x(e.serverUrl,e.serverZone,e.useBatch);this.serverZone=o.serverZone,this.serverUrl=o.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut=e}
1,enumerable:!1,configurable:!0}),e}(),x=function(e,t,i){if(void 0===e&&(e=""),void 0===t&&(t=T().serverZone),void 0===i&&(i=T().useBatch),e)return{serverUrl:e,serverZone:void 0};var n,r=["US","EU"].includes(t)?t:T().serverZone;return{serverZone:r,serverUrl:(n=i,r===p.EU?n?_.RE:_.y_:n?_.h8:_.EG)}},R=function(){function e(){this.name="amplitude",this.type=l.DESTINATION,this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduled=null,this.queue=[]}return e.prototype.setup=function(e){var t;return(0,h.mG)(this,void 0,void 0,function(){var i,n=this;return(0,h.Jh)(this,function(r){switch(r.label){case 0:return this.config=e,this.storageKey="".concat(_.f1,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(t=this.config.storageProvider)||void 0===t?void 0:t.get(this.storageKey)];case 1:return i=r.sent(),this.saveEvents(),i&&i.length>0&&Promise.all(i.map(function(e){return n.execute(e)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(e){var t=this;return new Promise(function(i){t.addToQueue({event:e,attempts:0,callback:function(e){return i(e)},timeout:0})})},e.prototype.addToQueue=function(){for(var e=this,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];t.filter(function(t){return t.attempts<e.config.flushMaxRetries?(t.attempts+=1,!0):(e.fulfillRequest([t],500,"Event rejected due to exceeded retry count"),!1)}).forEach(function(t){if(e.queue=e.queue.concat(t),0===t.timeout){e.schedule(e.config.flushIntervalMillis);return}setTimeout(function(){t.timeout=0,e.schedule(0)},t.timeout)}),this.saveEvents()},e.prototype.schedule=function(e){var t=this;this.scheduled||(this.scheduled=setTimeout(function(){t.flush(!0).then(function(){t.queue.length>0&&t.schedule(e)})},e))},e.prototype.flush=function(e){return void 0===e&&(e=!1),(0,h.mG)(this,void 0,void 0,function(){var t,i,n=this;return(0,h.Jh)(this,function(r){switch(r.label){case 0:return t=[],i=[],this.queue.forEach(function(e){return 0===e.timeout?t.push(e):i.push(e)}),this.queue=i,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(k(t,this.config.flushQueueSize).map(function(t){return n.send(t,e)}))];case 1:return r.sent(),[2]}})})},e.prototype.send=function(e,t){return void 0===t&&(t=!0),(0,h.mG)(this,void 0,void 0,function(){var i,n,r,o,s;return(0,h.Jh)(this,function(u){switch(u.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(e,400,"Event rejected due to missing API key")];i={api_key:this.config.apiKey,events:e.map(function(e){var t=e.event;return t.extra,(0,h._T)(t,["extra"])}),options:{min_id_length:this.config.minIdLength}},u.label=1;case 1:return u.trys.push([1,3,,4]),n=x(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(n,i)];case 2:if(null===(r=u.sent()))return this.fulfillRequest(e,0,"Unexpected error occurred"),[2];if(!t){if("body"in r){o="";try{o=JSON.stringify(r.body,null,2)}catch(e){}this.fulfillRequest(e,r.statusCode,"".concat(r.status,": ").concat(o))}else this.fulfillRequest(e,r.statusCode,r.status);return[2]}return this.handleReponse(r,e),[3,4];case 3:return s=u.sent(),this.fulfillRequest(e,0,String(s)),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(e,t){switch(e.status){case d.Success:this.handleSuccessResponse(e,t);break;case d.Invalid:this.handleInvalidResponse(e,t);break;case d.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case d.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.handleOtherReponse(t)}},e.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,"Event tracked successfully")},e.prototype.handleInvalidResponse=function(e,t){var i=this;if(e.body.missingField||e.body.error.startsWith("Invalid API key")){this.fulfillRequest(t,e.statusCode,e.body.error);return}var n=(0,h.ev)((0,h.ev)((0,h.ev)((0,h.ev)([],(0,h.CR)(Object.values(e.body.eventsWithInvalidFields)),!1),(0,h.CR)(Object.values(e.body.eventsWithMissingFields)),!1),(0,h.CR)(Object.values(e.body.eventsWithInvalidIdLengths)),!1),(0,h.CR)(e.body.silencedEvents),!1).flat(),r=new Set(n),o=t.filter(function(t,n){if(r.has(n)){i.fulfillRequest([t],e.statusCode,e.body.error);return}return!0});this.addToQueue.apply(this,(0,h.ev)([],(0,h.CR)(o),!1))},e.prototype.handlePayloadTooLargeResponse=function(e,t){if(1===t.length){this.fulfillRequest(t,e.statusCode,e.body.error);return}this.config.flushQueueSize/=2,this.addToQueue.apply(this,(0,h.ev)([],(0,h.CR)(t),!1))},e.prototype.handleRateLimitResponse=function(e,t){var i=this,n=Object.keys(e.body.exceededDailyQuotaUsers),r=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,s=new Set(n),u=new Set(r),a=new Set(o),c=t.filter(function(t,n){if(t.event.user_id&&s.has(t.event.user_id)||t.event.device_id&&u.has(t.event.device_id)){i.fulfillRequest([t],e.statusCode,e.body.error);return}return a.has(n)&&(t.timeout=i.throttleTimeout),!0});this.addToQueue.apply(this,(0,h.ev)([],(0,h.CR)(c),!1))},e.prototype.handleOtherReponse=function(e){var t=this;this.addToQueue.apply(this,(0,h.ev)([],(0,h.CR)(e.map(function(e){return e.timeout=e.attempts*t.retryTimeout,e})),!1))},e.prototype.fulfillRequest=function(e,t,i){this.saveEvents(),e.forEach(function(e){return e.callback(I(e.event,t,i))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var e=Array.from(this.queue.map(function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},e}(),P=function(e){return e?(e^16*Math.random()>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,P)},N=i(86583),U=i(91294),C=i(88150),q=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(e){return this.productId=e,this},e.prototype.setQuantity=function(e){return e>0&&(this.quantity=e),this},e.prototype.setPrice=function(e){return this.price=e,this},e.prototype.setRevenueType=function(e){return this.revenueType=e,this},e.prototype.setRevenue=function(e){return this.revenue=e,this},e.prototype.setEventProperties=function(e){return(0,C.L)(e)&&(this.properties=e),this},e.prototype.getEventProperties=function(){var e=this.properties?(0,h.pi)({},this.properties):{};return e[U.al.REVENUE_PRODUCT_ID]=this.productId,e[U.al.REVENUE_QUANTITY]=this.quantity,e[U.al.REVENUE_PRICE]=this.price,e[U.al.REVENUE_TYPE]=this.revenueType,e[U.al.REVENUE]=this.revenue,e},e}(),A=function(e,t){return(0,h.pi)((0,h.pi)({},t),{event_type:U.JU.IDENTIFY,user_properties:e.getUserProperties()})},D=function(e,t,i,n){var r;return(0,h.pi)((0,h.pi)({},n),{event_type:U.JU.GROUP_IDENTIFY,group_properties:i.getUserProperties(),groups:((r={})[e]=t,r)}
1)},j=function(e,t,i){var n,r=new N.h;return r.set(e,t),(0,h.pi)((0,h.pi)({},i),{event_type:U.JU.IDENTIFY,user_properties:r.getUserProperties(),groups:((n={})[e]=t,n)})},G=function(){function e(e){this.client=e,this.queue=[],this.applying=!1,this.plugins=[]}return e.prototype.register=function(e,t){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(i){switch(i.label){case 0:return[4,e.setup(t,this.client)];case 1:return i.sent(),this.plugins.push(e),[2]}})})},e.prototype.deregister=function(e){return this.plugins.splice(this.plugins.findIndex(function(t){return t.name===e}),1),Promise.resolve()},e.prototype.reset=function(e){this.applying=!1,this.plugins=[],this.client=e},e.prototype.push=function(e){var t=this;return new Promise(function(i){t.queue.push([e,i]),t.scheduleApply(0)})},e.prototype.scheduleApply=function(e){var t=this;this.applying||(this.applying=!0,setTimeout(function(){t.apply(t.queue.shift()).then(function(){t.applying=!1,t.queue.length>0&&t.scheduleApply(0)})},e))},e.prototype.apply=function(e){return(0,h.mG)(this,void 0,void 0,function(){var t,i,n,r,o,s,u,a,c,d,p,f;return(0,h.Jh)(this,function(v){switch(v.label){case 0:if(!e)return[2];t=(0,h.CR)(e,1)[0],i=(0,h.CR)(e,2)[1],n=this.plugins.filter(function(e){return e.type===l.BEFORE}),v.label=1;case 1:v.trys.push([1,6,7,8]),o=(r=(0,h.XA)(n)).next(),v.label=2;case 2:if(o.done)return[3,5];return[4,(0,o.value).execute((0,h.pi)({},t))];case 3:t=v.sent(),v.label=4;case 4:return o=r.next(),[3,2];case 5:return[3,8];case 6:return c={error:v.sent()},[3,8];case 7:try{o&&!o.done&&(d=r.return)&&d.call(r)}finally{if(c)throw c.error}return[7];case 8:s=this.plugins.filter(function(e){return e.type===l.ENRICHMENT}),v.label=9;case 9:v.trys.push([9,14,15,16]),a=(u=(0,h.XA)(s)).next(),v.label=10;case 10:if(a.done)return[3,13];return[4,(0,a.value).execute((0,h.pi)({},t))];case 11:t=v.sent(),v.label=12;case 12:return a=u.next(),[3,10];case 13:return[3,16];case 14:return p={error:v.sent()},[3,16];case 15:try{a&&!a.done&&(f=u.return)&&f.call(u)}finally{if(p)throw p.error}return[7];case 16:return Promise.all(this.plugins.filter(function(e){return e.type===l.DESTINATION}).map(function(e){var i=(0,h.pi)({},t);return e.execute(i).catch(function(e){return I(i,0,String(e))})})).then(function(e){var t=(0,h.CR)(e,1)[0];i(t)}),[2]}})})},e.prototype.flush=function(){return(0,h.mG)(this,void 0,void 0,function(){var e,t=this;return(0,h.Jh)(this,function(i){switch(i.label){case 0:return e=this.queue,this.queue=[],[4,Promise.all(e.map(function(e){return t.apply(e)}))];case 1:return i.sent(),[4,Promise.all(this.plugins.filter(function(e){return e.type===l.DESTINATION}).map(function(e){return e.flush&&e.flush()}))];case 2:return i.sent(),[2]}})})},e}(),J=function(){function e(e){void 0===e&&(e="$default"),this.initializing=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new G(this),this.name=e}return e.prototype._init=function(e){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(t){switch(t.label){case 0:return this.config=e,this.timeline.reset(this),[4,this.runQueuedFunctions("q")];case 1:return t.sent(),[2]}})})},e.prototype.runQueuedFunctions=function(e){return(0,h.mG)(this,void 0,void 0,function(){var t,i,n,r,o;return(0,h.Jh)(this,function(s){switch(s.label){case 0:t=this[e],this[e]=[],s.label=1;case 1:s.trys.push([1,6,7,8]),n=(i=(0,h.XA)(t)).next(),s.label=2;case 2:if(n.done)return[3,5];return[4,(0,n.value)()];case 3:s.sent(),s.label=4;case 4:return n=i.next(),[3,2];case 5:return[3,8];case 6:return r={error:s.sent()},[3,8];case 7:try{n&&!n.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}return[7];case 8:return[2]}})})},e.prototype.track=function(e,t,i){var n=(0,h.pi)((0,h.pi)((0,h.pi)({},"string"==typeof e?{event_type:e}:e),i),t&&{event_properties:t});return w(this.dispatch(n))},e.prototype.identify=function(e,t){var i=A(e,t);return w(this.dispatch(i))},e.prototype.groupIdentify=function(e,t,i,n){var r=D(e,t,i,n);return w(this.dispatch(r))},e.prototype.setGroup=function(e,t,i){var n=j(e,t,i);return w(this.dispatch(n))},e.prototype.revenue=function(e,t){var i=(0,h.pi)((0,h.pi)({},t),{event_type:U.JU.REVENUE,event_properties:e.getEventProperties()});return w(this.dispatch(i))},e.prototype.add=function(e){return this.config?w(this.timeline.register(e,this.config)):(this.q.push(this.add.bind(this,e)),w())},e.prototype.remove=function(e){return this.config?w(this.timeline.deregister(e)):(this.q.push(this.remove.bind(this,e)),w())},e.prototype.dispatchWithCallback=function(e,t){if(!this.config)return t(I(e,0,"Client not initialized"));this.process(e).then(t)},e.prototype.dispatch=function(e){return(0,h.mG)(this,void 0,void 0,function(){var t=this;return(0,h.Jh)(this,function(i){return this.config?[2,this.process(e)]:[2,new Promise(function(i){t.dispatchQ.push(t.dispatchWithCallback.bind(t,e,i))})]})})},e.prototype.process=function(e){return(0,h.mG)(this,void 0,void 0,function(){var t,i;return(0,h.Jh)(this,function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),this.config.optOut)return[2,I(e,0,"Event skipped due to optOut config")];return[4,this.timeline.push(e)];case 1:return 200===(t=n.sent()).code?this.config.loggerProvider.log(t.message):this.config.loggerProvider.error(t.message),[2,t];case 2:return i=String(n.sent()),this.config.loggerProvider.error(i),[2,t=I(e,0,i)];case 3:return[2]}})})},e.prototype.setOptOut=function(e){if(!this.config){this.q.push(this.setOptOut.bind(this,!!e));return}this.config.optOut=!!e},e.prototype.flush=function(){return w(this.timeline.flush())},e}(),L=function(e,t,i){return void 0===t&&(t=""),void 0===i&&(i=10),[_.xp,t,e.substring(0,i)].filter(
1Boolean).join("_")},M=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==i.g?i.g:void 0},V=function(){var e,t=M();return(null===(e=null==t?void 0:t.location)||void 0===e?void 0:e.search)?t.location.search.substring(1).split("&").filter(Boolean).reduce(function(e,t){var i=t.split("=",2),n=z(i[0]),r=z(i[1]);return r&&(e[n]=r),e},{}):{}},z=function(e){void 0===e&&(e="");try{return decodeURIComponent(e)}catch(e){return""}},F=i(76299),B=i.n(F),$=function(){function e(){this.ua=new F.UAParser("undefined"!=typeof navigator?navigator.userAgent:null).getResult()}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:Z(),platform:"Web",os:Q(this.ua),deviceModel:K(this.ua)}},e}(),Q=function(e){var t,i;return[null===(t=e.browser)||void 0===t?void 0:t.name,null===(i=e.browser)||void 0===i?void 0:i.major].filter(function(e){return null!=e}).join(" ")},K=function(e){var t;return null===(t=e.os)||void 0===t?void 0:t.name},Z=function(){return"undefined"!=typeof navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},H=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}(),W=function(){return(W=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},X=function(e,t){var i=typeof e;if(i!==typeof t)return!1;for(var n=0,r=["string","number","boolean","undefined"];n<r.length;n++)if(r[n]===i)return e===t;if(null==e&&null==t)return!0;if(null==e||null==t||e.length!==t.length)return!1;var o=Array.isArray(e),s=Array.isArray(t);if(o!==s)return!1;if(o&&s){for(var u=0;u<e.length;u++)if(!X(e[u],t[u]))return!1}else{if(!X(Object.keys(e).sort(),Object.keys(t).sort()))return!1;var a=!0;return Object.keys(e).forEach(function(i){X(e[i],t[i])||(a=!1)}),a}return!0};Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),i=t.length,n=Array(i);i--;)n[i]=[t[i],e[t[i]]];return n});var Y=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var e=this,t=W({},this.identity.userProperties),i=W(W({},this.identity),{userProperties:t});return{setUserId:function(e){return i.userId=e,this},setDeviceId:function(e){return i.deviceId=e,this},setUserProperties:function(e){return i.userProperties=e,this},updateUserProperties:function(e){for(var t=i.userProperties||{},n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],s=o[0],u=o[1];switch(s){case"$set":for(var a=0,c=Object.entries(u);a<c.length;a++){var l=c[a],d=l[0],p=l[1];t[d]=p}break;case"$unset":for(var f=0,h=Object.keys(u);f<h.length;f++){var d=h[f];delete t[d]}break;case"$clearAll":t={}}}return i.userProperties=t,this},commit:function(){return e.setIdentity(i),this}}},e.prototype.getIdentity=function(){return W({},this.identity)},e.prototype.setIdentity=function(e){var t=W({},this.identity);this.identity=W({},e),X(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}(),ee="undefined"!=typeof globalThis?globalThis:void 0!==i.g?i.g:self,et=function(){function e(){this.identityStore=new Y,this.eventBridge=new H,this.applicationContextProvider=new $}return e.getInstance=function(t){return ee.analyticsConnectorInstances||(ee.analyticsConnectorInstances={}),ee.analyticsConnectorInstances[t]||(ee.analyticsConnectorInstances[t]=new e),ee.analyticsConnectorInstances[t]},e}(),ei=function(){return et.getInstance("$default_instance")},en=function(e){ei().identityStore.editIdentity().setUserId(e).commit()},er=function(e){ei().identityStore.editIdentity().setDeviceId(e).commit()},eo=function(){function e(){this.name="identity",this.type=l.BEFORE,this.identityStore=ei().identityStore}return e.prototype.execute=function(e){return(0,h.mG)(this,void 0,void 0,function(){var t;return(0,h.Jh)(this,function(i){return(t=e.user_properties)&&this.identityStore.editIdentity().updateUserProperties(t).commit(),[2,e]})})},e.prototype.setup=function(e){return Promise.resolve(void 0)},e}(),es=function(e){var t,i,n=(null===(i=e.attribution)||void 0===i?void 0:i.trackPageViews)?"attribution":function(){return!1},r=void 0,o="Page View";return("boolean"==typeof(t=e.defaultTracking)?t:(null==t?void 0:t.pageViews)===!0||null!=t&&!!t.pageViews&&"object"==typeof t.pageViews)&&(n=void 0,o=void 0,e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.pageViews&&"object"==typeof e.defaultTracking.pageViews&&("trackOn"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(r=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(o=e.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:r,eventType:o}},eu=function(e,t){for(var i=0;i<t.length;i++){var n=t[i],r=n.name,o=n.args,s=n.resolve,u=e&&e[r];
1if("function"==typeof u){var a=u.apply(e,o);"function"==typeof s&&s(null==a?void 0:a.promise)}}return e},ea=function(e){return e&&void 0!==e._q},ec=function(){if("undefined"==typeof navigator)return"";var e,t,i,n,r=navigator.userLanguage;return null!==(n=null!==(i=null!==(t=null===(e=navigator.languages)||void 0===e?void 0:e[0])&&void 0!==t?t:navigator.language)&&void 0!==i?i:r)&&void 0!==n?n:""},el=function(){function e(){var e;this.name="context",this.type=l.BEFORE,this.eventId=0,this.library="amplitude-ts/".concat("1.9.1"),"undefined"!=typeof navigator&&(e=navigator.userAgent),this.uaResult=new(B())(e).getResult()}return e.prototype.setup=function(e){return this.config=e,Promise.resolve(void 0)},e.prototype.execute=function(e){return(0,m.mG)(this,void 0,void 0,function(){var t,i,n,r,o;return(0,m.Jh)(this,function(s){return t=new Date().getTime(),i=this.uaResult.browser.name,n=this.uaResult.browser.version,r=this.uaResult.device.model||this.uaResult.os.name,o=this.uaResult.device.vendor,[2,(0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)((0,m.pi)({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:t},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.osName&&{os_name:i}),this.config.trackingOptions.osVersion&&{os_version:n}),this.config.trackingOptions.deviceManufacturer&&{device_manufacturer:o}),this.config.trackingOptions.deviceModel&&{device_model:r}),this.config.trackingOptions.language&&{language:ec()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:P(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),e),{event_id:this.eventId++,library:this.library})]})})},e}();(u=f||(f={})).XHR="xhr",u.SendBeacon="beacon",u.Fetch="fetch";var ed=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(e){return[2,!0]})})},e.prototype.get=function(e){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(t){return[2,this.memoryStorage.get(e)]})})},e.prototype.getRaw=function(e){return(0,h.mG)(this,void 0,void 0,function(){var t;return(0,h.Jh)(this,function(i){switch(i.label){case 0:return[4,this.get(e)];case 1:return[2,(t=i.sent())?JSON.stringify(t):void 0]}})})},e.prototype.set=function(e,t){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(i){return this.memoryStorage.set(e,t),[2]})})},e.prototype.remove=function(e){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(t){return this.memoryStorage.delete(e),[2]})})},e.prototype.reset=function(){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(e){return this.memoryStorage.clear(),[2]})})},e}(),ep=function(){function e(){}return e.prototype.send=function(e,t){return Promise.resolve(null)},e.prototype.buildResponse=function(e){if("object"!=typeof e)return null;var t,i,n,r,o,s,u,a,c,l,p,f,h,v,g,b,y,m,w,_,k,I,E=e.code||0,S=this.buildStatus(E);switch(S){case d.Success:return{status:S,statusCode:E,body:{eventsIngested:null!==(t=e.events_ingested)&&void 0!==t?t:0,payloadSizeBytes:null!==(i=e.payload_size_bytes)&&void 0!==i?i:0,serverUploadTime:null!==(n=e.server_upload_time)&&void 0!==n?n:0}};case d.Invalid:return{status:S,statusCode:E,body:{error:null!==(r=e.error)&&void 0!==r?r:"",missingField:null!==(o=e.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(s=e.events_with_invalid_fields)&&void 0!==s?s:{},eventsWithMissingFields:null!==(u=e.events_with_missing_fields)&&void 0!==u?u:{},eventsWithInvalidIdLengths:null!==(a=e.events_with_invalid_id_lengths)&&void 0!==a?a:{},epsThreshold:null!==(c=e.eps_threshold)&&void 0!==c?c:0,exceededDailyQuotaDevices:null!==(l=e.exceeded_daily_quota_devices)&&void 0!==l?l:{},silencedDevices:null!==(p=e.silenced_devices)&&void 0!==p?p:[],silencedEvents:null!==(f=e.silenced_events)&&void 0!==f?f:[],throttledDevices:null!==(h=e.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(v=e.throttled_events)&&void 0!==v?v:[]}};case d.PayloadTooLarge:return{status:S,statusCode:E,body:{error:null!==(g=e.error)&&void 0!==g?g:""}};case d.RateLimit:return{status:S,statusCode:E,body:{error:null!==(b=e.error)&&void 0!==b?b:"",epsThreshold:null!==(y=e.eps_threshold)&&void 0!==y?y:0,throttledDevices:null!==(m=e.throttled_devices)&&void 0!==m?m:{},throttledUsers:null!==(w=e.throttled_users)&&void 0!==w?w:{},exceededDailyQuotaDevices:null!==(_=e.exceeded_daily_quota_devices)&&void 0!==_?_:{},exceededDailyQuotaUsers:null!==(k=e.exceeded_daily_quota_users)&&void 0!==k?k:{},throttledEvents:null!==(I=e.throttled_events)&&void 0!==I?I:[]}};case d.Timeout:default:return{status:S,statusCode:E}}},e.prototype.buildStatus=function(e){return e>=200&&e<300?d.Success:429===e?d.RateLimit:413===e?d.PayloadTooLarge:408===e?d.Timeout:e>
1=400&&e<500?d.Invalid:e>=500?d.Failed:d.Unknown},e}(),ef=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,h.ZT)(t,e),t.prototype.send=function(e,t){return(0,h.mG)(this,void 0,void 0,function(){var i,n;return(0,h.Jh)(this,function(r){switch(r.label){case 0:if("undefined"==typeof fetch)throw Error("FetchTransport is not supported");return i={headers:{"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify(t),method:"POST"},[4,fetch(e,i)];case 1:return[4,r.sent().json()];case 2:return n=r.sent(),[2,this.buildResponse(n)]}})})},t}(ep),eh=function(){function e(e){this.options=(0,h.pi)({},e)}return e.prototype.isEnabled=function(){return(0,h.mG)(this,void 0,void 0,function(){var t,i,n;return(0,h.Jh)(this,function(r){switch(r.label){case 0:if(!M())return[2,!1];t=String(Date.now()),i=new e(this.options),n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,i.set(n,t)];case 2:return r.sent(),[4,i.get(n)];case 3:return[2,r.sent()===t];case 4:return r.sent(),[2,!1];case 5:return[4,i.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,h.mG)(this,void 0,void 0,function(){var t;return(0,h.Jh)(this,function(i){switch(i.label){case 0:return[4,this.getRaw(e)];case 1:if(!(t=i.sent()))return[2,void 0];try{try{t=decodeURIComponent(atob(t))}catch(e){}return[2,JSON.parse(t)]}catch(e){return[2,void 0]}return[2]}})})},e.prototype.getRaw=function(e){var t;return(0,h.mG)(this,void 0,void 0,function(){var i,n;return(0,h.Jh)(this,function(r){return(n=(null!==(t=null==(i=M())?void 0:i.document.cookie.split("; "))&&void 0!==t?t:[]).find(function(t){return 0===t.indexOf(e+"=")}))?[2,n.substring(e.length+1)]:[2,void 0]})})},e.prototype.set=function(e,t){var i;return(0,h.mG)(this,void 0,void 0,function(){var n,r,o,s,u,a;return(0,h.Jh)(this,function(c){try{n=null!==(i=this.options.expirationDays)&&void 0!==i?i:0,r=null!==t?n:-1,o=void 0,r&&((s=new Date).setTime(s.getTime()+864e5*r),o=s),u="".concat(e,"=").concat(btoa(encodeURIComponent(JSON.stringify(t)))),o&&(u+="; expires=".concat(o.toUTCString())),u+="; path=/",this.options.domain&&(u+="; domain=".concat(this.options.domain)),this.options.secure&&(u+="; Secure"),this.options.sameSite&&(u+="; SameSite=".concat(this.options.sameSite)),(a=M())&&(a.document.cookie=u)}catch(e){}return[2]})})},e.prototype.remove=function(e){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(t){switch(t.label){case 0:return[4,this.set(e,null)];case 1:return t.sent(),[2]}})})},e.prototype.reset=function(){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(e){return[2]})})},e}(),ev=function(){function e(){}return e.prototype.isEnabled=function(){return(0,m.mG)(this,void 0,void 0,function(){var t,i,n;return(0,m.Jh)(this,function(r){switch(r.label){case 0:if(!M())return[2,!1];t=String(Date.now()),i=new e,n="AMP_TEST",r.label=1;case 1:return r.trys.push([1,4,5,7]),[4,i.set(n,t)];case 2:return r.sent(),[4,i.get(n)];case 3:return[2,r.sent()===t];case 4:return r.sent(),[2,!1];case 5:return[4,i.remove(n)];case 6:return r.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(e){return(0,m.mG)(this,void 0,void 0,function(){var t;return(0,m.Jh)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.getRaw(e)];case 1:if(!(t=i.sent()))return[2,void 0];return[2,JSON.parse(t)];case 2:return i.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(e){var t;return(0,m.mG)(this,void 0,void 0,function(){return(0,m.Jh)(this,function(i){return[2,(null===(t=M())||void 0===t?void 0:t.localStorage.getItem(e))||void 0]})})},e.prototype.set=function(e,t){var i;return(0,m.mG)(this,void 0,void 0,function(){return(0,m.Jh)(this,function(n){try{null===(i=M())||void 0===i||i.localStorage.setItem(e,JSON.stringify(t))}catch(e){}return[2]})})},e.prototype.remove=function(e){var t;return(0,m.mG)(this,void 0,void 0,function(){return(0,m.Jh)(this,function(i){try{null===(t=M())||void 0===t||t.localStorage.removeItem(e)}catch(e){}return[2]})})},e.prototype.reset=function(){var e;return(0,m.mG)(this,void 0,void 0,function(){return(0,m.Jh)(this,function(t){try{null===(e=M())||void 0===e||e.localStorage.clear()}catch(e){}return[2]})})},e}(),eg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={done:4},t}return(0,m.ZT)(t,e),t.prototype.send=function(e,t){return(0,m.mG)(this,void 0,void 0,function(){var i=this;return(0,m.Jh)(this,function(n){return[2,new Promise(function(n,r){"undefined"==typeof XMLHttpRequest&&r(Error("XHRTransport is not supported."));var o=new XMLHttpRequest;o.open("POST",e,!0),o.onreadystatechange=function(){if(o.readyState===i.state.done)try{var e=o.responseText,t=JSON.parse(e),s=i.buildResponse(t);n(s)}catch(e){r(e)}},o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Accept","*/*"),o.send(JSON.stringify(t))})]})})},t}(ep),eb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,m.ZT)(t,e),t.prototype.send=function(e,t){return(0,m.mG)(this,void 0,void 0,function(){var i=this;return(0,m.Jh)(this,function(n){return[2,new Promise(function(n,r){var o=M();if(!(null==o?void 0:o.navigator.sendBeacon))throw Error("SendBeaconTransport is not supported");try{var s=JSON.stringify(t);if(o.navigator.sendBeacon(e,JSON.stringify(t)))return n(i.buildResponse({code:200,events_ingested:t.events.length,payload_size_bytes:s.length,server_upload_time:Date.now()}));return n(i.buildResponse({code:500}))}catch(e){r(e)}})]})})},t}(ep),ey=function(){return{cookieExpiration:365,cookieSameSite:"Lax",cookieSecure:!1,cookieStorage:new ed,cookieUpgrade:!0,disableCookies:!1,domain:"",sessionTimeout:18e5,trackingOptions:{deviceManufacturer:!0,deviceModel:!0,ipAddress:!0,language:!0,osName:!0,osVersion:!0,platform:!0},transportProvider:new ef}},em=function(e){function t(t,i){var n,r,o,s,u,a,c,l,d,p=this,f=ey();return(p=e.call(this,(0,m.pi)((0,m.pi)({flushIntervalMillis:1e3,flushMaxRetries:5,flushQueueSize:30,transportProvider:f.transportProvider},i),{apiKey:t}))||this)._optOut=!1,p.cookieStorage=null!==(n=null==i?void 0:i.cookieStorage)&&void 0!==n?n:f.cookieStorage,p.deviceId=null==i?void 0:i.deviceId,p.lastEventTime=null==i?void 0:i.lastEventTime,p.optOut=!!(null==i?void 0:i.optOut),p.sessionId=null==i?void 0:i.sessionId,p.userId=null==i?void 0:i.userId,p.appVersion=null==i?void 0:i.appVersion,p.attribution=null==i?void 0:i.attribution,p.cookieExpiration=null!==(r=null==i?void 0:i.cookieExpiration)&&void 0!==r?r:f.cookieExpiration,p.cookieSameSite=null!==(o=null==i?void 0:i.cookieSameSite)&&void 0!==o?o:f.cookieSameSite,p.cookieSecure=null!==(s=null==i?void 0:i.cookieSecure)&&void 0!==s?s:f.cookieSecure,p.cookieUpgrade=null!==(u=null==i?void 0:i.cookieUpgrade)&&void 0!==u?u:f.cookieUpgrade,p.defaultTracking=null==i?void 0:i.defaultTracking,p.disableCookies=null!==(a=null==i?void 0:i.disableCookies)&&void 0!==a?a:f.disableCookies,p.defaultTracking=null==i?void 0:i.defaultTracking,p.domain=null!==(c=null==i?void 0:i.domain)&&void 0!==c?c:f.domain,p.partnerId=null==i?void 0:i.partnerId,p.sessionTimeout=null!==(l=null==i?void 0:i.sessionTimeout)&&void 0!==l?l:f.sessionTimeout,p.trackingOptions=null!==(d=null==i?void 0:i.trackingOptions)&&void 0!==d?d:f.trackingOptions,p}return(0,m.ZT)(t,e),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e,t={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime};null===(e=this.cookieStorage)||void 0===e||e.set(L(this.apiKey),t)},t}(O),ew=function(e,t){return void 0===t&&(t=ey()),(0,m.mG)(void 0,void 0,void 0,function(){var i,n,r;return(0,m.Jh)(this,function(o){switch(o.label){case 0:if(i=(0,m.pi)((0,m.pi)({},t),e),r=!(n=null==e?void 0:e.cookieStorage))return[3,2];return[4,n.isEnabled()];case 1:r=!o.sent(),o.label=2;case 2:if(r)return[2,e_(i)];return[2,n]}})})},e_=function(e){return(0,m.mG)(void 0,void 0,void 0,function(){var t,i;return(0,m.Jh)(this,function(n){switch(n.label){case 0:if(t=new eh({domain:e.domain,expirationDays:e.cookieExpiration,sameSite:e.cookieSameSite,secure:e.cookieSecure}),i=e.disableCookies)return[3,2];return[4,t.isEnabled()];case 1:i=!n.sent(),n.label=2;case 2:if(!i)return[3,4];return[4,(t=new ev).isEnabled()];case 3:n.sent()||(t=new ed),n.label=4;case 4:return[2,t]}})})},ek=function(e){return e===f.XHR?new eg:e===f.SendBeacon?new eb:ey().transportProvider},eI=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},eE=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}},eS="dclid",eT="fbclid",eO="gbraid",ex="gclid",eR="ko_click_id",eP="msclkid",eN="ttclid",eU="twclid",eC="wbraid",eq={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,msclkid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},eA=function(){function e(){}return e.prototype.parse=function(){return(0,h.mG)(this,void 0,void 0,function(){return(0,h.Jh)(this,function(e){return[2,(0,h.pi)((0,h.pi)((0,h.pi)((0,h.pi)({},eq),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var e=V();return{utm_campaign:e.utm_campaign,utm_content:e.utm_content,utm_id:e.utm_id,utm_medium:e.utm_medium,utm_source:e.utm_source,utm_term:e.utm_term}},e.prototype.getReferrer=function(){var e,t,i={referrer:void 0,referring_domain:void 0};try{i.referrer=document.referrer||void 0,i.referring_domain=null!==(t=null===(e=i.referrer)||void 0===e?void 0:e.split("/")[2])&&void 0!==t?t:void 0}catch(e){}return i},e.prototype.getClickIds=function(){var e,t=V();return(e={})[eS]=t[eS],e[eT]=t[eT],e[eO]=t[eO],e[ex]=t[ex],e[eR]=t[eR],e[eP]=t[eP],e[eN]=t[eN],e[eU]=t[eU],e[eC]=t[eC],e},e}(),eD=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},ej=function(e,t,i){e.referrer;var n,r=e.referring_domain,o=(0,h._T)(e,["referrer","referring_domain"]),s=t||{},u=(s.referrer,s.referring_domain),a=(0,h._T)(s,["referrer","referring_domain"]);if(e.referring_domain&&(null===(n=i.excludeReferrers)||void 0===n?void 0:n.includes(e.referring_domain)))return!1;var c=JSON.stringify(o)!==JSON.stringify(a),l=eD(r||"")!==eD(u||"");return!t||c||l},eG=function(){for(var e,t,i=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o={},s=(0,h.CR)(n,2),u=s[0],a=s[1];u&&"init"in u?(t=u,a&&(o=a)):u&&(o=u);var c=null!==(e=o.excludeReferrers)&&void 0!==e?e:[];"undefined"!=typeof location&&c.unshift(location.hostname),o=(0,h.pi)((0,h.pi)({disabled:!1,initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1},o),{excludeReferrers:c});var d={name:"web-attribution",type:l.BEFORE,setup:function(e,i){var n;return(0,h.mG)(this,void 0,void 0,function(){var r,s,a,c,l,d,p,f;return(0,h.Jh)(this,function(v){var g,b,y;switch(v.label){case 0:if(!(t=null!=t?t:i))return r=u?"Options":"undefined",e.loggerProvider.error("Argument of type '".concat(r,"' is not assignable to parameter of type 'BrowserClient'.")),[2];if(o.disabled)return e.loggerProvider.log("@amplitude/plugin-web-attribution-browser is disabled. Attribution is not tracked."),[2];return e.loggerProvider.log("Installing @amplitude/plugin-web-attribution-browser."),i||(null===(n=e.attribution)||void 0===n?void 0:n.disabled)||(e.loggerProvider.warn("@amplitude/plugin-web-attribution-browser overrides web attribution behavior defined in @amplitude/analytics-browser. Resolve by disabling web attribution tracking in @amplitude/analytics-browser."),e.attribution={disabled:!0}),s=e.cookieStorage,g=e.apiKey,void 0===b&&(b=10),a=[_.xp,"MKTG",g.substring(0,b)].filter(
1Boolean).join("_"),[4,Promise.all([new eA().parse(),s.get(a)])];case 1:return l=(c=h.CR.apply(void 0,[v.sent(),2]))[0],d=c[1],(null!=(p=this.__pluginEnabledOverride)?p:ej(l,d,o))&&(o.resetSessionOnNewCampaign&&(t.setSessionId(Date.now()),e.loggerProvider.log("Created a new session for new campaign.")),e.loggerProvider.log("Tracking attribution."),y=o,f=A(Object.entries((0,h.pi)((0,h.pi)({},eq),l)).reduce(function(e,t){var i,n=(0,h.CR)(t,2),r=n[0],o=n[1];return(e.setOnce("initial_".concat(r),null!==(i=null!=o?o:y.initialEmptyValue)&&void 0!==i?i:"EMPTY"),o)?e.set(r,o):e.unset(r)},new N.h)),t.track(f),s.set(a,l)),[2]}})})},execute:function(e){return(0,h.mG)(i,void 0,void 0,function(){return(0,h.Jh)(this,function(t){return[2,e]})})}};return d.__pluginEnabledOverride=void 0,d},eJ=function(e){var t={};for(var i in e){var n=e[i];n&&(t[i]=n)}return t},eL=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var n={},r=M(),o=void 0,s=(0,h.CR)(t,2),u=s[0],a=s[1];u&&"init"in u?(e=u,a&&(n=a)):u&&(n=u);var c=function(){return(0,h.mG)(void 0,void 0,void 0,function(){var e,t,i;return(0,h.Jh)(this,function(r){switch(r.label){case 0:return t={event_type:null!==(i=n.eventType)&&void 0!==i?i:"Page View"},e=[{}],[4,eM()];case 1:return[2,(t.event_properties=h.pi.apply(void 0,[h.pi.apply(void 0,e.concat([r.sent()])),{page_domain:"undefined"!=typeof location&&location.hostname||"",page_location:"undefined"!=typeof location&&location.href||"",page_path:"undefined"!=typeof location&&location.pathname||"",page_title:"undefined"!=typeof document&&document.title||"",page_url:"undefined"!=typeof location&&location.href.split("?")[0]||""}]),t)]}})})},d=function(){return void 0===n.trackOn||"function"==typeof n.trackOn&&n.trackOn()},p=null,f=function(){return(0,h.mG)(void 0,void 0,void 0,function(){var t,i,r;return(0,h.Jh)(this,function(s){switch(s.label){case 0:if(t=location.href,!(ez(n.trackHistoryChanges,t,p||"")&&d()))return[3,4];if(null==o||o.log("Tracking page view event"),null!=e)return[3,1];return[3,3];case 1:return r=(i=e).track,[4,c()];case 2:r.apply(i,[s.sent()]),s.label=3;case 3:s.label=4;case 4:return p=t,[2]}})})},v={name:"page-view-tracking",type:l.ENRICHMENT,setup:function(t,i){return(0,h.mG)(void 0,void 0,void 0,function(){var s,a,l,p,v;return(0,h.Jh)(this,function(g){switch(g.label){case 0:if(!(e=null!=e?e:i))return s=u?"Options":"undefined",t.loggerProvider.error("Argument of type '".concat(s,"' is not assignable to parameter of type 'BrowserClient'.")),[2];if((o=t.loggerProvider).log("Installing @amplitude/plugin-page-view-tracking-browser"),n.trackOn=(null===(p=t.attribution)||void 0===p?void 0:p.trackPageViews)?"attribution":n.trackOn,!i&&(null===(v=t.attribution)||void 0===v?void 0:v.trackPageViews)&&(o.warn("@amplitude/plugin-page-view-tracking-browser overrides page view tracking behavior defined in @amplitude/analytics-browser. Resolve by disabling page view tracking in @amplitude/analytics-browser."),t.attribution.trackPageViews=!1),n.trackHistoryChanges&&r&&(r.addEventListener("popstate",function(){f()}),r.history.pushState=new Proxy(r.history.pushState,{apply:function(e,t,i){var n=(0,h.CR)(i,3),r=n[0],o=n[1],s=n[2];return f(),e.apply(t,[r,o,s])}})),!d())return[3,2];return o.log("Tracking page view event"),l=(a=e).track,[4,c()];case 1:l.apply(a,[g.sent()]),g.label=2;case 2:return[2]}})})},execute:function(e){return(0,h.mG)(void 0,void 0,void 0,function(){var t;return(0,h.Jh)(this,function(i){switch(i.label){case 0:if(!("attribution"===n.trackOn&&eV(e)))return[3,2];return null==o||o.log("Enriching campaign event to page view event with campaign parameters"),[4,c()];case 1:t=i.sent(),e.event_type=t.event_type,e.event_properties=(0,h.pi)((0,h.pi)({},e.event_properties),t.event_properties),i.label=2;case 2:return[2,e]}})})}};return v.__trackHistoryPageView=f,v},eM=function(){return(0,h.mG)(void 0,void 0,void 0,function(){var e;return(0,h.Jh)(this,function(t){switch(t.label){case 0:return e=eJ,[4,new eA().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},eV=function(e){if("$identify"===e.event_type&&e.user_properties){var t=e.user_properties,i=t[U.h9.SET]||{},n=t[U.h9.UNSET]||{},r=(0,h.ev)((0,h.ev)([],(0,h.CR)(Object.keys(i)),!1),(0,h.CR)(Object.keys(n)),!1);return Object.keys(eq).every(function(e){return r.includes(e)})}return!1},ez=function(e,t,i){return"pathOnly"===e?t.split("?")[0]!==i.split("?")[0]:t!==i},eF="[Amplitude]",eB="".concat(eF," Page Viewed"),e$="".concat(eF," Form Started"),eQ="".concat(eF," Form Submitted"),eK="".concat(eF," File Downloaded"),eZ="session_start",eH="session_end",eW="".concat(eF," File Extension"),eX="".concat(eF," File Name"),eY="".concat(eF," Link ID"),e0="".concat(eF," Link Text"),e1="".concat(eF," Link URL"),e2="".concat(eF," Form ID"),e4="".concat(eF," Form Name"),e3="".concat(eF," Form Destination"),e6=function(){var e,t;return{name:"@amplitude/plugin-session-handler",type:l.BEFORE,setup:function(i,n){return(0,m.mG)(void 0,void 0,void 0,function(){return(0,m.Jh)(this,function(r){return e=i,t=n,[2]})})},execute:function(i){return(0,m.mG)(void 0,void 0,void 0,function(){var n,r;return(0,m.Jh)(this,function(o){return n=Date.now(),i.event_type===eZ||i.event_type===eH||(r=e.lastEventTime||n,n-r>e.sessionTimeout&&(t.setSessionId(n),i.session_id=t.getSessionId(),i.time=n)),e.lastEventTime=n,[2,i]})})}}},e9={page_domain:"".concat(eF," Page Domain"),page_location:"".concat(eF," Page Location"),page_path:"".concat(eF," Page Path"),page_title:"".concat(eF," Page Title"),page_url:"".concat(eF," Page URL")},e5={init:y((a=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,m.ZT)(t,e),t.prototype.init=function(e,t,i){return void 0===e&&(e=""),w(this._init((0,m.pi)((0,m.pi)({},i),{userId:t,apiKey:e})))},t.prototype._init=function(t){var i,n,r,o,s,u,a,c,d,p,f,h,v,g,b,y,w,k;return(0,m.mG)(this,void 0,void 0,function(){var I,E,S,T,O,x,N,U,C,q,A,D,j,G,J,M,z,F=this;return(0,m.Jh)(this,function(B){var $,Q,K,Z,H,W;switch(B.label){case 0:if(this.initializing)return[2];if(this.initializing=!0,I=t,!t.disableCookies)return[3,1];return E="",[3,5];case 1:if(!(null!==(i=t.domain)&&void 0!==i))return[3,2];return S=i,[3,4];case 2:return[4,(0,m.mG)(void 0,void 0,void 0,function(){var e,t,i,n,r,o;return(0,m.Jh)(this,function(s){switch(s.label){case 0:return[4,new eh().isEnabled()];case 1:if(!s.sent()||!$&&"undefined"==typeof location)return[2,""];for(e=(null!=$?$:location.hostname).split("."),t=[],i="AMP_TLDTEST",n=e.length-2;n>=0;--n)t.push(e.slice(n).join("."));n=0,s.label=2;case 2:if(!(n<t.length))return[3,7];return[4,(o=new eh({domain:"."+(r=t[n])})).set(i,1)];case 3:return s.sent(),[4,o.get(i)];case 4:if(!s.sent())return[3,6];return[4,o.remove(i)];case 5:return s.sent(),[2,"."+r];case 6:return n++,[3,2];case 7:return[2,""]}})})];case 3:S=B.sent(),B.label=4;case 4:E=S,B.label=5;case 5:return I.domain=E,[4,(Q=t.apiKey,(0,m.mG)(void 0,void 0,void 0,function(){var e,i,n,r,o,s,u,a,c,l;return(0,m.Jh)(this,function(d){switch(d.label){case 0:return[4,ew(t)];case 1:return e=d.sent(),i="".concat(_.xp.toLowerCase(),"_").concat(Q.substring(0,6)),[4,e.getRaw(i)];case 2:if(!(n=d.sent()))return[2,{optOut:!1}];if(!(null!==(l=null==t?void 0:t.cookieUpgrade)&&void 0!==l?l:ey().cookieUpgrade))return[3,4];return[4,e.remove(i)];case 3:d.sent(),d.label=4;case 4:return o=(r=(0,m.CR)(n.split("."),5))[0],s=r[1],u=r[2],a=r[3],c=r[4],[2,{deviceId:o,userId:eE(s),sessionId:eI(a),lastEventTime:eI(c),optOut:!!u}]}})}))];case 6:return T=B.sent(),[4,ew(t)];case 7:return[4,(O=B.sent()).get(L(t.apiKey))];case 8:return x=B.sent(),N=V(),U=null!==(o=null!==(r=null!==(n=t.deviceId)&&void 0!==n?n:N.deviceId)&&void 0!==r?r:null==x?void 0:x.deviceId)&&void 0!==o?o:T.deviceId,C=null!==(u=null!==(s=t.sessionId)&&void 0!==s?s:null==x?void 0:x.sessionId)&&void 0!==u?u:T.sessionId,q=null!==(c=null!==(a=t.optOut)&&void 0!==a?a:null==x?void 0:x.optOut)&&void 0!==c?c:T.optOut,A=null!==(d=null==x?void 0:x.lastEventTime)&&void 0!==d?d:T.lastEventTime,D=null!==(f=null!==(p=t.userId)&&void 0!==p?p:null==x?void 0:x.userId)&&void 0!==f?f:T.userId,this.previousSessionDeviceId=null!==(h=null==x?void 0:x.deviceId)&&void 0!==h?h:T.deviceId,this.previousSessionUserId=null!==(v=null==x?void 0:x.userId)&&void 0!==v?v:T.userId,[4,(K=t.apiKey,Z=(0,m.pi)((0,m.pi)({},t),{deviceId:U,sessionId:C,optOut:q,lastEventTime:A,userId:D,cookieStorage:O}),(0,m.mG)(void 0,void 0,void 0,function(){var e,t,i,n,r,o,s,u,a,c,l,d,p,f;return(0,m.Jh)(this,function(h){switch(h.label){case 0:return e=ey(),t=null!==(p=null==Z?void 0:Z.deviceId)&&void 0!==p?p:P(),i=null==Z?void 0:Z.lastEventTime,n=null==Z?void 0:Z.optOut,r=null==Z?void 0:Z.sessionId,o=null==Z?void 0:Z.userId,s=null==Z?void 0:Z.cookieStorage,u=null==Z?void 0:Z.domain,a=em.bind,c=[void 0,K],l=[(0,m.pi)({},Z)],d={cookieStorage:s,deviceId:t,domain:u,lastEventTime:i,optOut:n,sessionId:r},[4,(0,m.mG)(void 0,void 0,void 0,function(){var e,t,i,n,r,o;return(0,m.Jh)(this,function(s){switch(s.label){case 0:if(!(!(Z&&Object.prototype.hasOwnProperty.call(Z,"storageProvider"))||Z.storageProvider))return[3,9];s.label=1;case 1:s.trys.push([1,7,8,9]),t=(e=(0,m.XA)([null==Z?void 0:Z.storageProvider,new ev])).next(),s.label=2;case 2:if(t.done)return[3,6];if(!(n=i=t.value))return[3,4];return[4,i.isEnabled()];case 3:n=s.sent(),s.label=4;case 4:if(n)return[2,i];s.label=5;case 5:return t=e.next(),[3,2];case 6:return[3,9];case 7:return r={error:s.sent()},[3,9];case 8:try{t&&!t.done&&(o=e.return)&&o.call(e)}finally{if(r)throw r.error}
1return[7];case 9:return[2,void 0]}})})];case 1:return[2,new(a.apply(em,c.concat([m.pi.apply(void 0,l.concat([(d.storageProvider=h.sent(),d.trackingOptions=(0,m.pi)((0,m.pi)({},e.trackingOptions),null==Z?void 0:Z.trackingOptions),d.transportProvider=null!==(f=null==Z?void 0:Z.transportProvider)&&void 0!==f?f:ek(null==Z?void 0:Z.transport),d.userId=o,d)]))])))]}})}))];case 9:return j=B.sent(),[4,e.prototype._init.call(this,j)];case 10:return B.sent(),G=!this.config.lastEventTime,(!this.config.sessionId||this.config.lastEventTime&&Date.now()-this.config.lastEventTime>this.config.sessionTimeout)&&(this.setSessionId(Date.now()),G=!0),(J=ei()).eventBridge.setEventReceiver(function(e){F.track(e.eventType,e.eventProperties)}),J.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),[4,this.add(new R).promise];case 11:return B.sent(),[4,this.add(new el).promise];case 12:return B.sent(),[4,this.add(e6()).promise];case 13:return B.sent(),[4,this.add(new eo).promise];case 14:if(B.sent(),!("boolean"==typeof(H=this.config.defaultTracking)?H:null!=H&&!!H.fileDownloads))return[3,16];return[4,this.add({name:"@amplitude/plugin-file-download-tracking-browser",type:l.ENRICHMENT,setup:function(e,t){return(0,m.mG)(void 0,void 0,void 0,function(){var i,n;return(0,m.Jh)(this,function(r){return t?(i=function(e){try{i=new URL(e.href,window.location.href)}catch(e){return}var i,r=n.exec(i.href),o=null==r?void 0:r[1];o&&e.addEventListener("click",function(){var n;o&&t.track(eK,((n={})[eW]=o,n[eX]=i.pathname,n[eY]=e.id,n[e0]=e.text,n[e1]=e.href,n))})},n=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)$/,Array.from(document.getElementsByTagName("a")).forEach(i),"undefined"!=typeof MutationObserver&&new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"A"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("a")).map(i)})})}).observe(document.body,{subtree:!0,childList:!0})):e.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked."),[2]})})},execute:function(e){return(0,m.mG)(void 0,void 0,void 0,function(){return(0,m.Jh)(this,function(t){return[2,e]})})}}).promise];case 15:B.sent(),B.label=16;case 16:if(!("boolean"==typeof(W=this.config.defaultTracking)?W:null!=W&&!!W.formInteractions))return[3,18];return[4,this.add({name:"@amplitude/plugin-form-interaction-tracking-browser",type:l.ENRICHMENT,setup:function(e,t){return(0,m.mG)(void 0,void 0,void 0,function(){var i;return(0,m.Jh)(this,function(n){return t?(i=function(e){var i=!1;e.addEventListener("change",function(){var n;i||t.track(e$,((n={})[e2]=e.id,n[e4]=e.name,n[e3]=e.action,n)),i=!0},{}),e.addEventListener("submit",function(){var n,r;i||t.track(e$,((n={})[e2]=e.id,n[e4]=e.name,n[e3]=e.action,n)),t.track(eQ,((r={})[e2]=e.id,r[e4]=e.name,r[e3]=e.action,r)),i=!1})},Array.from(document.getElementsByTagName("form")).forEach(i),"undefined"!=typeof MutationObserver&&new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){"FORM"===e.nodeName&&i(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(i)})})}).observe(document.body,{subtree:!0,childList:!0})):e.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked."),[2]})})},execute:function(e){return(0,m.mG)(void 0,void 0,void 0,function(){return(0,m.Jh)(this,function(t){return[2,e]})})}}).promise];case 17:B.sent(),B.label=18;case 18:if(null===(g=this.config.attribution)||void 0===g?void 0:g.disabled)return[3,20];return(M=eG({excludeReferrers:null===(b=this.config.attribution)||void 0===b?void 0:b.excludeReferrers,initialEmptyValue:null===(y=this.config.attribution)||void 0===y?void 0:y.initialEmptyValue,resetSessionOnNewCampaign:null===(w=this.config.attribution)||void 0===w?void 0:w.resetSessionOnNewCampaign})).__pluginEnabledOverride=(!!G||null!==(k=this.config.attribution)&&void 0!==k&&!!k.trackNewCampaigns)&&void 0,[4,this.add(M).promise];case 19:B.sent(),B.label=20;case 20:return(z=es(this.config)).eventType=z.eventType||eB,[4,this.add(eL(z)).promise];case 21:return B.sent(),[4,this.add({name:"@amplitude/plugin-default-page-view-event-enrichment-browser",type:l.ENRICHMENT,setup:function(){return(0,m.mG)(void 0,void 0,void 0,function(){return(0,m.Jh)(this,function(e){return[2,void 0]})})},execute:function(e){return(0,m.mG)(void 0,void 0,void 0,function(){return(0,m.Jh)(this,function(t){return e.event_type===eB&&e.event_properties&&(e.event_properties=Object.entries(e.event_properties).reduce(function(e,t){var i=(0,m.CR)(t,2),n=i[0],r=i[1],o=e9[n];return o?e[o]=r:e[n]=r,e},{})),[2,e]})})}}).promise];case 22:return B.sent(),this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 23:return B.sent(),[2]}})})},t.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},t.prototype.setUserId=function(e){if(!this.config){this.q.push(this.setUserId.bind(this,e));return}(e!==this.config.userId||void 0===e)&&(this.config.userId=e,this.setSessionId(Date.now()),en(e))},t.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},t.prototype.setDeviceId=function(e){if(!this.config){this.q.push(this.setDeviceId.bind(this,e));return}this.config.deviceId=e,er(e)},t.prototype.reset=function(){this.setDeviceId(P()),this.setUserId(void 0)},t.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},t.prototype.setSessionId=function(e){if(!this.config){this.q.push(this.setSessionId.bind(this,e));return}var t,i=this.getSessionId(),n=this.config.lastEventTime;if(this.config.sessionId=e,this.config.lastEventTime=void 0,"boolean"==typeof(t=this.config.defaultTracking)?t:null!=t&&!!t.sessions){if(i&&n){var r={session_id:i,time:n+1};r.device_id=this.previousSessionDeviceId,r.user_id=this.previousSessionUserId,this.track(eH,void 0,r)}this.track(eZ,void 0,{session_id:e,time:e-1}),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId}},t.prototype.setTransport=function(e){if(!this.config){this.q.push(this.setTransport.bind(this,e));return}this.config.transportProvider=ek(e)},t.prototype.identify=function(t,i){if(ea(t)){var n=t._q;t._q=[],t=eu(new N.h,n)}
1return(null==i?void 0:i.user_id)&&this.setUserId(i.user_id),(null==i?void 0:i.device_id)&&this.setDeviceId(i.device_id),e.prototype.identify.call(this,t,i)},t.prototype.groupIdentify=function(t,i,n,r){if(ea(n)){var o=n._q;n._q=[],n=eu(new N.h,o)}return e.prototype.groupIdentify.call(this,t,i,n,r)},t.prototype.revenue=function(t,i){if(ea(t)){var n=t._q;t._q=[],t=eu(new q,n)}return e.prototype.revenue.call(this,t,i)},t}(J))).init.bind(a),"init",v(a),b(a,["config"])),add:y(a.add.bind(a),"add",v(a),b(a,["config.apiKey","timeline.plugins"])),remove:y(a.remove.bind(a),"remove",v(a),b(a,["config.apiKey","timeline.plugins"])),track:y(a.track.bind(a),"track",v(a),b(a,["config.apiKey","timeline.queue.length"])),logEvent:y(a.logEvent.bind(a),"logEvent",v(a),b(a,["config.apiKey","timeline.queue.length"])),identify:y(a.identify.bind(a),"identify",v(a),b(a,["config.apiKey","timeline.queue.length"])),groupIdentify:y(a.groupIdentify.bind(a),"groupIdentify",v(a),b(a,["config.apiKey","timeline.queue.length"])),setGroup:y(a.setGroup.bind(a),"setGroup",v(a),b(a,["config.apiKey","timeline.queue.length"])),revenue:y(a.revenue.bind(a),"revenue",v(a),b(a,["config.apiKey","timeline.queue.length"])),flush:y(a.flush.bind(a),"flush",v(a),b(a,["config.apiKey","timeline.queue.length"])),getUserId:y(a.getUserId.bind(a),"getUserId",v(a),b(a,["config","config.userId"])),setUserId:y(a.setUserId.bind(a),"setUserId",v(a),b(a,["config","config.userId"])),getDeviceId:y(a.getDeviceId.bind(a),"getDeviceId",v(a),b(a,["config","config.deviceId"])),setDeviceId:y(a.setDeviceId.bind(a),"setDeviceId",v(a),b(a,["config","config.deviceId"])),reset:y(a.reset.bind(a),"reset",v(a),b(a,["config","config.userId","config.deviceId"])),getSessionId:y(a.getSessionId.bind(a),"getSessionId",v(a),b(a,["config"])),setSessionId:y(a.setSessionId.bind(a),"setSessionId",v(a),b(a,["config"])),setOptOut:y(a.setOptOut.bind(a),"setOptOut",v(a),b(a,["config"])),setTransport:y(a.setTransport.bind(a),"setTransport",v(a),b(a,["config"]))};e5.add,e5.flush,e5.getDeviceId,e5.getSessionId,e5.getUserId,e5.groupIdentify;var e8=e5.identify,e7=e5.init,te=(e5.logEvent,e5.remove,e5.reset),tt=(e5.revenue,e5.setDeviceId,e5.setGroup,e5.setOptOut),ti=(e5.setSessionId,e5.setTransport,e5.setUserId),tn=e5.track},49793:function(e,t,i){"use strict";i.d(t,{EG:function(){return s},RE:function(){return c},f1:function(){return o},h8:function(){return a},q$:function(){return n},xp:function(){return r},y_:function(){return u}});var n="-",r="AMP",o="".concat(r,"_unsent"),s="https://api2.amplitude.com/2/httpapi",u="https://api.eu.amplitude.com/2/httpapi",a="https://api2.amplitude.com/batch",c="https://api.eu.amplitude.com/batch"},86583:function(e,t,i){"use strict";i.d(t,{h:function(){return u}});var n=i(21221),r=i(91294),o=i(49793),s=i(88150),u=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return(0,n.pi)({},this._properties)},e.prototype.set=function(e,t){return this._safeSet(r.h9.SET,e,t),this},e.prototype.setOnce=function(e,t){return this._safeSet(r.h9.SET_ONCE,e,t),this},e.prototype.append=function(e,t){return this._safeSet(r.h9.APPEND,e,t),this},e.prototype.prepend=function(e,t){return this._safeSet(r.h9.PREPEND,e,t),this},e.prototype.postInsert=function(e,t){return this._safeSet(r.h9.POSTINSERT,e,t),this},e.prototype.preInsert=function(e,t){return this._safeSet(r.h9.PREINSERT,e,t),this},e.prototype.remove=function(e,t){return this._safeSet(r.h9.REMOVE,e,t),this},e.prototype.add=function(e,t){return this._safeSet(r.h9.ADD,e,t),this},e.prototype.unset=function(e){return this._safeSet(r.h9.UNSET,e,o.q$),this},e.prototype.clearAll=function(){return this._properties={},this._properties[r.h9.CLEAR_ALL]=o.q$,this},e.prototype._safeSet=function(e,t,i){if(this._validate(e,t,i)){var n=this._properties[e];return void 0===n&&(n={},this._properties[e]=n),n[t]=i,this._propertySet.add(t),!0}return!1},e.prototype._validate=function(e,t,i){return!(void 0!==this._properties[r.h9.CLEAR_ALL]||this._propertySet.has(t))&&(e===r.h9.ADD?"number"==typeof i:e===r.h9.UNSET||e===r.h9.REMOVE||(0,s.T)(t,i))},e}()},88150:function(e,t,i){"use strict";i.d(t,{L:function(){return r},T:function(){return o}});var n=i(21221),r=function(e){if(Object.keys(e).length>1e3)return!1;for(var t in e){var i=e[t];if(!o(t,i))return!1}return!0},o=function(e,t){var i,o;if("string"!=typeof e)return!1;if(Array.isArray(t)){var s=!0;try{for(var u=(0,n.XA)(t),a=u.next();!a.done;a=u.next()){var c=a.value;if(Array.isArray(c))return!1;if("object"==typeof c)s=s&&r(c);else if(!["number","string"].includes(typeof c))return!1;if(!s)return!1}}catch(e){i={error:e}}
1finally{try{a&&!a.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}}else if(null==t)return!1;else if("object"==typeof t)return r(t);else if(!["number","string","boolean"].includes(typeof t))return!1;return!0}},91294:function(e,t,i){"use strict";var n,r,o,s,u,a;i.d(t,{JU:function(){return o},al:function(){return r},h9:function(){return n}}),(s=n||(n={})).SET="$set",s.SET_ONCE="$setOnce",s.ADD="$add",s.APPEND="$append",s.PREPEND="$prepend",s.REMOVE="$remove",s.PREINSERT="$preInsert",s.POSTINSERT="$postInsert",s.UNSET="$unset",s.CLEAR_ALL="$clearAll",(u=r||(r={})).REVENUE_PRODUCT_ID="$productId",u.REVENUE_QUANTITY="$quantity",u.REVENUE_PRICE="$price",u.REVENUE_TYPE="$revenueType",u.REVENUE="$revenue",(a=o||(o={})).IDENTIFY="$identify",a.GROUP_IDENTIFY="$groupidentify",a.REVENUE="revenue_amount"},76299:function(e,t,i){var n;!function(r,o){"use strict";var s="function",u="undefined",a="object",c="string",l="model",d="name",p="type",f="vendor",h="version",v="architecture",g="console",b="mobile",y="tablet",m="smarttv",w="wearable",_="embedded",k="Amazon",I="Apple",E="ASUS",S="BlackBerry",T="Browser",O="Chrome",x="Firefox",R="Google",P="Huawei",N="Microsoft",U="Motorola",C="Opera",q="Samsung",A="Sony",D="Xiaomi",j="Zebra",G="Facebook",J=function(e,t){var i={};for(var n in e)t[n]&&t[n].length%2==0?i[n]=t[n].concat(e[n]):i[n]=e[n];return i},L=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},M=function(e,t){return typeof e===c&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===u?e:e.substring(0,275)},F=function(e,t){for(var i,n,r,u,c,l,d=0;d<t.length&&!c;){var p=t[d],f=t[d+1];for(i=n=0;i<p.length&&!c;)if(c=p[i++].exec(e))for(r=0;r<f.length;r++)l=c[++n],typeof(u=f[r])===a&&u.length>0?2===u.length?typeof u[1]==s?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==s||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):o:this[u[0]]=l?u[1].call(this,l,u[2]):o:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):o):this[u]=l||o;d+=2}},B=function(e,t){for(var i in t)if(typeof t[i]===a&&t[i].length>0){for(var n=0;n<t[i].length;n++)if(M(t[i][n],e))return"?"===i?o:i}else if(M(t[i],e))return"?"===i?o:i;return e},$={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"},Q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,C+" Mini"]],[/\bopr\/([\w\.]+)/i],[h,[d,C]],[/(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)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[d,h],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+T]],[/\bqbcore\/([\w\.]+)/i],[h,[d,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/yabrowser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+T],h],[/\bfocus\/([\w\.]+)/i],[h,[d,x+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,C+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,C+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI "+T]],[/fxios\/([-\w\.]+)/i],[h,[d,x]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+T]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+T],h],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[d,h],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,G],h],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,O+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+T]],[/(chrome|omniweb|arora|[t
vendor: 4,769 bytes, line 1
1izenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,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],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,x+" 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],[d,h]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,V]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,V]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[f,q],[p,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[l,[f,q],[p,b]],[/((ipod|iphone)\d+,\d+)/i],[l,[f,I],[p,b]],[/(ipad\d+,\d+)/i],[l,[f,I],[p,y]],[/\((ip(?:hone|od)[\w ]*);/i],[l,[f,I],[p,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[f,I],[p,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[l,[f,P],[p,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[f,P],[p,b]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[l,/_/g," "],[f,D],[p,b]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[l,/_/g," "],[f,D],[p,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[f,"OPPO"],[p,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[f,"Vivo"],[p,b]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[l,[f,"Realme"],[p,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[f,U],[p,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[f,U],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[f,"LG"],[p,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[f,"LG"],[p,b]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[l,[f,"Lenovo"],[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[l,/_/g," "],[f,"Nokia"],[p,b]],[/(pixel c)\b/i],[l,[f,R],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[f,R],[p,b]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[f,A],[p,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[f,A],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[f,"OnePlus"],[p,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[f,k],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[f,k],[p,b]],[/(playbook);[-\w\),; ]+(rim)/i],[l,f,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[f,S],[p,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[f,E],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[f,E],[p,b]],[/(nexus 9)/i],[l,[f,"HTC"],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[l,/_/g," "],[p,b]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[f,"Acer"],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[f,"Meizu"],[p,b]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[f,"Sharp"],[p,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 4,452 bytes, line 1
1s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,l,[p,b]],[/(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],[f,l,[p,y]],[/(surface duo)/i],[l,[f,N],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[f,"Fairphone"],[p,b]],[/(u304aa)/i],[l,[f,"AT&T"],[p,b]],[/\bsie-(\w*)/i],[l,[f,"Siemens"],[p,b]],[/\b(rct\w+) b/i],[l,[f,"RCA"],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[l,[f,"Dell"],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[l,[f,"Verizon"],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[f,"Barnes & Noble"],[p,y]],[/\b(tm\d{3}\w+) b/i],[l,[f,"NuVision"],[p,y]],[/\b(k88) b/i],[l,[f,"ZTE"],[p,y]],[/\b(nx\d{3}j) b/i],[l,[f,"ZTE"],[p,b]],[/\b(gen\d{3}) b.+49h/i],[l,[f,"Swiss"],[p,b]],[/\b(zur\d{3}) b/i],[l,[f,"Swiss"],[p,y]],[/\b((zeki)?tb.*\b) b/i],[l,[f,"Zeki"],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],l,[p,y]],[/\b(ns-?\w{0,9}) b/i],[l,[f,"Insignia"],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[f,"NextBook"],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],l,[p,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],l,[p,b]],[/\b(ph-1) /i],[l,[f,"Essential"],[p,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[f,"Envizen"],[p,y]],[/\b(trio[-\w\. ]+) b/i],[l,[f,"MachSpeed"],[p,y]],[/\btu_(1491) b/i],[l,[f,"Rotor"],[p,y]],[/(shield[\w ]+) b/i],[l,[f,"Nvidia"],[p,y]],[/(sprint) (\w+)/i],[f,l,[p,b]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[f,N],[p,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[f,j],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[f,j],[p,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,l,[p,g]],[/droid.+; (shield) bui/i],[l,[f,"Nvidia"],[p,g]],[/(playstation [345portablevi]+)/i],[l,[f,A],[p,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[f,N],[p,g]],[/smart-tv.+(samsung)/i],[f,[p,m]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[f,q],[p,m]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,"LG"],[p,m]],[/(apple) ?tv/i],[f,[l,I+" TV"],[p,m]],[/crkey/i],[[l,O+"cast"],[f,R],[p,m]],[/droid.+aft(\w)( bui|\))/i],[l,[f,k],[p,m]],[/\(dtv[\);].+(aquos)/i],[l,[f,"Sharp"],[p,m]],[/(bravia[\w- ]+) bui/i],[l,[f,A],[p,m]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,z],[l,z],[p,m]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,m]],[/((pebble))app/i],[f,l,[p,w]],[/droid.+; (glass) \d/i],[l,[f,R],[p,w]],[/droid.+; (wt63?0{2,3})\)/i],[l,[f,j],[p,w]],[/(quest( 2)?)/i],[l,[f,G],[p,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[p,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[l,[p,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[p,b]],[/(android[-\w\. ]{0,9});.+buil/i],[l,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"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],[d,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[d,[h,B,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[d,"Windows"],[h,B,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,"Mac OS"],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[h,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,h],[/\(bb(10);/i],[h,[d,S]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,x+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/crkey\/([\d\.]+)/i],[h,[d,O+"
1cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[d,"Chromium OS"],h],[/(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],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[d,h]]},K=function(e,t){if(typeof e===a&&(t=e,e=o),!(this instanceof K))return new K(e,t).getResult();var i=e||(typeof r!==u&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),n=t?J(Q,t):Q;return this.getBrowser=function(){var e,t={};return t[d]=o,t[h]=o,F.call(t,i,n.browser),t.major=typeof(e=t.version)===c?e.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var e={};return e[v]=o,F.call(e,i,n.cpu),e},this.getDevice=function(){var e={};return e[f]=o,e[l]=o,e[p]=o,F.call(e,i,n.device),e},this.getEngine=function(){var e={};return e[d]=o,e[h]=o,F.call(e,i,n.engine),e},this.getOS=function(){var e={};return e[d]=o,e[h]=o,F.call(e,i,n.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===c&&e.length>275?z(e,275):e,this},this.setUA(i),this};K.VERSION="0.7.31",K.BROWSER=L([d,h,"major"]),K.CPU=L([v]),K.DEVICE=L([l,f,p,g,b,m,y,w,_]),K.ENGINE=K.OS=L([d,h]),typeof t!==u?(e.exports&&(t=e.exports=K),t.UAParser=K):i.amdO?o!==(n=(function(){return K}).call(t,i,t,e))&&(e.exports=n):typeof r!==u&&(r.UAParser=K);var Z=typeof r!==u&&(r.jQuery||r.Zepto);if(Z&&!Z.ua){var H=new K;Z.ua=H.getResult(),Z.ua.get=function(){return H.getUA()},Z.ua.set=function(e){H.setUA(e);var t=H.getResult();for(var i in t)Z.ua[i]=t[i]}}}("object"==typeof window?window:this)},29622:function(e,t,i){"use strict";i.d(t,{CR:function(){return l},Jh:function(){return a},XA:function(){return c},ZT:function(){return r},gn:function(){return s},mG:function(){return u},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return(o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var u=e.length-1;u>=0;u--)(r=e[u])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}function u(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function u(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,u)}a((n=n.apply(e,t||[])).next())})}function a(e,t){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(a){return function(u){if(i)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(i=1,n&&(r=2&u[0]?n.return:u[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,u[1])).done)return r;switch(n=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){s.label=u[1];break}if(6===u[0]&&s.label<r[1]){s.label=r[1],r=u;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(u);break}r[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{i=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}function c(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);
vendor: 3,947 bytes, line 1
1if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}"function"==typeof SuppressedError&&SuppressedError},21221:function(e,t,i){"use strict";i.d(t,{CR:function(){return l},Jh:function(){return a},XA:function(){return c},ZT:function(){return r},_T:function(){return s},ev:function(){return d},mG:function(){return u},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return(o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i}function u(e,t,i,n){return new(i||(i=Promise))(function(r,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function u(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(s,u)}a((n=n.apply(e,t||[])).next())})}function a(e,t){var i,n,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(a){return function(u){if(i)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(s=0)),s;)try{if(i=1,n&&(r=2&u[0]?n.return:u[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,u[1])).done)return r;switch(n=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){s.label=u[1];break}if(6===u[0]&&s.label<r[1]){s.label=r[1],r=u;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(u);break}r[2]&&s.ops.pop(),s.trys.pop();continue}u=t.call(e,s)}catch(e){u=[6,e],n=0}finally{i=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}function c(e){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&e[t],n=0;if(i)return i.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(e,t){var i="function"==typeof Symbol&&e[Symbol.iterator];if(!i)return e;var n,r,o=i.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){r={error:e}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function d(e,t,i){if(i||2==arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError}}]);

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.