1/*! For license information please see blp-header-data.js.LICENSE.txt */ 2(()=>{function t(){var o,r,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",c=e.toStringTag||"@@toStringTag";function u(t,e,i,c){var u=e&&e.prototype instanceof f?e:f,p=Object.create(u.prototype);return n(p,"_invoke",function(t,n,e){var i,c,u,f=0,p=e||[],l=!1,s={p:0,n:0,v:o,a:h,f:h.bind(o,4),d:function(t,n){return i=t,c=0,u=o,s.n=n,a}};function h(t,n){for(c=t,u=n,r=0;!l&&f&&!e&&r<p.length;r++){var e,i=p[r],h=s.p,d=i[2];t>3?(e=d===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=o):i[0]<=h&&((e=t<2&&h<i[1])?(c=0,s.v=n,s.n=i[1]):h<d&&(e=t<3||i[0]>n||n>d)&&(i[4]=t,i[5]=n,s.n=d,c=0))}if(e||t>1)return a;throw l=!0,n}return function(e,p,d){if(f>1)throw TypeError("Generator is already running");for(l&&1===p&&h(p,d),c=p,u=d;(r=c<2?o:u)||!l;){i||(c?c<3?(c>1&&(s.n=-1),h(c,u)):s.n=u:s.v=u);try{if(f=2,i){if(c||(e="next"),r=i[e]){if(!(r=r.call(i,u)))throw TypeError("iterator result is not an object");if(!r.done)return r;u=r.value,c<2&&(c=0)}else 1===c&&(r=i.return)&&r.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+e+"' method"),c=1);i=o}else if((r=(l=s.n<0)?u:t.call(n,s))!==a)break}catch(t){i=o,c=1,u=t}finally{f=1}}return{value:r,done:l}}}(t,i,c),!0),p}var a={};function f(){}function p(){}function l(){}r=Object.getPrototypeOf;var s=[][i]?r(r([][i]())):(n(r={},i,function(){return this}),r),h=l.prototype=f.prototype=Object.create(s);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,n(t,c,"GeneratorFunction")),t.prototype=Object.create(h),t}return p.prototype=l,n(h,"constructor",l),n(l,"constructor",p),p.displayName="GeneratorFunction",n(l,c,"GeneratorFunction"),n(h),n(h,c,"Generator"),n(h,i,function(){return this}),n(h,"toString",function(){return"[object Generator]"}),(t=function(){return{w:u,m:d}})()}function n(t,o,r,e){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}n=function(t,o,r,e){function c(o,r){n(t,o,function(t){return this._invoke(o,r,t)})}o?i?i(t,o,{value:r,enumerable:!e,configurable:!e,writable:!e}):t[o]=r:(c("next",0),c("throw",1),c("return",2))},n(t,o,r,e)}function o(t,n,o,r,e,i,c){try{var u=t[i](c),a=u.value}catch(t){return void o(t)}u.done?n(a):Promise.resolve(a).then(r,e)}function r(t){return function(){var n=this,r=arguments;return new Promise(function(e,i){var c=t.apply(n,r);function u(t){o(c,e,i,u,a,"next",t)}function a(t){o(c,e,i,u,a,"throw",t)}u(void 0)})}}function e(){return(e=r(t().m(function n(){var o,r;return t().w(function(t){for(;;)if(0===t.n)return o="undefined"!=typeof blapp?blapp.config.getHost("api"):bl.util.getBLHost("api"),r=fetch("https://".concat(o,"/v3api/common/environment"),{method:"GET",credentials:"include"}).then(function(t){return t.json()}).then(function(t){return t.result.environment}).catch(function(t){console.error("Error:",t)}),t.a(2,r)},n)}))).apply(this,arguments)}function i(t){return c.apply(this,arguments)}function c(){return(c=r(t().m(function n(o){var r,e;return t().w(function(t){for(;;)if(0===t.n)return r="undefined"!=typeof blapp?blapp.config.getHost("cmsapi"):bl.util.getBLHost("cmsapi"),e=fetch("https://".concat(r,"/navigation?").concat(o),{method:"GET"}).then(function(t){return t.json()}).catch(function(t){console.log(t)}),t.a(2,e)},n)}))).apply(this,arguments)}function u(){return(u=r(t().m(function n(){var o,r;return t().w(function(t){for(;;)switch(t.n){case 0:return r=i("header"),t.n=1,r.then(function(t){o=p(t)},function(t){console.log(t)});case 1:return t.a(2,o)}},n)}))).apply(this,arguments)}function a(){return(a=r(t().m(function n(){var o,r;return t().w(function(t){for(;;)switch(t.n){case 0:return r=i("footer"),t.n=1,r.then(function(t){o=p(t)},function(t){console.log(t)});case 1:return t.a(2,o)}},n)}))).apply(this,arguments)}function f(){return(f=r(t().m(function n(){var o,r;return t().w(function(t){for(;;)if(0===t.n)return o="undefined"!=typeof blapp?blapp.config.getHost("cmsapi"):bl.util.getBLHost("cmsapi"),r=fetch("https://".concat(o,"/cookie-settings-modal"),{method:"GET"}).then(function(t){return t.json()}).catch(function(t){console.log(t)}),t.a(2,r)},n)}))).apply(this,arguments)}
2function p(t){var n="undefined"!=typeof blapp?blapp.config.getHost("www"):bl.util.getBLHost("www"),o="undefined"!=typeof blapp?blapp.config.getHost("studioforum"):bl.util.getBLHost("studioforum"),r=JSON.stringify(t).replace(/www.bricklink.com/g,n);return r=r.replace(/forum.bricklink.com/g,o),JSON.parse(r)}window.returnBLPHeaderData=function(){return u.apply(this,arguments)},window.returnBLPFooterData=function(){return a.apply(this,arguments)},window.returnUserNotifications=function(){var t="undefined"!=typeof blapp?blapp.config.getHost("api"):bl.util.getBLHost("api");return fetch("https://".concat(t,"/v3api/user/notification"),{method:"GET",credentials:"include"}).then(function(t){if(t.ok)return t.json();console.log("Error: notification fetch failed")}).catch(function(t){console.error("Error:",t)})},window.returnSiteWideNotifications=function(){var t="undefined"!=typeof blapp?blapp.config.getHost("api"):bl.util.getBLHost("api");return fetch("https://".concat(t,"/v3api/common/siteNotification"),{method:"GET",credentials:"include"}).then(function(t){if(t.ok)return t.json();console.log("Error: sitewide notification fetch failed")}).catch(function(t){console.error("Error:",t)})},window.returnCartCount=function(){var t="undefined"!=typeof blapp?blapp.config.getHost("api"):bl.util.getBLHost("api");return fetch("https://".concat(t,"/v3api/cart/count"),{method:"GET",credentials:"include"}).then(function(t){if(t.ok)return t.json();console.log("Error: cart fetch failed")}).catch(function(t){console.error("Error:",t)})},window.returnCartSummary=function(){var t="undefined"!=typeof blapp?blapp.config.getHost("api"):bl.util.getBLHost("api"),n=new URL("https://".concat(t,"/v3api/cart/summary"));return n.search=new URLSearchParams({cartCountLimit:15}).toString(),fetch(n,{method:"GET",credentials:"include"}).then(function(t){if(t.ok)return t.json();console.log("Error: cart summary fetch failed")}).catch(function(t){console.error("Error:",t)})},window.returnEnvironment=function(){return e.apply(this,arguments)},window.returnCookieSettingsContent=function(){return f.apply(this,arguments)},window.returnLocale=function(){return fetch("https://v2.bricklink.com/api/locale",{method:"GET"}).then(function(t){if(t.ok)return t.json();console.log("Error: locale fetch failed")}).catch(function(t){console.error("Error:",t)})}})(); 3//# sourceMappingURL=blp-header-data.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.