PageSourceSearch

https://driversed.com/dec-assets/921.d60131b39fe69498.js

js driversed.com collected 2026-09-25 18:21:38 UTC 84,762 bytes, 1 lines download raw bytes

1(self.webpackChunkcore_mkt=self.webpackChunkcore_mkt||[]).push([[921],{3911(H,y,n){"use strict";function t(v,a){return new Promise(function(r,c){var e=setTimeout(function(){c(Error("Promise timed out"))},a);v.then(function(s){return clearTimeout(e),r(s)}).catch(c)})}function d(v,a,r){return function p(v){return new Promise(function(a){return setTimeout(a,v)})}(r).then(function(){return t(function(){try{return Promise.resolve(a(v))}catch(e){return Promise.reject(e)}}(),1e3)}).catch(function(e){v?.log("warn","Callback Error",{error:e}),v?.stats.increment("callback_error")}).then(function(){return v})}n.d(y,{s2:()=>t,w_:()=>d})},3871(H,y,n){"use strict";n.d(y,{d:()=>r,j:()=>c});var t=n(943),p=n(1471),d=n(1635),v=function(){function e(){this._logs=[]}return e.prototype.log=function(s,u,i){this._logs.push({level:s,message:u,time:new Date,extras:i})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var s=this._logs.reduce(function(u,i){var l,h,m,I=(0,d.Cl)((0,d.Cl)({},i),{json:JSON.stringify(i.extras,null," "),extras:i.extras});delete I.time;var w=null!==(m=null===(h=i.time)||void 0===h?void 0:h.toISOString())&&void 0!==m?m:"";return u[w]&&(w="".concat(w,"-").concat(Math.random())),(0,d.Cl)((0,d.Cl)({},u),((l={})[w]=I,l))},{});console.table?console.table(s):console.log(s)}else this.logs.forEach(function(u){var i=u.level,l=u.message,h=u.extras;"info"===i||"debug"===i?console.log(l,h??""):console[i](l,h??"")});this._logs=[]},e}(),a=n(9111),r=function(){return function e(s){var u,i,l;this.retry=null===(u=s.retry)||void 0===u||u,this.type=null!==(i=s.type)&&void 0!==i?i:"plugin Error",this.reason=null!==(l=s.reason)&&void 0!==l?l:""}}(),c=function(){function e(s,u,i,l){void 0===u&&(u=(0,t.v4)()),void 0===i&&(i=new a.r),void 0===l&&(l=new v),this.attempts=0,this.event=s,this._id=u,this.logger=l,this.stats=i}return e.system=function(){},e.prototype.isSame=function(s){return s.id===this.id},e.prototype.cancel=function(s){throw s||new r({reason:"Context Cancel"})},e.prototype.log=function(s,u,i){this.logger.log(s,u,i)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(s,u){var i;if("integrations"===s.split(".")[0]){var l=s.split(".")[1];if(!1===(null===(i=this.event.integrations)||void 0===i?void 0:i[l]))return this.event}return(0,p.J)(this.event,s,u),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(s){this._failedDelivery=s},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},8222(H,y,n){"use strict";n.d(y,{g:()=>v,M:()=>a});var t=n(1635),p=n(7248),v="onRemoveFromFuture",a=function(r){function c(e,s,u){var i=r.call(this)||this;return i.future=[],i.maxAttempts=e,i.queue=s,i.seen=u??{},i}return(0,t.C6)(c,r),c.prototype.push=function(){for(var e=this,s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];var i=s.map(function(l){return!(e.updateAttempts(l)>e.maxAttempts||e.includes(l)||(e.queue.push(l),0))});return this.queue=this.queue.sort(function(l,h){return e.getAttempts(l)-e.getAttempts(h)}),i},c.prototype.pushWithBackoff=function(e,s){if(void 0===s&&(s=0),0==s&&0===this.getAttempts(e))return this.push(e)[0];var u=function d(r){var c=Math.random()+1,e=r.minTimeout,u=r.factor,h=r.maxTimeout,m=void 0===h?1/0:h;return Math.min(c*(void 0===e?500:e)*Math.pow(void 0===u?2:u,r.attempt),m)}({attempt:this.getAttempts(e)});return s>0&&u<s&&(u=s),this.scheduleItem(e,u)},c.prototype.pushWithDelay=function(e,s){return this.scheduleItem(e,s)},c.prototype.scheduleItem=function(e,s){var u=this;return!(this.updateAttempts(e)>this.maxAttempts||this.includes(e)||(setTimeout(function(){u.queue.push(e),u.future=u.future.filter(function(l){return l.id!==e.id}),u.emit(v)},s),this.future.push(e),0))},c.prototype.getAttempts=function(e){var s;return null!==(s=this.seen[e.id])&&void 0!==s?s:0},c.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},c.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||!!this.queue.find(function(s){return s.id===e.id})||!!this.future.find(function(s){return s.id===e.id})},c.prototype.pop=function(){return this.queue.shift()}
1,Object.defineProperty(c.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),c}(p.v)},3175(H,y,n){"use strict";n.d(y,{C:()=>v,D:()=>a});var t=n(1635),p=n(3871);function v(r,c){r.log("debug","plugin",{plugin:c.name});var e=(new Date).getTime(),s=c[r.event.type];if(void 0===s)return Promise.resolve(r);var u=function d(r){return(0,t.sH)(this,void 0,void 0,function(){var c;return(0,t.YH)(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,r()];case 1:return[2,e.sent()];case 2:return c=e.sent(),[2,Promise.reject(c)];case 3:return[2]}})})}(function(){return s.apply(c,[r])}).then(function(i){var l=(new Date).getTime()-e;return i.stats.gauge("plugin_time",l,["plugin:".concat(c.name)]),i}).catch(function(i){if(i instanceof p.d&&"middleware_cancellation"===i.type)throw i;return i instanceof p.d?(r.log("warn",i.type,{plugin:c.name,error:i}),i):(r.log("error","plugin Error",{plugin:c.name,error:i}),r.stats.increment("plugin_error",1,["plugin:".concat(c.name)]),i)});return u}function a(r,c){return v(r,c).then(function(e){if(e instanceof p.j)return e;r.log("debug","Context canceled"),r.stats.increment("context_canceled"),r.cancel(e)})}},9111(H,y,n){"use strict";n.d(y,{p:()=>d,r:()=>v});var t=n(1635),p=function(a){return{gauge:"g",counter:"c"}[a]},d=function(){function a(){this.metrics=[]}return a.prototype.increment=function(r,c,e){void 0===c&&(c=1),this.metrics.push({metric:r,value:c,tags:e??[],type:"counter",timestamp:Date.now()})},a.prototype.gauge=function(r,c,e){this.metrics.push({metric:r,value:c,tags:e??[],type:"gauge",timestamp:Date.now()})},a.prototype.flush=function(){var r=this.metrics.map(function(c){return(0,t.Cl)((0,t.Cl)({},c),{tags:c.tags.join(",")})});console.table?console.table(r):console.log(r),this.metrics=[]},a.prototype.serialize=function(){return this.metrics.map(function(r){return{m:r.metric,v:r.value,t:r.tags,k:p(r.type),e:r.timestamp}})},a}(),v=function(a){function r(){return null!==a&&a.apply(this,arguments)||this}return(0,t.C6)(r,a),r.prototype.gauge=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e]},r.prototype.increment=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e]},r.prototype.flush=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e]},r.prototype.serialize=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return[]},r}(d)},5774(H,y,n){"use strict";function t(r){return"string"==typeof r}function p(r){return"number"==typeof r}function d(r){return"function"==typeof r}function v(r){return null!=r}function a(r){return"object"===Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}n.d(y,{Et:()=>p,Kg:()=>t,Qd:()=>a,Tn:()=>d,t2:()=>v})},7248(H,y,n){"use strict";n.d(y,{v:()=>t});var t=function(){function p(d){var v;this.callbacks={},this.warned=!1,this.maxListeners=null!==(v=d?.maxListeners)&&void 0!==v?v:10}return p.prototype.warnIfPossibleMemoryLeak=function(d){this.warned||this.maxListeners&&this.callbacks[d].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(d)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},p.prototype.on=function(d,v){return this.callbacks[d]?(this.callbacks[d].push(v),this.warnIfPossibleMemoryLeak(d)):this.callbacks[d]=[v],this},p.prototype.once=function(d,v){var a=this,r=function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];a.off(d,r),v.apply(a,c)};return this.on(d,r),this},p.prototype.off=function(d,v){var a,c=(null!==(a=this.callbacks[d]
1)&&void 0!==a?a:[]).filter(function(e){return e!==v});return this.callbacks[d]=c,this},p.prototype.emit=function(d){for(var a,v=this,r=[],c=1;c<arguments.length;c++)r[c-1]=arguments[c];return(null!==(a=this.callbacks[d])&&void 0!==a?a:[]).forEach(function(s){s.apply(v,r)}),this},p}()},3921(H,y,n){"use strict";n.d(y,{j0:()=>N,cJ:()=>W});var t=n(1635),p=n(2722),d=n(8471),v=n(9014),a=n(3911),r=function(_,b){var f=Date.now()-_;return Math.max((b??300)-f,0)};function c(_,b,f,o){return(0,t.sH)(this,void 0,void 0,function(){var g,C;return(0,t.YH)(this,function(M){switch(M.label){case 0:return f.emit("dispatch_start",_),g=Date.now(),b.isEmpty()?[4,b.dispatchSingle(_)]:[3,2];case 1:return C=M.sent(),[3,4];case 2:return[4,b.dispatch(_)];case 3:C=M.sent(),M.label=4;case 4:return o?.callback?[4,(0,a.w_)(C,o.callback,r(g,o.timeout))]:[3,6];case 5:C=M.sent(),M.label=6;case 6:return o?.debug&&C.flush(),[2,C]}})})}var e=n(7248),s=n(8736),u=n(96),i=n(5674),h=n(8222),m=n(3871),K=n(3175),j=function(_){function b(f){return _.call(this,"string"==typeof f?new i.x(4,f):f)||this}return(0,t.C6)(b,_),b.prototype.flush=function(){return(0,t.sH)(this,void 0,void 0,function(){return(0,t.YH)(this,function(f){return(0,d.a)()?[2,[]]:[2,_.prototype.flush.call(this)]})})},b}(function(_){function b(f){var o=_.call(this)||this;return o.criticalTasks=function(){var _,b,f=0;return{done:function(){return _},run:function(o){var g=o();return function(_){return"object"==typeof _&&null!==_&&"then"in _&&"function"==typeof _.then}(g)&&(1===++f&&(_=new Promise(function(C){return b=C})),g.finally(function(){return 0===--f&&b()})),g}}}(),o.plugins=[],o.failedInitializations=[],o.flushing=!1,o.queue=f,o.queue.on(h.g,function(){o.scheduleFlush(0)}),o}return(0,t.C6)(b,_),b.prototype.register=function(f,o,g){return(0,t.sH)(this,void 0,void 0,function(){var C,M,S=this;return(0,t.YH)(this,function(B){switch(B.label){case 0:return this.plugins.push(o),C=function(U){S.failedInitializations.push(o.name),S.emit("initialization_failure",o),console.warn(o.name,U),f.log("warn","Failed to load destination",{plugin:o.name,error:U}),S.plugins=S.plugins.filter(function(V){return V!==o})},"destination"===o.type&&"Segment.io"!==o.name?(o.load(f,g).catch(C),[3,4]):[3,1];case 1:return B.trys.push([1,3,,4]),[4,o.load(f,g)];case 2:return B.sent(),[3,4];case 3:return M=B.sent(),C(M),[3,4];case 4:return[2]}})})},b.prototype.deregister=function(f,o,g){return(0,t.sH)(this,void 0,void 0,function(){var C;return(0,t.YH)(this,function(M){switch(M.label){case 0:return M.trys.push([0,3,,4]),o.unload?[4,Promise.resolve(o.unload(f,g))]:[3,2];case 1:M.sent(),M.label=2;case 2:return this.plugins=this.plugins.filter(function(S){return S.name!==o.name}),[3,4];case 3:return C=M.sent(),f.log("warn","Failed to unload destination",{plugin:o.name,error:C}),[3,4];case 4:return[2]}})})},b.prototype.dispatch=function(f){return(0,t.sH)(this,void 0,void 0,function(){var o;return(0,t.YH)(this,function(g){return f.log("debug","Dispatching"),f.stats.increment("message_dispatched"),this.queue.push(f),o=this.subscribeToDelivery(f),this.scheduleFlush(0),[2,o]})})},b.prototype.subscribeToDelivery=function(f){return(0,t.sH)(this,void 0,void 0,function(){var o=this;return(0,t.YH)(this,function(g){return[2,new Promise(function(C){var M=function(S,B){S.isSame(f)&&(o.off("flush",M),C(S))};o.on("flush",M)})]})})},b.prototype.dispatchSingle=function(f){return(0,t.sH)(this,void 0,void 0,function(){var o=this;return(0,t.YH)(this,function(g){return f.log("debug","Dispatching"),f.stats.increment("message_dispatched"),this.queue.updateAttempts(f),f.attempts=1,[2,this.deliver(f).catch(function(C){return o.enqueuRetry(C,f)?o.subscribeToDelivery(f):(f.setFailedDelivery({reason:C}),f)})]})})},b.prototype.isEmpty=function(){return 0===this.queue.length},b.prototype.scheduleFlush=function(f){var o=this;void 0===f&&(f=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){o.flush().then(function(){setTimeout(function(){o.flushing=!1,o.queue.length&&o.scheduleFlush(0)},0)})},f))},b.prototype.deliver=function(f){var o;return(0,t.sH)(this,void 0,void 0,function(){var g,C,M,S,B;return(0,t.YH)(this,function(U){switch(U.label){case 0:return[4,this.criticalTasks.done()];case 1:U.sent(),g=Date.now(),U.label=2;
1case 2:return U.trys.push([2,4,,5]),[4,this.flushOne(f)];case 3:return f=U.sent(),C=Date.now()-g,(M=f.failedDelivery())?(B=M.reason instanceof Error?M.reason:new Error(String(null!==(o=M.reason)&&void 0!==o?o:"Unknown delivery failure")),f.log("error","Failed to deliver",B),this.emit("delivery_failure",f,B),f.stats.increment("delivery_failed"),[2,f]):(this.emit("delivery_success",f),f.stats.gauge("delivered",C),f.log("debug","Delivered",f.event),[2,f]);case 4:throw S=U.sent(),f.log("error","Failed to deliver",B=S),this.emit("delivery_failure",f,B),f.stats.increment("delivery_failed"),S;case 5:return[2]}})})},b.prototype.enqueuRetry=function(f,o){return!(f instanceof m.d&&!f.retry)&&this.queue.pushWithBackoff(o)},b.prototype.flush=function(){return(0,t.sH)(this,void 0,void 0,function(){var f,o,g;return(0,t.YH)(this,function(M){switch(M.label){case 0:if(0===this.queue.length)return[2,[]];if(!(f=this.queue.pop()))return[2,[]];f.attempts=this.queue.getAttempts(f),M.label=1;case 1:return M.trys.push([1,3,,4]),[4,this.deliver(f)];case 2:return f=M.sent(),o=!f.failedDelivery(),this.emit("flush",f,o),[3,4];case 3:return g=M.sent(),this.enqueuRetry(g,f)||(f.setFailedDelivery({reason:g}),this.emit("flush",f,!1)),[2,[]];case 4:return[2,[f]]}})})},b.prototype.isReady=function(){return!0},b.prototype.availableExtensions=function(f){var g=function l(_,b){var f={};return _.forEach(function(o){var g,C=void 0;if("string"==typeof b){var M=o[b];C="string"!=typeof M?JSON.stringify(M):M}else b instanceof Function&&(C=b(o));void 0!==C&&(f[C]=(0,t.fX)((0,t.fX)([],null!==(g=f[C])&&void 0!==g?g:[],!0),[o],!1))}),f}(this.plugins.filter(function(G){var et,ot,ut;if("destination"!==G.type&&"Segment.io"!==G.name)return!0;var Z=void 0;return null===(et=G.alternativeNames)||void 0===et||et.forEach(function(ft){void 0!==f[ft]&&(Z=f[ft])}),null!==(ut=null!==(ot=f[G.name])&&void 0!==ot?ot:Z)&&void 0!==ut?ut:!1!==("Segment.io"===G.name||f.All)}),"type"),C=g.before,S=g.enrichment,U=g.destination,q=g.after;return{before:void 0===C?[]:C,enrichment:void 0===S?[]:S,destinations:void 0===U?[]:U,after:void 0===q?[]:q}},b.prototype.flushOne=function(f){var o,g;return(0,t.sH)(this,void 0,void 0,function(){var C,S,B,U,V,q,rt,G,et,ot,ut,Z,ft;return(0,t.YH)(this,function(tt){switch(tt.label){case 0:if(!this.isReady())throw new Error("Not ready");f.attempts>1&&this.emit("delivery_retry",f),C=this.availableExtensions(null!==(o=f.event.integrations)&&void 0!==o?o:{}),S=C.enrichment,B=0,U=C.before,tt.label=1;case 1:return B<U.length?[4,(0,K.D)(f,V=U[B])]:[3,4];case 2:(et=tt.sent())instanceof m.j&&(f=et),this.emit("message_enriched",f,V),tt.label=3;case 3:return B++,[3,1];case 4:q=0,rt=S,tt.label=5;case 5:return q<rt.length?[4,(0,K.C)(f,G=rt[q])]:[3,8];case 6:(et=tt.sent())instanceof m.j&&(f=et),this.emit("message_enriched",f,G),tt.label=7;case 7:return q++,[3,5];case 8:return ot=this.availableExtensions(null!==(g=f.event.integrations)&&void 0!==g?g:{}),ut=ot.destinations,Z=ot.after,[4,new Promise(function(nt,it){setTimeout(function(){var lt=ut.map(function(at){return(0,K.C)(f,at)});Promise.all(lt).then(nt).catch(it)},0)})];case 9:return tt.sent(),f.stats.increment("message_delivered"),this.emit("message_delivered",f),ft=Z.map(function(nt){return(0,K.C)(f,nt)}),[4,Promise.all(ft)];case 10:return tt.sent(),[2,f]}})})},b}(e.v)),O=n(6488),A=n(2651),D=n(6586),k=n(1310),X=n(1476),st=n(4504),ct=n(431),R=n(3552),F=n(437),x=n(529),L=n(7099),z=n(3290),J="This is being deprecated and will be not be available in future releases of Analytics JS",$=(0,k.m)(),Q=$?.analytics,E=function(){function _(b,f){var o;this.timeout=300,this._getSegmentPluginMetadata=function(){var C;return null===(C=f.plugins.find(z.n))||void 0===C?void 0:C.metadata},this.writeKey=b.writeKey,this.cdnSettings=null!==(o=b.cdnSettings)&&void 0!==o?o:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=b.cdnURL}return Object.defineProperty(_.prototype,"apiHost",{get:function(){var b,f;return null===(f=null===(b=this._getSegmentPluginMetadata)||void 0===b?void 0:b.call(this))||void 0===f?void 0:f.apiHost}
1,enumerable:!1,configurable:!0}),_}();function T(){console.warn(J)}var N=function(_){function b(f,o,g,C,M){var B,U,S=this;(S=_.call(this)||this)._debug=!1,S.initialized=!1,S.user=function(){return S._user},S.init=S.initialize.bind(S),S.log=T,S.addIntegrationMiddleware=T,S.listeners=T,S.addEventListener=T,S.removeAllListeners=T,S.removeListener=T,S.removeEventListener=T,S.hasListeners=T,S.add=T,S.addIntegration=T;var V=o?.cookie,q=null!==(B=o?.disableClientPersistence)&&void 0!==B&&B;S.queue=g??function P(_,b,f){void 0===b&&(b=!1),void 0===f&&(f=!1);var o=b?10:1,g=f?new h.M(o,[]):new i.x(o,_);return new j(g)}("".concat(f.writeKey,":event-queue"),o?.retryQueue,q),S.settings=new E(f,S.queue);var rt=o?.storage;return S._universalStorage=S.createStore(q,rt,V),S._user=C??new O.K((0,t.Cl)({persist:!q,storage:o?.storage},o?.user),V).load(),S._group=M??new O.Y((0,t.Cl)({persist:!q,storage:o?.storage},o?.group),V).load(),S.eventFactory=new s.r(S._user),S.integrations=null!==(U=o?.integrations)&&void 0!==U?U:{},S.options=o??{},(0,A.A)(S),S}return(0,t.C6)(b,_),b.prototype.createStore=function(f,o,g){return f?new X.l([new st.X]):o&&(0,ct.a)(o)?new X.l((0,R.nj)((0,R.Hn)(o.stores,g))):new X.l((0,R.nj)([F.M.LocalStorage,{name:F.M.Cookie,settings:g},F.M.Memory]))},Object.defineProperty(b.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),b.prototype.track=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C,M,U,V,q=this;return(0,t.YH)(this,function(rt){return g=(0,L.ar)(f),C=p.Bq.apply(void 0,f),U=C[3],V=this.eventFactory.track(M=C[0],C[1],C[2],this.integrations,g),[2,this._dispatch(V,U).then(function(G){return q.emit("track",M,G.event.properties,G.event.options),G})]})})},b.prototype.page=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C,M,S,V,q,rt=this;return(0,t.YH)(this,function(G){return g=(0,L.ar)(f),C=p.oH.apply(void 0,f),V=C[4],q=this.eventFactory.page(M=C[0],S=C[1],C[2],C[3],this.integrations,g),[2,this._dispatch(q,V).then(function(et){return rt.emit("page",M,S,et.event.properties,et.event.options),et})]})})},b.prototype.identify=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C,B,U,V,q=this;return(0,t.YH)(this,function(rt){return g=(0,L.ar)(f),C=(0,p.ac)(this._user).apply(void 0,f),B=C[2],U=C[3],this._user.identify(C[0],C[1]),V=this.eventFactory.identify(this._user.id(),this._user.traits(),B,this.integrations,g),[2,this._dispatch(V,U).then(function(G){return q.emit("identify",G.event.userId,G.event.traits,G.event.options),G})]})})},b.prototype.group=function(){for(var f=this,o=[],g=0;g<arguments.length;g++)o[g]=arguments[g];var C=(0,L.ar)(o);if(0===o.length)return this._group;var M=(0,p.ac)(this._group).apply(void 0,o),U=M[2],V=M[3];this._group.identify(M[0],M[1]);var q=this._group.id(),rt=this._group.traits(),G=this.eventFactory.group(q,rt,U,this.integrations,C);return this._dispatch(G,V).then(function(et){return f.emit("group",et.event.groupId,et.event.traits,et.event.options),et})},b.prototype.alias=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C,M,S,U,V,q=this;return(0,t.YH)(this,function(rt){return g=(0,L.ar)(f),C=p.ZZ.apply(void 0,f),U=C[3],V=this.eventFactory.alias(M=C[0],S=C[1],C[2],this.integrations,g),[2,this._dispatch(V,U).then(function(G){return q.emit("alias",M,S,G.event.options),G})]})})},b.prototype.screen=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C,M,S,V,q,rt=this;return(0,t.YH)(this,function(G){return g=(0,L.ar)(f),C=p.oH.apply(void 0,f),V=C[4],q=this.eventFactory.screen(M=C[0],S=C[1],C[2],C[3],this.integrations,g),[2,this._dispatch(q,V).then(function(et){return rt.emit("screen",M,S,et.event.properties,et.event.options),et})]})})},b.prototype.trackClick=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C;return(0,t.YH)(this,function(M){switch(M.label){case 0:return[4,n.e(248).then(n.bind(n,705))];case 1:return g=M.sent(),[2,(C=g.link).call.apply(C,(0,t.fX)([this],f,!1))]}})})},b.prototype.trackLink=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C;return(0,t.YH)(this,function(M){switch(M.label){case 0:return[4,n.e(248).then(n.bind(n,705))];case 1:return g=M.sent(),[2,(C=g.link).call.apply(C,(0,t.fX)([this],f,!1))]}})})},b.prototype.trackSubmit=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C;return(0,t.YH)(this,function(M){switch(M.label){case 0:return[4,n.e(248).then(n.bind(n,705))];case 1:return g=M.sent(),[2,(C=g.form).call.apply(C,(0,t.fX)([this],f,!1))]}})})},b.prototype.trackForm=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C;return(0,t.YH)(this,function(M){switch(M.label){case 0:return[4,n.e(248).then(n.bind(n,705))];case 1:return g=M.sent(),[2,(C=g.form).call.apply(C,(0,t.fX)([this],f,!1))]}})})},b.prototype.register=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C,M=this;return(0,t.YH)(this,function(S){switch(S.label){case 0:return g=v.o.system(),C=f.map(function(B){return M.queue.register(g,B,M)}),[4,Promise.all(C)];case 1:return S.sent(),[2,g]}})})},b.prototype.deregister=function(){for(var f=[],o=0;o<arguments.length;o++)f[o]=arguments[o];return(0,t.sH)(this,void 0,void 0,function(){var g,C,M=this;return(0,t.YH)(this,function(S){switch(S.label){case 0:return g=v.o.system(),C=f.map(function(B){var U=M.queue.plugins.find(function(V){return V.name===B});if(U)return M.queue.deregister(g,U,M);g.log("warn","plugin ".concat(B," not found"))}),[4,Promise.all(C)];case 1:return S.sent(),[2,g]}})})},b.prototype.debug=function(f){return!1===f&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=f,this},b.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit
vendor: 5,299 bytes, line 1
1("reset")},b.prototype.timeout=function(f){this.settings.timeout=f},b.prototype._dispatch=function(f,o){return(0,t.sH)(this,void 0,void 0,function(){var g;return(0,t.YH)(this,function(C){return(g=new v.o(f)).stats.increment("analytics_js.invoke",1,[f.type]),(0,d.a)()&&!this.options.retryQueue?[2,g]:[2,c(g,this.queue,this,{callback:o,debug:this._debug,timeout:this.settings.timeout})]})})},b.prototype.addSourceMiddleware=function(f){return(0,t.sH)(this,void 0,void 0,function(){var o=this;return(0,t.YH)(this,function(g){switch(g.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,t.sH)(o,void 0,void 0,function(){var C,M,S;return(0,t.YH)(this,function(B){switch(B.label){case 0:return[4,n.e(76).then(n.bind(n,6164))];case 1:return C=B.sent().sourceMiddlewarePlugin,M={},this.queue.plugins.forEach(function(U){if("destination"===U.type)return M[U.name]=!0}),S=C(f,M),[4,this.register(S)];case 2:return B.sent(),[2]}})})})];case 1:return g.sent(),[2,this]}})})},b.prototype.addDestinationMiddleware=function(f){for(var o=[],g=1;g<arguments.length;g++)o[g-1]=arguments[g];return this.queue.plugins.filter(u.h).forEach(function(C){("*"===f||C.name.toLowerCase()===f.toLowerCase())&&C.addMiddleware.apply(C,o)}),Promise.resolve(this)},b.prototype.setAnonymousId=function(f){return this._user.anonymousId(f)},b.prototype.queryString=function(f){return(0,t.sH)(this,void 0,void 0,function(){return(0,t.YH)(this,function(g){switch(g.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,Promise.all([n.e(76),n.e(538)]).then(n.bind(n,820))];case 1:return[2,(0,g.sent().queryString)(this,f)]}})})},b.prototype.use=function(f){return f(this),this},b.prototype.ready=function(f){return void 0===f&&(f=function(o){return o}),(0,t.sH)(this,void 0,void 0,function(){return(0,t.YH)(this,function(o){return[2,Promise.all(this.queue.plugins.map(function(g){return g.ready?g.ready():Promise.resolve()})).then(function(g){return f(g),g})]})})},b.prototype.noConflict=function(){return console.warn(J),(0,x.Ud)(Q??this),this},b.prototype.normalize=function(f){return console.warn(J),this.eventFactory.normalize(f)},Object.defineProperty(b.prototype,"failedInitializations",{get:function(){return console.warn(J),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"VERSION",{get:function(){return D.r},enumerable:!1,configurable:!0}),b.prototype.initialize=function(f,o){return(0,t.sH)(this,void 0,void 0,function(){return(0,t.YH)(this,function(g){return console.warn(J),[2,Promise.resolve(this)]})})},b.prototype.pageview=function(f){return(0,t.sH)(this,void 0,void 0,function(){return(0,t.YH)(this,function(o){switch(o.label){case 0:return console.warn(J),[4,this.page({path:f})];case 1:return o.sent(),[2,this]}})})},Object.defineProperty(b.prototype,"plugins",{get:function(){var f;return console.warn(J),null!==(f=this._plugins)&&void 0!==f?f:{}},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"Integrations",{get:function(){return console.warn(J),this.queue.plugins.filter(function(o){return"destination"===o.type}).reduce(function(o,g){var C="".concat(g.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),M=window[C];if(!M)return o;var S=M.Integration;return S?(o[g.name]=S,o):(o[g.name]=M,o)},{})},enumerable:!1,configurable:!0}),b.prototype.push=function(f){var g=f.shift();g&&!this[g]||this[g].apply(this,f)},b}(e.v),W=function(_){function b(){var f=_.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return f.initialized=!0,f}return(0,t.C6)(b,_),b}(N)},2722(H,y,n){"use strict";n.d(y,{Bq:()=>p,ZZ:()=>a,ac:()=>v,oH:()=>d});var t=n(5774);function p(r,c,e,s){var u,i=[r,c,e,s],l=(0,t.Qd)(r)?r.event:r;if(!l||!(0,t.Kg)(l))throw new Error("Event missing");var h=(0,t.Qd)(r)?null!==(u=r.properties)&&void 0!==u?u:{}:(0,t.Qd)(c)?c:{},m={};return(0,t.Tn)(e)||(m=e??{}),(0,t.Qd)(r)&&!(0,t.Tn)(c)&&(m=c??{}),[l,h,m,i.find(t.Tn)]}function d(r,c,e,s,u){var i,l,h=null,m=null,I=[r,c,e,s,u],w=I.filter(t.Kg);1===w.length?(0,t.Kg)(I[1])?(m=I[1],h=null):(m=w[0],h=null):2===w.length&&("string"==typeof I[0]&&(h=I[0]),"string"==typeof I[1]&&(m=I[1]));var K=I.find(t.Tn),Y=I.filter(t.Qd);return 1===Y.length?(0,t.Qd)(I[2])?(l={},i=I[2]):(0,t.Qd)(I[3])?(i={},l=I[3]):(i=Y[0],l={}):2===Y.length&&(i=Y[0],l=Y[1]),[h,m,i??(i={}),l??(l={}),K]}var v=function(r){return function(){for(var c,e,s,u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];for(var l={},h=["callback","options","traits","id"],m=0,I=u;m<I.length;m++){var w=I[m],K=h.pop();if("id"===K){if((0,t.Kg)(w)||(0,t.Et)(w)){l.id=w.toString();continue}if(null==w)continue;K=h.pop()}if(("traits"===K||"options"===K)&&(null==w||(0,t.Qd)(w))&&(l[K]=w),(0,t.Tn)(w)){l.callback=w;break}}return[null!==(c=l.id)&&void 0!==c?c:r.id(),null!==(e=l.traits)&&void 0!==e?e:{},null!==(s=l.options)&&void 0!==s?s:{},l.callback]}};function a(r,c,e,s){(0,t.Et)(r)&&(r=r.toString()),(0,t.Et)(c)&&(c=c.toString());var u=[r,c,e,s],i=u.filter(t.Kg),l=i[0],h=void 0===l?r:l,m=i[1],I=void 0===m?null:m,w=u.filter(t.Qd)[0];return[h,I,void 0===w?{}:w,u.find(t.Tn)]}},7099(H,y,n){"use strict";n.d(y,{Sc:()=>Y,l:()=>I,Dz:()=>e,o_:()=>l,SQ:()=>u,eg:()=>s,jF:()=>i,ar:()=>h});var t=n(1635),d=n(6586),v=n(529),a=n(7593),r=n(3541),c=function(j,O,A){A.getAndRemove(j).forEac
1h(function(D){K(O,D).catch(console.error)})},e=function(j,O){return(0,t.sH)(void 0,void 0,void 0,function(){var A,D;return(0,t.YH)(this,function(X){switch(X.label){case 0:A=0,D=O.getAndRemove("addSourceMiddleware"),X.label=1;case 1:return A<D.length?[4,K(j,D[A]).catch(console.error)]:[3,4];case 2:X.sent(),X.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},s=function(j,O){return(0,t.sH)(void 0,void 0,void 0,function(){var A,D;return(0,t.YH)(this,function(X){switch(X.label){case 0:A=0,D=O.getAndRemove("register"),X.label=1;case 1:return A<D.length?[4,K(j,D[A]).catch(console.error)]:[3,4];case 2:X.sent(),X.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},u=c.bind(void 0,"on"),i=c.bind(void 0,"setAnonymousId"),l=function(j,O){Object.keys(O.calls).forEach(function(A){O.getAndRemove(A).forEach(function(D){setTimeout(function(){K(j,D).catch(console.error)},0)})})},h=function(j){if(m(j)){var O=j.pop();return(0,a.Lj)(O)}},m=function(j){return(0,a.Up)(j[j.length-1])},I=function(){return function j(O,A,D,k){void 0===D&&(D=function(){}),void 0===k&&(k=console.error),this.method=O,this.resolve=D,this.reject=k,this.called=!1,this.args=A}}(),w=function(){function j(){for(var O=[],A=0;A<arguments.length;A++)O[A]=arguments[A];this._callMap={},this.add.apply(this,O)}return Object.defineProperty(j.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(O){this._callMap=O},enumerable:!1,configurable:!0}),j.prototype.get=function(O){var A;return null!==(A=this.calls[O])&&void 0!==A?A:[]},j.prototype.getAndRemove=function(O){var A=this.get(O);return this.calls[O]=[],A},j.prototype.add=function(){for(var O=this,A=[],D=0;D<arguments.length;D++)A[D]=arguments[D];A.forEach(function(k){["track","screen","alias","group","page","identify"].includes(k.method)&&!m(k.args)&&(k.args=(0,t.fX)((0,t.fX)([],k.args,!0),[(0,a.pV)()],!1)),O.calls[k.method]?O.calls[k.method].push(k):O.calls[k.method]=[k]})},j.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},j.prototype.toArray=function(){var O;return(O=[]).concat.apply(O,Object.values(this.calls))},j.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,r.X)()){var O=(0,v.kJ)();if(Array.isArray(O)){var D=O.splice(0,O.length).map(function(k){var X=k[0],st=k.slice(1);return new I(X,st)});this.add.apply(this,D)}}},j}();function K(j,O){return(0,t.sH)(this,void 0,void 0,function(){var A,D;return(0,t.YH)(this,function(k){switch(k.label){case 0:return k.trys.push([0,3,,4]),O.called?[2,void 0]:(O.called=!0,function(j){return"object"==typeof j&&null!==j&&"then"in j&&"function"==typeof j.then}(A=j[O.method].apply(j,O.args))?[4,A]:[3,2]);case 1:k.sent(),k.label=2;case 2:return O.resolve(A),[3,4];case 3:return D=k.sent(),O.reject(D),[3,4];case 4:return[2]}})})}var Y=function(){function j(O){var A=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=d.r,this._preInitBuffer=new w,this._promise=O(this._preInitBuffer),this._promise.then(function(D){var X=D[1];A.instance=D[0],A.ctx=X}).catch(function(){})}return j.prototype.then=function(){for(var O,A=[],D=0;D<arguments.length;D++)A[D]=arguments[D];return(O=this._promise).then.apply(O,A)},j.prototype.catch=function(){for(var O,A=[],D=0;D<arguments.length;D++)A[D]=arguments[D];return(O=this._promise).catch.apply(O,A)},j.prototype.finally=function(){for(var O,A=[],D=0;D<arguments.length;D++)A[D]=arguments[D];return(O=this._promise).finally.apply(O,A)},j.prototype._createMethod=function(O){var A=this;return function(){for(var D,k=[],X=0;X<arguments.length;X++)k[X]=arguments[X];if(A.instance){var st=(D=A.instance)[O].apply(D,k);return Promise.resolve(st)}return new Promise(function(ct,R){A._preInitBuffer.add(new I(O,k,ct,R))})}},j.prototype._createChainableMethod=function(O){var A=this;return function(){for(var D,k=[],X=0;X<arguments.length;X++)k[X]=arguments[X];return A.instance?((D=A.instance)[O].apply(D,k),A):(A._preInitBuffer.add(new I(O,k)),A)}},j}()},8471(H,y,n){"use strict";n.d(y,{a:()=>d,s:()=>p});var t=n(1292);function p(){return!(0,t.B)()||window.navigator.onLine}function d(){return!p()}},5164(H,y,n){"use strict";n.d(y,{a:()=>t});var t="api.segment.io/v1"},9014(H,y,n){"use strict";n.d(y,{d:()=>p.d,o:()=>v});var t=n(1635),p=n(3871),d=n(2521),v=function(a){function r(c,e){return a.call(this,c,e,new d.U)||this}return(0,t.C6)(r,a),r.system=function(){return new this({type:"track",event:"system"})},r}(p.j)},1292(H,y,n){"use strict";function t(){return typeof window<"u"}function p(){return!t()}n.d(y,{B:()=>t,S:()=>p})},8736(H,y,n){"use strict";n.d(y,{r:()=>ct});var t=n(1635),p=n(943),v=n(7593),a=function(R,F){void 0===F&&(F=(0,v.eJ)());var L,x=R.context;"page"===R.type&&(L=R.properties&&function d(R,F){return Object.assign.apply(Object,(0,t.fX)([{}],F.map(function(x){var L;if(R&&Object.prototype.hasOwnProperty.call(R,x))return(L={})[x]=R[x],L}),!1))}(R.properties,Object.keys(F)),R.properties=(0,t.Cl)((0,t.Cl)((0,t.Cl)({},F),R.properties),R.name?{name:R.name}:{})),x.page=(0,t.Cl)((0,t.Cl)((0,t.Cl)({},F),L),x.page)}
1,r=n(1471),e=function(R){function F(x,L){var z=R.call(this,"".concat(x," ").concat(L))||this;return z.field=x,z}return(0,t.C6)(F,R),F}(Error),s=n(5774),h="is not a string",m="is not an object";var X=function(){return function R(F){var x,L;this.settings=F,this.createMessageId=F.createMessageId,this.onEventMethodCall=null!==(x=F.onEventMethodCall)&&void 0!==x?x:function(){},this.onFinishedEvent=null!==(L=F.onFinishedEvent)&&void 0!==L?L:function(){}}}(),ct=function(R){function F(x){var L=R.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,p.v4)())},onEventMethodCall:function(z){L.maybeUpdateAnonId(z.options)},onFinishedEvent:function(z){return L.addIdentity(z),z}})||this;return L.user=x,L}return(0,t.C6)(F,R),F.prototype.maybeUpdateAnonId=function(x){x?.anonymousId&&this.user.anonymousId(x.anonymousId)},F.prototype.addIdentity=function(x){this.user.id()&&(x.userId=this.user.id()),this.user.anonymousId()&&(x.anonymousId=this.user.anonymousId())},F.prototype.track=function(x,L,z,J,$){var Q=R.prototype.track.call(this,x,L,z,J);return a(Q,$),Q},F.prototype.page=function(x,L,z,J,$,Q){var P=R.prototype.page.call(this,x,L,z,J,$);return a(P,Q),P},F.prototype.screen=function(x,L,z,J,$,Q){var P=R.prototype.screen.call(this,x,L,z,J,$);return a(P,Q),P},F.prototype.identify=function(x,L,z,J,$){var Q=R.prototype.identify.call(this,x,L,z,J);return a(Q,$),Q},F.prototype.group=function(x,L,z,J,$){var Q=R.prototype.group.call(this,x,L,z,J);return a(Q,$),Q},F.prototype.alias=function(x,L,z,J,$){var Q=R.prototype.alias.call(this,x,L,z,J);return a(Q,$),Q},F}(function(){function R(F){this.settings=new X(F)}return R.prototype.track=function(F,x,L,z){return this.settings.onEventMethodCall({type:"track",options:L}),this.normalize((0,t.Cl)((0,t.Cl)({},this.baseEvent()),{event:F,type:"track",properties:x??{},options:(0,t.Cl)({},L),integrations:(0,t.Cl)({},z)}))},R.prototype.page=function(F,x,L,z,J){var $;this.settings.onEventMethodCall({type:"page",options:z});var Q={type:"page",properties:(0,t.Cl)({},L),options:(0,t.Cl)({},z),integrations:(0,t.Cl)({},J)};return null!==F&&(Q.category=F,Q.properties=null!==($=Q.properties)&&void 0!==$?$:{},Q.properties.category=F),null!==x&&(Q.name=x),this.normalize((0,t.Cl)((0,t.Cl)({},this.baseEvent()),Q))},R.prototype.screen=function(F,x,L,z,J){this.settings.onEventMethodCall({type:"screen",options:z});var $={type:"screen",properties:(0,t.Cl)({},L),options:(0,t.Cl)({},z),integrations:(0,t.Cl)({},J)};return null!==F&&($.category=F),null!==x&&($.name=x),this.normalize((0,t.Cl)((0,t.Cl)({},this.baseEvent()),$))},R.prototype.identify=function(F,x,L,z){return this.settings.onEventMethodCall({type:"identify",options:L}),this.normalize((0,t.Cl)((0,t.Cl)({},this.baseEvent()),{type:"identify",userId:F,traits:x??{},options:(0,t.Cl)({},L),integrations:z}))},R.prototype.group=function(F,x,L,z){return this.settings.onEventMethodCall({type:"group",options:L}),this.normalize((0,t.Cl)((0,t.Cl)({},this.baseEvent()),{type:"group",traits:x??{},options:(0,t.Cl)({},L),integrations:(0,t.Cl)({},z),groupId:F}))},R.prototype.alias=function(F,x,L,z){this.settings.onEventMethodCall({type:"alias",options:L});var J={userId:F,type:"alias",options:(0,t.Cl)({},L),integrations:(0,t.Cl)({},z)};return null!==x&&(J.previousId=x),this.normalize(void 0===F?(0,t.Cl)((0,t.Cl)({},J),this.baseEvent()):(0,t.Cl)((0,t.Cl)({},this.baseEvent()),J))},R.prototype.baseEvent=function(){return{integrations:{},options:{}}},R.prototype.context=function(F){var x,L=["userId","anonymousId","timestamp","messageId"];delete F.integrations;var z=Object.keys(F),J=null!==(x=F.context)&&void 0!==x?x:{},$={};return z.forEach(function(Q){"context"!==Q&&(L.includes(Q)?(0,r.J)($,Q,F[Q]):(0,r.J)(J,Q,F[Q]))}),[J,$]},R.prototype.normalize=function(F){var x,L,z=Object.keys(null!==(x=F.integrations)&&void 0!==x?x:{}).reduce(function(W,_){var b,f;return(0,t.Cl)((0,t.Cl)({},W),((b={})[_]=!(null===(f=F.integrations)||void 0===f||!f[_]),b))},{});F.options=function(R){return Object.keys(R).filter(function(x){return void 0!==R[x]}).reduce(function(x,L){return x[L]=R[L],x},{})}(F.options||{});var J=(0,t.Cl)((0,t.Cl)({},z),null===(L=F.options)||void 0===L?void 0:L.integrations),$=F.options?this.context(F.options):[],Q=$[0],P=$[1],E=F.options,T=(0,t.Tt)(F,["options"]),N=(0,t.Cl)((0,t.Cl)((0,t.Cl)((0,t.Cl)({timestamp:new Date},T),{context:Q,integrations:J}),P),{messageId:E.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(N),function k(R){(function K(R){if(!(0,s.t2)(R))throw new e("Event","is nil");if("object"!=typeof R)throw new e("Event",m)})(R),function Y(R){if(!(0,s.Kg)(R.type))throw new e(".type",h)}
1(R),function D(R){if(!(0,s.Kg)(R.messageId))throw new e(".messageId",h)}(R),"track"===R.type&&(function j(R){if(!(0,s.Kg)(R.event))throw new e(".event",h)}(R),function O(R){if(!(0,s.Qd)(R.properties))throw new e(".properties",m)}(R)),["group","identify"].includes(R.type)&&function A(R){if(!(0,s.Qd)(R.traits))throw new e(".traits",m)}(R)}(N),N},R}())},96(H,y,n){"use strict";n.d(y,{h:()=>t});var t=function(p){return"addMiddleware"in p&&"destination"===p.type}},2521(H,y,n){"use strict";n.d(y,{U:()=>i});var t=n(1635),p=n(9111),d=n(6500),v=n(6586),a=n(3541),r=n(5164);function e(l){console.error("Error sending segment performance metrics",l)}var u,s=function(){function l(h){var I,w,K,Y,j,m=this;if(this.host=null!==(I=h?.host)&&void 0!==I?I:r.a,this.sampleRate=null!==(w=h?.sampleRate)&&void 0!==w?w:1,this.flushTimer=null!==(K=h?.flushTimer)&&void 0!==K?K:3e4,this.maxQueueSize=null!==(Y=h?.maxQueueSize)&&void 0!==Y?Y:20,this.protocol=null!==(j=h?.protocol)&&void 0!==j?j:"https",this.queue=[],this.sampleRate>0){var O=!1,A=function(){O||(O=!0,m.flush().catch(e),O=!1,setTimeout(A,m.flushTimer))};A()}}return l.prototype.increment=function(h,m){if(h.includes("analytics_js.")&&0!==m.length&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var I=function(l,h,m){var I=h.reduce(function(w,K){var Y=K.split(":");return w[Y[0]]=Y[1],w},{});return{type:"Counter",metric:l,value:1,tags:(0,t.Cl)((0,t.Cl)({},I),{library:"analytics.js",library_version:"web"===m?"next-".concat(v.r):"npm:next-".concat(v.r)})}}(h,m,(0,a.X)());this.queue.push(I),h.includes("error")&&this.flush().catch(e)}},l.prototype.flush=function(){return(0,t.sH)(this,void 0,void 0,function(){var h=this;return(0,t.YH)(this,function(m){switch(m.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(I){e(I),h.sampleRate=0})];case 1:return m.sent(),[2]}})})},l.prototype.send=function(){return(0,t.sH)(this,void 0,void 0,function(){var h,m,I;return(0,t.YH)(this,function(w){return h={series:this.queue},this.queue=[],m={"Content-Type":"text/plain"},I="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,d.h)(I,{headers:m,body:JSON.stringify(h),method:"POST"})]})})},l}(),i=function(l){function h(){return null!==l&&l.apply(this,arguments)||this}return(0,t.C6)(h,l),h.initRemoteMetrics=function(m){u=new s(m)},h.prototype.increment=function(m,I,w){l.prototype.increment.call(this,m,I,w),u?.increment(m,w??[])},h}(p.p)},3467(H,y,n){"use strict";n.d(y,{W:()=>a});var t=n(1635),p=n(2706),d=n(7272),a=function(){function r(c){void 0===c&&(c=r.defaults),this.options=(0,t.Cl)((0,t.Cl)({},r.defaults),c)}return Object.defineProperty(r,"defaults",{get:function(){return{maxage:365,domain:(0,d.f)(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),r.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},r.prototype.get=function(c){var e;try{var s=p.A.get(c);if(null==s)return null;try{return null!==(e=JSON.parse(s))&&void 0!==e?e:null}catch{return s??null}}catch{return null}},r.prototype.set=function(c,e){"string"==typeof e?p.A.set(c,e,this.opts()):null===e?p.A.remove(c,this.opts()):p.A.set(c,JSON.stringify(e),this.opts())},r.prototype.remove=function(c){return p.A.remove(c,this.opts())},r}()},3552(H,y,n){"use strict";n.d(y,{Hn:()=>c,nj:()=>r});var t=n(3467),p=function(){function e(){}return e.prototype.localStorageWarning=function(s,u){console.warn("Unable to access ".concat(s,", localStorage may be ").concat(u))},e.prototype.get=function(s){var u;try{var i=localStorage.getItem(s);if(null===i)return null;try{return null!==(u=JSON.parse(i))&&void 0!==u?u:null}catch{return i??null}}catch{return this.localStorageWarning(s,"unavailable"),null}},e.prototype.set=function(s,u){try{localStorage.setItem(s,JSON.stringify(u))}catch{this.localStorageWarning(s,"full")}},e.prototype.remove=function(s){try{return localStorage.removeItem(s)}catch{this.localStorageWarning(s,"unavailable")}},e}(),d=n(4504),v=n(431),a=n(437);function r(e){return e.map(function(u){var i,l;switch((0,v.z)(u)?(i=u.name,l=u.settings):i=u,i){case a.M.Cookie:return new t.W(l);case a.M.LocalStorage:return new p;case a.M.Memory:return new d.X;default:throw new Error("Unknown Store Type: ".concat(u))}})}function c(e,s){return e.map(function(u){return s&&u===a.M.Cookie?{name:u,settings:s}:u})}},4504(H,y,n){"use strict";n.d(y,{X:()=>t});var t=function(){function p(){this.cache={}}return p.prototype.get=function(d){var v;return null!==(v=this.cache[d])&&void 0!==v?v:null},p.prototype.set=function(d,v){this.cache[d]=v},p.prototype.remove=function(d){delete this.cache[d]},p}()},431(H,y,n){"use strict";n.d(y,{a:()=>p,z:()=>d});var t=n(437);function p(v){return v&&v.stores&&Array.isArray(v.stores)&&v.stores.every(function(a){return Object.values(t.M).includes(a)})}function d(v){return"object"==typeof v&&void 0!==v.name}},437(H,y,n){"use strict";n.d(y,{M:()=>t});var t={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"}},1476(H,y,n){"use strict";n.d(y,{l:()=>p});var t=function(d,v,a,r){console.warn("".concat(d.constructor.name,": Can't ").concat(v,' key "').concat(a,'" | Err: ').concat(r))},p=function(){function d(v){this.stores=v}return d.prototype.get=function(v){for(var a=null,r=0,c=this.stores;r<c.length;r++){var e=c[r];try{if(null!=(a=e.get(v)))return a}catch(s){t(e,"get",v,s)}}return null}
1,d.prototype.set=function(v,a){this.stores.forEach(function(r){try{r.set(v,a)}catch(c){t(r,"set",v,c)}})},d.prototype.clear=function(v){this.stores.forEach(function(a){try{a.remove(v)}catch(r){t(a,"remove",v,r)}})},d.prototype.getAndSync=function(v){var a=this.get(v),r="number"==typeof a?a.toString():a;return this.set(v,r),r},d}()},6488(H,y,n){"use strict";n.d(y,{K:()=>u,Y:()=>l});var t=n(1635),p=n(943),d=n(2651),v=n(3552),a=n(437),r=n(4504),c=n(1476),e=n(431),s={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},u=function(){function h(m,I){void 0===m&&(m=s);var K,Y,j,O,w=this;this.options={},this.id=function(D){if(w.options.disable)return null;var k=w.identityStore.getAndSync(w.idKey);void 0!==D&&(w.identityStore.set(w.idKey,D),D!==k&&null!==k&&null!==D&&w.anonymousId(null));var st=w.identityStore.getAndSync(w.idKey);if(st)return st;var ct=w.legacyUserStore.get(s.cookie.oldKey);return ct?"object"==typeof ct?ct.id:ct:null},this.anonymousId=function(D){var k,X;if(w.options.disable)return null;if(void 0===D){var st=null!==(k=w.identityStore.getAndSync(w.anonKey))&&void 0!==k?k:null===(X=w.legacySIO())||void 0===X?void 0:X[0];if(st)return st}return null===D?(w.identityStore.set(w.anonKey,null),w.identityStore.getAndSync(w.anonKey)):(w.identityStore.set(w.anonKey,D??(0,p.v4)()),w.identityStore.getAndSync(w.anonKey))},this.traits=function(D){var k;if(!w.options.disable)return null===D&&(D={}),D&&w.traitsStore.set(w.traitsKey,D??{}),null!==(k=w.traitsStore.get(w.traitsKey))&&void 0!==k?k:{}},this.options=(0,t.Cl)((0,t.Cl)({},s),m),this.cookieOptions=I,this.idKey=null!==(Y=null===(K=m.cookie)||void 0===K?void 0:K.key)&&void 0!==Y?Y:s.cookie.key,this.traitsKey=null!==(O=null===(j=m.localStorage)||void 0===j?void 0:j.key)&&void 0!==O?O:s.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,I),this.legacyUserStore=this.createStorage(this.options,I,function(D){return D===a.M.Cookie}),this.traitsStore=this.createStorage(this.options,I,function(D){return D!==a.M.Cookie});var A=this.legacyUserStore.get(s.cookie.oldKey);A&&"object"==typeof A&&(A.id&&this.id(A.id),A.traits&&this.traits(A.traits)),(0,d.A)(this)}return h.prototype.legacySIO=function(){var m=this.legacyUserStore.get("_sio");if(!m)return null;var I=m.split("----");return[I[0],I[1]]},h.prototype.identify=function(m,I){if(!this.options.disable){I=I??{};var w=this.id();(null===w||w===m)&&(I=(0,t.Cl)((0,t.Cl)({},this.traits()),I)),m&&this.id(m),this.traits(I)}},h.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},h.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},h.prototype.load=function(){return new h(this.options,this.cookieOptions)},h.prototype.save=function(){return!0},h.prototype.createStorage=function(m,I,w){var K=[a.M.LocalStorage,a.M.Cookie,a.M.Memory];return m.disable?new c.l([]):m.persist?(null!=m.storage&&(0,e.a)(m.storage)&&(K=m.storage.stores),m.localStorageFallbackDisabled&&(K=K.filter(function(Y){return Y!==a.M.LocalStorage})),w&&(K=K.filter(w)),new c.l((0,v.nj)((0,v.Hn)(K,I)))):new c.l([new r.X])},h.defaults=s,h}(),i={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},l=function(h){function m(I,w){void 0===I&&(I=i);var K=h.call(this,(0,t.Cl)((0,t.Cl)({},i),I),w)||this;return K.anonymousId=function(Y){},(0,d.A)(K),K}return(0,t.C6)(m,h),m}(u)},7272(H,y,n){"use strict";n.d(y,{f:()=>v});var t=n(2706);function v(a){var r=function d(a){try{return new URL(a)}catch{return}}(a);if(r)for(var c=function p(a){var c=a.hostname.split("."),s=[];if(4===c.length&&parseInt(c[c.length-1],10)>0||c.length<=1)return s;for(var u=c.length-2;u>=0;--u)s.push(c.slice(u).join("."));return s}(r),e=0;e<c.length;++e){var s="__tld__",u=c[e],i={domain:"."+u};try{if(t.A.set(s,"1",i),t.A.get(s))return t.A.remove(s,i),u}catch{return}}}},6586(H,y,n){"use strict";n.d(y,{r:()=>t});var t="1.84.0"},2651(H,y,n){"use strict";function t(p){for(var v=0,a=Object.getOwnPropertyNames(p.constructor.prototype);v<a.length;v++){var r=a[v];if("constructor"!==r){var c=Object.getOwnPropertyDescriptor(p.constructor.prototype,r);c&&"function"==typeof c.value&&(p[r]=p[r].bind(p))}}return p}n.d(y,{A:()=>t})},6500(H,y,n){"use strict";function t(v,a){return a=a||{},new Promise(function(r,c){var e=new XMLHttpRequest,s=[],u=[],i={},l=function(){return{ok:2==(e.status/100|0),statusText:e.statusText,status:e.status,url:e.responseURL,text:function(){return Promise.resolve(e.responseText)},json:function(){return Promise.resolve(e.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([e.response]))},clone:l,headers:{keys:function(){return s},entries:function(){return u},get:function(m){return i[m.toLowerCase()]},has:function(m){return m.toLowerCase()in i}}}};for(var h in e.open(a.method||"get",v,!0),e.onload=function(){e.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(m,I,w){s.push(I=I.toLowerCase()),u.push([I,w]),i[I]=i[I]?i[I]+","+w:w}),r(l())},e.onerror=c,e.withCredentials="include"==a.credentials,a.headers)e.setRequestHeader(h,a.headers[h]);e.send(a.body||null)})}n.d(y,{h:()=>d});var p=n(1310),d=function(){for(var v=[],a=0;a<arguments.length;a++)v[a]=arguments[a];var r=(0,p.m)();return(r&&r.fetch||t).apply(void 0,v)}},1310(H,y,n){"use strict";n.d(y,{m:()=>t});var t=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:null}},529(H,y,n){"use strict";n.d(y,{Ud:()=>v,kJ:()=>p,rY:()=>d});var t="analytics";function p(){return window[t]}function d(a){t=a}function v(a){window[t]=a}},9759(H,y,n){"use strict";n.d(y,{_:()=>p});var t=n(1635),p=function(d,v){return(0,t.sH)(void 0,void 0,void 0,function(){var a;return(0,t.YH)(this,function(r){return[2,(a=function(c){return(0,t.sH)(void 0,void 0,void 0,function(){var e;return(0,t.YH)(this,function(s){switch(s.label){case 0:return d(c)?(e=a,[4,v()]):[3,2];case 1:return[2,e.apply(void 0,[s.sent()])];case 2:return[2]}})})})(void 0)]})})}},5674(H,y,n){"use strict";n.d(y,{x:()=>h});var t=n(1635),p=n(8222),d=n(9014),v=n(1292),a={getItem:function(){},setItem:function(){},removeItem:function(){}};try{a=(0,v.B)()&&window.localStorage?window.localStorage:a}catch(m){console.warn("Unable to access localStorage",m)}function r(m){var I=a.getItem(m);return(I?JSON.parse(I):[]).map(function(w){return new d.o(w.event,w.id)})}function e(m){var I=a.getItem(m);return I?JSON.parse(I):{}}function u(m){a.removeItem(m)}function l(m,I,w){void 0===w&&(w=0);var k,Y="persisted-queue:v1:".concat(m,":lock"),O=a.getItem(Y),A=O?JSON.parse(O):null,D=null===A||(k=A,(new Date).getTime()>k);if(D)return a.setItem(Y,JSON.stringify((new Date).getTime()+50)),I(),void a.removeItem(Y);!D&&w<3?setTimeout(function(){l(m,I,w+1)},50):console.error("Unable to retrieve lock")}var h=function(m){function I(w,K){var Y=m.call(this,w,[])||this,j="persisted-queue:v1:".concat(K,":items"),O="persisted-queue:v1:".concat(K,":seen"),A=[],D={};return l(K,function(){try{A=r(j),D=e(O),u(j),u(O),Y.queue=(0,t.fX)((0,t.fX)([],A,!0),Y.queue,!0),Y.seen=(0,t.Cl)((0,t.Cl)({}
1,D),Y.seen)}catch(k){console.error(k)}}),window.addEventListener("pagehide",function(){if(Y.todo>0){var k=(0,t.fX)((0,t.fX)([],Y.queue,!0),Y.future,!0);try{l(K,function(){(function c(m,I){var w=r(m),Y=(0,t.fX)((0,t.fX)([],I,!0),w,!0).reduce(function(j,O){var A;return(0,t.Cl)((0,t.Cl)({},j),((A={})[O.id]=O,A))},{});a.setItem(m,JSON.stringify(Object.values(Y)))})(j,k),function s(m,I){var w=e(m);a.setItem(m,JSON.stringify((0,t.Cl)((0,t.Cl)({},w),I)))}(O,Y.seen)})}catch(X){console.error(X)}}}),Y}return(0,t.C6)(I,m),I}(p.M)},6862(H,y,n){"use strict";n.d(y,{W:()=>d});var t=n(2717);function d(v,a){var r=new t.Facade(v,a);return"track"===v.type&&(r=new t.Track(v,a)),"identify"===v.type&&(r=new t.Identify(v,a)),"page"===v.type&&(r=new t.Page(v,a)),"alias"===v.type&&(r=new t.Alias(v,a)),"group"===v.type&&(r=new t.Group(v,a)),"screen"===v.type&&(r=new t.Screen(v,a)),Object.defineProperty(r,"obj",{value:v,writable:!0}),r}},3541(H,y,n){"use strict";n.d(y,{X:()=>d});function d(){return"npm"}},3290(H,y,n){"use strict";n.d(y,{n:()=>$,u:()=>Q});var t=n(1635),p=n(8471),d=n(8222),v=n(5674),a=n(6862),r=n(6500),e=function(P){function E(T,N,W){void 0===W&&(W=!1);var _=P.call(this,T)||this;return _.retryTimeout=N,_.isRetryableWithoutCount=W,_.name="RateLimitError",_}return(0,t.C6)(E,P),E}(Error),s=n(9014),u=function(P){return(0,t.Cl)({"Content-Type":"text/plain"},"function"==typeof P?P():P)},i={408:"retry",410:"retry",429:"retry",460:"retry",501:"drop",505:"drop",511:"drop"};function l(P,E,T,N){return Math.min(Math.max(P??E,T),N)}function h(P,E){var T;if(429!==P.status)return null;var N=null===(T=P.headers)||void 0===T?void 0:T.get("Retry-After");if(!N)return null;var W=parseInt(N,10);return Number.isNaN(W)?null:{retryAfterMs:1e3*Math.max(0,Math.min(W,E.maxRetryInterval)),fromHeader:!0}}function m(P,E){return E.statusCodeOverrides[String(P)]||(P>=500?E.default5xxBehavior:P>=400?E.default4xxBehavior:"drop")}function w(P,E){var T,N,W,_,b=P||E?{rateLimitConfig:(0,t.Cl)((0,t.Cl)({},P?.rateLimitConfig),E?.rateLimitConfig),backoffConfig:(0,t.Cl)((0,t.Cl)((0,t.Cl)({},P?.backoffConfig),E?.backoffConfig),{statusCodeOverrides:(0,t.Cl)((0,t.Cl)({},null===(T=P?.backoffConfig)||void 0===T?void 0:T.statusCodeOverrides),null===(N=E?.backoffConfig)||void 0===N?void 0:N.statusCodeOverrides)})}:void 0,f=b?.rateLimitConfig,o=b?.backoffConfig;return{rateLimitConfig:{maxRetryCount:l(f?.maxRetryCount,10,0,100),maxRetryInterval:l(f?.maxRetryInterval,300,.1,86400),maxRateLimitDuration:l(f?.maxRateLimitDuration,43200,10,86400)},backoffConfig:{maxRetryCount:l(o?.maxRetryCount,10,0,100),baseBackoffInterval:l(o?.baseBackoffInterval,.5,.1,300),maxBackoffInterval:l(o?.maxBackoffInterval,60,.1,86400),maxTotalBackoffDuration:l(o?.maxTotalBackoffDuration,43200,60,604800),jitterPercent:l(o?.jitterPercent,10,0,100),default4xxBehavior:null!==(W=o?.default4xxBehavior)&&void 0!==W?W:"drop",default5xxBehavior:null!==(_=o?.default5xxBehavior)&&void 0!==_?_:"retry",statusCodeOverrides:(0,t.Cl)((0,t.Cl)({},i),o?.statusCodeOverrides)}}}function j(P){return(encodeURI(JSON.stringify(P)).split(/%..|./).length-1)/1024}function O(P){return j(P)>=450}function ct(P,E,T,N,W){var _,b=P.user();delete E.options,E.writeKey=T?.apiKey,E.userId=E.userId||b.id(),E.anonymousId=E.anonymousId||b.anonymousId(),E.sentAt=new Date;var f=P.queue.failedInitializations||[];f.length>0&&(E._metadata={failedInitializations:f}),null!=W&&(W.attempts>1&&(E._metadata=(0,t.Cl)((0,t.Cl)({},E._metadata),{retryCount:W.attempts})),W.attempts++);var o=[],g=[];for(var C in N){var M=N[C];"Segment.io"===C&&o.push(C),"bundled"===M.bundlingStatus&&o.push(C),"unbundled"===M.bundlingStatus&&g.push(C)}for(var S=0,B=T?.unbundledIntegrations||[];S<B.length;S++){var U=B[S];g.includes(U)||g.push(U)}var V=null!==(_=T?.maybeBundledConfigIds)&&void 0!==_?_:{},q=[];return o.sort().forEach(function(rt){var G;(null!==(G=V[rt])&&void 0!==G?G:[]).forEach(function(et){q.push(et)})}),!1!==T?.addBundledMetadata&&(E._metadata=(0,t.Cl)((0,t.Cl)({},E._metadata),{bundled:o.sort(),unbundled:g.sort(),bundledIds:q})),E}var R=n(3175),F=n(9759);function x(P,E){return(0,t.sH)(this,void 0,void 0,function(){var T,N=this;return(0,t.YH)(this,function(W){switch(W.label){case 0:return T=[],(0,p.a)()?[2,E]:[4,(0,F._)(function(){return E.length>0&&!(0,p.a)()},function(){return(0,t.sH)(N,void 0,void 0,function(){var _;return(0,t.YH)(this,function(o){switch(o.label){case 0:return(_=E.pop())?[4,(0,R.C)(_,P)]:[2];case 1:return o.sent()instanceof s.o||T.push(_),[2]}})})})];case 1:return W.sent(),T.map(function(_){return E.pushWithBackoff(_)}),[2,E]}})})}function L(P,E,T,N){var W=this;P||setTimeout(function(){return(0,t.sH)(W,void 0,void 0,function(){var _,b;return(0,t.YH)(this,function(f){switch(f.label){case 0:return _=!0,[4,x(T,E)];case 1:return b=f.sent(),_=!1,E.todo>0&&N(_,b,T,N),[2]}})})},500*Math.random()+100)}var z=n(5164),$=function(P){return"Segment.io"===P.name};function Q(P,E,T){var N,W,_,b;window.addEventListener("pagehide",function(){o.push.apply(o,Array.from(g)),g.clear()});var f=null!==(N=E?.apiKey)&&void 0!==N?N:"",o=P.options.disableClientPersistence?new d.M(P.queue.queue.maxAttempts,[]):new v.x(P.queue.queue.maxAttempts,"".concat(f,":dest-Segment.io")),g=new Set,C=new WeakMap,M=!1,S=null!==(W=E?.apiHost)&&void 0!==W?W:z.a,B=null!==(_=E?.protocol)&&void 0!==_?_:"https",U="".concat(B,"://").concat(S),V=null===(b=T?.["Segment.io"])||void 0===b?void 0:b.httpConfig,q=E?.httpConfig,rt=w(q,V);!1!==P.options.retryQueue&&(o.maxAttempts=rt.backoffConfig.maxRetryCount);var G=E?.deliveryStrategy,et=G&&"strategy"in G&&"batching"===G.strategy?function X(P,E,T,N){var W,_;void 0===N&&(N="https");var ut,b=[],f=!1,o=null!==(W=E?.size)&&void 0!==W?W:10,g=null!==(_=E?.timeout)&&void 0!==_?_:5e3,C=T??w(),M=0,S=0,B=!1,U=!1,V=0,q=0,rt=0;function G(tt,nt){var it;if(0!==tt.length){var lt=null===(it=tt[0])||void 0===it?void 0:it.writeKey,at=tt.map(function(pt){return(0,t.Tt)(pt,["sentAt"])}),dt=u(E?.headers);if(nt>
10&&(dt["X-Retry-Count"]=String(nt)),lt){var mt=btoa(lt+":");dt.Authorization="Basic ".concat(mt)}var vt=P.startsWith("http://")||P.startsWith("https://")?"":"".concat(N,"://");return(0,r.h)("".concat(vt).concat(P,"/b"),{credentials:E?.credentials,keepalive:E?.keepalive||f,headers:dt,method:"post",body:JSON.stringify({writeKey:lt,batch:at,sentAt:(new Date).toISOString()}),priority:E?.priority}).then(function(pt){var ht=pt.status;if(!(ht<400)){var gt=m(ht,C.backoffConfig);if("drop"!==gt){var yt=h(pt,C.rateLimitConfig);if(yt)throw new e("Rate limit exceeded: ".concat(ht),yt.retryAfterMs,yt.fromHeader)}if("retry"===gt)throw new Error("Retryable error: ".concat(ht))}})}}function et(){b.length>0&&Z(1)}function ot(tt){var nt;return void 0===tt&&(tt=1),(0,t.sH)(this,void 0,void 0,function(){var it,lt,at,dt;return(0,t.YH)(this,function(mt){return B||(S=0,V=0,q=0,rt=0),B=!1,U=!0,b.length?(it=function k(P){for(var E=[],T=0;T<P.length;T++){var N=P[T],W=(0,t.fX)((0,t.fX)([],E,!0),[N],!1);if(E.length>0&&O(W))return{batch:E,remaining:P.slice(T)};E.push(N)}return{batch:E,remaining:[]}}(b),at=it.remaining,0===(lt=it.batch).length?(U=!1,[2]):(b=at,dt=S,S+=1,[2,null===(nt=G(lt,dt))||void 0===nt?void 0:nt.then(function(vt){return b.length>0&&Z(1),vt}).catch(function(vt){var pt;s.o.system().log("error","Error sending batch",vt);var Ct,gt=null!==(pt=E?.maxRetries)&&void 0!==pt?pt:C.backoffConfig.maxRetryCount,yt="RateLimitError"===vt.name,bt=yt&&vt.isRetryableWithoutCount;if(!(bt||tt<=gt))return et();if(bt){if(++V>C.rateLimitConfig.maxRetryCount)return et();var Et=vt.retryTimeout;if((rt+=Et)>1e3*C.rateLimitConfig.maxRateLimitDuration)return et();M=Et}if(!yt&&(Ct=function I(P,E){var N=1e3*E.maxBackoffInterval,W=1e3*E.baseBackoffInterval*Math.pow(2,P-1),_=Math.min(W,N),b=1+2*(Math.random()-.5)*(E.jitterPercent/100);return Math.max(0,_*b)}(tt,C.backoffConfig),(q+=Ct)>1e3*C.backoffConfig.maxTotalBackoffDuration))return et();b=(0,t.fX)((0,t.fX)([],lt,!0),b,!0),lt.forEach(function(It){"_metadata"in It&&(It._metadata=(0,t.Cl)((0,t.Cl)({},It._metadata),{retryCount:tt}))}),B=!0,Z(bt?tt:tt+1,Ct)}).finally(function(){U=!1})])):(U=!1,[2])})})}function Z(tt,nt){void 0===tt&&(tt=1),ut||(ut=setTimeout(function(){ut=void 0,ot(tt).catch(console.error)},M||nt||g),M=0)}return function(P){var E=!1;window.addEventListener("pagehide",function(){E||P(E=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(E)return;E=!0}else E=!1;P(E)})}(function(tt){if((f=tt)&&b.length){var nt=function D(P){var E=[],T=0;return P.forEach(function(N){j(E[T])>=64&&T++,E[T]?E[T].push(N):E[T]=[N]}),E}(b).map(function(it){return G(it,0)});Promise.all(nt).catch(console.error)}}),{dispatch:function ft(tt,nt,it){return(0,t.sH)(this,void 0,void 0,function(){var lt;return(0,t.YH)(this,function(at){return b.push(nt),B?[2]:(lt=b.length>=o||O(b)||E?.keepalive&&function A(P){return j(P)>=54}(b),lt||f?[2,U?Z():ot()]:[2,Z()])})})}}}(S,G.config,rt,B):function st(P,E){return{dispatch:function T(N,W,_){var b=u(P?.headers),f=W?.writeKey;if(f){var o=btoa(f+":");b.Authorization="Basic ".concat(o)}return _&&(b["X-Retry-Count"]=String(_)),(0,r.h)(N,{credentials:P?.credentials,keepalive:P?.keepalive,headers:b,method:"post",body:JSON.stringify(W),priority:P?.priority}).then(function(g){var C=g.status;if(!(C<400)){var M=E??w(),S=m(C,M.backoffConfig);if("drop"!==S){var B=h(g,M.rateLimitConfig);if(B)throw new e("Rate limit exceeded: ".concat(C),B.retryAfterMs,B.fromHeader)}if("retry"===S)throw new Error("Retryable error: ".concat(C));var U=new Error("Non-retryable error: ".concat(C));throw U.name="NonRetryableError",U}})}}}(G?.config,rt);function ot(Z){return(0,t.sH)(this,void 0,void 0,function(){var ft,tt,nt,it;return(0,t.YH)(this,function(lt){return(0,p.a)()?(o.push(Z),L(M,o,ut,L),[2,Z]):(g.add(Z),ft=Z.event.type.charAt(0),tt=(0,a.W)(Z.event).json(),"track"===Z.event.type&&delete tt.traits,"alias"===Z.event.type&&(tt=function J(P,E){var T,N,W,_,b=P.user();return E.previousId=null!==(W=null!==(N=null!==(T=E.previousId)&&void 0!==T?T:E.from)&&void 0!==N?N:b.id())&&void 0!==W?W:b.anonymousId(),E.userId=null!==(_=E.userId)&&void 0!==_?_:E.to,delete E.from,delete E.to,E}(P,tt)),(nt=o.getAttempts(Z))>=o.maxAttempts?(g.delete(Z),it=new Error("Retry attempts exhausted (".concat(nt,"/").concat(o.maxAttempts,")")),Z.setFailedDelivery({reason:it}),P.emit("error",{code:"delivery_failure",reason:it,ctx:Z}
vendor: 17,299 bytes, line 1
1),[2,Z]):[2,et.dispatch("".concat(U,"/").concat(ft),ct(P,tt,E,T,Z),nt).then(function(){return Z}).catch(function(at){var dt;if(Z.log("error","Error sending event",at),"RateLimitError"===at.name){var mt=(null!==(dt=C.get(Z))&&void 0!==dt?dt:0)+1;C.set(Z,mt),mt>rt.rateLimitConfig.maxRetryCount?(Z.setFailedDelivery({reason:at}),P.emit("error",{code:"delivery_failure",reason:at,ctx:Z})):o.pushWithDelay(Z,at.retryTimeout)}else"NonRetryableError"===at.name?(Z.setFailedDelivery({reason:at}),P.emit("error",{code:"delivery_failure",reason:at,ctx:Z})):o.pushWithBackoff(Z);return L(M,o,ut,L),Z}).finally(function(){g.delete(Z)})])})})}var ut={metadata:{writeKey:f,apiHost:S,protocol:B},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:ot,identify:ot,page:ot,alias:ot,group:ot,screen:ot};return o.todo&&L(M,o,ut,L),ut}},5609(H,y,n){"use strict";var t=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(y,"__esModule",{value:!0});var p=t(n(1172));function d(a,r){return function(){var c=this.traits(),e=this.properties?this.properties():{};return p.default(c,"address."+a)||p.default(c,a)||(r?p.default(c,"address."+r):null)||(r?p.default(c,r):null)||p.default(e,"address."+a)||p.default(e,a)||(r?p.default(e,"address."+r):null)||(r?p.default(e,r):null)}}y.default=function v(a){a.zip=d("postalCode","zip"),a.country=d("country"),a.street=d("street"),a.state=d("state"),a.city=d("city"),a.region=d("region")}},5877(H,y,n){"use strict";var t=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(y,"__esModule",{value:!0}),y.Alias=void 0;var p=t(n(1993)),d=n(3559);function v(a,r){d.Facade.call(this,a,r)}y.Alias=v,p.default(v,d.Facade),v.prototype.type=v.prototype.action=function(){return"alias"},v.prototype.from=v.prototype.previousId=function(){return this.field("previousId")||this.field("from")},v.prototype.to=v.prototype.userId=function(){return this.field("userId")||this.field("to")}},5920(H,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0}),y.clone=void 0,y.clone=function n(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var p={};for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(p[d]=n(t[d]));return p}return Array.isArray(t)?t.map(n):t}},682(H,y,n){"use strict";var t=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(y,"__esModule",{value:!0}),y.Delete=void 0;var p=t(n(1993)),d=n(3559);function v(a,r){d.Facade.call(this,a,r)}y.Delete=v,p.default(v,d.Facade),v.prototype.type=function(){return"delete"}},3559(H,y,n){"use strict";var t=this&&this.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(y,"__esModule",{value:!0}),y.Facade=void 0;var p=t(n(5609)),d=n(5920),v=t(n(3529)),a=t(n(9549)),r=t(n(1172)),c=t(n(5752));function e(i,l){l=l||{},this.raw=d.clone(i),"clone"in l||(l.clone=!0),l.clone&&(i=d.clone(i)),"traverse"in l||(l.traverse=!0),i.timestamp="timestamp"in i?a.default(i.timestamp):new Date,l.traverse&&c.default(i),this.opts=l,this.obj=i}y.Facade=e;var s=e.prototype;function u(i){return d.clone(i)}s.proxy=function(i){var l=i.split("."),h=this[i=l.shift()]||this.obj[i];return h&&("function"==typeof h&&(h=h.call(this)||{}),0===l.length||(h=r.default(h,l.join("."))),this.opts.clone?u(h):h)},s.field=function(i){var l=this.obj[i];return this.opts.clone?u(l):l},e.proxy=function(i){return function(){return this.proxy(i)}},e.field=function(i){return function(){return this.field(i)}},e.multi=function(i){return function(){var l=this.proxy(i+"s");if(Array.isArray(l))return l;var h=this.proxy(i);return h&&(h=[this.opts.clone?d.clone(h):h]),h||[]}},e.one=function(i){return function(){var l=this.proxy(i);if(l)return l;var h=this.proxy(i+"s");return Array.isArray(h)?h[0]:void 0}},s.json=function(){var i=this.opts.clone?d.clone(this.obj):this.obj;return this.type&&(i.type=this.type()),i},s.rawEvent=function(){return this.raw},s.options=function(i){var l=this.obj.options||this.obj.context||{},h=this.opts.clone?d.clone(l):l;if(!i)return h;if(this.enabled(i)){var m=this.integrations(),I=m[i]||r.default(m,i);return"object"!=typeof I&&(I=r.default(this.options(),i)),"object"==typeof I?I:{}}},s.context=s.options,s.enabled=function(i){var l=this.proxy("options.providers.all");"boolean"!=typeof l&&(l=this.proxy("options.all")),"boolean"!=typeof l&&(l=this.proxy("integrations.all")),"boolean"!=typeof l&&(l=!0);var h=l&&v.default(i),m=this.integrations();if(m.providers&&m.providers.hasOwnProperty(i)&&(h=m.providers[i]),m.hasOwnProperty(i)){var I=m[i];h="boolean"!=typeof I||I}return!!h},s.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},s.active=function(){var i=this.proxy("options.active");return null==i&&(i=!0),i},s.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},s.sessionId=s.anonymousId,s.groupId=e.proxy("options.groupId"),s.traits=function(i){var l=this.proxy("options.traits")||{},h=this.userId();for(var m in i=i||{},h&&(l.id=h),i)if(Object.prototype.hasOwnProperty.call(i,m)){var I=null==this[m]?this.proxy("options.traits."+m):this[m]();if(null==I)continue;l[i[m]]=I,delete l[m]}return l},s.library=function(){var i=this.proxy("options.library");return i?"string"==typeof i?{name:i,version:null}:i:{name:"unknown",version:null}},s.device=function(){var i=this.proxy("context.device");("object"!=typeof i||null===i)&&(i={});var l=this.library().name;return i.type||(l.indexOf("ios")>-1&&(i.type="ios"),l.indexOf("android")>-1&&(i.type="android")),i},s.userAgent=e.proxy("context.userAgent"),s.timezone=e.proxy("context.timezone"),s.timestamp=e.field("timestamp"),s.channel=e.field("channel"),s.ip=e.proxy("context.ip"),s.userId=e.field("userId"),p.default(s)},4146(H,y,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(y,"__esModule",{value:!0}),y.Group=void 0;var p=t(n(1993)),d=t(n(1444)),v=t(n(9549)),a=n(3559);function r(e,s){a.Facade.call(this,e,s)}y.Group=r,p.default(r,a.Facade);var c=r.prototype;c.action=function(){return"group"},c.type=c.action,c.groupId=a.Facade.field("groupId"),c.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return v.default(e)},c.email=function(){var e=this.proxy("traits.email");if(e)return e;var s=this.groupId();return d.default(s)?s:void 0},c.traits=function(e){var s=this.properties(),u=this.groupId();for(var i in e=e||{},u&&(s.id=u),e)if(Object.prototype.hasOwnProperty.call(e,i)){var l=null==this[i]?this.proxy("traits."+i):this[i]();if(null==l)continue;s[e[i]]=l,delete s[i]}return s},c.name=a.Facade.proxy("traits.name"),c.industry=a.Facade.proxy("traits.industry"),c.employees=a.Facade.proxy("traits.employees"),c.properties=function(){return this.field("traits")||this.field("properties")||{}}},8573(H,y,n){"use strict";var t=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(y,"__esModule",{value:!0}),y.Identify=void 0;var p=n(3559),d=t(n(1172)),v=t(n(1993)),a=t(n(1444)),r=t(n(9549)),c=function(u){return u.trim()};function e(u,i){p.Facade.call(this,u,i)}y.Identify=e,v.default(e,p.Facade);var s=e.prototype;s.action=function(){return"identify"},s.type=s.action,s.traits=function(u){var i=this.field("traits")||{},l=this.userId();for(var h in u=u||{},l&&(i.id=l),u){var m=null==this[h]?this.proxy("traits."+h):this[h]();null!=m&&(i[u[h]]=m,h!==u[h]&&delete i[h])}return i},s.email=function(){var u=this.proxy("traits.email");if(u)return u;var i=this.userId();return a.default(i)?i:void 0},s.created=function(){var u=this.proxy("traits.created")||this.proxy("traits.createdAt");if(u)return r.default(u)},s.companyCreated=function(){var u=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(u)return r.default(u)},s.companyName=function(){return this.proxy("traits.company.name")},s.name=function(){var u=this.proxy("traits.name");if("string"==typeof u)return c(u);var i=this.firstName(),l=this.lastName();return i&&l?c(i+" "+l):void 0},s.firstName=function(){var u=this.proxy("traits.firstName");if("string"==typeof u)return c(u);var i=this.proxy("traits.name");return"string"==typeof i?c(i).split(" ")[0]:void 0},s.lastName=function(){var u=this.proxy("traits.lastName");if("string"==typeof u)return c(u);var i=this.proxy("traits.name");if("string"==typeof i){var l=c(i).indexOf(" ");if(-1!==l)return c(i.substr(l+1))}},s.uid=function(){return this.userId()||this.username()||this.email()},s.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},s.age=function(){var u=this.birthday(),i=d.default(this.traits(),"age");return null!=i?i:u instanceof Date?(new Date).getFullYear()-u.getFullYear():void 0},s.avatar=function(){var u=this.traits();return d.default(u,"avatar")||d.default(u,"photoUrl")||d.default(u,"avatarUrl")},s.position=function(){var u=this.traits();return d.default(u,"position")||d.default(u,"jobTitle")},s.username=p.Facade.proxy("traits.username"),s.website=p.Facade.one("traits.website"),s.websites=p.Facade.multi("traits.website"),s.phone=p.Facade.one("traits.phone"),s.phones=p.Facade.multi("traits.phone"),s.address=p.Facade.proxy("traits.address"),s.gender=p.Facade.proxy("traits.gender"),s.birthday=p.Facade.proxy("traits.birthday")},2717(H,y,n){"use strict";var t=this&&this.__assign||function(){return t=Object.assign||function(u){for(var i,l=1,h=arguments.length;l<h;l++)for(var m in i=arguments[l])Object.prototype.hasOwnProperty.call(i,m)&&(u[m]=i[m]);return u},t.apply(this,arguments)};Object.defineProperty(y,"__esModule",{value:!0}),y.Delete=y.Screen=y.Page=y.Track=y.Identify=y.Group=y.Alias=y.Facade=void 0;var p=n(3559);Object.defineProperty(y,"Facade",{enumerable:!0,get:function(){return p.Facade}});var d=n(5877);Object.defineProperty(y,"Alias",{enumerable:!0,get:function(){return d.Alias}});var v=n(4146);Object.defineProperty(y,"Group",{enumerable:!0,get:function(){return v.Group}});var a=n(8573);Object.defineProperty(y,"Identify",{enumerable:!0,get:function(){return a.Identify}});var r=n(1014);Object.defineProperty(y,"Track",{enumerable:!0,get:function(){return r.Track}});var c=n(574);Object.defineProperty(y,"Page",{enumerable:!0,get:function(){return c.Page}});var e=n(6053);Object.defineProperty(y,"Screen",{enumerable:!0,get:function(){return e.Screen}});var s=n(682);Object.defineProperty(y,"Delete",{enumerable:!0,get:function(){return s.Delete}}),y.default=t(t({},p.Facade),{Alias:d.Alias,Group:v.Group,Identify:a.Identify,Track:r.Track,Page:c.Page,Screen:e.Screen,Delete:s.Delete})},1444(H,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var n=/.+\@.+\..+/;y.default=function t(p){return n.test(p)}},3529(H,y){"use strict";Object.defineProperty(y,"__esModule",{value:!0});var n={Salesforce:!0};y.default=function t(p){return!n[p]}},574(H,y,n){"use strict";var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(y,"__esModule",{value:!0}),y.Page=void 0;var p=t(n(1993)),d=n(3559),v=n(1014),a=t(n(1444));function r(e,s){d.Facade.call(this,e,s)}y.Page=r,p.default(r,d.Facade);var c=r.prototype;c.action=function(){return"page"},c.type=c.action,c.category=d.Facade.field("category"),c.name=d.Facade.field("name"),c.title=d.Facade.proxy("properties.title"),c.path=d.Facade.proxy("properties.path"),c.url=d.Facade.proxy("properties.url"),c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.properties=function(e){var s=this.field("properties")||{},u=this.category(),i=this.name();for(var l in e=e||{},u&&(s.category=u),i&&(s.name=i),e)if(Object.prototype.hasOwnProperty.call(e,l)){var h=null==this[l]?this.proxy("properties."+l):this[l]();if(null==h)continue;s[e[l]]=h,l!==e[l]&&delete s[l]}return s},c.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var s=this.userId();return a.default(s)?s:void 0},c.fullName=function(){var e=this.category(),s=this.name();return s&&e?e+" "+s:s},c.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},c.track=function(e){var s=this.json();return s.event=this.event(e),s.timestamp=this.timestamp(),s.properties=this.properties(),new v.Track(s,this.opts)}},6053(H,y,n){"use strict";var t=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(y,"__esModule",{value:!0}),y.Screen=void 0;var p=t(n(1993)),d=n(574),v=n(1014);function a(r,c){d.Page.call(this,r,c)}y.Screen=a,p.default(a,d.Page),a.prototype.type=a.prototype.action=function(){return"screen"},a.prototype.event=function(r){return r?"Viewed "+r+" Screen":"Loaded a Screen"},a.prototype.track=function(r){var c=this.json();return c.event=this.event(r),c.timestamp=this.timestamp(),c.properties=this.properties(),new v.Track(c,this.opts)}},1014(H,y,n){"use strict";var t=this&&this.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(y,"__esModule",{value:!0}),y.Track=void 0;var p=t(n(1993)),d=n(3559),v=n(8573),a=t(n(1444)),r=t(n(1172));function c(u,i){d.Facade.call(this,u,i)}y.Track=c,p.default(c,d.Facade);var e=c.prototype;e.action=function(){return"track"},e.type=e.action,e.event=d.Facade.field("event"),e.value=d.Facade.proxy("properties.value"),e.category=d.Facade.proxy("properties.category"),e.id=d.Facade.proxy("properties.id"),e.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},e.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},e.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},e.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},e.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},e.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},e.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},e.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},e.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},e.sku=d.Facade.proxy("properties.sku"),e.tax=d.Facade.proxy("properties.tax"),e.name=d.Facade.proxy("properties.name"),e.price=d.Facade.proxy("properties.price"),e.total=d.Facade.proxy("properties.total"),e.repeat=d.Facade.proxy("properties.repeat"),e.coupon=d.Facade.proxy("properties.coupon"),e.shipping=d.Facade.proxy("properties.shipping"),e.discount=d.Facade.proxy("properties.discount"),e.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},e.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},e.description=d.Facade.proxy("properties.description"),e.plan=d.Facade.proxy("properties.plan"),e.subtotal=function(){var u=r.default(this.properties(),"subtotal"),i=this.total()||this.revenue();if(u)return u;if(!i)return 0;if(this.total()){var l=this.tax();l&&(i-=l),(l=this.shipping())&&(i-=l),(l=this.discount())&&(i+=l)}return i},e.products=function(){var u=this.properties(),i=r.default(u,"products");return Array.isArray(i)?i.filter(function(l){return null!==l}):[]},e.quantity=function(){return(this.obj.properties||{}).quantity||1},e.currency=function(){return(this.obj.properties||{}).currency||"USD"},e.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},e.query=d.Facade.proxy("options.query"),e.properties=function(u){var i=this.field("properties")||{};for(var l in u=u||{})if(Object.prototype.hasOwnProperty.call(u,l)){var h=null==this[l]?this.proxy("properties."+l):this[l]();if(null==h)continue;i[u[l]]=h,delete i[l]}return i},e.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},e.email=function(){var u=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(u)return u;var i=this.userId();return a.default(i)?i:void 0},e.revenue=function(){var u=this.proxy("properties.revenue"),i=this.event();return!u&&i&&i.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(u=this.proxy("properties.total")),function s(u){if(u){if("number"==typeof u)return u;if("string"==typeof u&&(u=u.replace(/\$/g,""),u=parseFloat(u),!isNaN(u)))return u}}(u)},e.cents=function(){var u=this.revenue();return"number"!=typeof u?this.value()||0:100*u},e.identify=function(){var u=this.json();return u.traits=this.traits(),new v.Identify(u,this.opts)}},5752(H,y,n){"use strict";var t=n(6939);H.exports=function p(a,r){return void 0===r&&(r=!0),a&&"object"==typeof a?function d(a,r){return Object.keys(a).forEac
1h(function(c){a[c]=p(a[c],r)}),a}(a,r):Array.isArray(a)?function v(a,r){return a.forEach(function(c,e){a[e]=p(c,r)}),a}(a,r):t.is(a,r)?t.parse(a):a}},6939(H,y){"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;y.parse=function(t){var p=[1,5,6,7,11,12],d=n.exec(t),v=0;if(!d)return new Date(t);for(var r,a=0;r=p[a];a++)d[r]=parseInt(d[r],10)||0;d[2]=parseInt(d[2],10)||1,d[3]=parseInt(d[3],10)||1,d[2]--,d[8]=d[8]?(d[8]+"00").substring(0,3):0," "===d[4]?v=(new Date).getTimezoneOffset():"Z"!==d[9]&&d[10]&&(v=60*d[11]+d[12],"+"===d[10]&&(v=0-v));var c=Date.UTC(d[1],d[2],d[3],d[5],d[6]+v,d[7],d[8]);return new Date(c)},y.is=function(t,p){return!("string"!=typeof t||p&&!1===/^\d{4}-\d{2}-\d{2}/.test(t))&&n.test(t)}},1993(H){H.exports="function"==typeof Object.create?function(n,t){t&&(n.super_=t,n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:function(n,t){if(t){n.super_=t;var p=function(){};p.prototype=t.prototype,n.prototype=new p,n.prototype.constructor=n}}},9549(H,y,n){"use strict";var t=n(6939),p=n(3159),d=n(8688),a=Object.prototype.toString;H.exports=function(u){return function r(s){return"[object Date]"===a.call(s)}(u)?u:function c(s){return"[object Number]"===a.call(s)}(u)?new Date(function e(s){return s<315576e5?1e3*s:s}(u)):t.is(u)?t.parse(u):p.is(u)?p.parse(u):d.is(u)?d.parse(u):new Date(u)}},3159(H,y){"use strict";var n=/\d{13}/;y.is=function(t){return n.test(t)},y.parse=function(t){return t=parseInt(t,10),new Date(t)}},8688(H,y){"use strict";var n=/\d{10}/;y.is=function(t){return n.test(t)},y.parse=function(t){var p=1e3*parseInt(t,10);return new Date(p)}},1172(H){function n(r){return function(c,e,s,u){var i=u&&function a(r){return"function"==typeof r}
1(u.normalizer)?u.normalizer:v;e=i(e);for(var l,h=!1;!h;)m();function m(){for(l in c){var I=i(l);if(0===e.indexOf(I)){var w=e.substr(I.length);if("."===w.charAt(0)||0===w.length){e=w.substr(1);var K=c[l];return null==K?void(h=!0):e.length?void(c=K):void(h=!0)}}}l=void 0,h=!0}if(l)return null==c?c:r(c,l,s)}}function p(r,c){return r.hasOwnProperty(c)&&delete r[c],r}function d(r,c,e){return r.hasOwnProperty(c)&&(r[c]=e),r}function v(r){return r.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}H.exports=n(function t(r,c){if(r.hasOwnProperty(c))return r[c]}),H.exports.find=H.exports,H.exports.replace=function(r,c,e,s){return n(d).call(this,r,c,e,s),r},H.exports.del=function(r,c,e){return n(p).call(this,r,c,null,e),r}},943(H,y,n){"use strict";n.d(y,{v4:()=>v});for(var d,t=256,p=[];t--;)p[t]=(t+256).toString(16).substring(1);function v(){var r,a=0,c="";if(!d||t+16>256){for(d=Array(a=256);a--;)d[a]=256*Math.random()|0;a=t=0}for(;a<16;a++)r=d[t+a],c+=6==a?p[15&r|64]:8==a?p[63&r|128]:p[r],1&a&&a>1&&a<11&&(c+="-");return t++,c}},7593(H,y,n){"use strict";n.d(y,{Lj:()=>s,Up:()=>a,eJ:()=>i,pV:()=>u});var d=function(l,h,m,I,w,K){return{__t:"bpc",c:h,p:I,u:l,s:m,t:w,r:K}},v=Object.keys(d("","","","","",""));function a(l){if(!function t(l){return"object"===Object.prototype.toString.call(l).slice(8,-1).toLowerCase()}(l)||"bpc"!==l.__t)return!1;for(var h in l)if(!v.includes(h))return!1;return!0}var s=function(l){var h=l.c,m=l.p,I=l.s,w=l.u,K=l.r,Y=l.t,j=h?function(l){try{return new URL(l).pathname}catch{return"/"===l[0]?l:"/"+l}}(h):m,O=h?function(l,h){return l.indexOf("?")>-1?l:l+h}(h,I):function(l){var h=l.indexOf("#");return-1===h?l:l.slice(0,h)}(w);return{path:j,referrer:K,search:I,title:Y,url:O}},u=function(){var l=document.querySelector("link[rel='canonical']");return d(location.href,l&&l.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},i=function(){return s(u())}},1471(H,y,n){"use strict";function t(p,d,v){d.split&&(d=d.split("."));for(var e,s,a=0,r=d.length,c=p;a<r&&"__proto__"!=(s=""+d[a++])&&"constructor"!==s&&"prototype"!==s;)c=c[s]=a===r?v:typeof(e=c[s])==typeof d?e:0*d[a]!=0||~(""+d[a]).indexOf(".")?{}:[]}n.d(y,{J:()=>t})},2706(H,y,n){"use strict";function t(r){for(var c=1;c<arguments.length;c++){var e=arguments[c];for(var s in e)r[s]=e[s]}return r}n.d(y,{A:()=>a});var v=function d(r,c){function e(u,i,l){if(!(typeof document>"u")){"number"==typeof(l=t({},c,l)).expires&&(l.expires=new Date(Date.now()+864e5*l.expires)),l.expires&&(l.expires=l.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var m in l)l[m]&&(h+="; "+m,!0!==l[m]&&(h+="="+l[m].split(";")[0]));return document.cookie=u+"="+r.write(i,u)+h}}return Object.create({set:e,get:function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var i=document.cookie?document.cookie.split("; "):[],l={},h=0;h<i.length;h++){var m=i[h].split("="),I=m.slice(1).join("=");try{var w=decodeURIComponent(m[0]);if(l[w]=r.read(I,w),u===w)break}catch{}}return u?l[u]:l}},remove:function(u,i){e(u,"",t({},i,{expires:-1}))},withAttributes:function(u){return d(this.converter,t({},this.attributes,u))},withConverter:function(u){return d(t({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(c)},converter:{value:Object.freeze(r)}})}({read:function(r){return'"'===r[0]&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const a=v}}]);

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.