(()=>{var e={553:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),i=new C(r||[]);return a._invoke=function(e,t,n){var r=f;return function(o,a){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw a;return N()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var s=E(i,n);if(s){if(s===w)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===w)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",w={};function g(){}function v(){}function m(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(L([])));x&&x!==n&&r.call(x,a)&&(y=x);var k=m.prototype=g.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,a,i,s){var c=l(e[o],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,i,s)}),(function(e){n("throw",e,i,s)})):t.resolve(f).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function a(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(a,a):a()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return w;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return w}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,w;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,w):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,w)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function L(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),w}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},757:(e,t,n)=>{e.exports=n(553)},669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),o=n(26),a=n(372),i=n(327),s=n(97),c=n(109),u=n(985),l=n(61),f=n(655),d=n(263);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,w=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete w["Content-Type"];var m=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(y+":"+b)}var x=s(e.baseURL,e.url);function k(){if(m){var r="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,a={data:g&&"text"!==g&&"json"!==g?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m};o((function(e){t(e),v()}),(function(e){n(e),v()}),a),m=null}}if(m.open(e.method.toUpperCase(),i(x,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=k:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(k)},m.onabort=function(){m&&(n(l("Request aborted",e,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(l("Network Error",e,null,m)),m=null},m.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||u(x))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;S&&(w[e.xsrfHeaderName]=S)}"setRequestHeader"in m&&r.forEach(w,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete w[t]:m.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),g&&"json"!==g&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){m&&(n(!e||e&&e.type?new d("canceled"):e),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),m.send(h)}))}},609:(e,t,n)=>{"use strict";var r=n(867),o=n(849),a=n(321),i=n(185);var s=function e(t){var n=new a(t),s=o(a.prototype.request,n);return r.extend(s,a.prototype,n),r.extend(s,n),s.create=function(n){return e(i(t,n))},s}(n(655));s.Axios=a,s.Cancel=n(263),s.CancelToken=n(972),s.isCancel=n(502),s.VERSION=n(288).version,s.all=function(e){return Promise.all(e)},s.spread=n(713),s.isAxiosError=n(268),e.exports=s,e.exports.default=s},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,n)=>{"use strict";var r=n(263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),o=n(327),a=n(782),i=n(572),s=n(185),c=n(875),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new a,response:new a}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var l=[i,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(a),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{o=i(f)}catch(e){return Promise.reject(e)}for(;a.length;)o=o.then(a.shift(),a.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,n)=>{"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},61:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},572:(e,t,n)=>{"use strict";var r=n(867),o=n(527),a=n(502),i=n(655),s=n(263);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function a(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function i(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||a,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},26:(e,t,n)=>{"use strict";var r=n(61);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),o=n(655);e.exports=function(e,t,n){var a=this||o;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},655:(e,t,n)=>{"use strict";var r=n(867),o=n(16),a=n(481),i={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(448)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(i)})),e.exports=u},288:e=>{e.exports={version:"0.24.0"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var i=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),i.push(o(t)+"="+o(e))})))})),a=i.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(a)&&s.push("domain="+a),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:(e,t,n)=>{"use strict";var r=n(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,n)=>{"use strict";var r=n(288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,i){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],i=t[a];if(i){var s=e[a],c=void 0===s||i(s,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:o}},867:(e,t,n)=>{"use strict";var r=n(849),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t,n,r,o,a,i){try{var s=e[a](i),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,a){var i=t.apply(n,r);function s(t){e(i,o,a,s,c,"next",t)}function c(t){e(i,o,a,s,c,"throw",t)}s(void 0)}))}}var r=n(757),o=n.n(r);const a={debug:!!window.authentication_config.debug,sessionManagementEnabled:!!window.authentication_config&&"1"===window.authentication_config.sessionManagementEnabled,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.entitlements_config?window.entitlements_config.entitlementsEndpoint:"",entitlementsApiKey:window.entitlements_config?window.entitlements_config.entitlementsAPIKey:"",googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:""};const i=function(){if(a.debug){for(var e,t=arguments.length,n=new Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return i};function h(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(p(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return p(t)}}function w(e){this.message=e}w.prototype=new Error,w.prototype.name="InvalidTokenError";const g=function(e,t){if("string"!=typeof e)throw new w("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(h(e.split(".")[n]))}catch(e){throw new w("Invalid token specified: "+e.message)}},v="auth0_sub",m="_sp_uid",y="c_mId",b="cs_mId",x="mng-entitlements",k="__MNG_Session";var S=function(){var e=window.location.href;return new URL(e)},A=function(e){return e.split("ssor|").length>1&&e.split("ssor|")[1]},E=function(){var e=S().hostname.split(".");return"".concat(e[e.length-2],".").concat(e[e.length-1])},_=function(){var e=E();return".".concat(e)},T=function(e,t,n){var r="".concat(e,"=").concat(t,";");void 0!==n?(i("Setting cookie with options: ",n),Object.entries(n).forEach((function(e){var t=f(e,2),n=t[0],o=t[1];if("expires"===n){var a=new Date;a.setTime(a.getTime()+24*o*60*60*1e3),r+="expires=".concat(a.toUTCString(),";")}else r+="".concat(n,"=").concat(o,";")}))):r+="path=/;",document.cookie=r},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),r=E(),o="www".concat(r),a=".www".concat(r),i=[r,o,a];Object.entries(t).forEach((function(e){var t=f(e,2),r=t[0],o=t[1];n+="".concat(r,"=").concat(o,";")})),0===Object.keys(t).length&&(n+="path=/;"),document.cookie=n,i.forEach((function(e){document.cookie=n.concat("domain=",e,";")}))},L=function(e){return g(e)},N=function(){return"complete"===document.readyState},P=function(){return new Promise((function(e){if(N())e();else{i("UIHandler: ","Waiting for the body to load...");var n=setInterval(t(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:document.querySelector("body")&&(clearInterval(n),e(!0));case 1:case"end":return t.stop()}}),t)}))),200)}}))},I=function(){return new Promise((function(e){void 0!==window.blueConicClient&&void 0!==window.blueConicClient.event&&void 0!==window.blueConicClient.event.subscribe?e():window.addEventListener("onBlueConicLoaded",(function(){e()}),!1)}))},O=function(){return new Promise((function(e,t){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(i("Authentication already ready: ",window.MNGAuthentication.authenticationReady),e(window.MNGAuthentication.authenticationReady)):(i("Adding authenticationReady listener..."),window.addEventListener("authenticationReady",(function(n){try{var r=n.detail||{};i("Event: authentication ready: ",r),e(r)}catch(e){i(e),t(e)}}),!1))}))},R=function(){C(v),C(m),C(y),C(b),function(){i("Clearing entitlements...");try{C(x,{path:"/"})}catch(e){i("Failed to delete legacy cookie: ",e)}try{C(x,{path:"/",domain:E(),expires:365,secure:!0})}catch(e){i("Failed to delete entitlements cookie: ",e)}try{window.localStorage.removeItem(k)}catch(e){i("Failed to remove local storage: ",e)}}()},j=function(){var e=S();return!["local","develop","preprod"].some((function(t){return e.origin.includes(t)}))},U=function(e){i("Removing storageObject : ",e),void 0!==window.localStorage.getItem(e)&&(window.localStorage.removeItem(e),i("Storage Object removed : ",e))},M=function(e){var t=new CustomEvent("authenticationReady",{detail:e});window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.authenticationReady=e,i("Dispatching authenticationReady Event: ",t),window.dispatchEvent(t),i("Dispatched authenticationReady event!")};var G=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:return e.next=4,O();case 4:return e.abrupt("return",new Promise((function(e){i("ANALYTICS: inside BCregwall events");var t=S();t.searchParams.delete("regwall");var n=blueConicClient.profile.getProfile();localStorage.setItem("regwallSuccess","yes"),localStorage.setItem("regwallEvent","yes"),n.setValue("bang_reg_wall_status","Y"),n.setValue("regwall_newspaper",t.host),n.setValue("regwall_success_date",new Date),n.setValue("regwall_success","yes"),blueConicClient.profile.updateProfile(),e(!0)})));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=t(o().mark((function e(t){var n,r,a,s,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{void 0!==(n=L(t))&&n&&(i("ANALYTICS: Partner Access: JWT found"),r=n.entitlement_entitled,a=n.entitlement_source,s=n.entitlement_organizationTrackingId,c=n.entitlement_organizationType,i("ANALYTICS: Partner Access Event: Entitled: ".concat(r," and source: ").concat(a)),r&&"partner-access"===a&&(i("ANALYTICS: GA event for partner access"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"partnerAccess",partner:"".concat(s,"|").concat(c)})))}catch(e){i("ANALYTICS: Failed to send Partner Access event: ",e)}case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{"yes"===localStorage.getItem("regwallEvent")&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"regwall_success"}),i("ANALYTICS: GA/ datalayer ",window.dataLayer),localStorage.removeItem("regwallEvent"))}catch(e){i("ANALYTICS: Failed to send Regwall Succuss Event: ",e)}case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=t(o().mark((function e(t,n){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i("ANALYTICS: user state variables are: ",t,n),i("ANALYTICS: user state is ",r="known"===t&&n?n:"known"!==t||n?"unknown"===t||"unknown-default"===t||"unknown-fail"===t&&"noEntitlements"===n?t:t&&n?n:"noState":"known-entitlements-failed"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Auth0State_event",Auth0State:r});case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Y=function(){var e=t(o().mark((function e(){var t,n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,O();case 3:n=e.sent,r=n.isAuthenticated,e.t0=r,e.next=!0===e.t0?8:!1===e.t0?10:12;break;case 8:return t="known",e.abrupt("break",14);case 10:return t="unknown",e.abrupt("break",14);case 12:return t="unknown-default",e.abrupt("break",14);case 14:return e.abrupt("return",t);case 17:return e.prev=17,e.t1=e.catch(0),i("ANALYTICS: Error during onAuthReadyAnalytics: ",e.t1),e.abrupt("return","unknown-fail");case 21:case"end":return e.stop()}}),e,null,[[0,17]])})));return function(){return e.apply(this,arguments)}}(),J=function(e){try{window.dataLayer.push({event:e}),i("ANALYTICS: ".concat(e," event")),i("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(t){i("ANALYTICS: Failed to send ".concat(e," event: "),t)}},q=function(e){try{J({googleonetap:"one_tap_login",viafoura_signup:"viafoura_signup_success",viafoura_login:"viafoura_login_success"}[e])}catch(e){i("ANALYTICS: Event not setup",e)}},W=function(){var e=t(o().mark((function e(){var n,r,s,c,u;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=!1,e.next=4,new Promise((function(e,n){a.entitlementsEnabled?void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady?(i("Entitlements already ready: ",window.MNGAuthentication.entitlementsReady),e(window.MNGAuthentication.entitlementsReady)):(i("Adding entitlementsReady listener..."),window.addEventListener("entitlementsReady",function(){var r=t(o().mark((function t(r){var a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{a=r.detail||{},i("Event: entitlements ready: ",a),e(a)}catch(e){i(e),n(e)}case 1:case"end":return t.stop()}}),t)})));return function(e){return r.apply(this,arguments)}}(),!1)):e(!1)}));case 4:if(!(r=e.sent)||!r.token){e.next=11;break}return s=r.token,c=r.isEntitled,u=r.adfree,i("ANALYTICS: entitlements options: ",c,u),!0===c&&!0!==u?(i("ANALYTICS: user state: found subscriber"),n="subscriber"):!0===r.adfree?(i("ANALYTICS: user state: found ad free",r.adfree),n="adfree"):!0!==c&&(i("ANALYTICS: user state: LINA"),n="lina"),F(s),e.abrupt("return",n);case 11:return e.abrupt("return","noEntitlements");case 14:return e.prev=14,e.t0=e.catch(0),i("ANALYTICS:",e.t0),e.abrupt("return","entitlementError");case 18:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}(),z=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const H={onLoadAnalytics:function(){var e=t(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("ANALYTICS: Start Analytics"),B(),window.MNGAuthentication.postAuthEvents=[],window.MNGAuthentication.preAuthGTMEvents=[],window.MNGAuthentication.postAuthEvents.push(q),z(),e.next=8,Y();case 8:return t=e.sent,e.next=11,W();case 11:n=e.sent,D(t,n);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),blueConicRegwallEvents:G,callPreparedGTMEvent:J};var V,X=n(669),K=n.n(X),$=function(){try{var e=localStorage.getItem(k);return"string"==typeof e?e:"{}"}catch(e){i("Unable to get session from local storage: ",e)}return"{}"},Q=function(e){try{localStorage.setItem(k,e)}catch(e){i("Unable to save session from local storage: ",e)}},Z=function(){var e=t(o().mark((function e(){var t,n,r,s,c,u,l,f,d,p;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="".concat(a.sessionServer,"/api/session"),i("Checking server session: ",t),e.next=5,K().get(t,{withCredentials:!0});case 5:if(!(n=e.sent).data){e.next=10;break}return r=n.data,s=r.idToken,c=r.entitlementToken,u=r.expiration,l=r.entitlementSource,f=r.isEntitled,d=r.adFree,p=r.entitlementLevel,Q(JSON.stringify({idToken:s,entitlementToken:c,expiration:u,entitlementSource:l,isEntitled:f,adFree:d,entitlementLevel:p})),e.abrupt("return",{idToken:s,entitlementToken:c,expiration:u,entitlementSource:l,isEntitled:f,adFree:d,entitlementLevel:p});case 10:return e.abrupt("return",{idToken:null,entitlementToken:null,expiration:null,entitlementSource:null,isEntitled:null,adFree:null,entitlementLevel:null});case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=t(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="".concat(a.sessionServer,"/api/session"),i("Updating server session: ",n),e.next=6,K().post(n,t,{withCredentials:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),i("Failed to update session server: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=t(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t="".concat(a.sessionServer,"/api/session"),i("Deleting server session: ",t),e.next=6,K().delete(t,{withCredentials:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),i("Failed to delete server session: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),ne=function(){var e=t(o().mark((function e(){var t,n,r,a,s,c,u,l,f,d,p,h,w,g,v,m,y,b,x,k,S,A,E,_;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Entitlements: inside getSession"),e.prev=1,l=$(),i("Session: __MNG_Session = ",l),f=JSON.parse(l),d=f.idToken,p=f.entitlementToken,h=f.expiration,w=f.entitlementSource,g=f.isEntitled,v=f.adFree,m=f.entitlementLevel,r=h,a=w,s=g,c=v,u=m,i("Session: check both tokens: ",t=d,n=p),void 0!==d&&void 0!==p&&null!==d&&null!==p){e.next=32;break}return i("Session: missing id or entitlements, try session server"),e.next=17,Z();case 17:y=e.sent,b=y.idToken,x=y.entitlementToken,k=y.expiration,S=y.entitlementSource,A=y.isEntitled,E=y.adFree,_=y.entitlementLevel,t=b,n=x,r=k,a=S,s=A,c=E,u=_;case 32:e.next=37;break;case 34:e.prev=34,e.t0=e.catch(1),i("Failed to get session: ",e.t0);case 37:return i("Returning session: ",t,n),e.abrupt("return",{idToken:t,entitlementToken:n,expiration:r,entitlementSource:a,isEntitled:s,adFree:c,entitlementLevel:u});case 39:case"end":return e.stop()}}),e,null,[[1,34]])})));return function(){return e.apply(this,arguments)}}(),re=function(){var e=t(o().mark((function e(t){var n,r,a,s,c,u,l,f,d,p,h,w,g,v,m,y,b,x,k,S,A,E,_,T,C;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=$(),r=JSON.parse(n),a=r.idToken,s=void 0===a?null:a,c=r.entitlementToken,u=void 0===c?null:c,l=r.expiration,f=void 0===l?null:l,d=r.entitlementSource,p=void 0===d?null:d,h=r.isEntitled,w=void 0===h?null:h,g=r.adFree,v=void 0===g?null:g,m=r.entitlementLevel,y=void 0===m?null:m,b=t.idToken,x=t.entitlementToken,k=t.expiration,S=t.entitlementSource,A=t.isEntitled,E=t.adFree,_=t.entitlementLevel,T={idToken:void 0!==b?b:s,entitlementToken:void 0!==x?x:u,expiration:void 0!==k?k:f,entitlementSource:void 0!==S?S:p,isEntitled:void 0!==A?A:w,adFree:void 0!==E?E:v,entitlementLevel:void 0!==_?_:y},C=JSON.stringify(T),Q(C),n===C){e.next=11;break}return e.next=11,ee(T);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),i("Unable to save session: ",e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t){return e.apply(this,arguments)}}(),oe=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Ending session..."),R(),e.next=4,te();case 4:localStorage.removeItem(k);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ae=function(){var e=t(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===V){e.next=2;break}return e.abrupt("return",V);case 2:return t=a.auth0Domain,n=a.auth0ClientId,e.next=5,createAuth0Client({domain:t,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return V=e.sent,e.abrupt("return",V);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ie=function(){return"logout"===(S().searchParams.get("state")||"").toLowerCase()};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var se=function(){var e=t(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Attempting to logout..."),!a.sessionManagementEnabled){e.next=6;break}return e.next=4,oe();case 4:e.next=7;break;case 6:R();case 7:return e.prev=7,i("Cycling through logout callbacks..."),t=window.MNGAuthentication.logoutCallbacks.map((function(e){return e()})),e.next=12,Promise.all(t);case 12:i("Finished cycling through logout callbacks."),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),i("Failed to cycle through logout callbacks: ",e.t0);case 18:return Object.keys(localStorage).filter((function(e){return e.includes("auth0")})).forEach((function(e){localStorage.removeItem(e),i("Removed Auth0 storage object...")})),U("hhsl"),e.next=23,new Promise((function(e){var t=setTimeout((function(){"undefined"!=typeof Connext?(i("Connext actually did load..."),clearTimeout(t),e(!0)):(i("Connext did not load in time. Resolving false..."),clearTimeout(t),e(!1))}),6e3);"undefined"!=typeof Connext?(i("Connext already ready."),clearTimeout(t),e(!0)):(i("Listening for Connext Ready event..."),document.addEventListener("onFinish",(function(){clearTimeout(t),i("Connext loaded!"),e(!0)})))}));case 23:if(!e.sent){e.next=41;break}if(window.history.replaceState({additionalInformation:"Updated the URL to prevent another login cycle"},"Home",window.location.origin),i("About to call Connext Logout..."),!j()){e.next=32;break}return e.next=30,Connext.Logout();case 30:e.next=39;break;case 32:if("function"!=typeof Connext._logout){e.next=37;break}return e.next=35,Connext._logout();case 35:e.next=39;break;case 37:return e.next=39,Connext.Logout();case 39:e.next=47;break;case 41:return i("Connext Logout was NOT called"),e.next=44,ae();case 44:n=e.sent,i("Calling Auth0 logout..."),n.logout({returnTo:window.location.origin});case 47:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(){return e.apply(this,arguments)}}(),ce=function(){var e=0;for(var t in localStorage){var n=2*localStorage[t].length/1024/1024;!Number.isNaN(n)&&localStorage.hasOwnProperty(t)&&(e+=n)}return e},ue=function(){var e=t(o().mark((function e(t,n,r,s){var c,u,f,d,p,h,w,g,v,m,y;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Attempting to login..."),ce()>4.5&&localStorage.clear(),window.MNGAuthentication.preAuthGTMEvents.forEach((function(e){return J(e)})),i("Cycled through preauth GTM events."),s&&(c=[],u=window.localStorage.getItem("callbackEvents"),f=JSON.parse(u),c=f&&f.length>0?l(new Set([].concat(l(s),l(f)))):s,window.localStorage.setItem("callbackEvents",JSON.stringify(c))),d=null,e.next=7,ae();case 7:if(p=e.sent,h=S(),w=h.origin,g=new URL("".concat(w,"/callback")),v={},h.searchParams.get("regwall")&&(h.searchParams.get("returnUrl")&&(m=h.searchParams.get("returnUrl")),h.searchParams.get("auth_redirect")&&(m=h.searchParams.get("auth_redirect"))),h.pathname.startsWith("/login")||h.pathname.startsWith("/callback")?h.searchParams.get("returnUrl")&&g.searchParams.set("auth_redirect",h.searchParams.get("returnUrl")):g.searchParams.set("auth_redirect",h.toString()),m&&"regwall"!==t&&g.searchParams.set("auth_redirect",m),"true"===h.searchParams.get("close-after-finish")&&g.searchParams.set("close-after-finish","true"),"true"!==h.searchParams.get("ssl")){e.next=23;break}if(!a.sessionManagementEnabled){e.next=22;break}return e.next=20,oe();case 20:e.next=23;break;case 22:R();case 23:return null!==(d=h.searchParams.get("login-with"))?v.connection=d:n&&(v.connection=n),y="none",t&&"regwall"===t&&(g.searchParams.set("regwall","true"),y="signUp",i("Logging in with regwall")),t&&(g.searchParams.set("loginsource",t),i("Logging in with ".concat(t))),r&&(v.login_hint=r),v.redirect_uri=g.toString(),v.initialScreen=y,"googleonetap"!==t&&(v.prompt="select_account"),e.next=34,p.loginWithRedirect(v);case 34:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),le=function(){return new Promise((function(e){var t=setTimeout((function(){e()}),8e3);try{var n=window.localStorage.getItem("callbackEvents"),r=JSON.parse(n);0===r.length&&e(),i("Adding listeners to events we need to wait for...");var o=r.map((function(e){return t=e,new Promise((function(e){i("Adding event to wait for: ",t),window.addEventListener(t,(function(n){try{var r=n.detail||{};i("Event: ".concat(t,"} ready: "),r),e(r)}catch(t){i(t),e()}}),!1)}));var t}));Promise.all(o).then((function(){clearTimeout(t),e()}))}catch(t){i("Failed to wait for callback events",t),e()}}))};window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.oidcLoginCallbacks=[];var fe=function(){var e=t(o().mark((function e(){var n,r,s,c,u,l,f,d,p,h,w,g,v;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Handling post login callback..."),n=S(),e.next=4,ae();case 4:return r=e.sent,e.next=7,r.handleRedirectCallback();case 7:return e.next=9,r.getIdTokenClaims();case 9:return s=e.sent,e.next=12,r.getUser();case 12:return c=e.sent,i("Auth0 user profile: ",c),u=s.__raw,e.next=17,r.getTokenSilently();case 17:return l=e.sent,e.prev=18,i("Cycling through login callbacks..."),e.next=22,le();case 22:return f=window.MNGAuthentication.oidcLoginCallbacks.map(function(){var e=t(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(u));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=25,Promise.all(f);case 25:i("Finished cycling through login callbacks."),e.next=31;break;case 28:e.prev=28,e.t0=e.catch(18),i("Failed to cycle through login callbacks: ",e.t0);case 31:if(d={accessToken:l,userId:c.sub,email:c.email,picture:c.picture},d.userId.includes("ssor|")&&(d.ssorId=A(d.userId),d.master_id=null!==(p=c["https://www.medianewsgroup.com/ssor_master_id"])&&void 0!==p&&p,x=d.ssorId,k=d.master_id,x&&(i("This is an SSOR user, with id of ".concat(x,". Setting ").concat(m," now.")),T(m,x,{domain:_(),path:"/",expires:365,secure:!0}),k&&(i("Setting _mId cookies now with value of ".concat(k)),T(y,k,{domain:_(),path:"/",expires:365,secure:!0}),T(b,k,{domain:_(),path:"/",expires:365,secure:!0})))),i("Storing User info: ",d),!a.sessionManagementEnabled){e.next=37;break}return e.next=37,re({idToken:u});case 37:if(!n.searchParams.get("close-after-finish")){e.next=39;break}return e.abrupt("return",window.close());case 39:if(!n.search.includes("loginsource")){e.next=44;break}return h=n.searchParams.get("loginsource"),w=window.MNGAuthentication.postAuthEvents.map(function(){var e=t(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(h));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=44,Promise.all(w);case 44:return e.prev=44,g=n.searchParams.get("auth_redirect"),v=new URL(g),e.abrupt("return",window.location.assign(v));case 50:e.prev=50,e.t1=e.catch(44),i("Failed to redirect after authentication: ",e.t1);case 53:return window.location.assign(new URL(window.location.origin)),e.abrupt("return","Finished execution, please await result...");case 55:case"end":return e.stop()}var x,k}),e,null,[[18,28],[44,50]])})));return function(){return e.apply(this,arguments)}}(),de=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("ANALYTICS: fireBC events"),e.next=3,G();case 3:i("ANALYTICS: bc values should be filled");case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=t(o().mark((function e(){var t,n,r,a,s,c,u,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,O();case 2:if(t=e.sent,""===(n=t.idToken)){e.next=16;break}return e.prev=5,r=L(n),a=r.email,s=r.picture,c=r.sub,(u=c.split("|")).pop(),l=u.join("|"),e.abrupt("return",{authenticated:!0,email:a,picture:s,userId:c,connectionSource:l});case 13:e.prev=13,e.t0=e.catch(5),i("Unable to parse idToken: ",n," Error: ",e.t0);case 16:return e.abrupt("return",{authenticated:!1});case 17:case"end":return e.stop()}}),e,null,[[5,13]])})));return function(){return e.apply(this,arguments)}}();window.MNGAuthentication.login=ue,window.MNGAuthentication.logout=se,window.MNGAuthentication.getUserInfo=pe;const he={init:function(){var e=t(o().mark((function e(){var n,r,c,u,l,f,d,p,h;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=S(),r=!1,c="",u={},l=function(){var e=t(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ae();case 3:return t=e.sent,e.next=6,t.getIdTokenClaims();case 6:return u=e.sent,e.next=9,t.isAuthenticated();case 9:r=e.sent,c="object"===s(u)?u.__raw:"",e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),i("Unable to verify user has active auth0 session: ",e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}(),n.pathname.startsWith("/logout")){e.next=34;break}if(!a.sessionManagementEnabled){e.next=32;break}return e.next=9,l();case 9:if(""===c){e.next=18;break}if(f=null,d=JSON.parse(window.localStorage.getItem(k)),"{}"!==$()){e.next=16;break}return d&&(f=d.jwt),e.next=16,re({idToken:c,entitlementToken:f});case 16:e.next=30;break;case 18:return e.prev=18,e.next=21,ne();case 21:p=e.sent,c=p.idToken,r="string"==typeof c,u=L(c),e.next=30;break;case 27:e.prev=27,e.t0=e.catch(18),i("Unable to initialize session: ",e.t0);case 30:e.next=34;break;case 32:return e.next=34,l();case 34:if(M({isAuthenticated:r,idToken:c,claims:u}),r?(i("User is authenticated."),n.searchParams.get("auth_redirect")&&(i("Auth Redirect is present, sending user to auth redirect..."),(h=n.searchParams.get("auth_redirect")).endsWith("#")&&(h=h.slice(0,h.length)),window.location.assign(h)),n.pathname.startsWith("/login")&&!ie()&&(i("Page is login. The user is already logged in and Connext Logout param is not present... Redirecting..."),window.location.assign(n.origin))):i("User is not authenticated."),n.pathname.startsWith("/login")&&!ie()?(i("Page is login. Attempting to log user in..."),ue()):i("Page is not login or Connext state is present"),!n.pathname.startsWith("/callback")||!n.searchParams.get("regwall")){e.next=46;break}return i("Page is callback with regwall param. Routing to regwall receiver..."),e.next=42,de();case 42:i("Now login from regwall"),ue(),e.next=56;break;case 46:if(!n.pathname.startsWith("/callback")){e.next=52;break}return i("Page is callback without regwall param. Routing to callback receiver..."),e.next=50,fe();case 50:e.next=56;break;case 52:if(!n.pathname.startsWith("/logout")){e.next=56;break}return i("Page is logout. Routing to logout function..."),e.next=56,se();case 56:case"end":return e.stop()}}),e,null,[[18,27]])})));return function(){return e.apply(this,arguments)}}()};var we=function(e,t){return new Promise((function(n){try{"undefined"==typeof CnnXt&&(i("Connext was not loaded."),n(!1)),CnnXt.API.NewsletterSubscribe({email:e,id:t,onSuccess:function(){i("Signed user up to newsletter: ",t),n(!0)},onError:function(e){i(e),n(!1)}})}catch(e){i("subscribeToNewsletter Error:",e),n(!1)}}))};var ge=function(){var e=t(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i("Google token ",t),n=L(t.credential),e.prev=2,J("one_tap_click"),localStorage.setItem("regwallSuccess","yes"),!a.newsletterId){e.next=9;break}return i("About to call Connext's subscribeToNewsletter function"),e.next=9,we(n.email,a.newsletterId);case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),i("Error: ",e.t0);case 14:return i("About to login with onetap flow..."),e.next=17,window.MNGAuthentication.login("googleonetap","google-oauth2",n.email);case 17:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t){return e.apply(this,arguments)}}(),ve=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:google.accounts.id.initialize({client_id:a.googleClientId,callback:ge,auto_select:!1,cancel_on_tap_outside:!1}),i("Showing the onetap modal..."),google.accounts.id.prompt((function(e){e.isDisplayed()?J("one_tap_displayed"):e.isSkippedMoment()?J("one_tap_cancel"):e.isNotDisplayed()&&"suppressed_by_user"===e.j&&J("one_tap_auto_hide")}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const me={init:function(){var e=t(o().mark((function e(){var t,n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.oneTapEnabled){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,O();case 4:if(t=e.sent,n=t.isAuthenticated,r=S(),!(n||r.pathname.startsWith("/login")||r.pathname.startsWith("/logout")||r.pathname.startsWith("/callback"))){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,P();case 11:return i("onetap loading..."),e.next=14,ve();case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()};var ye=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i("Settings: ",a),he.init(),H.onLoadAnalytics(),e.next=5,me.init();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();window.disableAuth0AuthFlow=!0,ye()})()})();; (()=>{var t={553:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,i=Object.create(o.prototype),a=new N(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",d="executing",p="completed",g={};function m(){}function w(){}function v(){}var y={};c(y,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(L([])));x&&x!==n&&r.call(x,i)&&(y=x);var E=v.prototype=m.prototype=Object.create(y);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function n(o,i,a,s){var c=l(t[o],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return n("throw",t,a,s)}))}s(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function k(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,k(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function L(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},757:(t,e,n)=>{t.exports=n(553)},669:(t,e,n)=>{t.exports=n(609)},448:(t,e,n)=>{"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),s=n(97),c=n(109),u=n(985),l=n(61),f=n(655),h=n(263);t.exports=function(t){return new Promise((function(e,n){var d,p=t.data,g=t.headers,m=t.responseType;function w(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}r.isFormData(p)&&delete g["Content-Type"];var v=new XMLHttpRequest;if(t.auth){var y=t.auth.username||"",b=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(y+":"+b)}var x=s(t.baseURL,t.url);function E(){if(v){var r="getAllResponseHeaders"in v?c(v.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v};o((function(t){e(t),w()}),(function(t){n(t),w()}),i),v=null}}if(v.open(t.method.toUpperCase(),a(x,t.params,t.paramsSerializer),!0),v.timeout=t.timeout,"onloadend"in v?v.onloadend=E:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(E)},v.onabort=function(){v&&(n(l("Request aborted",t,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(l("Network Error",t,null,v)),v=null},v.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var S=(t.withCredentials||u(x))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;S&&(g[t.xsrfHeaderName]=S)}"setRequestHeader"in v&&r.forEach(g,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete g[e]:v.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(v.withCredentials=!!t.withCredentials),m&&"json"!==m&&(v.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&v.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(t){v&&(n(!t||t&&t.type?new h("canceled"):t),v.abort(),v=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),p||(p=null),v.send(p)}))}},609:(t,e,n)=>{"use strict";var r=n(867),o=n(849),i=n(321),a=n(185);var s=function t(e){var n=new i(e),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return t(a(e,n))},s}(n(655));s.Axios=i,s.Cancel=n(263),s.CancelToken=n(972),s.isCancel=n(502),s.VERSION=n(288).version,s.all=function(t){return Promise.all(t)},s.spread=n(713),s.isAxiosError=n(268),t.exports=s,t.exports.default=s},263:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},972:(t,e,n)=>{"use strict";var r=n(263);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},321:(t,e,n)=>{"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),s=n(185),c=n(875),u=c.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;n.length;){var h=n.shift(),d=n.shift();try{f=h(f)}catch(t){d(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=l},782:(t,e,n)=>{"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},97:(t,e,n)=>{"use strict";var r=n(793),o=n(303);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},61:(t,e,n)=>{"use strict";var r=n(481);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},572:(t,e,n)=>{"use strict";var r=n(867),o=n(527),i=n(502),a=n(655),s=n(263);function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},481:t=>{"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},185:(t,e,n)=>{"use strict";var r=n(867);t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function s(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function c(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||i,o=e(t);r.isUndefined(o)&&e!==c||(n[t]=o)})),n}},26:(t,e,n)=>{"use strict";var r=n(61);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},527:(t,e,n)=>{"use strict";var r=n(867),o=n(655);t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},655:(t,e,n)=>{"use strict";var r=n(867),o=n(16),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(448)),c),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||u.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u},288:t=>{t.exports={version:"0.24.0"}},849:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(867);function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},303:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},372:(t,e,n)=>{"use strict";var r=n(867);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},268:t=>{"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},985:(t,e,n)=>{"use strict";var r=n(867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},16:(t,e,n)=>{"use strict";var r=n(867);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},109:(t,e,n)=>{"use strict";var r=n(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},713:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},875:(t,e,n)=>{"use strict";var r=n(288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var s=t[i],c=void 0===s||a(s,i,t);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},867:(t,e,n)=>{"use strict";var r=n(849),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";function t(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function e(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,c,"next",e)}function c(e){t(a,o,i,s,c,"throw",e)}s(void 0)}))}}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(757),i=n.n(o);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function f(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(l(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return l(e)}}function h(t){this.message=t}h.prototype=new Error,h.prototype.name="InvalidTokenError";const d=function(t,e){if("string"!=typeof t)throw new h("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(f(t.split(".")[n]))}catch(t){throw new h("Invalid token specified: "+t.message)}},p={debug:!!window.authentication_config.debug,sessionManagementEnabled:!!window.authentication_config&&"1"===window.authentication_config.sessionManagementEnabled,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.entitlements_config?window.entitlements_config.entitlementsEndpoint:"",entitlementsApiKey:window.entitlements_config?window.entitlements_config.entitlementsAPIKey:"",googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:""};const g=function(){if(p.debug){for(var t,e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(t,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),r=_(),o="www".concat(r),i=".www".concat(r),a=[r,o,i];Object.entries(e).forEach((function(t){var e=c(t,2),r=e[0],o=e[1];n+="".concat(r,"=").concat(o,";")})),0===Object.keys(e).length&&(n+="path=/;"),document.cookie=n,a.forEach((function(t){document.cookie=n.concat("domain=",t,";")}))},N=function(t){return d(t)},L=function(){return new Promise((function(t,e){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(g("Authentication already ready: ",window.MNGAuthentication.authenticationReady),t(window.MNGAuthentication.authenticationReady)):(g("Adding authenticationReady listener..."),window.addEventListener("authenticationReady",(function(n){try{var r=n.detail||{};g("Event: authentication ready: ",r),t(r)}catch(t){g(t),e(t)}}),!1))}))},O=function(){C(m),C(w),C(v),C(y),function(){g("Clearing entitlements...");try{C(b,{path:"/"})}catch(t){g("Failed to delete legacy cookie: ",t)}try{C(b,{path:"/",domain:_(),expires:365,secure:!0})}catch(t){g("Failed to delete entitlements cookie: ",t)}try{window.localStorage.removeItem(x)}catch(t){g("Failed to remove local storage: ",t)}}()},T=function(){var t=E();return!["local","develop","preprod"].some((function(e){return t.origin.includes(e)}))},j=function(t){g("Removing storageObject : ",t),void 0!==window.localStorage.getItem(t)&&(window.localStorage.removeItem(t),g("Storage Object removed : ",t))};function P(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var R=function(t){try{window.dataLayer.push({event:t}),g("ANALYTICS: ".concat(t," event")),g("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(e){g("ANALYTICS: Failed to send ".concat(t," event: "),e)}};var I,U=n(669),M=n.n(U),G=function(){var t=e(i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e="".concat(p.sessionServer,"/api/session"),g("Deleting server session: ",e),t.next=6,M().delete(e,{withCredentials:!0});case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),g("Failed to delete server session: ",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),F=function(){var t=e(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g("Ending session..."),O(),t.next=4,G();case 4:localStorage.removeItem(x);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),B=function(){var t=e(i().mark((function t(){var e,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===I){t.next=2;break}return t.abrupt("return",I);case 2:return e=p.auth0Domain,n=p.auth0ClientId,t.next=5,createAuth0Client({domain:e,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return I=t.sent,t.abrupt("return",I);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var D=function(){var t=e(i().mark((function t(){var e,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(g("Attempting to logout..."),!p.sessionManagementEnabled){t.next=6;break}return t.next=4,F();case 4:t.next=7;break;case 6:O();case 7:return t.prev=7,g("Cycling through logout callbacks..."),e=window.MNGAuthentication.logoutCallbacks.map((function(t){return t()})),t.next=12,Promise.all(e);case 12:g("Finished cycling through logout callbacks."),t.next=18;break;case 15:t.prev=15,t.t0=t.catch(7),g("Failed to cycle through logout callbacks: ",t.t0);case 18:return Object.keys(localStorage).filter((function(t){return t.includes("auth0")})).forEach((function(t){localStorage.removeItem(t),g("Removed Auth0 storage object...")})),j("hhsl"),t.next=23,new Promise((function(t){var e=setTimeout((function(){"undefined"!=typeof Connext?(g("Connext actually did load..."),clearTimeout(e),t(!0)):(g("Connext did not load in time. Resolving false..."),clearTimeout(e),t(!1))}),6e3);"undefined"!=typeof Connext?(g("Connext already ready."),clearTimeout(e),t(!0)):(g("Listening for Connext Ready event..."),document.addEventListener("onFinish",(function(){clearTimeout(e),g("Connext loaded!"),t(!0)})))}));case 23:if(!t.sent){t.next=41;break}if(window.history.replaceState({additionalInformation:"Updated the URL to prevent another login cycle"},"Home",window.location.origin),g("About to call Connext Logout..."),!T()){t.next=32;break}return t.next=30,Connext.Logout();case 30:t.next=39;break;case 32:if("function"!=typeof Connext._logout){t.next=37;break}return t.next=35,Connext._logout();case 35:t.next=39;break;case 37:return t.next=39,Connext.Logout();case 39:t.next=47;break;case 41:return g("Connext Logout was NOT called"),t.next=44,B();case 44:n=t.sent,g("Calling Auth0 logout..."),n.logout({returnTo:window.location.origin});case 47:case"end":return t.stop()}}),t,null,[[7,15]])})));return function(){return t.apply(this,arguments)}}(),q=function(){var t=0;for(var e in localStorage){var n=2*localStorage[e].length/1024/1024;!Number.isNaN(n)&&localStorage.hasOwnProperty(e)&&(t+=n)}return t},J=function(){var t=e(i().mark((function t(e,n,r,o){var a,s,c,u,l,f,h,d,m,w,v;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g("Attempting to login..."),q()>4.5&&localStorage.clear(),window.MNGAuthentication.preAuthGTMEvents.forEach((function(t){return R(t)})),g("Cycled through preauth GTM events."),o&&(a=[],s=window.localStorage.getItem("callbackEvents"),c=JSON.parse(s),a=c&&c.length>0?P(new Set([].concat(P(o),P(c)))):o,window.localStorage.setItem("callbackEvents",JSON.stringify(a))),u=null,t.next=7,B();case 7:if(l=t.sent,f=E(),h=f.origin,d=new URL("".concat(h,"/callback")),m={},f.searchParams.get("regwall")&&(f.searchParams.get("returnUrl")&&(w=f.searchParams.get("returnUrl")),f.searchParams.get("auth_redirect")&&(w=f.searchParams.get("auth_redirect"))),f.pathname.startsWith("/login")||f.pathname.startsWith("/callback")?f.searchParams.get("returnUrl")&&d.searchParams.set("auth_redirect",f.searchParams.get("returnUrl")):d.searchParams.set("auth_redirect",f.toString()),w&&"regwall"!==e&&d.searchParams.set("auth_redirect",w),"true"===f.searchParams.get("close-after-finish")&&d.searchParams.set("close-after-finish","true"),"true"!==f.searchParams.get("ssl")){t.next=23;break}if(!p.sessionManagementEnabled){t.next=22;break}return t.next=20,F();case 20:t.next=23;break;case 22:O();case 23:return null!==(u=f.searchParams.get("login-with"))?m.connection=u:n&&(m.connection=n),v="none",e&&"regwall"===e&&(d.searchParams.set("regwall","true"),v="signUp",g("Logging in with regwall")),e&&(d.searchParams.set("loginsource",e),g("Logging in with ".concat(e))),r&&(m.login_hint=r),m.redirect_uri=d.toString(),m.initialScreen=v,"googleonetap"!==e&&(m.prompt="select_account"),t.next=34,l.loginWithRedirect(m);case 34:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}();window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.oidcLoginCallbacks=[];var H=function(){var t=e(i().mark((function t(){var e,n,r,o,a,s,c,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,L();case 2:if(e=t.sent,""===(n=e.idToken)){t.next=16;break}return t.prev=5,r=N(n),o=r.email,a=r.picture,s=r.sub,(c=s.split("|")).pop(),u=c.join("|"),t.abrupt("return",{authenticated:!0,email:o,picture:a,userId:s,connectionSource:u});case 13:t.prev=13,t.t0=t.catch(5),g("Unable to parse idToken: ",n," Error: ",t.t0);case 16:return t.abrupt("return",{authenticated:!1});case 17:case"end":return t.stop()}}),t,null,[[5,13]])})));return function(){return t.apply(this,arguments)}}();window.MNGAuthentication.login=J,window.MNGAuthentication.logout=D,window.MNGAuthentication.getUserInfo=H;var X=function(t,e){return new Promise((function(n){try{"undefined"==typeof CnnXt&&(g("Connext was not loaded."),n(!1)),CnnXt.API.NewsletterSubscribe({email:t,id:e,onSuccess:function(){g("Signed user up to newsletter: ",e),n(!0)},onError:function(t){g(t),n(!1)}})}catch(t){g("subscribeToNewsletter Error:",t),n(!1)}}))},z=function(t){try{"string"==typeof t&&A(m,t,{domain:k(),path:"/",expires:365,secure:!0})}catch(t){g("Failed to set auth0_sub cookie: ",t)}},W=function(t){if(!S(m))try{var e=t.claims;if(null==e||"object"!==r(e)&&!Object.keys(e).includes("sub"))return;z(e.sub)}catch(t){g("Failed to set auth0_sub: ",t)}},K=function(t){try{if("string"==typeof t){var e=N(t).sub;z(e)}}catch(t){g("Failed to set auth0_sub on login: ",t)}},Y=function(){var t=e(i().mark((function t(){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return document.addEventListener("click",(function(t){if(t.target.classList.contains("connext-login")){var e=window.location.href,n=new URL(e),r=n.origin,o=new URL("".concat(r,"/login"));o.searchParams.set("returnUrl",n.toString()),window.location.assign(o)}})),T()||document.addEventListener("onInit",(function(){if("undefined"!=typeof Connext){var t,e,n,r=Connext;e="Logout",n=function(){return function(){alert("Warning! You called Connext.Logout() directly! Calling MNGAuthentication.logout() next."),window.MNGAuthentication.logout()}},(t=r)._logout=Connext.Logout,t[e]=n(t[e])}})),document.addEventListener("onFinish",e(i().mark((function t(){var e,n,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(e=window.localStorage.getItem("newsletter_to_subscribe"))){t.next=11;break}return t.next=4,H();case 4:return n=t.sent,r=n.email,g("CONNEXT: about to sign up ".concat(r," to ").concat(e)),t.next=9,X(r,e);case 9:window.localStorage.removeItem("newsletter_to_subscribe"),g("CONNEXT: newsletter_to_subscribe value removed from local storage.");case 11:case"end":return t.stop()}}),t)})))),MNGAuthentication.oidcLoginCallbacks.push(K),t.next=6,L();case 6:n=t.sent,W(n);case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();({init:Y}).init()})()})();; (()=>{var e={553:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new _(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return O()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function v(){}function w(){}function g(){}var y={};c(y,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==n&&r.call(x,i)&&(y=x);var k=g.prototype=v.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function T(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function C(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),N(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},757:(e,t,n)=>{e.exports=n(553)},669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),s=n(97),c=n(109),u=n(985),l=n(61),f=n(655),d=n(263);e.exports=function(e){return new Promise((function(t,n){var p,h=e.data,m=e.headers,v=e.responseType;function w(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}r.isFormData(h)&&delete m["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+b)}var x=s(e.baseURL,e.url);function k(){if(g){var r="getAllResponseHeaders"in g?c(g.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o((function(e){t(e),w()}),(function(e){n(e),w()}),i),g=null}}if(g.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=k:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(k)},g.onabort=function(){g&&(n(l("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(l("Network Error",e,null,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var E=(e.withCredentials||u(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(m[e.xsrfHeaderName]=E)}"setRequestHeader"in g&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),v&&"json"!==v&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){g&&(n(!e||e&&e.type?new d("canceled"):e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),h||(h=null),g.send(h)}))}},609:(e,t,n)=>{"use strict";var r=n(867),o=n(849),i=n(321),a=n(185);var s=function e(t){var n=new i(t),s=o(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(655));s.Axios=i,s.Cancel=n(263),s.CancelToken=n(972),s.isCancel=n(502),s.VERSION=n(288).version,s.all=function(e){return Promise.all(e)},s.spread=n(713),s.isAxiosError=n(268),e.exports=s,e.exports.default=s},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,n)=>{"use strict";var r=n(263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),s=n(185),c=n(875),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,n)=>{"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},61:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},572:(e,t,n)=>{"use strict";var r=n(867),o=n(527),i=n(502),a=n(655),s=n(263);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return c(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(c(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function c(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==c||(n[e]=o)})),n}},26:(e,t,n)=>{"use strict";var r=n(61);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),o=n(655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},655:(e,t,n)=>{"use strict";var r=n(867),o=n(16),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n(448)),c),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},288:e=>{e.exports={version:"0.24.0"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:(e,t,n)=>{"use strict";var r=n(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,n)=>{"use strict";var r=n(288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},867:(e,t,n)=>{"use strict";var r=n(849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function s(t){e(a,o,i,s,c,"next",t)}function c(t){e(a,o,i,s,c,"throw",t)}s(void 0)}))}}var r=n(757),o=n.n(r);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}const a={debug:!!window.authentication_config.debug,sessionManagementEnabled:!!window.authentication_config&&"1"===window.authentication_config.sessionManagementEnabled,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.entitlements_config?window.entitlements_config.entitlementsEndpoint:"",entitlementsApiKey:window.entitlements_config?window.entitlements_config.entitlementsAPIKey:"",googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:""};const s=function(){if(a.debug){for(var e,t=arguments.length,n=new Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function p(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(d(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return d(t)}}function h(e){this.message=e}h.prototype=new Error,h.prototype.name="InvalidTokenError";const m=function(e,t){if("string"!=typeof e)throw new h("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(p(e.split(".")[n]))}catch(e){throw new h("Invalid token specified: "+e.message)}},v="auth0_sub",w="_sp_uid",g="c_mId",y="cs_mId",b="mng-entitlements",x="__MNG_Session";var k=function(){var e=window.location.href;return new URL(e)},E=function(e){for(var t="".concat(e,"="),n=decodeURIComponent(document.cookie).split(";"),r=0;r1&&e.split("ssor|")[1]},N=function(){var e=k().hostname.split(".");return"".concat(e[e.length-2],".").concat(e[e.length-1])},_=function(){var e=N();return".".concat(e)},C=function(e,t,n){var r="".concat(e,"=").concat(t,";");void 0!==n?(s("Setting cookie with options: ",n),Object.entries(n).forEach((function(e){var t=l(e,2),n=t[0],o=t[1];if("expires"===n){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r+="expires=".concat(i.toUTCString(),";")}else r+="".concat(n,"=").concat(o,";")}))):r+="path=/;",document.cookie=r},O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),r=N(),o="www".concat(r),i=".www".concat(r),a=[r,o,i];Object.entries(t).forEach((function(e){var t=l(e,2),r=t[0],o=t[1];n+="".concat(r,"=").concat(o,";")})),0===Object.keys(t).length&&(n+="path=/;"),document.cookie=n,a.forEach((function(e){document.cookie=n.concat("domain=",e,";")}))},L=function(e){return m(e)},j=function(){return new Promise((function(e,t){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(s("Authentication already ready: ",window.MNGAuthentication.authenticationReady),e(window.MNGAuthentication.authenticationReady)):(s("Adding authenticationReady listener..."),window.addEventListener("authenticationReady",(function(n){try{var r=n.detail||{};s("Event: authentication ready: ",r),e(r)}catch(e){s(e),t(e)}}),!1))}))},R=function(){s("Clearing entitlements...");try{O(b,{path:"/"})}catch(e){s("Failed to delete legacy cookie: ",e)}try{O(b,{path:"/",domain:N(),expires:365,secure:!0})}catch(e){s("Failed to delete entitlements cookie: ",e)}try{window.localStorage.removeItem(x)}catch(e){s("Failed to remove local storage: ",e)}},P=function(){O(v),O(w),O(g),O(y),R()},I=function(){var e=k();return!["local","develop","preprod"].some((function(t){return e.origin.includes(t)}))},U=function(e){s("Removing storageObject : ",e),void 0!==window.localStorage.getItem(e)&&(window.localStorage.removeItem(e),s("Storage Object removed : ",e))},M=function(e){var t=new CustomEvent("authenticationReady",{detail:e});window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.authenticationReady=e,s("Dispatching authenticationReady Event: ",t),window.dispatchEvent(t),s("Dispatched authenticationReady event!")};function F(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var G=function(e){try{window.dataLayer.push({event:e}),s("ANALYTICS: ".concat(e," event")),s("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(t){s("ANALYTICS: Failed to send ".concat(e," event: "),t)}};var D,J=n(669),B=n.n(J),q=function(){try{var e=localStorage.getItem(x);return"string"==typeof e?e:"{}"}catch(e){s("Unable to get session from local storage: ",e)}return"{}"},H=function(e){try{localStorage.setItem(x,e)}catch(e){s("Unable to save session from local storage: ",e)}},K=function(){var e=t(o().mark((function e(){var t,n,r,i,c,u,l,f,d,p;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="".concat(a.sessionServer,"/api/session"),s("Checking server session: ",t),e.next=5,B().get(t,{withCredentials:!0});case 5:if(!(n=e.sent).data){e.next=10;break}return r=n.data,i=r.idToken,c=r.entitlementToken,u=r.expiration,l=r.entitlementSource,f=r.isEntitled,d=r.adFree,p=r.entitlementLevel,H(JSON.stringify({idToken:i,entitlementToken:c,expiration:u,entitlementSource:l,isEntitled:f,adFree:d,entitlementLevel:p})),e.abrupt("return",{idToken:i,entitlementToken:c,expiration:u,entitlementSource:l,isEntitled:f,adFree:d,entitlementLevel:p});case 10:return e.abrupt("return",{idToken:null,entitlementToken:null,expiration:null,entitlementSource:null,isEntitled:null,adFree:null,entitlementLevel:null});case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),W=function(){var e=t(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="".concat(a.sessionServer,"/api/session"),s("Updating server session: ",n),e.next=6,B().post(n,t,{withCredentials:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),s("Failed to update session server: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),z=function(){var e=t(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t="".concat(a.sessionServer,"/api/session"),s("Deleting server session: ",t),e.next=6,B().delete(t,{withCredentials:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),s("Failed to delete server session: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),X=function(){var e=t(o().mark((function e(){var t,n,r,i,a,c,u,l,f,d,p,h,m,v,w,g,y,b,x,k,E,S,T,A;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s("Entitlements: inside getSession"),e.prev=1,l=q(),s("Session: __MNG_Session = ",l),f=JSON.parse(l),d=f.idToken,p=f.entitlementToken,h=f.expiration,m=f.entitlementSource,v=f.isEntitled,w=f.adFree,g=f.entitlementLevel,r=h,i=m,a=v,c=w,u=g,s("Session: check both tokens: ",t=d,n=p),void 0!==d&&void 0!==p&&null!==d&&null!==p){e.next=32;break}return s("Session: missing id or entitlements, try session server"),e.next=17,K();case 17:y=e.sent,b=y.idToken,x=y.entitlementToken,k=y.expiration,E=y.entitlementSource,S=y.isEntitled,T=y.adFree,A=y.entitlementLevel,t=b,n=x,r=k,i=E,a=S,c=T,u=A;case 32:e.next=37;break;case 34:e.prev=34,e.t0=e.catch(1),s("Failed to get session: ",e.t0);case 37:return s("Returning session: ",t,n),e.abrupt("return",{idToken:t,entitlementToken:n,expiration:r,entitlementSource:i,isEntitled:a,adFree:c,entitlementLevel:u});case 39:case"end":return e.stop()}}),e,null,[[1,34]])})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=t(o().mark((function e(t){var n,r,i,a,c,u,l,f,d,p,h,m,v,w,g,y,b,x,k,E,S,T,A,N,_;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=q(),r=JSON.parse(n),i=r.idToken,a=void 0===i?null:i,c=r.entitlementToken,u=void 0===c?null:c,l=r.expiration,f=void 0===l?null:l,d=r.entitlementSource,p=void 0===d?null:d,h=r.isEntitled,m=void 0===h?null:h,v=r.adFree,w=void 0===v?null:v,g=r.entitlementLevel,y=void 0===g?null:g,b=t.idToken,x=t.entitlementToken,k=t.expiration,E=t.entitlementSource,S=t.isEntitled,T=t.adFree,A=t.entitlementLevel,N={idToken:void 0!==b?b:a,entitlementToken:void 0!==x?x:u,expiration:void 0!==k?k:f,entitlementSource:void 0!==E?E:p,isEntitled:void 0!==S?S:m,adFree:void 0!==T?T:w,entitlementLevel:void 0!==A?A:y},_=JSON.stringify(N),H(_),n===_){e.next=11;break}return e.next=11,W(N);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),s("Unable to save session: ",e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t){return e.apply(this,arguments)}}(),V=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s("Ending session..."),P(),e.next=4,z();case 4:localStorage.removeItem(x);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=t(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===D){e.next=2;break}return e.abrupt("return",D);case 2:return t=a.auth0Domain,n=a.auth0ClientId,e.next=5,createAuth0Client({domain:t,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return D=e.sent,e.abrupt("return",D);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var Z=function(){var e=t(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s("Attempting to logout..."),!a.sessionManagementEnabled){e.next=6;break}return e.next=4,V();case 4:e.next=7;break;case 6:P();case 7:return e.prev=7,s("Cycling through logout callbacks..."),t=window.MNGAuthentication.logoutCallbacks.map((function(e){return e()})),e.next=12,Promise.all(t);case 12:s("Finished cycling through logout callbacks."),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),s("Failed to cycle through logout callbacks: ",e.t0);case 18:return Object.keys(localStorage).filter((function(e){return e.includes("auth0")})).forEach((function(e){localStorage.removeItem(e),s("Removed Auth0 storage object...")})),U("hhsl"),e.next=23,new Promise((function(e){var t=setTimeout((function(){"undefined"!=typeof Connext?(s("Connext actually did load..."),clearTimeout(t),e(!0)):(s("Connext did not load in time. Resolving false..."),clearTimeout(t),e(!1))}),6e3);"undefined"!=typeof Connext?(s("Connext already ready."),clearTimeout(t),e(!0)):(s("Listening for Connext Ready event..."),document.addEventListener("onFinish",(function(){clearTimeout(t),s("Connext loaded!"),e(!0)})))}));case 23:if(!e.sent){e.next=41;break}if(window.history.replaceState({additionalInformation:"Updated the URL to prevent another login cycle"},"Home",window.location.origin),s("About to call Connext Logout..."),!I()){e.next=32;break}return e.next=30,Connext.Logout();case 30:e.next=39;break;case 32:if("function"!=typeof Connext._logout){e.next=37;break}return e.next=35,Connext._logout();case 35:e.next=39;break;case 37:return e.next=39,Connext.Logout();case 39:e.next=47;break;case 41:return s("Connext Logout was NOT called"),e.next=44,Q();case 44:n=e.sent,s("Calling Auth0 logout..."),n.logout({returnTo:window.location.origin});case 47:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=0;for(var t in localStorage){var n=2*localStorage[t].length/1024/1024;!Number.isNaN(n)&&localStorage.hasOwnProperty(t)&&(e+=n)}return e},te=function(){var e=t(o().mark((function e(t,n,r,i){var c,u,l,f,d,p,h,m,v,w,g;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s("Attempting to login..."),ee()>4.5&&localStorage.clear(),window.MNGAuthentication.preAuthGTMEvents.forEach((function(e){return G(e)})),s("Cycled through preauth GTM events."),i&&(c=[],u=window.localStorage.getItem("callbackEvents"),l=JSON.parse(u),c=l&&l.length>0?F(new Set([].concat(F(i),F(l)))):i,window.localStorage.setItem("callbackEvents",JSON.stringify(c))),f=null,e.next=7,Q();case 7:if(d=e.sent,p=k(),h=p.origin,m=new URL("".concat(h,"/callback")),v={},p.searchParams.get("regwall")&&(p.searchParams.get("returnUrl")&&(w=p.searchParams.get("returnUrl")),p.searchParams.get("auth_redirect")&&(w=p.searchParams.get("auth_redirect"))),p.pathname.startsWith("/login")||p.pathname.startsWith("/callback")?p.searchParams.get("returnUrl")&&m.searchParams.set("auth_redirect",p.searchParams.get("returnUrl")):m.searchParams.set("auth_redirect",p.toString()),w&&"regwall"!==t&&m.searchParams.set("auth_redirect",w),"true"===p.searchParams.get("close-after-finish")&&m.searchParams.set("close-after-finish","true"),"true"!==p.searchParams.get("ssl")){e.next=23;break}if(!a.sessionManagementEnabled){e.next=22;break}return e.next=20,V();case 20:e.next=23;break;case 22:P();case 23:return null!==(f=p.searchParams.get("login-with"))?v.connection=f:n&&(v.connection=n),g="none",t&&"regwall"===t&&(m.searchParams.set("regwall","true"),g="signUp",s("Logging in with regwall")),t&&(m.searchParams.set("loginsource",t),s("Logging in with ".concat(t))),r&&(v.login_hint=r),v.redirect_uri=m.toString(),v.initialScreen=g,"googleonetap"!==t&&(v.prompt="select_account"),e.next=34,d.loginWithRedirect(v);case 34:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}();window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.oidcLoginCallbacks=[];var ne=function(){var e=t(o().mark((function e(){var t,n,r,i,a,c,u,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j();case 2:if(t=e.sent,""===(n=t.idToken)){e.next=16;break}return e.prev=5,r=L(n),i=r.email,a=r.picture,c=r.sub,(u=c.split("|")).pop(),l=u.join("|"),e.abrupt("return",{authenticated:!0,email:i,picture:a,userId:c,connectionSource:l});case 13:e.prev=13,e.t0=e.catch(5),s("Unable to parse idToken: ",n," Error: ",e.t0);case 16:return e.abrupt("return",{authenticated:!1});case 17:case"end":return e.stop()}}),e,null,[[5,13]])})));return function(){return e.apply(this,arguments)}}();window.MNGAuthentication.login=te,window.MNGAuthentication.logout=Z,window.MNGAuthentication.getUserInfo=ne;var re=function(e){try{"string"==typeof e&&C(v,e,{domain:_(),path:"/",expires:365,secure:!0})}catch(e){s("Failed to set auth0_sub cookie: ",e)}},oe=function(e){if(!E(v))try{var t=e.claims;if(null==t||"object"!==i(t)&&!Object.keys(t).includes("sub"))return;re(t.sub)}catch(e){s("Failed to set auth0_sub: ",e)}};var ie=function(){var e=window.localStorage.getItem(x);return JSON.parse(e)},ae=function(){var e=t(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.sessionManagementEnabled){e.next=5;break}return e.next=3,X();case 3:return t=e.sent,e.abrupt("return",t);case 5:return n=ie(),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),se=function(){var e=t(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{s("About to decode token before saving: ",t),n=L(t),window.localStorage.setItem(x,JSON.stringify({entitlementToken:t,expiration:n.session_exp,entitlementSource:n.entitlement_source,isEntitled:n.entitlement_entitled,adFree:n.entitlement_extras_adfree||!1,entitlementLevel:n.entitlement_level})),C(b,t,{path:"/",domain:_(),expires:365,secure:!0})}catch(e){s("Entitlements: Failed to save token: ",e)}if(!a.sessionManagementEnabled){e.next=4;break}return e.next=4,Y({entitlementToken:t});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=function(){var e=t(o().mark((function e(n){var r,i,c,u,l,f,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!1,!a.sessionManagementEnabled){e.next=9;break}return e.next=4,X();case 4:i=e.sent,c=L(i.idToken),r=void 0!==c&&c.email_verified,e.next=14;break;case 9:return e.next=11,j();case 11:u=e.sent,""!==(l=u.idToken)&&(r=L(l).email_verified);case 14:if(s("Entitlements: refresh JWT start..."),n){e.next=17;break}return e.abrupt("return",new Error("No token to refresh"));case 17:return s("Entitlements refresh: entitlement token: ",n),s("Entitlements refresh: auth0 verified: ",r),f={jwt:n,verified:r},d="".concat(a.entitlementsEndpoint,"session/refresh"),e.abrupt("return",new Promise((function(e){var n,r;$.ajax({type:"POST",url:d,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":a.entitlementsApiKey},data:JSON.stringify(f),success:(r=t(o().mark((function t(n){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"==typeof n.jwt){t.next=2;break}return t.abrupt("return",new Error("Entitlements API returned no JWT"));case 2:return s("Entitlements: Request successful: ",n),t.next=5,se(n.jwt);case 5:return t.abrupt("return",e(n.jwt));case 6:case"end":return t.stop()}}),t)}))),function(e){return r.apply(this,arguments)}),error:(n=t(o().mark((function e(t,n,r){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s("Entitlements: Request Failure: ",r),R(),!a.sessionManagementEnabled){e.next=5;break}return e.next=5,Y({entitlementToken:null});case 5:return e.abrupt("return",new Error("Entitlements Refresh failure"));case 6:case"end":return e.stop()}}),e)}))),function(e,t,r){return n.apply(this,arguments)})})})));case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ue=function(e){return new Promise((function(n,r){if(s("Entitlements: create token start..."),s("Entitlements: createToken payload with ",e),"object"!==i(e)&&"string"!=typeof e.sub)return r(new Error("No user info to create token"));var c,u,l=T(e.sub),f=N();e.sub?l?(c=A(e.sub),f=(u=f).includes("trbdevcloud")?k().hostname.split(".")[1].split("-")[0]:u):c=e.sub:e.ssor_id&&(c=e.ssor_id);var d,p={accessToken:e.accessToken,uuid:c,email:e.email,verified:e.email_verified,publication:f.replace(".local",".com"),source:!(!l&&!e.ssor_id)&&"TRIBUNE"},h="".concat(a.entitlementsEndpoint,"session/create");return s("Entitlements: create payload",p),$.ajax({type:"POST",url:h,headers:{Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Api-Key":a.entitlementsApiKey},data:JSON.stringify(p),success:(d=t(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"==typeof t.jwt){e.next=2;break}return e.abrupt("return",r(new Error("Entitlements API returned no JWT")));case 2:return s("Entitlements: Token Created: ",t),e.next=5,se(t.jwt);case 5:return e.abrupt("return",n(t.jwt));case 6:case"end":return e.stop()}}),e)}))),function(e){return d.apply(this,arguments)}),error:function(e,t,n){s("Entitlements: Create Token Failure: ",t,n),r(new Error("Entitlements: Create Token Failure"))}})}))},le=function(){var e=t(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ae();case 3:if(t=e.sent,!(Date.now()/1e3{var e={553:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new I(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=C(a,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var s=l(e,t,n);if("normal"===s.type){if(r=n.done?h:p,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",m={};function g(){}function y(){}function v(){}var w={};s(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(N([])));x&&x!==n&&r.call(x,i)&&(w=x);var E=v.prototype=g.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,c){var s=l(e[o],e,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function N(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),L(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},757:(e,t,n)=>{e.exports=n(553)},669:(e,t,n)=>{e.exports=n(609)},448:(e,t,n)=>{"use strict";var r=n(867),o=n(26),i=n(372),a=n(327),c=n(97),s=n(109),u=n(985),l=n(61),d=n(655),p=n(263);e.exports=function(e){return new Promise((function(t,n){var f,h=e.data,m=e.headers,g=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(h)&&delete m["Content-Type"];var v=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+b)}var x=c(e.baseURL,e.url);function E(){if(v){var r="getAllResponseHeaders"in v?s(v.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v};o((function(e){t(e),y()}),(function(e){n(e),y()}),i),v=null}}if(v.open(e.method.toUpperCase(),a(x,e.params,e.paramsSerializer),!0),v.timeout=e.timeout,"onloadend"in v?v.onloadend=E:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(E)},v.onabort=function(){v&&(n(l("Request aborted",e,"ECONNABORTED",v)),v=null)},v.onerror=function(){n(l("Network Error",e,null,v)),v=null},v.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",v)),v=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in v&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:v.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(v.withCredentials=!!e.withCredentials),g&&"json"!==g&&(v.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&v.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&v.upload&&v.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){v&&(n(!e||e&&e.type?new p("canceled"):e),v.abort(),v=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),h||(h=null),v.send(h)}))}},609:(e,t,n)=>{"use strict";var r=n(867),o=n(849),i=n(321),a=n(185);var c=function e(t){var n=new i(t),c=o(i.prototype.request,n);return r.extend(c,i.prototype,n),r.extend(c,n),c.create=function(n){return e(a(t,n))},c}(n(655));c.Axios=i,c.Cancel=n(263),c.CancelToken=n(972),c.isCancel=n(502),c.VERSION=n(288).version,c.all=function(e){return Promise.all(e)},c.spread=n(713),c.isAxiosError=n(268),e.exports=c,e.exports.default=c},263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},972:(e,t,n)=>{"use strict";var r=n(263);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var r=n(867),o=n(327),i=n(782),a=n(572),c=n(185),s=n(875),u=s.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var d=e;n.length;){var p=n.shift(),f=n.shift();try{d=p(d)}catch(e){f(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=c(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=l},782:(e,t,n)=>{"use strict";var r=n(867);function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},97:(e,t,n)=>{"use strict";var r=n(793),o=n(303);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},61:(e,t,n)=>{"use strict";var r=n(481);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},572:(e,t,n)=>{"use strict";var r=n(867),o=n(527),i=n(502),a=n(655),c=n(263);function s(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new c("canceled")}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},185:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){t=t||{};var n={};function o(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function i(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return o(void 0,t[e])}function c(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:o(void 0,e[n]):o(void 0,t[n])}function s(n){return n in t?o(e[n],t[n]):n in e?o(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:s};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,o=t(e);r.isUndefined(o)&&t!==s||(n[e]=o)})),n}},26:(e,t,n)=>{"use strict";var r=n(61);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},527:(e,t,n)=>{"use strict";var r=n(867),o=n(655);e.exports=function(e,t,n){var i=this||o;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},655:(e,t,n)=>{"use strict";var r=n(867),o=n(16),i=n(481),a={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=n(448)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u},288:e=>{e.exports={version:"0.24.0"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(867);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}if(i){var c=e.indexOf("#");-1!==c&&(e=e.slice(0,c)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var c=[];c.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&c.push("expires="+new Date(n).toGMTString()),r.isString(o)&&c.push("path="+o),r.isString(i)&&c.push("domain="+i),!0===a&&c.push("secure"),document.cookie=c.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},985:(e,t,n)=>{"use strict";var r=n(867);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16:(e,t,n)=>{"use strict";var r=n(867);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},109:(e,t,n)=>{"use strict";var r=n(867),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},875:(e,t,n)=>{"use strict";var r=n(288).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(o(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var c=e[i],s=void 0===c||a(c,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},867:(e,t,n)=>{"use strict";var r=n(849),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";function e(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=t.apply(n,r);function c(t){e(a,o,i,c,s,"next",t)}function s(t){e(a,o,i,c,s,"throw",t)}c(void 0)}))}}var r=n(757),o=n.n(r);const i={debug:!!window.authentication_config.debug,sessionManagementEnabled:!!window.authentication_config&&"1"===window.authentication_config.sessionManagementEnabled,sessionServer:window.authentication_config?window.authentication_config.sessionServer:"",entitlementsEnabled:!!window.authentication_config&&"1"===window.authentication_config.entitlementsEnabled,dropdownEnabled:!!window.authentication_config&&"1"===window.authentication_config.dropdownEnabled,oneTapEnabled:!!window.authentication_config&&"1"===window.authentication_config.oneTapEnabled,auth0Domain:window.authentication_config?window.authentication_config.auth0Domain:"",auth0ClientId:window.authentication_config?window.authentication_config.auth0ClientId:"",entitlementsEndpoint:window.entitlements_config?window.entitlements_config.entitlementsEndpoint:"",entitlementsApiKey:window.entitlements_config?window.entitlements_config.entitlementsAPIKey:"",googleClientId:window.authentication_config?window.authentication_config.googleClientId:"",newsletterId:window.authentication_config?window.authentication_config.newsletterId:0,connextStorageKey:"",auth0SubKey:"auth0_sub",auth0Authenticated:"auth0.is.authenticated",secret:window.authentication_config?window.authentication_config.pluginSecret:""};const a=function(){if(i.debug){for(var e,t=arguments.length,n=new Array(t),r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function p(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(d(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return d(t)}}function f(e){this.message=e}f.prototype=new Error,f.prototype.name="InvalidTokenError";const h=function(e,t){if("string"!=typeof e)throw new f("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(p(e.split(".")[n]))}catch(e){throw new f("Invalid token specified: "+e.message)}},m="auth0_sub",g="_sp_uid",y="c_mId",v="cs_mId",w="mng-entitlements",b="__MNG_Session";var x=function(){var e=window.location.href;return new URL(e)},E=function(e){for(var t="".concat(e,"="),n=decodeURIComponent(document.cookie).split(";"),r=0;r1&&e.split("ssor|")[1]},C=function(){var e=x().hostname.split(".");return"".concat(e[e.length-2],".").concat(e[e.length-1])},A=function(){var e=C();return".".concat(e)},L=function(e,t,n){var r="".concat(e,"=").concat(t,";");void 0!==n?(a("Setting cookie with options: ",n),Object.entries(n).forEach((function(e){var t=u(e,2),n=t[0],o=t[1];if("expires"===n){var i=new Date;i.setTime(i.getTime()+24*o*60*60*1e3),r+="expires=".concat(i.toUTCString(),";")}else r+="".concat(n,"=").concat(o,";")}))):r+="path=/;",document.cookie=r},I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e,"= ;expires= Thu, 01 Jan 1970 00:00:00 GMT;"),r=C(),o="www".concat(r),i=".www".concat(r),a=[r,o,i];Object.entries(t).forEach((function(e){var t=u(e,2),r=t[0],o=t[1];n+="".concat(r,"=").concat(o,";")})),0===Object.keys(t).length&&(n+="path=/;"),document.cookie=n,a.forEach((function(e){document.cookie=n.concat("domain=",e,";")}))},N=function(){return x().host.replace("www.","").replace("develop.","").replace("preprod","")},T=function(e){return h(e)},_=function(){return"complete"===document.readyState},U=function(){return new Promise((function(e,t){void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.authenticationReady?(a("Authentication already ready: ",window.MNGAuthentication.authenticationReady),e(window.MNGAuthentication.authenticationReady)):(a("Adding authenticationReady listener..."),window.addEventListener("authenticationReady",(function(n){try{var r=n.detail||{};a("Event: authentication ready: ",r),e(r)}catch(e){a(e),t(e)}}),!1))}))},O=function(){return new Promise((function(e,n){i.entitlementsEnabled?void 0!==window.MNGAuthentication&&void 0!==window.MNGAuthentication.entitlementsReady?(a("Entitlements already ready: ",window.MNGAuthentication.entitlementsReady),e(window.MNGAuthentication.entitlementsReady)):(a("Adding entitlementsReady listener..."),window.addEventListener("entitlementsReady",function(){var r=t(o().mark((function t(r){var i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{i=r.detail||{},a("Event: entitlements ready: ",i),e(i)}catch(e){a(e),n(e)}case 1:case"end":return t.stop()}}),t)})));return function(e){return r.apply(this,arguments)}}(),!1)):e(!1)}))},P=function(){a("Clearing entitlements...");try{I(w,{path:"/"})}catch(e){a("Failed to delete legacy cookie: ",e)}try{I(w,{path:"/",domain:C(),expires:365,secure:!0})}catch(e){a("Failed to delete entitlements cookie: ",e)}try{window.localStorage.removeItem(b)}catch(e){a("Failed to remove local storage: ",e)}},B=function(){I(m),I(g),I(y),I(v),P()},j=function(){var e=x();return!["local","develop","preprod"].some((function(t){return e.origin.includes(t)}))},M=function(e){a("Removing storageObject : ",e),void 0!==window.localStorage.getItem(e)&&(window.localStorage.removeItem(e),a("Storage Object removed : ",e))};var R="#primary-menu",G="#pushnav",F=".log-in-button",D=".subscribe-visibility",q=".log-out-button",H="dfm-digisubs-menu",J="dfm-digisubs-push-menu",W="mega-subscribe-button",z=function(){return document.querySelector(R)},K=function(){return document.querySelector(G)},X=function(){return document.getElementById(H)},Y=function(){return document.getElementById(J)},V=function(){return X()?X().querySelector(F):null},Z=function(){return V()?V().querySelector("a"):null},Q=function(){return document.querySelectorAll(D)};function ee(e){return(ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ne=function(e){try{window.dataLayer.push({event:e}),a("ANALYTICS: ".concat(e," event")),a("ANALYTICS: GA/ datalayer ",window.dataLayer)}catch(t){a("ANALYTICS: Failed to send ".concat(e," event: "),t)}};var re,oe=n(669),ie=n.n(oe),ae=function(){try{var e=localStorage.getItem(b);return"string"==typeof e?e:"{}"}catch(e){a("Unable to get session from local storage: ",e)}return"{}"},ce=function(e){try{localStorage.setItem(b,e)}catch(e){a("Unable to save session from local storage: ",e)}},se=function(){var e=t(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n="".concat(i.sessionServer,"/api/session"),a("Updating server session: ",n),e.next=6,ie().post(n,t,{withCredentials:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),a("Failed to update session server: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),ue=function(){var e=t(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t="".concat(i.sessionServer,"/api/session"),a("Deleting server session: ",t),e.next=6,ie().delete(t,{withCredentials:!0});case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),a("Failed to delete server session: ",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),le=function(){var e=t(o().mark((function e(t){var n,r,i,c,s,u,l,d,p,f,h,m,g,y,v,w,b,x,E,k,S,C,A,L,I;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=ae(),r=JSON.parse(n),i=r.idToken,c=void 0===i?null:i,s=r.entitlementToken,u=void 0===s?null:s,l=r.expiration,d=void 0===l?null:l,p=r.entitlementSource,f=void 0===p?null:p,h=r.isEntitled,m=void 0===h?null:h,g=r.adFree,y=void 0===g?null:g,v=r.entitlementLevel,w=void 0===v?null:v,b=t.idToken,x=t.entitlementToken,E=t.expiration,k=t.entitlementSource,S=t.isEntitled,C=t.adFree,A=t.entitlementLevel,L={idToken:void 0!==b?b:c,entitlementToken:void 0!==x?x:u,expiration:void 0!==E?E:d,entitlementSource:void 0!==k?k:f,isEntitled:void 0!==S?S:m,adFree:void 0!==C?C:y,entitlementLevel:void 0!==A?A:w},I=JSON.stringify(L),ce(I),n===I){e.next=11;break}return e.next=11,se(L);case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),a("Unable to save session: ",e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a("Ending session..."),B(),e.next=4,ue();case 4:localStorage.removeItem(b);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=t(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===re){e.next=2;break}return e.abrupt("return",re);case 2:return t=i.auth0Domain,n=i.auth0ClientId,e.next=5,createAuth0Client({domain:t,client_id:n,useRefreshTokens:!0,cacheLocation:"localstorage",audience:"access-extension"});case 5:return re=e.sent,e.abrupt("return",re);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.logoutCallbacks=[];var fe=function(){var e=t(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a("Attempting to logout..."),!i.sessionManagementEnabled){e.next=6;break}return e.next=4,de();case 4:e.next=7;break;case 6:B();case 7:return e.prev=7,a("Cycling through logout callbacks..."),t=window.MNGAuthentication.logoutCallbacks.map((function(e){return e()})),e.next=12,Promise.all(t);case 12:a("Finished cycling through logout callbacks."),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),a("Failed to cycle through logout callbacks: ",e.t0);case 18:return Object.keys(localStorage).filter((function(e){return e.includes("auth0")})).forEach((function(e){localStorage.removeItem(e),a("Removed Auth0 storage object...")})),M("hhsl"),e.next=23,new Promise((function(e){var t=setTimeout((function(){"undefined"!=typeof Connext?(a("Connext actually did load..."),clearTimeout(t),e(!0)):(a("Connext did not load in time. Resolving false..."),clearTimeout(t),e(!1))}),6e3);"undefined"!=typeof Connext?(a("Connext already ready."),clearTimeout(t),e(!0)):(a("Listening for Connext Ready event..."),document.addEventListener("onFinish",(function(){clearTimeout(t),a("Connext loaded!"),e(!0)})))}));case 23:if(!e.sent){e.next=41;break}if(window.history.replaceState({additionalInformation:"Updated the URL to prevent another login cycle"},"Home",window.location.origin),a("About to call Connext Logout..."),!j()){e.next=32;break}return e.next=30,Connext.Logout();case 30:e.next=39;break;case 32:if("function"!=typeof Connext._logout){e.next=37;break}return e.next=35,Connext._logout();case 35:e.next=39;break;case 37:return e.next=39,Connext.Logout();case 39:e.next=47;break;case 41:return a("Connext Logout was NOT called"),e.next=44,pe();case 44:n=e.sent,a("Calling Auth0 logout..."),n.logout({returnTo:window.location.origin});case 47:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(){return e.apply(this,arguments)}}(),he=function(){var e=0;for(var t in localStorage){var n=2*localStorage[t].length/1024/1024;!Number.isNaN(n)&&localStorage.hasOwnProperty(t)&&(e+=n)}return e},me=function(){var e=t(o().mark((function e(t,n,r,c){var s,u,l,d,p,f,h,m,g,y,v;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a("Attempting to login..."),he()>4.5&&localStorage.clear(),window.MNGAuthentication.preAuthGTMEvents.forEach((function(e){return ne(e)})),a("Cycled through preauth GTM events."),c&&(s=[],u=window.localStorage.getItem("callbackEvents"),l=JSON.parse(u),s=l&&l.length>0?te(new Set([].concat(te(c),te(l)))):c,window.localStorage.setItem("callbackEvents",JSON.stringify(s))),d=null,e.next=7,pe();case 7:if(p=e.sent,f=x(),h=f.origin,m=new URL("".concat(h,"/callback")),g={},f.searchParams.get("regwall")&&(f.searchParams.get("returnUrl")&&(y=f.searchParams.get("returnUrl")),f.searchParams.get("auth_redirect")&&(y=f.searchParams.get("auth_redirect"))),f.pathname.startsWith("/login")||f.pathname.startsWith("/callback")?f.searchParams.get("returnUrl")&&m.searchParams.set("auth_redirect",f.searchParams.get("returnUrl")):m.searchParams.set("auth_redirect",f.toString()),y&&"regwall"!==t&&m.searchParams.set("auth_redirect",y),"true"===f.searchParams.get("close-after-finish")&&m.searchParams.set("close-after-finish","true"),"true"!==f.searchParams.get("ssl")){e.next=23;break}if(!i.sessionManagementEnabled){e.next=22;break}return e.next=20,de();case 20:e.next=23;break;case 22:B();case 23:return null!==(d=f.searchParams.get("login-with"))?g.connection=d:n&&(g.connection=n),v="none",t&&"regwall"===t&&(m.searchParams.set("regwall","true"),v="signUp",a("Logging in with regwall")),t&&(m.searchParams.set("loginsource",t),a("Logging in with ".concat(t))),r&&(g.login_hint=r),g.redirect_uri=m.toString(),g.initialScreen=v,"googleonetap"!==t&&(g.prompt="select_account"),e.next=34,p.loginWithRedirect(g);case 34:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}();window.MNGAuthentication=window.MNGAuthentication||{},window.MNGAuthentication.oidcLoginCallbacks=[];var ge=function(){var e=t(o().mark((function e(){var t,n,r,i,c,s,u,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U();case 2:if(t=e.sent,""===(n=t.idToken)){e.next=16;break}return e.prev=5,r=T(n),i=r.email,c=r.picture,s=r.sub,(u=s.split("|")).pop(),l=u.join("|"),e.abrupt("return",{authenticated:!0,email:i,picture:c,userId:s,connectionSource:l});case 13:e.prev=13,e.t0=e.catch(5),a("Unable to parse idToken: ",n," Error: ",e.t0);case 16:return e.abrupt("return",{authenticated:!1});case 17:case"end":return e.stop()}}),e,null,[[5,13]])})));return function(){return e.apply(this,arguments)}}();window.MNGAuthentication.login=me,window.MNGAuthentication.logout=fe,window.MNGAuthentication.getUserInfo=ge;function ye(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"deeppink";a("employee tools: add spoof banner");var n=document.getElementById("page").querySelector("header");this.spoofBanner.style.backgroundColor=t,this.spoofBanner.id="spoof-banner",this.spoofContent.textContent=e,this.spoofBanner.append(this.spoofContent),n.prepend(this.spoofBanner)}},{key:"init",value:(s=t(o().mark((function t(){var n,r,i,c,s,u,l,d,p,f,h,m,g,y,v,w,b,x,E,k,S,C,A,L,I;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.MNGAuthentication.logoutCallbacks.push(e.deleteLocalStorageSpoofUser),n=window.localStorage.getItem("spoof-user"),r=window.localStorage.getItem("manual-expiration"),i=be(this.source,this.email),a("employee tools: validate employee:",i),this.email&&this.employeeId&&(n||!this.source||i.employeeAccess&&"corporate"===i.accessGroup)&&(this.source||n)){t.next=7;break}return t.abrupt("return");case 7:(c=document.createElement("div")).id="employee-debugger",c.classList="employee-debugger-close",(s=document.createElement("div")).id="employee-debugger-button",s.innerHTML='\n\t\t\t\n\t\t',(u=document.createElement("div")).id="employee-debugger-content",u.innerHTML="\n\t\t\t

MNG Debugger

\n\t\t",(l=document.createElement("div")).id="employee-debugger-toggles",(d=document.createElement("div")).id="employee-spoof-wrapper",(p=document.createElement("label")).textContent="Spoof a user",this.userSpoofCheckbox=document.createElement("input"),this.userSpoofCheckbox.type="checkbox",this.userSpoofCheckbox.id="user-spoof-control",f="You are currently entitled as the user 🤫 ".concat(n," 🤫"),h=document.querySelectorAll(".logged-in-source"),(m=document.createElement("div")).id="employee-datepicker-wrapper",(g=document.createElement("label")).textContent="Set expiration",this.datePickerCheckbox=document.createElement("input"),this.datePickerCheckbox.type="checkbox",this.datePickerCheckbox.id="expiration-control",(y=document.createElement("div")).id="datepicker-wrapper",(v=document.createElement("input")).id="expiration-picker",v.type="datetime-local",(w=document.createElement("button")).id="apply-exp-btn",w.className="expiration-btn",(b=document.createElement("button")).id="reset-exp-btn",b.className="expiration-btn",(x=w.appendChild(document.createElement("span"))).className="tooltiptext",x.textContent="Apply date",(E=b.appendChild(document.createElement("span"))).className="tooltiptext",E.textContent="Reset to original",document.body.append(c),document.getElementById("employee-debugger").append(s,u),document.getElementById("employee-debugger-content").append(l),document.getElementById("employee-debugger-toggles").append(d,m),document.getElementById("employee-spoof-wrapper").append(p,this.userSpoofCheckbox),document.getElementById("employee-datepicker-wrapper").append(g,this.datePickerCheckbox,y),document.getElementById("datepicker-wrapper").append(v,w,b),document.getElementById("employee-debugger").append(s,u),k=JSON.parse(localStorage.getItem("__MNG_Session")),S=T(k.entitlementToken),C=new Date(1e3*k.expiration),A=new Date(1e3*S.session_exp),v.value=C.toISOString().replace(/.\d+Z$/g,""),(L=document.createElement("div")).style.padding="5px 0px 0px 10px",L.innerHTML='\n\t\t

Entitlements JWT

\n\t\t',Object.keys(S).forEach((function(e){var t=document.createElement("div");t.className="list-content";var n=document.createElement("p");n.className="collapsible-list",n.innerHTML="\n\t\t\t".concat(e,'\n\t\t\t+\n\t\t\t\n\t\t\t');var r=n.firstChild.nextElementSibling;r.style.display="inline";var o=n.lastChild.previousElementSibling,i=document.createElement("small");i.className="obj-value",i.innerHTML='⤷ ').concat(S[e],""),t.append(n,i),L.append(t),n.addEventListener("click",(function(){var e=n.nextElementSibling;"block"===e.style.display?(e.style.display="none",r.style.display="inline",o.style.display="none"):(e.style.display="block",o.style.display="inline",r.style.display="none")})),i.addEventListener("click",(function(){var t=document.getElementById("".concat(e,"_value")).innerHTML;navigator.clipboard&&navigator.clipboard.writeText(t)}))})),(I=document.createElement("div")).style.padding="5px 0px 0px 10px",I.innerHTML='\n\t\t\t\t

Connext answer

\n\t\t\t\t',document.addEventListener("onInit",(function(){if("undefined"==typeof Connext){var e=document.createElement("p");e.className="connext-error-message",e.innerHTML="Something went wrong, reload may solve the issue.",I.append(e)}else{var t=Connext,n={};n.conversation=t.Storage.GetCurrentConversation().Name,n.userState=t.Storage.GetUserState(),n.campaign=t.Storage.GetLocalConfiguration().Campaign.Name,n.meter=t.Storage.GetLocalConfiguration().DynamicMeter.Name,Object.keys(n).forEach((function(e){var t=document.createElement("div");t.className="list-content";var r=document.createElement("p");r.className="collapsible-list",r.innerHTML="\n\t\t\t\t".concat(e,'\n\t\t\t\t+\n\t\t\t\t\n\t\t\t\t');var o=r.firstChild.nextElementSibling;o.style.display="inline";var i=r.lastChild.previousElementSibling,a=document.createElement("small");a.className="obj-value",a.innerHTML='⤷ ').concat(n[e],""),t.append(r,a),I.append(t),r.addEventListener("click",(function(){var e=r.nextElementSibling;"block"===e.style.display?(e.style.display="none",o.style.display="inline",i.style.display="none"):(e.style.display="block",i.style.display="inline",o.style.display="none")})),a.addEventListener("click",(function(){var t=document.getElementById("".concat(e,"_value")).innerHTML;navigator.clipboard&&navigator.clipboard.writeText(t)}))}))}})),document.getElementById("employee-debugger-content").append(l,L,I),document.getElementById("employee-debugger-toggles").append(d),document.getElementById("employee-spoof-wrapper").append(p,this.userSpoofCheckbox),document.getElementById("employee-debugger-button").addEventListener("click",(function(){console.log("clicked debugger");var e=document.getElementById("employee-debugger");e.classList.toggle("employee-debugger-close"),e.classList.contains("employee-debugger-close")?e.style.top="50%":e.style.top="20%"})),!n&&this.source&&this.source.toLowerCase().includes("employee")&&te(h).forEach((function(e){var t=e;t.textContent="Subscriber - Employee",t.style.color="blue"})),n&&(this.addSpoofBannerToPage(f),this.userSpoofCheckbox.checked=!0,te(h).forEach((function(e){var t=e;t.textContent="Subscriber - Employee (spoofing)",t.style.color="blue"}))),document.getElementById("apply-exp-btn").addEventListener("click",(function(){var t,n=null===(t=new Date(v.value))||void 0===t?void 0:t.getTime(),r=Math.floor(n/1e3);k.expiration=r,localStorage.setItem("__MNG_Session",JSON.stringify(k)),window.localStorage.setItem("manual-expiration",!0),e.interval&&clearInterval(e.interval),e.timeLeftPopUp(k.expiration)})),document.getElementById("reset-exp-btn").addEventListener("click",(function(){v.value=A.toISOString().replace(/.\d+Z$/g,"")})),this.addEventListeners(),r&&(this.datePickerCheckbox.click(),e.timeLeftPopUp(k.expiration));case 82:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})}],c=[{key:"deleteLocalStorageSpoofUser",value:function(){window.localStorage.removeItem("spoof-user"),a("Removed spoofed-user storage object.")}},{key:"timeLeftPopUp",value:function(e){var t=document.getElementById("expiration-pop-up");if(t)t.classList="",document.getElementById("time-left-text").textContent="Calculating time...";else{var n=document.createElement("div");n.id="expiration-pop-up";var r=n.appendChild(document.createElement("p"));r.id="time-left-text",r.textContent="Calculating time...",document.getElementById("employee-debugger").prepend(n)}var o=new Date(1e3*e).toLocaleString(),i=new Date(o).getTime();this.interval=setInterval((function(){var e=(new Date).getTime(),n=i-e,r=Math.floor(Math.abs(n/864e5))||0,o=Math.floor(Math.abs(n%864e5)/36e5)||0,a=Math.floor(Math.abs(n%36e5)/6e4)||0,c=Math.floor(Math.abs(n%6e4)/1e3);document.getElementById("time-left-text").textContent="Token expires in: ".concat(r,"d ").concat(o,"h ").concat(a,"m ").concat(c,"s 🕛"),n<0&&(document.getElementById("time-left-text").textContent="Token expired by: ".concat(r,"d ").concat(o,"h ").concat(a,"m ").concat(c,"s 🕛"),t.classList.contains("expiredToken")||(t.classList="expiredToken"))}),1e3)}},{key:"deleteLocalStorageManualExpiration",value:function(){window.localStorage.getItem("manual-expiration")&&(window.localStorage.removeItem("manual-expiration"),clearInterval(this.interval),document.getElementById("expiration-pop-up").remove())}}],r&&ye(n.prototype,r),c&&ye(n,c),e}(),ke=function(){var e=t(o().mark((function e(n,r){var i,c,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a("Employee Tools: employeeAds: "),i=be(n,r),a("employee tools: validate employee:",i),"corporate"===i.accessGroup&&i.employeeAccess){e.next=5;break}return e.abrupt("return",!1);case 5:return e.next=7,new Promise((function(e){if(_())e();else{a("UIHandler: Employee Debugger: ","Waiting for the digisubs debugger toolbox to load...");var n=setInterval(t(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:document.getElementById("employee-debugger-content")&&(clearInterval(n),e(!0));case 1:case"end":return t.stop()}}),t)}))),200)}}));case 7:return(c=document.createElement("div")).id="employee-debugger-adfree",c.innerHTML='\n\t\t\n\t\t\n\t\t

(page will reload)

\n\t',document.getElementById("employee-debugger-toggles").append(c),(void 0!==(s=localStorage.getItem("hhsl"))&&"access"===s||"undefined"!=typeof MNGAuthentication&&"function"==typeof MNGAuthentication.isUserAdFree&&MNGAuthentication.isUserAdFree())&&(document.getElementById("employee-adfree-toggle").checked=!0,window.MNGAuthentication.isUserAdFree=!0),document.getElementById("employee-adfree-toggle").addEventListener("click",(function(e){a("employee tools: employee ad toggle clicked"),e.target.checked?(a("Employee tools: employee ads: turn off"),localStorage.setItem("hhsl","access"),window.MNGAuthentication.isUserAdFree=!0,setTimeout((function(){window.location.reload()}),500)):(a("Employee tools: employee ads: turn on"),localStorage.removeItem("hhsl"),setTimeout((function(){window.location.reload()}),500))})),e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();var Se=function(){var e=z()?z().querySelector(q):null,t=z();null!==e&&t.removeChild(e)};const Ce=function(){var e=t(o().mark((function e(t){var n,r,i,c,s,u,l,d,p,f,h,m,g,y,v,w,b,x,E,k,S,C,A,L,I,N,T,_,U,O,P,B,j;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.email,r=t.picture,i=t.connectionSource,c=t.entitlementSource,s=t.entitlementLevel,u=t.serviceCode,l=t.isEedition,d=t.accountHref,p=t.userId,f="",h=" | Logged in with ",m=[],g=n,void 0!==n&&"undefined"!==n||(g="Anonymous"),e.prev=6,e.t0=i,e.next="google-oauth2"===e.t0?10:"facebook"===e.t0?12:"apple"===e.t0?14:16;break;case 10:return h+="Google",e.abrupt("break",18);case 12:return h+="Facebook",e.abrupt("break",18);case 14:return h+="Apple",e.abrupt("break",18);case 16:return h="",e.abrupt("break",18);case 18:e.t1=s,e.next="limited"===e.t1?21:"subscriber"===e.t1?23:"premium"===e.t1?25:27;break;case 21:return f="Limited Access",e.abrupt("break",29);case 23:return f="Subscriber",e.abrupt("break",29);case 25:return f="Premium Ad-Free Access",e.abrupt("break",29);case 27:return f="Anonymous",e.abrupt("break",29);case 29:for(l&&u&&u.includes("P")&&(f="Limited Subscription - e-Edition access"),Se(),(y=V()).removeChild(y.firstChild),(v=document.createElement("a")).id="anchorProfileDropDown",v.className="nav-link dropdown-toggle",v.setAttribute("aria-label","Account menu dropdown"),v.style.cursor="pointer",v.setAttribute("tabindex","0"),v.setAttribute("aria-expanded","false"),w=document.createElement("img"),b=document.getElementById("pushnav-icon"),w.className="rounded-circle",w.alt="User's profile image",b.className="rounded-circle",w.src=r,r||(w.style.backgroundColor="lightgrey",w.style.padding="15px",w.src=""),b.src=r,(x=document.createElement("span")).className="icon-arrow-down",x.id="icon-caret",x.setAttribute("aria-hidden","true"),(E=document.createElement("div")).id="account-content",E.className="dropdown-menu",y.append(v,E),(k=document.createElement("a")).className="dropdown-item dropdown-profile account-link",k.text=g,(S=document.createElement("p")).className="dropdown-item logged-in-source",S.appendChild(document.createTextNode(f+h)),(C=document.createElement("a")).className="dropdown-item account-link account-settings",C.text="Account Settings",(A=document.createElement("a")).className="dropdown-item",A.text="Contact Us",A.href="contact-us",(L=document.createElement("a")).className="dropdown-item log-out-button",L.text="Log out",(I=document.createElement("div")).id="marketing-content",I.className="dropdown-item marketing-slot-div",N=window,T=N.location,_=new URL(T),L.href="".concat(_.origin,"/logout"),y.id="profileDropDown",y.className="nav-item dropdown auth-visible show",v.append(w,x),document.getElementById("account-content").append(k,S,C,A,L,I),document.getElementById("push-auth-source").textContent=f+h,document.getElementById("push-email-link").textContent=g,document.getElementById("push-account-content").style.display="block",document.getElementById("blank-icon-user").style.display="none",a("Employee tools: start tools here",c,n,p),!1===(U=c)&&(U="none"),new Ee(U,n,p).init(),ke(U,n),O=function(){var e=document.getElementById("icon-caret"),t=e.classList.contains("icon-arrow-up");t||(e.className="icon-arrow-up",v.setAttribute("aria-expanded","true")),t&&(e.className="icon-arrow-down",v.setAttribute("aria-expanded","false"))},document.getElementById("profileDropDown").addEventListener("click",(function(){document.getElementById("account-content").classList.toggle("show"),O()})),document.getElementById("anchorProfileDropDown").addEventListener("keydown",(function(e){"Enter"===e.key&&(document.getElementById("account-content").classList.toggle("show"),O())})),document.addEventListener("click",(function(e){v.contains(e.target)||(document.getElementById("account-content").classList.remove("show"),v.setAttribute("aria-expanded","false"),x.className="icon-arrow-up")})),m=document.getElementsByClassName("account-link"),P=0;P1&&(clearInterval(n),e(!0));case 1:case"end":return t.stop()}}),t)}))),200)}}));case 2:return e.next=4,Be();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(function(){var e=t(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:je();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}})()()})()})();; jQuery; //# sourceMappingURL=site-bang.min.js.map;