PageSourceSearch

https://www.cvs.com/~/_next/static/chunks/6287.7f37ad3a60d999ab.js

js cvs.com collected 2026-09-27 20:57:14 UTC 15,760 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6287],{16287:(t,e,r)=>{r.r(e),r.d(e,{cvs_bfp:()=>b});var n=r(63593),o=r(37811),i=function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function a(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}u((n=n.apply(t,e||[])).next())})},s=function(t,e){var r,n,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(a){return function(u){var c=[a,u];if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return s.label++,{value:c[1],done:!1};case 5:s.label++,n=c[1],c=[0];continue;case 7:c=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){s=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){s.label=c[1];break}if(6===c[0]&&s.label<o[1]){s.label=o[1],o=c;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(c);break}o[2]&&s.ops.pop(),s.trys.pop();continue}c=e.call(t,s)}catch(t){c=[6,t],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},a=function(t){var e,r;return null==(r=null==(e=null==document?void 0:document.cookie.split("; ").find(function(e){return e.startsWith(t)}))?void 0:e.split("="))?void 0:r[1]},u=function(t){var e,r=document.createElement("canvas");try{if(e=r.getContext("2d"),null==e)return""}catch(t){return""}var n="ClientJS,org <canvas> 1.0";return(e.textBaseline="top",e.font="14px 'Arial'",e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(125,1,62,20),e.fillStyle="#069",e.fillText(n,2,15),e.fillStyle="rgba(102, 204, 0, 0.7)",e.fillText(n,4,17),"blob"===t)?new Promise(function(t){r.toBlob(t)}):r.toDataURL()},c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},l=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function(t,e,r){return t(r={path:void 0,exports:{},require:function(t,e){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},r.exports),r.exports}(function(t,e){var r="undefined"!=typeof self?self:c,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();(function(t){var e={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(r[Symbol.iterator]=function(){return r}),r}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(t.bodyUsed)return Promise.reject(TypeError("Already read"));t.bodyUsed=!0}function l(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function f(t){var e=new FileReader,r=l(e);return e.readAsArrayBuffer(t),r}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(e.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(e.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else{var r;e.arrayBuffer&&e.blob&&(r=t)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||o(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t)}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,e,r,n=c(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=l(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},e.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}u.prototype.append=function(t,e){t=i(t),e=s(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},u.prototype.delete=function(t){delete this.map[i(t)]},u.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},u.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},u.prototype.set=function(t,e){this.map[i(t)]=s(e)},u.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},u.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),a(t)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),a(t)},u.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),a(t)},e.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);
1var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var r,n,o=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new u(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new u(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),d.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function b(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}}),e}function v(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new u(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},v.error=function(){var t=new v(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];v.redirect=function(t,e){if(-1===m.indexOf(e))throw RangeError("Invalid status code");return new v(null,{status:e,headers:{location:t}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(r,n){return new Promise(function(o,i){var s=new y(r,n);if(s.signal&&s.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new u,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}}),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL"),o(new v("response"in a?a.response:a.responseText,r))},a.onerror=function(){i(TypeError("Network request failed"))},a.ontimeout=function(){i(TypeError("Network request failed"))},a.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&e.blob&&(a.responseType="blob"),s.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}w.polyfill=!0,n.fetch||(n.fetch=w,n.Headers=u,n.Request=y,n.Response=v),t.Headers=u,t.Request=y,t.Response=v,t.fetch=w,Object.defineProperty(t,"__esModule",{value:!0})})({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill,(e=n.fetch).default=n.fetch,e.fetch=n.fetch,e.Headers=n.Headers,e.Request=n.Request,e.Response=n.Response,t.exports=e})),f=function(){return"undefined"==typeof window},h=function(){var t;if(f())switch(null==(t=o.env)?void 0:t.ENV){case"local":case"qa2":return"https://www-qa2.cvs.com";case"qa1":return"https://www-qa1.cvs.com";default:return"https://www.cvs.com"}return window.location.hostname.includes("localhost")||window.location.hostname.includes(".preview.cvs.com")?"https://www-qa1.cvs.com":""},p={CVS:{PROD:{generateBfpEndpoint:"6TiidoRjpQG3uSjKU33lgq97MAuVBtpz"},QA:{generateBfpEndpoint:"FHbLTRk49KzXrKDrWWcHVGOVUvnIyVFz"}},OTCHS:{PROD:{generateBfpEndpoint:"FVQ6kzvLKsDGznsTmuKerSL20N8Cvvme"},QA:{generateBfpEndpoint:"6OTG8torhludHAwVG294LxvrBcX19SXi"}}},d=""===function(){if(f()){if((null==(t=o.env)?void 0:t.ENV)===void 0)return"";switch(o.env.ENV){case"local":return"QA2";case"prod":return"";default:return o.env.ENV.toUpperCase()}}var t,e,r,n,i=null==(e=null==window?void 0:window.location)?void 0:e.hostname;if(["m.cvs.com","www.cvs.com","es.cvs.com"].indexOf(i)>-1)return"";var s="QA2";return(null==(r=null==i?void 0:i.split("-"))?void 0:r.length)>1&&(s=null==(n=i.split("-")[1].split(".")[0])?void 0:n.toUpperCase()),s}(),y=function(){};y.generateBfp=function(t,e,r,n){return i(void 0,void 0,void 0,function(){var o,i,a,u,c,f,y,b,v,m;return s(this,function(s){switch(s.label){case 0:n?(o=d?p.OTCHS.PROD.generateBfpEndpoint:p.OTCHS.QA.generateBfpEndpoint,i="/benefits/api/guest/v1/token"):(o=d?p.CVS.PROD.generateBfpEndpoint:p.CVS.QA.generateBfpEndpoint,i="/api/guest/v1/token"),a=h(),u="".concat(a).concat(i),s.label=1;case 1:return s.trys.push([1,6,,7]),c={"Content-Type":"application/json","x-visitor-id":e,"x-api-key":o,"x-experienceId":"64ddbeb1-9b2a-4c74-8037-e98701f10f2b","x-channel":"WEB"},""!==t&&(c["x-adobe-ecid"]=t),f={data:Object.assign({},r?{cp:r}:{})},y=new AbortController,b=setTimeout(function(){return y.abort()},2e3),[4,l(u,{method:"POST",headers:c,body:JSON.stringify(f),signal:y.signal})];case 2:if(v=s.sent(),clearTimeout(b),!v.ok)return[3,4];return[4,v.json()];case 3:return m=s.sent(),[3,5];case 4:m=v.ok,s.label=5;case 5:return[2,m];case 6:return console.error("error in generating bfp",s.sent()),[3,7];case 7:return[2]}})})};var b=function(){function t(t){(0,n.r)(this,t),this.invokeCartCount=(0,n.c)(this,"invokeCartCount",7),this.fp=(0,n.c)(this,"fp",7),this.bfpemit=(0,n.c)(this,"bfpemit",7),this.bfpemit_v2=(0,n.c)(this,"bfpemit_v2",7),this.getECID=function(){var t=sessionStorage.getItem("FBP-ECID");return t||""},this.v="2",this.isOtchs=!1,this.tryGenerateToken=0,this.fpcuidValue="",this.invokeGuestToken=!1}return t.prototype.onEcidevent=function(t){"ecid created"===t.detail&&(this.invokeGuestToken=!0,this.getCanvasPrint())},t.prototype.onGenerateFP=function(){this.invokeGuestToken=!0,this.getCanvasPrint()},t.prototype.generateToken=function(t,e,r){return i(this,void 0,void 0,function(){var n,o,i,a,u,c,l,f,h,p=this;return s(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,y.generateBfp(this.getECID(),t,e,r)];case 1:return(c=s.sent())&&"0000"===c.statusCode?((l=c.bfp)&&(null==sessionStorage||sessionStorage.setItem("cvsbfp_v2",l),f=Date.now().toString(),r?localStorage.setItem("otchs_fp_time",f):sessionStorage.setItem("fp_t
1ime",f),null==(n=this.bfpemit_v2)||n.emit(l)),c.access_token&&(null==(o=this.fp)||o.emit("success")),(h=c.bfp_cp)&&(null==sessionStorage||sessionStorage.setItem("cvsbfp",h),null==(i=this.bfpemit)||i.emit(h))):(this.tryGenerateToken<3?setTimeout(function(){p.generateToken(t,e,r)},100*(this.tryGenerateToken+1)):null==(a=this.fp)||a.emit("failure"),this.tryGenerateToken++),[3,3];case 2:return s.sent(),null==(u=this.fp)||u.emit("failure"),[3,3];case 3:return[2]}})})},t.prototype.getCanvasPrint=function(){return i(this,void 0,void 0,function(){var t,e,r,n,o,a,c,l,f,h,p;return s(this,function(d){switch(d.label){case 0:return[4,u("dataString")];case 1:return n=d.sent(),o=!0,a=this.getFpcuid(),[4,function(t){return i(this,void 0,void 0,function(){var e;return s(this,function(r){switch(r.label){case 0:return e=(new TextEncoder).encode(t),[4,crypto.subtle.digest("SHA-256",e)];case 1:return[2,Array.from(new Uint8Array(r.sent())).map(function(t){return t.toString(16).padStart(2,"0")}).join("")]}})})}(n)];case 2:return c=d.sent(),(f=(l=this.isOtchs?localStorage.getItem("otchs_fp_time"):sessionStorage.getItem("fp_time"))?parseInt(l):void 0)&&(Date.now()-f)/6e4<15&&(o=!1),a&&o||a&&this.invokeGuestToken?this.generateToken(a,c,this.isOtchs):((h=sessionStorage.getItem("cvsbfp"))&&(null==(t=this.bfpemit)||t.emit(h)),(p=sessionStorage.getItem("cvsbfp_v2"))&&(null==(e=this.bfpemit_v2)||e.emit(p)),null==(r=this.fp)||r.emit("success")),[2]}})})},t.prototype.getFpcuid=function(){var t=a("fpcuid"),e=localStorage.getItem("fpcuid");return t?(e=t,localStorage.setItem("fpcuid",e)):e||(e=crypto.randomUUID(),this.fpcuidValue=e,localStorage.setItem("fpcuid",e)),e},t.prototype.componentWillLoad=function(){this.getCanvasPrint()},t.prototype.render=function(){return(0,n.h)(n.H,{"data-version":"04/30/26"},(0,n.h)("div",null))},t}();b.style=":host{display:none}"}}]);

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.