1System.register([],(function(f){"use strict";return{execute:(function(){var L=f("g",typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{});function $(){throw new Error("setTimeout has not been defined")}function z(){throw new Error("clearTimeout has not been defined")}var o=$,s=z;typeof L.setTimeout=="function"&&(o=setTimeout),typeof L.clearTimeout=="function"&&(s=clearTimeout);function R(e){if(o===setTimeout)return setTimeout(e,0);if((o===$||!o)&&setTimeout)return o=setTimeout,setTimeout(e,0);try{return o(e,0)}catch{try{return o.call(null,e,0)}catch{return o.call(this,e,0)}}}function j(e){if(s===clearTimeout)return clearTimeout(e);if((s===z||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{return s(e)}catch{try{return s.call(null,e)}catch{return s.call(this,e)}}}var i=[],g=!1,u,y=-1;function O(){!g||!u||(g=!1,u.length?i=u.concat(i):y=-1,i.length&&F())}function F(){if(!g){var e=R(O);g=!0;for(var t=i.length;t;){for(u=i,i=[];++y<t;)u&&u[y].run();y=-1,t=i.length}u=null,g=!1,j(e)}}function M(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];i.push(new x(e,t)),i.length===1&&!g&&R(F)}function x(e,t){this.fun=e,this.array=t}x.prototype.run=function(){this.fun.apply(null,this.array)};var D="browser",H="browser",P=!0,W={},q=[],J="",V={},Q={},B={};function c(){}var G=c,K=c,X=c,Y=c,Z=c,_=c,ee=c;function te(e){throw new Error("process.binding is not supported")}function re(){return"/"}function ne(e){throw new Error("process.chdir is not supported")}function ie(){return 0}var m=L.performance||{},ae=m.now||m.mozNow||m.msNow||m.oNow||m.webkitNow||function(){return new Date().getTime()};function oe(e){var t=ae.call(m)*.001,r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r=r-e[0],n=n-e[1],n<0&&(r--,n+=1e9)),[r,n]}var se=new Date;function le(){var e=new Date,t=e-se;return t/1e3}var ye=f("b",{nextTick:M,title:D,browser:P,env:W,argv:q,version:J,versions:V,on:G,addListener:K,once:X,off:Y,removeListener:Z,removeAllListeners:_,emit:ee,binding:te,cwd:re,chdir:ne,umask:ie,hrtime:oe,platform:H,release:Q,config:B,uptime:le});const T=()=>typeof window>"u";var C="3.3.27";function ue(){let e=window?.tracking?.visit();if(e)return e;const t=document.cookie.split(";").find(r=>r.trim().startsWith("visit"));return t&&(e=t.split("=")[1].trim()),e}function ce(){const e=async n=>await fetch(de(window.location.hostname),{method:"POST",body:n,headers:{"Content-Type":"application/json"}}),t={},r=Math.random().toString(36).substring(2,15);return{log:async(...n)=>{try{const d=n.reduce((h,a)=>{const b=typeof a=="string"?a:a.message;if(t[b])return h;t[b]=!0;let w={};return typeof a=="string"?w.message=a:w={...a},h.push(w),h},new Array);if(d.length===0)return;await e(JSON.stringify([{common:{attributes:{host:window.location.href,agent:window.navigator.userAgent,serviceName:"ab-reader",visit:ue(),version:C,logtype:"browser",logsId:r}},logs:d}]))}catch(d){console.error("ab-reader failed sending logs",JSON.stringify(d))}}}}function de(e){let t="https://nrlogger-prod.cf-exp.vpsvc.com?partition=exp";return(e==="localhost"||e.startsWith("staging"))&&(t="https://nrlogger-dev.cf-exp.vpsvc.com?partition=exp"),t}const E=()=>window?.abReader||{getVariation:()=>null,getAllExperiments:()=>[],checkFeature:()=>null,isAvailable:()=>!1,getTestUserId:()=>null,fireImpression:()=>!1,fireFeatureImpression:()=>!1},fe=ce();let N=()=>{};const ge=e=>{N=e},v="ab-script-loaded",me=(e,t,r=!1)=>{if(T())return!1;const n=t?` with experiment key [${t}]`:"";return window.abReaderInitialized?!0:(r||p({message:`Library not initialized before using method ${e}${n}.`}),!1)},I=(e,t,r)=>{try{return e()}catch(n){p({message:`ab-reader library failed when calling ${t}.`,error:JSON.stringify(n)})}return r},k=()=>I(()=>window.abReader?.isAvailable()??!1,"isAvailable",!1),we=e=>A("checkFeature",e)?I(()=>E().checkFeature(e),"checkFeature",null):null,ve=(e,t,r)=>pe(()=>E().fireFeatureImpression(e,t,r?"true":"false",C),"fireFeatureImpression"),pe=(e,t)=>{T()&&p({message:`${t} called serverside. `,error:"Tracking is not available."});const r=()=>I(e,t,!1),n=async()=>{r(),window.removeEventListener(v,n)};return A(t,void 0,!0)?r():(window.abReaderInitialized||N(),window.addEventListener(v,n),!1)},Te=f("c",()=>A("getTestUserId")?I(E().getTestUserId,"getTestUserId",null):null),Ie=f("w",(e,t)=>{if(T()){e(!1);return}if(k()){e(!0);return}let r;const n=new Promise(S=>{r=S}),d=()=>{window.removeEventListener(v,d),k()?r(!0):w()},h=()=>{window.addEventListener(v,d)},a="variationsResolved",b=()=>{window.removeEventListener(a,b),r(!0)},w=()=>{window.addEventListener(a,b)},U=[n];U.push(new Promise(S=>
1{setTimeout(S,t)})),window.abReader?w():h(),Promise.race(U).then(()=>{e(k())})}),Le=f("i",e=>{const t=we(e);return t!==null&&(ve(t.featureName,t.ruleId,t.enabled==="true"),t.enabled==="true")}),A=(e,t,r=!1)=>{if(!me(e,t,r))return!1;const n=t?` with experiment key [${t}]`:"";return window.abReader===void 0?(r||p({message:`ab-reader library not ready before using method ${e}${n}.`}),!1):!0},l={logs:[]};function p(e){const t=async()=>{l.logs.length!==0&&(fe.log(...l.logs),l.logs=[],l.timeoutId=void 0)};l.logs.push(e),l.timeoutId&&clearTimeout(l.timeoutId),l.timeoutId=window.setTimeout(()=>{t()},1e3)}const he=f("a",()=>{if(T()||window.abReaderInitialized)return;const e=document.createElement("script");e.type="application/javascript",e.async=!0,e.src=be(window.location.hostname),e.onload=()=>window.dispatchEvent(new CustomEvent(v)),document.head.appendChild(e),window.abReaderInitialized=!0});ge(he);function be(e){let t="https://wexp.exp.vpsvc.com/experimentation/ab-lib/ab-reader.js";try{const r=e.match(/vistaprint\.[a-z]{2,3}(\.[a-z]{2,3})?/);return r&&r[0]&&(t=`https://www.${r[0]}/experimentation/ab-lib/ab-reader.js`),(e==="localhost"||e.startsWith("staging.vistaprint"))&&(t="https://staging.vistaprint.com/experimentation/ab-lib/ab-reader.js"),t}catch{return p({message:`There was an error trying to get the script source for the following hostname: '${e}'`}),t}}})}})); 2//# sourceMappingURL=main_npm-C7l3h4XL.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.