var _segq = _segq || []; var _segs = _segs || {}; _segs.account = 'a1vmW6'; _segs.integration = 22629;if(typeof _segs.tracking_domain == 'undefined'){ _segs.tracking_domain = 't.clientgiant.com'; }if(typeof _segs.full_tracking == 'undefined'){ _segs.full_tracking = true; }!function(){var e={788:function(){}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,i),o.exports}!function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e){var i=function(e,i){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,i||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==t(i)?i:String(i)}function r(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n(r.key),r)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}!function(e){e.console||(e.console={});for(var t,i,n=e.console,r=function(){},o=["memory"],a="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn,timeLog,trace".split(",");t=o.pop();)n[t]||(n[t]={});for(;i=a.pop();)n[i]||(n[i]=r)}("undefined"==typeof window?void 0:window),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e});var a=function(){function t(){e(this,t)}return o(t,null,[{key:"write",value:function(e,t,i){var n="",r=this.root_domain?this.root_domain:this.setRootDomain();if(i){var o=new Date;o.setTime(o.getTime()+24*i*60*60*1e3),n="; expires="+o.toGMTString()}try{document.cookie=e+"="+t+n+"; path=/;domain="+r}catch(e){}}},{key:"read",value:function(e){try{for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var r=i[n];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null}catch(e){return null}}},{key:"erase",value:function(e){this.write(e,"",-1)}},{key:"getRootDomain",value:function(){if("localhost"===window.location.hostname)return this.root_domain="localhost";var e="seg_domain_test",t=window.location.hostname.split(".");t.shift();var i=t.join(".");try{document.cookie=e+"=1;expires=0;path=/;domain=."+i,null==this.read(e)?i=window.location.hostname:document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;path=/;domain=."+i}catch(e){i=window.location.hostname}return i}},{key:"setRootDomain",value:function(){var e=this.getRootDomain();return"localhost"===e?this.root_domain:this.root_domain="."+e}}]),t}(),s={hasSubmittedForm:!1,eventsBound:!1,trackingDisabled:!1,fingerprint:null};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,r,o,a,s=[],u=!0,c=!1;try{if(o=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;u=!1}else for(;!(u=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,r=e}finally{try{if(!u&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=function(){function t(){e(this,t)}return o(t,null,[{key:"parseUri",value:function(e){if(!e)return{host:"",path:"",protocol:"",query:"",queryKey:"",relative:"",source:""};var t=document.createElement("a");t.href=e;var i="?"===t.search.charAt(0)?t.search.substring(1):t.search,n={};return i.split("&").forEach((function(e){var t=c(e.split("="),2),i=t[0],r=t[1];i&&(n[decodeURIComponent(i)]=void 0===r?null:decodeURIComponent(r))})),{host:t.host,path:t.pathname,protocol:t.protocol,query:i,queryKey:n,relative:t.pathname+t.search,source:t.href}}},{key:"queryVal",value:function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null===t?null:decodeURIComponent(t[1].replace(/\+/g," "))}},{key:"hasUtm",value:function(e){return e.indexOf("utm_source=")>0||(e.indexOf("utm_medium=")>0||(e.indexOf("utm_campaign=")>0||(e.indexOf("utm_term=")>0||e.indexOf("utm_content=")>0)))}}]),t}(),d=l;function f(e){var t=new Error(e);return t.source="ulid",t}var m="0123456789ABCDEFGHJKMNPQRSTVWXYZ",h=m.length,g=Math.pow(2,48)-1;function p(e){var t=Math.floor(e()*h);return t===h&&(t=h-1),m.charAt(t)}function _(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>g)throw f("cannot encode time greater than "+g);if(e<0)throw f("time must be positive");if(!1===Number.isInteger(e))throw f("time must be an integer");for(var i=void 0,n="";t>0;t--)i=e%h,n=m.charAt(i)+n,e=(e-i)/h;return n}function y(e,t){for(var i="";e>0;e--)i=p(t)+i;return i}function v(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];t||(t="undefined"!=typeof window?window:null);var n=t&&(t.crypto||t.msCrypto);if(n&&"function"==typeof n.getRandomValues)try{return function(){var e=new Uint8Array(1);return n.getRandomValues(e),e[0]/255}}catch(e){}else try{var r=i(788);return function(){return r.randomBytes(1).readUInt8()/255}}catch(e){}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(e){}return function(){return Math.random()}}throw f("secure crypto unusable, insecure Math.random not allowed")}function w(e){return e||(e=v()),function(t){return isNaN(t)&&(t=(new Date).getTime()),_(t,10)+y(16,e)}}w();var k=function(e){if("undefined"==typeof Sentry){s.errorHandlerLoaded=!0;var t=document.createElement("script");t.type="text/javascript",t.async=!1,t.src="https://js.sentry-cdn.com/88c00aa02e6447f1ab4421cc619c0eca.min.js",t.onload=function(){console.log("[SegMetrics] Initializing Error Reporting"),Sentry.init({release:"snippet@"+P.version}),Sentry.captureException(e)};var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i)}else Sentry.captureException(e)},b=function(){function t(){e(this,t)}return o(t,null,[{key:"init",value:function(){(_segs.cross_domain||_segs.link&&Array.isArray(_segs.link)&&_segs.link.length>0)&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",this.attachHrefTracking):this.attachHrefTracking());var e=window.addEventListener?"addEventListener":"attachEvent",t="attachEvent"===e?"onmessage":"message";window[e](t,this.parseMessage,!0)}},{key:"parseMessage",value:function(e){if("request_seguid"===e.data)e.source.postMessage("seguid|"+SegMet.Visitor.uid,"*");else if("string"==typeof e.data&&-1!==e.data.indexOf("seguid|")){var t=e.data.split("|");t[1]?E.setUID(t[1]):E.setUID(SegMet.Visitor._generateId());try{var i=window.self.document.getElementsByName("email");i.length>0&&i[0].value&&SegMet.Visitor.isEmail(i[0].value)&&_segq.push(["identify",i[0].value])}catch(e){k(e)}}}},{key:"attachHrefTracking",value:function(){if(-1===window.location.search.toLowerCase().indexOf("tve=true")){for(var e=document.getElementsByTagName("a"),t="?",i=E.uid+"."+_segs.integration+"."+(new Date).getTime(),n=a.getRootDomain(),r=0;r<e.length;r++)if(-1===e[r].href.indexOf("seg_id=")&&-1===e[r].href.indexOf(n)){var o=!1;_segs.cross_domain?o=!0:_segs.link&&Array.isArray(_segs.link)&&_segs.link.length>0&&(o=_segs.link.some((function(t){return-1!==e[r].href.indexOf(t)}))),o&&(t=-1!==e[r].href.indexOf("?")?"&":"?",e[r].href+=t+"seg_id="+i)}}else console.warn("[SegMetrics] Skipping Linking: Page is displayed in ThriveArchitect Editor")}},{key:"linkUID",value:function(){return E.uid+"."+_segs.integration+"."+(new Date).getTime()}},{key:"addSegUID",value:function(e){var t=-1!==e.indexOf("?")?"&":"?";return e+t+"seg_id="+this.linkUID()}},{key:"requestSegUIDFromParentIframe",value:function(){this.isInIframe()&&window.top.postMessage("request_seguid","*")}},{key:"isInIframe",value:function(){try{return window.self!==window.top}catch(e){return!0}}}]),t}(),S=b;var O=w(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;t||(t="undefined"!=typeof window?window:null);var i=t&&(t.crypto||t.msCrypto);if(i&&"function"==typeof i.getRandomValues)try{return function(){var e=new Uint8Array(1);return i.getRandomValues(e),e[0]/255}}catch(e){}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch(e){}return function(){return Math.random()}}var n=new Error("secure crypto unusable, insecure Math.random not allowed");throw n.source="ulid",n}()),x=function(){function t(){e(this,t)}return o(t,null,[{key:"setProperties",value:function(){this.uid=null,this.fp=null,this._uid_cookie_name="_seg_uid",this._data_cookie_name="_seg_visitor",this.uid_cookie_name="",this.data_cookie_name="",this.cookieDuration=365,this.queryTimeLimit=36e5,this.isNewUser=!0,this.data={}}},{key:"init",value:function(){this.uid_cookie_name=this._uid_cookie_name+"_"+_segs.integration,this.data_cookie_name=this._data_cookie_name+"_"+_segs.integration,this.uid||this.getUID(),this.fp=s.fingerprint,this.getInitialUTM()}},{key:"getUID",value:function(){if(d.queryVal("seg_id")&&-1!==d.queryVal("seg_id").indexOf(".")){var e=d.queryVal("seg_id").split(".");if(3==e.length&&_segs.integration==e[1]&&(new Date).getTime()-e[2]<this.queryTimeLimit)return void this.setUID(e[0])}if(!a.read(this.uid_cookie_name))return S.isInIframe()?(this.isNewUser=!1,void S.requestSegUIDFromParentIframe()):void this.setUID(this._generateId());this.uid=a.read(this.uid_cookie_name)}},{key:"setUID",value:function(e){return this.uid=e,_segs.data=this.__assign({},_segs.data,{uid:e}),a.write(this.uid_cookie_name,this.uid,this.cookieDuration),a.write(this._uid_cookie_name,this.uid,this.cookieDuration),e}},{key:"getInitialUTM",value:function(){if(this.isNewUser=!a.read(this.data_cookie_name),this.isNewUser||_segs.latest_referrer&&d.hasUtm(document.location.search))try{var e=d.parseUri(document.location);this.data.utm_source=e.queryKey.utm_source,this.data.utm_medium=e.queryKey.utm_medium,this.data.utm_term=e.queryKey.utm_term,this.data.utm_content=e.queryKey.utm_content,this.data.utm_campaign=e.queryKey.utm_campaign;var t=d.parseUri(document.referrer).host.replace("www.","");this.data.referrer=""===t?null:t,a.write(this.data_cookie_name,btoa(JSON.stringify(this.data)),this.cookieDuration)}catch(e){}else try{var i=a.read(this.data_cookie_name);0===i.indexOf("{")?(this.data=JSON.parse(i),a.write(this.data_cookie_name,btoa(JSON.stringify(this.data)),this.cookieDuration)):this.data=JSON.parse(atob(i))}catch(e){}_segs.data=this.__assign({},_segs.data,this.data)}},{key:"_generateId",value:function(e){return O()}},{key:"__assign",value:function(){var e=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};return e.apply(this,arguments)}},{key:"isEmail",value:function(e){return null!=e&&(""!=(e=e.trim())&&/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e))}}]),t}();x.setProperties();var E=x,q=function(){function t(){e(this,t)}return o(t,null,[{key:"init",value:function(){for(var e=0;e<document.forms.length;e++)this._processFormFields(document.forms[e])}},{key:"_processFormFields",value:function(e){var t=E.data;if(this._setFieldValue(e.elements.namedItem(_segs.form_fill.utm_content),t.utm_content),this._setFieldValue(e.elements.namedItem(_segs.form_fill.utm_medium),t.utm_medium),this._setFieldValue(e.elements.namedItem(_segs.form_fill.utm_source),t.utm_source),this._setFieldValue(e.elements.namedItem(_segs.form_fill.utm_term),t.utm_term),this._setFieldValue(e.elements.namedItem(_segs.form_fill.utm_campaign),t.utm_campaign),this._setFieldValue(e.elements.namedItem(_segs.form_fill.referrer),t.referrer),this._setFieldValue(e.elements.namedItem(_segs.form_fill.optin_url),t.optin_url),_segs.fill_lead_source&&Array.isArray(_segs.fill_lead_source)){var i=this.inf_form_xid?"inf_field_LeadSourceName":"Contact0Leadsource",n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",i),n.setAttribute("value",this._calculateLeadSource()),e.appendChild(n)}}},{key:"_setFieldValue",value:function(e,t){e&&null!=e&&null!=t&&null!=t&&(e.value=t)}},{key:"_calculateLeadSource",value:function(){for(var e=[],t=_segs.fill_lead_source.length,i=0;i<t;i++)null!==E.data[_segs.fill_lead_source[i]]&&e.push(E.data[_segs.fill_lead_source[i]]);return e.join("-")}}]),t}();function I(e,t,i){return(t=n(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function D(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function j(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?D(Object(i),!0).forEach((function(t){I(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var U=function(){function t(){e(this,t)}return o(t,null,[{key:"setProperties",value:function(){this.version=2,this.images=[],this.log=[]}},{key:"optin",value:function(e){e&&e.hasOwnProperty("email")&&e.email&&this.identify(e.email),this.event("optin")}},{key:"auto_track",value:function(){if(window.self===window.top||-1===window.location.pathname.indexOf("custom/web-pixel"))if(E.isNewUser||_segs.full_tracking)this.track();else{var e=window.location.search.toLowerCase(),t=/(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/;-1===e.indexOf("utm_")&&-1===e.indexOf("email=")&&-1===e.indexOf("seg_em=")&&-1===e.indexOf("ontactid")&&-1===e.indexOf("c=")&&-1===e.indexOf("cid=")&&-1===e.indexOf("seg_cid=")&&-1===e.indexOf("drip_subscriber_id")&&-1===e.indexOf("ck_subscriber_id")&&-1===e.indexOf("_cio_id")&&-1===e.indexOf("fbadid")&&-1===e.indexOf("wickedid=")&&-1===e.indexOf("ad_id")&&-1===e.indexOf("adid")&&-1===e.indexOf("seg_aid")&&!1===t.test(e)&&!1===t.test(e.replace("%40","@"))||this.track()}}},{key:"track",value:function(e){this._track("collect",{t:"view",r:this._getReferrer(),dl:void 0!==e?e:document.location.href})}},{key:"event",value:function(e){this._track("event",{t:e,r:this._getReferrer(),dl:document.location.href})}},{key:"identify",value:function(e){e&&E.isEmail(e)&&this._track("identify",{t:"identify",e:e,r:this._getReferrer(),dl:document.location.href})}},{key:"confirmSegCode",value:function(){var e="https://app.segmetrics.io/confirm-snippet/?"+this._serialize({i:_segs.hasOwnProperty("integration")?_segs.integration:null});window.navigator.sendBeacon?window.navigator.sendBeacon(e):this._sendPolyFillBeacon("collect",e)||this._sendImage("collect",e);return this.log.push(e),!0}},{key:"_track",value:function(e,t){if(!s.trackingDisabled){try{E.uid||E.setUID(E._generateId()),t.v=this.version,t.a=_segs.account,t.i=_segs.integration,t.uid=E.uid,t.fp=JSON.stringify(this._getDeviceInfo());var i={fbp:a.read("_fbp"),ga:a.read("_ga")};(i=Object.keys(i).filter((function(e){return null!=i[e]})).reduce((function(e,t){return j(j({},e),{},I({},t,i[t]))}),{}))&&Object.keys(i).length>0&&(t.mt=JSON.stringify(i));var n=this._collectorURL()+e+"?"+this._serialize(t);try{navigator.sendBeacon?(navigator.sendBeacon(n),this.log.push(n)):SegMet.Tracker._sendImage(e,n)}catch(t){this._sendImage(e,n)}}catch(e){k(e)}return!0}}},{key:"_sendPolyFillBeacon",value:function(e,t){try{var i="identify"===e||"event"===e,n=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");n.open("POST",t,!i),n.withCredentials=!0,n.setRequestHeader("Accept","*/*"),n.send()}catch(e){return!1}return this.log.push(t),!0}},{key:"_sendImage",value:function(e,t){var i=new Image;i.src=t,this.images.push(i),this.log.push(t)}},{key:"_serialize",value:function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&void 0!==e[i]&&null!==e[i]&&t.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return t.join("&")}},{key:"_getReferrer",value:function(){var e=document.createElement("a");e.href=document.referrer;var t=e.hostname.replace("www.","");return t!==document.location.host.replace("www.","")?t:null}},{key:"_collectorURL",value:function(){return _segs.tracking_domain?"https://".concat(_segs.tracking_domain,"/"):"https://track.segmetrics.io/"}},{key:"_getDeviceInfo",value:function(){return{sd:window.screen.colorDepth||null,sr:screen.width+"x"+screen.height,ul:window.navigator.language||null,dm:window.navigator.deviceMemory||null}}}]),t}();U.setProperties();var M=U,T=function(){function t(){e(this,t)}return o(t,null,[{key:"kajabi",value:function(){if(void 0!==window.kajabiDataLayer&&document.querySelector('[name="checkout_offer[member][email]"]').value){var e=document.querySelector('[name="checkout_offer[member][email]"]').value;return e&&E.isEmail(e)?(_segq.push(["identify",e]),!0):void 0}}},{key:"clickfunnels",value:function(){var e=this;(document.getElementsByTagName("html")[0].classList.contains("clickfunnels-com")||document.querySelector('meta[property="cf:page_id"]'))&&setTimeout((function(){document.querySelectorAll('input[type="email"]').forEach((function(t){if(t.value&&E.isEmail(t.value))return _segq.push(["identify",t.value]),e.identifySent=!0,!0}))}),1500)}},{key:"ultracart",value:function(){var e=this;-1!==window.location.href.indexOf(".do?")&&-1!==window.location.href.indexOf("merchantId")&&setTimeout((function(){document.querySelectorAll('input[type="email"]').forEach((function(t){if(t.value&&E.isEmail(t.value))return _segq.push(["identify",t.value]),e.identifySent=!0,!0}))}),1500)}},{key:"shopify",value:function(e){return e&&window.self!==window.top&&-1!==window.location.pathname.indexOf("custom/web-pixel")&&(e.subscribe("input_changed",(function(e){void 0!==e.data.element&&e.data.element.id.includes("email")&&E.isEmail(e.data.element.value)&&_segq.push(["identify",e.data.element.value])})),e.subscribe("checkout_started",(function(e){void 0!==e.data.checkout&&E.isEmail(e.data.checkout.email)&&_segq.push(["identify",e.data.checkout.email])})),e.subscribe("checkout_contact_info_submitted",(function(e){void 0!==e.data.checkout&&E.isEmail(e.data.checkout.email)&&_segq.push(["identify",e.data.checkout.email])})),e.subscribe("checkout_completed",(function(e){void 0!==e.data.checkout&&E.isEmail(e.data.checkout.email)&&_segq.push(["identify",e.data.checkout.email])})),e.subscribe("page_viewed",(function(e){(e.context.document.location.href.includes("orders")||e.context.document.location.href.includes("checkouts"))&&_segq.push(["track",e.context.document.location.href])}))),window.Shopify&&window.Shopify.checkout&&window.Shopify.checkout.email&&E.isEmail(window.Shopify.checkout.email)?(_segq.push(["identify",window.Shopify.checkout.email]),!0):window.Shopify&&window.Shopify.order&&window.Shopify.order.customer&&window.Shopify.order.customer.email&&SegMet.Visitor.isEmail(window.Shopify.order.customer.email)?(_segq.push(["identify",window.Shopify.order.customer.email]),!0):void 0}},{key:"calendly",value:function(){var e=d.queryVal("invitee_email");if(e&&E.isEmail(e))return _segq.push(["identify",e]),!0}},{key:"leadQuizzes",value:function(){var e=d.queryVal("email-address-lead");if(e&&E.isEmail(e))return _segq.push(["identify",e]),!0}},{key:"everwebinar",value:function(){var e=JSON.parse(decodeURIComponent(a.read("wjui")));if(e&&e.email&&E.isEmail(e.email))return _segq.push(["identify",e.email]),!0;var t=d.queryVal("wj_lead_email");return t&&E.isEmail(t)?(_segq.push(["identify",t]),!0):void 0}},{key:"teachable",value:function(){if(!window.localStorage.ajs_user_traits)return!1;var e=JSON.parse(window.localStorage.ajs_user_traits);return e&&e.email&&E.isEmail(e.email)?(_segq.push(["identify",e.email]),!0):void 0}},{key:"bigcommerce",value:function(){var e=this;document.querySelector('meta[name="platform"]')&&document.querySelector('meta[name="platform"]').content&&document.querySelector('meta[name="platform"]').content.includes("bigcommerce")&&setTimeout((function(){var t=document.querySelector('[data-test="customer-info"]');if(t&&t.innerText&&SegMet.Visitor.isEmail(t.innerText))return _segq.push(["identify",t.innerText]),e.identifySent=!0,!0}),1500)}},{key:"init",value:function(){var e=this;this.identifySent=!1,this.integrations.forEach((function(t){try{if(e.identifySent)return;e.identifySent=e[t]()}catch(e){console.warn("Error parsing identification for "+t+"\n"+e.message)}}))}}]),t}();I(T,"identifySent",!1),I(T,"integrations",["clickfunnels","ultracart","shopify","calendly","leadQuizzes","everwebinar","teachable","bigcommerce","kajabi"]);var N=T,A=function(){function t(){e(this,t)}return o(t,null,[{key:"init",value:function(){var e=[];S.isInIframe()?setTimeout((function(){e=_segq,_segq=new L,_segq.push.apply(_segq,e)}),500):(e=_segq,_segq=new L,_segq.push.apply(_segq,e))}}]),t}(),L=function(){function t(){e(this,t)}return o(t,[{key:"push",value:function(){for(var e=0;e<arguments.length;e++)try{"function"==typeof arguments[e]?arguments[e]():M[arguments[e][0]].apply(M,arguments[e].slice(1))}catch(e){}}}]),t}(),V=A,P={version:""};function R(e){var t=e.target.value;try{if(e.target.parentNode&&e.target.parentNode.id&&-1!==e.target.parentNode.id.indexOf("privy"))return}catch(e){}t&&E.isEmail(t)&&_segq.push(["identify",decodeURIComponent(t)])}var C=function(){try{var e=window.location.search.toLowerCase();if(e.indexOf("seg-pixel=disable")>-1)return a.write("_seg_disabled",1,d.queryVal("seg-expire")||.5),void(s.trackingDisabled=!0);if(e.indexOf("seg-pixel=enable")>-1)s.trackingDisabled=!1,a.erase("_seg_disabled");else if(1==a.read("_seg_disabled"))return void(s.trackingDisabled=!0)}catch(e){k(e)}try{!function(){if(s.eventsBound)return void console.warn("[SegMetrics] Events Already Initialized");(function(){if(null==d.queryVal("confirmSegCode"))return;_segq.push(["confirmSegCode"])})(),function(){var e="_seg_debug_session_"+_segs.integration;if(a.read(e)){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="//tag.segmetrics.io/debug.js";var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i)}null!==d.queryVal("startSegDebug")&&(a.write(e,1,.25),window.location=window.location.href.replace(/[&\?]startSegDebug=1/,""))}(),E.init(),S.init(),_segs.form_fill&&q.init();_segs.fill_lead_source=_segs.fill_lead_source||null,_segs.full_tracking=_segs.full_tracking||null,null==_segs.full_tracking&&(_segs.full_tracking=2081==_segs.integration||2063==_segs.integration||1399==_segs.integration||2065==_segs.integration||2027==_segs.integration||2005==_segs.integration);s.eventsBound||(document.addEventListener?(document.addEventListener("input",R,!0),document.addEventListener("change",R,!0),document.addEventListener("blur",R,!0)):document.attachEvent&&(document.attachEvent("onchange",R),document.attachEvent("oninput",R)));V.init(),_segq.push(["auto_track"]),s.eventsBound=!0,N.init()}()}catch(e){k(e)}};if(P.version="2.5.34",!window.SegMet){try{console.log("%c SegMetrics v"+P.version+" %c "+(_segs.account||_segs.integration)+" ","background: #05a0f8; color: #ffffff; padding: 3px; border-radius: 4px 0 0 4px; border: 1px solid #05a0f8","background: #ffffff; color: #6b7280; padding: 3px; border: 1px solid #05a0f8; border-left:0; border-radius: 0 4px 4px 0;")}catch(e){console.log("SegMetrics v"+P.version)}P.State=s,P.Cookie=a,P.FormFiller=q,P.Tracker=M,P.Linker=S,P.Visitor=E,P.Integrations=N,P.Queue=V,P.parseUri=d.parseUri,P.queryVal=d.queryVal,P.init=C,P.init(),window.SegMet=P;try{var F=new Event("segtrk.ready",{bubbles:!0,cancelable:!1});document.dispatchEvent(F)}catch(e){}}}()}();