1/*! For license information please see tracking.js.LICENSE.txt */ 2System.register(["@vp/auth","@vp/ab-test-cookie","@vp/ctc-reader","@vp/swan","react-dom/client","react"],(function(e,t){var n={},r={},i={},o={},a={},s={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(s,"__esModule",{value:!0}),{setters:[function(e){Object.keys(e).forEach((function(t){n[t]=e[t]}))},function(e){Object.keys(e).forEach((function(t){r[t]=e[t]}))},function(e){Object.keys(e).forEach((function(t){i[t]=e[t]}))},function(e){Object.keys(e).forEach((function(t){o[t]=e[t]}))},function(e){Object.keys(e).forEach((function(t){a[t]=e[t]}))},function(e){Object.keys(e).forEach((function(t){s[t]=e[t]}))}],execute:function(){e((()=>{var e,c,u,l,d={97:(e,t)=>{for(var n,r=256,i=[];r--;)i[r]=(r+256).toString(16).substring(1);t.v4=function(){var e,t=0,o="";if(!n||r+16>256){for(n=Array(t=256);t--;)n[t]=256*Math.random()|0;t=r=0}for(;t<16;t++)e=n[r+t],o+=6==t?i[15&e|64]:8==t?i[63&e|128]:i[e],1&t&&t>1&&t<11&&(o+="-");return r++,o}},146:(e,t,n)=>{"use strict";n.d(t,{a:()=>r});var r="api.segment.io/v1"},174:(e,t,n)=>{const{v4:r}=n(97);let i=null;e.exports={refresh:function(){return i=r(),i},getPageViewId:function(){return i||(i=r()),i}}},175:(e,t,n)=>{const r=n(4855),i=n(6934),o=n(5802),a=n(9966);let s,c;e.exports={init:function(e,t,n){"undefined"!=typeof window&&window.navigator&&r((()=>{const r=new o(e,t,n);s=new i(r),s.registerUnloadEvents(),c=new a(r),c.registerUnloadEvents()}))}}},316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmailIds=void 0;const r=n(5321);Object.defineProperty(t,"getEmailIds",{enumerable:!0,get:function(){return r.getEmailIds}})},331:(e,t)=>{"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var o,a=0;o=t[a];a++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var s=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(s)},t.is=function(e,t){return"string"==typeof e&&(!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e)}},443:(e,t,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},519:(e,t)=>{"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},531:e=>{const t=new RegExp("^[a-z]{2}$"),n=new RegExp("^[A-Z]{2}$");e.exports={parseCulture:function(e){if(!e)return{};const t=e.split("-"),n=t[0],r=t.length>1?t[t.length-1]:void 0;return{language:n?.toLowerCase(),locale:r?.toUpperCase()}},validateLanguage:function(e){return e&&t.test(e)},validateLocale:function(e){return e&&n.test(e)}}},542:()=>{},707:(e,t,n)=>{const r=n(7546),i=n(8505);let o,a;function s(e){const t=e.detail;t&&t.profile&&c(t)}function c(e){const t=i.getTracking(),n=e.profile["https://claims.cimpress.io/canonical_id"];e.isSignedIn?n!==o&&(o=n,t.identify(n)):n!==a&&(a=n,t.setAnonymousId(n))}e.exports={init:function(){const e=(new r.WebAuth).getIdentity();e&&e.profile&&c(e),window.addEventListener("userIdentity",s)}}},731:(e,t,n)=>{const{getCurrentTenant:r}=n(3194),{getCurrentCulture:i}=n(9651),o=n(7775),a=n(6813),s=n(818),c=n(3207),u="oOgyr9bTme0dtCxg9IxbESBjTNQQjxca";function l(e,t,n,l,d,f,h,g,v,m,y){const w=function(){if(a.hasSiteTest())return console.log("Tracking to testing source based on user agent"),u;const e=function(){try{return window.localStorage.getItem("data-write-key")||void 0}catch(e){return}}();if(e)return console.log("Override write key has been detected in local storage"),e;const t=o.getCookie("data-write-key");return t?(console.log("Override write key has been detected in cookie"),t):void 0}();w&&(e=w),t=t||r(),n=n||i();const b=s.getConfig(e);return{writeKey:e,tenant:t,culture:n,shouldTrack:!a.hasNoTrack(),domain:b.domain,useAnalyticsAlias:b.useAlias,apiHost:b.apiHost,sourceMiddlewares:l,destinationMiddlewares:d,suppressReloadOnConsentSubmit:!0===f,onError:"function"==typeof h?h:p,consentManagerCssClassNames:g,disableWebVitals:v,scriptNonce:m,featureFlags:y,pciCompliantGtmContainerId:c.getPciCompliantGtmContainerOverride(t)}}function d(e,t){return e.getAttribute(`data-${t}`)}function p(e){console.error(JSON.stringify(e))}e.exports={load:function(){const e={writeKey:d(t=document.getElementById("tracking-vp-dcp")||document.getElementById("tracking"),"write-key"),tenant:d(t,"tenant"),culture:d(t,"culture"),suppressReloadOnConsentSubmit:"true"===d(t,"suppressReloadOnConsentSubmit")};var t;return l(e.writeKey,e.tenant,e.culture,void 0,void 0,e.suppressReloadOnConsentSubmit,void 0,void 0,!1,void 0,void 0)},applyOverride:l,noTrackingWriteKey:u}},757:e=>{function t(){}function n(e){return e?{...e}:{}}e.exports=function(e){function r(e){if(e&&"function"==typeof e.addIntegration)return e.addIntegration(r);this.options={...this.defaults,...n(e)},this._events=Object.create(null),this._queue=[],this._ready=!1,this.ready=this.ready.bind(this),this.flush=this.flush.bind(this),this.once("ready",this.flush);const t=this.initialize;this.initialize=(...e)=>{const n=t.apply(this,e);
2return this.emit("initialize"),this._readyOnInitialize&&this.ready(),n}}return r.prototype.defaults={},r.prototype.globals=[],r.prototype.templates={},r.prototype.name=e,r.prototype.initialize=function(){this.ready()},r.prototype.loaded=function(){return!1},r.prototype.page=function(){},r.prototype.track=function(){},r.prototype.on=function(e,t){return this._events[e]||(this._events[e]=[]),this._events[e].push(t),this},r.prototype.once=function(e,t){const n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)},r.prototype.off=function(e,t){return this._events[e]?(this._events[e]=this._events[e].filter((e=>e!==t)),this):this},r.prototype.emit=function(e,...t){return(this._events[e]||[]).slice().forEach((e=>e.apply(this,t))),this},r.prototype.invoke=function(e,...t){if("function"==typeof this[e]){if(this._ready)return this[e](...t);this.queue(e,t)}},r.prototype.queue=function(e,t){this._queue.push({method:e,args:t})},r.prototype.flush=function(){this._ready=!0,this._queue.splice(0).forEach((e=>{this[e.method](...e.args)}))},r.prototype.reset=function(){"undefined"!=typeof window&&this.globals.forEach((e=>{window[e]=void 0}))},r.prototype.locals=function(e){const t=e?{...e}:{},n=Math.floor(Date.now()/36e5);return Object.prototype.hasOwnProperty.call(t,"cache")||(t.cache=n),Object.entries(this.options).forEach((([e,n])=>{Object.prototype.hasOwnProperty.call(t,e)||(t[e]=n)})),t},r.prototype.load=function(e,n,r){"function"==typeof e?(r=e,n=null,e=null):e&&"object"==typeof e?(r=n,n=e,e=null):"function"==typeof n&&(r=n,n=null);const i=e||"library",o=this.templates[i];if(!o)throw new Error(`template "${i}" not defined.`);const a=function(e,t){return Object.entries(e.attrs).reduce(((e,[n,r])=>(e[n]=r.replace(/\{\{\s*(\w+)\s*\}\}/g,((e,n)=>t[n])),e)),{})}(o,this.locals(n)),s=r||t,c=function(e,t){if("undefined"==typeof document)return null;const n=document.createElement(e);return Object.entries(t).forEach((([e,t])=>{null!=t&&n.setAttribute(e,t)})),n}(o.type,a);return c?("script"===o.type?(c.addEventListener("load",(()=>s())),c.addEventListener("error",(()=>s(new Error(`Failed to load ${a.src||i}.`))))):s(),function(e){const t=document.head||document.body||document.documentElement;return t&&t.appendChild(e),e}(c)):(s(),null)},r.prototype.ready=function(){this.emit("ready")},r.option=function(e,t){return this.prototype.defaults[e]=t,this},r.global=function(e){return this.prototype.globals.push(e),this},r.tag=function(e,t){return null==t&&(t=e,e="library"),this.prototype.templates[e]=function(e){const t=e.match(/^\s*<(script|img|iframe)\s+([^>]*)>/i);if(!t)throw new Error("Unsupported integration tag template.");const[,n,r]=t,i={},o=/([^\s=]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;let a=o.exec(r);for(;a;)i[a[1]]=a[2]??a[3]??"",a=o.exec(r);return{type:n.toLowerCase(),attrs:i}}(t),this},r.assumesPageview=function(){return this.prototype._assumesPageview=!0,this},r.readyOnInitialize=function(){return this.prototype._readyOnInitialize=!0,this},r}},789:(e,t,n)=>{"use strict";n.d(t,{d:()=>c,j:()=>u});var r=n(6e3),i=n(3172),o=n(1635),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce((function(e,t){var n,r,i,a=(0,o.Cl)((0,o.Cl)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.Cl)((0,o.Cl)({},e),((n={})[s]=a,n))}),{});console.table?console.table(e):console.log(e)}else this.logs.forEach((function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!=r?r:""):console[t](n,null!=r?r:"")}));this._logs=[]},e}(),s=n(5799),c=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},u=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new s.r),void 0===i&&(i=new a),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new c({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id}
2,enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,i.J)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},818:e=>{const t=new Map([["default",{domain:"cdn.segment.com",apiHost:void 0,useAlias:!1}],["usbx43luh92dwclbx69wkgacfo3cwskt",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["nfnobbx9uv4bkzrlkdjopujkov4aohan",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["nff8ycs0umjbfe6izdnsksagczz0u6dh",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["4tpvtma75hfvbre6g2fixmlqj6yuo21v",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["suhmnezhrgtny6dfgaldgobjna0gqvdq",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["xxmofw4zj9ef461ngr6byycg0wku2u42",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["tbdfr8mfn4zyawz8jieav7mn8wyxwbbb",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["qvax8zsa4zuqeyz79wjqymgnfirrrkc8",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["xofi3xmqtxu14pvwkao4ofgzggr95ift",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["fkz7vdd127fgt9l8dbd4kz2stuspe458",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["kxa1hj1qc6ass5ip322iro9gcxtgai4v",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["qmmfhanbi4kvp1ksh6v30gzwdxycwhqf",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["przh7tcjveuxj9wenqqctr82gbpehx9v",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}
2],["z0khvqhrtgwffv5mzrcmpuumlqdkl4nt",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}],["6glj6lhztfinwzx4k8wjqnx5ucowfgpq",{domain:"evs.dcp.vpdcp.com",apiHost:"api.dcp.vpdcp.com/v1",useAlias:!0}]]);e.exports={getConfig:function(e){const n=function(e){return e.toLowerCase()}(e);return t.has(n)?t.get(n):t.get("default")}}},880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getKeysOf=void 0,t.getKeysOf=e=>Object.keys(e)},925:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(6071);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(6853);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return o.Alias}});var a=n(9026);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.Group}});var s=n(2749);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return s.Identify}});var c=n(2646);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return c.Track}});var u=n(4750);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return u.Page}});var l=n(8341);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return l.Screen}});var d=n(5674);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return d.Delete}}),t.default=r(r({},i.Facade),{Alias:o.Alias,Group:a.Group,Identify:s.Identify,Track:c.Track,Page:u.Page,Screen:l.Screen,Delete:d.Delete})},959:(e,t,n)=>{"use strict";n.d(t,{Ud:()=>a,kJ:()=>i,rY:()=>o});var r="analytics";function i(){return window[r]}function o(e){r=e}function a(e){window[r]=e}},1031:(e,t,n)=>{"use strict";n.d(t,{I2:()=>s,YM:()=>c,qQ:()=>a});var r,i=n(959),o=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,a=function(e){var t=(0,i.kJ)();t&&(t._cdn=e),r=e},s=function(){var e,t=null!=r?r:null===(e=(0,i.kJ)())||void 0===e?void 0:e._cdn;if(t)return t;var n,a=(Array.prototype.slice.call(document.querySelectorAll("script")).forEac
vendor: 13,228 bytes, line 2
2h((function(e){var t,r=null!==(t=e.getAttribute("src"))&&void 0!==t?t:"",i=o.exec(r);i&&i[1]&&(n=i[1])})),n);return a||"https://cdn.segment.com"},c=function(){var e=s();return"".concat(e,"/next-integrations")}},1063:(e,t,n)=>{const r=n(8287).y;t.w=function(e){if(e||(e=1),!n.y.meta||!n.y.meta.url)throw console.error("__system_context__",n.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");n.p=r(n.y.meta.url,e)}},1076:e=>{function t(e){return async t=>{try{await e(t)}catch(e){console.error("Failed on executing a middleware",e),t.next(t.payload)}}}e.exports={loadMiddlewares:function(e,n,r){Array.isArray(n)&&n.length>0&&n.forEach((n=>{const r=t(n);e.addSourceMiddleware(r)})),Array.isArray(r)&&r.length>0&&r.forEach((n=>{const r=n.middlewares.map((e=>t(e)));e.addDestinationMiddleware(n.targetIntegration,r)}))}}},1148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Analytics:()=>Re,AnalyticsBrowser:()=>st,AnalyticsNode:()=>ct,Context:()=>l.o,ContextCancelation:()=>l.d,EventFactory:()=>P,Group:()=>G,NullAnalytics:()=>He,UniversalStorage:()=>R,User:()=>$,getGlobalAnalytics:()=>Q.kJ,isDestinationPluginWithAddMiddleware:()=>E,resolveAliasArguments:()=>c,resolveArguments:()=>o,resolvePageArguments:()=>a,resolveUserArguments:()=>s,segmentio:()=>Te});var r=n(1635),i=n(4846);function o(e,t,n,r){var o,a=[e,t,n,r],s=(0,i.Qd)(e)?e.event:e;if(!s||!(0,i.Kg)(s))throw new Error("Event missing");var c=(0,i.Qd)(e)?null!==(o=e.properties)&&void 0!==o?o:{}:(0,i.Qd)(t)?t:{},u={};return(0,i.Tn)(n)||(u=null!=n?n:{}),(0,i.Qd)(e)&&!(0,i.Tn)(t)&&(u=null!=t?t:{}),[s,c,u,a.find(i.Tn)]}function a(e,t,n,r,o){var a,s,c=null,u=null,l=[e,t,n,r,o],d=l.filter(i.Kg);1===d.length?(0,i.Kg)(l[1])?(u=l[1],c=null):(u=d[0],c=null):2===d.length&&("string"==typeof l[0]&&(c=l[0]),"string"==typeof l[1]&&(u=l[1]));var p=l.find(i.Tn),f=l.filter(i.Qd);return 1===f.length?(0,i.Qd)(l[2])?(s={},a=l[2]):(0,i.Qd)(l[3])?(a={},s=l[3]):(a=f[0],s={}):2===f.length&&(a=f[0],s=f[1]),[c,u,null!=a?a:a={},null!=s?s:s={},p]}var s=function(e){return function(){for(var t,n,r,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];for(var s={},c=["callback","options","traits","id"],u=0,l=o;u<l.length;u++){var d=l[u],p=c.pop();if("id"===p){if((0,i.Kg)(d)||(0,i.Et)(d)){s.id=d.toString();continue}if(null==d)continue;p=c.pop()}if("traits"!==p&&"options"!==p||null!=d&&!(0,i.Qd)(d)||(s[p]=d),(0,i.Tn)(d)){s.callback=d;break}}return[null!==(t=s.id)&&void 0!==t?t:e.id(),null!==(n=s.traits)&&void 0!==n?n:{},null!==(r=s.options)&&void 0!==r?r:{},s.callback]}};function c(e,t,n,r){(0,i.Et)(e)&&(e=e.toString()),(0,i.Et)(t)&&(t=t.toString());var o=[e,t,n,r],a=o.filter(i.Kg),s=a[0],c=void 0===s?e:s,u=a[1],l=void 0===u?null:u,d=o.filter(i.Qd)[0];return[c,l,void 0===d?{}:d,o.find(i.Tn)]}var u=n(2629),l=n(7200),d=n(2663);function p(e,t,n,i){return(0,r.sH)(this,void 0,void 0,(function(){var o,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return n.emit("dispatch_start",e),o=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return a=r.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:a=r.sent(),r.label=4;case 4:return(null==i?void 0:i.callback)?[4,(0,d.w_)(a,i.callback,(s=o,c=i.timeout,u=Date.now()-s,Math.max((null!=c?c:300)-u,0)))]:[3,6];case 5:a=r.sent(),r.label=6;case 6:return(null==i?void 0:i.debug)&&a.flush(),[2,a]}var s,c,u}))}))}var f=n(8512),h=n(6e3),g=function(e,t,n,r,i,o){return{__t:"bpc",c:t,p:r,u:e,s:n,t:i,r:o}},v=Object.keys(g("","","","","",""));var m=function(e){var t,n,r=e.c,i=e.p,o=e.s,a=e.u,s=e.r,c=e.t,u=r?function(e){try{return new URL(e).pathname}catch(t){return"/"===e[0]?e:"/"+e}}(r):i,l=r?function(e,t){return e.indexOf("?")>-1?e:e+t}(r,o):-1===(n=(t=a).indexOf("#"))?t:t.slice(0,n);return{path:u,referrer:s,search:o,title:c,url:l}},y=function(){var e=document.querySelector("link[rel='canonical']");return g(location.href,e&&e.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},w=function(e,t){void 0===t&&(t=m(y()));var n,i,o,a=e.context;"page"===e.type&&(n=e.properties&&(i=e.properties,o=Object.keys(t),Object.assign.apply(Object,(0,r.fX)([{}],o.map((function(e){var t;if(i&&Object.prototype.hasOwnProperty.call(i,e))return(t={})[e]=i[e],t})),!1))),e.properties=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),e.properties),e.name?{name:e.name}:{})),a.page=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},t),n),a.page)},b=n(3172),C=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,r.C6)(t,e),t}(Error),k="is not a string",x="is not an object";var _=function(e){var t,n;this.settings=e,this.createMessageId=e.createMessageId,this.onEventMethodCall=null!==(t=e.onEventMethodCall)&&void 0!==t?t:function(){},this.onFinishedEvent=null!==(n=e.onFinishedEvent)&&void 0!==n?n:function(){}},S=function(){function e(e){this.settings=new _(e)}return e.prototype.track=function(e,t,n,i){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),{event:e,type:"track",properties:null!=t?t:{},options:(0,r.Cl)({},n),integrations:(0,r.Cl)({},i)}))},e.prototype.page=function(e,t,n,i,o){var a;this.settings.onEventMethodCall({type:"page",options:i});var s={type:"page",properties:(0,r.Cl)({},n),options:(0,r.Cl)({},i),integrations:(0,r.Cl)({},o)};return null!==e&&(s.category=e,s.properties=null!==(a=s.properties)&&void 0!==a?a:{},s.properties.category=e),null!==t&&(s.name=t),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),s))},e.prototype.screen=function(e,t,n,i,o){this.settings.onEventMethodCall({type:"screen",options:i});var a={type:"screen",properties:(0,r.Cl)({},n),options:(0,r.Cl)({},i),integrations:(0,r.Cl)({},o)};return null!==e&&(a.category=e),null!==t&&(a.name=t),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),a))},e.prototype.identify=function(e,t,n,i){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),{type:"identify",userId:e,traits:null!=t?t:{},options:(0,r.Cl)({},n),integrations:i}))},e.prototype.group=function(e,t,n,i){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),{type:"group",traits:null!=t?t:{},options:(0,r.Cl)({},n),integrations:(0,r.Cl)({},i),groupId:e}))},e.prototype.alias=function(e,t,n,i){this.settings.onEventMethodCall({type:"alias",options:n});var o={userId:e,type:"alias",options:(0,r.Cl)({},n),integrations:(0,r.Cl)({},i)};return null!==t&&(o.previousId=t),void 0===e?this.normalize((0,r.Cl)((0,r.Cl)({},o),this.baseEvent())):this.normalize((0,r.Cl)((0,r.Cl)({},this.baseEvent()),o))},e.prototype.baseEvent=function(){return{integrations:{},options:{}}},e.prototype.context=function(e){var t,n=["userId","anonymousId","timestamp","messageId"];delete e.integrations;var r=Object.keys(e),i=null!==(t=e.context)&&void 0!==t?t:{},o={};return r.forEach((function(t){"context"!==t&&(n.includes(t)?(0,b.J)(o,t,e[t]):(0,b.J)(i,t,e[t]))})),[i,o]},e.prototype.normalize=function(e){var t,n,o,a,s=Object.keys(null!==(t=e.integrations)&&void 0!==t?t:{}).reduce((function(t,n){var i,o;return(0,r.Cl)((0,r.Cl)({},t),((i={})[n]=Boolean(null===(o=e.integrations)||void 0===o?void 0:o[n]),i))}),{});e.options=(o=e.options||{},a=function(e,t){return void 0!==t},Object.keys(o).filter((function(e){return a(0,o[e])})).reduce((function(e,t){return e[t]=o[t],e}),{}));var c=(0,r.Cl)((0,r.Cl)({},s),null===(n=e.options)||void 0===n?void 0:n.integrations),u=e.options?this.context(e.options):[],l=u[0],d=u[1],p=e.options,f=(0,r.Tt)(e,["options"]),h=(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({timestamp:new Date},f),{context:l,integrations:c}),d),{messageId:p.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(h),function(e){!function(e){if(!(0,i.t2)(e))throw new C("Event","is nil");if("object"!=typeof e)throw new C("Event",x)}(e),function(e){if(!(0,i.Kg)(e.type))throw new C(".type",k)}(e),function(e){if(!(0,i.Kg)(e.messageId))throw new C(".messageId",k)}(e),"track"===e.type&&(function(e){if(!(0,i.Kg)(e.event))throw new C(".event",k)}(e),function(e){if(!(0,i.Qd)(e.properties))throw new C(".properties",x)}(e)),["group","identify"].includes(e.type)&&function(e){if(!(0,i.Qd)(e.traits))throw new C(".traits",x)}(e)}(h),h},e}(),P=function(e){function t(t){var n=e.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,h.v4)())},onEventMethodCall:function(e){var t=e.options;n.maybeUpdateAnonId(t)},onFinishedEvent:function(e){return n.addIdentity(e),e}})||this;return n.user=t,n}return(0,r.C6)(t,e),t.prototype.maybeUpdateAnonId=function(e){(null==e?void 0:e.anonymousId)&&this.user.anonymousId(e.anonymousId)},t.prototype.addIdentity=function(e){this.user.id()&&(e.userId=this.user.id()),this.user.anonymousId()&&(e.anonymousId=this.user.anonymousId())},t.prototype.track=function(t,n,r,i,o){var a=e.prototype.track.call(this,t,n,r,i);return w(a,o),a},t.prototype.page=function(t,n,r,i,o,a){var s=e.prototype.page.call(this,t,n,r,i,o);return w(s,a),s},t.prototype.screen=function(t,n,r,i,o,a){var s=e.prototype.screen.call(this,t,n,r,i,o);return w(s,a),s},t.prototype.identify=function(t,n,r,i,o){var a=e.prototype.identify.call(this,t,n,r,i);return w(a,o),a},t.prototype.group=function(t,n,r,i,o){var a=e.prototype.group.call(this,t,n,r,i);return w(a,o),a},t.prototype.alias=function(t,n,r,i,o){var a=e.prototype.alias.call(this,t,n,r,i);return w(a,o),a},t}(S),E=function(e){return"addMiddleware"in e&&"destination"===e.type},A=n(2356),O=n(3340),I=n(789),T=n(5159),M=function(e){function t(t){var n,r,i,o=e.call(this)||this;return o.criticalTasks=(i=0,{done:function(){return n},run:function(e){var t,o=e();return"object"==typeof(t=o)&&null!==t&&"then"in t&&"function"==typeof t.then&&(1==++i&&(n=new Promise((function(e){return r=e}))),o.finally((function(){return 0==--i&&r()}))),o}}),o.plugins=[],o.failedInitializations=[],o.flushing=!1,o.queue=t,o.queue.on(O.g,(function(){o.scheduleFlush(0)})),o}return(0,r.C6)(t,e),t.prototype.register=function(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){var i,o,a=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.plugins.push(t),i=function(n){a.failedInitializations.push(t.name),a.emit("initialization_failure",t),console.warn(t.name,n),e.log("warn","Failed to load destination",{plugin:t.name,error:n}),a.plugins=a.plugins.filter((function(e){return e!==t}))},"destination"!==t.type||"Segment.io"===t.name?[3,1]:(t.load(e,n).catch(i),[3,4]);case 1:return r.trys.push([1,3,,4]),[4,t.load(e,n)];case 2:return r.sent(),[3,4];case 3:return o=r.sent(),i(o),[3,4];case 4:return[2]}}))}))},t.prototype.deregister=function(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){var i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.plugins=this.plugins.filter((function(e){return e.name!==t.name})),[3,4];case 3:return i=r.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:i}),[3,4];case 4:return[2]}}))}))},t.prototype.dispatch=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]}))}))},t.prototype.subscribeToDelivery=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t=this;return(0,r.YH)(this,(function(n){return[2,new Promise((function(n){var r=function(i,o){i.isSame(e)&&(t.off("flush",r),n(i))};t.on("flush",r)}))]}))}))},t.prototype.dispatchSingle=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t=this;return(0,r.YH)(this,(function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch((function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)}))]}))}))},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout((function(){t.flush().then((function(){setTimeout((function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)}),0)}))}),e))},t.prototype.deliver=function(e){var t;return(0,r.sH)(this,void 0,void 0,(function(){var n,i,o,a,s;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,this.criticalTasks.done()];case 1:r.sent(),n=Date.now(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=r.sent(),i=Date.now()-n,(o=e.failedDelivery())?(s=o.reason instanceof Error?o.reason:new Error(String(null!==(t=o.reason)&&void 0!==t?t:"Unknown delivery failure")),e.log("error","Failed to deliver",s),this.emit("delivery_failure",e,s),e.stats.increment("delivery_failed"),[2,e]):(this.emit("delivery_success",e),e.stats.gauge("delivered",i),e.log("debug","Delivered",e.event),[2,e]);case 4:throw a=r.sent(),s=a,e.log("error","Failed to deliver",s),this.emit("delivery_failure",e,s),e.stats.increment("delivery_failed"),a;case 5:return[2]}}
vendor: 4,965 bytes, line 2
2))}))},t.prototype.enqueuRetry=function(e,t){return!(e instanceof I.d&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=r.sent(),t=!e.failedDelivery(),this.emit("flush",e,t),[3,4];case 3:return n=r.sent(),this.enqueuRetry(n,e)||(e.setFailedDelivery({reason:n}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}}))}))},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t,n,i=this.plugins.filter((function(t){var n,r,i;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var o=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach((function(t){void 0!==e[t]&&(o=e[t])})),null!==(i=null!==(r=e[t.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)})),o=(t="type",n={},i.forEach((function(e){var i,o=void 0,a=e[t];void 0!==(o="string"!=typeof a?JSON.stringify(a):a)&&(n[o]=(0,r.fX)((0,r.fX)([],null!==(i=n[o])&&void 0!==i?i:[],!0),[e],!1))})),n),a=o.before,s=void 0===a?[]:a,c=o.enrichment,u=void 0===c?[]:c,l=o.destination,d=void 0===l?[]:l,p=o.after;return{before:s,enrichment:u,destinations:d,after:void 0===p?[]:p}},t.prototype.flushOne=function(e){var t,n;return(0,r.sH)(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,d,p,f,h,g,v,m;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),i=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),o=i.before,a=i.enrichment,s=0,c=o,r.label=1;case 1:return s<c.length?(u=c[s],[4,(0,T.D)(e,u)]):[3,4];case 2:(f=r.sent())instanceof I.j&&(e=f),this.emit("message_enriched",e,u),r.label=3;case 3:return s++,[3,1];case 4:l=0,d=a,r.label=5;case 5:return l<d.length?(p=d[l],[4,(0,T.C)(e,p)]):[3,8];case 6:(f=r.sent())instanceof I.j&&(e=f),this.emit("message_enriched",e,p),r.label=7;case 7:return l++,[3,5];case 8:return h=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),g=h.destinations,v=h.after,[4,new Promise((function(t,n){setTimeout((function(){var r=g.map((function(t){return(0,T.C)(e,t)}));Promise.all(r).then(t).catch(n)}),0)}))];case 9:return r.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),m=v.map((function(t){return(0,T.C)(e,t)})),[4,Promise.all(m)];case 10:return r.sent(),[2,e]}}))}))},t}(f.v),j=function(e){function t(t){return e.call(this,"string"==typeof t?new A.x(4,t):t)||this}return(0,r.C6)(t,e),t.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return(0,u.a)()?[2,[]]:[2,e.prototype.flush.call(this)]}))}))},t}(M);function D(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&"function"==typeof o.value&&(e[i]=e[i].bind(e))}}return e}var L={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},N=function(e,t,n,r){console.warn("".concat(e.constructor.name,": Can't ").concat(t,' key "').concat(n,'" | Err: ').concat(r))},R=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(t=i.get(e)))return t}catch(t){N(i,"get",e,t)}}return null},e.prototype.set=function(e,t){this.stores.forEach((function(n){try{n.set(e,t)}catch(t){N(n,"set",e,t)}}))},e.prototype.clear=function(e){this.stores.forEach((function(t){try{t.remove(e)}catch(n){N(t,"remove",e,n)}}))},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"==typeof t?t.toString():t;return this.set(e,n),n},e}(),H=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function B(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every((function(e){return Object.values(L).includes(e)}))}var F=n(8987);function V(e){var t=function(e){try{return new URL(e)}catch(e){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),r=0;r<n.length;++r){var i="__tld__",o=n[r],a={domain:"."+o};try{if(F.A.set(i,"1",a),F.A.get(i))return F.A.remove(i,a),o}catch(e){return}}}var z=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,r.Cl)((0,r.Cl)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:V(window.location.href),path:"/",sameSite:"Lax"}}
vendor: 45,948 bytes, line 2
2,enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=F.A.get(e);if(null==n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(e){return null}},e.prototype.set=function(e,t){"string"==typeof t?F.A.set(e,t,this.opts()):null===t?F.A.remove(e,this.opts()):F.A.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return F.A.remove(e,this.opts())},e}(),U=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(e){return null!=n?n:null}}catch(t){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(t){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function q(e){return e.map((function(e){var t,n;switch(function(e){return"object"==typeof e&&void 0!==e.name}(e)?(t=e.name,n=e.settings):t=e,t){case L.Cookie:return new z(n);case L.LocalStorage:return new U;case L.Memory:return new H;default:throw new Error("Unknown Store Type: ".concat(e))}}))}function W(e,t){return e.map((function(e){return t&&e===L.Cookie?{name:e,settings:t}:e}))}var Y={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},$=function(){function e(e,t){void 0===e&&(e=Y);var n,i,o,a,s=this;this.options={},this.id=function(e){if(s.options.disable)return null;var t=s.identityStore.getAndSync(s.idKey);void 0!==e&&(s.identityStore.set(s.idKey,e),e!==t&&null!==t&&null!==e&&s.anonymousId(null));var n=s.identityStore.getAndSync(s.idKey);if(n)return n;var r=s.legacyUserStore.get(Y.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(s.options.disable)return null;if(void 0===e){var r=null!==(t=s.identityStore.getAndSync(s.anonKey))&&void 0!==t?t:null===(n=s.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(s.identityStore.set(s.anonKey,null),s.identityStore.getAndSync(s.anonKey)):(s.identityStore.set(s.anonKey,null!=e?e:(0,h.v4)()),s.identityStore.getAndSync(s.anonKey))},this.traits=function(e){var t;if(!s.options.disable)return null===e&&(e={}),e&&s.traitsStore.set(s.traitsKey,null!=e?e:{}),null!==(t=s.traitsStore.get(s.traitsKey))&&void 0!==t?t:{}},this.options=(0,r.Cl)((0,r.Cl)({},Y),e),this.cookieOptions=t,this.idKey=null!==(i=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==i?i:Y.cookie.key,this.traitsKey=null!==(a=null===(o=e.localStorage)||void 0===o?void 0:o.key)&&void 0!==a?a:Y.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,(function(e){return e===L.Cookie})),this.traitsStore=this.createStorage(this.options,t,(function(e){return e!==L.Cookie}));var c=this.legacyUserStore.get(Y.cookie.oldKey);c&&"object"==typeof c&&(c.id&&this.id(c.id),c.traits&&this.traits(c.traits)),D(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();null!==n&&n!==e||(t=(0,r.Cl)((0,r.Cl)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[L.LocalStorage,L.Cookie,L.Memory];return e.disable?new R([]):e.persist?(void 0!==e.storage&&null!==e.storage&&B(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter((function(e){return e!==L.LocalStorage}))),n&&(r=r.filter(n)),new R(q(W(r,t)))):new R([new H])},e.defaults=Y,e}(),K={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},G=function(e){function t(t,n){void 0===t&&(t=K);var i=e.call(this,(0,r.Cl)((0,r.Cl)({},K),t),n)||this;return i.anonymousId=function(e){},D(i),i}return(0,r.C6)(t,e),t}($),J=n(1496),X=n(6828),Q=n(959),Z=n(1895),ee=function(e,t,n){n.getAndRemove(e).forEach((function(e){ue(t,e).catch(console.error)}))},te=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){var n,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:n=0,i=t.getAndRemove("addSourceMiddleware"),r.label=1;case 1:return n<i.length?(o=i[n],[4,ue(e,o).catch(console.error)]):[3,4];case 2:r.sent(),r.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},ne=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){var n,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:n=0,i=t.getAndRemove("register"),r.label=1;case 1:return n<i.length?(o=i[n],[4,ue(e,o).catch(console.error)]):[3,4];case 2:r.sent(),r.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},re=ee.bind(void 0,"on"),ie=ee.bind(void 0,"setAnonymousId"),oe=function(e){if(ae(e)){var t=e.pop();return m(t)}},ae=function(e){return function(e){if(t=e,"object"!==Object.prototype.toString.call(t).slice(8,-1).toLowerCase())return!1;var t;if("bpc"!==e.__t)return!1;for(var n in e)if(!v.includes(n))return!1;return!0}(e[e.length-1])},se=function(e,t,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=e,this.resolve=n,this.reject=r,this.called=!1,this.args=t},ce=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._callMap={},this.add.apply(this,e)}return Object.defineProperty(e.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(e){this._callMap=e},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t;return null!==(t=this.calls[e])&&void 0!==t?t:[]},e.prototype.getAndRemove=function(e){var t=this.get(e);return this.calls[e]=[],t},e.prototype.add=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];t.forEach((function(t){["track","screen","alias","group","page","identify"].includes(t.method)&&!ae(t.args)&&(t.args=(0,r.fX)((0,r.fX)([],t.args,!0),[y()],!1)),e.calls[t.method]?e.calls[t.method].push(t):e.calls[t.method]=[t]}))},e.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this.calls))},e.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,Z.X)()){var e=(0,Q.kJ)();if(Array.isArray(e)){var t=e.splice(0,e.length).map((function(e){var t=e[0],n=e.slice(1);return new se(t,n)}));this.add.apply(this,t)}}},e}();function ue(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,"object"==typeof(o=n=e[t.method].apply(e,t.args))&&null!==o&&"then"in o&&"function"==typeof o.then?[4,n]:[3,2]);case 1:r.sent(),r.label=2;case 2:return t.resolve(n),[3,4];case 3:return i=r.sent(),t.reject(i),[3,4];case 4:return[2]}var o}))}))}var le=function(){function e(e){var t=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=J.r,this._preInitBuffer=new ce,this._promise=e(this._preInitBuffer),this._promise.then((function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r})).catch((function(){}))}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.instance){var o=(n=t.instance)[e].apply(n,r);return Promise.resolve(o)}return new Promise((function(n,i){t._preInitBuffer.add(new se(e,r,n,i))}))}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.add(new se(e,r)),t)}},e}(),de=n(8484),pe=n(7745),fe=function(e){var t=!1;window.addEventListener("pagehide",(function(){t||e(t=!0)})),document.addEventListener("visibilitychange",(function(){if("hidden"==document.visibilityState){if(t)return;t=!0}else t=!1;e(t)}))},he=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t)||this;return i.retryTimeout=n,i.isRetryableWithoutCount=r,i.name="RateLimitError",i}return(0,r.C6)(t,e),t}(Error),ge=function(e){return(0,r.Cl)({"Content-Type":"text/plain"},"function"==typeof e?e():e)},ve={408:"retry",410:"retry",429:"retry",460:"retry",501:"drop",505:"drop",511:"drop"};function me(e,t,n,r){var i=null!=e?e:t;return Math.min(Math.max(i,n),r)}function ye(e,t){var n;if(429!==e.status)return null;var r=null===(n=e.headers)||void 0===n?void 0:n.get("Retry-After");if(!r)return null;var i=parseInt(r,10);return Number.isNaN(i)?null:{retryAfterMs:1e3*Math.max(0,Math.min(i,t.maxRetryInterval)),fromHeader:!0}}function we(e,t){return t.statusCodeOverrides[String(e)]||(e>=500?t.default5xxBehavior:e>=400?t.default4xxBehavior:"drop")}function be(e,t){var n,i,o,a,s=e||t?{rateLimitConfig:(0,r.Cl)((0,r.Cl)({},null==e?void 0:e.rateLimitConfig),null==t?void 0:t.rateLimitConfig),backoffConfig:(0,r.Cl)((0,r.Cl)((0,r.Cl)({},null==e?void 0:e.backoffConfig),null==t?void 0:t.backoffConfig),{statusCodeOverrides:(0,r.Cl)((0,r.Cl)({},null===(n=null==e?void 0:e.backoffConfig)||void 0===n?void 0:n.statusCodeOverrides),null===(i=null==t?void 0:t.backoffConfig)||void 0===i?void 0:i.statusCodeOverrides)})}:void 0,c=null==s?void 0:s.rateLimitConfig,u=null==s?void 0:s.backoffConfig;return{rateLimitConfig:{maxRetryCount:me(null==c?void 0:c.maxRetryCount,10,0,100),maxRetryInterval:me(null==c?void 0:c.maxRetryInterval,300,.1,86400),maxRateLimitDuration:me(null==c?void 0:c.maxRateLimitDuration,43200,10,86400)},backoffConfig:{maxRetryCount:me(null==u?void 0:u.maxRetryCount,10,0,100),baseBackoffInterval:me(null==u?void 0:u.baseBackoffInterval,.5,.1,300),maxBackoffInterval:me(null==u?void 0:u.maxBackoffInterval,60,.1,86400),maxTotalBackoffDuration:me(null==u?void 0:u.maxTotalBackoffDuration,43200,60,604800),jitterPercent:me(null==u?void 0:u.jitterPercent,10,0,100),default4xxBehavior:null!==(o=null==u?void 0:u.default4xxBehavior)&&void 0!==o?o:"drop",default5xxBehavior:null!==(a=null==u?void 0:u.default5xxBehavior)&&void 0!==a?a:"retry",statusCodeOverrides:(0,r.Cl)((0,r.Cl)({},ve),null==u?void 0:u.statusCodeOverrides)}}}var Ce=500,ke=64;function xe(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function _e(e){return xe(e)>=Ce-50}function Se(e,t,n,i,o){var a,s=e.user();delete t.options,t.writeKey=null==n?void 0:n.apiKey,t.userId=t.userId||s.id(),t.anonymousId=t.anonymousId||s.anonymousId(),t.sentAt=new Date;var c=e.queue.failedInitializations||[];c.length>0&&(t._metadata={failedInitializations:c}),null!=o&&(o.attempts>1&&(t._metadata=(0,r.Cl)((0,r.Cl)({},t._metadata),{retryCount:o.attempts})),o.attempts++);var u=[],l=[];for(var d in i){var p=i[d];"Segment.io"===d&&u.push(d),"bundled"===p.bundlingStatus&&u.push(d),"unbundled"===p.bundlingStatus&&l.push(d)}for(var f=0,h=(null==n?void 0:n.unbundledIntegrations)||[];f<h.length;f++){var g=h[f];l.includes(g)||l.push(g)}var v=null!==(a=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==a?a:{},m=[];return u.sort().forEach((function(e){var t;(null!==(t=v[e])&&void 0!==t?t:[]).forEach((function(e){m.push(e)}))})),!1!==(null==n?void 0:n.addBundledMetadata)&&(t._metadata=(0,r.Cl)((0,r.Cl)({},t._metadata),{bundled:u.sort(),unbundled:l.sort(),bundledIds:m})),t}var Pe=n(6874);function Ee(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i=this;return(0,r.YH)(this,(function(o){switch(o.label){case 0:return n=[],(0,u.a)()?[2,t]:[4,(0,Pe._)((function(){return t.length>0&&!(0,u.a)()}),(function(){return(0,r.sH)(i,void 0,void 0,(function(){var i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return(i=t.pop())?[4,(0,T.C)(i,e)]:[2];case 1:return r.sent()instanceof l.o||n.push(i),[2]}}))}))}))];case 1:return o.sent(),n.map((function(e){return t.pushWithBackoff(e)})),[2,t]}}))}))}function Ae(e,t,n,i){var o=this;e||setTimeout((function(){return(0,r.sH)(o,void 0,void 0,(function(){var e,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e=!0,[4,Ee(n,t)];case 1:return o=r.sent(),e=!1,t.todo>0&&i(e,o,n,i),[2]}}))}))}),500*Math.random()+100)}var Oe=n(146),Ie=function(e){return"Segment.io"===e.name};function Te(e,t,n){var i,o,a,s;window.addEventListener("pagehide",(function(){d.push.apply(d,Array.from(p)),p.clear()}));var c=null!==(i=null==t?void 0:t.apiKey)&&void 0!==i?i:"",d=e.options.disableClientPersistence?new O.M(e.queue.queue.maxAttempts,[]):new A.x(e.queue.queue.maxAttempts,"".concat(c,":dest-Segment.io")),p=new Set,f=new WeakMap,h=!1,g=null!==(o=null==t?void 0:t.apiHost)&&void 0!==o?o:Oe.a,v=null!==(a=null==t?void 0:t.protocol)&&void 0!==a?a:"https",m="".concat(v,"://").concat(g),y=null===(s=null==n?void 0:n["Segment.io"])||void 0===s?void 0:s.httpConfig,w=be(null==t?void 0:t.httpConfig,y);!1!==e.options.retryQueue&&(d.maxAttempts=w.backoffConfig.maxRetryCount);var b,C,k=null==t?void 0:t.deliveryStrategy,x=k&&"strategy"in k&&"batching"===k.strategy?function(e,t,n,i){var o,a;void 0===i&&(i="https");var s,c=[],u=!1,d=null!==(o=null==t?void 0:t.size)&&void 0!==o?o:10,p=null!==(a=null==t?void 0:t.timeout)&&void 0!==a?a:5e3,f=null!=n?n:be(),h=0,g=0,v=!1,m=!1,y=0,w=0,b=0;function C(n,o){var a;if(0!==n.length){var s=null===(a=n[0])||void 0===a?void 0:a.writeKey,c=n.map((function(e){var t=e;return t.sentAt,(0,r.Tt)(t,["sentAt"])})),l=ge(null==t?void 0:t.headers);if(o>0&&(l["X-Retry-Count"]=String(o)),s){var d=btoa(s+":");l.Authorization="Basic ".concat(d)}var p=e.startsWith("http://")||e.startsWith("https://")?"":"".concat(i,"://");return(0,pe.h)("".concat(p).concat(e,"/b"),{credentials:null==t?void 0:t.credentials,keepalive:(null==t?void 0:t.keepalive)||u,headers:l,method:"post",body:JSON.stringify({writeKey:s,batch:c,sentAt:(new Date).toISOString()}),priority:null==t?void 0:t.priority}).then((function(e){var t=e.status;if(!(t<400)){var n=we(t,f.backoffConfig);if("drop"!==n){var r=ye(e,f.rateLimitConfig);if(r)throw new he("Rate limit exceeded: ".concat(t),r.retryAfterMs,r.fromHeader)}if("retry"===n)throw new Error("Retryable error: ".concat(t))}}))}}function k(){c.length>0&&_(1)}function x(e){var n;return void 0===e&&(e=1),(0,r.sH)(this,void 0,void 0,(function(){var i,o,a,s;return(0,r.YH)(this,(function(u){return v||(g=0,y=0,w=0,b=0),v=!1,m=!0,c.length?(i=function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n],o=(0,r.fX)((0,r.fX)([],t,!0),[i],!1);if(t.length>0&&_e(o))return{batch:t,remaining:e.slice(n)};t.push(i)}return{batch:t,remaining:[]}}(c),o=i.batch,a=i.remaining,0===o.length?(m=!1,[2]):(c=a,s=g,g+=1,[2,null===(n=C(o,s))||void 0===n?void 0:n.then((function(e){return c.length>0&&_(1),e})).catch((function(n){var i;l.o.system().log("error","Error sending batch",n);var a,s=null!==(i=null==t?void 0:t.maxRetries)&&void 0!==i?i:f.backoffConfig.maxRetryCount,u="RateLimitError"===n.name,d=u&&n.isRetryableWithoutCount;if(!(d||e<=s))return k();if(d){if(++y>f.rateLimitConfig.maxRetryCount)return k();var p=n.retryTimeout;b+=p;var g=1e3*f.rateLimitConfig.maxRateLimitDuration;if(b>g)return k();h=p}if(!u){a=function(e,t){var n=1e3*t.baseBackoffInterval,r=1e3*t.maxBackoffInterval,i=n*Math.pow(2,e-1),o=Math.min(i,r),a=1+2*(Math.random()-.5)*(t.jitterPercent/100);return Math.max(0,o*a)}(e,f.backoffConfig),w+=a;var m=1e3*f.backoffConfig.maxTotalBackoffDuration;if(w>m)return k()}c=(0,r.fX)((0,r.fX)([],o,!0),c,!0),o.forEach((function(t){if("_metadata"in t){var n=t;n._metadata=(0,r.Cl)((0,r.Cl)({},n._metadata),{retryCount:e})}})),v=!0,_(d?e:e+1,a)})).finally((function(){m=!1}))])):(m=!1,[2])}))}))}function _(e,t){void 0===e&&(e=1),s||(s=setTimeout((function(){s=void 0,x(e).catch(console.error)}),h||t||p),h=0)}return fe((function(e){if((u=e)&&c.length){var t=function(e){var t=[],n=0;return e.forEach((function(e){xe(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]})),t}(c).map((function(e){return C(e,0)}));Promise.all(t).catch(console.error)}})),{dispatch:function(e,n,i){return(0,r.sH)(this,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(r){return c.push(n),v?[2]:(e=c.length>=d||_e(c)||(null==t?void 0:t.keepalive)&&function(e){return xe(e)>=ke-10}(c),e||u?[2,m?_():x()]:[2,_()])}))}))}}}(g,k.config,w,v):(b=null==k?void 0:k.config,C=w,{dispatch:function(e,t,n){var r=ge(null==b?void 0:b.headers),i=null==t?void 0:t.writeKey;if(i){var o=btoa(i+":");r.Authorization="Basic ".concat(o)}return n&&(r["X-Retry-Count"]=String(n)),(0,pe.h)(e,{credentials:null==b?void 0:b.credentials,keepalive:null==b?void 0:b.keepalive,headers:r,method:"post",body:JSON.stringify(t),priority:null==b?void 0:b.priority}).then((function(e){var t=e.status;if(!(t<400)){var n=null!=C?C:be(),r=we(t,n.backoffConfig);if("drop"!==r){var i=ye(e,n.rateLimitConfig);if(i)throw new he("Rate limit exceeded: ".concat(t),i.retryAfterMs,i.fromHeader)}if("retry"===r)throw new Error("Retryable error: ".concat(t));var o=new Error("Non-retryable error: ".concat(t));throw o.name="NonRetryableError",o}}))}});function _(i){return(0,r.sH)(this,void 0,void 0,(function(){var o,a,s,c;return(0,r.YH)(this,(function(r){return(0,u.a)()?(d.push(i),Ae(h,d,S,Ae),[2,i]):(p.add(i),o=i.event.type.charAt(0),a=(0,de.W)(i.event).json(),"track"===i.event.type&&delete a.traits,"alias"===i.event.type&&(a=function(e,t){var n,r,i,o,a=e.user();return t.previousId=null!==(i=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==i?i:a.anonymousId(),t.userId=null!==(o=t.userId)&&void 0!==o?o:t.to,delete t.from,delete t.to,t}(e,a)),(s=d.getAttempts(i))>=d.maxAttempts?(p.delete(i),c=new Error("Retry attempts exhausted (".concat(s,"/").concat(d.maxAttempts,")")),i.setFailedDelivery({reason:c}),e.emit("error",{code:"delivery_failure",reason:c,ctx:i}),[2,i]):[2,x.dispatch("".concat(m,"/").concat(o),Se(e,a,t,n,i),s).then((function(){return i})).catch((function(t){var n;if(i.log("error","Error sending event",t),"RateLimitError"===t.name){var r=(null!==(n=f.get(i))&&void 0!==n?n:0)+1;if(f.set(i,r),r>w.rateLimitConfig.maxRetryCount)i.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:i});else{var o=t.retryTimeout;d.pushWithDelay(i,o)}}else"NonRetryableError"===t.name?(i.setFailedDelivery({reason:t}),e.emit("error",{code:"delivery_failure",reason:t,ctx:i})):d.pushWithBackoff(i);return Ae(h,d,S,Ae),i})).finally((function(){p.delete(i)}))])}))}))}var S={metadata:{writeKey:c,apiHost:g,protocol:v},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:_,identify:_,page:_,alias:_,group:_,screen:_};return d.todo&&Ae(h,d,S,Ae),S}var Me="This is being deprecated and will be not be available in future releases of Analytics JS",je=(0,X.m)(),De=null==je?void 0:je.analytics,Le=function(){function e(e,t){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var e;return null===(e=t.plugins.find(Ie))||void 0===e?void 0:e.metadata},this.writeKey=e.writeKey,this.cdnSettings=null!==(n=e.cdnSettings)&&void 0!==n?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=e.cdnURL}return Object.defineProperty(e.prototype,"apiHost",{get:function(){var e,t;return null===(t=null===(e=this._getSegmentPluginMetadata)||void 0===e?void 0:e.call(this))||void 0===t?void 0:t.apiHost},enumerable:!1,configurable:!0}),e}();function Ne(){console.warn(Me)}var Re=function(e){function t(t,n,i,o,a){var s,c,u=this;(u=e.call(this)||this)._debug=!1,u.initialized=!1,u.user=function(){return u._user},u.init=u.initialize.bind(u),u.log=Ne,u.addIntegrationMiddleware=Ne,u.listeners=Ne,u.addEventListener=Ne,u.removeAllListeners=Ne,u.removeListener=Ne,u.removeEventListener=Ne,u.hasListeners=Ne,u.add=Ne,u.addIntegration=Ne;var l=null==n?void 0:n.cookie,d=null!==(s=null==n?void 0:n.disableClientPersistence)&&void 0!==s&&s;u.queue=null!=i?i:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?10:1,i=n?new O.M(r,[]):new A.x(r,e);return new j(i)}("".concat(t.writeKey,":event-queue"),null==n?void 0:n.retryQueue,d),u.settings=new Le(t,u.queue);var p=null==n?void 0:n.storage;return u._universalStorage=u.createStore(d,p,l),u._user=null!=o?o:new $((0,r.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.user),l).load(),u._group=null!=a?a:new G((0,r.Cl)({persist:!d,storage:null==n?void 0:n.storage},null==n?void 0:n.group),l).load(),u.eventFactory=new P(u._user),u.integrations=null!==(c=null==n?void 0:n.integrations)&&void 0!==c?c:{},u.options=null!=n?n:{},D(u),u}return(0,r.C6)(t,e),t.prototype.createStore=function(e,t,n){return e?new R([new H]):t&&B(t)?new R(q(W(t.stores,n))):new R(q([L.LocalStorage,{name:L.Cookie,settings:n},L.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,a,s,c,u,l=this;return(0,r.YH)(this,(function(r){return t=oe(e),n=o.apply(void 0,e),i=n[0],a=n[1],s=n[2],c=n[3],u=this.eventFactory.track(i,a,s,this.integrations,t),[2,this._dispatch(u,c).then((function(e){return l.emit("track",i,e.event.properties,e.event.options),e}))]}))}))},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,o,s,c,u,l,d=this;return(0,r.YH)(this,(function(r){return t=oe(e),n=a.apply(void 0,e),i=n[0],o=n[1],s=n[2],c=n[3],u=n[4],l=this.eventFactory.page(i,o,s,c,this.integrations,t),[2,this._dispatch(l,u).then((function(e){return d.emit("page",i,o,e.event.properties,e.event.options),e}))]}))}))},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,o,a,c,u,l=this;return(0,r.YH)(this,(function(r){return t=oe(e),n=s(this._user).apply(void 0,e),i=n[0],o=n[1],a=n[2],c=n[3],this._user.identify(i,o),u=this.eventFactory.identify(this._user.id(),this._user.traits(),a,this.integrations,t),[2,this._dispatch(u,c).then((function(e){return l.emit("identify",e.event.userId,e.event.traits,e.event.options),e}))]}))}))},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=oe(t);if(0===t.length)return this._group;var i=s(this._group).apply(void 0,t),o=i[0],a=i[1],c=i[2],u=i[3];this._group.identify(o,a);var l=this._group.id(),d=this._group.traits(),p=this.eventFactory.group(l,d,c,this.integrations,r);return this._dispatch(p,u).then((function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t}))},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,o,a,s,u,l=this;return(0,r.YH)(this,(function(r){return t=oe(e),n=c.apply(void 0,e),i=n[0],o=n[1],a=n[2],s=n[3],u=this.eventFactory.alias(i,o,a,this.integrations,t),[2,this._dispatch(u,s).then((function(e){return l.emit("alias",i,o,e.event.options),e}))]}))}))},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i,o,s,c,u,l,d=this;return(0,r.YH)(this,(function(r){return t=oe(e),n=a.apply(void 0,e),i=n[0],o=n[1],s=n[2],c=n[3],u=n[4],l=this.eventFactory.screen(i,o,s,c,this.integrations,t),[2,this._dispatch(l,u).then((function(e){return d.emit("screen",i,o,e.event.properties,e.event.options),e}))]}))}))},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(o){switch(o.label){case 0:return[4,n.e(248).then(n.bind(n,7979))];case 1:return t=o.sent(),[2,(i=t.link).call.apply(i,(0,r.fX)([this],e,!1))]}}))}))},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(o){switch(o.label){case 0:return[4,n.e(248).then(n.bind(n,7979))];case 1:return t=o.sent(),[2,(i=t.link).call.apply(i,(0,r.fX)([this],e,!1))]}}))}))},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(o){switch(o.label){case 0:return[4,n.e(248).then(n.bind(n,7979))];case 1:return t=o.sent(),[2,(i=t.form).call.apply(i,(0,r.fX)([this],e,!1))]}}))}))},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(o){switch(o.label){case 0:return[4,n.e(248).then(n.bind(n,7979))];case 1:return t=o.sent(),[2,(i=t.form).call.apply(i,(0,r.fX)([this],e,!1))]}}))}))},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=l.o.system(),n=e.map((function(e){return i.queue.register(t,e,i)})),[4,Promise.all(n)];case 1:return r.sent(),[2,t]}}))}))},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.sH)(this,void 0,void 0,(function(){var t,n,i=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return t=l.o.system(),n=e.map((function(e){var n=i.queue.plugins.find((function(t){return t.name===e}));if(n)return i.queue.deregister(t,n,i);t.log("warn","plugin ".concat(e," not found"))})),[4,Promise.all(n)];case 1:return r.sent(),[2,t]}}))}))},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(r){return(n=new l.o(e)).stats.increment("analytics_js.invoke",1,[e.type]),(0,u.a)()&&!this.options.retryQueue?[2,n]:[2,p(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]}))}))},t.prototype.addSourceMiddleware=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t=this;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return[4,this.queue.criticalTasks.run((function(){return(0,r.sH)(t,void 0,void 0,(function(){var t,i,o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,Promise.resolve().then(n.bind(n,2189))];case 1:return t=r.sent().sourceMiddlewarePlugin,i={},this.queue.plugins.forEach((function(e){if("destination"===e.type)return i[e.name]=!0})),o=t(e,i),[4,this.register(o)];case 2:return r.sent(),[2]}}))}))}))];case 1:return i.sent(),[2,this]}}))}))},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter(E).forEach((function(n){"*"!==e&&n.name.toLowerCase()!==e.toLowerCase()||n.addMiddleware.apply(n,t)})),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,n.e(538).then(n.bind(n,6285))];case 1:return[2,(0,t.sent().queryString)(this,e)]}}))}))},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,Promise.all(this.queue.plugins.map((function(e){return e.ready?e.ready():Promise.resolve()}))).then((function(t){return e(t),t}))]}))}))},t.prototype.noConflict=function(){return console.warn(Me),(0,Q.Ud)(null!=De?De:this),this},t.prototype.normalize=function(e){return console.warn(Me),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(Me),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return J.r},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){return console.warn(Me),[2,Promise.resolve(this)]}))}))},t.prototype.pageview=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return console.warn(Me),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}}))}))},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(Me),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(Me),this.queue.plugins.filter((function(e){return"destination"===e.type})).reduce((function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?(e[t.name]=i,e):(e[t.name]=r,e)}),{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}(f.v),He=function(e){function t(){var t=e.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return t.initialized=!0,t}return(0,r.C6)(t,e),t}(Re);function Be(){return"undefined"!=typeof process&&process.env?process.env:{}}var Fe,Ve=n(1031),ze=n(9087),Ue=n(3284),qe=n(2151);function We(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch((function(){return t.toJSON()}))]:[2,t.toJSON()]:[2,void 0]}))}))}function Ye(){if(Fe)return Fe;var e=V(window.location.href);return Fe={expires:31536e6,secure:!1,path:"/"},e&&(Fe.domain=e),Fe}var $e,Ke,Ge=new function(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(t,n){return(0,r.sH)(e,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(t){switch(t.label){case 0:this.instance=n,t.label=1;case 1:return t.trys.push([1,3,,4]),e=this,[4,We(this.instance.options.highEntropyValuesClientHints)];case 2:return e.userAgentData=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2,Promise.resolve()]}}))}))},this.enrich=function(t){var n,i,o=t.event.context,a=o.page.search||"",s="object"==typeof a?function(e){try{var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var n=e[0],r=e[1];Array.isArray(r)?r.forEach((function(e){return t.append(n,e)})):t.append(n,r)})),t.toString()}catch(e){return""}}(a):a;o.userAgent=navigator.userAgent,o.userAgentData=e.userAgentData;var c=navigator.userLanguage||navigator.language;void 0===o.locale&&void 0!==c&&(o.locale=c),null!==(n=o.library)&&void 0!==n||(o.library={name:"analytics.js",version:"".concat("web"===(0,Z.X)()?"next":"npm:next","-").concat(J.r)}),s&&!o.campaign&&(o.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1],o=void 0===i?"":i;if(r.includes("utm_")&&r.length>4){var a=r.slice(4);"campaign"===a&&(a="name"),e[a]=(0,qe.p)(o)}return e}),{})}(s));var u=function(){var e=F.A.get("_ga");if(e&&e.startsWith("amp"))return e}();u&&(o.amp={id:u}),function(e,t,n){var i,o=new R(n?[]:[new z(Ye())]),a=o.get("s:context.referrer"),s=null!==(i=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var i=r[n].split("="),o=i[0],a=i[1];if(t[o])return{id:a,type:t[o]}}}(e))&&void 0!==i?i:a;s&&(t&&(t.referrer=(0,r.Cl)((0,r.Cl)({},t.referrer),s)),o.set("s:context.referrer",s))}(s,o,null!==(i=e.instance.options.disableClientPersistence)&&void 0!==i&&i);try{o.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}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},Je=n(4242),Xe=n(2189),Qe=n(8454),Ze=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,Ue.u)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(n){switch(n.label){case 0:return[4,(0,Xe.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new I.d({retry:!1,reason:"dropped by destination middleware"})),[2,new l.o(t)]}}))}))},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,r.sH)(t,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=r.sent(),r.label=2;case 2:return r.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!r.sent())throw new Error("Something prevented the destination from getting ready");return(0,Qe.y)(n,{integrationName:this.action.name,methodName:e,type:"action"}),[4,this.action[e](t)];case 4:return r.sent(),[3,6];case 5:throw i=r.sent(),(0,Qe.y)(n,{integrationName:this.action.name,methodName:e,type:"action",didError:!0}),i;case 6:return[2,n]}}))}))}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return e.sent(),[2,!0];case 2:return e.sent(),[2,!1];case 3:return[2]}}))}))},e.prototype.load=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i,o,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];r.label=1;case 1:return r.trys.push([1,3,,4]),(0,Qe.y)(e,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(e,t),o=(i=this.loadPromise).resolve,[4,n];case 2:return o.apply(i,[r.sent()]),[2,n];case 3:throw a=r.sent(),(0,Qe.y)(e,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(a),a;case 4:return[2]}}))}))},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function et(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i,o,a,s,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,9,,10]),n=new RegExp("https://cdn.segment.(com|build)"),i=(0,Ve.I2)(),!t)return[3,6];o=e.url.split("/"),a=o[o.length-2],s=e.url.replace(a,btoa(a).replace(/=/g,"")),r.label=1;case 1:return r.trys.push([1,3,,5]),[4,(0,Je.k)(s.replace(n,i))];case 2:return r.sent(),[3,5];case 3:return r.sent(),[4,(0,Je.k)(e.url.replace(n,i))];case 4:return r.sent(),[3,5];case 5:return[3,8];case 6:return[4,(0,Je.k)(e.url.replace(n,i))];case 7:r.sent(),r.label=8;case 8:return"function"==typeof window[e.libraryName]?[2,window[e.libraryName]]:[3,10];case 9:throw c=r.sent(),console.error("Failed to create PluginFactory",e),c;case 10:return[2]}}))}))}function tt(e,t,n,i,o,a){var s,c,u;return(0,r.sH)(this,void 0,void 0,(function(){var d,p,f,h=this;return(0,r.YH)(this,(function(g){switch(g.label){case 0:return d=[],p=null!==(c=null===(s=e.middlewareSettings)||void 0===s?void 0:s.routingRules)&&void 0!==c?c:[],f=(null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map((function(e){return(0,r.sH)(h,void 0,void 0,(function(){var s,c,u,f,h,g,v;return(0,r.YH)(this,(function(m){switch(m.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];m.label=1;case 1:return m.trys.push([1,6,,7]),(c=null==a?void 0:a.find((function(t){return t.pluginName===e.name})))?[3,3]:[4,et(e,null==i?void 0:i.obfuscate)];case 2:c=m.sent(),m.label=3;case 3:return(s=c)?(u=n[e.name],[4,s((0,r.Cl)((0,r.Cl)({},e.settings),u))]):[3,5];case 4:f=m.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach((function(e){t.forEach((function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))}))}))}(h=Array.isArray(f)?f:[f]),g=p.filter((function(t){return t.destinationName===e.creationName})),h.forEach((function(t){var n=new Ze(e.creationName,t);g.length&&o&&n.addMiddleware(o),d.push(n)})),m.label=5;case 5:return[3,7];case 6:return v=m.sent(),console.warn("Failed to load Remote Plugin",v),(0,Qe.y)(l.o.system(),{integrationName:e.name,methodName:"load",type:"action",didError:!0}),[3,7];case 7:return[2]}}))}))})),[4,Promise.all(f)];case 1:return g.sent(),[2,d.filter(Boolean)]}}))}))}var nt=null!==($e=(Ke=(0,X.m)()).__SEGMENT_INSPECTOR__)&&void 0!==$e?$e:Ke.__SEGMENT_INSPECTOR__={},rt=n(8103);function it(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,ot(e,t)];case 1:return r.sent(),function(e,t){Object.keys(t.calls).forEach((function(n){t.getAndRemove(n).forEach((function(t){setTimeout((function(){ue(e,t).catch(console.error)}),0)}))}))}(e,n),[2]}}))}))}var ot=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){switch(n.label){case 0:return t.includes("ajs_")?[4,e.queryString(t).catch(console.error)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))};function at(e,t,i,o,a,s,c){var u,l,d;return void 0===a&&(a=[]),(0,r.sH)(this,void 0,void 0,(function(){var p,f,h,g,v,m,y,w,b,C,k,x,_,S,P=this;return(0,r.YH)(this,(function(E){switch(E.label){case 0:return function(e,t){ie(e,t),re(e,t)}(i,c),p=null==a?void 0:a.filter((function(e){return"object"==typeof e})),f=null==a?void 0:a.filter((function(e){return"function"==typeof e&&"string"==typeof e.pluginName})),function(e){var t,n,r;return"test"!==Be().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,Promise.resolve().then(n.bind(n,2067)).then((function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)}))]:[3,2];case 1:return g=E.sent(),[3,3];case 2:g=void 0,E.label=3;case 3:return h=g,A=t,"test"!==Be().NODE_ENV&&Object.keys(A.integrations).length>1||s.length>0?[4,Promise.resolve().then(n.bind(n,9092)).then((function(n){return n.ajsDestinations(e,t,i.integrations,o,h,s)}))]:[3,5];case 4:return m=E.sent(),[3,6];case 5:m=[],E.label=6;case 6:return v=m,t.legacyVideoPluginsEnabled?[4,n.e(694).then(n.bind(n,3310)).then((function(e){return e.loadLegacyVideoPlugins(i)}))]:[3,8];case 7:E.sent(),E.label=8;case 8:return(null===(u=o.plan)||void 0===u?void 0:u.track)?[4,Promise.resolve().then(n.bind(n,7069)).then((function(e){var n;return e.schemaFilter(null===(n=o.plan)||void 0===n?void 0:n.track,t)}))]:[3,10];case 9:return w=E.sent(),[3,11];case 10:w=void 0,E.label=11;case 11:return y=w,b=(0,ze.J)(t,o),[4,tt(t,i.integrations,b,o,h,f).catch((function(e){return console.error("Failed to load remote plugins",e),[]}))];case 12:return C=E.sent(),k=(0,r.fX)((0,r.fX)([Ge],v,!0),C,!0),y&&k.push(y),!1===(null===(l=o.integrations)||void 0===l?void 0:l.All)&&!o.integrations["Segment.io"]||o.integrations&&!1===o.integrations["Segment.io"]?[3,14]:(_=(x=k).push,[4,Te(i,b["Segment.io"],t.integrations)]);case 13:_.apply(x,[E.sent()]),E.label=14;case 14:return[4,i.register.apply(i,(0,r.fX)((0,r.fX)([],k,!1),p,!1))];case 15:return S=E.sent(),[4,ne(i,c)];case 16:return E.sent(),Object.entries(null!==(d=t.enabledMiddleware)&&void 0!==d?d:{}).some((function(e){return e[1]}))?[4,n.e(521).then(n.bind(n,9239)).then((function(e){var n=e.remoteMiddlewares;return(0,r.sH)(P,void 0,void 0,(function(){var e,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,n(S,t,o.obfuscate)];case 1:return e=r.sent(),a=e.map((function(e){return i.addSourceMiddleware(e)})),[2,Promise.all(a)]}}))}))}))]:[3,18];case 17:E.sent(),E.label=18;case 18:return[4,te(i,c)];case 19:return E.sent(),[2,S]}var A}))}))}var st=function(e){function t(){var t=this,n=(0,Ue.u)(),i=n.promise,o=n.resolve;return t=e.call(this,(function(e){return i.then((function(t){return function(e,t,n){var i,o,a,s,c,u,d,p,f;return void 0===t&&(t={}),(0,r.sH)(this,void 0,void 0,(function(){var h,g,v,m,y,w,b,C,k,x;return(0,r.YH)(this,(function(_){switch(_.label){case 0:return!0===t.disable?[2,[new He,l.o.system()]]:(t.globalAnalyticsKey&&(0,Q.rY)(t.globalAnalyticsKey),e.cdnURL&&(0,Ve.qQ)(e.cdnURL),t.initialPageview&&n.add(new se("page",[])),h=function(){var e,t,n=null!==(e=window.location.hash)&&void 0!==e?e:"",r=null!==(t=window.location.search)&&void 0!==t?t:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")}(),g=null!==(i=e.cdnURL)&&void 0!==i?i:(0,Ve.I2)(),null===(o=e.cdnSettings)||void 0===o?[3,1]:(m=o,[3,3]));case 1:return[4,(S=e.writeKey,P=g,(0,pe.h)("".concat(P,"/v1/projects/").concat(S,"/settings")).then((function(e){return e.ok?e.json():e.text().then((function(e){throw new Error(e)}))})).catch((function(e){throw console.error(e.message),e})))];case 2:m=_.sent(),_.label=3;case 3:return v=m,t.updateCDNSettings&&(v=t.updateCDNSettings(v)),"function"!=typeof t.disable?[3,5]:[4,t.disable(v)];case 4:if(_.sent())return[2,[new He,l.o.system()]];_.label=5;case 5:return y=null===(s=null===(a=v.integrations["Segment.io"])||void 0===a?void 0:a.retryQueue)||void 0===s||s,t=(0,r.Cl)({retryQueue:y},t),function(e){var t;null===(t=nt.attach)||void 0===t||t.call(nt,e)}(w=new Re((0,r.Cl)((0,r.Cl)({},e),{cdnSettings:v,cdnURL:g}),t)),b=null!==(c=e.plugins)&&void 0!==c?c:[],C=null!==(u=e.classicIntegrations)&&void 0!==u?u:[],k=null===(d=t.integrations)||void 0===d?void 0:d["Segment.io"],rt.U.initRemoteMetrics((0,r.Cl)((0,r.Cl)({},v.metrics),{host:null!==(p=null==k?void 0:k.apiHost)&&void 0!==p?p:null===(f=v.metrics)||void 0===f?void 0:f.host,protocol:null==k?void 0:k.protocol})),[4,at(e.writeKey,v,w,t,b,C,n)];case 6:return x=_.sent(),w.initialized=!0,w.emit("initialize",e,t),[4,it(w,h,n)];case 7:return _.sent(),[2,[w,x]]}var S,P}))}))}(t[0],t[1],e)}))}))||this,t._resolveLoadStart=function(e,t){return o([e,t])},t}return(0,r.C6)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then((function(e){return e[0]}))},t}(le),ct=function(){function e(){}return e.load=function(){return Promise.reject(new Error("AnalyticsNode is not available in browsers."))},e}()},1203:e=>{const t=new Set(["cls","fid","lcp","inp","fcp","ttfb"]);e.exports=class{constructor(){this._metricsCollection=new Set,this._latestMetrics={}}addMetric(e){if(!this._isCoreVitalMetric(e))return;const t=this._getTrackingMetric(e),n=this._getLatestTrackingMetric(e);this._metricsCollection.add(t),this._latestMetrics[t.name]=n}getAllMetrics(){return{allMetrics:[...this._metricsCollection],latest:{...this._latestMetrics}}}newMetricsAvailable(){return this._metricsCollection.size>0}clear(){this._metricsCollection.clear()}_isCoreVitalMetric(e){return e.name&&t.has(e.name.toLowerCase())}_getTrackingMetric(e){const{id:t,name:n,value:r,delta:i,navigationType:o}=e;return{id:t,name:n.toLowerCase(),value:r,delta:i,navigationType:o}}_getLatestTrackingMetric(e){const{id:t,value:n,delta:r,navigationType:i}=e;return{id:t,value:n,delta:r,navigationType:i}}}}
2,1272:(e,t,n)=>{const{addApiHost:r}=n(7962);e.exports={prepareIntegrations:function(e){const t={All:!0};return e&&r(t,"Segment.io",e),t}}},1321:(e,t,n)=>{const{initAnalyticsNext:r}=n(2503);e.exports={init:function(e){r(e)}}},1375:(e,t,n)=>{(0,n(1063).w)(1)},1389:e=>{let t=null;function n(){t=null}"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.addEventListener("resize",(()=>{n()})),e.exports={getTimezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){console.log("Tracking: Retrieve of timezone failed")}},getViewPortDimensions:function(){return t||(t={width:Math.max(document?.documentElement?.clientWidth??0,window?.innerWidth??0),height:Math.max(document?.documentElement?.clientHeight??0,window?.innerHeight??0)}),t},resetViewPortDimensionsCache:n}},1435:e=>{e.exports={version:"11.21.2333"}},1496:(e,t,n)=>{"use strict";n.d(t,{r:()=>r});var r="1.84.1"},1635:(e,t,n)=>{"use strict";n.d(t,{C6:()=>i,Cl:()=>o,Tt:()=>a,YH:()=>c,fX:()=>u,sH:()=>s});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError},1665:e=>{"use strict";e.exports=o},1895:(e,t,n)=>{"use strict";n.d(t,{X:()=>i});var r="npm";function i(){return r}},2067:(e,t,n)=>{"use strict";n.r(t),n.d(t,{tsubMiddleware:()=>i});var r=n(9336),i=function(e){return function(t){var n=t.payload,i=t.integration,o=t.next;new r.Store(e).getRulesByDestinationName(i).forEach((function(e){for(var t=e.matchers,i=e.transformers,a=0;a<t.length;a++)if(r.matches(n.obj,t[a])&&(n.obj=r.transform(n.obj,i[a]),null===n.obj))return o(null)})),o(n)}}},2092:e=>{e.exports={getParameters:function(e,t){const n={};
2try{const r=new URL(e).searchParams;for(let e=0;e<t.length;e++){const i=t[e];n[i]=r.get(i)||""}}catch(t){console.error("Url parsing failed:",e)}return n}}},2151:(e,t,n)=>{"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{p:()=>r})},2189:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:()=>a,sourceMiddlewarePlugin:()=>s});var r=n(1635),i=n(789),o=n(8484);function a(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){function i(t,n){return(0,r.sH)(this,void 0,void 0,(function(){var i,a,s;return(0,r.YH)(this,(function(c){switch(c.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.W)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return c.sent(),i||null===a||(a.integrations=(0,r.Cl)((0,r.Cl)({},t.integrations),((s={})[e]=!1,s))),[2,a]}}))}))}var a,s,c,u,l;return(0,r.YH)(this,(function(e){switch(e.label){case 0:a=(0,o.W)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,c=n,e.label=1;case 1:return s<c.length?(u=c[s],[4,i(a,u)]):[3,4];case 2:if(null===(l=e.sent()))return[2,null];a=l,e.label=3;case 3:return s++,[3,1];case 4:return[2,a]}}))}))}function s(e,t){function n(n){return(0,r.sH)(this,void 0,void 0,(function(){var a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return a=!1,[4,e({payload:(0,o.W)(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){a=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!a)throw new i.d({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}}))}))}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,screen:n,identify:n,alias:n,group:n}}},2323:(e,t,n)=>{const r=n(9248),i=n(707),o=n(1321),a=n(2632),s=n(175),{version:c}=n(1435),u=n(8505),l=n(9675);e.exports={init:function(e,t){if(console.log(`@vp/tracking:${c}`),!e||!e.writeKey)return void console.error("Write key is not provided for tracking purpose.");if(u.isTrackingInitialized())return void console.warn("Tracking is already initialized on the page, skipping initialization");u.setTrackingInitialized(),function(e){l.init(e),e.sourceMiddlewares=l.mergeSourceMiddlewares(e.sourceMiddlewares),e.destinationMiddlewares=l.mergeDestinationMiddlewares(e.destinationMiddlewares)}(e),o.init(e),t&&t();const n=a.init(e.shouldTrack,e.culture,e.tenant);return e.disableWebVitals||s.init(e.writeKey,e.tenant,e.culture),i.init(),r.publish("trackingReady"),n}}},2356:(e,t,n)=>{"use strict";n.d(t,{x:()=>p});var r=n(1635),i=n(3340),o=n(7200),a=n(4570),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.B)()&&window.localStorage?window.localStorage:s}catch(e){console.warn("Unable to access localStorage",e)}function c(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map((function(e){return new o.o(e.event,e.id)}))}function u(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function l(e){s.removeItem(e)}function d(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||function(e){return(new Date).getTime()>e}(o);if(a)return s.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void s.removeItem(r);!a&&n<3?setTimeout((function(){d(e,t,n+1)}),50):console.error("Unable to retrieve lock")}var p=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),p=[],f={};return d(n,(function(){try{p=c(o),f=u(a),l(o),l(a),i.queue=(0,r.fX)((0,r.fX)([],p,!0),i.queue,!0),i.seen=(0,r.Cl)((0,r.Cl)({},f),i.seen)}catch(e){console.error(e)}})),window.addEventListener("pagehide",(function(){if(i.todo>0){var e=(0,r.fX)((0,r.fX)([],i.queue,!0),i.future,!0);try{d(n,(function(){!function(e,t){var n=c(e),i=(0,r.fX)((0,r.fX)([],t,!0),n,!0).reduce((function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[t.id]=t,n))}),{});s.setItem(e,JSON.stringify(Object.values(i)))}(o,e),function(e,t){var n=u(e);s.setItem(e,JSON.stringify((0,r.Cl)((0,r.Cl)({},n),t)))}(a,i.seen)}))}catch(e){console.error(e)}}})),i}return(0,r.C6)(t,e),t}(i.M)},2366:e=>{const t=[],n=new Set;let r=!1;function i(e){if(!function(e){return"script"===e.initiatorType||"module"===e.initiatorType||e.name.endsWith(".js")||e.name.endsWith(".mjs")}(e))return;const r=function(e){return e.name}(e);n.has(r)||(n.add(r),t.push(e))}function o(){if(!r){r=!0;try{new PerformanceObserver((e=>{for(const t of e.getEntries())i(t)})).observe({type:"resource",buffered:!0})}catch{}}}function a(e){try{const t=new URL(e).pathname;return t.substring(t.lastIndexOf("/")+1)||t}catch{return e}}const s=["/mscripts/"];function c(e){return s.find((t=>e.startsWith(t)))}function u(e,t,n,r){return e===t?void 0===c(n||""):(r||[]).includes(e)}function l(){const e=document.querySelector('script[type="systemjs-importmap"], script[type="importmap"]');if(!e||!e.textContent)return{};try{return JSON.parse(e.textContent).imports||{}}catch(e){return console.warn("Failed to parse import map:",e),{}}}function d(e){try{return new URL(e,window.location.href).href}catch{return e}}function p(e){const t=e.pathname.split("/");return t.pop(),e.origin+t.join("/")}function f(e){if(e.startsWith("@"))return e.split("/").slice(0,2).join("/");const t=e.indexOf("/");return-1===t?e:e.substring(0,t)}function h(e,t){const n=[];try{const r=p(new URL(e)),i=r.endsWith("/")?r:r+"/";for(const e of t)e.url.startsWith(i)&&n.push(e)}catch{}return n}function g(){const e=window.location.origin,n=function(){const e=[];for(const n of t){const t=n.decodedBodySize||0,r=n.encodedBodySize||0,i=t||r,o=0===i&&n.duration>0;e.push({name:a(n.name),url:n.name,size:i,transferSize:n.transferSize||0,duration:n.duration,startTime:n.startTime,type:"module"===n.initiatorType?"module":"script",sizeUnavailable:o})}return e}(),r=function(e){const t=l(),n=new Set;for(const[r,i]of Object.entries(t)){if("string"!=typeof i)continue;if(r.endsWith("/"))continue;const t=d(i);if(e.has(t))try{n.add(new URL(t).origin)}catch{}}return[...n]}(new Set(n.map((e=>e.url)))),{firstParty:i,thirdParty:o}=function(e,t,n=[]){const r=[],i=[];for(const o of e)try{const e=new URL(o.url);u(e.origin,t,e.pathname,n)?r.push(o):i.push(o)}catch{r.push(o)}return r.sort(((e,t)=>t.size-e.size)),i.sort(((e,t)=>t.size-e.size)),{firstParty:r,thirdParty:i}}(n,e,r),s=function(e,t,n=[]){const r=Object.create(null),i=[...e,...t],o=l(),a=window.location.origin,s=new Set(i.map((e=>e.url))),h=Object.create(null),g=[];for(const[e,t]of Object.entries(o)){if("string"!=typeof t)continue;if(e.endsWith("/"))continue;const n=d(t);if(s.has(n))try{const t=p(new URL(n));h[t]||(h[t]=[],g.push(t)),h[t].includes(e)||h[t].push(e)}catch{}}for(const e of g){const t=h[e];let n;n=t.length>1?`${t.map((e=>f(e))).reduce(((e,t)=>t.length<e.length?t:e))}/*`:t[0];const i=e.endsWith("/")?e:e+"/";r[e]={name:n,entrypoints:t,basePath:i,scripts:[],totalSize:0,count:0,isThirdParty:!1}}const v=[...g].sort(((e,t)=>t.length-e.length));for(const e of i){let t=!1;for(const n of v){const i=n.endsWith("/")?n:n+"/";if(e.url.startsWith(i)){r[n].scripts.push(e),r[n].totalSize+=e.size,r[n].count++,t=!0;break}}if(!t){let t,i,o=!1;
2try{const r=new URL(e.url),s=r.origin,l=!u(s,a,r.pathname,n);if(o=l,l){const e=s===a?c(r.pathname):void 0;e?(t=s+e,i=r.hostname+e.replace(/\/$/,"")):(t=s,i=r.hostname)}else t=p(r),i=t}catch{t=e.url,i=e.url,o=!1}r[t]||(r[t]={name:i,entrypoints:[],basePath:t,scripts:[],totalSize:0,count:0,isThirdParty:o}),r[t].scripts.push(e),r[t].totalSize+=e.size,r[t].count++}}return r}(i,o,r),g=function(e,t){const n=l(),r=[...e,...t],i=new Set(r.map((e=>e.url))),o=Object.create(null);for(const[e,t]of Object.entries(n)){if("string"!=typeof t)continue;if(e.endsWith("/"))continue;const n=d(t);if(i.has(n))try{const t=p(new URL(n));o[t]||(o[t]={names:[],urls:[]}),o[t].names.push(e),o[t].urls.push(n)}catch{}}const a=Object.keys(o),s=a.filter((e=>!a.filter((t=>t!==e)).map((e=>e.endsWith("/")?e:e+"/")).some((t=>e.startsWith(t))))),c=Object.create(null);for(const e of s)c[e]={names:[],urls:[]};for(const[e,t]of Object.entries(o)){const n=s.find((t=>{const n=t.endsWith("/")?t:t+"/";return e===t||e.startsWith(n)}));c[n].names.push(...t.names),c[n].urls.push(...t.urls)}const u=[];for(const[t,n]of Object.entries(c)){let r;r=n.names.length>1?`${n.names.map((e=>f(e))).reduce(((e,t)=>t.length<e.length?t:e))}/*`:n.names[0];const i=h(n.urls[0],e);u.push({name:r,url:t,internalModules:i,totalSize:i.reduce(((e,t)=>e+t.size),0)})}return u.sort(((e,t)=>t.totalSize-e.totalSize)),u}(i,o);return{firstParty:i,thirdParty:o,entrypoints:g,groups:s}}e.exports={summary:function(){const e=g(),t=e.entrypoints.map((e=>({name:e.name,count:e.internalModules.length,size:e.totalSize}))),n=new Set;e.entrypoints.forEach((e=>{e.internalModules.forEach((e=>{n.add(e.url)}))}));const r=e.firstParty.filter((e=>!n.has(e.url)));if(r.length>0){const e=r.reduce(((e,t)=>e+t.size),0);t.push({name:"<unknown>",count:r.length,size:e})}const i=[];return Object.values(e.groups).forEach((e=>{if(e.isThirdParty){const t=e.scripts.filter((e=>e.size>0)).length;i.push({name:e.name,count:e.count,size:t>0?e.totalSize:void 0})}})),i.sort(((e,t)=>(t.size||0)-(e.size||0))),{firstParty:t,thirdParty:i,firstPartyTotal:{count:t.reduce(((e,t)=>e+t.count),0),size:t.reduce(((e,t)=>e+t.size),0)},thirdPartyTotal:{count:i.reduce(((e,t)=>e+t.count),0),size:i.reduce(((e,t)=>e+(t.size||0)),0)}}},collect:g,init:o},"undefined"!=typeof window&&"undefined"!=typeof PerformanceObserver&&o()},2503:(e,t,n)=>{const{initAnalytics:r}=n(3483);e.exports={initAnalyticsNext:r}},2629:(e,t,n)=>{"use strict";n.d(t,{a:()=>o,s:()=>i});var r=n(4570);function i(){return!(0,r.B)()||window.navigator.onLine}function o(){return!i()}},2632:(e,t,n)=>{const r=n(8126),i=n(5749),o=n(7331),{version:a}=n(1435),s=n(8505),c=n(174),{commonEventProperties:u,tenants:l}=n(9492);let d=!0,p=!0,f=!0;const h={shouldTrack:!0,culture:"en-IE",tenant:l.Vistaprint};function g(e){w()&&v(e,200)}function v(e,t){p&&y()&&(p=!1),d||p?setTimeout((()=>v(e,t)),t):e()}function m(e,t){y()?(p=!1,e()):setTimeout((()=>m(e,t)),t)}function y(){return C().user&&"function"==typeof C().user}function w(){return b()&&h.shouldTrack}function b(){return!(!C()||"object"!=typeof C())}function C(){return window.analytics}function k(e){const t={};return e&&e.integrations&&(t.integrations=e.integrations),x(t),t}function x(e){return(e=e||{}).context=o.create(e.context).addExternalIds().addTimezone().getContext(),e}e.exports={init:function(e=!0,t="en-IE",n=l.Vistaprint){h.shouldTrack=e,h.culture=t,h.tenant=n,w()&&(setTimeout((()=>{p&&!y()&&console.warn("Analytics library has not been fully initialized after 10000ms since tracking.js was loaded."),p=!1}),1e4),setTimeout((()=>{d&&console.warn("It looks like auth library (@vp/auth) has not been initialized after 9000ms since tracking.js was loaded. Events fired in this period have been published without any ID."),d=!1}),9e3));const o={version:()=>a,visit:()=>r.getVisit(),page:(e,t,n)=>{f||c.refresh(),f=!1,g((()=>{"object"==typeof e&&(t=e,e=""),t=i.create(t,h.culture,h.tenant,"page").addVisit().addPtid().addPageViewId().addChannel().addMetatagValues([...u,"swanVersion","generator"]).addLanguageLocale("page").addTrackingInfo().addFiscalYear(new Date).addTestUserId().addTenantSpecificProperties().addBotProperties().addCfVpjProperty().addCfJdpProperty().addCfLocaleProperties().addLandingChannel().addViewportDimensions().getProperties(),C().page(e,t,k(n))}))},track:(e,t,n)=>{g((()=>{t=i.create(t,h.culture,h.tenant).addVisit().addPtid().addPageViewId().addMetatagV
2alues(u).addLanguageLocale("track",e).addTrackingInfo().addTestUserId().addTenantSpecificProperties().addBotProperties().addViewportDimensions().getProperties(),C().track(e,t,k(n))}))},trackLink:(e,t,n)=>{g((()=>{n=i.create(n,h.culture,h.tenant).addVisit().addPtid().addPageViewId().addMetatagValues(u).addLanguageLocale("trackLink",t).addTrackingInfo().addTenantSpecificProperties().addTestUserId().addBotProperties().addViewportDimensions().getProperties(),C().trackLink(e,t,n)}))},trackNavigation:(e,t,n)=>{g((()=>{n=i.create(n,h.culture,h.tenant).addVisit().addPtid().addPageViewId().addMetatagValues(u).addLanguageLocale("trackNavigation",t).addTrackingInfo().addTenantSpecificProperties().addTestUserId().addBotProperties().addViewportDimensions().getProperties(),C().trackLink(e,t,n)}))},identify:(e,t,n)=>{w()&&(C().identify(e,t||{},x(n)),d=!1)},reset:()=>{b()&&C().reset()},setAnonymousId:e=>{b()&&m((()=>{const t=C().user();t.anonymousId()!==e?(t.logout(),t.anonymousId(e),d=!1):d=!1}),200)}};return s.setTracking(o),o}}},2646:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(4633)),o=n(6071),a=n(2749),s=r(n(9156)),c=r(n(2932));function u(e,t){o.Facade.call(this,e,t)}t.Track=u,i.default(u,o.Facade);var l=u.prototype;l.action=function(){return"track"},l.type=l.action,l.event=o.Facade.field("event"),l.value=o.Facade.proxy("properties.value"),l.category=o.Facade.proxy("properties.category"),l.id=o.Facade.proxy("properties.id"),l.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},l.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},l.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},l.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},l.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},l.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},l.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},l.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},l.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},l.sku=o.Facade.proxy("properties.sku"),l.tax=o.Facade.proxy("properties.tax"),l.name=o.Facade.proxy("properties.name"),l.price=o.Facade.proxy("properties.price"),l.total=o.Facade.proxy("properties.total"),l.repeat=o.Facade.proxy("properties.repeat"),l.coupon=o.Facade.proxy("properties.coupon"),l.shipping=o.Facade.proxy("properties.shipping"),l.discount=o.Facade.proxy("properties.discount"),l.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},l.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},l.description=o.Facade.proxy("properties.description"),l.plan=o.Facade.proxy("properties.plan"),l.subtotal=function(){var e=c.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},l.products=function(){var e=this.properties(),t=c.default(e,"products");return Array.isArray(t)?t.filter((function(e){return null!==e})):[]},l.quantity=function(){return(this.obj.properties||{}).quantity||1},l.currency=function(){return(this.obj.properties||{}).currency||"USD"},l.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},l.query=o.Facade.proxy("options.query"),l.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},l.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},l.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},l.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(e){if("number"==typeof e)return e;if("string"==typeof e)return e=e.replace(/\$/g,""),e=parseFloat(e),isNaN(e)?void 0:e}}(e)},l.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},l.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},2663:(e,t,n)=>{"use strict";function r(e,t){return new Promise((function(n,r){var i=setTimeout((function(){r(Error("Promise timed out"))}),t);e.then((function(e){return clearTimeout(i),n(e)})).catch(r)}))}function i(e,t,n){var i;
2return(i=n,new Promise((function(e){return setTimeout(e,i)}))).then((function(){return r(function(){try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}(),1e3)})).catch((function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")})).then((function(){return e}))}n.d(t,{s2:()=>r,w_:()=>i})},2749:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(6071),o=r(n(2932)),a=r(n(4633)),s=r(n(9156)),c=r(n(3069)),u=function(e){return e.trim()};function l(e,t){i.Facade.call(this,e,t)}t.Identify=l,a.default(l,i.Facade);var d=l.prototype;d.action=function(){return"identify"},d.type=d.action,d.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},d.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},d.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return c.default(e)},d.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return c.default(e)},d.companyName=function(){return this.proxy("traits.company.name")},d.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return u(e);var t=this.firstName(),n=this.lastName();return t&&n?u(t+" "+n):void 0},d.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");return"string"==typeof t?u(t).split(" ")[0]:void 0},d.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return u(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=u(t).indexOf(" ");if(-1!==n)return u(t.substr(n+1))}},d.uid=function(){return this.userId()||this.username()||this.email()},d.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},d.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},d.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},d.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},d.username=i.Facade.proxy("traits.username"),d.website=i.Facade.one("traits.website"),d.websites=i.Facade.multi("traits.website"),d.phone=i.Facade.one("traits.phone"),d.phones=i.Facade.multi("traits.phone"),d.address=i.Facade.proxy("traits.address"),d.gender=i.Facade.proxy("traits.gender"),d.birthday=i.Facade.proxy("traits.birthday")},2755:(e,t,n)=>{const{hashIdsInProperties:r,hashIdsInContext:i}=n(3476),o=n(3835),a=n(3918);e.exports={getDestinationMiddlewares:()=>[{targetIntegration:"Google Tag Manager",middlewares:[r]},{targetIntegration:"Google Analytics",middlewares:[r]}],getSourceMiddlewares:()=>[i],init:()=>{o.onSet(a.sendIdentifiesWithIds)}}},2818:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getCategoryPreferences:()=>y,getCookieConsent:()=>v,isCookieConsentPending:()=>m});var r,i=n(8987),o=n(8866),a=n(9651);!function(e){e[e.None=0]="None",e[e.GDPR=1]="GDPR",e[e.CCPA=2]="CCPA"}(r||(r={}));var s={functional:!0,advertising:!1,sessionReplay:!1,dataSale:!0},c={functional:!0,advertising:!0,sessionReplay:!0,dataSale:!0},u={ie:{functional:!1},pt:{functional:!1},no:{functional:!1}},l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)};function d(e){return!!e&&(e=e.toLowerCase(),(0,o.isEuMember)(e)||"ch"===e||"no"===e||"gb"===e)}function p(){var e;try{e=(0,a.getCurrentCountry)()}catch(e){return r.GDPR}return e?"us"===(e=e.toLowerCase())?r.CCPA:d(e)?r.GDPR:r.None:r.None}function f(){var e=i.A.get("tracking-preferences");return e?JSON.parse(e):{}}function h(e){var t,n;return 4===e.version?null===(n=null===(t=e.custom)||void 0===t?void 0:t.datasale)||void 0===n||n:!e.destinations||!0!==e.destinations.All||!1!==e.destinations["Facebook Pixel"]}function g(e,t){var n;void 0===t&&(t=u);try{n=(0,a.getCurrentCountry)().toLowerCase()}catch(t){return e}if(t&&Object.keys(t).includes(n)){var r=Object(e);
2return Object.keys(t[n]).forEach((function(e){r[e]=Object(t[n])[e]})),r}return e}function v(){var e=p(),t=f();if(e===r.None)return{hasConsent:!1,categories:c};if(e===r.CCPA)return{hasConsent:!1,categories:l(l({},c),{dataSale:h(t)})};if(t.custom){var n=t.custom,i=n.functional,o=n.advertising,a=n.sessionreplay;return{hasConsent:!1!==t.consent,categories:{functional:null==i||i,advertising:null!=o&&o,sessionReplay:null!=a&&a,dataSale:h(t)}}}return{hasConsent:!1,categories:g(s)}}function m(){var e=f();return(!e||!e.custom||!1===e.consent)&&function(){var e,t;try{t=(0,a.getCurrentCountry)()}catch(e){return!0}var n=!!(null===(e=null===window||void 0===window?void 0:window.consentManager)||void 0===e?void 0:e.openConsentManager);return d(t)||n&&"us"!==t.toLowerCase()}()}function y(){var e,t;if((null===(e=null===window||void 0===window?void 0:window.consentManager)||void 0===e?void 0:e.getTrackingPreferences)&&(null===(t=null===window||void 0===window?void 0:window.consentManager)||void 0===t?void 0:t.getTrackingPreferences().categoryPreferences))return window.consentManager.getTrackingPreferences().categoryPreferences;var n=v();return{advertising:(0!=n.categories.dataSale||p()!=r.CCPA)&&n.categories.advertising,functional:n.categories.functional,sessionReplay:n.categories.sessionReplay,strictlyNecessary:!0}}},2932:e=>{function t(e){return function(t,n,r,o){var a,s=o&&function(e){return"function"==typeof e}(o.normalizer)?o.normalizer:i;n=s(n);for(var c=!1;!c;)u();function u(){for(a in t){var e=s(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[a];return null==i?void(c=!0):n.length?void(t=i):void(c=!0)}}}a=void 0,c=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t((function(e,t){if(e.hasOwnProperty(t))return e[t]})),e.exports.find=e.exports,e.exports.replace=function(e,n,i,o){return t(r).call(this,e,n,i,o),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},3069:(e,t,n)=>{"use strict";var r=n(331),i=n(519),o=n(9168),a=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===a.call(t)?e:function(e){return"[object Number]"===a.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e);var t,n}},3172:(e,t,n)=>{"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!=(i=""+t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{J:()=>r})},3194:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getCurrentDomain:()=>v,getCurrentTenant:()=>d,getCurrentTenantOrDefault:()=>l,getRootCookieDomain:()=>m});const r=function(){var e=window&&window.location&&window.location.hostname;if(!e||0===e.length)throw new Error("Hostname could not be determined for the current document.");return e},i=function(){var e=window&&window.document;if(!e)throw new Error("DOM document could not be determined.");return e};var o="vistaprint",a="promotique",s=[o,"vista",a],c=["masken","mondkapjes","masks","masker","maskit","masque","mascherine","munnbind","mascaras","mascarillas","munskydd"],u=["touch-free-payments"],l=function(e){var t=window&&window.location&&window.location.pathname;if(t&&"/"!==t)for(var n=t.split("/"),i=0;i<n.length;i+=1){if(-1!==c.indexOf(n[i].toLowerCase()))return"masks";if(-1!==u.indexOf(n[i].toLowerCase()))return"paypal"}var l=r().split(".").slice(-3);if(l[0]&&"brandstore"===l[0].toLocaleLowerCase()&&l[1]===o)return a;if(l[0]&&"novelty"===l[0].toLocaleLowerCase()&&l[1]===o)return a;for(var d=l.length-1;d>=0;d-=1)if(-1!==s.indexOf(l[d]))return l[d];return e},d=function(){return l(o)},p="top_level_domain_resolution",f=null,h=function(e,t,n,r){var o=n.toUTCString();i().cookie=e+"="+t+";expires="+o+";path=/;domain="+r},g=function(){var e,t,n,o=r().split("."),a=new Date;a.setTime(a.getTime()+5e3);for(var s=o.length-1;s>=0;s-=1){var c=o.slice(s).join(".");if(h(p,"1",a,c),i().cookie.indexOf(p)>-1)return e=p,t=c,void 0,n=new Date(1970),h(e,"",n,t),c}return null},v=function(){return f||(f=g())},m=function(){var e=g();if(e&&"localhost"!==e)return new RegExp(/^[0-9.]+$/).test(e)?e:"."+e}},3207:e=>{e.exports={getPciCompliantGtmContainerOverride:function(e){if("vistaprint"===e.toLowerCase())return"GTM-MQMB4G9R"}}},3284:(e,t,n)=>{"use strict";n.d(t,{u:()=>r});var r=function(){var e,t,n=!1,r=new Promise((function(r,i){e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,r.apply(void 0,e)},t=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n=!0,i.apply(void 0,e)}}
2));return{resolve:e,reject:t,promise:r,isSettled:function(){return n}}}},3340:(e,t,n)=>{"use strict";n.d(t,{g:()=>o,M:()=>a});var r=n(1635),i=n(8512),o="onRemoveFromFuture",a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!=r?r:{},i}return(0,r.C6)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map((function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t)||(e.queue.push(t),0))}));return this.queue=this.queue.sort((function(t,n){return e.getAttempts(t)-e.getAttempts(n)})),r},t.prototype.pushWithBackoff=function(e,t){if(void 0===t&&(t=0),0==t&&0===this.getAttempts(e))return this.push(e)[0];var n=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,i=e.factor,o=void 0===i?2:i,a=e.attempt,s=e.maxTimeout,c=void 0===s?1/0:s;return Math.min(t*r*Math.pow(o,a),c)}({attempt:this.getAttempts(e)});return t>0&&n<t&&(n=t),this.scheduleItem(e,n)},t.prototype.pushWithDelay=function(e,t){return this.scheduleItem(e,t)},t.prototype.scheduleItem=function(e,t){var n=this;return!(this.updateAttempts(e)>this.maxAttempts||this.includes(e)||(setTimeout((function(){n.queue.push(e),n.future=n.future.filter((function(t){return t.id!==e.id})),n.emit(o)}),t),this.future.push(e),0))},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find((function(t){return t.id===e.id})))||Boolean(this.future.find((function(t){return t.id===e.id})))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.v)},3342:e=>{let t=null;const n=({payload:e,next:t})=>{if(e&&e.obj)try{r(e)}catch(e){console.log(e)}finally{t(e)}else t(e)},r=e=>{const t=JSON.stringify(e.obj),n=new Blob([t]);let r=0;r=void 0===n.size?t.length:n.size,r+=1024,r>=32768?o(e,r):r>24576&&i(e,r)},i=(e,t)=>{const n=a(e),r=s(e);console.warn(`The size of ${r} - ${n} tracking event is ${t} B which is close to the 32 kB limit. Events which are above the limit are discarded.`)},o=(e,n)=>{const r=a(e),i=s(e),o=`The size of ${i} - ${r} tracking event ${n} B reached the 32 kB limit and will be discarded by Segment.`;"function"==typeof t&&t({message:o,event:e.obj,eventName:r,eventType:i})},a=e=>e?.obj?.event??"N/A",s=e=>e?.obj?.type??"N/A";e.exports={getSourceMiddlewares:()=>[n],init:e=>{t=e.onError}}},3358:(e,t,n)=>{const r=n(2818);e.exports={getCategoryPreferences:function(){return r.getCategoryPreferences()}}},3375:e=>{e.exports={setGlobal:function(e){"undefined"!=typeof window&&(window.analytics=e)}}},3476:(e,t,n)=>{const r=n(4559),i=async(e,t,n)=>{if(e&&e.obj)try{const t=await n("userId",e);await n("anonymousId",e,t)}catch(e){console.log(e)}finally{t(e)}else t(e)};e.exports={hashIdsInProperties:({payload:e,next:t})=>
2i(e,t,((e,t,n)=>(async(e,t,n)=>{const{cacheUpdated:i,hashedId:o}=await r.getHashedIdAndUpdateCache(e,t,n);return!!o&&(t.obj.properties=t.obj.properties||{},t.obj.properties[e+"Hashed"]=o,i)})(e,t,n))),hashIdsInContext:({payload:e,next:t})=>i(e,t,((e,t,n)=>(async(e,t,n)=>{const{cacheUpdated:i,hashedId:o}=await r.getHashedIdAndUpdateCache(e,t,n);return!!o&&(t.obj.context=t.obj.context||{},t.obj.context.hashedIds=t.obj.context.hashedIds||{},t.obj.context.hashedIds[e+"Hashed"]=o,i)})(e,t,n)))}},3483:(e,t,n)=>{const r=n(4855),{AnalyticsBrowser:i}=n(1148),{loadThirdParties:o}=n(9579),a=n(9069),s=n(7852),{loadMiddlewares:c}=n(1076),{updateCDNSettings:u}=n(7657),{setGlobal:l}=n(3375),{prepareIntegrations:d}=n(1272);e.exports={initAnalytics:function(e){const t=new i,n=new s(t,(n=>{(async function(e,t,n){const i=d(n.apiHost),s=!!n.scriptNonce,p=n.domain?`https://${n.domain}`:void 0;c(e,n.sourceMiddlewares,n.destinationMiddlewares);e.load({writeKey:t,classicIntegrations:[a],cdnURL:p},{updateCDNSettings:e=>u(e,n.scriptNonce,s,n.pciCompliantGtmContainerId),integrations:i}).then((([e])=>l(e))).catch((e=>{try{n.onError({message:`@vp/tracking: Failed to load analytics. ${e.message}`})}catch(e){console.error("@vp/tracking: onError callback threw",e)}})),n.setThirdPartyLoader?n.setThirdPartyLoader((()=>{o()})):r((()=>{o()}))})(t,n,e).catch((t=>e.onError({message:`@vp/tracking: Analytics initialisation failed. ${t.message}`})))}),e.onError);l(n)}}},3655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={emailUserIdHashed:"uid"}},3805:(e,t,n)=>{const r=n(5749),{v4:i}=n(97),o=n(3358),{removeAllHyphens:a}=n(7777),{commonEventProperties:s}=n(9492);e.exports={create:(e,t,{properties:n,culture:c,tenant:u,sharedPayload:l})=>{const d=new Date;n=((e,t,n,i)=>(e=>{const t=window?.navigator?.connection;if(!t)return e;const{rtt:n,effectiveType:r,downlink:i}=t,o={rtt:n,downlink:i,effectiveType:r};return{...e,connection:o}})(e=r.create(e,t,n).addVisit().addPtid().addPageViewId().addMetatagValues(s).addLanguageLocale("track",i).addTrackingInfo().addTestUserId().getProperties()))(n,c,u,t);const p=o.getCategoryPreferences();return p&&(l.context={...l.context,consent:{categoryPreferences:p}}),{...l,event:t,type:"track",properties:n,timestamp:d,writeKey:e,messageId:`ajs-next-${a(i())}`}}}},3817:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2932));function o(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=o("postalCode","zip"),e.country=o("country"),e.street=o("street"),e.state=o("state"),e.city=o("city"),e.region=o("region")}},3835:e=>{const t="vp-tracking-hashed-ids";let n,r,i=!1;const o=()=>{if(!i){try{const e="test";window.localStorage.setItem(e,e),window.localStorage.removeItem(e),n=window.localStorage}catch(e){const t={};n={getItem:e=>t[e],setItem:(e,n)=>t[e]=n,removeItem:e=>delete t[e]}}i=!0}};e.exports={get:e=>{o();const r=n.getItem(t);if(r)return JSON.parse(r)[e]},set:(e,i,a)=>{o();const s=n.getItem(t),c=s?JSON.parse(s):{};c[e]=i,n.setItem(t,JSON.stringify(c)),!r||a&&a.suppressCallback||r(e,i,a)},onSet:e=>r=e,reset:()=>{o(),n.removeItem(t),r=null}}},3918:(e,t,n)=>{const r=n(8505),i=e=>{const t={...e};for(const e in t)t[e]=!1;return t["Segment.io"]=!0,t.Repeater=!0,t};e.exports={disableIntegrations:i,sendIdentifiesWithIds:(e,t,n)=>{const o={integrations:i(n.integrations),externalIds:[{id:t,type:n.idType+"Hashed",collection:"users"}]};"anonymousId"===n.idType&&(o.anonymousId=e),r.getTracking().identify("userId"===n.idType?e:void 0,{},o)},getIdFromAnalytics:e=>{const t="userId"===e?"id":e;if((window.analytics&&"function"==typeof window.analytics.user?window.analytics.user():void 0)&&"function"==typeof window.analytics.user()[t])return window.analytics.user()[t]()}}},4098:e=>{e.exports={isSafariOrIOS:function(){return function(){const e=navigator.userAgent;return/Safari/i.test(e)&&!/Chrome|CriOS|FxiOS|EdgiOS|OPiOS/i.test(e)}()||function(){const e=navigator.userAgent;return/iPhone|iPad|iPod/i.test(e)||e.includes("Macintosh")&&navigator.maxTouchPoints>1}()}}},4242:(e,t,n)=>{"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(t){return t.src===e}))}function i(e,t){var n=r(e);
2if(void 0!==n){var i=null==n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise((function(e,t){n.addEventListener("load",(function(){return e(n)})),n.addEventListener("error",(function(e){return t(e)}))}))}return new Promise((function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});a<s.length;a++){var c=s[a],u=c[0],l=c[1];o.setAttribute(u,l)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var d=window.document.querySelector("script");d?null===(i=d.parentElement)||void 0===i||i.insertBefore(o,d):window.document.head.appendChild(o)}))}function o(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{d:()=>o,k:()=>i})},4329:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},4559:(e,t,n)=>{const r=n(3835),{hashSHA256:i}=n(6182),o=n(3918);e.exports={getHashedIdAndUpdateCache:async(e,t,n)=>{const a=o.getIdFromAnalytics(e);if(!a)return{cacheUpdated:!1,hashedId:void 0};const s=r.get(a),c=s||await i(a);if(!s){const i={idType:e,suppressCallback:n,integrations:t.integrations()};return r.set(a,c,i),{cacheUpdated:!0,hashedId:c}}return{cacheUpdated:!1,hashedId:c}}}},4570:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function i(){return!r()}n.d(t,{B:()=>r,S:()=>i})},4633:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},4726:e=>{"use strict";e.exports=s},4750:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(4633)),o=n(6071),a=n(2646),s=r(n(9156));function c(e,t){o.Facade.call(this,e,t)}t.Page=c,i.default(c,o.Facade);var u=c.prototype;u.action=function(){return"page"},u.type=u.action,u.category=o.Facade.field("category"),u.name=o.Facade.field("name"),u.title=o.Facade.proxy("properties.title"),u.path=o.Facade.proxy("properties.path"),u.url=o.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(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t},u.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},u.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},u.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},u.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},4808:e=>{e.exports={getMetaTagValues:function(e){const t=[],n=document.querySelectorAll("meta");for(let r=0;r<n.length;r++){const i=n[r],o=i.getAttribute("name");e.indexOf(o)>=0&&t.push({key:i.getAttribute("name"),value:i.getAttribute("content")})}return t},getMetaTagValue:function(e){if(!e)return null;const t=document.getElementsByTagName("meta")[e];return t?t.getAttribute("content"):null}}},4846:(e,t,n)=>{"use strict";function r(e){return"string"==typeof e}function i(e){return"number"==typeof e}function o(e){return"function"==typeof e}function a(e){return null!=e}function s(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Et:()=>i,Kg:()=>r,Qd:()=>s,Tn:()=>o,t2:()=>a})},4855:(e,t,n)=>{"use strict";var r=n(443),i=n(9450),o=n(6729);e.exports=r.addEventListener?function(e){if("complete"===i.readyState)return o(e);r.addEventListener("load",(function(){e()}))}:function(){}},5126:(e,t,n)=>{const{getVisit:r}=n(8126),{version:i}=n(1435),o=n(8505);class a{static METHOD_NAMES=["page","track","trackLink","trackNavigation","identify","reset","setAnonymousId"];constructor(){this._calls=[],this._realTracking=null,this._isReady=!1,a.METHOD_NAMES.forEach((e=>{this[e]=(...t)=>this._memoize(e,t)})),this.waitForTrackingReady()}waitForTrackingReady(){const e=o.getTracking();if(e)this.setRealTracking(e);else if("undefined"!=typeof window){const e=()=>{const t=o.getTracking();t&&this.setRealTracking(t),window.removeEventListener("trackingReady",e)};window.addEventListener("trackingReady",e)}}visit(){return r()}version(){return i}isReady(){return this._isReady}setRealTracking(e){this._realTracking=e,this._isReady=!0,this._calls.forEac
2h((({method:t,args:n})=>{"function"==typeof e[t]&&e[t](...n)})),this._calls=[]}_memoize(e,t){if(this._isReady&&this._realTracking)return this._realTracking[e](...t);this._calls.push({method:e,args:t})}}e.exports={createTrackingStub:function(){return new a}}},5159:(e,t,n)=>{"use strict";n.d(t,{C:()=>o,D:()=>a});var r=n(1635),i=n(789);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):function(){return(0,r.sH)(this,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,o.apply(t,[e])];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,Promise.reject(n)];case 3:return[2]}}))}))}().then((function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e})).catch((function(n){if(n instanceof i.d&&"middleware_cancellation"===n.type)throw n;return n instanceof i.d?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)}))}function a(e,t){return o(e,t).then((function(t){if(t instanceof i.j)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)}))}},5321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmailIds=void 0;const r=n(3655),i=n(880),o=e=>{var t;const n=(e=>window.location.search.replace("?","").split("&").reduce(((e,t)=>{const[n,r]=t.split("=");return n in e?e:Object.assign(Object.assign({},e),{[n]:r})}),{})[r.config[e]])(e);return void 0===n?null!==(t=(e=>localStorage.getItem(e))(e))&&void 0!==t?t:void 0:n};t.getEmailIds=()=>(0,i.getKeysOf)(r.config).reduce(((e,t)=>{const n=o(t);return void 0===n?e:a(e,t,n)}),{});const a=(e,t,n)=>(localStorage.setItem(t,n),Object.assign(Object.assign({},e),{[t]:n}))},5674:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(4633)),o=n(6071);function a(e,t){o.Facade.call(this,e,t)}t.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},5749:(e,t,n)=>{const r=n(4808),{parseCulture:i,validateLanguage:o,validateLocale:a}=n(531),s=n(8126),c=n(2092),u=n(9059),l=n(1435),d=n(174),p=n(7775),f=n(8047),{v4:h}=n(97),{vcsTenants:g}=n(9492),v=n(1389);class m{constructor(e,t,n){this.properties=e||{},this.culture=t,this.tenant=n}static create(e,t,n){return new m(e,t,n)}getProperties(){return this.properties}addVisit(){return this.properties.visit=s.ensureVisit(),this}addPtid(){return this.properties.ptid=h(),this}addPageViewId(){return this.properties.pageViewId=d.getPageViewId(),this}addChannel(){if(window.location){const e=window.location.toString(),t=c.getParameters(e,["tid","partner","utm_id"]);t.tid&&(this.properties.tid=t.tid),t.partner&&(this.properties.partner=t.partner),t.utm_id&&(this.properties.utm_id=t.utm_id)}return this}addMetatagValues(e){const t=r.getMetaTagValues(e);return t&&t.forEach((e=>{this.properties[e.key]||(this.properties[e.key]=e.value)})),this}addLanguageLocale(e,t=void 0){const n=(n,r)=>{const i=t?`'${t}' of type '${e}'`:`of type '${e}'`;console.error(`A tracking property '${n}' has invalid value '${r}' of an event ${i}`)},r=this.properties.language?.toLowerCase();r&&(this.properties.language=r),r&&!o(r)&&(n("language",r),this.properties.language=void 0);const s=this.properties.locale?.toUpperCase();s&&(this.properties.locale=s),s&&!a(s)&&(n("locale",s),this.properties.locale=void 0);const c=i(this.culture);return c.language&&!this.properties.language&&(this.properties.language=c.language),c.locale&&!this.properties.locale&&(this.properties.locale=c.locale),this}addTrackingInfo(){return this.properties.trackingVersion=l.version,this.tenant&&(this.properties.trackingTenant=this.tenant),this}addFiscalYear(e){const t=e.getUTCMonth(),n=e.getUTCFullYear();return this.properties.fiscalYear="FY"+(t>5?n+1:n)%100,this}addTestUserId(){return this.properties.testUserId=u.ensureUserTestId(),this}addTenantSpecificProperties(){if(g.has(this.tenant)){const e=r.getMetaTagValue("storeId")||r.getMetaTagValue("subtenant");e&&(this.properties.storeId=e);const t=r.getMetaTagValue("subtenant");return t&&(this.properties.subtenant=t),this}return this}addBotProperties(){const e=r.getMetaTagValue("vp-bot-score")||p.getCookie("vp-bot-score");e&&!isNaN(e)&&(this.properties.cf_bot_score=Number(e));const t=r.getMetaTagValue("vp-bot-verified")||p.getCookie("vp-bot-verified");t&&(this.properties.cf_verified_bot="true"===t.toLowerCase());const n=r.getMetaTagValue("vp-bot-category")||p.getCookie("vp-bot-category");return n&&"undefined"!=n.toLowerCase()&&(this.properties.cf_verified_bot_category=n),this}addCfVpjProperty(){const e=r.getMetaTagValue("vpj");return e&&(this.properties.cf_vpj=e.toLowerCase()),this}addCfJdpProperty(){const e=p.getCookie("vista-jdp");return e&&(this.properties.cf_jdp="true"===e.toLowerCase()),this}addCfLocaleProperties(){const e=p.getCookie("cf-ipcountry");e&&(this.properties.cf_ip_country=e.toUpperCase());const t=p.getCookie("cf-region-code");t&&(this.properties.cf_region_code=t.toUpperCase());const n=p.getCookie("cf-city");return n&&(this.properties.cf_city=n),this}addLandingChannel(){const e=f.getLandingChannel();return e&&(this.properties.landing_channel=e),this}addViewportDimensions(){const e=v.getViewPortDimensions();return e&&e.width&&e.height&&(this.properties.viewport_width=e.width,this.properties.viewport_height=e.height),this}}
vendor: 5,404 bytes, line 2
2e.exports=m},5799:(e,t,n)=>{"use strict";n.d(t,{p:()=>i,r:()=>o});var r=n(1635),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map((function(e){return(0,r.Cl)((0,r.Cl)({},e),{tags:e.tags.join(",")})}));console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map((function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t}))},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},5802:(e,t,n)=>{const r=n(818),i=n(3805),{tenants:o}=n(9492),a=n(7383);e.exports=class{constructor(e,t,n){const i=r.getConfig(e);this._segmentTrackUrl=this._getSegmentTrackUrl(i),this._writeKey=e,this._tenant=t||o.Vistaprint,this._culture=n||"en-IE"}track=(e,t)=>{const n=a.getPageSharedPayload();if(!n)return;let r=i.create(this._writeKey,e,{properties:{...n.properties,...t},culture:this._culture,tenant:this._tenant,sharedPayload:n});const o=new Date;r={...r,sentAt:o};const s=new Blob([JSON.stringify(r)],{type:"text/plain"});navigator.sendBeacon(this._segmentTrackUrl,s)};_getSegmentTrackUrl(e){return`https://${e.apiHost??"api.segment.io/v1"}/t`}}},5836:(e,t,n)=>{n(1375)},6e3:(e,t,n)=>{"use strict";n.d(t,{v4:()=>a});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],n+=6==t?o[15&e|64]:8==t?o[63&e|128]:o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},6071:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(3817)),o=n(6080),a=r(n(4329)),s=r(n(3069)),c=r(n(2932)),u=r(n(7432));function l(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?s.default(e.timestamp):new Date,t.traverse&&u.default(e),this.opts=t,this.obj=e}t.Facade=l;var d=l.prototype;function p(e){return o.clone(e)}d.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=c.default(n,t.join("."))),this.opts.clone?p(n):n):n},d.field=function(e){var t=this.obj[e];return this.opts.clone?p(t):t},l.proxy=function(e){return function(){return this.proxy(e)}},l.field=function(e){return function(){return this.field(e)}},l.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},l.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},d.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},d.rawEvent=function(){return this.raw},d.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||c.default(r,e);return"object"!=typeof i&&(i=c.default(this.options(),e)),"object"==typeof i?i:{}}},d.context=d.options,d.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!=typeof i||i}return!!n},d.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},d.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},d.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},d.sessionId=d.anonymousId,d.groupId=l.proxy("options.groupId"),d.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},d.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},d.device=function(){var e=this.proxy("context.device");"object"==typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},d.userAgent=l.proxy("context.userAgent"),d.timezone=l.proxy("context.timezone"),d.timestamp=l.field("timestamp"),d.channel=l.field("channel"),d.ip=l.proxy("context.
2ip"),d.userId=l.field("userId"),i.default(d)},6076:(e,t,n)=>{const{onBodyReady:r}=n(9248),i="undefined"!=typeof window?n(7009):null,o="consent-manager-container";function a(){try{return"undefined"!=typeof window&&window.self!==window.top}catch(e){return!0}}e.exports={init:function(e,t,n,s,c,u){if("undefined"==typeof window)return;const l={data:u,container:o,writeKey:e,shouldRequireConsent:()=>i.isConsentRequired(n),hideBanner:a(),tenant:t,locale:n,suppressReload:s};r((()=>{const e=document.createElement("div");e.id=o,c&&(e.className=c),document.body.appendChild(e),i.initConsentManager(l)}))}}},6080:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},6182:e=>{e.exports={hashSHA256:async function(e){if(!e)return;const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n);return btoa(String.fromCharCode.apply(null,r))}}},6729:e=>{"use strict";var t,n;t=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},n=function(e){var n,r=document.createTextNode(""),i=0;return new e((function(){var e;n&&(e=n,n=null,"function"!=typeof e?e.forEach((function(e){e()})):e())})).observe(r,{characterData:!0}),function(e){t(e),n?"function"==typeof n?n=[n,e]:n.push(e):(n=e,r.data=i=++i%2)}},e.exports=function(){if("undefined"!=typeof process&&process&&"function"==typeof process.nextTick)return process.nextTick;if("object"==typeof document&&document){if("function"==typeof MutationObserver)return n(MutationObserver);if("function"==typeof WebKitMutationObserver)return n(WebKitMutationObserver)}return"function"==typeof setImmediate?function(e){setImmediate(t(e))}:"function"==typeof setTimeout?function(e){setTimeout(t(e),0)}:null}()},6813:e=>{const t="(+NoTrack)",n="(+SiteTest)";e.exports={hasNoTrack:function(){return!(!navigator||!navigator.userAgent)&&navigator.userAgent.indexOf(t)>-1},hasSiteTest:function(){return!(!navigator||!navigator.userAgent)&&navigator.userAgent.indexOf(n)>-1},noTrack:t,siteTest:n}},6828:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});var r=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:null}},6853:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(4633)),o=n(6071);function a(e,t){o.Facade.call(this,e,t)}t.Alias=a,i.default(a,o.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},6874:(e,t,n)=>{"use strict";n.d(t,{_:()=>i});var r=n(1635),i=function(e,t){return(0,r.sH)(void 0,void 0,void 0,(function(){var n;return(0,r.YH)(this,(function(i){return n=function(i){return(0,r.sH)(void 0,void 0,void 0,(function(){var o;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}}
2))}))},[2,n(void 0)]}))}))}},6934:(e,t,n)=>{const r=n(8796),i=n(1203),o=n(9265);e.exports=class{constructor(e){this._tracking=e,this._metricsCollector=new i,this._registerWebVitalsEvents()}registerUnloadEvents(){window.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&this._trackCollectedMetrics()})),o.isVisibilitychangeFullySupported()||window.addEventListener("pagehide",(()=>{this._trackCollectedMetrics()}))}_registerWebVitalsEvents(){r.onCLS((e=>this._addMetric(e))),r.onFCP((e=>this._addMetric(e))),r.onFID((e=>this._addMetric(e))),r.onINP((e=>this._addMetric(e))),r.onLCP((e=>this._addMetric(e))),r.onTTFB((e=>this._addMetric(e)))}_addMetric(e){this._metricsCollector.addMetric(e)}_trackCollectedMetrics(){if(this._metricsCollector.newMetricsAvailable()){const e=this._metricsCollector.getAllMetrics();this._tracking.track("Web Vitals Captured",{webVitals:e}),this._metricsCollector.clear()}}}},7009:(e,t,n)=>{(()=>{var t={155:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},173:(e,t,n)=>{const r=n(953),i=n(862),{ConsentManager:o,openConsentManager:a,doNotTrack:s,ConsentManagerContainer:c,Mode:u}=n(268),{isConsentRequired:l}=n(265);e.exports={openConsentManager:a,doNotTrack:s,initConsentManager:function(e){if("undefined"==typeof window)return;if(!e.container)throw new Error("ConsentManager: container is required");if(!e.writeKey)throw new Error("ConsentManager: writeKey is required");if(!e.locale)throw new Error("ConsentManager: locale is required");if(!e.tenant)throw new Error("ConsentManager: tenant is required");const t=document.getElementById(e.container);if(!t)throw new Error("ConsentManager: container not found");i.createRoot(t).render(r.createElement(o,e))},ConsentManagerContainer:c,isConsentRequired:l,Mode:u}},186:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var c=e[s],u=r.base?c[0]+r.base:c[0],l=o[u]||0,d="".concat(u," ").concat(l);o[u]=l+1;var p=n(d),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=i(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var c=r(e,i),u=0;u<o.length;u++){var l=n(o[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=c}}},193:(e,t,n)=>{var r=n(953);function i(e){return"function"!=typeof matchMedia?null:matchMedia(e)}function o(e){return e?{media:e.media,matches:e.matches}:null}function a(e){var t=r.useState(!1),n=t[1];r.useEffect((function(){n(!0)}),[n]);var a=r.useState((function(){return o(i(e))})),s=a[1],c=r.useCallback((function(e){return s(o(e))}),[s]);return r.useEffect((function(){var t=i(e);return c(t),t&&t.addEventListener("change",c),function(){t&&t.removeEventListener("change",c)}}),[c,e]),t[0]?a[0]:null}e.exports={useMedia:a,useMediaPredicate:function(e){var t=a(e);return t&&t.matches||!1}}},265:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isConsentRequired:()=>
2a,isQuebec:()=>o});var r=n(987);const i=new Set(["at","be","bg","ch","cy","cz","de","dk","ee","el","es","fi","fr","gb","gr","hr","hu","ie","it","lt","lu","lv","mt","nl","no","pl","pt","ro","se","si","sk"]);function o(e){return"ca"===e.toLowerCase()&&"ca"==r.A.get("cf-ipcountry")?.toLowerCase()&&"qc"==r.A.get("cf-region-code")?.toLowerCase()}function a(e){if(!e)return!1;const t=function(e){if(!e)return{};const t=e.split("-");return{language:t[0],country:t.length>1?t[t.length-1]:void 0}}(e).country;return!!t&&(i.has(t.toLowerCase())||o(t))}},268:(e,t,r)=>{"use strict";function i(e){return i="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},i(e)}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}r.r(t),r.d(t,{ConsentManager:()=>Qe,ConsentManagerBuilder:()=>Xe,ConsentManagerContainer:()=>et,Mode:()=>x,doNotTrack:()=>tt,openConsentManager:()=>_e});const a=new class{constructor(){this.locale="en",this.fallbackLocale="en",this.resources={},this.defaultVariables={}}async init(e){this.locale="en",this.resources=e.resources||{},this.fallbackLocale=e.fallbackLng||"en",this.defaultVariables=e.interpolation?.defaultVariables||{}}async changeLanguage(e){this.locale=e}t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ns:n,returnObjects:r,...i}=t,o=n||"translation",a={...this.defaultVariables,...i};let s=this._getNestedValue(this.locale,o,e);return void 0===s&&this.locale!==this.fallbackLocale&&(s=this._getNestedValue(this.fallbackLocale,o,e)),void 0===s?e:"string"!=typeof s?r?s:e:this._interpolate(s,a)}exists(e){return void 0!==this._getNestedValue(this.locale,"translation",e)||this.locale!==this.fallbackLocale&&void 0!==this._getNestedValue(this.fallbackLocale,"translation",e)}_getNestedValue(e,t,n){const r=this.resources[e]?.[t];if(!r)return;const i=n.split(".");let o=r;for(const e of i){if(null==o||"object"!=typeof o)return;o=o[e]}return o}_interpolate(e,t){return e.replace(/{{(\w+)}}/g,((e,n)=>void 0!==t[n]?String(t[n]):e))}},s=a,c=JSON.parse('{"banner":{"ok":"Okay","acceptPolicy":"Accept policy","content":"{{tenant}} uses cookies to provide you with a tailored experience. By visiting the site, you are agreeing to this use of cookies as set out in our #policy-link#.","policyLinkText":"Privacy and Cookie Policy","subContent":"You can change your preferences at any time."},"bannerV5":{"title":"Cookies,#break#on your terms.","titleText":"Cookies, on your terms.","accept":"Accept all cookies","acceptDesktopText":["Accept all cookies"],"acceptMobileText":["Accept all cookies"],"settings":"Manage settings","settingsDesktopText":["Manage settings"],"settingsMobileText":["Manage settings"],"content":"{{tenant}} and its partners use cookies and other technologies to provide and improve our services, to tailor your website experience and to show personalised ads. You can edit your preferences by choosing âManage settingsâ. For more information, see our #policy-link#.","policyLinkText":"Privacy & Cookie Policy","rejectAllText":"Reject all non-essential cookies","rejectNonEssential":"Reject non-essential cookies","continueWithoutAccepting":{"text":"Continue without accepting","desktopText":["Continue without accepting"],"mobileText":["Continue without accepting"]},"acceptNecessary":{"text":"Accept only necessary cookies","desktopText":["Accept only","necessary cookies"],"mobileText":["Accept only","necessary cookies"]}},"preferenceDialog":{"toggleOn":"On","toggleOff":"Off"},"preferenceDataSale":{"title":"Do Not Sell or Share My Personal Information","content":"At {{tenant}}, we do not sell your Personal Information in exchange for money. However, we do share your Personal Information with the partners we work with for cross-context behavioral or targeted advertising. For example, like many ecommerce companies, we share your Personal Information with our advertising partners to help show relevant ads based on what you are interested in. In some instances, this exchange is considered a data \\"sale\\" or \\"sharing\\" under the applicable US State Laws.","confirmation":{"title":"Confirmation dialog","message":"By switching off the toggle you are opting back into the sharing of your Personal Information.","confirm":"Confirm","cancel":"Cancel"}},"preferenceDialogV5":{"title":"Cookie Settings","content":"To give you the best experience, we tailor our site to show the most relevant content and helpful offers. Youâre always in control of your data and we respect your right to privacy. You can manage your cookie preferences below and update them at any time on the âAccount Settingsâ section of our website.","policyText":"Read our #policy-link#","policyLinkText":"Privacy & Cookie Policy","requiredPopover":"This setting is required and cannot be turned off.","categories":{"necessary":{"header":"Necessary","content":"Required for our website to work. This setting cannot be changed.","popover":"We use these cookies to let you access our websiteâs features, manage preferences (like language or VAT settings), and to track statistics necessary to meet contractual requirements."},"functional":{"header":"Functional","content":"Understands how you use our website and tailors the content to your needs.","popover":"We use these cookies to test new website features, detect errors, analyze site usage, receive user feedback and give you a more relevant and personalised experience on our website based on your interests and site interactions."},"advertising":{"header":"Advertising","content":"Delivers advertisements relevant to your interests and shopping habits.","popover":"We use these cookies to show you personalised ads. Theyâre also used to limit the number of times you see an advertisement and help us measure the effectiveness of advertising campaigns."},"sessionReplay":{"header":"Session Replay","content":"Captures how you interact with our website to improve your experience.","popover":"We use these cookies to capture how you interact with our website while browsing and personalising products to find ways to improve the site and your customer experience."},"dataSale":{"header":"Do Not Sell or Share My Personal Information","content":"By switching on the toggle, we will stop sharing your Personal Information with third party vendors for any purpose that is classified as a data \\"sale\\" or \\"sharing\\" under the applicable US State Laws."}},"acceptAll":{"fullText":"Accept all cookies","accept":"Accept","allCookies":"all cookies","text":["Accept","all cookies"]},"confirmSelection":{"fullText":"Confirm my selection","confirm":"Confirm","selection":"my selection","text":["Confirm","my selection"]}
2,"dialog":{"close":"Close"}}}');function u(e){const t={...c};return t.tenant=e,{translation:t,urls:{privacyAndCookiePolicy:"/privacy-and-cookie-policy"}}}const l=function(e,t){return s.t(e,t)},d=function(e){return s.t(e,{ns:"urls"})},p=async function(e,t,n){const{resources:r,formattedLocale:i}=function(e,t,n){const r={en:u(t)};let i=e;return n?(i=n.locale,r[i]=n):r[e]={translation:{tenant:t}},{resources:r,formattedLocale:i}}(e,t,n),o=r[i].translation.tenant;await s.init({resources:r,fallbackLng:"en",interpolation:{defaultVariables:{tenant:o}}}),await s.changeLanguage(i)},f=function(e){return s.exists(e)},h="trackingReady";function g(e){if(!e.eventName)throw new Error("Missing eventName");try{const t=function(e){if("undefined"==typeof window||!window.performance||!window.performance.mark)return 0;const t=window.performance.mark(e);if(t)return t.startTime;const n=window.performance.getEntriesByName(e);return n&&n.length>0?n[0].startTime:0}(e.eventName);!function(e){if(!e.eventName)throw new Error("Missing eventName");try{t={eventName:e.eventName,timing:e.timing,eventDetail:e.eventDetail},function(e){if("undefined"==typeof window)return;const t=()=>{window.tracking&&e(window.tracking),window.removeEventListener(h,t)};window&&window.tracking&&window.tracking.track?e(window.tracking):window.addEventListener(h,t)}((e=>{e.track("Interaction Timed",t)}))}catch(e){console.error("Something went wrong in @vp/track-user-interaction -> trackUserInteractionWithTiming",e)}var t}({eventName:e.eventName,timing:t})}catch(e){console.error("Something went wrong in @vp/track-user-interaction -> trackUserInteraction",e)}}const v="15.0.1607";var m=r(987);const y=e=>m.A.get(e);function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e=>t?`${e} - Global Privacy Control`:e,r=e?{event:"Data Sale Opt-in Captured",label:n("DNS Restriction Off")}:{event:"Data Sale Opt-out Captured",label:n("DNS Restriction On")};b((()=>window.tracking.track(r.event,{label:r.label,consentManagerVersion:v})))}function b(e){window&&window.tracking&&window.tracking.track?e():window.addEventListener("trackingReady",(()=>e()))}function C(e){window.tracking.identify({customTrackingPreferences:e})}function k(e){let{functional:t,advertising:n,sessionReplay:r}=e,i="Necessary";return t&&(i+=":Functional"),n&&(i+=":Advertising"),r&&(i+=":SessionReplay"),i}const x={Dialog:"Dialog",Embedded:"Embedded"},_={sessionReplay:"Session Replay"},S=Object.keys(_),P=n(7292);var E=r.n(P);const A=e=>({...e??{},dataSale:!1});var O=r(953),I=r.n(O);const T=n(1665);var M=r(186),j=r.n(M),D=r(155),L=r.n(D),N=r(433),R=r.n(N),H=r(626),B=r.n(H),F=r(990),V=r.n(F),z=r(827),U=r.n(z),q=r(598),W={};W.styleTagTransform=U(),W.setAttributes=B(),W.insert=R().bind(null,"head"),W.domAPI=L(),W.insertStyleElement=V(),j()(q.A,W);const Y=q.A&&q.A.locals?q.A.locals:void 0;function $(e){const{id:t,isOpen:n,onClose:r,title:i,children:o,buttons:a,headerPosition:s,eventContainerRef:c}=e;return I().createElement(T.ModalDialog,{id:t,isOpen:n,onRequestDismiss:r,takeOver:!0,"aria-labelledby":"consent-dialog-title","aria-describedby":"consent-dialog-description"},I().createElement(T.ModalDialogContent,{ref:c},I().createElement(T.ModalDialogCloseButton,{accessibleText:l("preferenceDialogV5.dialog.close")}),I().createElement(T.ModalDialogHeader,null,I().createElement(T.GridContainer,null,I().createElement(T.Row,null,I().createElement(T.Column,s,I().createElement(T.H2,{id:"consent-dialog-title","aria-label":i,title:i,className:Y.cookieSettingsTitle},i))))),I().createElement(T.ModalDialogBody,null,o),I().createElement(T.ModalDialogButtons,{className:Y.cookieSettingsButtons},a)))}function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K.apply(null,arguments)}$.displayName="Dialog";var G=r(193);function J(e){const{mobileText:t,text:n}=e,r=(0,G.useMediaPredicate)("only screen and (max-width: 767px)");return I().createElement(I().Fragment,null,(r&&t?t:n).map(((e,t)=>I().createElement(O.Fragment,{key:`text${t}`},0!==t&&I().createElement("br",null),e))))}function X(e){let{acceptAll:t,submitSelected:n,preferenceDialogKey:r,position:i}=e;return I().createElement(T.GridContainer,null,I().createElement(T.Row,null,I().createElement(T.Column,K({},i,{verticallyCenterContent:!0}),I().createElement(T.Button,{skin:"primary",className:"styles.acceptButton",title:l(`${r}.acceptAll.fullText`),"aria-label":l(`${r}.acceptAll.fullText`),onClick:t},I().createElement(J,{text:l(`${r}.acceptAll.text`,{returnObjects:!0})})),I().createElement(T.Button,{skin:"secondary",className:Y.textButton,title:l(`${r}.confirmSelection.fullText`),"aria-label":l(`${r}.confirmSelection.fullText`),onClick:n},I().createElement(J,{text:l(`${r}.confirmSelection.text`,{returnObjects:!0})})))))}class Q extends O.PureComponent{render(){const{category:e,handleChange:t,mode:n}=this.props,{contentPosition:r,togglePosition:i}=this.getPosition(n),o=e=>`${e.name}CategoryLabel`,a=f(`preferenceDialogV5.categories.${e.name}.popover`);return I().createElement(O.Fragment,null,I().createElement(T.Row,{marginBottom:"5"},I().createElement(T.Column,K({verticallyCenterContent:!0},r),I().createElement(T.Row,{marginBottom:"3"},I().createElement(T.Column,{span:12},I().createElement(T.Row,null,I().createElement(T.Column,{span:12,display:"flex",alignitems:"center"},I().createElement(T.H3,{title:l(`preferenceDialogV5.categories.${e.name}.header`),textAlign:"left",fontWeight:"bold",fontSize:"large",id:o(e)},l(`preferenceDialogV5.categories.${e.name}.header`)),a&&I().createElement(T.Popover,{position:"right",className:Y.categoryDetailsPopover,paddingLeft:"3"},I().createElement(T.PopoverLauncher,null,I().createElement(T.Button,{skin:"unstyled","aria-label":l(`preferenceDialogV5.categories.${e.name}.iconAccessibility`)},I().createElement(T.Icon,{skin:"standard",iconType:"info",className:Y.informationIcon}))),I().createElement(T.PopoverContent,{id:"category-details-popover-content",className:Y.categoryDetailsPopoverContent,role:"status"},l(`preferenceDialogV5.categories.${e.name}.popover`))))))),I().createElement(T.Row,null,I().createElement(T.Column,{span:12},l(`preferenceDialogV5.categories.${e.name}.content`)))),I().createElement(T.Column,K({},i,{align:"right"}),I().createElement(T.ToggleSwitch,{name:e.name,className:Y.toggleSwitchDisabled,"aria-labelledby":o(e),onRequestActivatedChange:e.readonly?()=>{}:n=>t(e.name,n),activated:e.enabled,disabled:e.readonly},I().createElement(T.ToggleSwitchOnLabel,null,l("preferenceDialog.toggleOn")),I().createElement(T.ToggleSwitchOffLabel,null,l("preferenceDialog.toggleOff"))))))}getPosition(e){return e===x.Embedded?{contentPosition:{span:10,spanXs:8},togglePosition:{span:2,spanXs:4}}:{contentPosition:{offsetLg:3,spanLg:5,offset:1,span:9,spanXs:7},togglePosition:{span:1,spanXs:2}}}}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(e.startsWith("http"))return e;const n=function(e){if(e&&e.location&&e.location.origin)return e.location.origin}(t);return n&&n.indexOf("//gallery.")>-1?n.replace("//gallery.","//www.")+e:e}class ee extends O.PureComponent{constructor(e){super(e),o(this,"getPolicyLink",(()=>Z(d("privacyAndCookiePolicy")))),o(this,"handleChange",((e,t)=>
2{const{onChange:n}=this.props;n(e,t)}))}render(){const{advertising:e,functional:t,sessionReplay:n,mode:r,enabledOptionalCategories:i}=this.props,o=this.getPosition(r),a=[{name:"necessary",enabled:!0,readonly:!0},{name:"functional",enabled:t,readonly:!1},{name:"sessionReplay",enabled:n,readonly:!1},{name:"advertising",enabled:e,readonly:!1}].filter((e=>!S.includes(e.name)||i?.includes(e.name)));return I().createElement(T.GridContainer,{marginBottom:"7"},I().createElement(T.Row,{marginBottom:"5"},I().createElement(T.Column,K({},o,{align:"left",id:"consent-dialog-description","aria-label":l("preferenceDialogV5.content")}),l("preferenceDialogV5.content"))),I().createElement(T.Row,{marginBottom:"7"},I().createElement(T.Column,K({},o,{align:"left"}),I().createElement(T.Typography,null,this.getPolicyTextPart(0),I().createElement(T.Link,{href:this.getPolicyLink()},l("preferenceDialogV5.policyLinkText")),this.getPolicyTextPart(1)))),a.map((e=>I().createElement(Q,{key:e.name,category:e,handleChange:this.handleChange,mode:r}))))}getPosition(e){return e===x.Embedded?{span:12}:{offsetLg:3,spanLg:6,offset:1,span:10,spanXs:12}}getPolicyTextPart(e){const t=l("preferenceDialogV5.policyText").split("#policy-link#");return t.length>e?t[e]:""}}class te extends O.PureComponent{constructor(e){super(e),o(this,"getPolicyLink",(()=>Z(d("privacyAndCookiePolicy")))),o(this,"handleChange",((e,t)=>{const{onChange:n}=this.props;n(e,t)}))}render(){const{advertising:e,functional:t,sessionReplay:n,mode:r,enabledOptionalCategories:i}=this.props,o=this.getPosition(r),a=[{name:"necessary",enabled:!0,readonly:!0},{name:"functional",enabled:t,readonly:!1},{name:"sessionReplay",enabled:n,readonly:!1},{name:"advertising",enabled:e,readonly:!1}].filter((e=>!S.includes(e.name)||i?.includes(e.name)));return I().createElement(T.GridContainer,{marginBottom:"7"},I().createElement(T.Row,{marginBottom:"6"},I().createElement(T.Column,K({},o,{align:"left",id:"consent-dialog-description","aria-label":l("preferenceDialogV5.content")}),this.getPolicyTextComponent())),a.map((e=>I().createElement(Q,{key:e.name,category:e,handleChange:this.handleChange,mode:r}))))}getPosition(e){return e===x.Embedded?{span:12}:{offsetLg:3,spanLg:6,offset:1,span:10,spanXs:12}}getPolicyTextComponent(){const e=l("preferenceDialogV5.content").split("#policy-link#"),t=l("preferenceDialogV5.policyLinkText"),n=this.getPolicyLink(),r=(e,t)=>e.split("#break#").map(((e,n,r)=>[I().createElement(I().Fragment,{key:`${t}-part-${n}`},e),n<r.length-1?I().createElement(I().Fragment,{key:`${t}-brs-${n}`},I().createElement("br",null),I().createElement("br",null)):null]));return I().createElement(I().Fragment,null,r(e[0],"before-link"),I().createElement(T.Link,{href:n},t),e[1]&&r(e[1],"after-link"))}}const ne="variation2",re="variation3",ie="variationCa",oe="variationUk";class ae extends O.PureComponent{constructor(e){super(e),o(this,"handleSubmitSelected",(e=>{const{onSave:t,advertising:n,functional:r,enabledOptionalCategories:i}=this.props;e.preventDefault();const o=S.filter((e=>i?.includes(e))).some((e=>null==this.props[e]));null===n||null===r||o||t()})),this.eventContainerRef=I().createRef()}render(){const{id:e,onCancel:t,advertising:n=null,functional:r=null,sessionReplay:i=null,onAcceptAll:o,onChange:a,variation:s=null,enabledOptionalCategories:c}=this.props,u=this.eventContainerRef,d={offsetLg:3,offset:1,span:11,spanLg:9},p=I().createElement(X,{acceptAll:o,submitSelected:this.handleSubmitSelected,preferenceDialogKey:"preferenceDialogV5",position:d});return I().createElement($,{id:e,isOpen:this.props.isOpen,title:l("preferenceDialogV5.title"),buttons:p,onClose:t,headerPosition:d,eventContainerRef:u},s===ie?I().createElement(te,{advertising:n,functional:r,sessionReplay:i,onChange:a,mode:x.Dialog,enabledOptionalCategories:c}):I().createElement(ee,{advertising:n,functional:r,sessionReplay:i,onChange:a,mode:x.Dialog,enabledOptionalCategories:c}))}}o(ae,"displayName","PreferenceDialog");class se extends O.PureComponent{constructor(e){super(e)}render(){const{preferences:e,handleAcceptAll:t,handleSave:n,handleCategoryChange:r,isPrimarySkin:i}=this.props;return I().createElement(I().Fragment,null,I().createElement(te,{advertising:e.advertising,functional:e.functional,sessionReplay:e.sessionReplay,onChange:r,mode:x.Embedded,enabledOptionalCategories:this.props.enabledOptionalCategories}),I().createElement(X,{acceptAll:t,submitSelected:n,preferenceDialogKey:"preferenceDialogV5",position:{span:12},isPrimarySkin:i}))}}class ce extends O.PureComponent{constructor(e){super(e)}render(){const{preferences:e,handleAcceptAll:t,handleSave:n,handleCategoryChange:r,isPrimarySkin:i}=this.props;return I().createElement(I().Fragment,null,I().createElement(ee,{advertising:e.advertising,functional:e.functional,sessionReplay:e.sessionReplay,onChange:r,mode:x.Embedded,enabledOptionalCategories:this.props.enabledOptionalCategories}),I().createElement(X,{acceptAll:t,submitSelected:n,preferenceDialogKey:"preferenceDialogV5",position:{span:12},isPrimarySkin:i}))}}const ue=e=>{let{isOpen:t,onConfirm:n,onCancel:r}=e;
2return I().createElement(T.ModalDialog,{isOpen:t,onRequestDismiss:r},I().createElement(T.ModalDialogContent,{className:Y.confirmationDialog,"aria-label":l("preferenceDataSale.confirmation.title")},I().createElement(T.ModalDialogBody,null,l("preferenceDataSale.confirmation.message")),I().createElement(T.ModalDialogFooter,null,I().createElement(T.ModalDialogButtons,null,I().createElement(T.Button,{skin:"primary",onClick:n},l("preferenceDataSale.confirmation.confirm")),I().createElement(T.Button,{skin:"secondary",onClick:r},l("preferenceDataSale.confirmation.cancel"))))))},le="dataSale";class de extends O.PureComponent{constructor(e){super(e),o(this,"handleDataSaleChange",((e,t)=>{const{onChange:n}=this.props;t?n(le,!1):this.setState({confirmationDialogVisible:!0})})),o(this,"handleCancelOptIn",(()=>{this.setState({confirmationDialogVisible:!1})})),o(this,"handleConfirmOptIn",(()=>{const{onChange:e}=this.props;e(le,!0),this.setState({confirmationDialogVisible:!1})})),this.state={confirmationDialogVisible:!1}}render(){const{mode:e,dataSale:t}=this.props,{confirmationDialogVisible:n}=this.state,r=this.getPosition(e),i={name:le,enabled:!t,readonly:!1};return I().createElement(I().Fragment,null,I().createElement(T.GridContainer,{marginBottom:"5"},I().createElement(T.Row,{marginBottom:"3"},I().createElement(T.Column,K({},r,{align:"left"}),l("preferenceDataSale.content"))),I().createElement(Q,{key:i.name,category:i,handleChange:this.handleDataSaleChange,mode:e})),I().createElement(ue,{isOpen:n,onCancel:this.handleCancelOptIn,onConfirm:this.handleConfirmOptIn}))}getPosition(e){return e===x.Embedded?{span:12}:{offsetLg:3,spanLg:6,offset:1,span:10,spanXs:12}}}class pe extends O.PureComponent{constructor(e){super(e),this.eventContainerRef=I().createRef()}render(){const{id:e,onCancel:t,dataSale:n=null,onChange:r}=this.props,i=this.eventContainerRef,o=I().createElement(I().Fragment,null);return I().createElement($,{id:e,isOpen:this.props.isOpen,title:l("preferenceDataSale.title"),buttons:o,onClose:t,headerPosition:{offsetLg:3,offset:1,span:11,spanLg:9},eventContainerRef:i},I().createElement(de,{dataSale:n,onChange:r,mode:x.Dialog}))}}function fe(e){const{onAcceptAll:t,onAcceptNecessary:n,onChangePreferences:r}=e;return I().createElement(T.GridContainer,{className:`${Y.cookiePolicyControl} grid-container-proportional consent-manager-banner`,backgroundColor:"standard","aria-labelledby":"cookie-dialog-title",role:"dialog","aria-describedby":"cookie-dialog-description"},I().createElement(T.Row,{marginTop:"4",marginBottom:"6"},I().createElement(T.Column,{span:6,spanXs:6},I().createElement(T.Typography,{textAlign:"left",fontSize:"large",width:"183px",fontWeight:"bold",id:"cookie-dialog-title"},ge(0),I().createElement("br",null),ge(1))),I().createElement(T.Column,{span:6,spanXs:6,style:{display:"flex",alignitems:"flex-start",justifyContent:"flex-end"},"aria-label":l("bannerV5.continueWithoutAccepting.text"),title:l("bannerV5.continueWithoutAccepting.text")},I().createElement(T.Link,{textAlign:"right",title:l("bannerV5.continueWithoutAccepting.text"),"aria-label":l("bannerV5.continueWithoutAccepting.text"),render:e=>I().createElement(T.Button,{skin:"link",className:e.className,onClick:n},e.children)},I().createElement(J,{mobileText:l("bannerV5.continueWithoutAccepting.mobileText",{returnObjects:!0}),text:l("bannerV5.continueWithoutAccepting.desktopText",{returnObjects:!0})})))),I().createElement(T.Row,{marginY:"3"},I().createElement(T.Column,{span:12},I().createElement(T.Typography,{textAlign:"left",id:"cookie-dialog-description"},he(0),I().createElement(T.Link,{href:Z(d("privacyAndCookiePolicy"))},l("bannerV5.policyLinkText")),he(1)))),I().createElement(T.Row,null,I().createElement(T.Column,{span:6},I().createElement(T.Button,{width:"full-width",skin:"secondary",className:`${Y.textButton} ${Y.wrappedText}`,title:l("bannerV5.settings"),"aria-label":l("bannerV5.settings"),onClick:r},l("bannerV5.settings"))),I().createElement(T.Column,{span:6},I().createElement(T.Button,{width:"full-width",skin:"primary",className:`${Y.acceptButton} ${Y.wrappedText}`,title:l("bannerV5.accept"),"aria-label":l("bannerV5.accept"),onClick:t},l("bannerV5.accept")))))}
2function he(e){const t=l("bannerV5.content").split("#policy-link#");return t.length>e?t[e]:""}function ge(e){const t=l("bannerV5.title").split("#break#");return t.length>e?t[e]:""}function ve(e){const{onAcceptAll:t,onAcceptNecessary:n,onChangePreferences:r}=e;return I().createElement(T.GridContainer,{className:`${Y.cookiePolicyControl} grid-container-proportional consent-manager-banner`,backgroundColor:"standard",role:"dialog","aria-labelledby":"cookie-dialog-title","aria-describedby":"cookie-dialog-description"},I().createElement(T.Row,{marginTop:"3",marginBottom:"5"},I().createElement(T.Column,{span:12,spanXs:12,style:{display:"flex",alignitems:"flex-start",justifyContent:"flex-start"},title:l("bannerV5.continueWithoutAccepting.text"),"aria-label":l("bannerV5.continueWithoutAccepting.text")},I().createElement(T.Link,{textAlign:"right",title:l("bannerV5.continueWithoutAccepting.text"),"aria-label":l("bannerV5.continueWithoutAccepting.text"),fontSize:"small",render:e=>I().createElement(T.Button,{skin:"link",className:e.className,onClick:n},e.children)},I().createElement(J,{mobileText:l("bannerV5.continueWithoutAccepting.mobileText",{returnObjects:!0}),text:l("bannerV5.continueWithoutAccepting.desktopText",{returnObjects:!0})})))),I().createElement(T.Row,{marginY:"4"},I().createElement(T.Column,{span:12,spanXs:12},I().createElement(T.H2,{id:"cookie-dialog-title",fontSkin:"title-subsection"},l("bannerV5.titleText")))),I().createElement(T.Row,{marginY:"4"},I().createElement(T.Column,{span:12},I().createElement(T.Typography,{textAlign:"left",fontSize:"small",id:"cookie-dialog-description"},me(0),I().createElement(T.Link,{href:Z(d("privacyAndCookiePolicy"))},l("bannerV5.policyLinkText")),me(1)))),I().createElement(T.Row,null,I().createElement(T.Column,{span:6},I().createElement(T.Button,{width:"full-width",skin:"secondary",size:"mini",className:`${Y.textButton} ${Y.wrappedText}`,title:l("bannerV5.settings"),"aria-label":l("bannerV5.settings"),onClick:r},l("bannerV5.settings"))),I().createElement(T.Column,{span:6},I().createElement(T.Button,{skin:"primary",width:"full-width",size:"mini",className:`${Y.textButton} ${Y.wrappedText}`,title:l("bannerV5.accept"),"aria-label":l("bannerV5.accept"),onClick:t},l("bannerV5.accept")))))}function me(e){const t=l("bannerV5.content").split("#policy-link#");return t.length>e?t[e]:""}function ye(e){const{onAcceptAll:t,onChangePreferences:n}=e;return I().createElement(T.GridContainer,{className:`${Y.cookiePolicyControl} grid-container-proportional consent-manager-banner`,backgroundColor:"standard","aria-labelledby":"cookie-dialog-title",role:"dialog","aria-describedby":"cookie-dialog-description"},I().createElement(T.Row,{marginTop:"4",marginBottom:"6"},I().createElement(T.Column,{span:12,spanXs:12},I().createElement(T.Typography,{textAlign:"left",fontSize:"x2large",width:"100%",fontWeight:"bold",id:"cookie-dialog-title"},l("bannerV5.title")))),I().createElement(T.Row,{marginY:"3"},I().createElement(T.Column,{span:12},I().createElement(T.Typography,{textAlign:"left",id:"cookie-dialog-description"},l("bannerV5.content").replace("#policy-link#.",""),I().createElement(T.Link,{href:Z(d("privacyAndCookiePolicy"))},l("bannerV5.policyLinkText")),"."))),I().createElement(T.Row,{marginTop:"6",paddingX:"0"},I().createElement(T.Column,{textAlign:"right",span:12,paddingX:"0"},I().createElement(T.Button,{skin:"secondary",className:`${Y.caButton} ${Y.textButton} ${Y.wrappedText} `,title:l("bannerV5.settings"),"aria-label":l("bannerV5.settings"),onClick:n},l("bannerV5.settings")),I().createElement(T.Button,{skin:"primary",className:`${Y.caButton} ${Y.acceptButton} ${Y.wrappedText} `,title:l("bannerV5.accept"),"aria-label":l("bannerV5.accept"),onClick:t},l("bannerV5.accept")))))}function we(e){const{onAcceptAll:t,onAcceptNecessary:n,onChangePreferences:r}=e;return I().createElement(T.GridContainer,{className:`${Y.cookieBannerUk} grid-container-proportional consent-manager-banner`,backgroundColor:"standard","aria-labelledby":"cookie-dialog-title",role:"dialog","aria-describedby":"cookie-dialog-description"},I().createElement(T.Row,{marginBottom:"5"},I().createElement(T.Column,{span:12,spanXs:12},I().createElement(T.Typography,{fontSkin:"title-section",id:"cookie-dialog-title"},l("bannerV5.title").replace("#break#"," ")))),I().createElement(T.Row,null,I().createElement(T.Column,{span:12}
2,I().createElement(T.Typography,{fontSkin:"body-standard",id:"cookie-dialog-description"},be(0),I().createElement(T.Link,{href:Z(d("privacyAndCookiePolicy"))},l("bannerV5.policyLinkText")),be(1)))),I().createElement(T.Row,{paddingTop:6},I().createElement(T.Column,{span:9,spanSm:12,spanXs:12},I().createElement(T.FlexBox,{gap:3,className:Y.actionButtonsUk},I().createElement(T.Button,{width:"full-width",skin:"primary",title:l("bannerV5.accept"),"aria-label":l("bannerV5.accept"),onClick:t},l("bannerV5.accept")),I().createElement(T.Button,{width:"full-width",skin:"primary",title:l("bannerV5.rejectNonEssential"),"aria-label":l("bannerV5.rejectNonEssential"),onClick:n},l("bannerV5.rejectNonEssential")))),I().createElement(T.Column,{span:3,spanSm:12,spanXs:12,className:Y.settingsLinkCol},I().createElement(T.Link,{textAlign:"center",title:l("bannerV5.settings"),"aria-label":l("bannerV5.settings"),render:e=>I().createElement(T.Button,{skin:"link",className:e.className,onClick:r},e.children)},l("bannerV5.settings")))))}function be(e){const t=l("bannerV5.content").split("#policy-link#");return t.length>e?t[e]:""}o(pe,"displayName","PreferenceDialog"),fe.displayName="Banner",ve.displayName="Banner",ye.displayName="Banner",we.displayName="Banner";let Ce=null;const ke="consentManagerPreferenceDialog",xe="Accept All cookies:Pop-Up";function _e(){Ce&&Ce()}class Se extends O.PureComponent{constructor(){super(),o(this,"openDialog",(()=>{this.setState({preferenceDialogIsOpen:!0}),b((()=>function(){const e={category:"Cookie Consent",label:"Manage settings",consentManagerVersion:v};window.tracking.track("Cookie Consent Clicked",e)}()))})),o(this,"closeDialog",(()=>{this.setState({preferenceDialogIsOpen:!1})})),o(this,"handleBannerAccept",(()=>{this.handleAcceptAll("Accept All cookies:Banner")})),o(this,"handleBannerAcceptOnlyNeccessary",(()=>{const{saveConsent:e,setPreferences:t,onSave:n,enabledOptionalCategories:r}=this.props,i={};S.forEach((e=>{r?.includes(e)&&(i[e]=!1)})),t({functional:!1,advertising:!1,...i}),e({label:"Accept Only Necessary cookies:Banner",acceptAll:!1}),n&&n()})),o(this,"handleAcceptAll",(e=>{const{saveConsent:t,setPreferences:n,onAcceptAll:r,enabledOptionalCategories:i}=this.props,o={};S.forEach((e=>{i?.includes(e)&&(o[e]=!0)})),n({functional:!0,advertising:!0,...o}),this.closeDialog(),t({label:e,acceptAll:!0}),r&&r()})),o(this,"handleCategoryChange",((e,t)=>{const{setPreferences:n}=this.props;n({[e]:t})})),o(this,"handleSave",(()=>{const{saveConsent:e,onSave:t}=this.props;this.closeDialog(),e({label:"Confirm selection",acceptAll:!1}),t&&t()})),o(this,"handleCancel",(()=>{const{resetPreferences:e}=this.props;e(),this.setState({preferenceDialogIsOpen:!1})})),o(this,"getBanner",(e=>e===ne?I().createElement(fe,{onAcceptAll:this.handleBannerAccept,onAcceptNecessary:this.handleBannerAcceptOnlyNeccessary,onChangePreferences:this.openDialog}):e===re?I().createElement(ve,{onAcceptAll:this.handleBannerAccept,onAcceptNecessary:this.handleBannerAcceptOnlyNeccessary,onChangePreferences:this.openDialog}):e===ie?I().createElement(ye,{onAcceptAll:this.handleBannerAccept,onChangePreferences:this.openDialog,variation:e}):e===oe?I().createElement(we,{onAcceptAll:this.handleBannerAccept,onAcceptNecessary:this.handleBannerAcceptOnlyNeccessary,onChangePreferences:this.openDialog}):I().createElement(fe,{onAcceptAll:this.handleBannerAccept,onAcceptNecessary:this.handleBannerAcceptOnlyNeccessary,onChangePreferences:this.openDialog}))),o(this,"getPreferenceDialog",((e,t,n)=>{const{enabledOptionalCategories:r}=this.props;return!0===n?I().createElement(pe,{id:ke,dataSale:t.dataSale,isOpen:this.state.preferenceDialogIsOpen,onCancel:this.closeDialog,onChange:(e,t)=>
2this.handleDataSaleCategoryChange(t)}):I().createElement(ae,{id:ke,advertising:t.advertising,functional:t.functional,sessionReplay:t.sessionReplay,isOpen:this.state.preferenceDialogIsOpen,onCancel:this.handleCancel,onSave:this.handleSave,onChange:this.handleCategoryChange,onAcceptAll:()=>this.handleAcceptAll(xe),variation:e,enabledOptionalCategories:r})})),o(this,"getPreferenceEmbedded",((e,t,n)=>{const{enabledOptionalCategories:r}=this.props;return n?I().createElement(ce,{preferences:t,handleCategoryChange:(e,t)=>this.handleDataSaleCategoryChange(t)}):e===ie?I().createElement(se,{preferences:t,handleCategoryChange:this.handleCategoryChange,handleAcceptAll:()=>this.handleAcceptAll(xe),handleSave:this.handleSave,isPrimarySkin:!0,enabledOptionalCategories:r}):I().createElement(ce,{preferences:t,handleCategoryChange:this.handleCategoryChange,handleAcceptAll:()=>this.handleAcceptAll(xe),handleSave:this.handleSave,isPrimarySkin:e!==ne,enabledOptionalCategories:r})})),this.state={preferenceDialogIsOpen:!1}}render(){const{preferences:e,variation:t,showBanner:n,mode:r,ccpa:i}=this.props;if(r===x.Dialog)return I().createElement("div",null,n&&this.getBanner(t),(n||this.state.preferenceDialogIsOpen)&&this.getPreferenceDialog(t,e,i));if(r===x.Embedded)return I().createElement(I().Fragment,null,this.getPreferenceEmbedded(t,e,i));throw new Error(`Not supported mode '${r}'`)}componentDidMount(){Ce=this.openDialog}componentWillUnmount(){Ce=null}handleDataSaleCategoryChange(e){const{saveDataSale:t}=this.props;t(e)}}o(Se,"displayName","Container");class Pe{constructor(){return Pe.instance||(Pe.instance=this,this.createGlobalObject()),Pe.instance}getTrackingPreferences(){return{...Pe.trackingPreferences}}createGlobalObject(){Pe.globalObject={},"undefined"!=typeof window&&(Pe.globalObject=window),Pe.globalObject.consentManager=Pe.globalObject.consentManager||{}}enableOpenDialog(){Pe.globalObject.consentManager.openConsentManager=_e}reset(){"undefined"!=typeof window&&window.consentManager&&delete window.consentManager,Pe.instance=null,Pe.globalObject=null,Pe.trackingPreferences=null,this.createGlobalObject()}setTrackingPreferences(e){Pe.trackingPreferences=e}enableConsentCategories(){Pe.globalObject.consentManager.getTrackingPreferences=Pe.globalObject.consentManager.getTrackingPreferences||this.getTrackingPreferences.bind(this)}}o(Pe,"instance",null),o(Pe,"trackingPreferences",{});const Ee=new Pe;let Ae;function Oe(){if(void 0!==Ae)return Ae;const e=window?.location?.hostname;if(!e)return Ae="";const t=e.split(".");if(t.length<=1)return Ae="";const n="__tld__";for(let e=t.length-2;e>=0;e--){const r=t.slice(e).join(".");if(document.cookie=`${n}=1;domain=.${r}`,document.cookie.includes(n))return document.cookie=`${n}=;domain=.${r};max-age=0`,Ae=r}return Ae=""}const Ie="tracking-preferences",Te={advertising:!1,functional:!0,sessionReplay:!1,dataSale:!0},Me={advertising:!0,functional:!0,sessionReplay:!0,dataSale:!0},je={advertising:!1,functional:!0,sessionReplay:!1},De={dataSale:!0};let Le;function Ne(e,t){if(!t||!e)return e;const n={...e};return Object.keys(t).filter((e=>n.hasOwnProperty(e))).forEach((e=>n[e]=t[e])),n}function Re(e){let{cookieDomain:t,version:n,customPreferences:r,hasConsent:i,lastModified:o,cookieExpiresInDays:a}=e;const s=t||Oe(),c={version:n,custom:Be(r),consent:i,lastModified:o};var u;m.A.set(Ie,JSON.stringify(c),{expires:(u=a,function(e){return Number.isFinite(e)&&e>=180&&e<=365}(u)?u:365),domain:s,sameSite:"None",secure:!0})}function He(e){if(!e.custom)return;const t={};void 0!==e.custom.advertising&&(t.advertising=e.custom.advertising),void 0!==e.custom.functional&&(t.functional=e.custom.functional);for(const[n]of Object.entries(_)){const r=n.toLowerCase();void 0!==e.custom[r]&&(t[n]=e.custom[r])}return void 0!==e.custom.datasale&&(t.dataSale=e.custom.datasale),t}function Be(e){if(!e)return;const t={};void 0!==e.advertising&&(t.advertising=e.advertising),void 0!==e.functional&&(t.functional=e.functional);for(const[n]of Object.entries(_))void 0!==e[n]&&(t[n.toLowerCase()]=e[n]);return void 0!==e.dataSale&&(t.datasale=e.dataSale),t}function Fe(e,t,n,r){const i={...e,...t};
2S.forEach((e=>{r?.includes(e)||delete i[e]})),void 0!==i.dataSale&&(!1===i.dataSale&&(i.advertising=!1),delete i.dataSale),i.strictlyNecessary=!0,Ee.setTrackingPreferences({hasConsent:n,categoryPreferences:i})}const Ve={evaluatePreferences:function(e){let{isConsentRequired:t,cookieDomain:n,ccpa:r,categoriesDefault:i,cookieExpiresInDays:o,enabledOptionalCategories:a}=e,s=Ve.loadPreferences();const{initialPreferences:c,minimalPreferences:u}=function(e,t,n){const r=e?je:De,i=e=>{const t={...e};return S.forEach((e=>{n?.includes(e)||delete t[e]})),t};return{initialPreferences:Ne(i(e?Te:Me),t),minimalPreferences:Ne(i(r),t)}}(t,i,a);Le=c,s=Ve.upgradeCookie(n,s,o,a),r&&(s=function(e,t,n){let{customPreferences:r,hasConsent:i,version:o,lastModified:a}=t,s=i;var c=((e,t)=>{let n=!1,r=!1;const i=E().isTreatmentEnabled("data_sale_opted_out"),o=t??new Date(1970,1,1).getTime();if(e){const t=!0===e.dataSale,r=Date.now()-o>9e5;t&&i&&r&&(e=A(e),n=!0)}else{const t=(()=>{const e=navigator?.globalPrivacyControl;return!0===e||1===e||"1"===e||"true"===e})();(i||t)&&(e=A(e),n=!0),!i&&t&&(r=!0)}return{cookiePreferencesShouldBeModified:n,profilePreferencesShouldBeModified:r,version:4,customPreferences:e,lastModified:Date.now()}})(r,a);return c.cookiePreferencesShouldBeModified&&(s=i??!1,({version:o,customPreferences:r,lastModified:a}=c),Re({cookieDomain:e,version:o,customPreferences:r,hasConsent:s,lastModified:a,cookieExpiresInDays:n})),c.profilePreferencesShouldBeModified&&(function(e){b((()=>C(e)))}(c.customPreferences),w(c.customPreferences.dataSale,!0)),{customPreferences:r,hasConsent:s,version:o,lastModified:a}}(n,s,o));let{customPreferences:l,hasConsent:d,version:p}=s,f=!!d;return Fe(Le,l,f,a),{hasConsent:f,customPreferences:{...u,...l},version:p,initialPreferences:c}},loadPreferences:function(){const e=m.A.get(Ie);if(!e)return{};const t=JSON.parse(e);return t?{customPreferences:He(t),version:t.version,hasConsent:t.consent??!!t.custom,lastModified:t.lastModified}:{}},savePreferences:function(e){let{customPreferences:t,cookieDomain:n,version:r,acceptAll:i,trackingProperties:o,hasConsent:a,cookieExpiresInDays:s,enabledOptionalCategories:c}=e;o&&(Fe(Le,t,a,c),function(e,t){b((()=>function(e,t){C(e),function(e,t){const{label:n,suppressReload:r,pageReloaded:i}=t,o={category:"Cookie Consent",label:n,eventDetail:k(e),preferences:{functional:e.functional,advertising:e.advertising,sessionReplay:e.sessionReplay,dataSale:e.dataSale},suppressReload:r,pageReloaded:i,consentManagerVersion:v};window.tracking.track("Cookie Consent Clicked",o),window.tracking.track("Segment Consent Preference Updated")}(e,t)}(e,t)))}(t,o)),Re({cookieDomain:n,version:r,customPreferences:t,hasConsent:a,lastModified:Date.now(),cookieExpiresInDays:s})},removePreferences:function(e){let{cookieDomain:t}=e;m.A.remove(Ie,{domain:t||Oe()})},upgradeCookie:function(e,t,n,r){if(void 0!==t.version&&4!==t.version)return{};if(t.customPreferences&&r?.length){const e={};if(S.forEach((n=>{r.includes(n)&&!(n in t.customPreferences)&&(e[n]=!1)})),Object.keys(e).length>0)return{...t,customPreferences:{...e,...t.customPreferences}}}return t},setCategoryPreferences:Fe},ze=Ve;function Ue(e){window.analytics&&"function"==typeof window.analytics.load||window.analytics&&window.analytics.initialized?qe(e):window.addEventListener("trackingReady",(()=>qe(e)))}function qe(e){let{writeKey:t,suppressReload:n,originalPreferences:r,newPreferences:i,mode:o,initialization:a}=e;window.analytics.initialized?We(n,r,i,o,a)&&setTimeout((()=>{window.location.reload()}),500):window.analytics.load(t)}function We(e,t,n,r,i){return!(r===x.Embedded||!0===i||t&&n&&(t.functional===n.functional&&t.advertising===n.advertising&&t.sessionReplay===n.sessionReplay||(!t.functional||n.functional)&&(!t.advertising||n.advertising)&&(!t.sessionReplay||n.sessionReplay)&&e))}function Ye(e,t){const n=new CustomEvent(e,t);window.dispatchEvent(n)}function $e(e,t){return"vista"!==e.toLowerCase()&&t.toLowerCase().endsWith("-us")}const{evaluatePreferences:Ke,loadPreferences:Ge,savePreferences:Je}=ze;class Xe extends O.Component{constructor(){super(...arguments),o(this,"state",{isLoading:!0,preferences:{},originalPreferences:void 0,isConsentRequired:!0,hasConsent:!1,variation:void 0,initialPreferences:{}}),o(this,"initialise",(async()=>{const{writeKey:e,shouldRequireConsent:t=()=>!0,hideBanner:n=!1,locale:r,tenant:i,defaultVariation:o,cookieDomain:a,mode:s,data:c}=this.props;Ee.enableConsentCategories();const u=$e(i,r),l=c&&c.resources?c.resources:await async function(e,t){try{const n=await fetch(`https://tracking.cdn.vpsvc.com/consent-manager/resources/${e}/${t}/resources.json`.toLowerCase());return n.ok?n.json():void console.log(`Failed to fetch consent manager resources for locale: ${t}, tenant: ${e} => HTTP ${n.status} ${n.statusText}`)}catch(n){return void console.log(`Failed to fetch consent manager resources for locale: ${t}, tenant: ${e}`)}}(i,r),d=l.categoriesDefault,f=l.cookieExpiresInDays,h=l.optionalCategories,{variation:m}=await(async e=>{let{defaultVariation:t,resources:n}=e;return t=(e=>{if([ne,re,ie,oe].includes(e))return e})(t??n?.variation),t?{variation:t}:{variation:ne}})({defaultVariation:o,resources:l}),w=t();let{hasConsent:C,customPreferences:k,initialPreferences:x}=Ke({isConsentRequired:w,cookieDomain:a,ccpa:u,categoriesDefault:d,cookieExpiresInDays:f,enabledOptionalCategories:h});Ue({writeKey:e,mode:s,initialization:!0}),await p(r,i,l),this.setState({isLoading:!1,preferences:k||x,originalPreferences:k||x,isConsentRequired:w,hasConsent:C,variation:m,initialPreferences:x,cookieExpiresInDays:f,enabledOptionalCategories:h}),(w||u)&&Ee.enableOpenDialog(),Ye("consentManagerInitialized",{}),this.shouldShowBanner(C,w,n)&&(b((()=>function(){const e=function(){const e=y("cf-ipcountry"),t=y("cf-region-code");
2return{...e&&{cfIpCountry:e},...t&&{cfRegionCode:t}}}()||{},t={category:"Cookie Consent",label:"Banner Viewed",nonInteraction:1,consentManagerVersion:v,...e};window.tracking.track("Cookie Consent Banner Viewed",t)}())),g({eventName:"consent manager loaded"}))})),o(this,"handleSetPreferences",(e=>{this.setState((t=>{const{preferences:n}=t,r=this.mergePreferences({newPreferences:e,existingPreferences:n});return Ye("cookieConsentProvided",{detail:{categories:r}}),{preferences:r}}))})),o(this,"handleResetPreferences",(()=>{const{initialPreferences:e,originalPreferences:t}=this.state,n=Ge(),r={...e,...(4===n.version?n.customPreferences:void 0)??t??{}};this.setState({preferences:r})})),o(this,"handleSaveConsent",(e=>{let{label:t,acceptAll:n}=e;this.setState((e=>{const{originalPreferences:r}=e;let i=e.preferences;return this.updatePreferences({preferences:i,acceptAll:n,label:t,originalPreferences:r,hasConsent:!0})}))})),o(this,"mergePreferences",(e=>{let{existingPreferences:t,newPreferences:n}=e;return n?{...t,...n}:t})),o(this,"getCookieVersion",(()=>4))}render(){const{children:e,tenant:t,locale:n,hideBanner:r=!1}=this.props,{isLoading:i,preferences:o,isConsentRequired:a,variation:s,enabledOptionalCategories:c}=this.state;return i?null:e({preferences:o,showBanner:this.shouldShowBanner(this.state.hasConsent,a,r),variation:s,enabledOptionalCategories:c,setPreferences:this.handleSetPreferences,resetPreferences:this.handleResetPreferences,saveConsent:this.handleSaveConsent,saveDataSale:e=>this.handleSaveDataSale(e),ccpa:$e(t,n)})}async componentDidMount(){const{onError:e}=this.props;if(e&&"function"==typeof e)try{await this.initialise()}catch(t){await e(t)}else this.initialise()}handleSaveDataSale(e){w(e),this.setState((t=>{const{preferences:n,originalPreferences:r,hasConsent:i}=t;let o=this.mergePreferences({newPreferences:{dataSale:e},existingPreferences:n});return this.updatePreferences({preferences:o,acceptAll:!1,label:"Do Not Sell My Info Update",originalPreferences:r,hasConsent:!0})}))}updatePreferences(e){let{preferences:t,acceptAll:n,label:r,originalPreferences:i,hasConsent:o}=e;const{writeKey:a,cookieDomain:s,suppressReload:c,mode:u}=this.props,{initialPreferences:l,cookieExpiresInDays:d,enabledOptionalCategories:p}=this.state;return Je({customPreferences:t,cookieDomain:s,version:this.getCookieVersion(),acceptAll:n,hasConsent:o,cookieExpiresInDays:d,enabledOptionalCategories:p,trackingProperties:{label:r,suppressReload:c,pageReloaded:We(c,i,t,u,!1)}}),Ue({writeKey:a,suppressReload:c,originalPreferences:i,newPreferences:t,mode:u,initialization:!1}),{preferences:t,hasConsent:o,originalPreferences:t}}shouldShowBanner(e,t,n){return t&&!e&&!n}}function Qe(e){const{container:t,writeKey:n,shouldRequireConsent:r=()=>!0,hideBanner:i=!1,cookieDomain:o,onError:a,onAcceptAll:s,onSave:c,locale:u,tenant:l,defaultVariation:d,suppressReload:p=!1,data:f,mode:h=x.Dialog}=e,g=(0,G.useMediaPredicate)("only screen and (max-width: 767px)");return I().createElement(Xe,{writeKey:n,shouldRequireConsent:r,hideBanner:i,cookieDomain:o,locale:u,tenant:l,defaultVariation:d,isXsScreen:g,suppressReload:p,mode:h??x.Dialog,data:f,onError:a},(e=>{let{preferences:n,setPreferences:r,resetPreferences:i,saveConsent:o,showBanner:a,variation:u,enabledOptionalCategories:l,saveDataSale:d,ccpa:p}=e;return I().createElement(Se,{container:t,preferences:n,setPreferences:r,resetPreferences:i,saveConsent:o,variation:u,showBanner:a,mode:h??x.Dialog,ccpa:p,saveDataSale:d,enabledOptionalCategories:l,onAcceptAll:s,onSave:c})}))}o(Xe,"displayName","ConsentManagerBuilder"),Qe.displayName="ConsentManager";var Ze=r(265);const et=e=>{const t="consent-manager-container",{hideBanner:n=!1}=e;return I().createElement("div",{id:t},I().createElement(Qe,K({},e,{hideBanner:n,shouldRequireConsent:()=>(0,Ze.isConsentRequired)(e.locale),container:t})))};function tt(){if("undefined"==typeof window)return;let e=navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack;return"yes"===e?e="1":"no"===e&&(e="0"),"1"===e||"0"!==e&&null}},364:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var u=0;u<e.length;u++){var l=[].concat(e[u]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},379:e=>{"use strict";e.exports=function(e){return e[1]}},433:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);
vendor: 2,155 bytes, line 2
2if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},598:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(379),i=n.n(r),o=n(364),a=n.n(o)()(i());a.push([e.id,".cookie-message-style__cookiePolicyControl__gCZup{position:fixed !important;z-index:var(--swan-sem-z-index-over-the-top) !important;bottom:16px !important;right:16px !important;-webkit-box-shadow:0px 2px 10px rgba(0,17,26,.12) !important;-moz-box-shadow:0px 2px 10px rgba(0,17,26,.12) !important;box-shadow:0px 2px 10px rgba(0,17,26,.12) !important;border-radius:var(--swan-sem-border-radius-container) !important;padding:20px !important;max-width:560px !important}.cookie-message-style__cookieBannerUk__VnxMh{position:fixed !important;z-index:var(--swan-sem-z-index-over-the-top) !important;bottom:16px !important;right:16px !important;-webkit-box-shadow:0px 2px 10px rgba(0,17,26,.12) !important;-moz-box-shadow:0px 2px 10px rgba(0,17,26,.12) !important;box-shadow:0px 2px 10px rgba(0,17,26,.12) !important;border-radius:var(--swan-sem-border-radius-container) !important;padding:20px !important;max-width:727px !important}@media only screen and (max-width: 1023px){.cookie-message-style__cookieBannerUk__VnxMh{max-width:560px !important}}@media only screen and (max-width: 767px){.cookie-message-style__cookiePolicyControl__gCZup,.cookie-message-style__cookieBannerUk__VnxMh{position:fixed !important;max-width:calc(100vw - 24px) !important;bottom:12px !important;left:12px !important;margin:0 !important;width:100% !important}.cookie-message-style__cookiePolicyPreferencesButton__qJKv0{margin:8px 0}}.cookie-message-style__cookieSettingsTitle__zWz5K{font-size:30px !important;line-height:100% !important;letter-spacing:-0.02em !important}.cookie-message-style__cookieSettingsButtons__IQDY8{display:block !important}.cookie-message-style__categoryDetailsPopover__TrSUx{top:-0.3em !important}.cookie-message-style__categoryDetailsPopoverContent__GcAfD{min-width:200
2px !important}@media only screen and (min-width: 768px){.cookie-message-style__categoryDetailsPopoverContent__GcAfD{width:375px !important}}@media only screen and (max-width: 767px){.cookie-message-style__textButton__jRjNQ{padding-left:24px !important;padding-right:24px !important}.cookie-message-style__acceptButton__MoAkh{padding-left:24px !important;padding-right:24px !important}.cookie-message-style__actionButtonsUk__fFlR0{flex-direction:column !important}}.cookie-message-style__acceptButton__MoAkh{margin:4px 6px}.cookie-message-style__textButton__jRjNQ{margin:4px 6px}@media only screen and (min-width: 768px){.cookie-message-style__alignedButton__LEhCM{height:100% !important}}@media only screen and (max-width: 1023px){.cookie-message-style__alignedButton__LEhCM{height:44px !important}}.cookie-message-style__wrappedText__TcqJt{text-wrap:balance !important;padding-left:20px !important;padding-right:20px !important}.cookie-message-style__toggleSwitchDisabled__qR46s:disabled{cursor:pointer !important}.cookie-message-style__informationIcon__Z26Sf{cursor:pointer !important}.cookie-message-style__settingsLink__gHH_B{margin-left:24px !important}@media only screen and (max-width: 767px){.cookie-message-style__settingsLink__gHH_B{margin-left:16px !important}}.cookie-message-style__settingsLinkCol__PLQ3H{padding-top:0 !important;display:flex !important;justify-content:center !important;align-items:center !important}@media only screen and (max-width: 1023px){.cookie-message-style__settingsLinkCol__PLQ3H{padding-top:16px !important}}.cookie-message-style__confirmationDialog__wXJMG{top:50vh !important;width:fit-content !important;min-width:250px !important;max-width:600px !important;height:fit-content !important;max-height:80% !important;transform:translateY(-50%) !important}.cookie-message-style__caButton__AEsmB{width:fit-content !important}@media only screen and (max-width: 767px){.cookie-message-style__caButton__AEsmB{width:100% !important}}",""]),a.locals={cookiePolicyControl:"cookie-message-style__cookiePolicyControl__gCZup",cookieBannerUk:"cookie-message-style__cookieBannerUk__VnxMh",cookiePolicyPreferencesButton:"cookie-message-style__cookiePolicyPreferencesButton__qJKv0",cookieSettingsTitle:"cookie-message-style__cookieSettingsTitle__zWz5K",cookieSettingsButtons:"cookie-message-style__cookieSettingsButtons__IQDY8",categoryDetailsPopover:"cookie-message-style__categoryDetailsPopover__TrSUx",categoryDetailsPopoverContent:"cookie-message-style__categoryDetailsPopoverContent__GcAfD",textButton:"cookie-message-style__textButton__jRjNQ",acceptButton:"cookie-message-style__acceptButton__MoAkh",actionButtonsUk:"cookie-message-style__actionButtonsUk__fFlR0",alignedButton:"cookie-message-style__alignedButton__LEhCM",wrappedText:"cookie-message-style__wrappedText__TcqJt",toggleSwitchDisabled:"cookie-message-style__toggleSwitchDisabled__qR46s",informationIcon:"cookie-message-style__informationIcon__Z26Sf",settingsLink:"cookie-message-style__settingsLink__gHH_B",settingsLinkCol:"cookie-message-style__settingsLinkCol__PLQ3H",confirmationDialog:"cookie-message-style__confirmationDialog__wXJMG",caButton:"cookie-message-style__caButton__AEsmB"};const s=a},626:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},827:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},862:e=>{"use strict";e.exports=n(8387)},953:e=>{"use strict";e.exports=n(4726)},987:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}n.d(t,{A:()=>i});var i=function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){i(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
2URIComponent)}},{path:"/"})},990:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={id:e,exports:{}};return t[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0;var o=i(173);e.exports=o})()},7069:(e,t,n)=>{"use strict";n.r(t),n.d(t,{schemaFilter:()=>o});var r=n(1635),i=n(8859);function o(e,t){function n(n){var o=e,a=n.event.event;if(o&&a){var s=o[a];if(!(0,i.j)(o,s))return n.updateEvent("integrations",(0,r.Cl)((0,r.Cl)({},n.event.integrations),{All:!1,"Segment.io":!0})),n;var c=function(e,t){var n,r;if(!e||!Object.keys(e))return{};var i=e.integrations?Object.keys(e.integrations).filter((function(t){return!1===e.integrations[t]})):[],o=[];return(null!==(n=t.remotePlugins)&&void 0!==n?n:[]).forEach((function(e){i.forEach((function(t){e.creationName==t&&o.push(e.name)}))})),(null!==(r=t.remotePlugins)&&void 0!==r?r:[]).reduce((function(e,t){return t.settings.subscriptions&&o.includes(t.name)&&t.settings.subscriptions.forEach((function(n){return e["".concat(t.name," ").concat(n.partnerAction)]=!1})),e}),{})}(s,t);n.updateEvent("integrations",(0,r.Cl)((0,r.Cl)((0,r.Cl)({},n.event.integrations),null==s?void 0:s.integrations),c))}return n}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:n,alias:n,track:n,identify:n,group:n}}},7200:(e,t,n)=>{"use strict";n.d(t,{d:()=>i.d,o:()=>a});var r=n(1635),i=n(789),o=n(8103),a=function(e){function t(t,n){return e.call(this,t,n,new o.U)||this}return(0,r.C6)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i.j)},7292:e=>{"use strict";e.exports=i},7331:(e,t,n)=>{const r=n(1389),{getEmailIds:i}=n(316);class o{constructor(e){this.context=e||{}}static create(e){return new o(e)}getContext(){return this.context}addTimezone(){return this.context.timezone=r.getTimezone(),this}addExternalIds(){const e=i(),t=Object.entries(e).map((([e,t])=>({type:e,id:t,collection:"users",encoding:"none"})));return t.length>0&&(this.context.externalIds=t),this}}e.exports=o},7383:(e,t,n)=>{const{commonEventProperties:r}=n(9492);let i;const o=({payload:e,next:t})=>{try{if("page"===e.obj?.type){const{integrations:t,userId:n,anonymousId:r,context:o}=e.obj,s=a(e.obj?.properties);i={integrations:t,userId:n,anonymousId:r,context:o,properties:s}}}finally{t(e)}},a=e=>{if(!e)return{};const t={};return r.forEach((n=>{const r=e[n];"string"==typeof r&&(t[n]=r)})),t};e.exports={getPageSharedPayload:()=>{if(i)return{...i}},getSourceMiddlewares:()=>[o],init:()=>{i=void 0}}},7432:(e,t,n)=>{"use strict";var r=n(331);e.exports=function e(t,n){return void 0===n&&(n=!0),t&&"object"==typeof t?function(t,n){return Object.keys(t).forEach((function(r){t[r]=e(t[r],n)})),t}(t,n):Array.isArray(t)?function(t,n){return t.forEach((function(r,i){t[i]=e(r,n)})),t}(t,n):r.is(t,n)?r.parse(t):t}},7546:e=>{"use strict";e.exports=n},7657:e=>{e.exports={updateCDNSettings:function(e,t,n,r){if(n&&e.integrations){const n=e.integrations["Google Tag Manager"];n&&(n.nonce=t,r&&(n.containerId=r)),e.integrations=function(e){const t={};for(const n in e.integrations)"Google Tag Manager"!==n&&"Segment.io"!==n||(t[n]=e.integrations[n]);return t}(e),e.remotePlugins=(i=e.remotePlugins,i?.filter((e=>"Google Tag Manager"===e.name||"Segment.io"===e.name))??[])}var i;return e}}},7745:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},c=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:c,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(c())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)}))}n.d(t,{h:()=>o});var i=n(6828),o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.m)();return(n&&n.fetch||r).apply(void 0,e)}},7775:(e,t,n)=>{const r=n(8497),{getRootCookieDomain:i}=n(9277);e.exports={getCookie:function(e){return r.get(e)},setCookie:function(e,t,n={}){n={domain:i(),...n},r.set(e,t,n)},removeCookie:function(e){r.remove(e)}}},7777:e=>{e.exports={removeAllHyphens:e=>e.replace(/-/g,"")}},7852:e=>{e.exports=class{analytics;analyticsLoader;onError;constructor(e,t,n){this.analytics=e,this.analyticsLoader=t,this.onError=n}page(e,t,n){this.analytics.page(e,t,n).catch((e=>this.onError({message:`@vp/tracking: page failed. ${e.message}`})))}track(e,t,n){this.analytics.track(e,t,n).catch((e=>this.onError({message:`@vp/tracking: track failed. ${e.message}`})))}trackLink(e,t,n){this.analytics.trackLink(e,t,n).catch((e=>this.onError({message:`@vp/tracking: trackLink failed. ${e.message}`})))}
2identify(e,t,n){this.analytics.identify(e,t,n).catch((e=>this.onError({message:`@vp/tracking: identify failed. ${e.message}`})))}reset(){this.analytics.reset().catch((e=>this.onError({message:`@vp/tracking: reset failed. ${e.message}`})))}ready(e){this.analytics.ready(e).catch((e=>this.onError({message:`@vp/tracking: ready failed. ${e.message}`})))}debug(e){this.analytics.debug(e).catch((e=>this.onError({message:`@vp/tracking: debug failed. ${e.message}`})))}original(){return this.analytics}load(e){this.analyticsLoader(e)}}},7962:e=>{e.exports={addApiHost:function(e,t,n){e&&t&&(e[t]={apiHost:n})}}},8047:(e,t,n)=>{const r=n(7775);e.exports={getLandingChannel:function(){const e=r.getCookie("userContext");if(e)try{return JSON.parse(e)?.userProfile?.v1?.landingChannel}catch{}}}},8103:(e,t,n)=>{"use strict";n.d(t,{U:()=>p});var r=n(1635),i=n(5799),o=n(7745),a=n(1496),s=n(1895),c=n(146);function u(e){console.error("Error sending segment performance metrics",e)}var l,d=function(){function e(e){var t,n,r,i,o,a=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:c.a,this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null==e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.protocol=null!==(o=null==e?void 0:e.protocol)&&void 0!==o?o:"https",this.queue=[],this.sampleRate>0){var s=!1,l=function(){s||(s=!0,a.flush().catch(u),s=!1,setTimeout(l,a.flushTimer))};l()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var i=t.reduce((function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e}),{});return{type:"Counter",metric:e,value:1,tags:(0,r.Cl)((0,r.Cl)({},i),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.r):"npm:next-".concat(a.r)})}}(e,t,(0,s.X)());this.queue.push(n),e.includes("error")&&this.flush().catch(u)}},e.prototype.flush=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e=this;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(t){u(t),e.sampleRate=0}))];case 1:return t.sent(),[2]}}))}))},e.prototype.send=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,n;return(0,r.YH)(this,(function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="".concat(this.protocol,"://").concat(this.host,"/m"),[2,(0,o.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]}))}))},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t.initRemoteMetrics=function(e){l=new d(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==l||l.increment(t,null!=r?r:[])},t}(i.p)},8126:(e,t,n)=>{const r=n(7775),{v4:i}=n(97);function o(){return r.getCookie("visit")||null}e.exports={getVisit:o,ensureVisit:function(){let e=o();return e||(e=i()),r.setCookie("visit",e,{expires:new Date(Date.now()+18e5)}),e}}},8287:(e,t,n)=>{t.y=function(e,t){var n=document.createElement("a");n.href=e;for(var r="/"===n.pathname[0]?n.pathname:"/"+n.pathname,i=0,o=r.length;i!==t&&o>=0;)"/"===r[--o]&&i++;if(i!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+i+") in the URL path "+e);var a=r.slice(0,o+1);return n.protocol+"//"+n.host+a};Number.isInteger},8341:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(4633)),o=n(4750),a=n(2646);function s(e,t){o.Page.call(this,e,t)}t.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},s.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},8387:e=>{"use strict";e.exports=a}
2,8454:(e,t,n)=>{"use strict";function r(e,t){var n=t.methodName,r=t.integrationName,i=t.type,o=t.didError,a=void 0!==o&&o;e.stats.increment("analytics_js.integration.invoke".concat(a?".error":""),1,["method:".concat(n),"integration_name:".concat(r),"type:".concat(i)])}n.d(t,{y:()=>r})},8484:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(925);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},8497:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};function r(e,t){if(!t)return"";var n="; "+e;return!0===t?n:n+"="+t}function i(e,t,n){return encodeURIComponent(e).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(t).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(e){if("number"==typeof e.expires){var t=new Date;t.setMilliseconds(t.getMilliseconds()+864e5*e.expires),e.expires=t}return r("Expires",e.expires?e.expires.toUTCString():"")+r("Domain",e.domain)+r("Path",e.path)+r("Secure",e.secure)+r("SameSite",e.sameSite)}(n)}function o(e){for(var t={},n=e?e.split("; "):[],r=/(%[\dA-F]{2})+/gi,i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");'"'===a.charAt(0)&&(a=a.slice(1,-1));try{t[o[0].replace(r,decodeURIComponent)]=a.replace(r,decodeURIComponent)}catch(e){}}return t}function a(){return o(document.cookie)}function s(e,t,r){document.cookie=i(e,t,n({path:"/"},r))}t.__esModule=!0,t.encode=i,t.parse=o,t.getAll=a,t.get=function(e){return a()[e]},t.set=s,t.remove=function(e,t){s(e,"",n(n({},t),{expires:-1}))}},8505:e=>{let t=n();function n(){let e={};return"undefined"!=typeof window&&(e=window),e.trackingInitialized=e.trackingInitialized||!1,e}e.exports={isTrackingInitialized:function(){return!0===t.trackingInitialized},setTrackingInitialized:function(){t.trackingInitialized=!0},setTracking:function(e){e&&(t.tracking=e)},getTracking:function(){return t.tracking},reset:function(){t=n()}}},8512:(e,t,n)=>{"use strict";n.d(t,{v:()=>r});var r=function(){function e(e){var t;this.callbacks={},this.warned=!1,this.maxListeners=null!==(t=null==e?void 0:e.maxListeners)&&void 0!==t?t:10}return e.prototype.warnIfPossibleMemoryLeak=function(e){this.warned||this.maxListeners&&this.callbacks[e].length>this.maxListeners&&(console.warn("Event Emitter: Possible memory leak detected; ".concat(String(e)," has exceeded ").concat(this.maxListeners," listeners.")),this.warned=!0)},e.prototype.on=function(e,t){return this.callbacks[e]?(this.callbacks[e].push(t),this.warnIfPossibleMemoryLeak(e)):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(e,r),t.apply(n,i)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter((function(e){return e!==t}));return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach((function(e){e.apply(n,r)})),this},e}()},8796:function(e,t){!function(e){"use strict";var t,n,r,i,o,a=-1,s=function(e){addEventListener("pageshow",(function(t){t.persisted&&(a=t.timeStamp,e(t))}),!0)},c=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},u=function(){var e=c();return e&&e.activationStart||0},l=function(e,t){var n=c(),r="navigate";return a>=0?r="back-forward-cache":n&&(document.prerendering||u()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},d=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},p=function(e,t,n,r){var i,o;return function(a){t.value>=0&&(a||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},f=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))}
vendor: 5,262 bytes, line 2
2,h=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},g=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},v=-1,m=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},y=function(e){"hidden"===document.visibilityState&&v>-1&&(v="visibilitychange"===e.type?e.timeStamp:0,b())},w=function(){addEventListener("visibilitychange",y,!0),addEventListener("prerenderingchange",y,!0)},b=function(){removeEventListener("visibilitychange",y,!0),removeEventListener("prerenderingchange",y,!0)},C=function(){return v<0&&(v=m(),w(),s((function(){setTimeout((function(){v=m(),w()}),0)}))),{get firstHiddenTime(){return v}}},k=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},x=[1800,3e3],_=function(e,t){t=t||{},k((function(){var n,r=C(),i=l("FCP"),o=d("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=Math.max(e.startTime-u(),0),i.entries.push(e),n(!0)))}))}));o&&(n=p(e,i,x,t.reportAllChanges),s((function(r){i=l("FCP"),n=p(e,i,x,t.reportAllChanges),f((function(){i.value=performance.now()-r.timeStamp,n(!0)}))})))}))},S=[.1,.25],P=function(e,t){t=t||{},_(g((function(){var n,r=l("CLS",0),i=0,o=[],a=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=o[0],n=o[o.length-1];i&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,o.push(e)):(i=e.value,o=[e])}})),i>r.value&&(r.value=i,r.entries=o,n())},c=d("layout-shift",a);c&&(n=p(e,r,S,t.reportAllChanges),h((function(){a(c.takeRecords()),n(!0)})),s((function(){i=0,r=l("CLS",0),n=p(e,r,S,t.reportAllChanges),f((function(){return n()}))})),setTimeout(n,0))})))},E={passive:!0,capture:!0},A=new Date,O=function(e,i){t||(t=i,n=e,r=new Date,M(removeEventListener),I())},I=function(){if(n>=0&&n<r-A){var e={entryType:"first-input",name:t.type,target:t.target,cancelable:t.cancelable,startTime:t.timeStamp,processingStart:t.timeStamp+n};i.forEach((function(t){t(e)})),i=[]}},T=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){O(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,E),removeEventListener("pointercancel",r,E)};addEventListener("pointerup",n,E),addEventListener("pointercancel",r,E)}(t,e):O(t,e)}},M=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,T,E)}))},j=[100,300],D=function(e,r){r=r||{},k((function(){var o,a=C(),c=l("FID"),u=function(e){e.startTime<a.firstHiddenTime&&(c.value=e.processingStart-e.startTime,c.entries.push(e),o(!0))},f=function(e){e.forEach(u)},v=d("first-input",f);o=p(e,c,j,r.reportAllChanges),v&&h(g((function(){f(v.takeRecords()),v.disconnect()}))),v&&s((function(){var a;c=l("FID"),o=p(e,c,j,r.reportAllChanges),i=[],n=-1,t=null,M(addEventListener),a=u,i.push(a),I()}))}))},L=0,N=1/0,R=0,H=function(e){e.forEach((function(e){e.interactionId&&(N=Math.min(N,e.interactionId),R=Math.max(R,e.interactionId),L=R?(R-N)/7+1:0)}))},B=function(){return o?L:performance.interactionCount||0},F=function(){"interactionCount"in performance||o||(o=d("event",H,{type:"event",buffered:!0,durationThreshold:0}))},V=[200,500],z=0,U=function(){return B()-z},q=[],W={},Y=function(e){var t=q[q.length-1],n=W[e.interactionId];if(n||q.length<10||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};W[r.id]=r,q.push(r)}q.sort((function(e,t){return t.latency-e.latency})),q.splice(10).forEach((function(e){delete W[e.id]}))}},$=function(e,t){t=t||{},k((function(){var n;F();var r,i=l("INP"),o=function(e){e.forEach((function(e){e.interactionId&&Y(e),"first-input"===e.entryType&&!q.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&Y(e)}));var t,n=(t=Math.min(q.length-1,Math.floor(U()/50)),q[t]);n&&n.latency!==i.value&&(i.value=n.latency,i.entries=n.entries,r())},a=d("event",o,{durationThreshold:null!==(n=t.durationThreshold)&&void 0!==n?n:40});r=p(e,i,V,t.reportAllChanges),a&&("PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&a.observe({type:"first-input",buffered:!0}),h((function(){o(a.takeRecords()),i.value<0&&U()>0&&(i.value=0,i.entries=[]),r(!0)})),s((function(){q=[],z=B(),i=l("INP"),r=p(e,i,V,t.reportAllChanges)})))}))},K=[2500,4e3],G={},J=function(e,t){t=t||{},k((function(){var n,r=C(),i=l("LCP"),o=function(e){var t=e[e.length-1];t&&t.startTime<r.firstHiddenTime&&(i.value=Math.max(t.startTime-u(),0),i.entries=[t],n())},a=d("largest-contentful-paint",o);if(a){n=p(e,i,K,t.reportAllChanges);var c=g((function(){G[i.id]||(o(a.takeRecords()),a.disconnect(),G[i.id]=!0,n(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,(function(){return setTimeout(c,0)}),!0)})),h(c),s((function(r){i=l("LCP"),n=p(e,i,K,t.reportAllChanges),f((function(){i.value=performance.now()-r.timeStamp,G[i.id]=!0,n(!0)}))}))}}))},X=[800,1800],Q=function e(t){document.prerendering?k((function(){return e(t)}
2)):"complete"!==document.readyState?addEventListener("load",(function(){return e(t)}),!0):setTimeout(t,0)},Z=function(e,t){t=t||{};var n=l("TTFB"),r=p(e,n,X,t.reportAllChanges);Q((function(){var i=c();if(i){var o=i.responseStart;if(o<=0||o>performance.now())return;n.value=Math.max(o-u(),0),n.entries=[i],r(!0),s((function(){n=l("TTFB",0),(r=p(e,n,X,t.reportAllChanges))(!0)}))}}))};e.CLSThresholds=S,e.FCPThresholds=x,e.FIDThresholds=j,e.INPThresholds=V,e.LCPThresholds=K,e.TTFBThresholds=X,e.getCLS=P,e.getFCP=_,e.getFID=D,e.getINP=$,e.getLCP=J,e.getTTFB=Z,e.onCLS=P,e.onFCP=_,e.onFID=D,e.onINP=$,e.onLCP=J,e.onTTFB=Z}(t)},8859:(e,t,n)=>{"use strict";function r(e,t){var n,r;return"boolean"==typeof(null==t?void 0:t.enabled)?t.enabled:null===(r=null===(n=null==e?void 0:e.__default)||void 0===n?void 0:n.enabled)||void 0===r||r}n.d(t,{j:()=>r})},8866:(e,t)=>{t.getEuMembers=function(){return["BE","BG","CZ","DK","DE","EE","IE","EL","ES","FR","HR","IT","CY","LV","LT","LU","HU","MT","NL","AT","PL","PT","RO","SI","SK","FI","SE"]},t.isEuMember=function(e){return-1!=t.getEuMembers().indexOf(e.toUpperCase())}},8987:(e,t,n)=>{"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)"__proto__"!==r&&(e[r]=n[r])}return e}n.d(t,{A:()=>i});var i=function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=r({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(s in r||(r[s]=t.read(a,s)),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){i(e,"",r({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,r({},this.attributes,t))},withConverter:function(t){return e(r({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},9026:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(4633)),o=r(n(9156)),a=r(n(3069)),s=n(6071);function c(e,t){s.Facade.call(this,e,t)}t.Group=c,i.default(c,s.Facade);var u=c.prototype;u.action=function(){return"group"},u.type=u.action,u.groupId=s.Facade.field("groupId"),u.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},u.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return o.default(t)?t:void 0},u.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},u.name=s.Facade.proxy("traits.name"),u.industry=s.Facade.proxy("traits.industry"),u.employees=s.Facade.proxy("traits.employees"),u.properties=function(){return this.field("traits")||this.field("properties")||{}}},9059:e=>{"use strict";e.exports=r},9069:(e,t,n)=>{const r=n(757),{registerThirdParty:i}=n(9579);function o(e){(window.dataLayer||(window.dataLayer=[])).push(e),function(){try{const e=window.localStorage.debug;return!!e&&("*"===e||e.split(/[\s,]+/).some((e=>"global-queue:dataLayer"===e||!!e.endsWith("*")&&"global-queue:dataLayer".startsWith(e.slice(0,-1)))))}catch(e){return!1}}()&&console.log("global-queue:dataLayer %o",e)}function a(e){const t=e.includes("?")?"&":"?";return`${e}${t}l=dataLayer`}const s="undefined"!=typeof window?function(){const e=r("Google Tag Manager").global("dataLayer").global("google_tag_manager").option("containerId","").option("environment","").option("fullURLpath","").option("trackNamedPages",!0).option("trackCategorizedPages",!0).option("nonce",null).tag("no-env",'<script src="//www.googletagmanager.com/gtm.js?id={{ containerId }}&l=dataLayer">').tag("with-env",'<script src="//www.googletagmanager.com/gtm.js?id={{ containerId }}&l=dataLayer>m_preview={{ environment }}">').tag("no-env-nonce",'<script src="//www.googletagmanager.com/gtm.js?id={{ containerId }}&l=dataLayer" nonce="{{ nonce }}">').tag("with-env-nonce",'<script src="//www.googletagmanager.com/gtm.js?id={{ containerId }}&l=dataLayer>m_preview={{ environment }}" nonce="{{ nonce }}">').tag("custom-url",'<script src="{{ gtmSrc }}">');return e.prototype.initialize=function(){o({"gtm.start":Number(new Date),event:"gtm.js"}),i((()=>
2{if(!this.options.fullURLpath||function(){if("undefined"==typeof window)return!1;const e=window.location.hostname;return"localhost"===e||"127.0.0.1"===e||e.includes("::1")}()||this.options.nonce)this.options.nonce?this.options.environment.length?this.load("with-env-nonce",this.options,this.ready):this.load("no-env-nonce",this.options,this.ready):this.options.environment.length?this.load("with-env",this.options,this.ready):this.load("no-env",this.options,this.ready);else{const e={...this.options,gtmSrc:a(this.options.fullURLpath)};this.load("custom-url",e,this.ready)}}))},e.prototype.loaded=function(){return!(!window.dataLayer||Array.prototype.push===window.dataLayer.push)},e.prototype.page=function(e){const t=e.category(),n=e.fullName(),r=this.options;r.trackAllPages&&this.track(e.track()),t&&r.trackCategorizedPages&&this.track(e.track(t)),n&&r.trackNamedPages&&this.track(e.track(n))},e.prototype.track=function(e){const t=e.properties(),n=this.analytics.user().id(),r=this.analytics.user().anonymousId();n&&(t.userId=n),r&&(t.segmentAnonymousId=r),t.event=e.event(),o(t)},e}():class{};e.exports=s},9087:(e,t,n)=>{"use strict";n.d(t,{J:()=>i});var r=n(1635);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce((function(e,t){var n,i,o=t[0],a=t[1];return"object"==typeof a?(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=a,n)):(0,r.Cl)((0,r.Cl)({},e),((i={})[o]={},i))}),{});return Object.entries(e.integrations).reduce((function(e,t){var n,o=t[0],a=t[1];return(0,r.Cl)((0,r.Cl)({},e),((n={})[o]=(0,r.Cl)((0,r.Cl)({},a),i[o]),n))}),{})}},9092:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LegacyDestination:()=>E,ajsDestinations:()=>A});var r=n(1635),i=n(925),o=n(2629),a=n(7200),s=n(789),c=n(4570),u=n(5159),l=n(8859),d=n(9087),p=n(6874),f=n(3340),h=n(2356),g=n(2189),v=n(1031),m=n(4242);function y(e){return e.toLowerCase().replace(".","").replace(/\s+/g,"-")}function w(e,t){return void 0===t&&(t=!1),t?btoa(e).replace(/=/g,""):void 0}function b(e,t,n,i){return(0,r.sH)(this,void 0,void 0,(function(){var o,a,s,c,u,l;return(0,r.YH)(this,(function(d){switch(d.label){case 0:o=y(t),a=w(o,i),s=(0,v.YM)(),c="".concat(s,"/integrations/").concat(null!=a?a:o,"/").concat(n,"/").concat(null!=a?a:o,".dynamic.js.gz"),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,(0,m.k)(c)];case 2:return d.sent(),function(e,t,n){var i,o;try{var a=(null!==(o=null===(i=null===window||void 0===window?void 0:window.performance)||void 0===i?void 0:i.getEntriesByName(e,"resource"))&&void 0!==o?o:[])[0];a&&t.stats.gauge("legacy_destination_time",Math.round(a.duration),(0,r.fX)([n],a.duration<100?["cached"]:[],!0))}catch(e){}}(c,e,t),[3,4];case 3:throw u=d.sent(),e.stats.gauge("legacy_destination_time",-1,["plugin:".concat(t),"failed"]),u;case 4:return l=window["".concat(o,"Deps")],[4,Promise.all(l.map((function(e){return(0,m.k)(s+e+".gz")})))];case 5:return d.sent(),window["".concat(o,"Loader")](),[2,window["".concat(o,"Integration")]]}}))}))}var C=n(4846),k=function(e,t){var n,r=t.type,i=t.bundlingStatus,o=t.versionSettings,a="unbundled"!==i&&("browser"===r||(null===(n=null==o?void 0:o.componentTypes)||void 0===n?void 0:n.includes("browser")));return!e.startsWith("Segment")&&"Iterable"!==e&&a},x=function(e,t){var n=!1===t.All&&void 0===t[e];return!1===t[e]||n},_=n(8454),S=n(3284);function P(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var n,i=this;return(0,r.YH)(this,(function(s){switch(s.label){case 0:return n=[],(0,o.a)()?[2,t]:[4,(0,p._)((function(){return t.length>0&&(0,o.s)()}),(function(){return(0,r.sH)(i,void 0,void 0,(function(){var i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return(i=t.pop())?[4,(0,u.C)(i,e)]:[2];case 1:return r.sent()instanceof a.o||n.push(i),[2]}}))}))}))];case 1:return s.sent(),n.map((function(e){return t.pushWithBackoff(e)})),[2,t]}}))}))}var E=function(){function e(e,t,n,i,o,a){void 0===i&&(i={});var s=this;this.options={},this.type="destination",this.middleware=[],this.initializePromise=(0,S.u)(),this.flushing=!1,this.name=e,this.version=t,this.settings=(0,r.Cl)({},i),this.disableAutoISOConversion=o.disableAutoISOConversion||!1,this.integrationSource=a,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.initializePromise.promise.then((function(e){return s._initialized=e}),(function(){})),this.options=o,this.buffer=o.disableClientPersistence?new f.M(4,[]):new h.x(4,"".concat(n,":dest-").concat(e)),this.scheduleFlush()}return e.prototype.isLoaded=function(){return!!this._ready},e.prototype.ready=function(){var e=this;return this.initializePromise.promise.then((function(){var t;return null!==(t=e.onReady)&&void 0!==t?t:Promise.resolve()}))},e.prototype.load=function(e,t){var n;return(0,r.sH)(this,void 0,void 0,(function(){var i,o,a,s=this;return(0,r.YH)(this,(function(r){switch(r.label){case 0:if(this._ready||void 0!==this.onReady)return[2];r.label=1;case 1:return r.trys.push([1,5,,6]),null===(n=this.integrationSource)||void 0===n?[3,2]:(o=n,[3,4]);case 2:return[4,b(e,this.name,this.version,this.options.obfuscate)];case 3:o=r.sent(),r.label=4;case 4:return i=o,this.integration=function(e,t,n){var r;"Integration"in e?(e({user:function(){return n.user()},addIntegration:function(){}}),r=e.Integration):r=e;var i=new r(t);return i.analytics=n,i}(i,this.settings,t),[3,6];case 5:throw a=r.sent(),(0,_.y)(e,{integrationName:this.name,methodName:"load",type:"classic",didError:!0}),a;case 6:this.onReady=new Promise((function(e){s.integration.once("ready",(function(){s._ready=!0,e(!0)}))})),this.integration.on("initialize",(function(){s.initializePromise.resolve(!0)}));try{(0,_.y)(e,{integrationName:this.name,methodName:"initialize",type:"classic"}),this.integration.initialize()}catch(t){throw(0,_.y)(e,{integrationName:this.name,methodName:"initialize",type:"classic",didError:!0}),this.initializePromise.resolve(!1),t}return[2]}}
vendor: 4,134 bytes, line 2
2))}))},e.prototype.unload=function(e,t){return function(e,t,n){return(0,r.sH)(this,void 0,void 0,(function(){var i,o,a,s;return(0,r.YH)(this,(function(r){return i=(0,v.YM)(),o=y(e),a=w(e,n),s="".concat(i,"/integrations/").concat(null!=a?a:o,"/").concat(t,"/").concat(null!=a?a:o,".dynamic.js.gz"),[2,(0,m.d)(s)]}))}))}(this.name,this.version,this.options.obfuscate)},e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.middleware=(e=this.middleware).concat.apply(e,t)},e.prototype.shouldBuffer=function(e){return"page"!==e.event.type&&((0,o.a)()||!0!==this._ready||!0!==this._initialized)},e.prototype.send=function(e,t,n){var i,o;return(0,r.sH)(this,void 0,void 0,(function(){var a,c,u,d,p,f;return(0,r.YH)(this,(function(h){switch(h.label){case 0:return this.shouldBuffer(e)?(this.buffer.push(e),this.scheduleFlush(),[2,e]):(a=null===(o=null===(i=this.options)||void 0===i?void 0:i.plan)||void 0===o?void 0:o.track,c=e.event.event,a&&c&&"Segment.io"!==this.name&&(u=a[c],(0,l.j)(a,u)?e.updateEvent("integrations",(0,r.Cl)((0,r.Cl)({},e.event.integrations),null==u?void 0:u.integrations)):(e.updateEvent("integrations",(0,r.Cl)((0,r.Cl)({},e.event.integrations),{All:!1,"Segment.io":!0})),e.cancel(new s.d({retry:!1,reason:"Event ".concat(c," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),(null==u?void 0:u.enabled)&&!1===(null==u?void 0:u.integrations[this.name])&&e.cancel(new s.d({retry:!1,reason:"Event ".concat(c," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"}))),[4,(0,g.applyDestinationMiddleware)(this.name,e.event,this.middleware)]);case 1:if(null===(d=h.sent()))return[2,e];p=new t(d,{traverse:!this.disableAutoISOConversion}),(0,_.y)(e,{integrationName:this.name,methodName:n,type:"classic"}),h.label=2;case 2:return h.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,n,p)]:[3,4];case 3:h.sent(),h.label=4;case 4:return[3,6];case 5:throw f=h.sent(),(0,_.y)(e,{integrationName:this.name,methodName:n,type:"classic",didError:!0}),f;case 6:return[2,e]}}))}))},e.prototype.track=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,this.send(e,i.Track,"track")]}))}))},e.prototype.page=function(e){var t;return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(n){switch(n.label){case 0:return(null===(t=this.integration)||void 0===t?void 0:t._assumesPageview)&&!this._initialized&&this.integration.initialize(),[4,this.initializePromise.promise];case 1:return n.sent(),[2,this.send(e,i.Page,"page")]}}))}))},e.prototype.identify=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,this.send(e,i.Identify,"identify")]}))}))},e.prototype.alias=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,this.send(e,i.Alias,"alias")]}))}))},e.prototype.group=function(e){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){return[2,this.send(e,i.Group,"group")]}))}))},e.prototype.scheduleFlush=function(){var e=this;this.flushing||setTimeout((function(){return(0,r.sH)(e,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return(0,o.a)()||!0!==this._ready||!0!==this._initialized?(this.scheduleFlush(),[2]):(this.flushing=!0,e=this,[4,P(this,this.buffer)]);case 1:return e.buffer=t.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},e}();function A(e,t,n,i,o,a){var s,u;if(void 0===n&&(n={}),void 0===i&&(i={}),(0,c.S)())return[];t.plan&&((i=null!=i?i:{}).plan=t.plan);var l=null!==(u=null===(s=t.middlewareSettings)||void 0===s?void 0:s.routingRules)&&void 0!==u?u:[],p=t.integrations,f=i.integrations,h=(0,d.J)(t,null!=i?i:{}),g=null==a?void 0:a.reduce((function(e,t){var n;return(0,r.Cl)((0,r.Cl)({},e),((n={})[function(e){return("Integration"in e?e.Integration:e).prototype.name}(t)]=t,n))}),{}),v=new Set((0,r.fX)((0,r.fX)([],Object.keys(p).filter((function(e){return k(e,p[e])}
2)),!0),Object.keys(g||{}).filter((function(e){return(0,C.Qd)(p[e])||(0,C.Qd)(null==f?void 0:f[e])})),!0));return Array.from(v).filter((function(e){return!x(e,n)})).map((function(t){var n=function(e){var t,n,r,i;return null!==(i=null!==(n=null===(t=null==e?void 0:e.versionSettings)||void 0===t?void 0:t.override)&&void 0!==n?n:null===(r=null==e?void 0:e.versionSettings)||void 0===r?void 0:r.version)&&void 0!==i?i:"latest"}(p[t]),r=new E(t,n,e,h[t],i,null==g?void 0:g[t]);return l.filter((function(e){return e.destinationName===t})).length>0&&o&&r.addMiddleware(o),r}))}},9156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},9168:(e,t)=>{"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},9228:(e,t,n)=>{const r=n(3358),i=({payload:e,next:t})=>{if(e&&e.obj)try{o(e)}catch(e){console.log(e)}finally{t(e)}else t(e)},o=e=>{try{const t=r.getCategoryPreferences();t&&(e.obj.context={...e.obj.context,consent:{categoryPreferences:t}})}catch(e){console.error(e)}};e.exports={getSourceMiddlewares:()=>[i]}},9248:e=>{e.exports={onBodyReady:function(e){document.body?e():"interactive"!==document.readyState&&"complete"!==document.readyState?document.addEventListener("DOMContentLoaded",(function(){e()})):Promise.resolve().then(e).catch((e=>console.error("@vp/tracking: onBodyReady callback failed",e)))},publish:function(e,t){const n=new CustomEvent(e,t);window.dispatchEvent(n)}}},9265:e=>{e.exports={isVisibilitychangeFullySupported:()=>{const e=window.navigator;if(e)return!(e=>{const t=e.indexOf("Chrome")>-1,n=e.indexOf("Safari")>-1;return!t&&n})(e.userAgent)}}},9277:(e,t,n)=>{const r=n(3194);e.exports={getRootCookieDomain:()=>r.getRootCookieDomain()}},9336:e=>{"use strict";self,e.exports=function(){var e={2870:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Store=t.matches=t.transform=void 0;var i=n(4303);Object.defineProperty(t,"transform",{enumerable:!0,get:function(){return r(i).default}});var o=n(2370);Object.defineProperty(t,"matches",{enumerable:!0,get:function(){return r(o).default}});var a=n(1444);Object.defineProperty(t,"Store",{enumerable:!0,get:function(){return r(a).default}})},2370:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(7843));function o(e,t){if(!Array.isArray(e))return!0===a(e,t);var n,r,i,l,d=e[0];switch(d){case"!":return!o(e[1],t);case"or":for(var p=1;p<e.length;p++)if(o(e[p],t))return!0;return!1;case"and":for(p=1;p<e.length;p++)if(!o(e[p],t))return!1;return!0;case"=":case"!=":return function(e,t,n,r){switch(s(e)&&(e=o(e,r)),s(t)&&(t=o(t,r)),"object"==typeof e&&"object"==typeof t&&(e=JSON.stringify(e),t=JSON.stringify(t)),n){case"=":return e===t;case"!=":return e!==t;default:throw new Error("Invalid operator in compareItems: ".concat(n))}}(a(e[1],t),a(e[2],t),d,t);case"<=":case"<":case">":case">=":return function(e,t,n,r){if(s(e)&&(e=o(e,r)),s(t)&&(t=o(t,r)),"number"!=typeof e||"number"!=typeof t)return!1;switch(n){case"<=":return e<=t;case">=":return e>=t;case"<":return e<t;case">":return e>t;default:throw new Error("Invalid operator in compareNumbers: ".concat(n))}}(a(e[1],t),a(e[2],t),d,t);case"in":return function(e,t,n){return void 0!==t.find((function(t){return a(t,n)===e}))}(a(e[1],t),a(e[2],t),t);case"contains":return i=a(e[1],t),l=a(e[2],t),"string"==typeof i&&"string"==typeof l&&-1!==i.indexOf(l);case"match":return n=a(e[1],t),r=a(e[2],t),"string"==typeof n&&"string"==typeof r&&function(e,t){var n,r;e:for(;e.length>0;){var i,o;if(i=(n=c(e)).star,o=n.chunk,e=n.pattern,i&&""===o)return!0;var a=u(o,t),s=a.t,l=a.ok,d=a.err;if(d)return!1;if(!l||!(0===s.length||e.length>0)){if(i)for(var p=0;p<t.length;p++){if(s=(r=u(o,t.slice(p+1))).t,l=r.ok,d=r.err,l){if(0===e.length&&s.length>0)continue;t=s;continue e}if(d)return!1}return!1}t=s}return 0===t.length}(r,n);case"lowercase":var f=a(e[1],t);return"string"!=typeof f?null:f.toLowerCase();case"typeof":return typeof a(e[1],t);case"length":return function(e){return null===e?0:Array.isArray(e)||"string"==typeof e?e.length:NaN}(a(e[1],t));default:throw new Error("FQL IR could not evaluate for token: ".concat(d))}}function a(e,t){return Array.isArray(e)?e:"object"==typeof e?e.value:(0,i.default)(t,e)}function s(e){return!!Array.isArray(e)&&(("lowercase"===e[0]||"length"===e[0]||"typeof"===e[0])&&2===e.length||("contains"===e[0]||"match"===e[0])&&3===e.length)}function c(e){for(var t={star:!1,chunk:"",pattern:""};e.length>0&&"*"===e[0];)e=e.slice(1),t.star=!0;var n,r=!1;e:for(n=0;n<e.length;n++)switch(e[n]){case"\\":n+1<e.length&&n++;break;case"[":r=!0;break;case"]":r=!1;break;case"*":if(!r)break e}return t.chunk=e.slice(0,n),t.pattern=e.slice(n),t}function u(e,t){for(var n,r,i={t:"",ok:!1,err:!1};e.length>0;){if(0===t.length)return i;switch(e[0]){case"[":var o=t[0];t=t.slice(1);var a=!0;(e=e.slice(1)).length>0&&"^"===e[0]&&(a=!1,e=e.slice(1));for(var s=!1,c=0;;){if(e.length>0&&"]"===e[0]&&c>0){e=e.slice(1);break}var u,d="";if(u=(n=l(e)).char,e=n.newChunk,n.err)return i;if(d=u,"-"===e[0]&&(d=(r=l(e.slice(1))).char,e=r.newChunk,r.err))return i;u<=o&&o<=d&&(s=!0),c++}if(s!==a)return i;break;case"?":t=t.slice(1),e=e.slice(1);break;case"\\":if(0===(e=e.slice(1)).length)return i.err=!0,i;default:if(e[0]!==t[0])return i;t=t.slice(1),e=e.slice(1)}}return i.t=t,i.ok=!0,i.err=!1,i}function l(e){var t={char:"",newChunk:"",err:!1};return 0===e.length||"-"===e[0]||"]"===e[0]||"\\"===e[0]&&0===(e=e.slice(1)).length?(t.err=!0,t):(t.char=e[0],t.newChunk=e.slice(1),0===t.newChunk.length&&(t.err=!0),t)}t.default=function(e,t){if(!t)throw new Error("No matcher supplied!");switch(t.type){case"all":return!0;case"fql":return function(e,t){if(!e)return!1;try{e=JSON.parse(e)}catch(t){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(e,'": ').concat(t))}var n=o(e,t);return"boolean"==typeof n&&n}(t.ir,e);default:throw new Error("Matcher of type ".concat(t.type," unsupported."))}}}
vendor: 6,265 bytes, line 2
2,1444:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.rules=[],this.rules=e||[]}return e.prototype.getRulesByDestinationName=function(e){for(var t=[],n=0,r=this.rules;n<r.length;n++){var i=r[n];i.destinationName!==e&&void 0!==i.destinationName||t.push(i)}return t},e}();t.default=n},4303:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(374)),o=r(n(7843)),a=r(n(5500)),s=n(9014),c=n(4966);function u(e,t){d(e,t.drop,(function(e,t){t.forEach((function(t){return delete e[t]}))}))}function l(e,t){d(e,t.allow,(function(e,t){Object.keys(e).forEach((function(n){t.includes(n)||delete e[n]}))}))}function d(e,t,n){Object.entries(t).forEach((function(t){var r=t[0],i=t[1],a=function(e){"object"==typeof e&&null!==e&&n(e,i)},s=""===r?e:(0,o.default)(e,r);Array.isArray(s)?s.forEach(a):a(s)}))}function p(e,t){var n=JSON.parse(JSON.stringify(e));for(var r in t.map)if(t.map.hasOwnProperty(r)){var i=t.map[r],a=r.split("."),u=void 0;if(a.length>1?(a.pop(),u=(0,o.default)(n,a.join("."))):u=e,"object"==typeof u){if(i.copy){var l=(0,o.default)(n,i.copy);void 0!==l&&(0,s.dset)(e,r,l)}else if(i.move){var d=(0,o.default)(n,i.move);void 0!==d&&(0,s.dset)(e,r,d),(0,c.unset)(e,i.move)}else i.hasOwnProperty("set")&&(0,s.dset)(e,r,i.set);if(i.to_string){var p=(0,o.default)(e,r);if("string"==typeof p||"object"==typeof p&&null!==p)continue;void 0!==p?(0,s.dset)(e,r,JSON.stringify(p)):(0,s.dset)(e,r,"undefined")}}}}function f(e,t){return!(t.sample.percent<=0)&&(t.sample.percent>=1||(t.sample.path?function(e,t){var n=(0,o.default)(e,t.sample.path),r=(0,i.default)(JSON.stringify(n)),s=-64,c=[];h(r.slice(0,8),c);for(var u=0,l=0;l<64&&1!==c[l];l++)u++;if(0!==u){var d=[];h(r.slice(9,16),d),s-=u,c.splice(0,u),d.splice(64-u),c=c.concat(d)}return c[63]=0===c[63]?1:0,(0,a.default)(parseInt(c.join(""),2),s)<t.sample.percent}(e,t):(n=t.sample.percent,Math.random()<=n)));var n}function h(e,t){for(var n=0;n<8;n++)for(var r=e[n],i=128;i>=1;i/=2)r-i>=0?(r-=i,t.push(1)):t.push(0)}t.default=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];switch(o.type){case"drop":return null;case"drop_properties":u(n,o.config);break;case"allow_properties":l(n,o.config);break;case"sample_event":if(f(n,o.config))break;return null;case"map_properties":p(n,o.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(o.type,'" is unsupported.'))}}return n}},4966:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.unset=void 0;var i=r(n(7843));t.unset=function(e,t){if((0,i.default)(e,t)){for(var n=t.split("."),r=n.pop();n.length&&"\\"===n[n.length-1].slice(-1);)r=n.pop().slice(0,-1)+"."+r;for(;n.length;)e=e[t=n.shift()];return delete e[r]}return!0}},9014:function(e,t){t.dset=function(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!==(i=t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}},3304:function(e){var t="function"==typeof Float64Array?Float64Array:void 0;e.exports=t},7382:function(e,t,n){var r,i=n(5569),o=n(3304),a=n(8482);r=i()?o:a,e.exports=r},8482:function(e){e.exports=function(){throw new Error("not implemented")}},6322:function(e,t,n){var r,i=n(2508),o=n(5679),a=n(882);r=i()?o:a,e.exports=r},882:function(e){e.exports=function(){throw new Error("not implemented")}},5679:function(e){var t="function"==typeof Uint16Array?Uint16Array:void 0;e.exports=t},4773:function(e,t,n){var r,i=n(9773),o=n(3004),a=n(3078);r=i()?o:a,e.exports=r},3078:function(e){e.exports=function(){throw new Error("not implemented")}},3004:function(e){var t="function"==typeof Uint32Array?Uint32Array:void 0;e.exports=t},7980:function(e,t,n){var r,i=n(8114),o=n(6737),a=n(3357);r=i()?o:a,e.exports=r},3357:function(e){e.exports=function(){throw new Error("not implemented")}},6737:function(e){var t="function"==typeof Uint8Array?Uint8Array:void 0;e.exports=t},2684:function(e){var t="function"==typeof Float64Array?Float64Array:null;e.exports=t},5569:function(e,t,n){var r=n(3876);e.exports=r},3876:function(e,t,n){var r=n(1448),i=n(2684);e.exports=function(){var e,t;if("function"!=typeof i)return!1;try{t=new i([1,3.14,-3.14,NaN]),e=r(t)&&1===t[0]&&3.14===t[1]&&-3.14===t[2]&&t[3]!=t[3]}catch(t){e=!1}return e}},9048:function(e,t,n){var r=n(3763);e.exports=r},3763:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},7009:function(e,t,n){var r=n(6784);e.exports=r},6784:function(e){e.exports=function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}},3123:function(e,t,n){var r=n(8481);e.exports=r},8481:function(e,t,n){var r=n(7009)();e.exports=function(){return r&&"symbol"==typeof Symbol.toStringTag}},2508:function(e,t,n){var r=n(3403);e.exports=r},3403:function(e,t,n){var r=n(768),i=n(9668),o=n(187);e.exports=function(){var e,t;if("function"!=typeof o)return!1;try{t=new o(t=[1,3.14,-3.14,i+1,i+2]),e=r(t)&&1===t[0]&&3===t[1]&&t[2]===i-2&&0===t[3]&&1===t[4]}catch(t){e=!1}return e}},187:function(e){var t="function"==typeof Uint16Array?Uint16Array:null;e.exports=t},9773:function(e,t,n){var r=n(2822);e.exports=r},2822:function(e,t,n){var r=n(2744),i=n(3899),o=n(746);e.exports=function(){var e,t;if("function"!=typeof o)return!1;try{t=new o(t=[1,3.14,-3.14,i+1,i+2]),e=r(t)&&1===t[0]&&3===t[1]&&t[2]===i-2&&0===t[3]&&1===t[4]}catch(t){e=!1}return e}},746:function(e){var t="function"==typeof Uint32Array?Uint32Array:null;e.exports=t},8114:function(e,t,n){var r=n(8066);e.exports=r},8066:function(e,t,n){var r=n(8279),i=n(3443),o=n(2731);e.exports=function(){var e,t;if("function"!=typeof o)return!1;try{t=new o(t=[1,3.14,-3.14,i+1,i+2]),e=r(t)&&1===t[0]&&3===t[1]&&t[2]===i-2&&0===t[3]&&1===t[4]}catch(t){e=!1}return e}},2731:function(e){var t="function"==typeof Uint8Array?Uint8Array:null;e.exports=t},1448:function(e,t,n){var r=n(1453);e.exports=r},1453:function(e,t,n){var r=n(6208),i="function"==typeof Float64Array;e.exports=function(e){return i&&e instanceof Float64Array||"[object Float64Array
2]"===r(e)}},9331:function(e,t,n){var r=n(7980),i={uint16:n(6322),uint8:r};e.exports=i},5902:function(e,t,n){var r=n(4106);e.exports=r},4106:function(e,t,n){var r,i,o=n(9331);(i=new o.uint16(1))[0]=4660,r=52===new o.uint8(i.buffer)[0],e.exports=r},768:function(e,t,n){var r=n(3823);e.exports=r},3823:function(e,t,n){var r=n(6208),i="function"==typeof Uint16Array;e.exports=function(e){return i&&e instanceof Uint16Array||"[object Uint16Array]"===r(e)}},2744:function(e,t,n){var r=n(2326);e.exports=r},2326:function(e,t,n){var r=n(6208),i="function"==typeof Uint32Array;e.exports=function(e){return i&&e instanceof Uint32Array||"[object Uint32Array]"===r(e)}},8279:function(e,t,n){var r=n(208);e.exports=r},208:function(e,t,n){var r=n(6208),i="function"==typeof Uint8Array;e.exports=function(e){return i&&e instanceof Uint8Array||"[object Uint8Array]"===r(e)}},6315:function(e){e.exports=1023},1686:function(e){e.exports=2147483647},3105:function(e){e.exports=2146435072},3449:function(e){e.exports=2147483648},6988:function(e){e.exports=-1023},9777:function(e){e.exports=1023},3690:function(e){e.exports=-1074},2918:function(e,t,n){var r=n(4772).NEGATIVE_INFINITY;e.exports=r},4165:function(e){var t=Number.POSITIVE_INFINITY;e.exports=t},6488:function(e){e.exports=22250738585072014e-324},9668:function(e){e.exports=65535},3899:function(e){e.exports=4294967295},3443:function(e){e.exports=255},7011:function(e,t,n){var r=n(812);e.exports=r},812:function(e,t,n){var r=n(4165),i=n(2918);e.exports=function(e){return e===r||e===i}},1883:function(e,t,n){var r=n(1797);e.exports=r},1797:function(e){e.exports=function(e){return e!=e}},513:function(e,t,n){var r=n(5760);e.exports=r},5760:function(e){e.exports=function(e){return Math.abs(e)}},5848:function(e,t,n){var r=n(677);e.exports=r},677:function(e,t,n){var r=n(3449),i=n(1686),o=n(7838),a=n(1921),s=n(2490),c=[0,0];e.exports=function(e,t){var n,u;return o.assign(e,c,1,0),n=c[0],n&=i,u=a(t),s(n|=u&=r,c[1])}},5500:function(e,t,n){var r=n(8397);e.exports=r},8397:function(e,t,n){var r=n(4165),i=n(2918),o=n(6315),a=n(9777),s=n(6988),c=n(3690),u=n(1883),l=n(7011),d=n(5848),p=n(4948),f=n(8478),h=n(7838),g=n(2490),v=[0,0],m=[0,0];e.exports=function(e,t){var n,y;return 0===e||u(e)||l(e)?e:(p(v,e),t+=v[1],(t+=f(e=v[0]))<c?d(0,e):t>a?e<0?i:r:(t<=s?(t+=52,y=2220446049250313e-31):y=1,h(m,e),n=m[0],n&=2148532223,y*g(n|=t+o<<20,m[1])))}},4772:function(e,t,n){var r=n(7548);e.exports=r},7548:function(e){e.exports=Number},8478:function(e,t,n){var r=n(4500);e.exports=r},4500:function(e,t,n){var r=n(1921),i=n(3105),o=n(6315);e.exports=function(e){var t=r(e);return(t=(t&i)>>>20)-o|0}},2490:function(e,t,n){var r=n(9639);e.exports=r},4445:function(e,t,n){var r,i,o;!0===n(5902)?(i=1,o=0):(i=0,o=1),r={HIGH:i,LOW:o},e.exports=r},9639:function(e,t,n){var r=n(4773),i=n(7382),o=n(4445),a=new i(1),s=new r(a.buffer),c=o.HIGH,u=o.LOW;e.exports=function(e,t){return s[c]=e,s[u]=t,a[0]}},5646:function(e,t,n){var r;r=!0===n(5902)?1:0,e.exports=r},1921:function(e,t,n){var r=n(6285);e.exports=r},6285:function(e,t,n){var r=n(4773),i=n(7382),o=n(5646),a=new i(1),s=new r(a.buffer);e.exports=function(e){return a[0]=e,s[o]}},9024:function(e,t,n){var r=n(6488),i=n(7011),o=n(1883),a=n(513);e.exports=function(e,t,n,s){return o(e)||i(e)?(t[s]=e,t[s+n]=0,t):0!==e&&a(e)<r?(t[s]=4503599627370496*e,t[s+n]=-52,t):(t[s]=e,t[s+n]=0,t)}},4948:function(e,t,n){var r=n(7576),i=n(9422);r(i,"assign",n(9024)),e.exports=i},9422:function(e,t,n){var r=n(9024);e.exports=function(e){return r(e,[0,0],1,0)}},5239:function(e,t,n){var r=n(4773),i=n(7382),o=n(5782),a=new i(1),s=new r(a.buffer),c=o.HIGH,u=o.LOW;e.exports=function(e,t,n,r){return a[0]=e,t[r]=s[c],t[r+n]=s[u],t}},7838:function(e,t,n){var r=n(7576),i=n(4010);r(i,"assign",n(5239)),e.exports=i},5782:function(e,t,n){var r,i,o;!0===n(5902)?(i=1,o=0):(i=0,o=1),r={HIGH:i,LOW:o},e.exports=r},4010:function(e,t,n){var r=n(5239);e.exports=function(e){return r(e,[0,0],1,0)}},7576:function(e,t,n){var r=n(7063);e.exports=r},7063:function(e,t,n){var r=n(6691);e.exports=function(e,t,n){r(e,t,{configurable:!1,enumerable:!1,writable:!1,value:n})}},2073:function(e){var t=Object.defineProperty;e.exports=t},1680:function(e){var t="function"==typeof Object.defineProperty?Object.defineProperty:null;e.exports=t},1471:function(e,t,n){var r=n(1680);e.exports=function(){try{return r({},"x",{}),!0}catch(e){return!1}}},6691:function(e,t,n){var r,i=n(1471),o=n(2073),a=n(1309);r=i()?o:a,e.exports=r},1309:function(e){var t=Object.prototype,n=t.toString,r=t.__defineGetter__,i=t.__defineSetter__,o=t.__lookupGetter__,a=t.__lookupSetter__;e.exports=function(e,s,c){var u,l,d,p;if("object"!=typeof e||null===e||"[object Array]"===n.call(e))throw new TypeError("invalid argument. First argument must be an object. Value: `"+e+"`.");if("object"!=typeof c||null===c||"[object Array]"===n.call(c))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+c+"`.");
2if((l="value"in c)&&(o.call(e,s)||a.call(e,s)?(u=e.__proto__,e.__proto__=t,delete e[s],e[s]=c.value,e.__proto__=u):e[s]=c.value),d="get"in c,p="set"in c,l&&(d||p))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return d&&r&&r.call(e,s,c.get),p&&i&&i.call(e,s,c.set),e}},6208:function(e,t,n){var r,i=n(3123),o=n(7407),a=n(4210);r=i()?a:o,e.exports=r},7407:function(e,t,n){var r=n(173);e.exports=function(e){return r.call(e)}},4210:function(e,t,n){var r=n(9048),i=n(1403),o=n(173);e.exports=function(e){var t,n,a;if(null==e)return o.call(e);n=e[i],t=r(e,i);try{e[i]=void 0}catch(t){return o.call(e)}return a=o.call(e),t?e[i]=n:delete e[i],a}},173:function(e){var t=Object.prototype.toString;e.exports=t},1403:function(e){var t="function"==typeof Symbol?Symbol.toStringTag:"";e.exports=t},7843:function(e){e.exports=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}},374:function(e,t,n){n.r(t),n.d(t,{default:function(){return o}});for(var r=[],i=0;i<64;)r[i]=0|4294967296*Math.sin(++i%Math.PI);function o(e){var t,n,o,a=[t=1732584193,n=4023233417,~t,~n],s=[],c=unescape(encodeURI(e))+"Â",u=c.length;for(e=--u/4+2|15,s[--e]=8*u;~u;)s[u>>2]|=c.charCodeAt(u)<<8*u--;for(i=c=0;i<e;i+=16){for(u=a;c<64;u=[o=u[3],t+((o=u[0]+[t&n|~t&o,o&t|~o&n,t^n^o,n^(t|~o)][u=c>>4]+r[c]+~~s[i|15&[c,5*c+1,3*c+5,7*c][u]])<<(u=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*u+c++%4])|o>>>-u),t,n])t=0|u[1],n=u[2];for(c=4;c;)a[--c]+=u[c]}for(e="";c<32;)e+=(a[c>>3]>>4*(1^c++)&15).toString(16);return e}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}return n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(2870)}()},9450:(e,t,n)=>{var r,i=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},o=n(542);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r},9492:e=>{const t={Vistaprint:"vistaprint",VCS:"vcs",VistaprintPro:"vistaprintpro",ProShop:"proshop",NationalPen:"national-pen"},n=new Set([t.VCS,t.VistaprintPro,t.ProShop]);e.exports={commonEventProperties:["pageName","pageSection","pageStage","pageDept","pageSegmentation"],tenants:t,vcsTenants:n}},9579:e=>{const t=[];let n=!1;e.exports={registerThirdParty:function(e){n&&e(),t.push(e)},loadThirdParties:function(){n=!0,t.forEach((e=>{e()}))}}},9651:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getCurrentCountry:()=>d,getCurrentCulture:()=>l});var r=function(){var e=("undefined"!=typeof window?window.location:void 0)&&window.location.hostname;if(!e||0===e.length)throw new Error("Hostname could not be determined for the current document.");return e},i=function(){return("undefined"!=typeof window?window.location:void 0)&&window.location.pathname||"/"},o="pens.com",a={ie:"en-IE",us:"en-US",ca:"en-CA",at:"de-AT","be-fr":"fr-BE","be-nl":"nl-BE","ch-de":"de-CH","ch-fr":"fr-CH","ch-it":"it-CH",de:"de-DE",dk:"da-DK",es:"es-ES",fi:"fi-FI",fr:"fr-FR",it:"it-IT",nl:"nl-NL",pt:"pt-PT",se:"sv-SE",uk:"en-GB",au:"en-AU",nz:"en-NZ"};function s(e){var t=e.toLowerCase().replace(/\.$/,"");return t===o||t.endsWith("."+o)}function c(e){var t=function(e){return(e.startsWith("/")?e.slice(1):e).split("/")[0].split(/[?#;]/)[0].toLowerCase()}(e);return Object.prototype.hasOwnProperty.call(a,t)?a[t]:"en-US"}var u=function(e,t){if("localhost"===e)return"IE";if(s(e))return function(e){return c(e).split("-")[1]}(t);switch(function(e){if(!e||0===e.length)throw new Error("Domain must be specified");var t=e.split(".");if(t.length<2)throw new Error("Domain '"+e+"' does hot have the right format.");return t.pop()}(e).toLowerCase()){case"pt":return"PT";case"ie":return"IE";case"es":return"ES";case"in":return"IN";case"jp":return"JP";case"com":case"us":return"US";case"fr":return"FR";case"it":return"IT";case"uk":return"GB";case"de":return"DE";
2case"nl":return"NL";case"dk":return"DK";case"se":return"SE";case"at":return"AT";case"no":return"NO";case"fi":return"FI";case"be":return"BE";case"sg":return"SG";case"nz":return"NZ";case"au":return"AU";case"ca":return"CA";case"ch":return"CH"}throw new Error("Unknown country for host "+e+" and path "+t)},l=function(){return function(e,t){if(s(e))return c(t);switch(u(e,t).toUpperCase()){case"PT":return"pt-PT";case"IE":return"en-IE";case"ES":return"es-ES";case"IN":return"en-IN";case"US":return t.toLowerCase().startsWith("/es")?"es-US":"en-US";case"GB":return"en-GB";case"FR":return"fr-FR";case"IT":return"it-IT";case"DE":return"de-DE";case"NL":return"nl-NL";case"DK":return"da-DK";case"SE":return"sv-SE";case"AT":return"de-AT";case"NO":return"nb-NO";case"FI":return"fi-FI";case"BE":return(n=t.toLowerCase()).startsWith("/fr")||n.startsWith("/fr-be")?"fr-BE":"nl-BE";case"SG":return"en-SG";case"JP":return"ja-JP";case"NZ":return"en-NZ";case"AU":return"en-AU";case"CA":return function(e){return e.toLowerCase().startsWith("/fr")?"fr-CA":"en-CA"}(t);case"CH":return function(e){var t=e.toLowerCase();return t.startsWith("/fr")?"fr-CH":t.startsWith("/it")?"it-CH":"de-CH"}(t)}var n;throw new Error("Unknown culture for host "+e+" and path "+t)}(r(),i())},d=function(){var e=r(),t=i();return u(e,t)}},9675:(e,t,n)=>{const r=n(2755),i=n(3342),o=n(7383),a=n(9228),s=[i,r,a,o],c=[r];e.exports={mergeSourceMiddlewares:e=>{let t=e||[];return s&&s.length>0&&s.forEach((e=>{t=t.concat(e.getSourceMiddlewares())})),t},mergeDestinationMiddlewares:e=>{let t=e||[];return c&&c.length>0&&c.forEach((e=>{t=t.concat(e.getDestinationMiddlewares())})),t},init:e=>{i.init(e),r.init()}}},9966:(e,t,n)=>{const r=n(9265),{summary:i}=n(2366),{isSafariOrIOS:o}=n(4098);e.exports=class{_lastSentFirstPartySize=null;constructor(e){this._tracking=e}registerUnloadEvents(){o()||(window.addEventListener("visibilitychange",(()=>{"hidden"===document.visibilityState&&this._trackCollectedMetrics()})),r.isVisibilitychangeFullySupported()||window.addEventListener("pagehide",(()=>{this._trackCollectedMetrics()})))}_trackCollectedMetrics(){const e=i();e.firstPartyTotal.size!==this._lastSentFirstPartySize&&(this._lastSentFirstPartySize=e.firstPartyTotal.size,this._tracking.track("Js Load Metrics Captured",{jsLoadMetrics:e}))}}}},p={};function f(e){var t=p[e];if(void 0!==t)return t.exports;var n=p[e]={exports:{}};return d[e].call(n.exports,n,n.exports,f),n.exports}f.m=d,f.y=t,f.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return f.d(t,{a:t}),t},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,f.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var r=Object.create(null);f.r(r);var i={};e=e||[null,c({}),c([]),c(c)];for(var o=2&n&&t;"object"==typeof o&&!~e.indexOf(o);o=c(o))Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,f.d(r,i),r},f.d=(e,t)=>{for(var n in t)f.o(t,n)&&!f.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce(((t,n)=>(f.f[n](e,t),t)),[])),f.u=e=>(({248:"auto-track",521:"remoteMiddleware",538:"queryString",694:"legacyVideos"}[e]||e)+"."+{248:"cf8f8568",521:"b9dd973f",538:"f51bf7c6",605:"54ff1ccb",694:"ab984a21"}[e]+".js"),f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),f.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),f.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},f.p="",u={60:0},l=e=>{var t,n,{__webpack_ids__:r,__webpack_modules__:i,__webpack_runtime__:o}=e,a=0;for(t in i)f.o(i,t)&&(f.m[t]=i[t]);for(o&&o(f);a<r.length;a++)n=r[a],f.o(u,n)&&u[n]&&u[n][0](),u[r[a]]=0},f.f.j=(e,t)=>{var n=f.o(u,e)?u[e]:void 0;if(0!==n)if(n)t.push(n[1]);else{var r=import("./"+f.u(e)).then(l,(t=>{throw 0!==u[e]&&(u[e]=void 0),t}));r=Promise.race([r,new Promise((t=>n=u[e]=[t]))]),t.push(n[1]=r)}};var h={};return(()=>{"use strict";f.r(h),f.d(h,{ConsentManagerContainer:()=>c.ConsentManagerContainer,getTracking:()=>v,initTracking:()=>g,isConsentRequired:()=>c.isConsentRequired,scriptMetrics:()=>p}),f(5836);var e=f(5126),t=f(2323),n=f(731),r=f.n(n),i=f(8505),o=f.n(i),a=f(6076),s=f.n(a),c=f(7009),u=f(2366);let l=null;const d=async(e,t,n)=>{const r=`${e.toLowerCase()}-${t.toLowerCase()}-${n.toLowerCase()}`;return f.y.import(`@vp/tracking/config/${r}.json`).then((e=>e.default??e))},p={summary:()=>(0,u.summary)(),collect:()=>(0,u.collect)()};async function g(e){if(!e)throw new Error("Missing options for tracking initialization");const{tenant:n="vistaprint",writeKey:i,culture:a,sourceMiddlewares:c,destinationMiddlewares:u,suppressReloadOnConsentSubmit:l,consentManagerCssClassNames:p,disableWebVitals:f,environment:h="prod",onError:g,scriptNonce:v,featureFlags:m}=e,y=await d(n,a,h).catch((e=>{throw console.error("Failed to load locale configuration",e),e})),w=r().applyOverride(i??y.writeKey,n,a,c,u,l,g,p,f,v,m);let b;const C=new Promise((e=>{b=e}));w.setThirdPartyLoader=e=>{let t=!0;b((()=>{t&&(t=!1,e())}))};const k=(0,t.init)(w,(()=>{s().init(w.writeKey,w.tenant,w.culture,w.suppressReloadOnConsentSubmit,w.consentManagerCssClassNames,y.data)}));return o().setTracking(k),{tracking:k,loadThirdParty:C}}function v(){return o().getTracking()||(l||(l=(0,e.createTrackingStub)()),l)}})(),h})())}}})); 3//# sourceMappingURL=tracking.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.