const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/auto-track-BHt9IJEy.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/global-CQnh3EWC.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/global.css?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/preload-helper-PPVm8Dsz.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/index-OMZtmPj1.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/index-BrszDvMX.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/index-qpewru2T.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/is-plan-event-enabled-DeNtQvA5.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/index-C2JwK1mb.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/index-C8bQxNsh.js?v=95533672593",window._entreForms + "/forms/entreleadership/entreleadership-marketing-forms/assets/index-dTrVk6bs.js?v=95533672593"])))=>i.map(i=>d[i]); import{_ as Ir,D as Or,e as vt,f as Pr,b as ht,j as Ar,w as xr,k as kr,o as Cr,l as ve,v as Mr,t as Dr,x as Fr,g as Tr}from"./global-CQnh3EWC.js?v=95533672593";import{_ as D}from"./preload-helper-PPVm8Dsz.js?v=95533672593";import{F as jr,_ as Rr}from"./index-OMZtmPj1.js?v=95533672593";var ze=function(n,e){return ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},ze(n,e)};function M(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ze(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var h=function(){return h=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0&&o[o.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},n.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},n.prototype.once=function(e,t){var r=this,i=function(){for(var o=[],u=0;ut.maxAttempts||t.includes(u)?!1:(t.queue.push(u),!0)});return this.queue=this.queue.sort(function(u,a){return t.getAttempts(u)-t.getAttempts(a)}),o},e.prototype.pushWithBackoff=function(t,r){var i=this;if(r===void 0&&(r=0),r==0&&this.getAttempts(t)===0)return this.push(t)[0];var o=this.updateAttempts(t);if(o>this.maxAttempts||this.includes(t))return!1;var u=Zr({attempt:o-1});return r>0&&u256){for(he=Array(n=256);n--;)he[n]=256*Math.random()|0;n=Z=0}for(;n<16;n++)e=he[Z+n],n==6?t+=Oe[e&15|64]:n==8?t+=Oe[e&63|128]:t+=Oe[e],n&1&&n>1&&n<11&&(t+="-");return Z++,t}var Yr=(function(){function n(){this._logs=[]}return n.prototype.log=function(e,t,r){var i=new Date;this._logs.push({level:e,message:t,time:i,extras:r})},Object.defineProperty(n.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),n.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(t,r){var i,o,u,a=h(h({},r),{json:JSON.stringify(r.extras,null," "),extras:r.extras});delete a.time;var c=(u=(o=r.time)===null||o===void 0?void 0:o.toISOString())!==null&&u!==void 0?u:"";return t[c]&&(c="".concat(c,"-").concat(Math.random())),h(h({},t),(i={},i[c]=a,i))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(t){var r=t.level,i=t.message,o=t.extras;r==="info"||r==="debug"?console.log(i,o??""):console[r](i,o??"")});this._logs=[]},n})(),en=function(n){var e={gauge:"g",counter:"c"};return e[n]},Wt=(function(){function n(){this.metrics=[]}return n.prototype.increment=function(e,t,r){t===void 0&&(t=1),this.metrics.push({metric:e,value:t,tags:r??[],type:"counter",timestamp:Date.now()})},n.prototype.gauge=function(e,t,r){this.metrics.push({metric:e,value:t,tags:r??[],type:"gauge",timestamp:Date.now()})},n.prototype.flush=function(){var e=this.metrics.map(function(t){return h(h({},t),{tags:t.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},n.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:en(e.type),e:e.timestamp}})},n})(),tn=(function(n){M(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.gauge=function(){},e.prototype.increment=function(){},e.prototype.flush=function(){},e.prototype.serialize=function(){return[]},e})(Wt),se=(function(){function n(e){var t,r,i;this.retry=(t=e.retry)!==null&&t!==void 0?t:!0,this.type=(r=e.type)!==null&&r!==void 0?r:"plugin Error",this.reason=(i=e.reason)!==null&&i!==void 0?i:""}return n})(),Ae=(function(){function n(e,t,r,i){t===void 0&&(t=et()),r===void 0&&(r=new tn),i===void 0&&(i=new Yr),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=r}return n.system=function(){},n.prototype.isSame=function(e){return e.id===this.id},n.prototype.cancel=function(e){throw e||new se({reason:"Context Cancel"})},n.prototype.log=function(e,t,r){this.logger.log(e,t,r)},Object.defineProperty(n.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),n.prototype.updateEvent=function(e,t){var r;if(e.split(".")[0]==="integrations"){var i=e.split(".")[1];if(((r=this.event.integrations)===null||r===void 0?void 0:r[i])===!1)return this.event}return Ve(this.event,e,t),this.event},n.prototype.failedDelivery=function(){return this._failedDelivery},n.prototype.setFailedDelivery=function(e){this._failedDelivery=e},n.prototype.logs=function(){return this.logger.logs},n.prototype.flush=function(){this.logger.flush(),this.stats.flush()},n.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},n})();function rn(n,e){var t={};return n.forEach(function(r){var i,o=void 0;{var u=r[e];o=typeof u!="string"?JSON.stringify(u):u}o!==void 0&&(t[o]=P(P([],(i=t[o])!==null&&i!==void 0?i:[],!0),[r],!1))}),t}var nn=function(n){return typeof n=="object"&&n!==null&&"then"in n&&typeof n.then=="function"},on=function(){var n,e,t=0;return{done:function(){return n},run:function(r){var i=r();return nn(i)&&(++t===1&&(n=new Promise(function(o){return e=o})),i.finally(function(){return--t===0&&e()})),i}}};function an(n){return y(this,void 0,void 0,function(){var e;return m(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n()];case 1:return[2,t.sent()];case 2:return e=t.sent(),[2,Promise.reject(e)];case 3:return[2]}})})}function de(n,e){n.log("debug","plugin",{plugin:e.name});var t=new Date().getTime(),r=e[n.event.type];if(r===void 0)return Promise.resolve(n);var i=an(function(){return r.apply(e,[n])}).then(function(o){var u=new Date().getTime()-t;return o.stats.gauge("plugin_time",u,["plugin:".concat(e.name)]),o}).catch(function(o){if(o instanceof se&&o.type==="middleware_cancellation")throw o;return o instanceof se?(n.log("warn",o.type,{plugin:e.name,error:o}),o):(n.log("error","plugin Error",{plugin:e.name,error:o}),n.stats.increment("plugin_error",1,["plugin:".concat(e.name)]),o)});return i}function un(n,e){return de(n,e).then(function(t){if(t instanceof Ae)return t;n.log("debug","Context canceled"),n.stats.increment("context_canceled"),n.cancel(t)})}var sn=(function(n){M(e,n);function e(t){var r=n.call(this)||this;return r.criticalTasks=on(),r.plugins=[],r.failedInitializations=[],r.flushing=!1,r.queue=t,r.queue.on(Jt,function(){r.scheduleFlush(0)}),r}return e.prototype.register=function(t,r,i){return y(this,void 0,void 0,function(){var o,u,a=this;return m(this,function(c){switch(c.label){case 0:return this.plugins.push(r),o=function(s){a.failedInitializations.push(r.name),a.emit("initialization_failure",r),console.warn(r.name,s),t.log("warn","Failed to load destination",{plugin:r.name,error:s}),a.plugins=a.plugins.filter(function(l){return l!==r})},r.type==="destination"&&r.name!=="Segment.io"?(r.load(t,i).catch(o),[3,4]):[3,1];case 1:return c.trys.push([1,3,,4]),[4,r.load(t,i)];case 2:return c.sent(),[3,4];case 3:return u=c.sent(),o(u),[3,4];case 4:return[2]}})})},e.prototype.deregister=function(t,r,i){return y(this,void 0,void 0,function(){var o;return m(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),r.unload?[4,Promise.resolve(r.unload(t,i))]:[3,2];case 1:u.sent(),u.label=2;case 2:return this.plugins=this.plugins.filter(function(a){return a.name!==r.name}),[3,4];case 3:return o=u.sent(),t.log("warn","Failed to unload destination",{plugin:r.name,error:o}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(t){return y(this,void 0,void 0,function(){var r;return m(this,function(i){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.push(t),r=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,r]})})},e.prototype.subscribeToDelivery=function(t){return y(this,void 0,void 0,function(){var r=this;return m(this,function(i){return[2,new Promise(function(o){var u=function(a,c){a.isSame(t)&&(r.off("flush",u),o(a))};r.on("flush",u)})]})})},e.prototype.dispatchSingle=function(t){return y(this,void 0,void 0,function(){var r=this;return m(this,function(i){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch(function(o){var u=r.enqueuRetry(o,t);return u?r.subscribeToDelivery(t):(t.setFailedDelivery({reason:o}),t)})]})})},e.prototype.isEmpty=function(){return this.queue.length===0},e.prototype.scheduleFlush=function(t){var r=this;t===void 0&&(t=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){r.flush().then(function(){setTimeout(function(){r.flushing=!1,r.queue.length&&r.scheduleFlush(0)},0)})},t))},e.prototype.deliver=function(t){return y(this,void 0,void 0,function(){var r,i,o,u;return m(this,function(a){switch(a.label){case 0:return[4,this.criticalTasks.done()];case 1:a.sent(),r=Date.now(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:return t=a.sent(),i=Date.now()-r,this.emit("delivery_success",t),t.stats.gauge("delivered",i),t.log("debug","Delivered",t.event),[2,t];case 4:throw o=a.sent(),u=o,t.log("error","Failed to deliver",u),this.emit("delivery_failure",t,u),t.stats.increment("delivery_failed"),o;case 5:return[2]}})})},e.prototype.enqueuRetry=function(t,r){var i=!(t instanceof se)||t.retry;return i?this.queue.pushWithBackoff(r):!1},e.prototype.flush=function(){return y(this,void 0,void 0,function(){var t,r,i;return m(this,function(o){switch(o.label){case 0:if(this.queue.length===0)return[2,[]];if(t=this.queue.pop(),!t)return[2,[]];t.attempts=this.queue.getAttempts(t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=o.sent(),this.emit("flush",t,!0),[3,4];case 3:return r=o.sent(),i=this.enqueuRetry(r,t),i||(t.setFailedDelivery({reason:r}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var r=this.plugins.filter(function(p){var v,g,w;if(p.type!=="destination"&&p.name!=="Segment.io")return!0;var _=void 0;return(v=p.alternativeNames)===null||v===void 0||v.forEach(function(b){t[b]!==void 0&&(_=t[b])}),(w=(g=t[p.name])!==null&&g!==void 0?g:_)!==null&&w!==void 0?w:(p.name==="Segment.io"?!0:t.All)!==!1}),i=rn(r,"type"),o=i.before,u=o===void 0?[]:o,a=i.enrichment,c=a===void 0?[]:a,s=i.destination,l=s===void 0?[]:s,f=i.after,d=f===void 0?[]:f;return{before:u,enrichment:c,destinations:l,after:d}},e.prototype.flushOne=function(t){var r,i;return y(this,void 0,void 0,function(){var o,u,a,c,s,l,v,f,d,p,v,g,w,_,b;return m(this,function(E){switch(E.label){case 0:if(!this.isReady())throw new Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),o=this.availableExtensions((r=t.event.integrations)!==null&&r!==void 0?r:{}),u=o.before,a=o.enrichment,c=0,s=u,E.label=1;case 1:return c0){var c=!1,s=function(){c||(c=!0,t.flush().catch(Te),c=!1,setTimeout(s,t.flushTimer))};s()}}return n.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&t.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var r=hn(e,t);this.queue.push(r),e.includes("error")&&this.flush().catch(Te)}},n.prototype.flush=function(){return y(this,void 0,void 0,function(){var e=this;return m(this,function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(r){Te(r),e.sampleRate=0})];case 1:return t.sent(),[2]}})})},n.prototype.send=function(){return y(this,void 0,void 0,function(){var e,t,r;return m(this,function(i){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},r="".concat(this.protocol,"://").concat(this.host,"/m"),[2,ke(r,{headers:t,body:JSON.stringify(e),method:"POST"})]})})},n})(),ye,Ht=(function(n){M(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.initRemoteMetrics=function(t){ye=new yn(t)},e.prototype.increment=function(t,r,i){n.prototype.increment.call(this,t,r,i),ye?.increment(t,i??[])},e})(Wt),L=(function(n){M(e,n);function e(t,r){return n.call(this,t,r,new Ht)||this}return e.system=function(){return new this({type:"track",event:"system"})},e})(Ae);function mn(n){return Object.prototype.toString.call(n).slice(8,-1).toLowerCase()==="object"}var $t="bpc",Xt=function(n,e,t,r,i,o){return{__t:$t,c:e,p:r,u:n,s:t,t:i,r:o}},gn=Object.keys(Xt("","","","","",""));function bn(n){if(!mn(n)||n.__t!==$t)return!1;for(var e in n)if(!gn.includes(e))return!1;return!0}var _n=function(n,e){return n.indexOf("?")>-1?n:n+e},wn=function(n){var e=n.indexOf("#");return e===-1?n:n.slice(0,e)},En=function(n){try{return new URL(n).pathname}catch{return n[0]==="/"?n:"/"+n}},Zt=function(n){var e=n.c,t=n.p,r=n.s,i=n.u,o=n.r,u=n.t,a=e?En(e):t,c=e?_n(e,r):wn(i);return{path:a,referrer:o,search:r,title:u,url:c}},Yt=function(){var n=document.querySelector("link[rel='canonical']");return Xt(location.href,n&&n.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},Sn=function(){return Zt(Yt())};function In(n,e){return Object.assign.apply(Object,P([{}],e.map(function(t){var r;if(n&&Object.prototype.hasOwnProperty.call(n,t))return r={},r[t]=n[t],r}),!1))}var ne=function(n,e){e===void 0&&(e=Sn());var t=n.context,r;n.type==="page"&&(r=n.properties&&In(n.properties,Object.keys(e)),n.properties=h(h(h({},e),n.properties),n.name?{name:n.name}:{})),t.page=h(h(h({},e),r),t.page)},On=(function(n){M(e,n);function e(t){var r=n.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat(et())},onEventMethodCall:function(i){var o=i.options;r.maybeUpdateAnonId(o)},onFinishedEvent:function(i){return r.addIdentity(i),i}})||this;return r.user=t,r}return e.prototype.maybeUpdateAnonId=function(t){t?.anonymousId&&this.user.anonymousId(t.anonymousId)},e.prototype.addIdentity=function(t){this.user.id()&&(t.userId=this.user.id()),this.user.anonymousId()&&(t.anonymousId=this.user.anonymousId())},e.prototype.track=function(t,r,i,o,u){var a=n.prototype.track.call(this,t,r,i,o);return ne(a,u),a},e.prototype.page=function(t,r,i,o,u,a){var c=n.prototype.page.call(this,t,r,i,o,u);return ne(c,a),c},e.prototype.screen=function(t,r,i,o,u,a){var c=n.prototype.screen.call(this,t,r,i,o,u);return ne(c,a),c},e.prototype.identify=function(t,r,i,o,u){var a=n.prototype.identify.call(this,t,r,i,o);return ne(a,u),a},e.prototype.group=function(t,r,i,o,u){var a=n.prototype.group.call(this,t,r,i,o);return ne(a,u),a},e.prototype.alias=function(t,r,i,o,u){var a=n.prototype.alias.call(this,t,r,i,o);return ne(a,u),a},e})(Qr),Pn=function(n){return"addMiddleware"in n&&n.type==="destination"},j={getItem:function(){},setItem:function(){},removeItem:function(){}};try{j=tt()&&window.localStorage?window.localStorage:j}catch(n){console.warn("Unable to access localStorage",n)}function er(n){var e=j.getItem(n);return(e?JSON.parse(e):[]).map(function(t){return new L(t.event,t.id)})}function An(n,e){var t=er(n),r=P(P([],e,!0),t,!0),i=r.reduce(function(o,u){var a;return h(h({},o),(a={},a[u.id]=u,a))},{});j.setItem(n,JSON.stringify(Object.values(i)))}function tr(n){var e=j.getItem(n);return e?JSON.parse(e):{}}function xn(n,e){var t=tr(n);j.setItem(n,JSON.stringify(h(h({},t),e)))}function gt(n){j.removeItem(n)}var kn=function(){return new Date().getTime()};function Je(n,e,t){t===void 0&&(t=0);var r=50,i="persisted-queue:v1:".concat(n,":lock"),o=function(s){return new Date().getTime()>s},u=j.getItem(i),a=u?JSON.parse(u):null,c=a===null||o(a);if(c){j.setItem(i,JSON.stringify(kn()+r)),e(),j.removeItem(i);return}!c&&t<3?setTimeout(function(){Je(n,e,t+1)},r):console.error("Unable to retrieve lock")}var nt=(function(n){M(e,n);function e(t,r){var i=n.call(this,t,[])||this,o="persisted-queue:v1:".concat(r,":items"),u="persisted-queue:v1:".concat(r,":seen"),a=[],c={};return Je(r,function(){try{a=er(o),c=tr(u),gt(o),gt(u),i.queue=P(P([],a,!0),i.queue,!0),i.seen=h(h({},c),i.seen)}catch(s){console.error(s)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var s=P(P([],i.queue,!0),i.future,!0);try{Je(r,function(){An(o,s),xn(u,i.seen)})}catch(l){console.error(l)}}}),i}return e})(Ye),Cn=(function(n){M(e,n);function e(t){return n.call(this,typeof t=="string"?new nt(4,t):t)||this}return e.prototype.flush=function(){return y(this,void 0,void 0,function(){return m(this,function(t){return pe()?[2,[]]:[2,n.prototype.flush.call(this)]})})},e})(sn);function it(n){for(var e=n.constructor.prototype,t=0,r=Object.getOwnPropertyNames(e);t"u")){u=me({},e,u),typeof u.expires=="number"&&(u.expires=new Date(Date.now()+u.expires*864e5)),u.expires&&(u.expires=u.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in u)u[c]&&(a+="; "+c,u[c]!==!0&&(a+="="+u[c].split(";")[0]));return document.cookie=i+"="+n.write(o,i)+a}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],u={},a=0;a0||t.length<=1)return i;for(var o=t.length-2;o>=0;--o)i.push(t.slice(o).join("."));return i}function Fn(n){try{return new URL(n)}catch{return}}function rr(n){var e=Fn(n);if(e)for(var t=Dn(e),r=0;r-1&&(l.type="ios"),f.indexOf("android")>-1&&(l.type="android")),l},c.userAgent=a.proxy("context.userAgent"),c.timezone=a.proxy("context.timezone"),c.timestamp=a.field("timestamp"),c.channel=a.field("channel"),c.ip=a.proxy("context.ip"),c.userId=a.field("userId"),e.default(c);function s(l){return t.clone(l)}return z}var V={},Ee={exports:{}},Ct;function re(){return Ct||(Ct=1,typeof Object.create=="function"?Ee.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ee.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}),Ee.exports}var Mt;function ei(){if(Mt)return V;Mt=1;var n=V&&V.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(V,"__esModule",{value:!0}),V.Alias=void 0;var e=n(re()),t=te();function r(i,o){t.Facade.call(this,i,o)}return V.Alias=r,e.default(r,t.Facade),r.prototype.action=function(){return"alias"},r.prototype.type=r.prototype.action,r.prototype.previousId=function(){return this.field("previousId")||this.field("from")},r.prototype.from=r.prototype.previousId,r.prototype.userId=function(){return this.field("userId")||this.field("to")},r.prototype.to=r.prototype.userId,V}var G={},Se={},Dt;function Fe(){if(Dt)return Se;Dt=1,Object.defineProperty(Se,"__esModule",{value:!0});var n=/.+\@.+\..+/;function e(t){return n.test(t)}return Se.default=e,Se}var Ft;function ti(){if(Ft)return G;Ft=1;var n=G&&G.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(G,"__esModule",{value:!0}),G.Group=void 0;var e=n(re()),t=n(Fe()),r=n(ut()),i=te();function o(a,c){i.Facade.call(this,a,c)}G.Group=o,e.default(o,i.Facade);var u=o.prototype;return u.action=function(){return"group"},u.type=u.action,u.groupId=i.Facade.field("groupId"),u.created=function(){var a=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(a)return r.default(a)},u.email=function(){var a=this.proxy("traits.email");if(a)return a;var c=this.groupId();if(t.default(c))return c},u.traits=function(a){var c=this.properties(),s=this.groupId();a=a||{},s&&(c.id=s);for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)){var f=this[l]==null?this.proxy("traits."+l):this[l]();if(f==null)continue;c[a[l]]=f,delete c[l]}return c},u.name=i.Facade.proxy("traits.name"),u.industry=i.Facade.proxy("traits.industry"),u.employees=i.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}},G}var J={},Tt;function fr(){if(Tt)return J;Tt=1;var n=J&&J.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(J,"__esModule",{value:!0}),J.Identify=void 0;var e=te(),t=n(De()),r=n(re()),i=n(Fe()),o=n(ut()),u=function(s){return s.trim()};function a(s,l){e.Facade.call(this,s,l)}J.Identify=a,r.default(a,e.Facade);var c=a.prototype;return c.action=function(){return"identify"},c.type=c.action,c.traits=function(s){var l=this.field("traits")||{},f=this.userId();s=s||{},f&&(l.id=f);for(var d in s){var p=this[d]==null?this.proxy("traits."+d):this[d]();p!=null&&(l[s[d]]=p,d!==s[d]&&delete l[d])}return l},c.email=function(){var s=this.proxy("traits.email");if(s)return s;var l=this.userId();if(i.default(l))return l},c.created=function(){var s=this.proxy("traits.created")||this.proxy("traits.createdAt");if(s)return o.default(s)},c.companyCreated=function(){var s=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(s)return o.default(s)},c.companyName=function(){return this.proxy("traits.company.name")},c.name=function(){var s=this.proxy("traits.name");if(typeof s=="string")return u(s);var l=this.firstName(),f=this.lastName();if(l&&f)return u(l+" "+f)},c.firstName=function(){var s=this.proxy("traits.firstName");if(typeof s=="string")return u(s);var l=this.proxy("traits.name");if(typeof l=="string")return u(l).split(" ")[0]},c.lastName=function(){var s=this.proxy("traits.lastName");if(typeof s=="string")return u(s);var l=this.proxy("traits.name");if(typeof l=="string"){var f=u(l).indexOf(" ");if(f!==-1)return u(l.substr(f+1))}},c.uid=function(){return this.userId()||this.username()||this.email()},c.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},c.age=function(){var s=this.birthday(),l=t.default(this.traits(),"age");if(l!=null)return l;if(s instanceof Date){var f=new Date;return f.getFullYear()-s.getFullYear()}},c.avatar=function(){var s=this.traits();return t.default(s,"avatar")||t.default(s,"photoUrl")||t.default(s,"avatarUrl")},c.position=function(){var s=this.traits();return t.default(s,"position")||t.default(s,"jobTitle")},c.username=e.Facade.proxy("traits.username"),c.website=e.Facade.one("traits.website"),c.websites=e.Facade.multi("traits.website"),c.phone=e.Facade.one("traits.phone"),c.phones=e.Facade.multi("traits.phone"),c.address=e.Facade.proxy("traits.address"),c.gender=e.Facade.proxy("traits.gender"),c.birthday=e.Facade.proxy("traits.birthday"),J}var W={},jt;function st(){if(jt)return W;jt=1;var n=W&&W.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(W,"__esModule",{value:!0}),W.Track=void 0;var e=n(re()),t=te(),r=fr(),i=n(Fe()),o=n(De());function u(s,l){t.Facade.call(this,s,l)}W.Track=u,e.default(u,t.Facade);var a=u.prototype;a.action=function(){return"track"},a.type=a.action,a.event=t.Facade.field("event"),a.value=t.Facade.proxy("properties.value"),a.category=t.Facade.proxy("properties.category"),a.id=t.Facade.proxy("properties.id"),a.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},a.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},a.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},a.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},a.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},a.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},a.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},a.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},a.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},a.sku=t.Facade.proxy("properties.sku"),a.tax=t.Facade.proxy("properties.tax"),a.name=t.Facade.proxy("properties.name"),a.price=t.Facade.proxy("properties.price"),a.total=t.Facade.proxy("properties.total"),a.repeat=t.Facade.proxy("properties.repeat"),a.coupon=t.Facade.proxy("properties.coupon"),a.shipping=t.Facade.proxy("properties.shipping"),a.discount=t.Facade.proxy("properties.discount"),a.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},a.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},a.description=t.Facade.proxy("properties.description"),a.plan=t.Facade.proxy("properties.plan"),a.subtotal=function(){var s=o.default(this.properties(),"subtotal"),l=this.total()||this.revenue();if(s)return s;if(!l)return 0;if(this.total()){var f=this.tax();f&&(l-=f),f=this.shipping(),f&&(l-=f),f=this.discount(),f&&(l+=f)}return l},a.products=function(){var s=this.properties(),l=o.default(s,"products");return Array.isArray(l)?l.filter(function(f){return f!==null}):[]},a.quantity=function(){var s=this.obj.properties||{};return s.quantity||1},a.currency=function(){var s=this.obj.properties||{};return s.currency||"USD"},a.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},a.query=t.Facade.proxy("options.query"),a.properties=function(s){var l=this.field("properties")||{};s=s||{};for(var f in s)if(Object.prototype.hasOwnProperty.call(s,f)){var d=this[f]==null?this.proxy("properties."+f):this[f]();if(d==null)continue;l[s[f]]=d,delete l[f]}return l},a.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},a.email=function(){var s=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(s)return s;var l=this.userId();if(i.default(l))return l},a.revenue=function(){var s=this.proxy("properties.revenue"),l=this.event(),f=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!s&&l&&l.match(f)&&(s=this.proxy("properties.total")),c(s)},a.cents=function(){var s=this.revenue();return typeof s!="number"?this.value()||0:s*100},a.identify=function(){var s=this.json();return s.traits=this.traits(),new r.Identify(s,this.opts)};function c(s){if(s){if(typeof s=="number")return s;if(typeof s=="string"&&(s=s.replace(/\$/g,""),s=parseFloat(s),!isNaN(s)))return s}}return W}var Q={},Rt;function dr(){if(Rt)return Q;Rt=1;var n=Q&&Q.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Q,"__esModule",{value:!0}),Q.Page=void 0;var e=n(re()),t=te(),r=st(),i=n(Fe());function o(a,c){t.Facade.call(this,a,c)}Q.Page=o,e.default(o,t.Facade);var u=o.prototype;return u.action=function(){return"page"},u.type=u.action,u.category=t.Facade.field("category"),u.name=t.Facade.field("name"),u.title=t.Facade.proxy("properties.title"),u.path=t.Facade.proxy("properties.path"),u.url=t.Facade.proxy("properties.url"),u.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},u.properties=function(a){var c=this.field("properties")||{},s=this.category(),l=this.name();a=a||{},s&&(c.category=s),l&&(c.name=l);for(var f in a)if(Object.prototype.hasOwnProperty.call(a,f)){var d=this[f]==null?this.proxy("properties."+f):this[f]();if(d==null)continue;c[a[f]]=d,f!==a[f]&&delete c[f]}return c},u.email=function(){var a=this.proxy("context.traits.email")||this.proxy("properties.email");if(a)return a;var c=this.userId();if(i.default(c))return c},u.fullName=function(){var a=this.category(),c=this.name();return c&&a?a+" "+c:c},u.event=function(a){return a?"Viewed "+a+" Page":"Loaded a Page"},u.track=function(a){var c=this.json();return c.event=this.event(a),c.timestamp=this.timestamp(),c.properties=this.properties(),new r.Track(c,this.opts)},Q}var H={},Lt;function ri(){if(Lt)return H;Lt=1;var n=H&&H.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(H,"__esModule",{value:!0}),H.Screen=void 0;var e=n(re()),t=dr(),r=st();function i(o,u){t.Page.call(this,o,u)}return H.Screen=i,e.default(i,t.Page),i.prototype.action=function(){return"screen"},i.prototype.type=i.prototype.action,i.prototype.event=function(o){return o?"Viewed "+o+" Screen":"Loaded a Screen"},i.prototype.track=function(o){var u=this.json();return u.event=this.event(o),u.timestamp=this.timestamp(),u.properties=this.properties(),new r.Track(u,this.opts)},H}var $={},qt;function ni(){if(qt)return $;qt=1;var n=$&&$.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty($,"__esModule",{value:!0}),$.Delete=void 0;var e=n(re()),t=te();function r(i,o){t.Facade.call(this,i,o)}return $.Delete=r,e.default(r,t.Facade),r.prototype.type=function(){return"delete"},$}var Nt;function ii(){return Nt||(Nt=1,(function(n){var e=ce&&ce.__assign||function(){return e=Object.assign||function(l){for(var f,d=1,p=arguments.length;d=ai-50}function ci(n){return ct(n)>=ui-10}function li(n){var e=[],t=0;return n.forEach(function(r){var i=ct(e[t]);i>=64&&t++,e[t]?e[t].push(r):e[t]=[r]}),e}function fi(n,e){var t,r,i=[],o=!1,u=(t=e?.size)!==null&&t!==void 0?t:10,a=(r=e?.timeout)!==null&&r!==void 0?r:5e3,c=0;function s(v){var g;if(v.length!==0){var w=(g=v[0])===null||g===void 0?void 0:g.writeKey,_=v.map(function(b){var E=b;E.sentAt;var I=Vt(E,["sentAt"]);return I});return ke("https://".concat(n,"/b"),{credentials:e?.credentials,keepalive:e?.keepalive||o,headers:vr(e?.headers),method:"post",body:JSON.stringify({writeKey:w,batch:_,sentAt:new Date().toISOString()}),priority:e?.priority}).then(function(b){var E;if(b.status>=500)throw new Error("Bad response from server: ".concat(b.status));if(b.status===429){var I=(E=b.headers)===null||E===void 0?void 0:E.get("x-ratelimit-reset"),S=typeof I=="string"?parseInt(I)*1e3:a;throw new pr("Rate limit exceeded: ".concat(b.status),S)}})}}function l(v){var g;return v===void 0&&(v=1),y(this,void 0,void 0,function(){var w;return m(this,function(_){return i.length?(w=i,i=[],[2,(g=s(w))===null||g===void 0?void 0:g.catch(function(b){var E,I=L.system();I.log("error","Error sending batch",b),v<=((E=e?.maxRetries)!==null&&E!==void 0?E:10)&&(b.name==="RateLimitError"&&(c=b.retryTimeout),i.push.apply(i,w),i.map(function(S){if("_metadata"in S){var O=S;O._metadata=h(h({},O._metadata),{retryCount:v})}}),d(v+1))})]):[2]})})}var f;function d(v){v===void 0&&(v=1),!f&&(f=setTimeout(function(){f=void 0,l(v).catch(console.error)},c||a),c=0)}oi(function(v){if(o=v,o&&i.length){var g=li(i).map(s);Promise.all(g).catch(console.error)}});function p(v,g){return y(this,void 0,void 0,function(){var w;return m(this,function(_){return i.push(g),w=i.length>=u||si(i)||e?.keepalive&&ci(i),[2,w||o?l():d()]})})}return{dispatch:p}}function di(n){function e(t,r){return ke(t,{credentials:n?.credentials,keepalive:n?.keepalive,headers:vr(n?.headers),method:"post",body:JSON.stringify(r),priority:n?.priority}).then(function(i){var o;if(i.status>=500)throw new Error("Bad response from server: ".concat(i.status));if(i.status===429){var u=(o=i.headers)===null||o===void 0?void 0:o.get("x-ratelimit-reset"),a=u?parseInt(u)*1e3:5e3;throw new pr("Rate limit exceeded: ".concat(i.status),a)}})}return{dispatch:e}}function pi(n,e,t,r,i){var o,u=n.user();delete e.options,e.writeKey=t?.apiKey,e.userId=e.userId||u.id(),e.anonymousId=e.anonymousId||u.anonymousId(),e.sentAt=new Date;var a=n.queue.failedInitializations||[];a.length>0&&(e._metadata={failedInitializations:a}),i!=null&&(i.attempts>1&&(e._metadata=h(h({},e._metadata),{retryCount:i.attempts})),i.attempts++);var c=[],s=[];for(var l in r){var f=r[l];l==="Segment.io"&&c.push(l),f.bundlingStatus==="bundled"&&c.push(l),f.bundlingStatus==="unbundled"&&s.push(l)}for(var d=0,p=t?.unbundledIntegrations||[];d0&&!pe()},function(){return y(r,void 0,void 0,function(){var o,u,a;return m(this,function(c){switch(c.label){case 0:return o=e.pop(),o?[4,de(o,n)]:[2];case 1:return u=c.sent(),a=u instanceof L,a||t.push(o),[2]}})})})];case 1:return i.sent(),t.map(function(o){return e.pushWithBackoff(o)}),[2,e]}})})}function ae(n,e,t,r){var i=this;n||setTimeout(function(){return y(i,void 0,void 0,function(){var o,u;return m(this,function(a){switch(a.label){case 0:return o=!0,[4,hi(t,e)];case 1:return u=a.sent(),o=!1,e.todo>0&&r(o,u,t,r),[2]}})})},Math.random()*5e3)}function yi(n,e){var t,r,i,o,u=n.user();return e.previousId=(i=(r=(t=e.previousId)!==null&&t!==void 0?t:e.from)!==null&&r!==void 0?r:u.id())!==null&&i!==void 0?i:u.anonymousId(),e.userId=(o=e.userId)!==null&&o!==void 0?o:e.to,delete e.from,delete e.to,e}var mi=function(n){return n.name==="Segment.io"};function gi(n,e,t){var r,i,o;window.addEventListener("pagehide",function(){a.push.apply(a,Array.from(c)),c.clear()});var u=(r=e?.apiKey)!==null&&r!==void 0?r:"",a=n.options.disableClientPersistence?new Ye(n.queue.queue.maxAttempts,[]):new nt(n.queue.queue.maxAttempts,"".concat(u,":dest-Segment.io")),c=new Set,s=!1,l=(i=e?.apiHost)!==null&&i!==void 0?i:Qt,f=(o=e?.protocol)!==null&&o!==void 0?o:"https",d="".concat(f,"://").concat(l),p=e?.deliveryStrategy,v=p&&"strategy"in p&&p.strategy==="batching"?fi(l,p.config):di(p?.config);function g(_){return y(this,void 0,void 0,function(){var b,E;return m(this,function(I){return pe()?(a.push(_),ae(s,a,w,ae),[2,_]):(c.add(_),b=_.event.type.charAt(0),E=xe(_.event).json(),_.event.type==="track"&&delete E.traits,_.event.type==="alias"&&(E=yi(n,E)),a.getAttempts(_)>=a.maxAttempts?(c.delete(_),[2,_]):[2,v.dispatch("".concat(d,"/").concat(b),pi(n,E,e,t,_)).then(function(){return _}).catch(function(S){if(_.log("error","Error sending event",S),S.name==="RateLimitError"){var O=S.retryTimeout;a.pushWithBackoff(_,O)}else a.pushWithBackoff(_);return ae(s,a,w,ae),_}).finally(function(){c.delete(_)})])})})}var w={metadata:{writeKey:u,apiHost:l,protocol:f},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:g,identify:g,page:g,alias:g,group:g,screen:g};return a.todo&&ae(s,a,w,ae),w}var N="This is being deprecated and will be not be available in future releases of Analytics JS",Ne=rt(),Ke=Ne?.analytics;function bi(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=e?10:1,i=t?new Ye(r,[]):new nt(r,n);return new Cn(i)}var _i=(function(){function n(e,t){var r;this.timeout=300,this._getSegmentPluginMetadata=function(){var o;return(o=t.plugins.find(mi))===null||o===void 0?void 0:o.metadata},this.writeKey=e.writeKey;var i={integrations:{"Segment.io":{apiKey:""}}};this.cdnSettings=(r=e.cdnSettings)!==null&&r!==void 0?r:i,this.cdnURL=e.cdnURL}return Object.defineProperty(n.prototype,"apiHost",{get:function(){var e,t;return(t=(e=this._getSegmentPluginMetadata)===null||e===void 0?void 0:e.call(this))===null||t===void 0?void 0:t.apiHost},enumerable:!1,configurable:!0}),n})();function T(){console.warn(N)}var hr=(function(n){M(e,n);function e(t,r,i,o,u){var a=this,c,s;a=n.call(this)||this,a._debug=!1,a.initialized=!1,a.user=function(){return a._user},a.init=a.initialize.bind(a),a.log=T,a.addIntegrationMiddleware=T,a.listeners=T,a.addEventListener=T,a.removeAllListeners=T,a.removeListener=T,a.removeEventListener=T,a.hasListeners=T,a.add=T,a.addIntegration=T;var l=r?.cookie,f=(c=r?.disableClientPersistence)!==null&&c!==void 0?c:!1;a.queue=i??bi("".concat(t.writeKey,":event-queue"),r?.retryQueue,f),a.settings=new _i(t,a.queue);var d=r?.storage;return a._universalStorage=a.createStore(f,d,l),a._user=o??new ar(h({persist:!f,storage:r?.storage},r?.user),l).load(),a._group=u??new Ln(h({persist:!f,storage:r?.storage},r?.group),l).load(),a.eventFactory=new On(a._user),a.integrations=(s=r?.integrations)!==null&&s!==void 0?s:{},a.options=r??{},it(a),a}return e.prototype.createStore=function(t,r,i){return t?new Y([new ot]):r&&ir(r)?new Y(Qe(or(r.stores,i))):new Y(Qe([C.LocalStorage,{name:C.Cookie,settings:i},C.Memory]))},Object.defineProperty(e.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),e.prototype.track=function(){for(var t=[],r=0;rimport("./auto-track-BHt9IJEy.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)];case 1:return i=u.sent(),[2,(o=i.link).call.apply(o,P([this],t,!1))]}})})},e.prototype.trackLink=function(){for(var t=[],r=0;rimport("./auto-track-BHt9IJEy.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)];case 1:return i=u.sent(),[2,(o=i.link).call.apply(o,P([this],t,!1))]}})})},e.prototype.trackSubmit=function(){for(var t=[],r=0;rimport("./auto-track-BHt9IJEy.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)];case 1:return i=u.sent(),[2,(o=i.form).call.apply(o,P([this],t,!1))]}})})},e.prototype.trackForm=function(){for(var t=[],r=0;rimport("./auto-track-BHt9IJEy.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)];case 1:return i=u.sent(),[2,(o=i.form).call.apply(o,P([this],t,!1))]}})})},e.prototype.register=function(){for(var t=[],r=0;rPromise.resolve().then(()=>Li),void 0,import.meta.url)];case 1:return o=c.sent().sourceMiddlewarePlugin,u={},this.queue.plugins.forEach(function(s){if(s.type==="destination")return u[s.name]=!0}),a=o(t,u),[4,this.register(a)];case 2:return c.sent(),[2]}})})})];case 1:return i.sent(),[2,this]}})})},e.prototype.addDestinationMiddleware=function(t){for(var r=[],i=1;iimport("./index-BrszDvMX.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url)];case 1:return r=i.sent().queryString,[2,r(this,t)]}})})},e.prototype.use=function(t){return t(this),this},e.prototype.ready=function(t){return t===void 0&&(t=function(r){return r}),y(this,void 0,void 0,function(){return m(this,function(r){return[2,Promise.all(this.queue.plugins.map(function(i){return i.ready?i.ready():Promise.resolve()})).then(function(i){return t(i),i})]})})},e.prototype.noConflict=function(){return console.warn(N),Nn(Ke??this),this},e.prototype.normalize=function(t){return console.warn(N),this.eventFactory.normalize(t)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(N),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return Ce},enumerable:!1,configurable:!0}),e.prototype.initialize=function(t,r){return y(this,void 0,void 0,function(){return m(this,function(i){return console.warn(N),[2,Promise.resolve(this)]})})},e.prototype.pageview=function(t){return y(this,void 0,void 0,function(){return m(this,function(r){switch(r.label){case 0:return console.warn(N),[4,this.page({path:t})];case 1:return r.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var t;return console.warn(N),(t=this._plugins)!==null&&t!==void 0?t:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){console.warn(N);var t=this.queue.plugins.filter(function(r){return r.type==="destination"}).reduce(function(r,i){var o="".concat(i.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),u=window[o];if(!u)return r;var a=u.Integration;return a?(r[i.name]=a,r):(r[i.name]=u,r)},{});return t},enumerable:!1,configurable:!0}),e.prototype.push=function(t){var r=this,i=t.shift();i&&!r[i]||r[i].apply(this,t)},e})(Ze),Kt=(function(n){M(e,n);function e(){var t=n.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return e})(hr),Ut={};function yr(){return typeof process>"u"||!Ut?{}:Ut}var wi=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,Ei=function(){var n,e=Array.prototype.slice.call(document.querySelectorAll("script"));return e.forEach(function(t){var r,i=(r=t.getAttribute("src"))!==null&&r!==void 0?r:"",o=wi.exec(i);o&&o[1]&&(n=o[1])}),n},Pe,Si=function(){var n,e=Pe??((n=ur())===null||n===void 0?void 0:n._cdn);return e},Ii=function(n){var e=ur();e&&(e._cdn=n),Pe=n},lt=function(){var n=Si();if(n)return n;var e=Ei();return e||"https://cdn.segment.com"},fo=function(){var n=lt();return"".concat(n,"/next-integrations")};function Oi(n,e){var t,r=Object.entries((t=e.integrations)!==null&&t!==void 0?t:{}).reduce(function(i,o){var u,a,c=o[0],s=o[1];return typeof s=="object"?h(h({},i),(u={},u[c]=s,u)):h(h({},i),(a={},a[c]={},a))},{});return Object.entries(n.integrations).reduce(function(i,o){var u,a=o[0],c=o[1];return h(h({},i),(u={},u[a]=h(h({},c),r[a]),u))},{})}function Pi(n){try{return decodeURIComponent(n.replace(/\+/g," "))}catch{return n}}function Ai(n){return y(this,void 0,void 0,function(){var e;return m(this,function(t){return e=navigator.userAgentData,e?n?[2,e.getHighEntropyValues(n).catch(function(){return e.toJSON()})]:[2,e.toJSON()]:[2,void 0]})})}var fe;function xi(){if(fe)return fe;var n=rr(window.location.href);return fe={expires:31536e6,secure:!1,path:"/"},n&&(fe.domain=n),fe}function ki(n){var e={btid:"dataxu",urid:"millennial-media"};n.startsWith("?")&&(n=n.substring(1)),n=n.replace(/\?/g,"&");for(var t=n.split("&"),r=0,i=t;r4){var a=i.slice(4);a==="campaign"&&(a="name"),e[a]=Pi(u)}return e},{})}function Mi(){var n=R.get("_ga");if(n&&n.startsWith("amp"))return n}function Di(n,e,t){var r,i=new Y(t?[]:[new nr(xi())]),o=i.get("s:context.referrer"),u=(r=ki(n))!==null&&r!==void 0?r:o;u&&(e&&(e.referrer=h(h({},e.referrer),u)),i.set("s:context.referrer",u))}var Fi=function(n){try{var e=new URLSearchParams;return Object.entries(n).forEach(function(t){var r=t[0],i=t[1];Array.isArray(i)?i.forEach(function(o){return e.append(r,o)}):e.append(r,i)}),e.toString()}catch{return""}},Ti=(function(){function n(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,r){return y(e,void 0,void 0,function(){var i;return m(this,function(o){switch(o.label){case 0:this.instance=r,o.label=1;case 1:return o.trys.push([1,3,,4]),i=this,[4,Ai(this.instance.options.highEntropyValuesClientHints)];case 2:return i.userAgentData=o.sent(),[3,4];case 3:return o.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(t){var r,i,o=t.event.context,u=o.page.search||"",a=typeof u=="object"?Fi(u):u;o.userAgent=navigator.userAgent,o.userAgentData=e.userAgentData;var c=navigator.userLanguage||navigator.language;typeof o.locale>"u"&&typeof c<"u"&&(o.locale=c),(r=o.library)!==null&&r!==void 0||(o.library={name:"analytics.js",version:"".concat("npm:next","-").concat(Ce)}),a&&!o.campaign&&(o.campaign=Ci(a));var s=Mi();s&&(o.amp={id:s}),Di(a,o,(i=e.instance.options.disableClientPersistence)!==null&&i!==void 0?i:!1);try{o.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}return t},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich}return n})(),ji=new Ti;function mr(n){var e=Array.prototype.slice.call(window.document.querySelectorAll("script"));return e.find(function(t){return t.src===n})}function Ue(n,e){var t=mr(n);if(t!==void 0){var r=t?.getAttribute("status");if(r==="loaded")return Promise.resolve(t);if(r==="loading")return new Promise(function(i,o){t.addEventListener("load",function(){return i(t)}),t.addEventListener("error",function(u){return o(u)})})}return new Promise(function(i,o){var u,a=window.document.createElement("script");a.type="text/javascript",a.src=n,a.async=!0,a.setAttribute("status","loading");for(var c=0,s=Object.entries({});c1}function Wi(n){var e,t,r;return yr().NODE_ENV!=="test"&&((r=(t=(e=n.middlewareSettings)===null||e===void 0?void 0:e.routingRules)===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)>0}function Qi(n,e){Vn(n,e),zn(n,e)}function Hi(n,e,t){return y(this,void 0,void 0,function(){return m(this,function(r){switch(r.label){case 0:return[4,Xi(n,e)];case 1:return r.sent(),Gn(n,t),[2]}})})}var $i=function(){var n,e,t=(n=window.location.hash)!==null&&n!==void 0?n:"",r=(e=window.location.search)!==null&&e!==void 0?e:"",i=r.length?r:t.replace(/(?=#).*(?=\?)/,"");return i},Xi=function(n,e){return y(void 0,void 0,void 0,function(){return m(this,function(t){switch(t.label){case 0:return e.includes("ajs_")?[4,n.queryString(e).catch(console.error)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})};function Zi(n,e,t,r,i,o,u){var a,c,s;return i===void 0&&(i=[]),y(this,void 0,void 0,function(){var l,f,d,p,v,g,w,_,b,E,I,S,O,A,q,Er=this;return m(this,function(x){switch(x.label){case 0:return Qi(t,u),l=i?.filter(function(k){return typeof k=="object"}),f=i?.filter(function(k){return typeof k=="function"&&typeof k.pluginName=="string"}),Wi(e)?[4,D(()=>import("./index-Q2IkNJyL.js"),[],import.meta.url).then(function(k){return k.tsubMiddleware(e.middlewareSettings.routingRules)})]:[3,2];case 1:return p=x.sent(),[3,3];case 2:p=void 0,x.label=3;case 3:return d=p,Ji(e)||o.length>0?[4,D(()=>import("./index-qpewru2T.js"),__vite__mapDeps([6,7,1,2,3,4]),import.meta.url).then(function(k){return k.ajsDestinations(n,e,t.integrations,r,d,o)})]:[3,5];case 4:return g=x.sent(),[3,6];case 5:g=[],x.label=6;case 6:return v=g,e.legacyVideoPluginsEnabled?[4,D(()=>import("./index-C2JwK1mb.js"),__vite__mapDeps([8,3,1,2,4]),import.meta.url).then(function(k){return k.loadLegacyVideoPlugins(t)})]:[3,8];case 7:x.sent(),x.label=8;case 8:return!((a=r.plan)===null||a===void 0)&&a.track?[4,D(()=>import("./index-C8bQxNsh.js"),__vite__mapDeps([9,7,1,2,3,4]),import.meta.url).then(function(k){var U;return k.schemaFilter((U=r.plan)===null||U===void 0?void 0:U.track,e)})]:[3,10];case 9:return _=x.sent(),[3,11];case 10:_=void 0,x.label=11;case 11:return w=_,b=Oi(e,r),[4,Bi(e,t.integrations,b,r,d,f).catch(function(){return[]})];case 12:return E=x.sent(),I=P(P([ji],v,!0),E,!0),w&&I.push(w),S=((c=r.integrations)===null||c===void 0?void 0:c.All)===!1&&!r.integrations["Segment.io"]||r.integrations&&r.integrations["Segment.io"]===!1,S?[3,14]:(A=(O=I).push,[4,gi(t,b["Segment.io"],e.integrations)]);case 13:A.apply(O,[x.sent()]),x.label=14;case 14:return[4,t.register.apply(t,P(P([],I,!1),l,!1))];case 15:return q=x.sent(),[4,Bn(t,u)];case 16:return x.sent(),Object.entries((s=e.enabledMiddleware)!==null&&s!==void 0?s:{}).some(function(k){var U=k[1];return U})?[4,D(()=>import("./index-dTrVk6bs.js"),__vite__mapDeps([10,1,2,3,4]),import.meta.url).then(function(k){var U=k.remoteMiddlewares;return y(Er,void 0,void 0,function(){var ft,dt;return m(this,function(pt){switch(pt.label){case 0:return[4,U(q,e,r.obfuscate)];case 1:return ft=pt.sent(),dt=ft.map(function(Sr){return t.addSourceMiddleware(Sr)}),[2,Promise.all(dt)]}})})})]:[3,18];case 17:x.sent(),x.label=18;case 18:return[4,Un(t,u)];case 19:return x.sent(),[2,q]}})})}function Yi(n,e,t){var r,i,o,u,a,c,s,l,f;return e===void 0&&(e={}),y(this,void 0,void 0,function(){var d,p,v,g,w,_,b,E,I,S,O;return m(this,function(A){switch(A.label){case 0:return e.disable===!0?[2,[new Kt,L.system()]]:(e.globalAnalyticsKey&&qn(e.globalAnalyticsKey),n.cdnURL&&Ii(n.cdnURL),e.initialPageview&&t.add(new He("page",[])),d=$i(),p=(r=n.cdnURL)!==null&&r!==void 0?r:lt(),(i=n.cdnSettings)!==null&&i!==void 0?(g=i,[3,3]):[3,1]);case 1:return[4,Gi(n.writeKey,p)];case 2:g=A.sent(),A.label=3;case 3:return v=g,e.updateCDNSettings&&(v=e.updateCDNSettings(v)),typeof e.disable!="function"?[3,5]:[4,e.disable(v)];case 4:if(w=A.sent(),w)return[2,[new Kt,L.system()]];A.label=5;case 5:return _=(u=(o=v.integrations["Segment.io"])===null||o===void 0?void 0:o.retryQueue)!==null&&u!==void 0?u:!0,e=h({retryQueue:_},e),b=new hr(h(h({},n),{cdnSettings:v,cdnURL:p}),e),Vi(b),E=(a=n.plugins)!==null&&a!==void 0?a:[],I=(c=n.classicIntegrations)!==null&&c!==void 0?c:[],S=(s=e.integrations)===null||s===void 0?void 0:s["Segment.io"],Ht.initRemoteMetrics(h(h({},v.metrics),{host:(l=S?.apiHost)!==null&&l!==void 0?l:(f=v.metrics)===null||f===void 0?void 0:f.host,protocol:S?.protocol})),[4,Zi(n.writeKey,v,b,e,E,I,t)];case 6:return O=A.sent(),b.initialized=!0,b.emit("initialize",n,e),[4,Hi(b,d,t)];case 7:return A.sent(),[2,[b,O]]}})})}var eo=(function(n){M(e,n);function e(){var t=this,r=Gt(),i=r.promise,o=r.resolve;return t=n.call(this,function(u){return i.then(function(a){var c=a[0],s=a[1];return Yi(c,s,u)})})||this,t._resolveLoadStart=function(u,a){return o([u,a])},t}return e.prototype.load=function(t,r){return r===void 0&&(r={}),this._resolveLoadStart(t,r),this},e.load=function(t,r){return r===void 0&&(r={}),new e().load(t,r)},e.standalone=function(t,r){return e.load({writeKey:t},r).then(function(i){return i[0]})},e})(Wn);const br=eo.load({writeKey:window._APP_CONFIG.segment_frontend_write_key}),_r={ELEMENT_CLICKED:"Element Clicked",FORM_STARTED:"Form Started"},wr=()=>window?.location?.pathname!==null?window?.location?.pathname:"undefined";function to(n,e){br.track(_r.ELEMENT_CLICKED,{element:n,label:e,path:wr()}).catch(t=>{console.error("Error tracking element clicked:",t)})}function ro(n){br.track(_r.FORM_STARTED,{form_name:n,path:wr()}).catch(e=>{console.error("Error tracking form started:",e)})}function no(n){const e=new URLSearchParams(window.location.search),t={};return n.forEach(i=>{if(i.sourceType==="query-parameter"){const o=e.get(i.key);o&&(t[i.payloadKey]=o)}}),document.cookie.split(";").forEach(i=>{const[o,u]=i.split("="),a=o.trim();n.forEach(c=>{c.sourceType==="cookie"&&a===c.key&&(t[c.payloadKey]||(t[c.payloadKey]=u?decodeURIComponent(u.trim()):null))})}),t}const io={class:"businessInfoForm"},oo={__name:"EliteSelfGuidedForm",setup(n){Or(l=>({v4245fd64:o.value}));const e=window._selfGuidedFormData||{},t=vt(!1),r=Pr({hasErrors:!1,email:{key:"email",label:"Email",errorMessage:"Please enter a valid email",showError:!1,value:"",type:"email"}}),i=ht(()=>e.buttonText||"Submit"),o=ht(()=>{switch(e.alignment){case"left":return"flex-start";case"center":return"center";case"right":return"flex-end";default:return"flex-start"}}),u=(l,f)=>{if(r[f].value=l,r[f].showError=l==="",r.hasErrors=r.hasErrors||r[f].showError,f==="email"){const d=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;r[f].showError=!d.test(l),r.hasErrors=r.hasErrors||r[f].showError}},a=async()=>{to("Form Submit Button",i.value);const{default:l}=await D(async()=>{const{default:f}=await import("./axios-BRdtRU39.js");return{default:f}},[],import.meta.url);r.hasErrors=!1,Object.keys(r).forEach(f=>{r[f].hasOwnProperty("value")&&u(r[f].value,f)}),!r.hasErrors&&await l.post("/api/self-guided",{email:r.email.value,productId:e.stripeProductId,planId:e.stripePriceId,trialPeriod:e.stripeTrial,couponId:e.stripeCouponId,campaignKey:e.campaignKey,resourceType:"began-elite-free-trial-signup",occurredAt:new Date().toISOString(),eventId:crypto.randomUUID(),sourceUrl:window.location.origin+window.location.pathname,splitTest:e.splitTest,googleClickId:s.value.gclid,utmCampaign:s.value.utmCampaign,utmContent:s.value.utmContent,utmMedium:s.value.utmMedium,utmSource:s.value.utmSource,utmTerm:s.value.utmTerm}).then(f=>{window.location.href=f.data}).catch(f=>{console.error("Error:",f)})},c=jr.createFormTracker({formId:"elite-self-guided-form"}),s=vt({});return Ar(()=>{const l=document.getElementById("businessInfo");c.registerFormElement(l);const f=[{sourceType:"cookie",key:"rs_gclid",payloadKey:"gclid"},{sourceType:"cookie",key:"rs_utm_campaign",payloadKey:"utmCampaign"},{sourceType:"cookie",key:"rs_utm_content",payloadKey:"utmContent"},{sourceType:"cookie",key:"rs_utm_medium",payloadKey:"utmMedium"},{sourceType:"cookie",key:"rs_utm_source",payloadKey:"utmSource"},{sourceType:"cookie",key:"rs_utm_term",payloadKey:"utmTerm"}];s.value=no(f)}),xr(()=>r.email.value,l=>{!t.value&&l&&(t.value=!0,ro("Elite Self-Guided Form"))}),(l,f)=>(Cr(),kr("div",io,[ve("form",{id:"businessInfo",class:"formFields",onSubmit:f[2]||(f[2]=Fr(()=>{},["prevent"]))},[ve("div",null,[Mr(Rr,{modelValue:r.email.value,"onUpdate:modelValue":[f[0]||(f[0]=d=>r.email.value=d),f[1]||(f[1]=d=>u(d,r.email.key))],label:r.email.label,"error-message":r.email.errorMessage,"show-error":r.email.showError},null,8,["modelValue","label","error-message","show-error"])]),ve("div",null,[ve("button",{type:"submit",class:"rds-Button continueButton",onClick:a},Dr(i.value),1)])],32)]))}},ao=Ir(oo,[["__scopeId","data-v-6b3ec21c"]]);Tr(ao).mount("#app");export{se as C,Ye as P,y as _,m as a,P as b,h as c,gr as d,X as e,lo as f,fo as g,F as h,pe as i,Gt as j,nt as k,Ue as l,Oi as m,de as n,L as o,vi as p,pn as q,Ie as r,Hr as s,Pi as t,po as u};