var CJApi;!function(){"use strict";var e={885:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.getTime()}(e.loyaltyExpiration,t)||e.dtmConsent==n.CONFIRMED||e.dtmConsent!=n.DECLINED&&e.isInterimPeriod}(y,t),r=l(y));try{if(p){var g=function(e){return["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MT","NL","NO","PL","PT","RO","SE","SI","SK"].includes(e)}(p);return function(e,t,r){var o=!e,i=l({version:"0",isInGdprZone:e,dtmConsent:n.NEVER_ASKED,isInterimPeriod:!1,loyaltyExpiration:"0"});return d(r,i,t),v(o,i)}(g,t,e)}return f()}catch(e){o.reporter.send({tag:"consentForAdvertiserUnexpectedError",payload:"Unexpected error: ".concat((0,i.errorMessage)(e)),logLevel:"ERROR"})}return f()}},357:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.addCookie=t.getCookieUriDecoded=t.getCookie=t.COOKIE_LIFETIME_MILLIS=void 0;var n=r(569);function o(e,t){var r,o=e+"=";return null===(r=t.cookie.split("; ").find((function(e){return(0,n.startsWith)(o,e)})))||void 0===r?void 0:r.substring(o.length)}t.COOKIE_LIFETIME_MILLIS=34128e6,t.getCookie=o,t.getCookieUriDecoded=function(e,t){var r=o(e,t);return r?decodeURIComponent(r):r},t.addCookie=function(e,r,n,i){if(null!=n&&""!==n)return function a(c){if(!(c>3)){var u=e.location.hostname;!function(e,r,n,o,i){var a=function(e,r,n,o,i){var a=i?new Date(i.getTime()+t.COOKIE_LIFETIME_MILLIS).toUTCString():"",c=["".concat(r,"=").concat(n),"expires=".concat(a),"path=/"];return"https:"===o&&c.push("secure"),""!==e&&c.push("domain="+e),c.join(";")}(e,r,o,n.location.protocol,i);!function(e,t){e.cookie=t}(n.document,a)}("localhost"===u?"localhost":".".concat(u.split(".").splice(-c).join(".")),r,e,n,i);var s=o(r,e.document);return s===n?s:a(c+1)}}(2)}},648:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function c(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,c)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0?[4,(0,a.readBlobFromBodyInit)(null==u?void 0:u.body)]:[3,3];case 1:return n=o.sent(),i.reporter.send({tag:"retryingFetch",payload:"".concat(t,". For url: ").concat(r,". ").concat(this.retryCount," attempts left. These were the parameters: ").concat(JSON.stringify(u)," with body : ").concat(n),logLevel:"ERROR"}),[4,new e(this.httpCall,this.retryCount-1).fetchRetry(r,u)];case 2:return[2,o.sent()];case 3:throw Error("Exceeded max number of retry attempts.")}}))}))},this.httpCall=t,this.retryCount=r}return e.prototype.isOrder=function(e){return"string"==typeof e&&new RegExp(/payload.*(orders|order)%/).test(e)},e}();t.FetchRetrier=c},868:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=function(e,t){return r=new Date(e),n=t,(o=new Date(r)).setDate(r.getDate()+n),o;var r,n,o}(n,r)}(n,r,i)&&function(e){return"US"===e}(a)}t.shouldCallLiveRamp=u,t.liveRampWorkflow=function(e,t,r,s,l,d){try{return u(s.enabled,l,e,t,s.periodInDays,r)?(function(e,t){var r=e.toISOString();(0,o.addCookie)(t,c,r,e)}(t,e),function(e,t){var r,o,i="https://idsync.rlcdn.com/".concat("711037",".gif?partner_uid=").concat(e);r=t.document,o=i,(0,n.addPixelToDom)(r,o,"liveRampPixel")}(d,e),{isCalled:!0}):{isCalled:!1}}catch(e){return i.reporter.send({tag:"liverampWorkflow-Error",payload:(0,a.errorMessage)(e),logLevel:"ERROR"}),{isCalled:!1}}}},485:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.addRevLifterScriptToDom=t.REV_LIFTER_KEY=void 0;var n=r(232),o=r(569),i=r(651);t.REV_LIFTER_KEY="cjRevLifterTest",t.addRevLifterScriptToDom=function(e,r){try{var a=r.key;if(r.enabled&&a&&((0,i.isLive)(a.mode)||(0,i.isTest)(t.REV_LIFTER_KEY,e,a.mode))){var c='(function (i, s, o, g, r, a, m) {\n i["RevLifterObject"] = r;\n (i[r] =\n i[r] ||\n function () {\n (i[r].q = i[r].q || []).push(arguments);\n }),\n (i[r].l = 1 * new Date());\n (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);\n a.async = 1;\n a.src = g;\n m.parentNode.insertBefore(a, m);\n })(\n window,\n document,\n "script",\n "https://assets.revlifter.io/'.concat(a.value,'.js",\n "revlifter"\n );\n revlifter("load", "').concat(a.value,'");'),u=e.createElement("script");u.type="text/javascript",u.id="revlifter-script";var s=e.createTextNode(c);return u.appendChild(s),e.body.appendChild(u),{isCalled:!0}}return{isCalled:!1}}catch(e){return n.reporter.send({tag:"revLifterScript",payload:(0,o.errorMessage)(e),logLevel:"ERROR"}),{isCalled:!1}}}},714:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.addTvScientificScriptToDom=t.addTvScientificPurchaseToDom=t.addTvScientificPurchaseScriptToDom=t.addTvScientificUniversalPixelToDom=t.cjOrderToTvScientificOrder=t.TV_SCIENTIFIC_KEY=void 0;var n=r(232),o=r(569),i=r(651);function a(e){var t,r=null===(t=e.items)||void 0===t?void 0:t.map((function(e){var t=e.itemId,r=e.discount,n=e.quantity,o=e.unitPrice,i=r&&r/Number(n)||0;return{SKU:t,CAT:"",PR:Number(o)-i,QTY:Number(n)}})),n=(null==r?void 0:r.reduce((function(e,t){return t.PR*t.QTY+e}),0))||e.amount-Number(e.discount||0);return{orderId:e.orderId,orderAmount:n.toFixed(2),currency:e.currency,customerId:e.enterpriseId.toString(),customerStatus:"",promoCode:e.coupon||"",note:"",lastTouchChannel:"",items:r||[]}}function c(e,r,c){try{var u=c.key;if(c.enabled&&u&&((0,i.isLive)(u.mode)||(0,i.isTest)(t.TV_SCIENTIFIC_KEY,e,u.mode))){var s=a(r),l="(function (j) {var l='".concat(u.value,"', s, d, w, e = encodeURIComponent, d = document, w = window.location, p = d.createElement(\"IMG\"); \n s = w.protocol + '//tvspix.com/t.png?t=' + (new Date()).getTime() + '&l=' + l + '&u3=' + e(w.href) + '&u1=complete_purchase&u2=' + j.orderAmount + '&u4=' + e(j.orderId) + '&u5=' + e(j.lastTouchChannel) + '&u6=' + e(j.customerId) + '&u8=' + e(j.customerStatus || '') + '&u12=' + e(j.note) + '&u13=' + e(JSON.stringify(j.items)) + '&u14=' + e(j.promoCode) + '&u15=' + (j.currency || ''); \n p.setAttribute(\"src\", s); p.setAttribute(\"height\", \"0\"); p.setAttribute(\"width\", \"0\"); \n p.setAttribute(\"alt\", \"\"); p.style.display = 'none'; p.style.position = 'fixed'; \n d.body.appendChild(p);\n })(").concat(JSON.stringify(s),");"),d=e.createElement("script");d.type="text/javascript",d.id="tvScientific-purchase-script-".concat(s.orderId);var f=e.createTextNode(l);return d.appendChild(f),e.body.appendChild(d),!0}return!1}catch(e){return n.reporter.send({tag:"tvScientificPurchaseScript",payload:(0,o.errorMessage)(e),logLevel:"ERROR"}),!1}}function u(e,r){try{var a=r.key;if(r.enabled&&a&&((0,i.isLive)(a.mode)||(0,i.isTest)(t.TV_SCIENTIFIC_KEY,e,a.mode))){var c='(function () {var p, s, d, w;d = document;w = window.location;p = d.createElement("IMG");s = w.protocol + "//tvspix.com/t.png?&t=" + (new Date).getTime() + "&l='.concat(a.value,'&u3=" + encodeURIComponent(w.href);p.setAttribute("src", s);\np.setAttribute("height", "0");p.setAttribute("width", "0");p.setAttribute("alt", "");p.style.setProperty("display", "none");p.style.setProperty("position", "absolute");\np.style.setProperty("visibility", "hidden");d.body.appendChild(p);})();'),u=e.createElement("script");u.type="text/javascript",u.id="tvScientific-script";var s=e.createTextNode(c);return u.appendChild(s),e.body.appendChild(u),!0}return!1}catch(e){return n.reporter.send({tag:"tvScientificScript",payload:(0,o.errorMessage)(e),logLevel:"ERROR"}),!1}}t.TV_SCIENTIFIC_KEY="cjTvScientificTest",t.cjOrderToTvScientificOrder=a,t.addTvScientificUniversalPixelToDom=function(e,t){return{universalPixelIsCalled:u(e,t)}},t.addTvScientificPurchaseScriptToDom=function(e,t,r){var n=!1,o=[];return(null==t?void 0:t.order)&&(n=c(e,t.order,r)),(null==t?void 0:t.orders)&&t.orders.forEach((function(t){var n=c(e,t,r);o.push(n)})),{onePurchasePixelIsCalled:n,multiplePurchasePixelWereCalled:0===o.length?{result:"NoMultipleOrders"}:o.includes(!1)?{result:"Failure",failedCount:o.filter((function(e){return!e})).length,totalOrders:o.length}:{result:"Success",totalOrders:o.length}}},t.addTvScientificPurchaseToDom=c,t.addTvScientificScriptToDom=u},489:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageItem=t.getStorageItem=t.getPersistedCjEvents=t.CjEventKeys=void 0;var n,o=r(357);function i(e,t){return t&&t.getItem(e)}!function(e){e.DocumentCookie="cjevent_dc",e.SetCookie="cjevent_sc",e.LocalStorage="cjevent",e.SessionStorage="cjevent",e.ClientServerCookie="cje"}(n||(t.CjEventKeys=n={})),t.getPersistedCjEvents=function(e,t,r){return{clientServerCookie:(0,o.getCookieUriDecoded)(n.ClientServerCookie,e),documentCookie:(0,o.getCookieUriDecoded)(n.DocumentCookie,e),serverSetCookie:(0,o.getCookieUriDecoded)(n.SetCookie,e),localStorage:i(n.LocalStorage,t),sessionStorage:i(n.SessionStorage,r)}},t.getStorageItem=i,t.setStorageItem=function(e,t,r){return r&&r.setItem(e,t)}},189:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!c(r))throw TypeError("Stringified UUID is invalid");return r},v=0,p=0,y=function(e,t,r){var n=t&&r||0,o=t||new Array(16),a=(e=e||{}).node||l,c=void 0!==e.clockseq?e.clockseq:d;if(null==a||null==c){var u=e.random||(e.rng||i)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==c&&(c=d=16383&(u[6]<<8|u[7]))}var s=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:p+1,g=s-v+(y-p)/1e4;if(g<0&&void 0===e.clockseq&&(c=c+1&16383),(g<0||s>v)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=s,p=y,d=c;var h=(1e4*(268435455&(s+=122192928e5))+y)%4294967296;o[n++]=h>>>24&255,o[n++]=h>>>16&255,o[n++]=h>>>8&255,o[n++]=255&h;var m=s/4294967296*1e4&268435455;o[n++]=m>>>8&255,o[n++]=255&m,o[n++]=m>>>24&15|16,o[n++]=m>>>16&255,o[n++]=c>>>8|128,o[n++]=255&c;for(var C=0;C<6;++C)o[n+C]=a[C];return t||f(o)},g=function(e){if(!c(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function h(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>9<<4)+1}function C(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function b(e,t,r,n,o,i){return C((a=C(C(t,e),C(n,i)))<<(c=o)|a>>>32-c,r);var a,c}function w(e,t,r,n,o,i,a){return b(t&r|~t&n,e,t,o,i,a)}function S(e,t,r,n,o,i,a){return b(t&n|r&~n,e,t,o,i,a)}function E(e,t,r,n,o,i,a){return b(t^r^n,e,t,o,i,a)}function I(e,t,r,n,o,i,a){return b(r^(t|~n),e,t,o,i,a)}var j=h("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>32-t}var P=h("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o>>0;C=m,m=h,h=R(g,30)>>>0,g=y,y=S}r[0]=r[0]+y>>>0,r[1]=r[1]+g>>>0,r[2]=r[2]+h>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+C>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]})),_="00000000-0000-0000-0000-000000000000",k=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n=r(868);CJApi=n}(); var cjApi = CJApi.default({win: this.window, date: new Date(), integrationDomain: "www.emjcd.com", integrationType: 2, tagId: "286631010262", path: "/proxydirectory", reporterType: "ERROR_ONLY", flags: {enablePerformance:false,enableLoggingForTagIds:[{},{}]}, countryCode: "US", reporterUrl: "https://www.mczbf.com", partnership: {liveRamp:{enabled:true,periodInDays:5},revLifter:{enabled:true},tvScientific:{enabled:true}}});