Files
neo 932ec3ac8f KPI cards: Bloomberg stock ticker style
- Redesign KPI cards to look like stock tickers
- Add ticker ID (e.g. ВЫРУЧК:KPI, AOV:KPI)
- Arrow up/down SVG indicators for change direction
- Mini trend-line (50px) inside each card
- Change color: green (#16a34a) for up, red (#e21d1d) for down
- Remove sparkline background area, keep only line
- Fix duplicate arrowUp variable naming (bArrowUp/bArrowDown/bArrowNeutral)
2026-06-21 18:14:08 +05:00

1 line
110 KiB
JavaScript

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["plug-client"]=e():t["plug-client"]=e()}(this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=146)}([function(t,e,n){"use strict";n.d(e,"a",function(){return o});const r={trace:0,debug:1,info:2,warn:3,error:4};function o(t,...e){var n;const o=r[t];let i=r.warn;const a=function(t=window.location.href){const e={};return new URL(t).searchParams.forEach((t,n)=>{e[n]=t}),e}().plugLog;a&&Object.getOwnPropertyDescriptor(r,a)&&(i=r[a]),o<i||((o===r.error||a)&&console[t]("[PLUG_CLIENT]",new Date(Date.now()).toISOString(),...e),o>=r.warn&&["prod","stg"].includes("prod")&&(null===(n=null===window||void 0===window?void 0:window.newrelic)||void 0===n||n.addPageAction("PlugClient-Log",{env:"prod",level:t,messages:e})))}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n(96))},function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"a",function(){return i}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return s});const r="plug-modal-outlet",o="plug-overlay",i="plug-banner-outlet",a="plug-close-button-clicked",s=864e5},function(t,e,n){var r=n(1),o=n(52),i=n(5),a=n(53),s=n(60),u=n(112),c=o("wks"),l=r.Symbol,f=u?l:l&&l.withoutSetter||a;t.exports=function(t){return i(c,t)||(s&&i(l,t)?c[t]=l[t]:c[t]=f("Symbol."+t)),c[t]}},function(t,e,n){t.exports=function(){"use strict";function t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function e(n,r){function o(e,o,i){if("undefined"!=typeof document){"number"==typeof(i=t({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=e+"="+n.write(o,e)+a}}function i(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var e=document.cookie?document.cookie.split("; "):[],r={},o=0;o<e.length;o++){var i=e[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=n.read(a,s),t===s)break}catch(t){}}return t?r[t]:r}}return Object.create({set:o,get:i,remove:function(e,n){o(e,"",t({},n,{expires:-1}))},withAttributes:function(n){return e(this.converter,t({},this.attributes,n))},withConverter:function(n){return e(t({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}return e({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})}()},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(13),o=n(14),i=n(24);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.URLS_MAP=e.SOCIAL_SITE_PLACEHOLDER=e.APPLE_AUTH_INFO_FLAG_COOKIE_NAME=e.TWITTER_TOKEN_FLAG_COOKIE_NAME=e.FACEBOOK_ACCESS_TOKEN_FLAG_COOKIE_NAME=e.BSSO_ACCESS_TOKEN_FLAG_COOKIE_NAME=e.EXPERIENCE_PREFERENCE_COOKIE_NAME=e.COLLECTIVE_USER_DATA_COOKIE=e.CSRF_TOKEN_COOKIE_NAME=e.AGENT_ID=e.SESSION_KEY=e.SESSION_ID=e.SUBSCRIPTION_REFRESH_COOKIE_NAME=e.BREG_USER_COOKIE_NAME=e.BREG_USER_ID_COOKIE_NAME=e.BBGCOM_SITE_REGEX=void 0;var o=r(n(47));e.BBGCOM_SITE_REGEX=/bloomberg\.com$/i,e.BREG_USER_ID_COOKIE_NAME="_breg-uid",e.BREG_USER_COOKIE_NAME="_breg-user",e.SUBSCRIPTION_REFRESH_COOKIE_NAME="_last-refresh",e.SESSION_ID="session_id",e.SESSION_KEY="session_key",e.AGENT_ID="agent_id",e.CSRF_TOKEN_COOKIE_NAME="_reg-csrf-token",e.COLLECTIVE_USER_DATA_COOKIE="_user-data",e.EXPERIENCE_PREFERENCE_COOKIE_NAME="exp_pref",e.BSSO_ACCESS_TOKEN_FLAG_COOKIE_NAME="_bsso-user-token-flag",e.FACEBOOK_ACCESS_TOKEN_FLAG_COOKIE_NAME="_fb-user-token-flag",e.TWITTER_TOKEN_FLAG_COOKIE_NAME="_twtr-user-token-flag",e.APPLE_AUTH_INFO_FLAG_COOKIE_NAME="_apple-auth-info-flag",e.SOCIAL_SITE_PLACEHOLDER="<SOCIAL_SITE>";var i={loginUrl:"iframe/login",registerUrl:"iframe/register",uverifyUrl:"iframe/uverify",terminalRegisterUrl:"iframe/terminal-register",bwRegisterUrl:"iframe/magazine",settingsUrl:"account",userInfoUrl:"user-info",bssoUrl:"api/login/bloomberg-auth-redirect",optInToReferralsUrl:"api/referrals/opt-in",optOutFromReferralsUrl:"api/referrals/opt-out",preferredEmailPath:"api/account/update-preferred-email",preferredEmailUIPath:"iframe/terminal-preferred-email",verifyVerificationCodePath:"api/user-verify/verify-verification-code",registerPath:"api/v3/register/bconnect",sendVerificationEmailPath:"api/user-verify/send-verification-email",sendEmailToEloquaAndCprefPath:"api/marketing",userSignInPath:"api/login",groupSubsSSOLoginPath:"api/login/sso-login-url",trackingPixelSrc:"/psz/pixel.gif",googleAuthPath:"api/login/google-auth",logoutUrl:"api/logout",socialSignInPath:"api/login/".concat(e.SOCIAL_SITE_PLACEHOLDER,"-auth-redirect")};e.URLS_MAP={development:(0,o.default)({baseUrl:"http://local.bloomberg.com:4004/account/",apiBaseUrl:"http://local-login.bloomberg.com:4004/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),developmentTLS:(0,o.default)({baseUrl:"https://local.bloomberg.com:8008/account/",apiBaseUrl:"https://local.bloomberg.com:8008/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),red:(0,o.default)({baseUrl:"https://origin.red.bloomberg.com/account/",apiBaseUrl:"https://red-login.bloomberg.com/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),orange:(0,o.default)({baseUrl:"https://origin.orange.bloomberg.com/account/",apiBaseUrl:"https://orange-login.bloomberg.com/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),yellow:(0,o.default)({baseUrl:"https://origin.yellow.bloomberg.com/account/",apiBaseUrl:"https://yellow-login.bloomberg.com/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),green:(0,o.default)({baseUrl:"https://origin.green.bloomberg.com/account/",apiBaseUrl:"https://green-login.bloomberg.com/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),blue:(0,o.default)({baseUrl:"https://origin.blue.bloomberg.com/account/",apiBaseUrl:"https://blue-login.bloomberg.com/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),purple:(0,o.default)({baseUrl:"https://origin.purple.bloomberg.com/account/",apiBaseUrl:"https://purple-login.bloomberg.com/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),sandcastle:(0,o.default)({baseUrl:"https://origin.sandcastle.bloomberg.com/account/",apiBaseUrl:"https://sandcastle-login.bloomberg.com/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),staging:(0,o.default)({baseUrl:"https://origin.staging.bloomberg.com/account/",apiBaseUrl:"https://staging-login.bloomberg.com/",personalizationBaseUrl:"https://tracking.stg.bloomberg.com/"},i),production:(0,o.default)({baseUrl:"https://www.bloomberg.com/account/",apiBaseUrl:"https://login.bloomberg.com/",personalizationBaseUrl:"https://tracking.bloomberg.com/"},i)}},function(t,e,n){var r=n(1),o=n(30).f,i=n(8),a=n(15),s=n(34),u=n(100),c=n(57);t.exports=function(t,e){var n,l,f,d,p,h=t.target,_=t.global,g=t.stat;if(n=_?r:g?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in e){if(d=e[l],f=t.noTargetGet?(p=o(n,l))&&p.value:n[l],!c(_?l:h+(g?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&i(d,"sham",!0),a(n,l,d,t)}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(54),o=n(1),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(7);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e,n){var r=n(13),o=n(51),i=n(6),a=n(50),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(1),o=n(8),i=n(5),a=n(34),s=n(35),u=n(26),c=u.get,l=u.enforce,f=String(String).split("String");(t.exports=function(t,e,n,s){var u,c=!!s&&!!s.unsafe,d=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),(u=l(n)).source||(u.source=f.join("string"==typeof e?e:""))),t!==r?(c?!p&&t[e]&&(d=!0):delete t[e],d?t[e]=n:o(t,e,n)):d?t[e]=n:a(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s(this)})},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){"use strict";function r(t){return"modal"===t||"banner"===t}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";const r="_user-data";var o=n(4),i=n.n(o),a=n(0);const s={getSubscriptions:()=>{let t;try{t=JSON.parse(i.a.get(r))}catch(t){}return t&&t.subscriptionsData?t.subscriptionsData.reduce((t,{entitlements:e})=>(e&&e.forEach(e=>t.add(e)),t),new Set):new Set},getSubscriberData:()=>{let t;try{return t=JSON.parse(i.a.get(r)),t&&t.subscriberData?t.subscriberData:{}}catch(t){return{}}},getNewsletters:()=>{const t=i.a.get(r);if(t)try{const e=JSON.parse(t);if(!e)return;const n=e.newsletterIds;if(!Array.isArray(n)||0===n.length)return;return n.join("|")}catch(t){return void a.a("error","Failed to parse newsletters from cookie. Error: ",t)}},getExperiencePreference:()=>i.a.get("exp_pref")||"AMER",isLoggedIn:()=>{let t;try{t=JSON.parse(i.a.get(r))}catch(t){}return"logged_in"===(null==t?void 0:t.status)}};e.a=s},function(t,e){t.exports=!1},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(16),o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},function(t,e,n){"use strict";e.a=function(t){var e;const n=document.querySelector(t);null===(e=null==n?void 0:n.parentElement)||void 0===e||e.removeChild(n)}},function(t,e,n){"use strict";n.d(e,"c",function(){return S}),n.d(e,"b",function(){return E}),n.d(e,"a",function(){return I});var r=n(2);function o(t,e,n="beforeend"){t&&t.insertAdjacentHTML(n,e)}const i=27,a=9;function s(){return document.activeElement===document.querySelector("body")}function u(t,e){return function(t){return(t.keyCode===a||"Tab"===t.key)&&!0===t.shiftKey}(t)&&(document.activeElement===e[0]||s())}function c(t,e){return function(t){return(t.keyCode===a||"Tab"===t.key)&&!1===t.shiftKey}(t)&&(document.activeElement===e[e.length-1]||s())}var l=n(22);const f=1e3,d=200;var p=n(17),h=n(0),_=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})};const g=`\n <div id="${r.e}">\n <div id="${r.d}" role="dialog" aria-modal="true"/>\n </div\n`,v="\n #plug-overlay {\n position: fixed;\n left: 0;\n bottom: 0;\n min-width: 100vw;\n min-height: 100%;\n z-index: 10001;\n background-color: rgba(128, 128, 128, .6);\n display: flex;\n justify-content: center;\n align-items: flex-end;\n animation: fadeIn 0.5s ease-in;\n }\n\n #plug-modal-outlet {\n position: absolute;\n left: 50%;\n transform: translate(-50%, 0);\n top: 20vh;\n z-index: 10001;\n }\n\n @keyframes fadeIn {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}",m=`\n <div id="${r.a}" role="complementary"/>\n`,b="\n #plug-banner-outlet {\n position: fixed;\n z-index: 10000;\n width: 100%;\n bottom: 0;\n left: 0;\n right: 0;\n animation: slideIn 0.3s ease-in;\n }\n\n @keyframes slideIn {\n from {\n transform: translateY(100%);\n }\n to {\n transform: translateY(0%);\n }\n";function y(t){const e=document.createElement("style");e.innerHTML=t,document.head.appendChild(e)}function E(t){switch(t){case"modal":return`#${r.d}`;case"banner":return`#${r.a}`;default:return null}}function w(t,e){document.addEventListener("keydown",function t(n){"Escape"!==n.key&&(n.keyCode||n.which)!==i||(document.removeEventListener("keydown",t),Object(l.a)(e))});const n=o=>{var i;const a=null===(i=o.detail)||void 0===i?void 0:i.modalRenderId;try{("string"==typeof a?parseInt(a):a)===t&&(window.removeEventListener(r.b,n),Object(l.a)(e))}catch(t){Object(h.a)("error",`invalid modalRenderId ${a}`)}};window.addEventListener(r.b,n)}function S(t,e,n){Object(p.a)(e)&&("modal"===e&&function(t,e){document.getElementById(r.d)||(o(document.body,g),y(v),w(t,null!=e?e:`#${r.e}`))}(t,n),"banner"===e&&function(t,e){document.getElementById(r.a)||(o(document.body,m),y(b),w(t,null!=e?e:`#${r.a}`))}(t,n))}function I(){return _(this,void 0,void 0,function*(){const t="input, a, button",e=document.querySelector(`#${r.d}`);yield function(t){let e;const n=new Promise((t,n)=>{e=setTimeout(()=>n({message:`Took longer than ${f/1e3} seconds waiting for condition to be satisfied`}),f)}),r=new Promise(e=>{!function n(){t()&&e(),window.setTimeout(n,d)}()});return Promise.race([n,r]).then(()=>clearTimeout(e))}(()=>!!(null==e?void 0:e.querySelector(t)));const n=null==e?void 0:e.querySelector(t);var o;null==n||n.focus(),(o=e).addEventListener("keydown",t=>{const e=function(t){return t.querySelectorAll('button, a[href]:not(:empty), input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])')}(o);if(u(t,e))return t.preventDefault(),void e[e.length-1].focus();c(t,e)&&(t.preventDefault(),e[0].focus())})})}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(98),o=n(32);t.exports=function(t){return r(o(t))}},function(t,e,n){var r,o,i,a=n(99),s=n(1),u=n(11),c=n(8),l=n(5),f=n(36),d=n(37),p=n(38),h=s.WeakMap;if(a){var _=f.state||(f.state=new h),g=_.get,v=_.has,m=_.set;r=function(t,e){return e.facade=t,m.call(_,t,e),e},o=function(t){return g.call(_,t)||{}},i=function(t){return v.call(_,t)}}else{var b=d("state");p[b]=!0,r=function(t,e){return e.facade=t,c(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},i=function(t){return l(t,b)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,e,n){var r=n(6),o=n(111),i=n(56),a=n(61),s=n(113),u=n(114),c=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,n){var l,f,d,p,h,_,g,v=n&&n.that,m=!(!n||!n.AS_ENTRIES),b=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),E=a(e,v,1+m+y),w=function(t){return l&&u(l),new c(!0,t)},S=function(t){return m?(r(t),y?E(t[0],t[1],w):E(t[0],t[1])):y?E(t,w):E(t)};if(b)l=t;else{if("function"!=typeof(f=s(t)))throw TypeError("Target is not iterable");if(o(f)){for(d=0,p=i(t.length);p>d;d++)if((h=S(t[d]))&&h instanceof c)return h;return new c(!1)}l=f.call(t)}for(_=l.next;!(g=_.call(l)).done;){try{h=S(g.value)}catch(t){throw u(l),t}if("object"==typeof h&&h&&h instanceof c)return h}return new c(!1)}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(t,e)=>[`TemplateName: ${t}`,`TemplateID: ${e.templateId}`,`Target: ${e.targetId}`,`Priority: ${e.priority}`].join(" ")},function(t,e,n){var r=n(13),o=n(97),i=n(24),a=n(25),s=n(50),u=n(5),c=n(51),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(1),o=n(11),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,n){var r=n(1),o=n(8);t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},function(t,e,n){var r=n(36),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,e,n){var r=n(1),o=n(34),i="__core-js_shared__",a=r[i]||o(i,{});t.exports=a},function(t,e,n){var r=n(52),o=n(53),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e){t.exports={}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){var r=n(5),o=n(106),i=n(37),a=n(107),s=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r,o=n(6),i=n(109),a=n(40),s=n(38),u=n(59),c=n(33),l=n(37),f="prototype",d="script",p=l("IE_PROTO"),h=function(){},_=function(t){return"<"+d+">"+t+"</"+d+">"},g=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,n;g=r?function(t){t.write(_("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):(e=c("iframe"),n="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(_("document.F=Object")),t.close(),t.F);for(var o=a.length;o--;)delete g[f][a[o]];return g()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=o(t),n=new h,h[f]=null,n[p]=t):n=g(),void 0===e?n:i(n,e)}},function(t,e,n){var r={};r[n(3)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e,n){var r=n(14).f,o=n(5),i=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(31),o=n(1);t.exports="process"==r(o.process)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ApplicationCaller=e.UserStatus=e.BloombergSubscription=e.SocialSite=void 0,function(t){t.TERMINAL="terminal",t.APPLE="apple",t.TWITTER="twitter",t.FACEBOOK="facebook"}(e.SocialSite||(e.SocialSite={})),function(t){t.BLOOMBERG_ALL="bbg-all",t.BLOOMBERG_DIGITAL="bbg-digital",t.BUSINESSWEEK_PRINT="bw-print",t.BUSINESSWEEK_DIGITAL="bw-digital",t.BUSINESSWEEK_ZINIO="bw-zinio"}(e.BloombergSubscription||(e.BloombergSubscription={})),function(t){t.LOGGED_IN="logged_in",t.LOGGED_OUT="logged_out",t.LOGGED_OUT_SUB="logged_out_sub",t.ANONYMOUS="anonymous"}(e.UserStatus||(e.UserStatus={})),function(t){t.APP="APP",t.BREG="BREG",t.FORTRESS="FORTRESS",t.OTHER="OTHER"}(e.ApplicationCaller||(e.ApplicationCaller={}))},function(t,e){var n=9007199254740991,r="[object Arguments]",o="[object Function]",i="[object GeneratorFunction]",a=/^(?:0|[1-9]\d*)$/;var s,u,c=Object.prototype,l=c.hasOwnProperty,f=c.toString,d=c.propertyIsEnumerable,p=(s=Object.keys,u=Object,function(t){return s(u(t))}),h=Math.max,_=!d.call({valueOf:1},"valueOf");function g(t,e){var n=E(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&w(t)}(t)&&l.call(t,"callee")&&(!d.call(t,"callee")||f.call(t)==r)}(t)?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],o=n.length,i=!!o;for(var a in t)!e&&!l.call(t,a)||i&&("length"==a||m(a,o))||n.push(a);return n}function v(t,e,n){var r=t[e];l.call(t,e)&&y(r,n)&&(void 0!==n||e in t)||(t[e]=n)}function m(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||a.test(t))&&t>-1&&t%1==0&&t<e}function b(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||c)}function y(t,e){return t===e||t!=t&&e!=e}var E=Array.isArray;function w(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!function(t){var e=S(t)?f.call(t):"";return e==o||e==i}(t)}function S(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var I,O=(I=function(t,e){if(_||b(e)||w(e))!function(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],s=r?r(n[a],t[a],a,n,t):void 0;v(n,a,void 0===s?t[a]:s)}}(e,function(t){return w(t)?g(t):function(t){if(!b(t))return p(t);var e=[];for(var n in Object(t))l.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}(e),t);else for(var n in e)l.call(e,n)&&v(t,n,e[n])},function(t,e){return e=h(void 0===e?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=h(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}(t,this,a)}}(function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=I.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!S(n))return!1;var r=typeof e;return!!("number"==r?w(n)&&m(e,n.length):"string"==r&&e in n)&&y(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&I(t,a,n,o)}return t}));t.exports=O},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){void 0===t&&(t=window.location.href);var e=t.indexOf("?"),n=t.indexOf("#");return e<0?{}:t.substring(e+1,n>0?n:void 0).split("&").reduce(function(t,e){var n=e.split("="),r=n[0],o=n[1];return void 0===o?(t[r]=!0,t):(t[r]=o,t)},{})}},function(t,e,n){"use strict";var r=n(10),o=n(41),i=n(58),a=n(42),s=n(8),u=n(24),c=n(27),l=function(t,e){var n=this;if(!(n instanceof l))return new l(t,e);i&&(n=i(new Error(void 0),o(n))),void 0!==e&&s(n,"message",String(e));var r=[];return c(t,r.push,{that:r}),s(n,"errors",r),n};l.prototype=a(Error.prototype,{constructor:u(5,l),message:u(5,""),name:u(5,"AggregateError")}),r({global:!0},{AggregateError:l})},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(13),o=n(7),i=n(33);t.exports=!r&&!o(function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(19),o=n(36);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.7.0",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e,n){var r=n(1);t.exports=r},function(t,e,n){var r=n(5),o=n(25),i=n(103).indexOf,a=n(38);t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(39),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(7),o=/#|\.prototype\./,i=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},function(t,e,n){var r=n(6),o=n(108);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){var r=n(12);t.exports=r("document","documentElement")},function(t,e,n){var r=n(7);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(t,e,n){var r=n(16);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(43),o=n(31),i=n(3)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?n:a?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}},function(t,e,n){var r=n(1);t.exports=r.Promise},function(t,e,n){var r=n(6),o=n(16),i=n(3)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||null==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(1),s=n(7),u=n(61),c=n(59),l=n(33),f=n(66),d=n(45),p=a.location,h=a.setImmediate,_=a.clearImmediate,g=a.process,v=a.MessageChannel,m=a.Dispatch,b=0,y={},E="onreadystatechange",w=function(t){if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},S=function(t){return function(){w(t)}},I=function(t){w(t.data)},O=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};h&&_||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},_=function(t){delete y[t]},d?r=function(t){g.nextTick(S(t))}:m&&m.now?r=function(t){m.now(S(t))}:v&&!f?(i=(o=new v).port2,o.port1.onmessage=I,r=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&p&&"file:"!==p.protocol&&!s(O)?(r=O,a.addEventListener("message",I,!1)):r=E in l("script")?function(t){c.appendChild(l("script"))[E]=function(){c.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}),t.exports={set:h,clear:_}},function(t,e,n){var r=n(67);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},function(t,e,n){var r=n(12);t.exports=r("navigator","userAgent")||""},function(t,e,n){var r=n(6),o=n(11),i=n(21);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var r=n(10),o=n(16),i=n(21),a=n(28),s=n(27);r({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=i.f(e),r=n.resolve,u=n.reject,c=a(function(){var n=o(e.resolve),i=[],a=0,u=1;s(t,function(t){var o=a++,s=!1;i.push(void 0),u++,n.call(e,t).then(function(t){s||(s=!0,i[o]={status:"fulfilled",value:t},--u||r(i))},function(t){s||(s=!0,i[o]={status:"rejected",reason:t},--u||r(i))})}),--u||r(i)});return c.error&&u(c.value),n.promise}})},function(t,e,n){"use strict";var r=n(10),o=n(16),i=n(12),a=n(21),s=n(28),u=n(27),c="No one promise resolved";r({target:"Promise",stat:!0},{any:function(t){var e=this,n=a.f(e),r=n.resolve,l=n.reject,f=s(function(){var n=o(e.resolve),a=[],s=0,f=1,d=!1;u(t,function(t){var o=s++,u=!1;a.push(void 0),f++,n.call(e,t).then(function(t){u||d||(d=!0,r(t))},function(t){u||d||(u=!0,a[o]=t,--f||l(new(i("AggregateError"))(a,c)))})}),--f||l(new(i("AggregateError"))(a,c))});return f.error&&l(f.value),n.promise}})},function(t,e,n){"use strict";var r=n(10),o=n(128),i=n(41),a=n(58),s=n(44),u=n(8),c=n(15),l=n(3),f=n(19),d=n(20),p=n(72),h=p.IteratorPrototype,_=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),v="keys",m="values",b="entries",y=function(){return this};t.exports=function(t,e,n,l,p,E,w){o(n,e,l);var S,I,O,P=function(t){if(t===p&&L)return L;if(!_&&t in A)return A[t];switch(t){case v:case m:case b:return function(){return new n(this,t)}}return function(){return new n(this)}},T=e+" Iterator",C=!1,A=t.prototype,U=A[g]||A["@@iterator"]||p&&A[p],L=!_&&U||P(p),R="Array"==e&&A.entries||U;if(R&&(S=i(R.call(new t)),h!==Object.prototype&&S.next&&(f||i(S)===h||(a?a(S,h):"function"!=typeof S[g]&&u(S,g,y)),s(S,T,!0,!0),f&&(d[T]=y))),p==m&&U&&U.name!==m&&(C=!0,L=function(){return U.call(this)}),f&&!w||A[g]===L||u(A,g,L),d[e]=L,p)if(I={values:P(m),keys:E?L:P(v),entries:P(b)},w)for(O in I)(_||C||!(O in A))&&c(A,O,I[O]);else r({target:e,proto:!0,forced:_||C},I);return I}},function(t,e,n){"use strict";var r,o,i,a=n(41),s=n(8),u=n(5),c=n(3),l=n(19),f=c("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),l||u(r,f)||s(r,f,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getExperiencePreference=e.getDaysDelinquent=e.isDelinquentStatus=e.isSocialUser=e.getNewsletters=e.isLoggedIn=e.isTerminalSubscriber=e.isBWSubscriber=e.isBBGSubscriber=void 0;var o=r(n(4)),i=n(9),a=n(46),s=n(139),u="terminal",c=function(){var t=JSON.parse(o.default.get(i.COLLECTIVE_USER_DATA_COOKIE)||"{}");return t&&t.subscriptionsData?t.subscriptionsData.reduce(function(t,e){var n=e.entitlements;return n&&n.forEach(function(e){return t.add(e)}),t},new Set):new Set};e.isBBGSubscriber=function(){var t=c();return[a.BloombergSubscription.BLOOMBERG_ALL,a.BloombergSubscription.BLOOMBERG_DIGITAL].some(function(e){return t.has(e)})};e.isBWSubscriber=function(){var t=c();return[a.BloombergSubscription.BUSINESSWEEK_DIGITAL,a.BloombergSubscription.BUSINESSWEEK_PRINT,a.BloombergSubscription.BUSINESSWEEK_ZINIO].some(function(e){return t.has(e)})};e.isTerminalSubscriber=function(){var t,e=(t=JSON.parse(o.default.get(i.COLLECTIVE_USER_DATA_COOKIE)||"{}"))&&t.linkedAccounts?t.linkedAccounts.split("|").reduce(function(t,e){return e&&(t[e]=!0),t},{}):null;return Boolean(e&&e[u])};e.isLoggedIn=function(){var t;try{t=JSON.parse(o.default.get(i.COLLECTIVE_USER_DATA_COOKIE))}catch(t){}return!((0,s.isProduction)()||!new URL(window.location.href).searchParams.get("mockSub"))||!!t&&t.status===a.UserStatus.LOGGED_IN};e.getNewsletters=function(){var t;try{t=JSON.parse(o.default.get(i.COLLECTIVE_USER_DATA_COOKIE))}catch(t){}if(!t)return"";var e=t.newsletterIds;return Array.isArray(e)&&0!==e.length?e.join("|"):""};e.isSocialUser=function(){var t;try{t=JSON.parse(o.default.get(i.COLLECTIVE_USER_DATA_COOKIE))}catch(t){}return!!t&&!!t.linkedAccounts};e.isDelinquentStatus=function(){return"true"===localStorage.getItem("isDelinquent")};e.getDaysDelinquent=function(){var t=localStorage.getItem("daysDelinquent");return t&&parseInt(t)||0};e.getExperiencePreference=function(){return o.default.get(i.EXPERIENCE_PREFERENCE_COOKIE_NAME)||"AMER"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["www.bloomberg.com","origin.www.bloomberg.com","origin.blue.bloomberg.com","plutus-ui-prod.cm.bloomberg.com","newsletters-signup.cm.bloomberg.com"];e.default=function(t){try{if(r.includes(t))return"production"}catch(t){return"production"}return"staging"}},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return i});var r=n(76);const o=["ABBA_TARGETS_ENDPOINT","LOG_ENDPOINT","PLUG_SERVICE_ENDPOINT","PLUG_SERVICE_V2_ENDPOINT"];function i(){const e=Object(r.a)(window.location.hostname);o.forEach(n=>{t.env[n]&&t.env[n].includes("staging")&&e&&(t.env[n]=t.env[n].replace("staging",e))})}}).call(this,n(86))},function(t,e,n){"use strict";const r=["red","orange","yellow","green","blue","purple","sandcastle"];e.a=function(t){const e=t.split(".");if(e.length<3||"bloomberg"!==e[2])return;const n=e[1];return-1!==r.indexOf(n)?n:void 0}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return PlugClient});var _utils_logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_utils_getABBAConfig__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(78),_src_utils_userInfoFromCookie__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(18),_utils_outlet__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(23),_utils_recordTemplateRendered__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(79),_utils_isIntrusiveOutlet__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(17),_utils_shouldShow__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(80),_utils_getDefaultDaysAfterLastShown__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(81),_utils_getPlugEndpoint__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(85),_utils_generateLogInfoForTemplate__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(29),_utils_removeOutletContent__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(82),_utils_removeOutlet__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(22),__awaiter=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})},_a;class PlugClientError{constructor(...[t,...e]){this.level=t,this.messages=e}}const performance=(null===(_a=null===window||void 0===window?void 0:window.performance)||void 0===_a?void 0:_a.mark)?window.performance:{mark:()=>({}),measure:()=>({})},toutSort=([,t],[,e])=>e.priority-t.priority;class PlugClient{constructor(t,e){this._cleanupTemplate=t=>{const e=this.activeTemplates[t];e?(Object.entries(e.events).forEach(([t,e])=>{window.removeEventListener(t,e)}),Object(_utils_isIntrusiveOutlet__WEBPACK_IMPORTED_MODULE_5__.a)(e.outlet)?Object(_utils_removeOutlet__WEBPACK_IMPORTED_MODULE_11__.a)(e.outletSelector):Object(_utils_removeOutletContent__WEBPACK_IMPORTED_MODULE_10__.a)(e.outletSelector),delete this.activeTemplates[t]):Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("debug",{templateId:t},"Attempted to cleanup template that isn't active")},this._cleanupActiveTemplates=()=>{Object.keys(this.activeTemplates).map(this._cleanupTemplate)},this.outletSelectorMap=t||{},this.regUIClient=e,this.activeTemplates={}}loadTouts(){var t,e;return __awaiter(this,void 0,void 0,function*(){this._cleanupActiveTemplates();const n=_src_utils_userInfoFromCookie__WEBPACK_IMPORTED_MODULE_2__.a.isLoggedIn(),r=_src_utils_userInfoFromCookie__WEBPACK_IMPORTED_MODULE_2__.a.getSubscriptions().size>0,o=_src_utils_userInfoFromCookie__WEBPACK_IMPORTED_MODULE_2__.a.getNewsletters()||"",i=this.regUIClient.getUserInfo().isDelinquent,a=this.regUIClient.getUserInfo().daysDelinquent,s=_src_utils_userInfoFromCookie__WEBPACK_IMPORTED_MODULE_2__.a.getExperiencePreference()||"",u=_src_utils_userInfoFromCookie__WEBPACK_IMPORTED_MODULE_2__.a.getSubscriberData();performance.mark("PlugClient-Abba-Fetch-Start");const c=yield Object(_utils_getABBAConfig__WEBPACK_IMPORTED_MODULE_1__.a)(Object.assign({registered:n,subscriber:r,newsletters:o,isDelinquent:i,daysDelinquent:a,experienceRegion:s},u));performance.mark("PlugClient-Abba-Fetch-End"),performance.measure("PlugClient-Abba-Fetch","PlugClient-Abba-Fetch-Start","PlugClient-Abba-Fetch-End"),Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("debug",`Config from abba successfully retrieved: ${JSON.stringify(c,null,4)}`),yield this.loadTemplatesFromPlug(c,null!==(e=null===(t=null===window||void 0===window?void 0:window.plugClient)||void 0===t?void 0:t.abba)&&void 0!==e?e:[])})}loadTemplate(templateName,templateConfig){var _a;return __awaiter(this,void 0,void 0,function*(){const{templateId:templateId,renderStrategy:renderStrategyFromAbba,outlet:outletFromAbba,daysAfterLastShown:daysAfterLastShownFromAbba}=templateConfig;if(!templateId)throw new PlugClientError("error",`TemplateID not specified for ${templateName}.`);const debugInfo=Object(_utils_generateLogInfoForTemplate__WEBPACK_IMPORTED_MODULE_9__.a)(templateName,templateConfig),plugScriptsEndpoint=Object(_utils_getPlugEndpoint__WEBPACK_IMPORTED_MODULE_8__.a)(templateId);let scriptResponse;try{scriptResponse=yield window.fetch(plugScriptsEndpoint)}catch(t){throw new PlugClientError("warn",`Failed to retrieve the script from plug-service for the template ${templateId}. Error: `,t)}if(!scriptResponse.ok)throw new PlugClientError("warn",`The plug-service script endpoint did not return a success response for template ${templateId}: ${scriptResponse.status}.`);try{eval(yield scriptResponse.text())}catch(t){throw new PlugClientError("error",`Failed to parse and evaluate the response from plug-service from the template ${templateId}. Error: `,t)}const templateInstance=window._plug&&window._plug[`template-${templateId}`]?window._plug[`template-${templateId}`]:void 0;if(!templateInstance)throw new PlugClientError("error",`Failed to render template ${templateId}. Script from plug-service did not set up window as expected.`);const{outlet:outletFromTemplate,renderStrategy:renderStrategyFromTemplate,isIntrusive:isIntrusive,render:render}=templateInstance;Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("debug",debugInfo,`Received componentJSON from plug for ${templateName}`,{outletFromTemplate:outletFromTemplate,renderStrategyFromTemplate:renderStrategyFromTemplate,isIntrusive:isIntrusive});const outlet=null!=outletFromAbba?outletFromAbba:outletFromTemplate,renderStrategy=null!=renderStrategyFromAbba?renderStrategyFromAbba:renderStrategyFromTemplate,daysAfterLastShown=null!=daysAfterLastShownFromAbba?daysAfterLastShownFromAbba:Object(_utils_getDefaultDaysAfterLastShown__WEBPACK_IMPORTED_MODULE_7__.a)(isIntrusive);if(!Object(_utils_shouldShow__WEBPACK_IMPORTED_MODULE_6__.a)(templateId,templateName))return;const outletSelector=null!==(_a=this.outletSelectorMap[outlet])&&void 0!==_a?_a:Object(_utils_outlet__WEBPACK_IMPORTED_MODULE_3__.b)(outlet);if(!outletSelector)throw new PlugClientError("warn",`Failed to render template ${templateName}. Received unknown outlet: ${outlet}`);if(!Object(_utils_isIntrusiveOutlet__WEBPACK_IMPORTED_MODULE_5__.a)(outlet)&&!document.querySelector(outletSelector))throw new PlugClientError("warn",`Failed to render template ${templateName}. Could not find selector ${outletSelector} which corresponds to outlet ${outlet}`);const onTemplateRendered=t=>__awaiter(this,void 0,void 0,function*(){"modal"===outlet&&(yield Object(_utils_outlet__WEBPACK_IMPORTED_MODULE_3__.a)()),yield Object(_utils_recordTemplateRendered__WEBPACK_IMPORTED_MODULE_4__.a)(templateId,daysAfterLastShown,renderStrategy);const e=t.detail.showTemplate?"Visibly rendered":"Plug render completed, but didn't show ";Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("debug",debugInfo,`${e} template ${templateName} with render strategy ${renderStrategy} in outlet ${outlet}`)});window.addEventListener("plug-render-complete",onTemplateRendered);const activeTemplate={outlet:outlet,outletSelector:outletSelector,events:{"plug-render-complete":onTemplateRendered}},exitIntentRenderFn=()=>__awaiter(this,void 0,void 0,function*(){Object(_utils_outlet__WEBPACK_IMPORTED_MODULE_3__.c)(templateId,outlet,outletSelector),render(outletSelector,templateConfig)});try{switch(renderStrategy){case"none":break;case"on-load":case"on-time-elapsed":Object(_utils_outlet__WEBPACK_IMPORTED_MODULE_3__.c)(templateId,outlet,outletSelector),render(outletSelector,templateConfig);break;case"on-exit-intent":document.body.addEventListener("mouseleave",exitIntentRenderFn,{once:!0}),activeTemplate.events.mouseleave=exitIntentRenderFn;break;default:throw new PlugClientError("error",`Failed to render template ${templateName}. Received unknown render strategy: ${renderStrategy}`)}this.activeTemplates[templateId]=activeTemplate}catch(t){if(t instanceof PlugClientError)throw t;throw new PlugClientError("error",`Failed to render template ${templateName} with render strategy ${renderStrategy} in outlet ${outlet}. Error: `,t)}})}loadTemplatesFromPlug(t,e){var n,r;return __awaiter(this,void 0,void 0,function*(){performance.mark("PlugClient-loadTemplatesFromPlug-Start");const o=null!==(r=null===(n=t.tracking)||void 0===n?void 0:n.sources)&&void 0!==r?r:{},i=e.reduce((e,n)=>{const r=Object.keys(n.config);for(const i of r)i in o&&o[i].targetId===n.targetId&&(e[i]=Object.assign(Object.assign({},t[i]),{targetId:n.targetId,priority:n.priority}));return e},{}),a=Object.entries(i).sort(toutSort).reduce((t,[e,n])=>{var r;let o=n.outlet;if(!o){const r=Object(_utils_generateLogInfoForTemplate__WEBPACK_IMPORTED_MODULE_9__.a)(e,n);return Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("error",r,"Outlet for template is undefined. Template ignored."),t}return Object(_utils_isIntrusiveOutlet__WEBPACK_IMPORTED_MODULE_5__.a)(o)&&(o="intrusive"),(null===(r=t[o])||void 0===r?void 0:r.length)?t[o].push(e):t[o]=[e],t},{}),s=Object.values(a).map(t=>__awaiter(this,void 0,void 0,function*(){for(const[e,n]of t.entries()){const r=i[n],o=Object(_utils_generateLogInfoForTemplate__WEBPACK_IMPORTED_MODULE_9__.a)(n,r);Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("debug",o,`Attempting to render template in outlet ${r.outlet}`);try{return void(yield this.loadTemplate(n,r))}catch(n){n instanceof PlugClientError?Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)(n.level,o,...n.messages):Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("warn",o,"Failed to render template",JSON.stringify(n,Object.getOwnPropertyNames(n))),e!==t.length-1?Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("debug",`Attempting to render template with next highest priority for outlet ${r.outlet}`):Object(_utils_logger__WEBPACK_IMPORTED_MODULE_0__.a)("warn",`All templates failed to render for outlet ${r.outlet}`)}}}));yield Promise.all(s),performance.mark("PlugClient-loadTemplatesFromPlug-End"),performance.measure("PlugClient-loadTemplatesFromPlug","PlugClient-loadTemplatesFromPlug-Start","PlugClient-loadTemplatesFromPlug-End")})}}},function(t,e,n){"use strict";var r=n(0),o=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})};e.a=function(t){return o(this,void 0,void 0,function*(){let e,n;try{n=yield window.__bloomberg__.getAbbaClient(),e=yield n.getConfig("plug-client",t)}catch(t){throw Object(r.a)("warn","Failed to retrieve the config from ABBA. Error: ",t),t}return window.plugClient.abba=n._feeds["plug-client"],e})}},function(t,e,n){"use strict";var r=n(2),o=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})};e.a=function(t,e,n){return o(this,void 0,void 0,function*(){if("none"===n)return;const o=`Plug-${t}-render-after-last-shown`,i=Date.now(),a=new Date(i+Number(e)*r.c).toISOString();window.localStorage.setItem(o,a)})}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(0);function o(t){try{const e=window.localStorage.getItem(t);if(e)return e?new Date(e).getTime():null}catch(e){Object(r.a)("info",`problem reading key ${t} from local storage: `,e)}return null}function i(t,e){const n=`Plug-${t}-render-after-last-closed`,i=`Plug-${t}-render-after-last-cta`,a=o(`Plug-${t}-render-after-last-shown`),s=o(n),u=o(i),c=Date.now();return a&&c<a?(Object(r.a)("info",`Template ${e} has rendered too recently, so this template will not be rendered.`),!1):s&&c<s?(Object(r.a)("info",`Template ${e} has been closed too recently, so this template will not be rendered`),!1):!(u&&c<u)||(Object(r.a)("info",`Template ${e} has had its CTA clicked too recently, so this template will not be rendered.`),!1)}},function(t,e,n){"use strict";function r(t){return!0===t?30:0}n.d(e,"a",function(){return r})},function(t,e,n){"use strict";e.a=function(t){var e,n;const r=document.querySelector(t);if(r){const t=null===(e=r.cloneNode)||void 0===e?void 0:e.call(r);t&&(null===(n=r.replaceWith)||void 0===n||n.call(r,t))}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(87));e.default=o.default},function(t,e,n){t.exports=n(145).default},function(t,e,n){"use strict";const r=["red","orange","yellow","green","blue","purple","sandcastle"];function o(t){const e=function(t){if(!t)return;const e=t.split(".");if(e.length<3||"bloomberg"!==e[2])return;const n=e[1];return r.includes(n)?n:void 0}(window.location.hostname);return"blue"===e&&t.includes("www")?t.replace("www","origin.blue"):"blue"===e&&t.includes("https://login")?t.replace("https://login","https://blue-login"):e&&t.includes("staging")?t.replace("staging",e):t}e.a=function(t){let e;return e=t.toString().match(/[\w-]{10}/)?`https://www.bloomberg.com/plug/api/v2/scripts/${t}.js`:`https://www.bloomberg.com/plug/api/v1/scripts/${t}.js`,o(e)}},function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=s(d);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{return r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function _(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new h(t,e)),1!==c.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=_,o.addListener=_,o.once=_,o.off=_,o.removeListener=_,o.removeAllListeners=_,o.emit=_,o.prependListener=_,o.prependOnceListener=_,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var r,o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)},i=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})},a=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.addParamsToUrl=void 0;var u=s(n(47)),c=s(n(88)),l=s(n(89)),f=s(n(90)),d=n(9),p=s(n(48)),h=s(n(141)),_=n(73),g=s(n(74)),v=s(n(142)),m=n(46),b="data-signed-in",y="data-status",E="data-reg-ui-client-status",w="reg-ui-client",S=w,I="reg-ui-client__iframe-container",O="reg-ui-client__wide-iframe-container",P="reg-ui-client__uverify-iframe-container",T="reg-ui-client__iframe",C=T,A=new RegExp("^https?://([^\\\\/]+\\.)*bloomberg\\.com(:\\d+)?(/|$)","i"),U=((r={})[I]=C,r[O]="reg-ui-client__wide-iframe",r[P]="reg-ui-client__uverify-iframe",r),L="reg-user-info-ready",R="reg-ui-show-pop-up",B="reg-user-verified",x="reg-user-signed-in",D=function(){function t(t,e){void 0===e&&(e={}),this._textElements=[];var n=window.location.hostname,r=e.dismissible,o=e.displayWhenUnauthenticated,i=e.queryParams,a=e.fetchSubMetadata,s=e.activeSubscriptionsOnly,u=void 0!==s&&s,c=e.updatePreferredEmailFlow,p=void 0===c?void 0:c,_=e.applicationCaller,m=(0,h.default)(n),b=e.environment||(0,g.default)(n);this._environment=b,this._applicationCaller=_,("staging"===b&&m||"production"===b&&"blue"===m)&&(this._environment=m);var y=d.URLS_MAP[this._environment]||d.URLS_MAP.production;this._isLoggedIn=!1,this._isTerminalSubscriber=!1,this._isBBGSubscriber=!1,this._isBWSubscriber=!1,this._updatePreferredEmailFlow=p,this._opt=e,this._dismissible=!(!1===r||"false"===r),this._displayWhenUnauthenticated=Boolean(o),this._queryParams=i,this._urls=new l.default(y),this._userInfo=new f.default(this._urls,a,u),this._regApiClient=new v.default(this._urls),this._openedWindowReference=null,this._userInfoEventHandler=null,this._userClickEventHandler=this.__userClickEventHandler.bind(this),this._windowMessageListener=this.__windowMessageListener.bind(this),this._windowSignedInEventListener=this.__windowSignedInEventListener.bind(this),this._disableEscapeHandler=this.__disableEscapeHandler.bind(this),this.__triggerPersonalizationMerge=this.__triggerPersonalizationMerge.bind(this),this.dispatchSignedInEvent=this.dispatchSignedInEvent.bind(this),this.isLoggedIn=this.isLoggedIn.bind(this),this.isTerminalSubscriber=this.isTerminalSubscriber.bind(this),this.isBBGSubscriber=this.isBBGSubscriber.bind(this),this.isBWSubscriber=this.isBWSubscriber.bind(this),this.fetchAbbaUserInfo=this.fetchAbbaUserInfo.bind(this),this._socialLogin=this._socialLogin.bind(this),this.verifyVerificationCode=this.verifyVerificationCode.bind(this),this.sendVerificationEmail=this.sendVerificationEmail.bind(this),this.sendEmailToEloquaAndCpref=this.sendEmailToEloquaAndCpref.bind(this),this.terminalLogin=this.terminalLogin.bind(this),this.getGroupSubsSSOLoginUrl=this.getGroupSubsSSOLoginUrl.bind(this),this.redirectToGroupSubsSSOUrlIfEligible=this.redirectToGroupSubsSSOUrlIfEligible.bind(this),this.googleSignIn=this.googleSignIn.bind(this),this.logoutUser=this.logoutUser.bind(this),this.twitterLogin=this.twitterLogin.bind(this),this.appleLogin=this.appleLogin.bind(this),this.facebookLogin=this.facebookLogin.bind(this),this.addTextElements(t)}return t.prototype.initialize=function(){var t=this;return this._setupMessageListener(),this._setupSignedInEventListener(),this.verifySignInStatus(function(){t._updateLinks()},function(){t._displayWhenUnauthenticated&&t.linkToSignIn()}),this},t.prototype.registerEmail=function(t){return this._regApiClient.registerEmail(t,this._applicationCaller)},t.prototype.verifyVerificationCode=function(t,e,n){return void 0===n&&(n="unknown"),i(this,void 0,void 0,function(){var r,i,s,u;return a(this,function(a){switch(a.label){case 0:return[4,this._regApiClient.verifyVerificationCode(t,e,n,this._applicationCaller)];case 1:return r=a.sent(),i=r.data,(s=r.success)&&i&&(u=o(o({id:null==i?void 0:i.bconnectId},i),{email:t}),(null==i?void 0:i.firstTimeUser)&&!i.isSubscriber&&(0,c.default)(window,B,{user:u}),this.dispatchSignedInEvent({userId:u.id,user:u},n)),[2,{data:i,success:s}]}})})},t.prototype.googleSignIn=function(t){return i(this,void 0,void 0,function(){var e,n,r,o;return a(this,function(i){switch(i.label){case 0:return[4,this._regApiClient.googleSignIn(t,this._applicationCaller)];case 1:return e=i.sent(),n=e.success,r=e.data,n&&r&&(o={firstName:r.firstName,lastName:r.lastName,email:r.email,createTimestamp:r.createTimestamp},this.dispatchSignedInEvent({userId:r.id,user:o},"sign-in-event")),[2,e]}})})},t.prototype.logoutUser=function(){return i(this,void 0,void 0,function(){var t;return a(this,function(e){switch(e.label){case 0:return[4,this._regApiClient.logoutUser(this._applicationCaller)];case 1:return(t=e.sent())&&(window._regUserId=void 0,window._regUserInfo={},this._isLoggedIn=!1,this._isTerminalSubscriber=!1,this._isBBGSubscriber=!1,this._isBWSubscriber=!1),[2,t]}})})},t.prototype.sendVerificationEmail=function(t,e){return this._regApiClient.sendVerificationEmail(t,e,this._applicationCaller)},t.prototype.sendEmailToEloquaAndCpref=function(t,e,n,r,o,i,a){return void 0===n&&(n="unknown"),this._regApiClient.sendEmailToEloquaAndCpref(t,e,n,r,o,i,a,this._applicationCaller)},t.prototype._socialLogin=function(t,e){return void 0===e&&(e="unknown"),i(this,void 0,void 0,function(){var n,r,o;return a(this,function(i){switch(i.label){case 0:return[4,this._regApiClient.socialLogin(t,this._applicationCaller)];case 1:return n=i.sent(),r=n.success,o=n.data,r&&o&&this.dispatchSignedInEvent(o,e),[2,{success:r,data:o}]}})})},t.prototype.terminalLogin=function(t){return void 0===t&&(t="unknown"),this._socialLogin(m.SocialSite.TERMINAL,t)},t.prototype.twitterLogin=function(t){return void 0===t&&(t="unknown"),this._socialLogin(m.SocialSite.TWITTER,t)},t.prototype.appleLogin=function(t){return void 0===t&&(t="unknown"),this._socialLogin(m.SocialSite.APPLE,t)},t.prototype.facebookLogin=function(t){return void 0===t&&(t="unknown"),this._socialLogin(m.SocialSite.FACEBOOK,t)},t.prototype.getGroupSubsSSOLoginUrl=function(t){return this._regApiClient.getGroupSubsSSOLoginUrl(t)},t.prototype.redirectToGroupSubsSSOUrlIfEligible=function(t){return i(this,void 0,void 0,function(){var e,n,r,o,i,s,u,c,l;return a(this,function(a){switch(a.label){case 0:return[4,this.getGroupSubsSSOLoginUrl(t)];case 1:return e=a.sent().data,(n=(void 0===e?{}:e).ssoLoginUrl)&&(r=window.location,o=r.origin,i=r.pathname,s="".concat(o).concat(i),u="".concat(s,"?ssoLoginUrl=").concat(n.replace("https://","")),c="target=".concat(encodeURIComponent(u)),l="RelayState=".concat(encodeURIComponent(u)),window.location.assign("".concat(n).concat(n.includes("?")?"&":"?").concat(c,"&").concat(l))),[2]}})})},t.prototype.verifySignInStatus=function(t,e){var n=this;return this._userInfo.fetchUserInfo(function(r,o){var i="boolean"==typeof o?{}:o;if(k(i),(0,c.default)(window,L,i),i.userId)return"function"==typeof t&&t.call(n,i.userId),void n.dispatchSignedInEvent(i,"already-signed-in");(0,c.default)(window,"reg-user-not-signed-in"),"function"==typeof e&&e.call(n)}),this},t.prototype.removeUserInfoEventHandler=function(){this._userInfoEventHandler&&(window.removeEventListener(L,this._userInfoEventHandler),this._userInfoEventHandler=null)},t.prototype.cleanup=function(){this._windowMessageListener&&(window.removeEventListener("message",this._windowMessageListener),this._windowMessageListener=null),this._windowSignedInEventListener&&(window.removeEventListener(x,this._windowSignedInEventListener),this._windowSignedInEventListener=null),this._userClickEventHandler&&(this.removeTextElements(),this._userClickEventHandler=null),this._disableEscapeHandler&&(window.removeEventListener("keyup",this._disableEscapeHandler),this._disableEscapeHandler=null);var t=document.getElementById(w);t&&(t.removeEventListener("click",this._hidePopup),document.body.removeChild(t)),this.removeUserInfoEventHandler(),this._openedWindowReference&&(this._openedWindowReference=null),t=null},t.prototype.linkToSignIn=function(t,e){void 0===t&&(t=this._queryParams),void 0===e&&(e=this._opt),document.body.setAttribute(E,"load"),this._createPopup(this._urls.getLoginUrl(t),(0,u.default)({uverifyWide:!0,zIndex:t&&t.zIndex?t.zIndex:null},e))},t.prototype.linkToRegister=function(t,e){void 0===t&&(t=this._queryParams),this.linkToUVerify(t,e)},t.prototype.linkToUVerify=function(t,e){void 0===t&&(t=this._queryParams),document.body.setAttribute(E,"load"),this._createPopup(this._urls.getUVerifyUrl(t),(0,u.default)({uverifyWide:!0,zIndex:t&&t.zIndex?t.zIndex:null},e))},t.prototype.linkToTerminalRegister=function(t,e){void 0===t&&(t=this._queryParams),document.body.setAttribute(E,"load"),this._createPopup(this._urls.getTerminalRegisterUrl(t),e)},t.prototype.linkToBwRegister=function(t,e){void 0===t&&(t=this._queryParams),document.body.setAttribute(E,"load"),this._createPopup(this._urls.getBwRegisterUrl(t),e)},t.prototype.linkToBSSO=function(t,e){var n;void 0===t&&(t=this._queryParams);var r=(0,u.default)({newWindow:!0,width:400,height:525,location:"no",windowName:"terminal"},e),i=o({},t);i.updatePreferredEmailFlow||(i.updatePreferredEmailFlow=null!==(n=this._updatePreferredEmailFlow)&&void 0!==n?n:void 0),document.body.setAttribute(E,"load"),this._createPopup(this._urls.getBssoUrl(i),r)},t.prototype.linkToUpdatePreferredEmail=function(t,e){void 0===t&&(t=this._queryParams);var n=(0,u.default)({newWindow:!0,width:400,height:525,location:"no",windowName:"terminal"},e);document.body.setAttribute(E,"load"),this._createPopup(this._urls.getPreferredEmailUIUrl(t),n)},t.prototype.onUserInfoReady=function(t){var e=this;if(window._regUserInfo)t(window._regUserInfo);else{var n=this._userInfoEventHandler||this._bindUserInfoEvent(t);this._userInfoEventHandler=function(t){n(t),e.removeUserInfoEventHandler()},window.addEventListener(L,this._userInfoEventHandler)}},t.prototype.addTextElements=function(t){var e=this,n=function(t){if(t instanceof Element)return!1;return t&&t.length&&t.length>=0}(t)?Array.prototype.slice.call(t):[];return t instanceof Element&&(n=[t]),this._textElements=this._textElements.concat(n),this._textElements.forEach(function(t){t.removeEventListener("click",e._userClickEventHandler),t.addEventListener("click",e._userClickEventHandler)}),window._regUserId&&this._updateLinks(),this},t.prototype.removeTextElements=function(){var t=this;this._textElements.forEach(function(e){e.removeEventListener("click",t._userClickEventHandler)}),this._textElements=[]},t.prototype.refreshUserInfo=function(){return this._userInfo.fetchUserInfo(function(t,e){k(e)},!0),this},t.prototype.refreshUserInfoPromise=function(){return this._userInfo.fetchUserInfo(function(){},!0).then(function(t){return k(t),t})},t.prototype.fetchAbbaUserInfo=function(){return this._userInfo.fetchAbbaUserInfo()},t.prototype.optInToReferralSharing=function(t){var e=this;return this._userInfo.optInToReferralSharing(t,this._applicationCaller).then(function(){return e.refreshUserInfo()})},t.prototype.optOutOfReferralSharing=function(t){var e=this;return void 0===t&&(t=!1),this._userInfo.optOutOfReferralSharing(t,this._applicationCaller).then(function(){return e.refreshUserInfo()})},t.prototype.setPreferredEmail=function(t){var e=this;return this._userInfo.setPreferredEmail(t,this._applicationCaller).then(function(){return e.refreshUserInfo()})},t.prototype.isLoggedIn=function(){var t;return!!(null===(t=window._regUserInfo)||void 0===t?void 0:t.userId)||this._isLoggedIn},t.prototype.isTerminalSubscriber=function(){return this._isTerminalSubscriber},t.prototype.isBBGSubscriber=function(){var t,e;return"BBG"===(null===(e=null===(t=window._regUserInfo)||void 0===t?void 0:t.subscription)||void 0===e?void 0:e.type)||this._isBBGSubscriber},t.prototype.isBWSubscriber=function(){var t,e;return"BW"===(null===(e=null===(t=window._regUserInfo)||void 0===t?void 0:t.subscription)||void 0===e?void 0:e.type)||this._isBWSubscriber},t.prototype._setStateToLoggedIn=function(t){var e=t.userId,n=t.user;e&&(this._updateLinks(),this.refreshUserInfo(),k({userId:e,user:n}),this._isLoggedIn=!0,this._isTerminalSubscriber=(0,_.isTerminalSubscriber)(),this._isBBGSubscriber=(0,_.isBBGSubscriber)(),this._isBWSubscriber=(0,_.isBWSubscriber)())},t.prototype._bindUserInfoEvent=function(t){return function(e){t(e.detail)}},t.prototype._setupMessageListener=function(){window.addEventListener("message",this._windowMessageListener)},t.prototype._setupSignedInEventListener=function(){window.addEventListener(x,this._windowSignedInEventListener)},t.prototype._createPopup=function(t,e){void 0===e&&(e={});var n=!(!1===e.dismissible||"false"===e.dismissible||!this._dismissible);if(n||(t=l.default.appendQueryParams(t,{hideCloseButton:!0})),"production"!==this._environment&&(t=l.default.appendQueryParams(t,{skipGrecaptcha:!0})),e.newWindow){if(document.body.removeAttribute(E),null==this._openedWindowReference||this._openedWindowReference.closed){var r="width=".concat(e.width,",height=").concat(e.height,",location=").concat(e.location);return void(this._openedWindowReference=window.open(t,e.windowName||"sign_in",r))}this._openedWindowReference.focus()}else{var o=e.v4,i=void 0!==o&&o,a=e.zIndex,s=void 0===a?null:a,u=e.uverifyWide,f=void 0!==u&&u,d=document.getElementById(w),p=document.getElementById(T);if(d){if((null==p?void 0:p.getAttribute("src"))===t)return document.body.setAttribute(E,"show"),d.setAttribute(y,"show"),void(0,c.default)(window,R);document.body.removeChild(d)}var h=i&&!f?O:f?P:I,_=this._generatePopupContent(t,h,s);document.body.appendChild(_),this._showPopupAfterIframeHeightRefresh(),n?_.addEventListener("click",this._hidePopup):document.addEventListener("keyup",this._disableEscapeHandler)}},t.prototype._generatePopupContent=function(t,e,n){void 0===e&&(e=I),void 0===n&&(n=null);var r=n?"z-index: ".concat(n):null,o='<div class="'.concat(e,'">\n <iframe id="').concat(T,'" class="').concat(U[e]||C,'" src="').concat(t,'" frameborder="0"></iframe></div>'),i=document.createElement("div");return i.setAttribute("class",S),i.setAttribute("id",w),r&&i.setAttribute("style",r),i.innerHTML=o,i},t.prototype._hidePopup=function(t){var e;t&&t.stopPropagation(),document.body.removeAttribute(E);var n=document.getElementById(w);(0,c.default)(window,"reg-ui-close-pop-up"),n&&n.removeAttribute(y),(null===(e=document.activeElement)||void 0===e?void 0:e.blur)&&document.activeElement.blur()},t.prototype._updateLinks=function(){this._textElements.forEach(function(t){t.setAttribute(b,"true")})},t.prototype.__userClickEventHandler=function(e){e.preventDefault();var n=e.target;if(!("true"===(null==n?void 0:n.getAttribute(b))))return this.linkToSignIn();t.goToUrl(this._urls.getSettingsUrl())},t.prototype.__disableEscapeHandler=function(t){("Escape"===t.key||27===(t.keyCode||t.which))&&t.preventDefault()},t.prototype._showPopupAfterIframeHeightRefresh=function(){var t=document.getElementById(w),e=document.getElementById(T);t&&e?e.addEventListener("load",function(){e.style.height=e.scrollHeight.toString(),document.body.setAttribute(E,"show"),t.setAttribute(y,"show"),(0,c.default)(window,R)}):document.body.removeAttribute(E)},t.prototype.__windowMessageListener=function(e){var n,r=e.origin||(null===(n=e.originalEvent)||void 0===n?void 0:n.origin);if(t.isWhiteListedDomain(r||"")){var o=e.data;switch(o.type){case"REG-HIDE-POPUP":case"REG-USER-HIDE-POPUP":this._hidePopup();break;case"REG-USER-SIGNED-IN":this._setStateToLoggedIn(o),this.dispatchSignedInEvent(o,"sign-in-event");break;case"REG-USER-REGISTERED":(0,c.default)(window,"reg-user-registered",o);break;case"REG-USER-VERIFIED":(0,c.default)(window,B,o)}}},t.prototype.__windowSignedInEventListener=function(t){var e=t.detail;this._setStateToLoggedIn(e)},t.prototype.__triggerPersonalizationMerge=function(){var t,e=this._userInfo.eventDetailsFromExistingCookies(),n=e.agentId,r=e.sessionId,o=e.sessionKey,i=e.userId,a=this._urls.getPersonalizationTrackingPixelSrc(((t={}).agent_id=n||"",t.session_id=r||"",t.session_key=o||"",t.breg=i||"",t.referrer=document.referrer.replace("&","---"),t));document.createElement("img").setAttribute("src",a)},t.prototype.dispatchSignedInEvent=function(t,e){var n=t.userId,r=t.user;n&&(this._setStateToLoggedIn({userId:n,user:r}),this.__triggerPersonalizationMerge(),window._regUserId!==n?((0,c.default)(window,x,{source:e,userId:n,user:r,isTerminalSubscriber:this._isTerminalSubscriber,isBBGSubscriber:this._isBBGSubscriber,isBWSubscriber:this._isBWSubscriber}),window._regUserId=n):(0,c.default)(window,"reg-user-repeated-sign-in",{source:e,userId:n,user:r,isTerminalSubscriber:this._isTerminalSubscriber,isBBGSubscriber:this._isBBGSubscriber,isBWSubscriber:this._isBWSubscriber}))},t.prototype.getUserInfo=function(){return o(o({},window._regUserInfo||{}),{isDelinquent:"true"===localStorage.getItem("isDelinquent"),daysDelinquent:(0,_.getDaysDelinquent)()})},t.isWhiteListedDomain=function(t){return A.test(t)},t.goToUrl=function(t){window.location.href=t},t}();function M(t,e){void 0===t&&(t=document.location.href),void 0===e&&(e={});var n=(0,u.default)({},(0,p.default)(t),e),r=Object.keys(n).reduce(function(t,e){return t+=""===t?"?":"&",t+="".concat(e,"=").concat(n[e])},""),o=t.indexOf("#"),i=t.indexOf("?")>0?t.split("?")[0]:t.split("#")[0],a="".concat(i).concat(r).concat(o>0?t.substring(o):"");window.history.replaceState({},"",a)}function k(t){void 0===t&&(t={});var e=window._regUserInfo||{},n=t.subscriptionType?{type:t.subscriptionType,number:t.subscriptionNumber,endDate:t.subscriptionEndDate}:null;window._regUserInfo={agentId:t.agentId||e.agentId,sessionId:t.sessionId||e.sessionId,sessionKey:t.sessionKey||e.sessionKey,userId:t.userId||e.userId,user:t.user||e.user,subscription:n||e.subscription},window._regUserInfo.user&&window._regUserInfo.user.referralToken&&M(document.location.href,{sref:window._regUserInfo.user.referralToken})}e.addParamsToUrl=M,e.default=D},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){if(t&&e)try{new t.CustomEvent("test")}catch(r){var n=function(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=e.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r};n.prototype=t.Event.prototype,t.CustomEvent=n}}("undefined"!=typeof window?window:null,"undefined"!=typeof document?document:null),e.default=function(t,e,n){void 0===t&&(t=window),void 0===n&&(n={});var r=new window.CustomEvent(e,{detail:n});t.dispatchEvent(r)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=r(n(48)),a=/([^:]\/)\/+/g,s=function(){function t(t){var e=t.baseUrl,n=t.apiBaseUrl,r=t.personalizationBaseUrl;this._baseUrl=e,this._apiBaseUrl=n,this._personalizationBaseUrl=r,this._config=t}return t.prototype._constructPath=function(e,n,r){void 0===r&&(r=this._baseUrl);var o="".concat(r).concat(e).replace(a,"$1");return t.appendQueryParams(o,n)},t.prototype.getLoginUrl=function(t){var e=this._config.loginUrl;return this._constructPath(e,t)},t.prototype.getLogoutUrl=function(t){var e=this._config.logoutUrl;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getRegisterUrl=function(t){var e=this._config.registerUrl;return this._constructPath(e,t)},t.prototype.getUVerifyUrl=function(t){var e=this._config.uverifyUrl;return this._constructPath(e,t)},t.prototype.getTerminalRegisterUrl=function(t){var e=this._config.terminalRegisterUrl;return this._constructPath(e,t)},t.prototype.getBwRegisterUrl=function(t){var e=this._config.bwRegisterUrl;return this._constructPath(e,t)},t.prototype.getSettingsUrl=function(t){var e=this._config.settingsUrl;return this._constructPath(e,t)},t.prototype.getUserInfoUrl=function(t){var e=this._config.userInfoUrl;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getBssoUrl=function(t){var e=this._config.bssoUrl;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getPreferredEmailUIUrl=function(t){var e=this._config.preferredEmailUIPath;return this._constructPath(e,t)},t.prototype.getOptInToReferralsUrl=function(t){var e=this._config.optInToReferralsUrl;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getOptOutFromReferralsUrl=function(t){var e=this._config.optOutFromReferralsUrl;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.setPreferredEmailUrl=function(t){var e=this._config.preferredEmailPath;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getVerifyVerificationCodePath=function(t){var e=this._config.verifyVerificationCodePath;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getRegisterPath=function(t){var e=this._config.registerPath;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getSendVerificationEmailPath=function(t){var e=this._config.sendVerificationEmailPath;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getSendEmailToEloquaAndCprefPath=function(t){var e=this._config.sendEmailToEloquaAndCprefPath;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getUserSignInPath=function(t){var e=this._config.userSignInPath;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getGroupSubsSSOLoginPath=function(t){var e=this._config.groupSubsSSOLoginPath;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getPersonalizationTrackingPixelSrc=function(t){var e=this._config.trackingPixelSrc;return this._constructPath(e,t,this._personalizationBaseUrl)},t.prototype.getGoogleAuthPath=function(t){var e=this._config.googleAuthPath;return this._constructPath(e,t,this._apiBaseUrl)},t.prototype.getSocialSignInPath=function(t,e){var n=this._config.socialSignInPath;return this._constructPath(n.replace(o.SOCIAL_SITE_PLACEHOLDER,t),e,this._apiBaseUrl)},t.appendQueryParams=function(e,n){if(!n||"object"!=typeof n)return e;var r=Object.keys(n).filter(function(t){return void 0!==n[t]&&null!==n[t]});if(0===r.length)return e;for(var o=-1,a=(0,i.default)(e),s=0;s<r.length;++s)if(void 0===a[r[s]]){o=s;break}if(-1===o)return e;var u=e.includes("?")?"&":"?",c=e+u+t.constructKeyValuePair(r[o],n[r[o]].toString());for(s=o+1;s<r.length;++s)void 0===a[r[s]]&&(c+="&"+t.constructKeyValuePair(r[s],n[r[s]].toString()));return c},t.constructKeyValuePair=function(t,e){return t+"="+encodeURIComponent(e)},t}();e.default=s},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=s(n(4)),c=s(n(91)),l=a(n(92));n(93),n(137);var f=n(9),d=n(73),p=s(n(140));function h(t){try{return JSON.parse(decodeURIComponent(t))}catch(t){return null}}function _(){try{return JSON.parse(u.default.get(f.COLLECTIVE_USER_DATA_COOKIE)||"{}").subscriberData}catch(t){return null}}var g=function(){function t(t,e,n){this._fetchSubMetadata=!!e,this._activeSubscriptionsOnly=Boolean(n),this._userInfoUrl=t.getUserInfoUrl({withSubscriberData:this._fetchSubMetadata,activeSubscriptionsOnly:this._activeSubscriptionsOnly}),this._optInUrl=t.getOptInToReferralsUrl(),this._optOutUrl=t.getOptOutFromReferralsUrl(),this._preferredEmailUrl=t.setPreferredEmailUrl()}return t.prototype.fetchUserInfo=function(e,n){return void 0===n&&(n=!1),this._fetchUserInfo(e,n).then(function(e){if(!e||t.isOnBbgComSite())return e;var n=e.userId,r=e.user,o=e.sessionId,i=e.sessionKey,a=e.agentId,s=(0,c.default)();return u.default.set(f.AGENT_ID,a||"",{expires:s}),u.default.set(f.SESSION_ID,o||"",{expires:s}),u.default.set(f.SESSION_KEY,i||"",{expires:s}),n&&u.default.set(f.BREG_USER_ID_COOKIE_NAME,n,{expires:s}),r&&u.default.set(f.BREG_USER_COOKIE_NAME,encodeURIComponent(JSON.stringify(r)),{expires:s}),e})},t.prototype.fetchAbbaUserInfo=function(){return r(r({},_()),{registered:(0,d.isLoggedIn)(),subscriber:(0,d.isBWSubscriber)()||(0,d.isTerminalSubscriber)()||(0,d.isBBGSubscriber)(),newsletters:(0,d.getNewsletters)(),socialAccount:(0,d.isSocialUser)(),isDelinquent:(0,d.isDelinquentStatus)(),experienceRegion:(0,d.getExperiencePreference)(),daysDelinquent:(0,d.getDaysDelinquent)()})},t.prototype.optInToReferralSharing=function(t,e){return this._fetchFromRegAPI(this._optInUrl,{method:"PUT",body:{productRatePlanId:t},applicationCaller:e})},t.prototype.optOutOfReferralSharing=function(t,e){return this._fetchFromRegAPI(this._optOutUrl,{method:"PUT",body:{defaulted:t},applicationCaller:e})},t.prototype.setPreferredEmail=function(t,e){return this._fetchFromRegAPI(this._preferredEmailUrl,{method:"PUT",body:{preferredEmail:t},applicationCaller:e})},t.prototype._fetchUserInfo=function(e,n){var r=this,o=!n&&!!u.default.get(f.SUBSCRIPTION_REFRESH_COOKIE_NAME),i=!!u.default.get(f.COLLECTIVE_USER_DATA_COOKIE)&&!!u.default.get(f.BREG_USER_COOKIE_NAME),a=_(),s=null==a?void 0:a.introPeriodStatus,c=(0,l.default)(),d=this._fetchSubMetadata&&!s;return t.isFetchInProgress()&&!this._fetchSubMetadata?Promise.resolve({}):o&&i&&c&&!d?Promise.resolve().then(function(){var t=r.eventDetailsFromExistingCookies();return e(null,t),t}):(t.lock(),this._fetchFromRegAPI(this._userInfoUrl,{method:"GET"},!0).then(function(n){var r=n[0],o=n[1];t.unlock(),401===o&&p.default.trackInvoluntaryLogout();var i=r.isDelinquent,a=r.daysDelinquent;return localStorage.setItem("isDelinquent",i),localStorage.setItem("daysDelinquent",a),(0,l.writeLastKnownInformation)(r),e(void 0,r),r}).catch(function(t){e(t,!1)}))},t.prototype.eventDetailsFromExistingCookies=function(){var t,e,n,r=u.default.get(f.AGENT_ID),o=u.default.get(f.SESSION_ID),i=u.default.get(f.SESSION_KEY),a=u.default.get(f.BREG_USER_ID_COOKIE_NAME),s=u.default.get(f.BREG_USER_COOKIE_NAME);try{var c=JSON.parse(u.default.get(f.COLLECTIVE_USER_DATA_COOKIE)||"{}");(null===(t=c.subscriptionsData)||void 0===t?void 0:t.some(function(t){return"BBG"===t.product}))?n="BBG":(null===(e=c.subscriptionsData)||void 0===e?void 0:e.some(function(t){return"BW"===t.product}))&&(n="BW")}catch(t){}return{agentId:r,sessionId:o,sessionKey:i,userId:a,user:s?h(s):null,subscriptionType:n}},t.prototype._fetchFromRegAPI=function(e,n,o){void 0===o&&(o=!1);var i=u.default.get(f.CSRF_TOKEN_COOKIE_NAME),a={method:n.method,headers:r({Accept:"application/json","Content-Type":"application/json"},n.applicationCaller?{"x-application-caller":n.applicationCaller}:{}),credentials:"include"};return i&&(a.headers=r(r({},a.headers),{"x-csrf-token":i})),n.body&&(a.body=JSON.stringify(n.body)),o?t.fetch(e,a).then(function(t){return Promise.all([t.json(),t.status])}):t.fetch(e,a).then(function(t){return t.json()})},t.lock=function(){window.__regUIFetchInProgress=!0},t.unlock=function(){window.__regUIFetchInProgress=!1},t.isFetchInProgress=function(){return window.__regUIFetchInProgress||!1},t.isOnBbgComSite=function(){return f.BBGCOM_SITE_REGEX.test(window.location.hostname)},t.fetch=function(t,e){return fetch(t,e)},t}();e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=new Date;return t.setFullYear(t.getFullYear()+1),t}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.writeLastKnownInformation=void 0;var o=r(n(4)),i=n(9);e.writeLastKnownInformation=function(t){var e=t.userId,n=t.subscriptionType,r=!!e,o="BBG"===n,i="BW"===n;try{localStorage.setItem("lastKnownUserInfo",JSON.stringify({isSignedIn:r,isBBGSubscriber:o,isBWSubscriber:i}))}catch(t){}},e.default=function(){var t,e,n=o.default.get(i.COLLECTIVE_USER_DATA_COOKIE),r=o.default.get(i.BREG_USER_ID_COOKIE_NAME),a=o.default.get(i.BREG_USER_COOKIE_NAME);if(!n)return!1;try{var s=function(){try{return JSON.parse(localStorage.getItem("lastKnownUserInfo")||"{}")}catch(t){return{}}}(),u=JSON.parse(n),c=s.isSignedIn===Boolean("logged_in"===u.status&&r&&a),l=s.isBBGSubscriber===!!(null===(t=null==u?void 0:u.subscriptionsData)||void 0===t?void 0:t.some(function(t){return"BBG"===t.product})),f=s.isBWSubscriber===!!(null===(e=null==u?void 0:u.subscriptionsData)||void 0===e?void 0:e.some(function(t){return"BW"===t.product}));return c&&l&&f}catch(t){return!1}}},function(t,e,n){"use strict";if("undefined"!=typeof window){var r=n(94);window.Promise=window.Promise?window.Promise:r}},function(t,e,n){var r=n(95);n(133),n(134),n(135),n(136),t.exports=r},function(t,e,n){n(49),n(115),n(117),n(69),n(70),n(125),n(126),n(129);var r=n(54);t.exports=r.Promise},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},function(t,e,n){var r=n(7),o=n(31),i="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(1),o=n(35),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,n){var r=n(5),o=n(101),i=n(30),a=n(14);t.exports=function(t,e){for(var n=o(e),s=a.f,u=i.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},function(t,e,n){var r=n(12),o=n(102),i=n(105),a=n(6);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(55),o=n(40).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(25),o=n(56),i=n(104),a=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){var r=n(39),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(32);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(7);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,n){var r=n(11);t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,n){var r=n(13),o=n(14),i=n(6),a=n(110);t.exports=r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),s=r.length,u=0;s>u;)o.f(t,n=r[u++],e[n]);return t}},function(t,e,n){var r=n(55),o=n(40);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(3),o=n(20),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},function(t,e,n){var r=n(60);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var r=n(62),o=n(20),i=n(3)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(6);t.exports=function(t){var e=t.return;if(void 0!==e)return r(e.call(t)).value}},function(t,e,n){var r=n(43),o=n(15),i=n(116);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,n){"use strict";var r=n(43),o=n(62);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){"use strict";var r,o,i,a,s=n(10),u=n(19),c=n(1),l=n(12),f=n(63),d=n(15),p=n(118),h=n(44),_=n(119),g=n(11),v=n(16),m=n(120),b=n(35),y=n(27),E=n(121),w=n(64),S=n(65).set,I=n(122),O=n(68),P=n(123),T=n(21),C=n(28),A=n(26),U=n(57),L=n(3),R=n(45),B=n(124),x=L("species"),D="Promise",M=A.get,k=A.set,j=A.getterFor(D),N=f,F=c.TypeError,K=c.document,G=c.process,W=l("fetch"),q=T.f,V=q,H=!!(K&&K.createEvent&&c.dispatchEvent),$="function"==typeof PromiseRejectionEvent,z="unhandledrejection",J=U(D,function(){if(!(b(N)!==String(N))){if(66===B)return!0;if(!R&&!$)return!0}if(u&&!N.prototype.finally)return!0;if(B>=51&&/native code/.test(N))return!1;var t=N.resolve(1),e=function(t){t(function(){},function(){})};return(t.constructor={})[x]=e,!(t.then(function(){})instanceof e)}),Y=J||!E(function(t){N.all(t).catch(function(){})}),X=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},Q=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;I(function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var a,s,u,c=n[i++],l=o?c.ok:c.fail,f=c.resolve,d=c.reject,p=c.domain;try{l?(o||(2===t.rejection&&nt(t),t.rejection=1),!0===l?a=r:(p&&p.enter(),a=l(r),p&&(p.exit(),u=!0)),a===c.promise?d(F("Promise-chain cycle")):(s=X(a))?s.call(a,f,d):f(a)):d(r)}catch(t){p&&!u&&p.exit(),d(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&tt(t)})}},Z=function(t,e,n){var r,o;H?((r=K.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!$&&(o=c["on"+t])?o(r):t===z&&P("Unhandled promise rejection",n)},tt=function(t){S.call(c,function(){var e,n=t.facade,r=t.value;if(et(t)&&(e=C(function(){R?G.emit("unhandledRejection",r,n):Z(z,n,r)}),t.rejection=R||et(t)?2:1,e.error))throw e.value})},et=function(t){return 1!==t.rejection&&!t.parent},nt=function(t){S.call(c,function(){var e=t.facade;R?G.emit("rejectionHandled",e):Z("rejectionhandled",e,t.value)})},rt=function(t,e,n){return function(r){t(e,r,n)}},ot=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Q(t,!0))},it=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw F("Promise can't be resolved itself");var r=X(e);r?I(function(){var n={done:!1};try{r.call(e,rt(it,n,t),rt(ot,n,t))}catch(e){ot(n,e,t)}}):(t.value=e,t.state=1,Q(t,!1))}catch(e){ot({done:!1},e,t)}}};J&&(N=function(t){m(this,N,D),v(t),r.call(this);var e=M(this);try{t(rt(it,e),rt(ot,e))}catch(t){ot(e,t)}},(r=function(t){k(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=p(N.prototype,{then:function(t,e){var n=j(this),r=q(w(this,N));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=R?G.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Q(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=M(t);this.promise=t,this.resolve=rt(it,e),this.reject=rt(ot,e)},T.f=q=function(t){return t===N||t===i?new o(t):V(t)},u||"function"!=typeof f||(a=f.prototype.then,d(f.prototype,"then",function(t,e){var n=this;return new N(function(t,e){a.call(n,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof W&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return O(N,W.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:J},{Promise:N}),h(N,D,!1,!0),_(D),i=l(D),s({target:D,stat:!0,forced:J},{reject:function(t){var e=q(this);return e.reject.call(void 0,t),e.promise}}),s({target:D,stat:!0,forced:u||J},{resolve:function(t){return O(u&&this===i?N:this,t)}}),s({target:D,stat:!0,forced:Y},{all:function(t){var e=this,n=q(e),r=n.resolve,o=n.reject,i=C(function(){var n=v(e.resolve),i=[],a=0,s=1;y(t,function(t){var u=a++,c=!1;i.push(void 0),s++,n.call(e,t).then(function(t){c||(c=!0,i[u]=t,--s||r(i))},o)}),--s||r(i)});return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=q(e),r=n.reject,o=C(function(){var o=v(e.resolve);y(t,function(t){o.call(e,t).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},function(t,e,n){var r=n(15);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(12),o=n(14),i=n(3),a=n(13),s=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){var r=n(3)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,e,n){var r,o,i,a,s,u,c,l,f=n(1),d=n(30).f,p=n(65).set,h=n(66),_=n(45),g=f.MutationObserver||f.WebKitMutationObserver,v=f.document,m=f.process,b=f.Promise,y=d(f,"queueMicrotask"),E=y&&y.value;E||(r=function(){var t,e;for(_&&(t=m.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},!h&&!_&&g&&v?(s=!0,u=v.createTextNode(""),new g(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),l=c.then,a=function(){l.call(c,r)}):a=_?function(){m.nextTick(r)}:function(){p.call(f,r)}),t.exports=E||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},function(t,e,n){var r=n(1);t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},function(t,e,n){var r,o,i=n(1),a=n(67),s=i.process,u=s&&s.versions,c=u&&u.v8;c?o=(r=c.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),t.exports=o&&+o},function(t,e,n){"use strict";var r=n(10),o=n(19),i=n(63),a=n(7),s=n(12),u=n(64),c=n(68),l=n(15);r({target:"Promise",proto:!0,real:!0,forced:!!i&&a(function(){i.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=u(this,s("Promise")),n="function"==typeof t;return this.then(n?function(n){return c(e,t()).then(function(){return n})}:t,n?function(n){return c(e,t()).then(function(){throw n})}:t)}}),o||"function"!=typeof i||i.prototype.finally||l(i.prototype,"finally",s("Promise").prototype.finally)},function(t,e,n){"use strict";var r=n(127).charAt,o=n(26),i=n(71),a="String Iterator",s=o.set,u=o.getterFor(a);i(String,"String",function(t){s(this,{type:a,string:String(t),index:0})},function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(39),o=n(32),i=function(t){return function(e,n){var i,a,s=String(o(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):i:t?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,e,n){"use strict";var r=n(72).IteratorPrototype,o=n(42),i=n(24),a=n(44),s=n(20),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,c,!1,!0),s[c]=u,t}},function(t,e,n){var r=n(1),o=n(130),i=n(131),a=n(8),s=n(3),u=s("iterator"),c=s("toStringTag"),l=i.values;for(var f in o){var d=r[f],p=d&&d.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(t){p[u]=l}if(p[c]||a(p,c,f),o[f])for(var h in i)if(p[h]!==i[h])try{a(p,h,i[h])}catch(t){p[h]=i[h]}}}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,n){"use strict";var r=n(25),o=n(132),i=n(20),a=n(26),s=n(71),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})},function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e,n){var r=n(3),o=n(42),i=n(14),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){n(49)},function(t,e,n){n(69)},function(t,e,n){"use strict";var r=n(10),o=n(21),i=n(28);r({target:"Promise",stat:!0},{try:function(t){var e=o.f(this),n=i(t);return(n.error?e.reject:e.resolve)(n.value),e.promise}})},function(t,e,n){n(70)},function(t,e,n){"use strict";"undefined"!=typeof window&&n(138)},function(t,e){!function(t){"use strict";if(!t.fetch){var e="URLSearchParams"in t,n="Symbol"in t&&"iterator"in Symbol,r="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),o="FormData"in t,i="ArrayBuffer"in t;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(t){return t&&DataView.prototype.isPrototypeOf(t)},u=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};h.prototype.append=function(t,e){t=f(t),e=d(e);var n=this.map[t];this.map[t]=n?n+","+e:e},h.prototype.delete=function(t){delete this.map[f(t)]},h.prototype.get=function(t){return t=f(t),this.has(t)?this.map[t]:null},h.prototype.has=function(t){return this.map.hasOwnProperty(f(t))},h.prototype.set=function(t,e){this.map[f(t)]=d(e)},h.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},h.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),p(t)},h.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),p(t)},h.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),p(t)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var c=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},b.call(y.prototype),b.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},w.error=function(){var t=new w(null,{status:0,statusText:""});return t.type="error",t};var l=[301,302,303,307,308];w.redirect=function(t,e){if(-1===l.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:t}})},t.Headers=h,t.Request=y,t.Response=w,t.fetch=function(t,e){return new Promise(function(n,o){var i=new y(t,e),a=new XMLHttpRequest;a.onload=function(){var t,e,r={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new h,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}}),e)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new w(o,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})},t.fetch.polyfill=!0}function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function d(t){return"string"!=typeof t&&(t=String(t)),t}function p(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function h(t){this.map={},t instanceof h?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 _(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function g(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function v(t){var e=new FileReader,n=g(e);return e.readAsArrayBuffer(t),n}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(r&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(o&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(i&&r&&s(t))this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(t)&&!u(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=m(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&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var t=_(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)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?_(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var t,e,n,r=_(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=g(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}function y(t,e){var n,r,o=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new h(t.headers)),this.method=t.method,this.mode=t.mode,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new h(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),c.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function E(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function w(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 h(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!=typeof self?self:this)},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isProduction=void 0;var o=r(n(74));e.isProduction=function(){var t=window.location.hostname;return"production"===(0,o.default)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={pushToDatalayer:function(t){window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)},trackInvoluntaryLogout:function(){this.pushToDatalayer({event:"involuntary_logout",eventCategory:"login",eventAction:"logout",eventLabel:"forced-logout"})}};e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["red","orange","yellow","green","blue","purple","sandcastle"];e.default=function(t){var e=t.split(".");if(!(e.length<3||"bloomberg"!==e[2])){var n=e[1];return-1!==r.indexOf(n)?n:void 0}}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(143),s=i(n(144)),u=function(t){var e=this;this.registerEmail=function(t,n){return(0,a.makeRequest)(e.registerPath,"POST",{email:t,notify:!1},n)},this.verifyVerificationCode=function(t,n,r,o){return(0,a.makeRequest)(e.verifyVerificationCodePath,"POST",{email:t,token:n,leadSource:r},o)},this.sendVerificationEmail=function(t,n,r){return(0,a.makeRequest)(e.sendVerificationEmailPath,"POST",{email:t,optIn:n,setPasswordVerification:!1},r)},this.sendEmailToEloquaAndCpref=function(t,n,r,o,i,s,u,c){return(0,a.makeRequest)(e.sendEmailToEloquaAndCprefPath,"POST",{email:t,bconnectId:n,leadSource:r,setStatusUnverified:o,firstName:i,lastName:s,brand:u},c)},this.socialLogin=function(t,n){return r(e,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.socialSignIn.login(t,n)];case 1:return e.sent(),[2,(0,a.makeRequest)("".concat(this.userSignInPath,"/").concat(t),"POST")]}})})},this.getGroupSubsSSOLoginUrl=function(t){return(0,a.makeRequest)("".concat(e.groupSubsSSOLoginPath,"/").concat(t),"GET")},this.googleSignIn=function(t,n){return(0,a.makeRequest)(e.googleAuthPath,"POST",{credential:t},n)},this.logoutUser=function(t){return r(e,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,(0,a.makeRequest)(this.logoutUrl,"POST",{},t)];case 1:return[2,e.sent().success]}})})},this.registerPath=t.getRegisterPath(),this.sendVerificationEmailPath=t.getSendVerificationEmailPath(),this.sendEmailToEloquaAndCprefPath=t.getSendEmailToEloquaAndCprefPath(),this.verifyVerificationCodePath=t.getVerifyVerificationCodePath(),this.userSignInPath=t.getUserSignInPath(),this.groupSubsSSOLoginPath=t.getGroupSubsSSOLoginPath(),this.googleAuthPath=t.getGoogleAuthPath(),this.logoutUrl=t.getLogoutUrl(),this.socialSignIn=new s.default(t)};e.default=u},function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.makeRequest=void 0;var s=a(n(4)),u=n(9);e.makeRequest=function(t,e,n,a){return o(void 0,void 0,void 0,function(){var o,c,l;return i(this,function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),o=s.default.get(u.CSRF_TOKEN_COOKIE_NAME),[4,fetch(t,{method:e,credentials:"include",headers:r(r({Accept:"application/json","Content-Type":"application/json"},a?{"x-application-caller":a}:{}),o?{"x-csrf-token":o}:{}),body:n&&JSON.stringify(n)})];case 1:return c=i.sent(),l={success:c.ok},[4,c.json()];case 2:return[2,(l.data=i.sent(),l)];case 3:return[2,{success:!1,error:i.sent()}];case 4:return[2]}})})}},function(t,e,n){"use strict";var r,o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(46),a=o(n(4)),s=n(9),u=((r={})[i.SocialSite.FACEBOOK]=s.FACEBOOK_ACCESS_TOKEN_FLAG_COOKIE_NAME,r[i.SocialSite.TWITTER]=s.TWITTER_TOKEN_FLAG_COOKIE_NAME,r[i.SocialSite.APPLE]=s.APPLE_AUTH_INFO_FLAG_COOKIE_NAME,r[i.SocialSite.TERMINAL]=s.BSSO_ACCESS_TOKEN_FLAG_COOKIE_NAME,r),c=function(){function t(t){this.urlBuilder=t,this._timers={},this.urlBuilder=t}return t.prototype.login=function(t,e){var n=this;return new Promise(function(r,o){var i=n._timers[t];window.clearInterval(i);var a=f(t,n.urlBuilder,e),s=window.setInterval(function(){if(l(t)){try{a&&a.close()}catch(t){console.log("Failed to clear login window with error: ",t),o(t)}window.clearInterval(s),r()}},500);n._timers[t]=s})},t}(),l=function(t){return Boolean(a.default.get(u[t]))},f=function(t,e,n){switch(t){case i.SocialSite.FACEBOOK:case i.SocialSite.APPLE:return d(e.getSocialSignInPath(t,{applicationCaller:n}),t,"width=1000,height=680");case i.SocialSite.TWITTER:return d(e.getSocialSignInPath(t,{applicationCaller:n}),t,"width=500,height=500");case i.SocialSite.TERMINAL:return d(e.getBssoUrl({applicationCaller:n}),t,"width=400,height=525,location=no");default:throw new Error("Unknown social site: ".concat(t))}},d=function(t,e,n){return window.open(t,e,n)};e.default=c},function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){var e=document.cookie.match("(^|;) ?".concat(t,"=([^;$]*)"));return e?e[2]:""}function o(t,e){return-1!==t.indexOf(e)}function i(t){window.__tcfapi("removeEventListener",2,function(e){e||console.warn("[ms.consent] Failed to remove __tcfapi event listener",t)},t)}function a(){return o(r("bbgconsentstring"),"req1")}function s(){return o(r("bbgconsentstring"),"fun1")}function u(){return o(r("bbgconsentstring"),"pad1")}n.r(e),e.default={waitForUserConsent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(e,n){if(!window.__tcfapi||!window.__uspapi)return console.error("[ms.consent] Please make sure __tcfapi and __uspapi are setup"),n(new Error("__tcfapi and __uspapi not loaded"));var r=!1,o=setTimeout(function(){console.error("[ms.consent] Timeout in `waitForUserConsent` with options",t),n(new Error("No response from __tcfapi event listener"))},t.inactiveTimeout||1e4);window.__tcfapi("addEventListener",2,function(t,a){if(!a)return console.error("[ms.consent] Failed to `addEventListener` with __tcfapi"),n(new Error("Unable to assign event listener"));if(!r)if(void 0!==t.gdprApplies){clearTimeout(o);var s=t.gdprApplies,u=t.eventStatus,c=t.listenerId;s?"tcloaded"!==u&&"useractioncomplete"!==u||(e({tcData:t}),i(c),r=!0):(window.__uspapi("getUSPData",1,function(t,r){if(!r)return console.error("[ms.consent] Failed to `getUSPData` with __uspapi"),n(new Error("Unable to get US privacy data from __uspapi"));e({uspData:t})}),i(c),r=!0)}else console.warn("[ms.consent] Received `gdprApplies` as undefined")})})},gdprAppliesAsync:function(){return window.__tcfapi?new Promise(function(t,e){window.__tcfapi("getTCData",2,function(n,r){r?t(n.gdprApplies):e(new Error("Failed to `getTCData` from __tcfapi"))})}):Promise.reject(new Error("Unable to find __tcfapi in global scope"))},iabConsentStringAsync:function(){return window.__tcfapi?new Promise(function(t,e){window.__tcfapi("getTCData",2,function(n,r){r?t(n.tcString):e(new Error("Failed to `getTCData` from __tcfapi"))})}):Promise.reject(new Error("Unable to find __tcfapi in global scope"))},getUSPrivacyStringAsync:function(){return window.__uspapi?new Promise(function(t,e){window.__uspapi("getUSPData",1,function(n,r){r?t(n.uspString):e(new Error("Failed to `getUSPData` from __uspapi"))})}):Promise.reject(new Error("Unable to find __uspapi in global scope"))},reqAllowed:a,reqAllowedAsync:function(){return Promise.resolve(a())},funAllowed:s,funAllowedAsync:function(){return Promise.resolve(s())},padAllowed:u,padAllowedAsync:function(){return Promise.resolve(u())}}}])},function(t,e,n){"use strict";n.r(e);var r=n(75),o=n(77),i=n(83),a=n.n(i);var s={REG_LOGGED_IN:"reg-user-signed-in",REG_NOT_LOGGED_IN:"reg-user-not-signed-in",REG_INFO_READY:"reg-user-info-ready"},u=n(2),c=n(84),l=n.n(c);var f,d=function(t){let e;try{const n=t.getElementsByClassName("navi-tout-mobile__link-text");for(const t of n)if("follow us"===t.innerText.toLowerCase()){e=t;break}}catch(t){}return e},p=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})};Object(r.a)();const h=(null===(f=null===window||void 0===window?void 0:window.performance)||void 0===f?void 0:f.mark)?window.performance:{mark:()=>({}),measure:()=>({})},_=t=>{h.mark("PlugClient-RegUIClient-Start");const e=new a.a([],{environment:"production",fetchSubMetadata:!0,activeSubscriptionsOnly:!0});h.mark("PlugClient-RegUIClient-End"),h.measure("PlugClient-RegUIClient-Constructor","PlugClient-RegUIClient-Start","PlugClient-RegUIClient-End");const n=new o.a(t,e),r=n.loadTouts.bind(n);e.onUserInfoReady(r),h.mark("PlugClient-RegUIClient-initialize-Start"),e.initialize(),h.mark("PlugClient-RegUIClient-initialize-End"),h.measure("PlugClient-RegUIClient-initialize","PlugClient-RegUIClient-initialize-Start","PlugClient-RegUIClient-initialize-End"),window.addEventListener(s.REG_LOGGED_IN,r),window.addEventListener("keydown",function t(e){var r,o,i;return p(this,void 0,void 0,function*(){if(" "===e.key&&e.ctrlKey){window.removeEventListener("keydown",t);try{const e=null===(r=window.plugClient.abba)||void 0===r?void 0:r.find(t=>!!t.config["debug-modal"]);if(!e)return;window.document.body.style.setProperty("cursor","wait","important"),yield n.loadTemplatesFromPlug(e.config,null!==(i=null===(o=null===window||void 0===window?void 0:window.plugClient)||void 0===o?void 0:o.abba)&&void 0!==i?i:[]),window.addEventListener(u.b,function(n){const{detail:r}=n;r.modalRenderId===e.config["debug-modal"].templateId&&window.addEventListener("keydown",t)})}catch(t){}window.document.body.style.removeProperty("cursor")}})});const i=d(window.document);i&&i.addEventListener("contextmenu",function(t){var e,r,o;return p(this,void 0,void 0,function*(){t.preventDefault();try{const t=null===(e=window.plugClient.abba)||void 0===e?void 0:e.find(t=>!!t.config["debug-modal"]);if(!t)return;window.document.body.style.setProperty("cursor","wait","important"),yield n.loadTemplatesFromPlug(t.config,null!==(o=null===(r=null===window||void 0===window?void 0:window.plugClient)||void 0===r?void 0:r.abba)&&void 0!==o?o:[])}catch(t){}window.document.body.style.removeProperty("cursor")})})};window.plugClient={init:t=>{p(void 0,void 0,void 0,function*(){try{h.mark("PlugClient-Consent-Start"),yield l.a.waitForUserConsent(),h.mark("PlugClient-Consent-End"),h.measure("PlugClient-Consent","PlugClient-Consent-Start","PlugClient-Consent-End"),h.mark("PlugClient-Init-Start"),_(t),h.mark("PlugClient-Init-End"),h.measure("PlugClient-Init","PlugClient-Init-Start","PlugClient-Init-End")}catch(t){}})}}}])});